nproc: Relax license.
[gnulib.git] / ChangeLog
1 2010-12-04  Bruno Haible  <bruno@clisp.org>
2
3         nproc: Relax license.
4         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
5         and Paul Eggert.
6         Requested by Ludovic Courtès <ludo@gnu.org>.
7
8 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9
10         utimecmp: fine-grained src to nearby coarse-grained dest
11
12         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
13         and the source is on a file system with higher-resolution time
14         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
15         not work, and the time stamps are close together, the algorithm to
16         determine the exact resolution from the read-back mtime was buggy:
17         it had a "!=" where it should have had an "==".  This bug has been
18         in the code ever since it was introduced to gnulib.
19         Problem reported by Dan Jacobson in
20         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
21
22 2010-11-30  Bruno Haible  <bruno@clisp.org>
23
24         strerror_r-posix: Fix autoconf test.
25         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
26
27 2010-11-28  Bruno Haible  <bruno@clisp.org>
28             Paul Eggert  <eggert@cs.ucla.edu>
29
30         Tests for module 'getdomainname'.
31         * modules/getdomainname-tests: New file.
32         * tests/test-getdomainname.c: New file, based on
33         tests/test-gethostname.c.
34
35 2010-11-28  Bruno Haible  <bruno@clisp.org>
36             Paul Eggert  <eggert@cs.ucla.edu>
37
38         getdomainname: Use the system function when possible.
39         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
40         (getdomainname): Replace if needed. Provide the declaration if it is
41         missing. Don't use _GL_CXXALIAS_SYS_CAST.
42         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
43         (getdomainname): When the system has getdomainname, call the system
44         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
45         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
47         found in libnsl. Look for the declaration also in <netdb.h>. Replace
48         the function if its second argument is of type 'int' or if it is found
49         in libnsl.
50         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
51         <sys/systeminfo.h> and sysinfo().
52         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
53         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
55         HAVE_GETDOMAINNAME.
56         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
57         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
58         * doc/glibc-functions/getdomainname.texi: Document the problems with
59         the getdomainname declaration.
60
61 2010-11-28  Bruno Haible  <bruno@clisp.org>
62
63         sys_socket: Ensure ss_family field on AIX.
64         * lib/sys_socket.in.h (ss_family): New macro definition.
65         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
66         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
67         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
68         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
69         * modules/sys_socket (Makefile.am): Substitute
70         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
71         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
72
73 2010-11-27  Bruno Haible  <bruno@clisp.org>
74
75         readline: Improve configure output.
76         * m4/readline.m4 (gl_FUNC_READLINE): Make the
77         "checking for readline..." result understandable.
78
79 2010-11-27  Bruno Haible  <bruno@clisp.org>
80
81         *printf-posix: Detect a bug on Solaris 10/x86.
82         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
83         for floating-point output.
84         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
85         directive.
86         * tests/test-snprintf-posix.h (test_function): Likewise.
87         * tests/test-sprintf-posix.h (test_function): Likewise.
88         * tests/test-vasprintf-posix.c (test_function): Likewise.
89         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
90         * doc/posix-functions/printf.texi: Likewise.
91         * doc/posix-functions/snprintf.texi: Likewise.
92         * doc/posix-functions/sprintf.texi: Likewise.
93         * doc/posix-functions/vfprintf.texi: Likewise.
94         * doc/posix-functions/vprintf.texi: Likewise.
95         * doc/posix-functions/vsnprintf.texi: Likewise.
96         * doc/posix-functions/vsprintf.texi: Likewise.
97         * doc/glibc-functions/obstack_printf.texi: Likewise.
98         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
99
100 2010-11-27  Bruno Haible  <bruno@clisp.org>
101
102         Fix link error when module libunistring-optional is in use.
103         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
104         * modules/striconveha-tests (Makefile.am): Likewise.
105
106 2010-11-27  Bruno Haible  <bruno@clisp.org>
107
108         regex: Mention link dependencies.
109         * modules/regex (Link): New section.
110         * modules/rpmatch (Link): Likewise.
111         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
112
113 2010-11-27  Bruno Haible  <bruno@clisp.org>
114
115         ftoastr: Fix compilation error on Solaris.
116         * lib/ftoastr.c: Include <config.h>.
117
118 2010-11-27  Bruno Haible  <bruno@clisp.org>
119
120         getloadavg: Update documentation.
121         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
122
123 2010-11-27  Bruno Haible  <bruno@clisp.org>
124
125         sys_socket: Fix test whether the functions are declared.
126         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
127         not <sys/select.h>.
128
129 2010-11-27  Bruno Haible  <bruno@clisp.org>
130
131         getpass: Make sure to get system declaration on some platforms.
132         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
133         gl_USE_SYSTEM_EXTENSIONS.
134         * modules/getpass (Depends-on): Add extensions.
135
136 2010-11-26  Bruno Haible  <bruno@clisp.org>
137
138         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
139         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
140         'iconv' module is present.
141         (ICONV_CONST): New macro.
142         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
143         ICONV_CONST.
144         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
145         set ICONV_CONST.
146         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
147         here.
148         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
149         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
150         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
151         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
152         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
153         present.
154
155 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
156
157         ftoastr: comment fix
158         * lib/ftoastr.c: "little" -> "little or no" in comment
159
160 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
161
162         stdint: port to GCC 4.3 + OSX + Octave
163         On this platform, stdint.h is buggy and defines int64_t to long
164         long int.  The replacement defined it to long int, causing
165         problems with C++ style name mangling.  Instead, trust the system
166         definition if INT64_MAX is defined, and likewise for the unsigned
167         variant.   Problem reported by Jarno Rajahalme in
168         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
169         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
170         and don't mess with int64_t and INT64_MAX in this case.
171         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
172
173 2010-11-24  Bruno Haible  <bruno@clisp.org>
174
175         doc: Corrections regarding MacOS X 10.4 and 10.5.
176         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
177         MacOS X.
178         Reported by Simon Josefsson.
179
180 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
181
182         Uninstall ".bin" files installed by relocwrapper.
183         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
184         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
185         unless it is already there.
186
187 2010-11-21  Bruno Haible  <bruno@clisp.org>
188
189         Update for NetBSD 5.0.
190         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
191         NetBSD; the test fails on NetBSD 5.0.
192         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
193         about NetBSD.
194
195 2010-11-21  Bruno Haible  <bruno@clisp.org>
196
197         Update for HP-UX 11.23 and HP-UX 11.31.
198         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
199         HP-UX.
200
201 2010-11-21  Bruno Haible  <bruno@clisp.org>
202
203         Update for MacOS X 10.5.
204         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
205         MacOS X; the test fails on MacOS X 10.5.8.
206         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
207         about MacOS X.
208
209 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
210
211         bootstrap: add bootstrap_sync option.
212         See discussion at
213         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
214         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
215         * build-aux/bootstrap: Accept --bootstrap-sync to update
216         bootstrap if it is not identical to the local gnulib's
217         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
218         enable this by default.  Accept --no-bootstrap-sync to disable
219         it.
220
221 2010-11-20  Bruno Haible  <bruno@clisp.org>
222
223         Ensure that <features.h> is included before __GLIBC__ is tested.
224         * lib/printf-parse.h: Include <features.h>.
225         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
226         Reported by Mike Frysinger <vapier@gentoo.org>.
227
228         Ensure that <features.h> is included before __GLIBC__ is tested.
229         * lib/wchar.in.h: Include <features.h>.
230         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
231         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
232         Reported by Mike Frysinger <vapier@gentoo.org>.
233
234         Ensure that <features.h> is included before __GLIBC__ is tested.
235         * lib/arpa_inet.in.h: Include <features.h>.
236         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
237         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
238         Reported by Mike Frysinger <vapier@gentoo.org>.
239
240         Ensure that <features.h> is included before __GLIBC__ is tested.
241         * build-aux/link-warning.h: Include <features.h>.
242         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
243         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
244         Reported by Mike Frysinger <vapier@gentoo.org>.
245
246         Ensure that <features.h> is included before __GLIBC__ is tested.
247         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
248         Reported by Mike Frysinger <vapier@gentoo.org>.
249
250 2010-11-20  Bruno Haible  <bruno@clisp.org>
251
252         memmem: Fix autoconf test.
253         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
254
255 2010-11-20  Bruno Haible  <bruno@clisp.org>
256
257         Port to uClibc.
258         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
259         * lib/fcntl.in.h: Likewise.
260         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
261         * lib/mbrtowc.c (mbrtowc): Likewise.
262         * lib/relocatable.c (find_shared_library_fullname): Likewise.
263         * lib/strerror_r.c: Likewise.
264         * lib/unistr/u8-strnlen.c: Likewise.
265         * lib/vasnprintf.c (decimal_point_char): Likewise.
266         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
267         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
268         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
269         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
270         * tests/test-sigaction.c (handler, main): Likewise.
271         * lib/freading.h: Treat uClibc like a non-glibc platform.
272         * lib/freading.c: Likewise.
273         * lib/gettext.h: Likewise.
274         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
275         Likewise.
276         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
277         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
278         * lib/propername.c (proper_name_utf8): Likewise.
279         * lib/spawn.in.h: Likewise.
280         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
281         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
282         mem_cd_iconveh_internal): Likewise.
283         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
284         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
285         strstr, strcasestr): Likewise.
286         * lib/unicodeio.c (unicode_to_mb): Likewise.
287         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
288         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
289         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
290         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
291         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
292         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
293         * lib/unistr/u8-stpncpy.c: Likewise.
294         * lib/vasnprintf.c (VASNPRINTF): Likewise.
295         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
296         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
297         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
298         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
299         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
300         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
301         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
302         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
303         Likewise.
304         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
305         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
306         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
307         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
308         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
309         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
310         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
311         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
312         * tests/test-getopt.h (OPTIND_MIN): Likewise.
313         * tests/test-striconveha.c (main): Likewise.
314         * tests/test-vasnprintf-posix.c (test_function): Likewise.
315         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
316         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
317         * doc/posix-functions/getline.texi: Likewise.
318         Reported by Mike Frysinger <vapier@gentoo.org>.
319
320 2010-11-20  Bruno Haible  <bruno@clisp.org>
321
322         nproc: Fix condition.
323         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
324         HAVE_PTHREAD_AFFINITY_NP.
325
326 2010-11-20  Bruno Haible  <bruno@clisp.org>
327
328         Fix a comment.
329         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
330
331 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
332
333         ftoastr: don't assume snprintf
334         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
335         Implement a subset of snprintf here, by using sprintf safely.
336         * modules/ftoastr (Depends-on): Remove snprintf.
337
338 2010-11-19  Jim Meyering  <meyering@redhat.com>
339
340         test-rename.h: fix compilation failure
341         * tests/test-rename.h (test_rename): Add omitted "}".
342
343 2010-11-17  Jim Meyering  <meyering@redhat.com>
344
345         maint.mk: add a URL discussing the no-@acronym policy
346         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
347
348 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
349
350         ftoastr: depend on snprintf, improve comments
351         * lib/ftoastr.c: Also mention Loitsch's draft.
352         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
353         needed in the current implementation, but it might simplify
354         speeding up the code later.
355         * modules/ftoastr: Depend on snprintf; this improves portability.
356         Suggested by Bruno Haible in the same email.
357
358         ftoastr: port to hosts lacking strtof and strtold
359         Problem reported by Bruno Haible in
360         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
361         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
362         environment and strtold (and presumably strtof) are not available.
363         * modules/ftoastr (Files): Add m4/c-strtod.m4.
364         (configure.ac): Require gl_C99_STRTOLD.
365
366 2010-11-18  Bruno Haible  <bruno@clisp.org>
367
368         c-strtold: Avoid link error on AIX 7.
369         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
370         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
371         (gl_C_STRTOLD): Test whether strtold_l exists.
372         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
373
374 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
375
376         intprops: new macro INT_BITS_STRLEN_BOUND
377         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
378         ftoastr.h.  This exposes an internal of intprops.h that was formerly
379         not exposed.  Also, it uses a slightly tighter bound than before;
380         though this makes no practical difference, we might as well be as
381         tight as we easily can.
382
383         ftoastr: new module, for lossless conversion of floats to short strings
384         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
385         * modules/ftoastr: New files.
386
387 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
388
389         bootstrap: port to Solaris sed
390         * build-aux/bootstrap (get_version): Port to Solaris sed.
391         See Ralf Wildenhues's note in
392         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
393
394 2010-11-14  Jim Meyering  <meyering@redhat.com>
395
396         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
397         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
398         and move definition closer to sole use.
399
400 2010-11-13  Jim Meyering  <meyering@redhat.com>
401
402         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
403         Now we require at least autoconf-2.59, which means the work-around
404         is no longer needed.
405         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
406         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
407         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
408         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
409         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
410
411 2010-11-13  Bruno Haible  <bruno@clisp.org>
412
413         rename, renameat: Avoid test failures at NFS mounted locations.
414         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
415         functions.
416         (test_rename): Use assert_nonexistent.
417         * tests/test-rename.c: Include <dirent.h>.
418         * tests/test-renameat.c: Likewise.
419         Reported by Gary V. Vaughan <gary@gnu.org>.
420
421         rename, renameat: Document Linux bug with NFS
422         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
423         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
424         * doc/posix-functions/renameat.texi: Likewise.
425         Suggested by Eric Blake.
426
427 2010-11-13  Bruno Haible  <bruno@clisp.org>
428
429         rename test: Add comments.
430         * tests/test-rename.h (test_rename): Add structure and comments.
431
432 2010-11-13  Eric Blake  <eblake@redhat.com>
433
434         maintainer-makefile: cover a few more files
435         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
436         scripts generated within C files, for libvirt.
437
438 2010-11-13  Bruno Haible  <bruno@clisp.org>
439
440         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
441         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
442         character, return the number of bytes that belong together, not always
443         1.
444         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
445         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
446         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
447         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
448         number of bytes of an invalid character.
449         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
450         (main): Invoke it.
451         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
452         results.
453         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
454         malformed byte sequences.
455         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
456         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
457         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
458         Reported by Ben Pfaff and Paolo Bonzini.
459
460 2010-11-13  Bruno Haible  <bruno@clisp.org>
461
462         openat: Work around glibc bug with fchownat() and empty file names.
463         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
464         (gl_FUNC_FCHOWNAT): Invoke it.
465         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
466         * doc/posix-functions/fchownat.texi: Document the glibc bug.
467         Reported by Gary V. Vaughan <gary@gnu.org>.
468
469 2010-11-13  Bruno Haible  <bruno@clisp.org>
470
471         openat: Ensure autoconf macro ordering.
472         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
473         gl_USE_SYSTEM_EXTENSIONS.
474         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
475
476 2010-11-13  Bruno Haible  <bruno@clisp.org>
477
478         Update comments.
479         * lib/unistr/u8-check.c: Update file name in comments.
480         * lib/unistr/u8-mblen.c: Likewise.
481         * lib/unistr/u8-prev.c: Likewise.
482         * lib/unistr/u8-strmblen.c: Likewise.
483         * lib/unistr/u8-strmbtouc.c: Likewise.
484
485 2010-11-13  Jim Meyering  <meyering@redhat.com>
486
487         tests: avoid test failure on Solaris 10 due to lack of PATH export
488         * tests/test-update-copyright.sh: Don't forget to export PATH.
489
490         init.sh: ensure that IFS is defined, just in case...
491         * tests/init.sh (setup_): Ensure that IFS is defined,
492         so that saving and restoring it works as expected.  This
493         appears to be useful at least for an old version of dash
494         from a long time ago (RH 6).  See here for details:
495         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
496
497         maint.mk: tighten "test a == b" check
498         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
499         test to files that contain something like #!/bin/sh.
500         Without this, coreutils would get two false positives in
501         the comments of C source files.
502
503 2010-11-12  Eric Blake  <eblake@redhat.com>
504
505         bootstrap: fix typo in previous attempt
506         * build-aux/bootstrap (buildreq): Correct the grouping.
507         Reported by Paul Eggert.
508
509         maintainer-makefile: prohibit test x == x
510         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
511         Based on a report by Matthias Bolte.
512
513         bootstrap: allow FreeBSD gzip
514         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
515         which has no '.' and goes to stderr.
516         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
517         Reported by Matthias Bolte.
518
519         maintainer-makefile: check for i18n setup
520         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
521         will likely work.
522
523 2010-11-12  Bruno Haible  <bruno@clisp.org>
524
525         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
526         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
527         * lib/nanosleep.c (nanosleep): Likewise.
528
529 2010-11-11  Bruno Haible  <bruno@clisp.org>
530
531         fcntl-h: Fix for use of C++ on glibc systems.
532         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
533         also on glibc systems in C++ mode.
534         Reported by Gary V. Vaughan <gary@gnu.org>.
535
536 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
537
538         mknod: avoid false failure with dash
539         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
540
541 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
542
543         unlink: Fix "is it should" typo in diagnostic.
544         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
545         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
546
547 2010-11-11  Bruno Haible  <bruno@clisp.org>
548
549         Tests for module 'strerror_r-posix'.
550         * modules/strerror_r-posix-tests: New file.
551         * tests/test-strerror_r.c: New file.
552         * tests/test-string-c++.cc: Check the signature of strerror_r.
553
554         New module 'strerror_r-posix'.
555         * lib/string.in.h (strerror_r): New declaration.
556         * lib/strerror_r.c: New file.
557         * m4/strerror_r.m4: New file.
558         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
559         of strerror_r.
560         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
561         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
562         * modules/strerror_r-posix: New file.
563         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
564         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
565         * doc/posix-functions/strerror_r.texi: Mention the new module and the
566         portability problems.
567
568 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
569
570         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
571         line is also considered for output. Quoted function name in shell
572         command, so temporary files for functions like MyClass::operator()
573         are removed correctly without errors.
574
575 2010-11-09  Bruno Haible  <bruno@clisp.org>
576
577         * doc/posix-functions/strerror.texi: List more failing platforms.
578
579         * doc/posix-functions/strerror.texi: Add a comment.
580
581 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
582
583         fdopendir: fix bug on MacOS X when low on file descriptors
584
585         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
586         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
587         All callers changed.
588         (fdopendir): Invoke save_cwd at the top level, not after using
589         multiple dup() calls to use up file descriptors.  Then retry
590         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
591         less than the maximum number of open file descriptors, because
592         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
593         on Mac OS X 10.6.4 for tar 1.24
594         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
595         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
596         and for tar 1.25
597         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
598
599 2010-11-07  Bruno Haible  <bruno@clisp.org>
600
601         vasnprintf: Support I flag on glibc systems.
602         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
603         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
604         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
605         snprintf function.
606         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
607         glibc systems.
608         * tests/test-vasnprintf-posix3.c: New file.
609         * modules/vasnprintf-posix-tests (Files): Add it.
610         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
611
612 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
613
614         [html] Fix copy/paste bug: Use unique name for compiler warnings.
615         * MODULES.html.sh: For compiler warnings, use name
616         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
617
618 2010-11-05  Eric Blake  <eblake@redhat.com>
619
620         ceil, floor: avoid spurious failure with icc
621         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
622         [denormals-as-zero] when optimizing without -mieee-fp option.
623         * tests/test-floorf2.c (floorf_reference): Likewise.
624         * tests/test-ceilf1.c (dummy): New function.
625         (main): Use it to outsmart icc's optimization.
626         * tests/test-floorf1.c (dummy, main): Likewise.
627
628         tests: require working signbit
629         * modules/ceilf-tests (Depends-on): Add signbit.
630         * modules/ceill-tests (Depends-on): Likewise.
631         * modules/floorf-tests (Depends-on): Likewise.
632         * modules/floorl-tests (Depends-on): Likewise.
633         * modules/round-tests (Depends-on): Likewise.
634         * modules/roundf-tests (Depends-on): Likewise.
635         * modules/roundl-tests (Depends-on): Likewise.
636         * modules/trunc-tests (Depends-on): Likewise.
637         * modules/truncf-tests (Depends-on): Likewise.
638         * modules/truncl-tests (Depends-on): Likewise.
639
640         strtod: work around icc bug
641         * lib/strtod.c (minus_zero): Define to working value.
642         (strtod): Use it to avoid icc bug.
643
644         copysign: enhance tests
645         * modules/copysign-tests (Files): Add minus-zero.h.
646         * tests/test-copysign.c (main): Also test zeros.
647
648 2010-11-04  Eric Blake  <eblake@redhat.com>
649
650         ceil, floor, round, trunc: enhance tests of -0
651         * tests/test-ceilf1.c (main): Ensure correct sign of result.
652         * tests/test-ceill.c (main): Likewise.
653         * tests/test-floorf1.c (main): Likewise.
654         * tests/test-floorl.c (main): Likewise.
655         * tests/test-round1.c (main): Likewise.
656         * tests/test-roundf1.c (main): Likewise.
657         * tests/test-roundl.c (main): Likewise.
658         * tests/test-trunc1.c (main): Likewise.
659         * tests/test-truncf1.c (main): Likewise.
660         * tests/test-truncl.c (main): Likewise.
661
662 2010-11-04  Eric Blake  <eblake@redhat.com>
663
664         frexp, tests: work around ICC bug with -zero
665         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
666         works with more compilers.
667         * tests/minus-zero.h: New file.
668         * modules/ceilf-tests (Files): Include it.
669         * modules/ceill-tests (Files): Likewise.
670         * modules/floorf-tests (Files): Likewise.
671         * modules/floorl-tests (Files): Likewise.
672         * modules/frexp-nolibm-tests (Files): Likewise.
673         * modules/frexp-tests (Files): Likewise.
674         * modules/frexpl-nolibm-tests (Files): Likewise.
675         * modules/frexpl-tests (Files): Likewise.
676         * modules/isnan-tests (Files): Likewise.
677         * modules/isnand-nolibm-tests (Files): Likewise.
678         * modules/isnand-tests (Files): Likewise.
679         * modules/isnanf-nolibm-tests (Files): Likewise.
680         * modules/isnanf-tests (Files): Likewise.
681         * modules/isnanl-nolibm-tests (Files): Likewise.
682         * modules/isnanl-tests (Files): Likewise.
683         * modules/round-tests (Files): Likewise.
684         * modules/roundf-tests (Files): Likewise.
685         * modules/roundl-tests (Files): Likewise.
686         * modules/ldexpl-tests (Files): Likewise.
687         * modules/signbit-tests (Files): Likewise.
688         * modules/snprintf-posix-tests (Files): Likewise.
689         * modules/sprintf-posix-tests (Files): Likewise.
690         * modules/strtod-tests (Files): Likewise.
691         * modules/trunc-tests (Files): Likewise.
692         * modules/truncf-tests (Files): Likewise.
693         * modules/truncl-tests (Files): Likewise.
694         * modules/vsnprintf-posix-tests (Files): Likewise.
695         * modules/vsprintf-posix-tests (Files): Likewise.
696         * modules/vasnprintf-posix-tests (Files): Likewise.
697         * modules/vasprintf-posix-tests (Files): Likewise.
698         * tests/test-ceilf1.c (main): Use it.
699         * tests/test-ceill.c (main): Likewise.
700         * tests/test-floorf1.c (main): Likewise.
701         * tests/test-floorl.c (main): Likewise.
702         * tests/test-frexp.c (main): Likewise.
703         * tests/test-frexpl.c (main): Likewise.
704         * tests/test-isnan.c (main): Likewise.
705         * tests/test-isnand.h (main): Likewise.
706         * tests/test-isnanf.h (main): Likewise.
707         * tests/test-isnanl.h (main): Likewise.
708         * tests/test-ldexpl.c (main): Likewise.
709         * tests/test-round.c (main): Likewise.
710         * tests/test-roundf.c (main): Likewise.
711         * tests/test-roundl.c (main): Likewise.
712         * tests/test-signbit.c (test_signbitf, test_signbitd)
713         (test_signbitl): Likewise.
714         * tests/test-snprintf-posix.h (test_function): Likewise.
715         * tests/test-sprintf-posix.h (test_function): Likewise.
716         * tests/test-strtod.c (main): Likewise.
717         * tests/test-trunc1.c (main): Likewise.
718         * tests/test-truncf1.c (main): Likewise.
719         * tests/test-truncl.c (main): Likewise.
720
721         isnanl: work around icc bug
722         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
723
724 2010-11-03  Eric Blake  <eblake@redhat.com>
725
726         tests: fix compiler warnings
727         * tests/test-getopt.h (test_getopt): Fix condition.
728         * tests/test-getopt_long.h (test_getopt_long): Likewise.
729         * tests/test-pipe2.c (main): Likewise.
730         * tests/test-quotearg-simple.c (main): Avoid icc warning.
731
732         utimens: fix broken m4 test
733         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
734
735 2010-10-28  Bruno Haible  <bruno@clisp.org>
736
737         posix_spawn*, getdtablesize: Relax license.
738         * modules/posix_spawn (License): Change to LGPLv2+.
739         * modules/posix_spawnp (License): Likewise.
740         * modules/posix_spawn-internal (License): Likewise.
741         * modules/posix_spawnattr_init (License): Likewise.
742         * modules/posix_spawnattr_getflags (License): Likewise.
743         * modules/posix_spawnattr_setflags (License): Likewise.
744         * modules/posix_spawnattr_getpgroup (License): Likewise.
745         * modules/posix_spawnattr_setpgroup (License): Likewise.
746         * modules/posix_spawnattr_getschedparam (License): Likewise.
747         * modules/posix_spawnattr_setschedparam (License): Likewise.
748         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
749         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
750         * modules/posix_spawnattr_getsigdefault (License): Likewise.
751         * modules/posix_spawnattr_setsigdefault (License): Likewise.
752         * modules/posix_spawnattr_getsigmask (License): Likewise.
753         * modules/posix_spawnattr_setsigmask (License): Likewise.
754         * modules/posix_spawnattr_destroy (License): Likewise.
755         * modules/posix_spawn_file_actions_init (License): Likewise.
756         * modules/posix_spawn_file_actions_addclose (License): Likewise.
757         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
758         * modules/posix_spawn_file_actions_addopen (License): Likewise.
759         * modules/posix_spawn_file_actions_destroy (License): Likewise.
760         * modules/getdtablesize (License): Likewise.
761         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
762
763 2010-10-26  Bruno Haible  <bruno@clisp.org>
764
765         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
766         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
767         Cygwin and mingw.
768         Suggested by Eric Blake.
769
770 2010-10-26  Bruno Haible  <bruno@clisp.org>
771
772         stdio: Work around compilation error due to renameat() on Solaris 10.
773         * lib/stdio.in.h: Include <unistd.h> on Solaris.
774         * lib/renameat.c: Don't include <unistd.h> here.
775         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
776         Reported by Paul Eggert and Eric Blake.
777
778 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
779
780         renameat: port to Solaris 10, which declares renameat in unistd.h
781
782         * lib/renameat.c: Include unistd.h before stdio.h, because
783         Solaris 10 declares renameat in unistd.h.  Problem encountered
784         when building GNU tar 1.24 on Solaris 10.
785
786 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
787
788         fdopendir: fix C89 compilation
789         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
790         compilers.
791
792 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
793
794         inttostr: simplify by removing unnecessary redundancy
795         * lib/anytostr.c: Don't include verify.h.
796         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
797         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
798         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
799         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
800         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
801         Likewise.
802         * modules/inttostr (Depends-on): Remove 'verify'.
803
804 2010-10-23  Bruno Haible  <bruno@clisp.org>
805
806         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
807         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
808         Reported by Eric Blake.
809
810 2010-10-23  Bruno Haible  <bruno@clisp.org>
811
812         Tests: Fix LOCALE_JA on MirBSD 10.
813         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
814         to an UTF-8 locale.
815         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
816         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
817         Reported by Eric Blake.
818
819 2010-10-21  Bruno Haible  <bruno@clisp.org>
820
821         nl_langinfo test: Avoid test failure on NetBSD 5.
822         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
823         Reported by Eric Blake.
824
825 2010-10-21  Eric Blake  <eblake@redhat.com>
826
827         c-stack: work around libsigsegv 2.8 bug
828         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
829         overflow on at least PowerPC64.
830
831 2010-10-17  Bruno Haible  <bruno@clisp.org>
832
833         userspec: Drop redundant file.
834         * modules/userspec (Files): Remove lib/inttostr.h.
835
836 2010-10-17  Bruno Haible  <bruno@clisp.org>
837
838         nl_langinfo tests: Silence some warnings.
839         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
840         Reported by Jim Meyering.
841
842 2010-10-17  Bruno Haible  <bruno@clisp.org>
843
844         Make use of GCC's attribute __alloc_size__.
845         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
846         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
847         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
848         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
849         __alloc_size__.
850         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
851         Suggested by Jim Meyering.
852
853 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
854
855         bootstrap: anchor .gitignore entries.
856         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
857         with...
858         (insert_vc_ignore): ... this new function, which prepends `/' to
859         all .gitignore entries before passing them to
860         insert_sorted_if_absent.
861
862 2010-10-16  Bruno Haible  <bruno@clisp.org>
863
864         nextafter: Fix configure check.
865         * modules/nextafter (configure.ac): Correct expected prototype.
866
867 2010-10-16  Bruno Haible  <bruno@clisp.org>
868
869         termios: Update documentation.
870         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
871
872 2010-10-16  Bruno Haible  <bruno@clisp.org>
873
874         tests: Make them compile with TinyCC.
875         * tests/test-strstr.c (main): Remove parentheses around array
876         initializer.
877
878 2010-10-15  Eric Blake  <eblake@redhat.com>
879
880         ignore-value: make header idempotent
881         * lib/ignore-value.h: Add double-inclusion guards.
882         Reported by Stefan Berger.
883
884 2010-10-15  Jim Meyering  <meyering@redhat.com>
885
886         GNUmakefile: handle "stable" target, not "major"
887         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
888         lists in maint.mk and announce-gen.  Without this, "make stable"
889         would fail to ensure that $(VERSION) is up to date.
890
891 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
892
893         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
894         & co.
895
896 2010-10-14  Bruno Haible  <bruno@clisp.org>
897
898         vasnprintf: Don't set errno to 0.
899         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
900         block that sets it to 0.
901         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
902
903 2010-10-14  Bruno Haible  <bruno@clisp.org>
904
905         socketlib: Fix.
906         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
907         gl_PREREQ_SYS_H_WINSOCK2.
908         Reported by Ian Beckwith <ianb@erislabs.net>.
909
910 2010-10-13  Jim Meyering  <meyering@redhat.com>
911
912         test-select-stdin.c: avoid warn_unused_result warnings
913         * tests/test-select-stdin.c: Include "macros.h".
914         ASSERT that read and fflush succeed.
915
916 2010-10-13  Jim Meyering  <meyering@redhat.com>
917
918         git-version-gen: do require git-VC'd files in cwd
919         * build-aux/git-version-gen: Reject a git version string
920         if there are no commits associated with the current directory.
921         This avoids an unlikely false-positive (unrelated dir whose parent
922         repository also contains a tag matching v*), as pointed out
923         by Giuseppe Scrivano in
924         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
925
926 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
927
928         argv-iter: omit nonconforming declaration
929         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
930         enum arg_iter_err declaration, which doesn't conform to C99.
931         Solaris 10 cc warns about this.
932
933 2010-10-13  Eric Blake  <eblake@redhat.com>
934
935         termios: fix compilation on mingw
936         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
937         (gl_TERMIOS_H): Adjust it on mingw.
938         * modules/termios (Makefile.am): Substitute new key.
939         * lib/termios.in.h (includes): Make include_next conditional.
940         * doc/posix-headers/termios.texi (termios.h): Update
941         documentation.
942         Reported by Daniel P. Berrange.
943
944 2010-10-13  Jim Meyering  <meyering@redhat.com>
945
946         git-version-gen: don't require that .git/ be in the current dir
947         * build-aux/git-version-gen: Adjust this script so that it works
948         when run from any working directory beneath the top-level .git/-
949         containing directory.  Inspired by a patch from Giuseppe Scrivano,
950         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
951
952         test-select: avoid warn_unused_result warnings
953         * tests/test-select.c: Include "macros.h".
954         ASSERT that each call to read, write, and pipe succeeds.
955         While not technically required, also check each "close".
956         * modules/select-tests (Files): Add tests/macros.h.
957
958         test-symlinkat: remove declaration of unused local
959         * tests/test-symlinkat.c (main): Remove unused local, "buf".
960
961         test-inttostr: avoid shadowing warnings
962         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
963         and use malloc rather than the stack for the same reason as
964         mentioned in the comment justifying the other allocation.
965
966 2010-10-11  Bruno Haible  <bruno@clisp.org>
967
968         stdlib: Allow multiple gnulib generated replacements to coexist.
969         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
970         Reported by Sam Steingold <sds@gnu.org>.
971
972 2010-10-11  Jim Meyering  <meyering@redhat.com>
973
974         fix a documentation typo
975         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
976
977 2010-10-11  Eric Blake  <eblake@redhat.com>
978
979         futimens: work around Solaris 11 bug
980         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
981         * tests/test-futimens.h (test_futimens): Enhance, rather than
982         weaken test.
983         * doc/posix-functions/futimens.texi (futimens): Document the bug.
984
985 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
986
987         Indentation.
988         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
989         higher-level operators more to the left.
990
991 2010-10-11  Jim Meyering  <meyering@redhat.com>
992
993         test-futimens: avoid unwarranted test failure on Solaris 5.11
994         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
995         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
996         because it tries to dereference the NULL name argument.
997
998 2010-10-11  Bruno Haible  <bruno@clisp.org>
999
1000         Indentation.
1001         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
1002         indentation.
1003
1004 2010-10-11  Jim Meyering  <meyering@redhat.com>
1005
1006         spawn.in.h: make indentation consistent with parentheses
1007         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
1008         Make indentation consistent with parentheses.
1009
1010 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
1011
1012         Fix mismatched parens in previous commit
1013         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
1014         parens.
1015
1016 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
1017
1018         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
1019
1020         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
1021         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
1022         * lib/malloca.c: Include "verify.h".
1023         (verify1): Remove, replacing with a verify call.
1024         * lib/relocwrapper.c (verify1): Likewise.
1025         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
1026         Likewise.
1027         * modules/malloca (Depends-on): Add 'verify'.
1028         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
1029         * modules/vasnprintf (Depends-on): Add 'verify'.
1030         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1031         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1032         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1033         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1034         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1035         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1036         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1037
1038         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
1039
1040         Formerly the style was sometimes 2*X - 1, because the C standard
1041         was wrongly thought to disallow ?: in integral constant expressions.
1042         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
1043         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
1044         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
1045         * lib/stdint.in.h (_verify_intmax_size): Likewise.
1046         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
1047         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
1048         verify that time_t cannot be floating.
1049
1050 2010-10-08  Eric Blake  <eblake@redhat.com>
1051
1052         time: enforce recent POSIX ruling that time_t is integral
1053         * lib/time.in.h (__time_t_must_be_integral): Detect any
1054         problematic systems, allowing the rest of gnulib to assume POSIX.
1055
1056 2010-10-08  Jim Meyering  <meyering@redhat.com>
1057
1058         fdopendir: fix a bug on systems lacking openat and /proc support
1059         OpenBSD 4.7 is one such system.  The most noticeable effect was
1060         failure of any application making nontrivial use of fts: rm, du,
1061         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
1062           ./rm: traversal failed: `a': Bad file descriptor
1063         Debugging that, you see that even though FD 6 was closed just
1064         prior to the opendir call in fd_clone_opendir, its resulting
1065         dir->dd_fd was 8, rather than the expected value of 6:
1066
1067         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
1068         93                close (fd);
1069         (gdb) n
1070         94                dir = fd_clone_opendir (dupfd);
1071         (gdb) n
1072         95                saved_errno = errno;
1073         (gdb) p dir->dd_fd
1074         $11 = 8
1075
1076         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
1077         The problem is that on OpenBSD, fd_clone_opendir has to resort
1078         to using the old-style save/restore CWD mechanism, due to its
1079         lack of openat/proc support, and *that* would steal the FD (6)
1080         that opendir was supposed to use.
1081
1082         The fix is to squirrel away the desired FD so that save_cwd uses a
1083         different one, and then free the dest FD right before calling opendir.
1084         That guarantees opendir will use the required file descriptor.
1085
1086         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
1087
1088 2010-10-08  Bruno Haible  <bruno@clisp.org>
1089
1090         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
1091         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
1092
1093 2010-10-08  Bruno Haible  <bruno@clisp.org>
1094
1095         nanosleep: Make replacement POSIX compliant.
1096         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
1097         is out of range.
1098         Reported by Jim Meyering.
1099
1100 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1101
1102         bootstrap: add hook for altering gnulib.mk, for Bison
1103         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
1104         the Bison bootstrapping process can rewrite file names and variables
1105         in this file before later parts of 'bootstrap' use the file.
1106         Bison wants to include lib/gnulib.mk from the top-level makefile,
1107         so it needs the file names in this file to be relative to the top
1108         level, not relative to lib; plus it needs variable names to be
1109         rewritten.
1110         (slurp): Use the new function.
1111
1112         bootstrap: reformat for readability
1113         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
1114
1115 2010-10-08  Eric Blake  <eblake@redhat.com>
1116
1117         docs: update cygwin progress
1118         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
1119         1.7.7.
1120         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
1121         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
1122         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
1123         * doc/posix-functions/carg.texi (carg): Likewise.
1124         * doc/posix-functions/cargf.texi (cargf): Likewise.
1125         * doc/posix-functions/casin.texi (casin): Likewise.
1126         * doc/posix-functions/casinf.texi (casinf): Likewise.
1127         * doc/posix-functions/casinh.texi (casinh): Likewise.
1128         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
1129         * doc/posix-functions/catan.texi (catan): Likewise.
1130         * doc/posix-functions/catanf.texi (catanf): Likewise.
1131         * doc/posix-functions/catanh.texi (catanh): Likewise.
1132         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
1133         * doc/posix-functions/ccos.texi (ccos): Likewise.
1134         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
1135         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
1136         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
1137         * doc/posix-functions/cexp.texi (cexp): Likewise.
1138         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
1139         * doc/posix-functions/cimag.texi (cimag): Likewise.
1140         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
1141         * doc/posix-functions/clog.texi (clog): Likewise.
1142         * doc/posix-functions/clogf.texi (clogf): Likewise.
1143         * doc/posix-functions/conj.texi (conj): Likewise.
1144         * doc/posix-functions/conjf.texi (conjf): Likewise.
1145         * doc/posix-functions/cpow.texi (cpow): Likewise.
1146         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
1147         * doc/posix-functions/cproj.texi (cproj): Likewise.
1148         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
1149         * doc/posix-functions/creal.texi (creal): Likewise.
1150         * doc/posix-functions/crealf.texi (crealf): Likewise.
1151         * doc/posix-functions/csin.texi (csin): Likewise.
1152         * doc/posix-functions/csinf.texi (csinf): Likewise.
1153         * doc/posix-functions/csinh.texi (csinh): Likewise.
1154         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
1155         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
1156         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
1157         * doc/posix-functions/ctan.texi (ctan): Likewise.
1158         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
1159         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
1160         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
1161         * doc/posix-headers/complex.texi (complex.h): Likewise.
1162
1163 2010-10-07  Jim Meyering  <meyering@redhat.com>
1164
1165         parse-datetime: avoid compilation failure on OpenBSD 4.7
1166         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
1167         This works around a compilation failure on OpenBSD 4.7:
1168         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
1169
1170 2010-10-07  Eric Blake  <eblake@redhat.com>
1171
1172         docs: update cygwin progress
1173         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
1174         1.7.6.
1175         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
1176         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
1177         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
1178         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
1179         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
1180         Likewise.
1181         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
1182         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
1183         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
1184         Likewise.
1185         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
1186         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
1187         Likewise.
1188         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
1189         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
1190         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
1191         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
1192         Likewise.
1193         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
1194         Likewise.
1195         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
1196
1197         docs: update parse-datetime history
1198         * doc/parse-datetime.texi (Authors of parse_datetime): Better
1199         documentation of this function's history and alternatives.
1200
1201         cygwin: use more robust version check
1202         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
1203         exclude an eventual cygwin 1.9.1.
1204         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1205         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
1206         (gl_FUNC_STRCASESTR): Likewise.
1207         Reported by Bruno Haible.
1208
1209 2010-10-06  Bruno Haible  <bruno@clisp.org>
1210
1211         string, sys_select: Avoid #including large headers unless necessary.
1212         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
1213         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
1214         OSF/1, BeOS, Haiku.
1215         Reported by Jim Meyering.
1216
1217 2010-10-05  Eric Blake  <eblake@redhat.com>
1218
1219         memmem, strstr, strcasestr: fix bug with long periodic needle
1220         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
1221         periodic needle having false positive.
1222         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
1223         and cygwin 1.7.7.
1224         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
1225         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
1226         (gl_FUNC_STRCASESTR): Likewise.
1227         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1228         * tests/test-memmem.c (main): Expose the bug.
1229         * tests/test-strcasestr.c (main): Likewise.
1230         * tests/test-strstr.c (main): Likewise.
1231         * tests/test-c-strcasestr.c (main): Likewise.
1232         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
1233         * doc/posix-functions/strstr.texi (strstr): Likewise.
1234         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
1235         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
1236
1237 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1238
1239         parse-datetime: do some more renaming
1240         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
1241         parse_datetime, not get_date.  Mention the renaming.
1242         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
1243         in comments.
1244         * m4/bison.m4: Likewise.
1245
1246 2010-10-05  Eric Blake  <eblake@redhat.com>
1247
1248         parse-datetime: better name than get_date
1249         * NEWS: Reword the deprecation notice.
1250         * modules/get_date: Rename to modules/parse-datetime.
1251         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
1252         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
1253         * lib/get_date.y: Rename to lib/parse-datetime.y.
1254         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
1255         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
1256         * doc/getdate.texi: Provide fallback wrapper.
1257         * lib/getdate.h: Move guts, and wrap...
1258         * lib/parse-datetime.h: ...new file.
1259         * lib/parse-datetime.y (get_date): Rename...
1260         (parse_datetime): ...to this.
1261         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
1262         (gl_PARSE_DATETIME): ...to this.
1263         * doc/posix-functions/getdate.texi (get_date): Provide fallback
1264         documentation.
1265         * modules/getdate (Files): Provide fallback docs and header.
1266         (Notice, Depends-on): Update references.
1267         * tests/test-parse-datetime.c: Likewise.
1268         * DEPENDENCIES: Likewise.
1269         * MODULES.html.sh (Date and time <time.h>): Likewise.
1270         * doc/parse-datetime.texi (Date input formats)
1271         (Authors of parse_datetime): Likewise.
1272         * modules/parse-datetime (Files, configure.ac, Makefile.am)
1273         (Include): Likewise.
1274         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
1275         * gnulib-tool: Likewise.
1276         * m4/bison.m4 (gl_BISON): Likewise.
1277         Suggested by Bruno Haible.
1278
1279 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1280
1281         more ports to Solaris tr, which needs [] around ranges
1282         * gnulib-tool: Solaris tr needs [] around ranges.
1283         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
1284         * tests/test-pipe-filter-gi1.c (main): Likewise.
1285         * tests/test-pipe-filter-ii1.c (main): Likewise.
1286
1287 2010-10-05  Eric Blake  <eblake@redhat.com>
1288
1289         bootstrap: fix Solaris regression
1290         * build-aux/bootstrap (check_versions): Solaris tr still needs []
1291         around ranges.
1292         Reported by Pádraig Brady.
1293
1294         bootstrap: work with pkg-config
1295         * build-aux/bootstrap (check_versions): Also transliterate - in
1296         prerequisite name.
1297         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
1298         prerequisites that were already found, to avoid confusion.
1299         Reported by Justin Clift.
1300
1301         faccessat: remove unused wrappers
1302         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
1303         presence of these wrappers dragged in -lgen on Solaris.
1304         Reported by Clemens Brogi; fix suggested by Paul Eggert.
1305
1306 2010-10-05  Jim Meyering  <meyering@redhat.com>
1307
1308         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
1309         * Makefile (sc_pragma_columns): New syntax-check rule.
1310
1311 2010-10-04  Bruno Haible  <bruno@clisp.org>
1312
1313         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
1314         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
1315         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
1316         Reported by Bruce Korb and Eric Blake.
1317
1318 2010-10-04  Bruno Haible  <bruno@clisp.org>
1319
1320         threadlib: Make option --with-libpth-prefix work.
1321         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
1322         use $LIBPTH, not just -lpth.
1323
1324 2010-10-04  Bruno Haible  <bruno@clisp.org>
1325
1326         Avoid line length limitation from HP NonStop system header files.
1327         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
1328         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
1329         * lib/ctype.in.h: Likewise.
1330         * lib/dirent.in.h: Likewise.
1331         * lib/errno.in.h: Likewise.
1332         * lib/fcntl.in.h: Likewise.
1333         * lib/float.in.h: Likewise.
1334         * lib/getopt.in.h: Likewise.
1335         * lib/iconv.in.h: Likewise.
1336         * lib/inttypes.in.h: Likewise.
1337         * lib/langinfo.in.h: Likewise.
1338         * lib/locale.in.h: Likewise.
1339         * lib/math.in.h: Likewise.
1340         * lib/netdb.in.h: Likewise.
1341         * lib/netinet_in.in.h: Likewise.
1342         * lib/poll.in.h: Likewise.
1343         * lib/pthread.in.h: Likewise.
1344         * lib/pty.in.h: Likewise.
1345         * lib/sched.in.h: Likewise.
1346         * lib/se-selinux.in.h: Likewise.
1347         * lib/search.in.h: Likewise.
1348         * lib/signal.in.h: Likewise.
1349         * lib/spawn.in.h: Likewise.
1350         * lib/stdarg.in.h: Likewise.
1351         * lib/stddef.in.h: Likewise.
1352         * lib/stdint.in.h: Likewise.
1353         * lib/stdio.in.h: Likewise.
1354         * lib/stdlib.in.h: Likewise.
1355         * lib/string.in.h: Likewise.
1356         * lib/strings.in.h: Likewise.
1357         * lib/sys_file.in.h: Likewise.
1358         * lib/sys_ioctl.in.h: Likewise.
1359         * lib/sys_select.in.h: Likewise.
1360         * lib/sys_socket.in.h: Likewise.
1361         * lib/sys_stat.in.h: Likewise.
1362         * lib/sys_time.in.h: Likewise.
1363         * lib/sys_times.in.h: Likewise.
1364         * lib/sys_utsname.in.h: Likewise.
1365         * lib/sys_wait.in.h: Likewise.
1366         * lib/sysexits.in.h: Likewise.
1367         * lib/termios.in.h: Likewise.
1368         * lib/time.in.h: Likewise.
1369         * lib/unistd.in.h: Likewise.
1370         * lib/wchar.in.h: Likewise.
1371         * lib/wctype.in.h: Likewise.
1372         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
1373         * modules/ctype (Makefile.am): Likewise.
1374         * modules/dirent (Makefile.am): Likewise.
1375         * modules/errno (Makefile.am): Likewise.
1376         * modules/fcntl-h (Makefile.am): Likewise.
1377         * modules/float (Makefile.am): Likewise.
1378         * modules/getopt-posix (Makefile.am): Likewise.
1379         * modules/iconv-h (Makefile.am): Likewise.
1380         * modules/inttypes (Makefile.am): Likewise.
1381         * modules/langinfo (Makefile.am): Likewise.
1382         * modules/locale (Makefile.am): Likewise.
1383         * modules/math (Makefile.am): Likewise.
1384         * modules/netdb (Makefile.am): Likewise.
1385         * modules/netinet_in (Makefile.am): Likewise.
1386         * modules/poll-h (Makefile.am): Likewise.
1387         * modules/pthread (Makefile.am): Likewise.
1388         * modules/pty (Makefile.am): Likewise.
1389         * modules/sched (Makefile.am): Likewise.
1390         * modules/search (Makefile.am): Likewise.
1391         * modules/selinux-h (Makefile.am): Likewise.
1392         * modules/signal (Makefile.am): Likewise.
1393         * modules/spawn (Makefile.am): Likewise.
1394         * modules/stdarg (Makefile.am): Likewise.
1395         * modules/stddef (Makefile.am): Likewise.
1396         * modules/stdint (Makefile.am): Likewise.
1397         * modules/stdio (Makefile.am): Likewise.
1398         * modules/stdlib (Makefile.am): Likewise.
1399         * modules/string (Makefile.am): Likewise.
1400         * modules/strings (Makefile.am): Likewise.
1401         * modules/sys_file (Makefile.am): Likewise.
1402         * modules/sys_ioctl (Makefile.am): Likewise.
1403         * modules/sys_select (Makefile.am): Likewise.
1404         * modules/sys_socket (Makefile.am): Likewise.
1405         * modules/sys_stat (Makefile.am): Likewise.
1406         * modules/sys_time (Makefile.am): Likewise.
1407         * modules/sys_times (Makefile.am): Likewise.
1408         * modules/sys_utsname (Makefile.am): Likewise.
1409         * modules/sys_wait (Makefile.am): Likewise.
1410         * modules/sysexits (Makefile.am): Likewise.
1411         * modules/termios (Makefile.am): Likewise.
1412         * modules/time (Makefile.am): Likewise.
1413         * modules/unistd (Makefile.am): Likewise.
1414         * modules/wchar (Makefile.am): Likewise.
1415         * modules/wctype (Makefile.am): Likewise.
1416
1417 2010-10-04  Bruno Haible  <bruno@clisp.org>
1418
1419         read-file tests: Avoid a test failure on NonStop Kernel.
1420         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
1421         a regular file.
1422         Reported by Joachim Schmitz <schmitz@hp.com>.
1423
1424 2010-10-03  Bruno Haible  <bruno@clisp.org>
1425
1426         gnulib-tool: Fixes for --create-testdir with --libtool.
1427         * gnulib-tool (func_get_automake_snippet): Don't augment
1428         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
1429         an executable.
1430         (func_create_testdir): Handle module 'alloca' like func_import.
1431         Reported by Bruce Korb <bruce.korb@gmail.com>.
1432
1433 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
1434
1435         Avoid some lines longer than 80 characters.
1436         * lib/stdint.in.h: Break long comment lines.
1437         * lib/math.in.h: Likewise.
1438         (_GL_NUM_UINT_WORDS): New macro, for readability.
1439         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
1440         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
1441         * lib/stdlib.in.h: Likewise.
1442         * lib/spawn.in.h: Likewise.
1443         * lib/sys_socket.in.h: Update an URL.
1444         * lib/sys_stat.in.h: Break long line.
1445
1446 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
1447
1448         Improve pmccabe2html.
1449         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
1450         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
1451         when the sources change. Remove the line in the HTML about "Used
1452         ranges" (which implied that there might be other unused ranges),
1453         rename "Resume" to "Summary" (easier to understand for more users).
1454         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
1455         styles, and some unnecessary blank lines.
1456
1457 2010-10-03  Bruno Haible  <bruno@clisp.org>
1458             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1459
1460         acl: Add support for ACLs on NonStop Kernel.
1461         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
1462         Check whether the function aclsort() exists.
1463         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
1464         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
1465         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1466         (acl_nontrivial [HAVE_ACLSORT]: New function.
1467         (file_has_acl): Implement for NonStop Kernel.
1468         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1469         (qset_acl): Implement for NonStop Kernel.
1470         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
1471         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1472         (main): Implement for NonStop Kernel.
1473         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
1474         Kernel. Handle this flavor.
1475         * tests/test-set-mode-acl.sh: Likewise.
1476         * tests/test-copy-acl.sh: Likewise.
1477         * tests/test-copy-file.sh: Likewise.
1478
1479 2010-10-03  Bruno Haible  <bruno@clisp.org>
1480
1481         Info about ACLs on NonStop Kernel.
1482         * doc/acl-resources.txt: Add info about NonStop Kernel.
1483         References by Joachim Schmitz <schmitz@hp.com>.
1484
1485 2010-10-02  Bruno Haible  <bruno@clisp.org>
1486
1487         Define missing EDQUOT on NonStop Kernel.
1488         * lib/errno.in.h (EDQUOT): Assign a value if missing.
1489         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
1490         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
1491         missing.
1492         * doc/posix-headers/errno.texi: Mention the NSK bug.
1493         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
1494         Reported by Joachim Schmitz <schmitz@hp.com>.
1495
1496 2010-10-02  Bruno Haible  <bruno@clisp.org>
1497
1498         Update doc for POSIX:2008.
1499         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
1500         Update URL of POSIX specification.
1501
1502 2010-10-02  Bruno Haible  <bruno@clisp.org>
1503
1504         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
1505         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
1506         from gnulib, not from Automake.
1507
1508 2010-10-02  Bruno Haible  <bruno@clisp.org>
1509
1510         New module 'system-posix'.
1511         * modules/system-posix: New file.
1512         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
1513         module is present.
1514         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
1515         GNULIB_SYSTEM_POSIX.
1516         * modules/stdlib (Depends-on): Remove sys_wait.
1517         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
1518         * doc/posix-functions/system.texi: Mention the new module.
1519         * doc/posix-headers/stdlib.texi: Likewise.
1520         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
1521         define test_sys_wait_macros to a no-op.
1522         Reported by Sam Steingold <sds@gnu.org>.
1523
1524 2010-09-30  Bruno Haible  <bruno@clisp.org>
1525
1526         More renaming from 'getdate' to 'get_date'.
1527         * doc/get_date.texi: Renamed from doc/getdate.texi.
1528         * modules/get_date (Files): Update.
1529         * MODULES.html.sh (Date and time <time.h>): Update.
1530         * DEPENDENCIES: Update.
1531         * gnulib-tool: Update comment.
1532         * m4/bison.m4 (gl_BISON): Likewise.
1533         * m4/get_date.m4 (gl_GET_DATE): Likewise.
1534
1535 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
1536
1537         bootstrap: support ACLOCAL_FLAGS during aclocal
1538         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
1539         can add additional -I dir for third-party .m4 files.
1540
1541 2010-09-30  Eric Blake  <eblake@redhat.com>
1542
1543         bootstrap: use glibtoolize on MacOS
1544         * build-aux/bootstrap (check_versions): Convert libtool into
1545         libtoolize.
1546         (tool search): Move libtool check earlier, and look for
1547         glibtoolize for MacOS.
1548         (gnulib_tool_options): Auto-add --libtool when appropriate.
1549         Reported by Justin Clift.
1550
1551         poll: fix typo that broke test on MacOS
1552         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
1553         Reported by Justin Clift.
1554
1555         getdate: rename to get_date
1556         Note: getdate.h is not renamed, to minimize client impact.
1557         * modules/getdate: Mark obsolete.  Move old contents...
1558         * modules/get_date: ...to new module name.
1559         * modules/getdate-tests: Move...
1560         * modules/get_date-tests: ...here.
1561         * m4/getdate.m4: Move...
1562         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
1563         * lib/getdate.y: Move...
1564         * lib/get_date.y: ...here.
1565         * tests/test-getdate.c: Move...
1566         * tests/test-get_date.c: ...here.
1567         * doc/posix-functions/getdate.texi (getdate): Update name.
1568         * NEWS: Mention the change.
1569
1570 2010-09-29  Bruno Haible  <bruno@clisp.org>
1571
1572         Separate the module 'waitpid' from the module 'sys_wait'.
1573         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
1574         present.
1575         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
1576         gl_MODULE_INDICATOR_FOR_TESTS.
1577         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
1578         * modules/sys_wait (Depends-on): Remove waitpid.
1579         (Makefile.am): Substitute GNULIB_WAITPID.
1580         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
1581         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
1582         signature only if the 'waitpid' module is present.
1583         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
1584         * NEWS: Mention the change.
1585         * modules/grantpt (Depends-on): Add waitpid.
1586         * modules/wait-process (Depends-on): Likewise.
1587
1588 2010-09-29  Bruno Haible  <bruno@clisp.org>
1589
1590         More tests for module 'sys_wait'.
1591         * modules/sys_wait-c++-tests: New file.
1592         * tests/test-sys_wait-c++.cc: New file.
1593         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
1594         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1595
1596 2010-09-29  Bruno Haible  <bruno@clisp.org>
1597
1598         New module 'waitpid'.
1599         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
1600         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
1601         Don't include <process.h>.
1602         (waitpid): Declare only, using modern idiom.
1603         * m4/waitpid.m4: New file.
1604         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
1605         * modules/waitpid: New file.
1606         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
1607         (Makefile.am): Update.
1608         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1609
1610 2010-09-28  Bruno Haible  <bruno@clisp.org>
1611
1612         poll: Assume ANSI C.
1613         * lib/poll.c (poll): Use an ANSI C declaration.
1614
1615 2010-09-28  Bruno Haible  <bruno@clisp.org>
1616
1617         poll-h: Create poll.h on all platforms.
1618         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
1619         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
1620         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
1621         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
1622         (gl_REPLACE_POLL_H): Don't set POLL_H.
1623         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
1624         * modules/poll-h (Depends-on): Add include_next.
1625         (Makefile.am): Create poll.h unconditionally. Substitute also
1626         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
1627
1628 2010-09-28  Bruno Haible  <bruno@clisp.org>
1629
1630         Tests for module 'poll-h'.
1631         * modules/poll-h-c++-tests: New file.
1632         * tests/test-poll-h-c++.cc: New file.
1633
1634         Tests for module 'poll-h'.
1635         * modules/poll-h-tests: New file.
1636         * tests/test-poll-h.c: New file.
1637
1638 2010-09-28  Bruno Haible  <bruno@clisp.org>
1639
1640         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
1641         * modules/poll-h (Depends-on): Add 'extensions'.
1642
1643 2010-09-28  Bruno Haible  <bruno@clisp.org>
1644
1645         New module 'poll-h'.
1646         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
1647         (poll): Use modern idiom.
1648         * modules/poll-h: New file.
1649         * modules/poll (Files): Remove lib/poll.in.h.
1650         (Depends-on): Add poll-h.
1651         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
1652         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
1653         * m4/poll_h.m4: New file.
1654         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
1655         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
1656         and invoke gl_REPLACE_POLL_H.
1657         * lib/poll.c: Use common idiom.
1658         * tests/test-poll.c: Likewise.
1659         * doc/posix-headers/poll.texi: Mention the poll-h module.
1660         Suggested by Eric Blake.
1661
1662 2010-09-26  Bruno Haible  <bruno@clisp.org>
1663
1664         sys_wait: Implement WSTOPSIG.
1665         * lib/sys_wait.in.h (WSTOPSIG): New macro.
1666         Reported by Simon Josefsson.
1667
1668 2010-09-26  Simon Josefsson  <simon@josefsson.org>
1669
1670         stdlib, sys_wait: Avoid compilation error on mingw.
1671         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
1672
1673 2010-09-26  Bruno Haible  <bruno@clisp.org>
1674
1675         stdlib tests: Avoid code duplication.
1676         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
1677         * modules/sys_wait-tests (Files): Likewise.
1678         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
1679         * tests/test-stdlib.c: Include test-sys_wait.h.
1680         (main): Invoke test_sys_wait_macros.
1681         * tests/test-sys_wait.c: Include test-sys_wait.h.
1682         (main): Invoke test_sys_wait_macros.
1683
1684 2010-09-25  Simon Josefsson  <simon@josefsson.org>
1685
1686         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
1687         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
1688         sure Windows sockets are working before calling getaddrinfo.
1689         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
1690         * doc/gnulib.texi (Windows sockets): Fix typo.
1691
1692 2010-09-25  Bruno Haible  <bruno@clisp.org>
1693
1694         Tests for module 'regex-quote'.
1695         * modules/regex-quote-tests: New file.
1696         * tests/test-regex-quote.c: New file.
1697
1698         New module 'regex-quote'.
1699         * lib/regex-quote.h: New file.
1700         * lib/regex-quote.c: New file.
1701         * modules/regex-quote: New file.
1702         Suggested by Reuben Thomas <rrt@sc3d.org>.
1703
1704 2010-09-24  Bruno Haible  <bruno@clisp.org>
1705
1706         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
1707         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
1708
1709 2010-09-23  Bruno Haible  <bruno@clisp.org>
1710
1711         setenv: Relax license.
1712         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
1713         Blake.
1714         Requested by Eric Blake.
1715
1716 2010-09-22  Bruno Haible  <bruno@clisp.org>
1717
1718         termios: Relax license.
1719         * modules/termios (License): Change to LGPLv2+.
1720         Requested by Eric Blake.
1721
1722 2010-09-22  Bruno Haible  <bruno@clisp.org>
1723
1724         threadlib: Allow the package to change the default to 'no'.
1725         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
1726         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
1727         Reported by Paul Eggert.
1728
1729 2010-09-22  Pádraig Brady  <P@draigbrady.com>
1730             Bruno Haible  <bruno@clisp.org>
1731
1732         Fix endless loop in mbmemcasecoll.
1733         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
1734         byte.
1735         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
1736
1737 2010-09-22  Bruno Haible  <bruno@clisp.org>
1738
1739         Tests for module 'memcoll'.
1740         * modules/memcoll-tests: New file.
1741         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
1742
1743         memcoll, xmemcoll: Clarify size vs. length.
1744         * modules/memcoll.c (memcoll0): Clarify specification.
1745         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
1746         passed to collate_error.
1747
1748 2010-09-22  Bruno Haible  <bruno@clisp.org>
1749
1750         Tests for module 'memcasecmp'.
1751         * modules/memcasecmp-tests: New file.
1752         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
1753
1754 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1755
1756         * lib/pthread.in.h: Add split double-inclusion guard, and include
1757         system <pthread.h> if there is one.  Use @@-style as in other
1758         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
1759         pthread.h doesn't.
1760         (pthread_mutexattr_destroy, pthread_mutexattr_init):
1761         (pthread_mutexattr_settype, pthread_mutex_trylock):
1762         New static inline functions, if there's no system <pthread.h>.
1763         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
1764         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
1765         Approximate with mutexes if the system lacks spinlocks, as in
1766         MacOS.
1767         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
1768         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
1769         @@-style.  Check for spinlocks separately.
1770         (gl_PTHREAD_DEFAULTS): New macro.
1771         * modules/pthread: Redo to use a more typical style for in.h files.
1772
1773 2010-09-21  Eric Blake  <eblake@redhat.com>
1774
1775         net_if: enhance tests
1776         * tests/test-net_if.c (main): Move signature checks earlier.
1777         Print failures to stderr.
1778         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
1779         Document the bug that we do not yet fix.
1780
1781 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1782
1783         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
1784         about gnulib, not GSS.
1785
1786 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1787
1788         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
1789         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
1790         for Emacs.
1791         * build-aux/pmccabe2html: Make Makefile.am example code more
1792         cut-and-paste friendly.
1793
1794 2010-09-21  Simon Josefsson  <simon@josefsson.org>
1795
1796         * tests/test-net_if.c: New file.
1797         * modules/net_if-tests: New file.
1798
1799 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1800
1801         pthread: add pthread_spin_destroy
1802         * lib/pthread.in.h (pthread_spin_destroy): New function.
1803
1804 2010-09-19  Bruno Haible  <bruno@clisp.org>
1805
1806         gnulib-tool: Fix --help output.
1807         * gnulib-tool (func_usage): Fix help message.
1808         Reported by Reuben Thomas <rrt@sc3d.org>.
1809
1810 2010-09-18  Jim Meyering  <meyering@redhat.com>
1811
1812         maint.mk: avoid unexpanded \n in two diagnostics
1813         * top/maint.mk (sc_prohibit_always_true_header_tests):
1814         Don't use a literal \n in a halt=... assignment.  It would not be
1815         expanded, and the two \n bytes would appear in the diagnostic output
1816         rather than the desired newline.  Use halt=$$(printf ... instead.
1817         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
1818
1819 2010-09-18  Bruno Haible  <bruno@clisp.org>
1820
1821         netinet_in: Doc tweak.
1822         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
1823         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1824
1825 2010-09-18  Jim Meyering  <meyering@redhat.com>
1826
1827         init.sh: correct an outdated comment
1828         * tests/init.sh (create_exe_shims_):  s/function/alias/
1829
1830         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
1831         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
1832         a file named "*.exe" is removed between the glob expansion and the
1833         processing of that oddly named file.
1834
1835 2010-09-17  Eric Blake  <eblake@redhat.com>
1836
1837         mirbsd: add some more support
1838         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
1839         in BSD family.
1840         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
1841         devices as OpenBSD.
1842         * m4/host-os.m4 (mirbsd): Add MirBSD.
1843
1844         tests: fix unportable assumption on sys/wait.h
1845         * tests/test-sys_wait.c (main): Relax test.
1846         * tests/test-stdlib.c (main): Likewise.
1847
1848         init.sh: accomodate directory with no .exes
1849         * tests/init.sh: Accomodate directory containing only scripts.
1850
1851         tests: avoid compiler warning
1852         * tests/test-stdlib.c (main): Use the variable.
1853
1854         fdutimens, fdutimensat: update signature, again
1855         * lib/utimens.h (gl_futimens): Delete, and move signature...
1856         (fdutimens): ...here.
1857         (fdutimensat): Rearrange signature.
1858         (lutimensat): Rename variable for clarity.
1859         * lib/fdutimensat.c (fdutimensat): Update signature.
1860         * lib/utimens.c (fdutimens): Likewise.
1861         (gl_futimens): Delete.
1862         (utimens, lutimens): Update callers.
1863         * lib/futimens.c (futimens): Likewise.
1864         * tests/test-fdutimensat.c: Likewise.
1865         * tests/test-utimens.c: Likewise.
1866         * tests/test-futimens.h: Update comment.
1867         * NEWS: Mention this.
1868         Suggested by Paul Eggert.
1869
1870 2010-09-17  Bruno Haible  <bruno@clisp.org>
1871
1872         Take over the maintenance of some older macros from Autoconf.
1873         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
1874         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
1875         GNU Autoconf.
1876         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
1877         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
1878
1879 2010-09-17  Eric Blake  <eblake@redhat.com>
1880
1881         fdutimensat: drop atflag validation
1882         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
1883         with valid fd, to close a race scenario where futimens is
1884         unsupported and FILE was replaced by a symlink.
1885         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
1886         accordingly.
1887         Suggested by Paul Eggert.
1888
1889 2010-09-16  Bruno Haible  <bruno@clisp.org>
1890
1891         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
1892         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
1893
1894 2010-09-16  Bruno Haible  <bruno@clisp.org>
1895
1896         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
1897         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
1898         login_tty exists.
1899         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1900
1901 2010-09-16  Bruno Haible  <bruno@clisp.org>
1902
1903         login_tty: Make the replacement code work on BSD systems.
1904         * lib/login_tty.c: Include <sys/ioctl.h>.
1905         (login_tty): Use ioctl TIOCSCTTY when available.
1906         * modules/login_tty (Depends-on): Add sys_ioctl.
1907         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1908
1909 2010-09-16  Bruno Haible  <bruno@clisp.org>
1910
1911         login_tty: Stricter unit test.
1912         * modules/login_tty-tests (Depends-on): Add tcgetsid.
1913         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
1914         and tcgetsid() after login_tty.
1915         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1916
1917 2010-09-16  Bruno Haible  <bruno@clisp.org>
1918
1919         New module 'tcgetsid'.
1920         * lib/tcgetsid.c: New file.
1921         * m4/tcgetsid.m4: New file.
1922         * modules/tcgetsid: New file.
1923         * modules/termios (Depends-on): Add c++defs, warn-on-use.
1924         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
1925         GNULIB_TCGETSID, HAVE_TCGETSID.
1926         * lib/termios.in.h: Include <sys/types.h>.
1927         (tcgetsid): New declaration.
1928         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
1929         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
1930         * doc/posix-functions/tcgetsid.texi: Mention the new module.
1931         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
1932
1933 2010-09-16  Bruno Haible  <bruno@clisp.org>
1934
1935         Tests for module 'termios'.
1936         * modules/termios-c++-tests: New file.
1937         * modules/termios-tests: New file.
1938         * tests/test-termios-c++.cc: New file.
1939         * tests/test-termios.c: New file.
1940
1941         New module 'termios'.
1942         * modules/termios: New file.
1943         * lib/termios.in.h: New file.
1944         * m4/termios_h.m4: New file.
1945         * doc/posix-headers/termios.texi: Mention the new module.
1946
1947 2010-09-16  Eric Blake  <eblake@redhat.com>
1948
1949         fdutimensat: add an atflag parameter
1950         * lib/fdutimensat.c (fdutimensat): Add new parameter.
1951         * lib/utimens.h (fdutimensat): Update prototype.
1952         * tests/test-fdutimensat.c: Adjust test to match.
1953         * NEWS: Document the change.
1954         Suggested by Paul Eggert.
1955
1956 2010-09-16  Bruno Haible  <bruno@clisp.org>
1957
1958         Fix typos in comments.
1959         * lib/striconveh.h: Fix typo in comment.
1960         * lib/login_tty.c (login_tty): Likewise.
1961
1962 2010-09-15  Bruno Haible  <bruno@clisp.org>
1963
1964         stdlib: clarify MirBSD WEXITSTATUS bug
1965         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
1966         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1967
1968 2010-09-15  Eric Blake  <eblake@redhat.com>
1969
1970         stdlib: work around MirBSD WEXITSTATUS bug
1971         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
1972         * modules/stdlib (Depends-on): Add sys_wait.
1973         * tests/test-sys_wait.c (main): Enhance test.
1974         * tests/test-stdlib.c (main): Likewise.
1975         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
1976
1977         docs: mention MacOS issue with WEXITSTATUS(constant)
1978         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
1979         issue.
1980         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1981
1982         strnlen: add tests
1983         * modules/strnlen-tests: New file.
1984         * tests/test-strnlen.c: Likewise.
1985
1986 2010-09-14  Bruno Haible  <bruno@clisp.org>
1987
1988         unistr/base: Avoid link errors when module 'libunistring' is also used.
1989         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
1990         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
1991         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
1992         Declare also when HAVE_LIBUNISTRING is set.
1993         Reported by Pádraig Brady <P@draigbrady.com>.
1994
1995 2010-09-14  Eric Blake  <eblake@redhat.com>
1996
1997         test-rawmemchr: make more robust
1998         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
1999         (Depends-on, configure.ac): Add needed prerequisites to use it.
2000         * modules/memchr-tests (Files, Depends-on, configure.ac):
2001         Likewise, to avoid implicit reliance on memchr module prereqs.
2002         * tests/test-memchr.c (main): Ensure proper masking.
2003         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
2004         reads.
2005
2006         memchr: detect glibc Alpha bug
2007         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
2008         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
2009         Alpha.
2010         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
2011         * tests/test-memchr.c (main): Enhance test.
2012         Reported by Nelson H. F. Beebe.
2013
2014 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2015
2016         fts, getcwd, glob: audit for dirfd returning -1
2017         * lib/fts.c (opendir): Remove #define; no longer used.
2018         (opendirat): New arg PDIR_FD.  All callers changed.
2019         (fts_build, _opendir2): Use new opendirat to avoid the need for
2020         dirfd, or for checking whether dirfd returns a negative value.
2021         Don't use opendir; always use openat followed by fdopendir.
2022         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
2023         it.
2024         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
2025         returns -1 here.
2026         * modules/fts (Depends-on): Remove dirfd.
2027         * modules/getcwd (Depends-on): Likewise.
2028
2029 2010-09-13  Eric Blake  <eblake@redhat.com>
2030
2031         float: fix broken MirBSD header
2032         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
2033         * doc/posix-headers/float.texi (float.h): Document it.
2034
2035 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2036
2037         fts: use O_NOFOLLOW to avoid race condition when opening a directory
2038         * lib/fts.c (opendirat): New arg extra_flags.
2039         (__opendir2): Use it to avoid following symlinks when opening
2040         a directory, if symlinks are not supposed to be followed.  See
2041         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
2042
2043         fdopendir: preserve argument fd before returning
2044         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
2045         (fdopendir_with_dup, fd_clone_opendir): New static functions.
2046         (fdopendir): Use them, arranging for FD to be open to the same
2047         directory that it was when it started.  (It might be temporarily
2048         closed while fdopendir is running, so this not thread- or
2049         signal-safe.)  Be careful to do the right thing even when file
2050         descriptors are scarce and dup fails with errno == EMFILE.  See
2051         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
2052
2053 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
2054
2055         regex: Pass the system regex if its only problem is 32-bit regoff_t.
2056         * NEWS: Document change.
2057         * m4/regex.m4: Disable test for regoff_t size.
2058
2059 2010-09-13  Jim Meyering  <meyering@redhat.com>
2060
2061         fts: don't operate on an invalid file descriptor after failed dup
2062         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
2063         negative file descriptor.
2064
2065 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2066
2067         savedir: add streamsavedir, deprecate fdsavedir
2068         * NEWS: Mention deprecation of fdsavedir.
2069         * lib/savedir.c (streamsavedir): New extern function, whose name
2070         ends in "savedir" to be consistent with the others.  This differs
2071         from savedirstream in that it doesn't close its argument.  The
2072         next version of GNU tar will use this instead of fdsavedir, to
2073         avoid some race conditions and conserve file descriptors.
2074         (savedirstream): Reimplement as a wrapper around streamsavedir.
2075         (fdsavedir): Add a comment deprecating this function.  As far as
2076         I know, only GNU tar used it, and GNU tar doesn't need it any more.
2077         * lib/savedir.h (streamsavedir): New decl.
2078         (fdsavedir): Add a comment deprecating this.
2079
2080 2010-09-10  Bruno Haible  <bruno@clisp.org>
2081
2082         langinfo: Fix last commit.
2083         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
2084         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
2085         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2086
2087 2010-09-10  Bruno Haible  <bruno@clisp.org>
2088
2089         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
2090         * lib/progreloc.c (O_EXEC): Define fallback.
2091
2092 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2093
2094         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
2095         * NEWS: Document recent changes to fcntl-h.
2096         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
2097         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
2098         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
2099         Similarly for O_SEARCH; this last was already true, but not documented.
2100         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
2101         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
2102         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
2103         Likewise.
2104         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
2105         is zero, not whether it is defined.
2106         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
2107         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
2108         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
2109
2110 2010-09-10  Bruno Haible  <bruno@clisp.org>
2111
2112         langinfo, nl_langinfo: Fix for IRIX 5.3.
2113         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
2114         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
2115         HAVE_LANGINFO_YESEXPR.
2116         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
2117         HAVE_LANGINFO_YESEXPR.
2118         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
2119         HAVE_LANGINFO_T_FMT_AMPM is 0.
2120         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
2121         HAVE_LANGINFO_YESEXPR is 0.
2122         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
2123         NOEXPR.
2124         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
2125         * doc/posix-functions/nl_langinfo.texi: Likewise.
2126         Reported by Eric Blake.
2127
2128 2010-09-10  Bruno Haible  <bruno@clisp.org>
2129
2130         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
2131         * doc/glibc-functions/login_tty.texi: Mention the include file problem
2132         on FreeBSD 8.0 and OpenBSD 4.6.
2133         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
2134         * m4/pty_h.m4 (gl_PTY_H): Likewise.
2135         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
2136         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
2137         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
2138         ac_includes_default.
2139         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2140
2141 2010-09-09  Eric Blake  <eblake@redhat.com>
2142
2143         strsignal: work around NetBSD bug
2144         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
2145         * lib/string.in.h (includes): Likewise.
2146         * doc/posix-functions/strsignal.texi (strsignal): Document the
2147         bug.
2148         Reported by Nelson H. F. Beebe.
2149
2150         gnulib-tool: work with NetBSD /bin/sh
2151         * gnulib-tool (func_cache_var, func_cache_lookup_module)
2152         (func_get_description, func_get_comment, func_get_status)
2153         (func_get_notice, func_get_applicability, func_get_filelist)
2154         (func_get_dependencies, func_get_autoconf_early_snippet)
2155         (func_get_autoconf_snippet, func_get_automake_snippet)
2156         (func_get_include_directive, func_get_link_directive)
2157         (func_get_license, func_get_maintainer, func_import): Avoid
2158         shell syntax errors from parsing syntax extensions.
2159
2160 2010-09-09  Bruno Haible  <bruno@clisp.org>
2161
2162         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
2163         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
2164         a reliable way to determine whether the 'alias' command works.
2165
2166 2010-09-08  Jim Meyering  <meyering@redhat.com>
2167
2168         init.sh: penalize a set-x-impaired shell; don't disqualify it
2169         * tests/init.sh: Too many shells corrupt application stderr when
2170         you set -x, so we can't afford to disqualify them, since at least
2171         on Irix-6.5, that would disqualify all bourne shells.
2172         Instead, use a two-pass approach.
2173         On the first pass, try to find a shell that meets the stricter
2174         condition that set -x does not corrupt stderr.
2175         If no shell meets the stricter condition, retest each candidate
2176         shell, but without that extra condition.  Finally, when
2177         VERBOSE=yes is requested and set -x might cause trouble, simply
2178         issue a warning and refrain from enabling debug output.
2179
2180 2010-09-08  Eric Blake  <eblake@redhat.com>
2181
2182         unsetenv: fix OpenBSD bug
2183         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
2184         * doc/posix-functions/unsetenv.texi (unsetenv): Update
2185         documentation.
2186         Reported by Jim Meyering.
2187
2188         strtod: work around IRIX 6.5 bug
2189         * lib/strtod.c (strtod): Reparse number on shorter string if
2190         exponent parse was invalid.
2191         * tests/test-strtod.c (main): Add check for "0x1p 2".
2192         Reported by Tom G. Christensen.
2193
2194         getopt: optimize previous patch
2195         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
2196         empty variable.  Speed up awk script.
2197         Reported by Paolo Bonzini.
2198
2199 2010-09-08  Jim Meyering  <meyering@redhat.com>
2200
2201         test.sh: disqualify shells for which set -x corrupts stderr
2202         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
2203         and OpenBSD 4.7.  They make it so with "set -x", environment settings
2204         appear in stderr output.  For example, this command:
2205             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
2206         prints "P=1" on those two systems:
2207
2208 2010-09-08  Bruno Haible  <bruno@clisp.org>
2209
2210         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
2211         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
2212         commands, because some shells ignore redirections when there is an
2213         error in the command lookup.
2214         Reported by Eric Blake.
2215
2216 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
2217
2218         * lib/regex.h: Fix a mention of `regex_compile' (should be
2219         `re_compile_pattern').
2220         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
2221         (re_set_registers): Correct name of parameter in comment.
2222
2223         * doc/regex.texi: Add documentation for missing syntax flags.
2224         Remove commented-out documentation of defunct syntax option
2225         RE_NO_EMPTY_ALTS.
2226         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
2227         Add documentation of re_set_registers.
2228         Document trick to re-use a pattern buffer by setting fastmap manually.
2229         Update documentation of struct re_pattern_buffer per public members.
2230         Uncomment documentation of equivalence class operators and
2231         collating symbol operators, since they are now implemented,
2232         Explain leftmost-longest matching in relation to alternatives.
2233         Tidy documentation of substring matching.
2234         Remove POSIX documentation, which is done better in
2235         glibc, and refer the reader there. Keep BSD API documentation, as
2236         that is not readily available elsewhere.
2237
2238 2010-09-07  Eric Blake  <eblake@redhat.com>
2239
2240         getopt: handle POSIXLY_CORRECT set but not exported
2241         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
2242         export state of POSIXLY_CORRECT, due to bash set -o posix.
2243         Reported by Dustin J. Mitchell.
2244
2245 2010-09-05  Bruno Haible  <bruno@clisp.org>
2246
2247         gnulib-tool: Highlight the changed options.
2248         * gnulib-tool (func_usage): Display the --import, --add-import,
2249         --remove-import explanations in bold font.
2250
2251 2010-09-06  Karl Berry  <karl@gnu.org>
2252
2253         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
2254
2255 2010-09-05  Bruno Haible  <bruno@clisp.org>
2256
2257         uniwidth/width: Update comment.
2258         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
2259         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
2260
2261 2010-09-05  Bruno Haible  <bruno@clisp.org>
2262
2263         isinf, isnan: Relax license.
2264         * modules/isinf (License): Change from GPL to LGPL, with consent from
2265         Ben Pfaff.
2266         * modules/isnan (License): Likewise.
2267         Requested by Ludovic Courtès.
2268
2269 2010-09-04  Bruno Haible  <bruno@clisp.org>
2270
2271         gnulib-tool: Help migration from --import to --add-import or --update.
2272         * gnulib-tool: Emit a verbose error message when --import is used
2273         without any module name.
2274
2275 2010-09-04  Bruno Haible  <bruno@clisp.org>
2276
2277         Update doc about gnulib-tool.
2278         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
2279         'gnulib-tool --update' in more detail.
2280         Reported by Eric Blake.
2281
2282 2010-09-04  Bruno Haible  <bruno@clisp.org>
2283
2284         gnulib-tool: Change --import. New options --add/remove-import.
2285         * gnulib-tool: New options --add-import, --remove-import.
2286         (func_usage): Document them.
2287         (have_associative): Define always.
2288         (func_import): In import mode, don't merge the specified settings with
2289         the cached settings. Implement remove-import mode.
2290         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
2291         Explain when to use them versus --import.
2292         (Simple update): Use --add-import instead of --import.
2293         * NEWS: Mention the change.
2294
2295 2010-09-04  Bruno Haible  <bruno@clisp.org>
2296
2297         * doc/gnulib-tool.texi (Initial import): Update paragraph about
2298         separate gnulib.mk.
2299
2300 2010-09-04  Bruno Haible  <bruno@clisp.org>
2301
2302         gnulib-tool: Don't talk about CVS any more.
2303         * gnulib-tool (func_usage, func_import): Write "version control"
2304         instead of CVS.
2305
2306 2010-09-04  Jim Meyering  <meyering@redhat.com>
2307
2308         maint.mk: avoid obscure sc_copyright_check failure in coreutils
2309         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
2310         false positives (whose names may be ill-chosen) when searching
2311         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
2312         would cause a false-positive.
2313
2314         avoid coreutils "make distcheck" failure
2315         Coreutils tests with an absolute build directory name that contains
2316         a space.  Not quoting this directory name caused a failure.
2317         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
2318         * tests/test-vc-list-files-cvs.sh: Likewise.
2319
2320 2010-09-04  Bruno Haible  <bruno@clisp.org>
2321
2322         gnulib-tool: Avoid error when run in a package without Makefile.am.
2323         * gnulib-tool: When collecting the m4dirs in a package that does not
2324         have a Makefile.am, eliminate those directories that contain no
2325         gnulib-cache.m4. Fix expression that counts these directories.
2326
2327 2010-09-04  Bruno Haible  <bruno@clisp.org>
2328
2329         update-copyright test: Improve output when perl is missing or too old.
2330         * tests/test-update-copyright.sh: Move test of Perl version down after
2331         the test whether Perl exists. Provide an explanation relating Perl's
2332         error message to Automake's SKIP: message.
2333
2334 2010-09-04  Bruno Haible  <bruno@clisp.org>
2335
2336         Don't augment PATH in TESTS_ENVIRONMENT.
2337         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
2338         set abs_aux_dir instead of augmenting PATH.
2339         * modules/vc-list-files-tests (Makefile.am): Likewise.
2340         * tests/test-update-copyright.sh: Augment PATH here.
2341         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
2342         path_prepend_.
2343         * tests/test-vc-list-files-git.sh: Likewise.
2344
2345 2010-09-04  Jim Meyering  <meyering@redhat.com>
2346
2347         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
2348         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
2349
2350 2010-09-04  Bruno Haible  <bruno@clisp.org>
2351
2352         strdup: Fix compilation error in C++ mode.
2353         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
2354         the macro.
2355
2356 2010-09-04  Bruno Haible  <bruno@clisp.org>
2357
2358         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
2359         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
2360         macro into a function.
2361         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2362
2363 2010-09-04  Bruno Haible  <bruno@clisp.org>
2364
2365         Set PATH_SEPARATOR the same way autoconf does.
2366         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
2367         the value of PATH_SEPARATOR the same way autoconf-generated configure
2368         scripts do.
2369         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
2370         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
2371
2372 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2373
2374         Set PATH_SEPARATOR the same way autoconf does.
2375         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
2376         the same way autoconf-generated configure scripts do.
2377         * posix-modules: Likewise.
2378
2379 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2380
2381         hash: fix safe_hasher const typo
2382         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
2383         const; otherwise, there is a type error later.
2384
2385 2010-09-02  Jim Meyering  <meyering@redhat.com>
2386
2387         test-update-copyright.sh: require perl 5.8.0
2388         * tests/test-update-copyright.sh: Require 5.8.0,
2389         which Tom G. Christensen has confirmed is adequate,
2390         while 5.6.1 is not.
2391
2392 2010-09-02  Eric Blake  <eblake@redhat.com>
2393
2394         tests: init.sh improvements for re-exec'ing with zsh
2395         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
2396         -vx through shell re-exec.
2397         Reported by Tom G. Christensen.
2398
2399         wctype: fix typo in previous commit
2400         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
2401         Reported by Ludovic Courtès.
2402
2403 2010-09-02  Jim Meyering  <meyering@redhat.com>
2404
2405         test-update-copyright.sh: skip test if Perl is too old
2406         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
2407         Reported by Tom G. Christensen.
2408
2409 2010-09-02  Bruno Haible  <bruno@clisp.org>
2410
2411         wctype: Avoid compilation error on IRIX 6.5.30.
2412         * lib/wctype.in.h (iswblank): Declare with a replacement if
2413         REPLACE_ISWBLANK is set.
2414         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
2415         declared. Set REPLACE_ISWBLANK.
2416         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
2417         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
2418         * doc/posix-headers/wctype.texi: Likewise.
2419         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2420
2421 2010-09-01  Bruno Haible  <bruno@clisp.org>
2422
2423         New module 'socketlib'.
2424         * modules/socketlib: New file.
2425         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
2426         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
2427         * modules/sockets (Depends-on): Add socketlib.
2428         Suggested by Sam Steingold <sds@gnu.org>.
2429
2430 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2431
2432         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
2433
2434         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
2435         when one needs search access to a directory but not read access.
2436         On systems where it is available, it works in some cases where
2437         O_RDONLY does not, namely on directories that are searchable but
2438         not readable, and which need only to be searchable.  If O_SEARCH
2439         is not available, fall back to the traditional method of using
2440         O_RDONLY.
2441
2442         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
2443         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
2444         when opening a directory that needs only to be searchable.
2445         * lib/chdir-safer.c (chdir_no_follow): Likewise.
2446         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
2447         * lib/openat-proc.c (openat_proc_name): Likewise.
2448         * lib/openat.c (openat_needs_fchdir): Likewise.
2449         * lib/save-cwd.c (save_cwd): Likewise.
2450         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
2451
2452 2010-08-28  Bruno Haible  <bruno@clisp.org>
2453
2454         New module 'host-cpu-c-abi'.
2455         * modules/host-cpu-c-abi: New file.
2456         * m4/host-cpu-c-abi.m4: New file, based on part of
2457         clisp/src/m4/general.m4.
2458         Requested by Sam Steingold <sds@gnu.org>.
2459
2460 2010-08-31  Eric Blake  <eblake@redhat.com>
2461         and Jim Meyering  <meyering@redhat.com>
2462
2463         hash: factor, and guard against misbehaving hasher function
2464         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
2465         of table->hasher's return value.  Also protect against a hash value
2466         so large that adding it to table->bucket results in a NULL pointer.
2467         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
2468         Use it in place of open-coded check-and-abort.
2469
2470 2010-08-30  Bruno Haible  <bruno@clisp.org>
2471
2472         hash: silence spurious clang warning
2473         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
2474         Reported by Eric Blake.
2475
2476 2010-08-30  Eric Blake  <eblake@redhat.com>
2477
2478         strstr, memmem, strcasestr: avoid leaked shell message
2479         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
2480         FreeBSD.
2481         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2482         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2483
2484         tests: silence clang warning
2485         * tests/test-malloca.c (do_allocation): Avoid dead store.
2486
2487 2010-08-29  Bruno Haible  <bruno@clisp.org>
2488
2489         gettext: Fix recent mistake.
2490         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
2491
2492 2010-08-29  Bruno Haible  <bruno@clisp.org>
2493
2494         selinux-h: Offer a --without-selinux option.
2495         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
2496         --without-selinux was specified, skip all tests and define
2497         HAVE_SELINUX_SELINUX_H to 0.
2498         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
2499         set LIB_SELINUX to empty.
2500         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
2501         gl_LIBSELINUX. If --without-selinux was specified, replace
2502         selinux/context.h.
2503         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
2504
2505 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2506             Bruno Haible  <bruno@clisp.org>
2507
2508         Make the module 'realloc-gnu' work again on AIX and OSF/1.
2509         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
2510         of HAVE_REALLOC.
2511         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
2512         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
2513         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
2514         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2515
2516 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2517             Bruno Haible  <bruno@clisp.org>
2518
2519         Make the module 'calloc-gnu' work again on AIX and OSF/1.
2520         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
2521         HAVE_CALLOC.
2522         * lib/xmalloc.c: Update accordingly.
2523         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
2524         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
2525         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2526
2527 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2528             Bruno Haible  <bruno@clisp.org>
2529
2530         Make the module 'malloc-gnu' work again on AIX and OSF/1.
2531         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
2532         HAVE_MALLOC.
2533         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
2534         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
2535         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2536
2537 2010-08-29  Bruno Haible  <bruno@clisp.org>
2538
2539         Update modules list.
2540         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
2541         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
2542         (String handling <string.h>): Add astrxfrm.
2543         (File system functions): Add readlinkat.
2544
2545 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2546
2547         Tests for module 'realloc-gnu'.
2548         * modules/realloc-gnu-tests: New file.
2549         * tests/test-realloc-gnu.c: New file.
2550
2551         Tests for module 'calloc-gnu'.
2552         * modules/calloc-gnu-tests: New file.
2553         * tests/test-calloc-gnu.c: New file.
2554
2555         Tests for module 'malloc-gnu'.
2556         * modules/malloc-gnu-tests: New file.
2557         * tests/test-malloc-gnu.c: New file.
2558
2559 2010-08-28  Bruno Haible  <bruno@clisp.org>
2560
2561         Rename module 'realloc' -> 'realloc-gnu'.
2562         * modules/realloc-gnu: New file, copied from modules/realloc.
2563         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
2564         obsolete.
2565         * modules/mgetgroups (Depends-on): Update.
2566         * doc/posix-functions/realloc.texi: Update.
2567         * NEWS: Mention the change.
2568
2569         Rename module 'calloc' -> 'calloc-gnu'.
2570         * modules/calloc-gnu: New file, copied from modules/calloc.
2571         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
2572         obsolete.
2573         * doc/posix-functions/calloc.texi: Update.
2574         * NEWS: Mention the change.
2575
2576         Rename module 'malloc' -> 'malloc-gnu'.
2577         * modules/malloc-gnu: New file, copied from modules/malloc.
2578         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
2579         obsolete.
2580         * modules/argp (Depends-on): Update.
2581         * modules/regex (Depends-on): Update.
2582         * doc/posix-functions/malloc.texi: Update.
2583         * NEWS: Mention the change.
2584
2585 2010-08-28  Eric Blake  <eblake@redhat.com>
2586
2587         pread, pwrite: add missing dependency
2588         * modules/pread (Depends-on): Add extensions.
2589         * modules/pwrite (Depends-on): Likewise.
2590
2591 2010-08-28  Bruno Haible  <bruno@clisp.org>
2592
2593         unistr/u*-strchr: Fix tests dependencies.
2594         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
2595         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
2596         Reported by Ian Beckwith <ianb@erislabs.net>.
2597
2598 2010-08-28  Bruno Haible  <bruno@clisp.org>
2599
2600         read-file: Don't occupy too much unused memory.
2601         * lib/read-file.c (fread_file): Shrink the buffer at the end.
2602
2603 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
2604             Eric Blake  <eblake@redhat.com>
2605             Bruno Haible  <bruno@clisp.org>
2606
2607         read-file: Avoid memory reallocations with regular files.
2608         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
2609         (fread_file): With regular files, use the remaining length as the
2610         initial buffer size.  Check against overflow.
2611         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
2612         sys_stat.
2613
2614 2010-08-28  Bruno Haible  <bruno@clisp.org>
2615
2616         ftello: Relax license.
2617         * modules/ftello (License): Relax to LGPLv2+.
2618         Reported by Eric Blake.
2619
2620 2010-08-28  Bruno Haible  <bruno@clisp.org>
2621
2622         Avoid relocwrapper link errors due to gnulib replacement functions.
2623         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
2624         function.
2625         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2626
2627 2010-08-28  Bruno Haible  <bruno@clisp.org>
2628
2629         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
2630         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
2631         defined.
2632         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
2633         Suggested by Eric Blake.
2634
2635 2010-08-28  Bruno Haible  <bruno@clisp.org>
2636
2637         sys_socket, netdb: Ensure socklen_t gets defined.
2638         * modules/sys_socket (Depends-on): Add socklen.
2639         * modules/netdb (Depends-on): Likewise.
2640         * modules/getaddrinfo (Depends-on): Remove socklen.
2641         * modules/getsockopt (Depends-on): Likewise.
2642         * modules/setsockopt (Depends-on): Likewise.
2643         * tests/test-sys_socket.c: Check that socklen_t is defined.
2644         * tests/test-netdb.c: Likewise.
2645         * m4/socklen.m4: Update comments.
2646         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2647
2648 2010-08-27  Eric Blake  <eblake@redhat.com>
2649
2650         login_tty: add missing dependency
2651         * modules/login_tty (Depends-on): Add pty.
2652
2653 2010-08-26  Eric Blake  <eblake@redhat.com>
2654
2655         lib-symbol-versions: fix m4 quoting
2656         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
2657         format for AC_LINK_IFELSE.
2658
2659         glob: fix compile test
2660         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
2661
2662         btowc: fix missing file
2663         * modules/btowc (Files): Also ship locale-fr.m4.
2664
2665         lseek: fix link test
2666         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
2667         AC_LINK_IFELSE.
2668
2669         include_next: silence autoconf 2.68 warning
2670         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
2671         AC_COMPILE_IFELSE as special.
2672         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
2673         autoconf < 2.68.
2674
2675         acl: fix compilation test
2676         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
2677         AC_COMPILE_IFELSE.
2678
2679 2010-08-26  Bruno Haible  <bruno@clisp.org>
2680
2681         Modernize AC_TRY_RUN invocations.
2682         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
2683         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2684         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
2685         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
2686         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
2687         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
2688         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2689         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2690         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2691         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2692         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2693         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2694         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2695         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2696         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2697         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2698         gl_MBRLEN_NUL_RETVAL): Likewise.
2699         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2700         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
2701         Likewise.
2702         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2703         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2704         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2705         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2706         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
2707         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
2708         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
2709         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2710         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
2711         Likewise.
2712         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
2713         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
2714         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2715         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2716         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2717         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2718         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2719         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
2720         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2721         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2722
2723 2010-08-26  Bruno Haible  <bruno@clisp.org>
2724
2725         Modernize AC_TRY_LINK invocations.
2726         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
2727         AC_TRY_LINK.
2728         * m4/argp.m4 (gl_ARGP): Likewise.
2729         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2730         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2731         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
2732         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
2733         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
2734         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
2735         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2736         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2737         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
2738         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
2739         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
2740         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
2741         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
2742         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2743         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
2744         * m4/hostent.m4 (gl_HOSTENT): Likewise.
2745         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2746         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
2747         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
2748         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
2749         Likewise.
2750         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
2751         Likewise.
2752         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
2753         Likewise.
2754         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
2755         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
2756         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
2757         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2758         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2759         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
2760         * m4/servent.m4 (gl_SERVENT): Likewise.
2761         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2762         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2763         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2764         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2765         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2766         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2767         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2768         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2769         * modules/tsearch-tests (configure.ac): Likewise.
2770
2771 2010-08-26  Bruno Haible  <bruno@clisp.org>
2772
2773         Modernize AC_TRY_COMPILE invocations.
2774         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
2775         AC_TRY_COMPILE.
2776         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
2777         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
2778         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
2779         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
2780         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
2781         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
2782         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2783         * m4/lock.m4 (gl_LOCK): Likewise.
2784         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
2785         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2786         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
2787         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2788         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
2789         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
2790         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
2791         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
2792         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
2793         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
2794         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
2795         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
2796         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
2797         extraneous semicolon.
2798
2799 2010-08-26  Jim Meyering  <meyering@redhat.com>
2800
2801         stat-time: relax license LGPL
2802         * modules/stat-time (License): Change from GPL to LGPL,
2803         with consent from all contributors, for use in libguile.
2804         Requested by Ludovic Courtès.
2805
2806 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
2807
2808         poll: return immediately on POLLHUP.
2809         * lib/poll.c (poll): Always set timeout before wait_timeout is
2810         computed.
2811
2812 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2813
2814         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
2815         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
2816         rmdir ("dir/.//"), unlinkat.
2817
2818 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2819
2820         stdbool: avoid spurious failure with modern xlc
2821         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2822
2823 2010-08-24  Bruno Haible  <bruno@clisp.org>
2824
2825         getloadavg: simplify code
2826         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
2827         gl_have_func. Update comments.
2828
2829 2010-08-24  Eric Blake  <eblake@redhat.com>
2830
2831         getloadavg: don't define SVR4 on cygwin
2832         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
2833         only define SVR4 when -lkvm is required.
2834         Reported by Yaakov Selkowitz.
2835
2836 2010-08-24  Bruno Haible  <bruno@clisp.org>
2837
2838         priv-set: fix comment
2839         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
2840
2841 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2842
2843         priv-set: fix comments
2844         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
2845         to match code, as suggested by David Bartley in:
2846         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
2847
2848 2010-08-23  Eric Blake  <eblake@redhat.com>
2849
2850         stdbool: avoid rejecting clang
2851         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2852         * tests/test-stdbool.c: Enable more tests if using the system
2853         <stdbool.h> instead of the gnulib replacement.
2854         (main): Move xlc bug test to a runtime test for all compilers.
2855         Reported by Anders Kaseorg.
2856
2857         argz: fix shell quoting issue
2858         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
2859         Reported by Charles Wilson.
2860
2861 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
2862             Erik Faye-Lund <kusmabite@gmail.com>
2863
2864         poll, select: handle ERROR_BROKEN_PIPE.
2865         * lib/poll.c (win32_compute_revents): Return POLLHUP when
2866         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2867         * lib/select.c (win32_compute_revents): Do not mark a pipe
2868         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2869
2870 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
2871
2872         fts: allow compilation with C++
2873         * lib/fts_.h: Specify extern "C" linkage with C++.
2874
2875 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2876
2877         Fix gnulib-tool sed script de-commentation for AIX sed.
2878         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
2879         sed.
2880
2881 2010-08-17  Eric Blake  <eblake@redhat.com>
2882
2883         test-stddef: test for (some) offsetof bugs
2884         * tests/test-stddef.c: Enhance test to ensure correct type of
2885         offsetof.
2886         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
2887         that we are not fixing at this time.
2888
2889 2010-08-15  Bruno Haible  <bruno@clisp.org>
2890
2891         stpncpy: Allow stpncpy to be defined as a macro.
2892         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
2893         if it's already correctly declared.
2894         * lib/string.in.h (stpncpy): Undefine before redefining.
2895         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
2896
2897 2010-08-14  Bruno Haible  <bruno@clisp.org>
2898
2899         Rename module 'memxfrm' to 'amemxfrm'.
2900         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
2901         (amemxfrm): Renamed from memxfrm.
2902         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
2903         (amemxfrm): Renamed from memxfrm.
2904         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
2905         * NEWS: Mention the change.
2906         * MODULES.html.sh (String handling <string.h>): Update.
2907         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
2908         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
2909         * lib/unicase/u16-casexfrm.c: Likewise.
2910         * lib/unicase/u32-casexfrm.c: Likewise.
2911         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
2912         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
2913         * lib/uninorm/u16-normxfrm.c: Likewise.
2914         * lib/uninorm/u32-normxfrm.c: Likewise.
2915         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
2916         memxfrm.
2917         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
2918         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
2919         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
2920         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
2921         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
2922         Suggested by Paul Eggert.
2923
2924 2010-08-14  Bruno Haible  <bruno@clisp.org>
2925
2926         Tests for module 'astrxfrm'.
2927         * modules/astrxfrm-tests: New file.
2928         * tests/test-astrxfrm.c: New file.
2929
2930         New module 'astrxfrm'.
2931         * lib/astrxfrm.h: New file.
2932         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
2933         * modules/astrxfrm: New file.
2934
2935 2010-08-14  Reuben Thomas <rrt@sc3d.org>
2936
2937         regex: Tweak doc.
2938         * doc/regex.texi (Overview): Don't mention regex.c.
2939         (GNU Regular Expression Compiling): Likewise.
2940         (Match-end-of-line Operator): Mention 'not_eol'.
2941
2942 2010-08-14  Brian Gough  <bjg@gnu.org>
2943             Bruno Haible  <bruno@clisp.org>
2944
2945         git-merge-changelog: add doc relating to use with bzr and hg.
2946         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
2947
2948 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
2949
2950         pthread: fix pthread.h creation for srcdir != builddir
2951         * modules/pthread (Makefile.am): Fix the rule to work also in a
2952         non-srcdir build.
2953
2954 2010-08-13  Karl Berry  <karl@gnu.org>
2955
2956         * doc/regex.texi (Predefined Syntaxes): @smallexample.
2957         * doc/posix-*/*: force line break before @url of POSIX
2958         specifications.
2959         Suggested by Werner Lemberg.
2960
2961 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2962
2963         strtod: fix const diagnostic
2964         * lib/strtod.c (strtod): Don't assign const char * to char *,
2965         as this elicits a warning from GCC when warnings are enabled.
2966
2967 2010-08-10  Pádraig Brady <P@draigbrady.com>
2968         and Eric Blake  <eblake@redhat.com>
2969
2970         copy-acl: ignore ENOTSUP on HP-UX
2971         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
2972         so that it is available for HP-UX.
2973         * lib/copy-acl.c (qcopy_acl): Use it.
2974         Reported by Patrick M. Callahan.
2975
2976 2010-08-10  Eric Blake  <eblake@redhat.com>
2977
2978         open, chown: relax license
2979         * modules/open (License): Change to LGPLv2+, with consent by all
2980         authors, for use in augeas.
2981         * modules/chown (License): Likewise.
2982         * modules/lchown (Likewise): Likewise.
2983         Requested by Adam Stokes.
2984
2985 2010-08-09  Karl Berry  <karl@gnu.org>
2986
2987         * build-aux/ar-lib: new file, import from Automake.
2988         * config/srclist.txt: autocheck for updates.
2989
2990 2010-08-09  Eric Blake  <eblake@redhat.com>
2991
2992         readlinkat: adjust client modules
2993         * modules/areadlinkat (Depends-on): Use readlinkat, not
2994         symlinkat.
2995         * modules/areadlinkat-with-size (Depends-on): Likewise.
2996
2997         mknod: be more vocal about danger of running tests as root
2998         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
2999         root, since that is just asking for problems.
3000         Suggested by Bruno Haible, based on a report by Rainer Tammer.
3001
3002         readlinkat: split into its own module
3003         * modules/symlinkat: Split readlinkat...
3004         * modules/readlinkat: ...into separate module.
3005         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
3006         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
3007         * lib/symlinkat.c (readlinkat): Move...
3008         * lib/readlinkat.c: ...into new file.
3009         * modules/symlinkat-tests: Split readlinkat test...
3010         * modules/readlinkat-tests: ...into separate module.
3011         * tests/test-symlinkat.c: Split...
3012         * tests/test-readlinkat.c: ...into new file.
3013         * NEWS: Document the split.
3014         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
3015         * lib/unistd.in.h (readlinkat): Likewise.
3016         Suggested by Bruno Haible.
3017
3018 2010-08-08  Bruno Haible  <bruno@clisp.org>
3019
3020         memxfrm: Speed up.
3021         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
3022         that usually only one call to strxfrm is necessary for each string
3023         part.
3024         Reported by Paul Eggert <eggert@cs.ucla.edu>.
3025
3026 2010-08-07  Karl Berry  <karl@gnu.org>
3027
3028         * doc/posix-headers/limits.texi,
3029         * doc/posix-functions/malloc.texi,
3030         * doc/posix-functions/strsignal.texi: missing @item.
3031         * doc/ld-version-script.texi: spurious leading i.
3032         * doc/regex.texi (Interval Operators): no commas inside @var.
3033
3034 2010-08-01  Bruno Haible  <bruno@clisp.org>
3035
3036         Integrate the regex documentation.
3037         * doc/gnulib.texi: Define 'cn' index.
3038         (Regular expressions): New a chapter that includes regex.texi and
3039         regexprops-generic.texi.
3040         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
3041         syntax.
3042
3043         Whitespace cleanup.
3044         * doc/regex.texi: Remove trailing spaces.
3045
3046         Add regex documentation.
3047         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
3048         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
3049         Written by Kathy A. Hargreaves and Karl Berry.
3050
3051 2010-08-01  Bruno Haible  <bruno@clisp.org>
3052
3053         link: Update documentation.
3054         * doc/posix-functions/link.texi: Update regarding Solaris.
3055
3056 2010-07-31  Bruno Haible  <bruno@clisp.org>
3057
3058         Update modules list.
3059         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
3060         (String handling <string.h>): Add memcmp2, memxfrm.
3061         (Container data structures): Add xlist, xsublist, xoset.
3062         (Core language properties): Add alignof, unused-parameter.
3063         (Process control, Numeric conversion functions <stdlib.h>): Renamed
3064         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
3065         (Unibyte characters <ctype.h>): New section.
3066         (String handling <string.h>): New section.
3067         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
3068         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
3069         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
3070         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
3071         tan, tanh, tanl, y0, y1, yn.
3072         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
3073         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
3074         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
3075         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
3076         unlockpt, vdprintf, vdprintf-posix.
3077         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
3078         (File system functions): Add concat-filename, sys_file, sys_ioctl,
3079         xconcat-filename.
3080         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
3081         getdtablesize, pipe2, pipe2-safer.
3082         (Security): New section.
3083         (Networking functions): Add accept4.
3084         (Signal handling): Add sigpipe.
3085         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
3086         mbmemcasecoll.
3087         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
3088         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
3089         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
3090         pipe-filter-ii.
3091         (Misc): Add argp-version-etc, login_tty, parse-duration.
3092
3093 2010-07-31  Bruno Haible  <bruno@clisp.org>
3094
3095         Improve doc in MODULES.html.
3096         * modules/linkat (Description): Add the word "function".
3097         * modules/mkfifo (Description): Likewise.
3098         * modules/mknod (Description): Likewise.
3099         * modules/remove (Description): Likewise.
3100         * modules/renameat (Description): Likewise.
3101         * modules/stat (Description): Likewise.
3102         * modules/symlink (Description): Likewise.
3103         * modules/unlink (Description): Likewise.
3104
3105 2010-07-31  Bruno Haible  <bruno@clisp.org>
3106
3107         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
3108         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
3109         option --enable/disable-c++ instead of --enable/disable-cxx.
3110         * NEWS: Mention the change.
3111
3112 2010-07-31  Bruno Haible  <bruno@clisp.org>
3113
3114         readlink, areadlink: Relax test a bit.
3115         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
3116         alternative to ENOTDIR.
3117         * tests/test-areadlink.h (test_areadlink): Likewise.
3118         Reported by Rainer Tammer.
3119
3120 2010-07-31  Bruno Haible  <bruno@clisp.org>
3121
3122         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
3123         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
3124         character, perform the search using U_STRCHR.
3125         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
3126         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
3127         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
3128         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
3129         Suggested by Paolo Bonzini.
3130
3131 2010-07-31  Bruno Haible  <bruno@clisp.org>
3132
3133         unistr/u*-strstr: Fix dependencies.
3134         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
3135         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
3136         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
3137
3138 2010-07-31  Bruno Haible  <bruno@clisp.org>
3139
3140         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
3141         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
3142         the beginning of the loop.
3143         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
3144         cases in 'switch' statement.
3145
3146         unistr/u8-strchr: Fix several bugs.
3147         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
3148         the string. When not found, return NULL, not a pointer near the end.
3149
3150         More tests for unistr/u8-strchr.
3151         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
3152         that the function does not read past the first occurrence of the byte
3153         being searched.
3154         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
3155         * tests/unistr/test-u16-strchr.c (main): New function.
3156         * tests/unistr/test-u32-strchr.c (main): New function.
3157
3158 2010-07-31  Bruno Haible  <bruno@clisp.org>
3159
3160         posix-modules: Ignore backup files of documentation files.
3161         * posix-modules: grep only through files named *.texi.
3162
3163 2010-07-31  Bruno Haible  <bruno@clisp.org>
3164
3165         symlinkat: Fix documentation.
3166         * doc/posix-functions/readlinkat.texi: Fix module name.
3167
3168 2010-07-31  Bruno Haible  <bruno@clisp.org>
3169
3170         fchownat: Replace also when chown has the trailing slash bug.
3171         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
3172         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
3173         introduced on 2010-04-10.
3174         Reported by Rainer Tammer.
3175
3176 2010-07-31  Bruno Haible  <bruno@clisp.org>
3177
3178         linkat: Work around AIX 7.1 bug.
3179         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
3180         whether linkat handles trailing slash correctly. If not, replace linkat
3181         and define LINKAT_TRAILING_SLASH_BUG.
3182         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
3183         check whether (fd1,file1) points to a directory if file1 or file2 ends
3184         in a slash. Code taken from lib/link.c.
3185         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
3186         Reported by Rainer Tammer.
3187
3188 2010-07-31  Bruno Haible  <bruno@clisp.org>
3189
3190         Correctly determine whether pow is available in libc on AIX 7 with xlc.
3191         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
3192         This disables an xlc optimization that was causing wrong test results.
3193         Reported by Rainer Tammer.
3194
3195 2010-07-31  Bruno Haible  <bruno@clisp.org>
3196
3197         iconv: Work around AIX 6.1..7.1 bug.
3198         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
3199         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
3200         cross-compiling, guess no on all versions of AIX.
3201         Reported by Rainer Tammer.
3202
3203 2010-07-31  Bruno Haible  <bruno@clisp.org>
3204
3205         readlink: Relax test a bit.
3206         * tests/test-readlink.h (test_readlink): Allow different errno value
3207         when readlink is called with a file name that ends in / and refers to
3208         a file.
3209         Suggested by Eric Blake.
3210         Reported by Rainer Tammer.
3211
3212 2010-07-31  Bruno Haible  <bruno@clisp.org>
3213
3214         copysign: Does not require -lm on glibc systems.
3215         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
3216         gl_COMMON_DOUBLE_MATHFUNC.
3217         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
3218
3219 2010-07-31  Bruno Haible  <bruno@clisp.org>
3220
3221         duplocale: Work around AIX 7.1 bug.
3222         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
3223         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
3224         * lib/duplocale.c (rpl_duplocale): Update comment.
3225         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
3226         Reported by Rainer Tammer.
3227
3228 2010-07-30  Bruno Haible  <bruno@clisp.org>
3229
3230         dirfd: Avoid link error on AIX 7.1.
3231         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
3232         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
3233         exist, set REPLACE_DIRFD.
3234         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
3235         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
3236         * doc/posix-functions/dirfd.texi: Update.
3237         Reported by Rainer Tammer.
3238
3239 2010-07-30  Eric Blake  <eblake@redhat.com>
3240
3241         strtod: next round of AIX fixes
3242         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
3243         exponent.
3244         * tests/test-strtod.c (main): Enhance tests.
3245         * doc/posix-functions/strtod.texi (strtod): Document next bug.
3246         Reported by Rainer Tammer.
3247
3248         futimens: fix configure check
3249         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
3250         Reported by Bruno Haible.
3251
3252 2010-07-30  Bruno Haible  <bruno@clisp.org>
3253
3254         getline: Update regarding AIX.
3255         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
3256         Reported by Rainer Tammer.
3257
3258 2010-07-30  Bruno Haible  <bruno@clisp.org>
3259
3260         wcwidth: Drop replacement on AIX 7.
3261         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
3262         AIX 7.
3263         Reported by Rainer Tammer.
3264
3265 2010-07-30  Bruno Haible  <bruno@clisp.org>
3266
3267         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
3268         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
3269         a 'char *'.
3270         Reported by Rainer Tammer.
3271
3272 2010-07-30  Bruno Haible  <bruno@clisp.org>
3273
3274         unlink: Update regarding AIX.
3275         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
3276         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
3277         Reported by Rainer Tammer.
3278
3279 2010-07-30  Bruno Haible  <bruno@clisp.org>
3280
3281         symlink: Update regarding AIX.
3282         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
3283         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
3284         Reported by Rainer Tammer.
3285
3286 2010-07-30  Bruno Haible  <bruno@clisp.org>
3287
3288         strndup: Update regarding AIX.
3289         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
3290         AIX 7.
3291         Reported by Rainer Tammer.
3292
3293 2010-07-30  Bruno Haible  <bruno@clisp.org>
3294
3295         stat: Update regarding AIX.
3296         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
3297         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
3298         Reported by Rainer Tammer.
3299
3300 2010-07-30  Bruno Haible  <bruno@clisp.org>
3301
3302         truncl: Fix autoconf test.
3303         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
3304         whether truncl works.
3305         Reported by Rainer Tammer.
3306
3307 2010-07-30  Bruno Haible  <bruno@clisp.org>
3308
3309         round: Update regarding AIX.
3310         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
3311         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
3312         Reported by Rainer Tammer.
3313
3314 2010-07-30  Bruno Haible  <bruno@clisp.org>
3315
3316         rename: Update regarding AIX.
3317         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
3318         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
3319         Reported by Rainer Tammer.
3320
3321 2010-07-30  Bruno Haible  <bruno@clisp.org>
3322
3323         printf.m4: Update regarding AIX.
3324         * m4/printf.m4: Update comments regarding AIX.
3325         Reported by Rainer Tammer.
3326
3327 2010-07-30  Bruno Haible  <bruno@clisp.org>
3328
3329         iconv: Update regarding AIX.
3330         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
3331         AIX 7.
3332         Reported by Rainer Tammer.
3333
3334 2010-07-30  Bruno Haible  <bruno@clisp.org>
3335
3336         getopt: Update regarding AIX.
3337         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
3338         no on AIX.
3339         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
3340         Reported by Rainer Tammer.
3341
3342 2010-07-30  Bruno Haible  <bruno@clisp.org>
3343
3344         ldexpl; Update regarding AIX.
3345         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
3346         on AIX 7.
3347         Reported by Rainer Tammer.
3348
3349 2010-07-30  Bruno Haible  <bruno@clisp.org>
3350
3351         frexpl: Update regarding AIX.
3352         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
3353         on AIX 7.
3354         Reported by Rainer Tammer.
3355
3356 2010-07-30  Bruno Haible  <bruno@clisp.org>
3357
3358         open, fopen: Update regarding AIX.
3359         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
3360         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3361         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
3362         * doc/posix-functions/fopen.texi: Likewise.
3363         Reported by Rainer Tammer.
3364
3365 2010-07-30  Bruno Haible  <bruno@clisp.org>
3366
3367         chown: Update doc regarding AIX.
3368         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
3369         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
3370         Reported by Rainer Tammer.
3371
3372 2010-07-30  Eric Blake  <eblake@redhat.com>
3373
3374         strtod: fix bug in replacement function on AIX
3375         * lib/strtod.c (strtod): Special case broken "0x" parse in
3376         underlying strtod.
3377         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
3378         * doc/posix-functions/strtod.texi (strtod): Likewise.
3379         Reported by Rainer Tammer.
3380
3381 2010-07-30  Bruno Haible  <bruno@clisp.org>
3382
3383         mbrlen: Fix cross-compilation guess for AIX.
3384         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
3385         guess. Leftover from 2008-12-22.
3386
3387 2010-07-30  Bruno Haible  <bruno@clisp.org>
3388
3389         mbrtowc: Fix cross-compilation guess for AIX.
3390         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
3391         guess. Leftover from 2008-12-21.
3392
3393 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
3394
3395         init.sh: work around trap limitation of some shells
3396         * tests/init.sh (setup_): Move exit trap outside of shell function.
3397
3398 2010-07-29  Eric Blake  <eblake@redhat.com>
3399
3400         strtod: aid debugging
3401         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
3402         understanding why strtod is rejected.
3403
3404 2010-07-28  Bruno Haible  <bruno@clisp.org>
3405
3406         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
3407         * lib/unistr/u8-chr.c: Include <string.h>.
3408         * tests/unistr/test-u8-chr.c: Likewise.
3409         * tests/unistr/test-u16-chr.c: Likewise.
3410         * tests/unistr/test-u32-chr.c: Likewise.
3411         * tests/unistr/test-u8-strchr.c: Likewise.
3412         * tests/unistr/test-u16-strchr.c: Likewise.
3413         * tests/unistr/test-u32-strchr.c: Likewise.
3414         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
3415         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
3416         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
3417         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
3418
3419 2010-07-28  Bruno Haible  <bruno@clisp.org>
3420
3421         Use spaces for indentation, not tabs.
3422         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3423
3424 2010-07-27  Bruno Haible  <bruno@clisp.org>
3425
3426         mbspcasecmp: Fix function specification.
3427         * lib/string.in.h (mbspcasecmp): Fix specification comment.
3428         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
3429         Reported by Eric Blake <eblake@redhat.com>.
3430
3431 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
3432
3433         timespec: use cast and not conditional, as truncation isn't possible
3434         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
3435         instead of a conditional.  Comment about the situation in more detail.
3436         This undoes most of the 2009-10-29 patch.
3437
3438 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
3439
3440         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
3441         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
3442         * lib/unistr/u8-strchr.c: Likewise.
3443         * modules/unistr/u8-chr: Depend on memchr.
3444
3445         unistr/u*-strchr: add tests
3446         * modules/unistr/u8-strchr-tests: New file.
3447         * modules/unistr/u16-strchr-tests: New file.
3448         * modules/unistr/u32-strchr-tests: New file.
3449         * tests/unistr/test-strchr.h: New file.
3450         * tests/unistr/test-u8-strchr.c: New file.
3451         * tests/unistr/test-u16-strchr.c: New file.
3452         * tests/unistr/test-u32-strchr.c: New file.
3453
3454         unistr/u*-chr: test multibyte sequences more
3455         * tests/unistr/test-chr.h: Do complete testing of the characters in the
3456         test vector.
3457         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
3458         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
3459         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
3460
3461         unistr/u*-chr: test multibyte sequences
3462         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
3463
3464         unistr/u*-chr: prepare for multibyte tests
3465         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
3466         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
3467         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
3468         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
3469         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
3470         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
3471
3472 2010-07-18  Bruno Haible  <bruno@clisp.org>
3473
3474         unistr/u8-strchr: Optimize non-ASCII argument case.
3475         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
3476         because the first byte often matches anyway.
3477         Reported by Pádraig Brady <P@draigbrady.com>.
3478
3479 2010-07-15  Karl Berry  <karl@gnu.org>
3480
3481         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
3482
3483 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
3484
3485         getcwd: on Solaris, work better if ancestors are inaccessible
3486         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
3487         buffer and size, try again with a large buffer.  This works better
3488         on Solaris, since its getcwd succeeds even if the path to the root
3489         is inaccessible, and this is helpful in common cases such as .zfs
3490         hidden directories.  Problem reported by J Chapman Flack in
3491         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
3492         Use system getcwd if it's declared, not merely if it's partly
3493         working; use the partly-working test only to avoid needless effort
3494         if the system getcwd fails.
3495         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
3496         comment that was already obsolete and is now even more obsolete.
3497         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
3498         now might call strdup.
3499
3500 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
3501
3502         pthread: Add enough so that coreutils/src/sort.c compiles.
3503         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
3504         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
3505         gnulib. Include <sched.h> and <time.h>, as per POSIX.
3506         Include <sys/types.h>, in case it defines pthread_t.
3507         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
3508         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
3509         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
3510         (pthread_rwlockattr_t, pthread_spinlock_t):
3511         New typedefs, if HAVE_PTHREAD_T is not defined.
3512         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
3513         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
3514         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
3515         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
3516         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
3517         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
3518         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
3519         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
3520         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
3521         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
3522         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
3523         New macros.
3524         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
3525         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
3526         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
3527         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
3528         (pthread_spin_unlock): New dummy functions.
3529         (pthread_create): Return EAGAIN; don't set errno.
3530         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
3531         require AC_C_INLINE.
3532         * modules/pthread (Depends-on): Add sched, time.
3533         (pthread.h): Use AM_V_GEN.
3534
3535 2010-07-13  Bruno Haible  <bruno@clisp.org>
3536
3537         striconveh: Don't malloc memory if the result buffer is sufficient.
3538         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
3539         buffer if its size is sufficient.
3540         Reported by Ludovic Courtès <ludo@gnu.org>.
3541
3542 2010-07-13  Bruno Haible  <bruno@clisp.org>
3543
3544         strtod: Add safety check.
3545         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
3546
3547 2010-07-12  Bruno Haible  <bruno@clisp.org>
3548
3549         Unify tests that set gl_cv_func_ldexpl_no_libm.
3550         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
3551         gl_FUNC_LDEXPL.
3552         (gl_FUNC_LDEXPL): Invoke it.
3553         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3554
3555 2010-07-12  Bruno Haible  <bruno@clisp.org>
3556
3557         Unify tests that set gl_cv_func_ldexp_no_libm.
3558         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
3559         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
3560         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
3561         (configure.ac): Simply invoke gl_FUNC_LDEXP.
3562         * modules/strtod (Files): Add m4/ldexp.m4.
3563
3564 2010-07-12  Bruno Haible  <bruno@clisp.org>
3565
3566         Unify tests that set gl_cv_func_frexpl_no_libm.
3567         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
3568         gl_FUNC_FREXPL_NO_LIBM.
3569         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
3570         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3571
3572 2010-07-12  Bruno Haible  <bruno@clisp.org>
3573
3574         Unify tests that set gl_cv_func_frexp_no_libm.
3575         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
3576         gl_FUNC_FREXP_NO_LIBM.
3577         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
3578         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3579
3580 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3581
3582         memcoll: clarify sizes versus lengths, document better, and tweak perf
3583         * lib/memcoll.c (strcoll_loop, memcoll0):
3584         Improve quality of descriptive comments.  Name variables
3585         consistently as to whether they are lengths (which do not include
3586         terminating null) versus sizes (which do).
3587         * lib/xmemcoll.c (xmemcoll0): Likewise.
3588         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
3589         returned when s1size == 0; this is easier to compile and saves
3590         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
3591
3592 2010-07-12  Bruno Haible  <bruno@clisp.org>
3593
3594         Tests for module '_Exit'.
3595         * modules/_Exit-tests: New file.
3596         * tests/test-_Exit.sh: New file.
3597         * tests/test-_Exit.c: New file.
3598
3599         New module '_Exit'.
3600         * lib/stdlib.in.h (__attribute__): New macro.
3601         (_Exit): New declaration.
3602         * lib/_Exit.c: New file.
3603         * m4/_Exit.m4: New file.
3604         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
3605         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
3606         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
3607         * modules/_Exit: New file.
3608         * tests/test-stdlib-c++.cc (_Exit): Check signature.
3609         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
3610
3611 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3612
3613         strtod: make it more-accurate typically, and don't require libm
3614         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
3615         Include limits.h.  Don't include string.h.
3616         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
3617         (locale_isspace): New function, so that no casts are needed to
3618         check whether *s is a space.
3619         (ldexp): Provide an unused dummy if not available.
3620         (scale_radix_exp, parse_number, underlying_strtod): New functions.
3621         (strtod): Use them.  This implementation prefers to use the
3622         underlying strtod if available, falling back on our own code
3623         only to fix known bugs.  This is more likely to produce an
3624         accurate result.  Also, it avoids the use of libm functions.
3625         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
3626         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
3627         was absent, but it caused a test failure with coreutils.
3628         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
3629         with libm.
3630         * modules/strtod (Makefile.am, Link): libm is no longer needed.
3631         * modules/strtod-tests (Makefile.am): Likewise.
3632
3633 2010-07-11  Pádraig Brady  <P@draigBrady.com>
3634             Bruno Haible  <bruno@clisp.org>
3635
3636         unistr/u8-strchr: Optimize ASCII argument case.
3637         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
3638
3639 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3640
3641         (x)memcoll: minor tweaks
3642         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
3643         is after the type that it qualifies.
3644         (memcoll0): Likewise.
3645         * lib/memcoll.h (memcoll0): Likewise.
3646         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
3647         * lib/xmemcoll.h (xmemcoll0): Likewise.
3648         * lib/memcoll.c (memcoll0): Correct the comment.  This function
3649         differs from memcoll in that the NUL byte is part of the argument.
3650         Omit the abort-checks, as performance is a real issue here.  Plus,
3651         the checks were wrong anyway (an off-by-one error).  Omit local
3652         variable 'diff', as it's a bit clearer that way.
3653         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
3654         no longer needed.
3655
3656 2010-07-08  Chen Guo <chenguo4@yahoo.com>
3657
3658         (x)memcoll: speedup when input is known to be NUL delimited
3659         * lib/memcoll.c: Include stdlib.
3660         (memcoll0) New function.
3661         (strcoll_loop) New function, refactored for use in both memcoll
3662         and memcoll0.
3663         * lib/memcoll.h: Add prototype for memcoll0.
3664         * lib/xmemcoll.c: (xmemcoll0) New function.
3665         (collate_error) New function, refactored for use in both xmemcoll
3666         and xmemcoll0.
3667         * lib/xmemcoll.h: Add prototype for xmemcoll0.
3668         * m4/memcoll.m4: add inline invocation.
3669
3670 2010-07-06  Pádraig Brady  <P@draigBrady.com>
3671
3672         * build-aux/bootstrap: Remove any local translations
3673         from the translation project synchronization directory,
3674         so that local only translations are not distributed.
3675
3676 2010-07-04  Bruno Haible  <bruno@clisp.org>
3677
3678         fsusage: Clarify which code applies to which platforms.
3679         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
3680         platform.
3681         * lib/fsusage.c (get_fs_usage): Likewise.
3682
3683 2010-07-04  Bruno Haible  <bruno@clisp.org>
3684
3685         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
3686         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
3687         Reported by Martin Lambers <marlam@marlam.de>.
3688
3689 2010-07-04  Jim Meyering  <meyering@redhat.com>
3690
3691         hash: once again explicitly disallow insertion of NULL
3692         * lib/hash.c (hash_insert0): Reinstate just-removed test:
3693         inserting a NULL pointer cannot work with these functions.
3694         Add a comment with details.
3695         This reverts part of the 2010-07-01 commit, 5bef1a35
3696         "hash: extend module to deal with non-pointer keys".
3697
3698 2010-07-01  Bruno Haible  <bruno@clisp.org>
3699
3700         stdbool: Update doc.
3701         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
3702         Info from Christian Weisgerber <naddy@mips.inka.de>.
3703
3704 2010-07-01  Jim Meyering  <meyering@redhat.com>
3705
3706         hash: extend module to deal with non-pointer keys
3707         * lib/hash.c (hash_insert0): New interface, much like hash_insert
3708         but that allows insertion of non-pointer entries.
3709         Do not disallow an ENTRY value of NULL.
3710         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
3711         * lib/hash.h (hash_insert0): Declare.
3712
3713 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3714
3715         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
3716         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
3717         not present (i.e. with autoconf 2.59 and when using gettextize, not
3718         gnulib), require AC_GNU_SOURCE instead.
3719
3720 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
3721
3722         idpriv-drop: Fix tests.
3723         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
3724         not to the test-idpriv-droptemp program.
3725
3726 2010-06-29  Bruno Haible  <bruno@clisp.org>
3727
3728         string: Fix syntax error with g++ 2.96.
3729         * lib/string.in.h (__pure__): Remove definition.
3730         (_GL_ATTRIBUTE_PURE): New macro.
3731         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
3732         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
3733         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3734
3735 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
3736
3737         unitypes: Fix bug introduced on 2010-05-18.
3738         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
3739
3740 2010-06-22  Eric Blake  <eblake@redhat.com>
3741
3742         memmem: slight optimization
3743         * lib/str-two-way.h (critical_factorization): Update comments.
3744         Reduce work during factorization phase.
3745         Reported by Carlos Bueno <carlos@bueno.org>.
3746
3747 2010-06-21  Bruno Haible  <bruno@clisp.org>
3748
3749         Fix HAVE_CALLOC_POSIX misnomer.
3750         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
3751         !HAVE_CALLOC_POSIX.
3752         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
3753         HAVE_CALLOC_POSIX.
3754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
3755         instead of HAVE_CALLOC_POSIX.
3756         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
3757         HAVE_CALLOC_POSIX.
3758
3759         Use modern idiom for calloc() replacement.
3760         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
3761         AC_FUNC_CALLOC.
3762         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
3763         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
3764         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3765         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
3766         (gl_REPLACE_CALLOC): New macro.
3767
3768 2010-06-21  Bruno Haible  <bruno@clisp.org>
3769
3770         Fix HAVE_REALLOC_POSIX misnomer.
3771         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
3772         !HAVE_REALLOC_POSIX.
3773         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
3774         HAVE_REALLOC_POSIX.
3775         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
3776         instead of HAVE_REALLOC_POSIX.
3777         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
3778         HAVE_REALLOC_POSIX.
3779
3780         Use modern idiom for realloc() replacement.
3781         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
3782         AC_FUNC_REALLOC.
3783         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
3784         Autoconf's AC_FUNC_REALLOC.
3785         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3786         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
3787         (gl_REPLACE_REALLOC): New macro.
3788         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3789
3790 2010-06-21  Bruno Haible  <bruno@clisp.org>
3791
3792         Fix HAVE_MALLOC_POSIX misnomer.
3793         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
3794         !HAVE_MALLOC_POSIX.
3795         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
3796         HAVE_MALLOC_POSIX.
3797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
3798         instead of HAVE_MALLOC_POSIX.
3799         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
3800         HAVE_MALLOC_POSIX.
3801
3802         Use modern idiom for malloc() replacement.
3803         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
3804         AC_FUNC_MALLOC.
3805         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
3806         Autoconf's AC_FUNC_MALLOC.
3807         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3808         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
3809         (gl_REPLACE_MALLOC): New macro.
3810         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3811
3812 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
3813
3814         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
3815         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
3816         This macro takes 3 arguments, not 4.
3817
3818 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
3819
3820         ipv6: fix detection under mingw
3821         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
3822         in6_addr.
3823
3824 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
3825
3826         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
3827         that strtod() works when cross-compiling to a glibc version known
3828         to work.
3829
3830 2010-06-15  Bruno Haible  <bruno@clisp.org>
3831
3832         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
3833
3834 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
3835
3836         select: Correct timeout.
3837         * lib/select.c (rpl_select): Compute wait_timeout correctly.
3838
3839 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3840
3841         git-version-gen: init shell var to avoid env var influence
3842         * build-aux/git-version-gen (v): Init shell var to empty.
3843
3844 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
3845
3846         priv-set: Don't assume that priv.h exists merely because getppriv does.
3847         See Jan Andersen's bug report about AIX 5L in
3848         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
3849         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
3850         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
3851         * lib/priv-set.h: Likewise.
3852         * tests/test-priv-set.c: Likewise.
3853
3854 2010-06-13  Bruno Haible  <bruno@clisp.org>
3855
3856         relocatable: Make it easier to test whether to install wrappers.
3857         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
3858         RELOCATABLE_VIA_WRAPPER.
3859
3860 2010-06-13  Bruno Haible  <bruno@clisp.org>
3861
3862         gnulib-tool: Display specified modules and dependencies differently.
3863         * gnulib-tool (func_show_module_list): New function.
3864         (func_import, func_create_testdir): Invoke it.
3865         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3866
3867 2010-06-13  Bruno Haible  <bruno@clisp.org>
3868
3869         gnulib-tool: Align code of func_import and func_create_testdir.
3870         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
3871         specified_modules.
3872
3873 2010-06-12  Jim Meyering  <meyering@redhat.com>
3874
3875         test-inttostr: avoid spurious failure on Solaris 9
3876         * tests/test-inttostr.c (main): Skip the test when snprintf fails
3877         to accept "%ju".  Reported by Bruno Haible.
3878
3879 2010-06-11  Jim Meyering  <meyering@redhat.com>
3880
3881         test-sys_socket: mark variables as used more readably
3882         * tests/test-sys_socket.c (main): Mark otherwise unused variables
3883         as "used" explicitly via (void) statement casts.  This is more
3884         readable than using them in an artificial return expression.
3885         Suggestion from Bruno Haible.
3886
3887 2010-06-11  Bruno Haible  <bruno@clisp.org>
3888
3889         Avoid some more warnings from "gcc -Wwrite-strings".
3890         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
3891         to 'const char *'.
3892         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
3893         * tests/test-c-strcasestr.c (main): Likewise.
3894         * tests/test-mbscasestr1.c (main): Likewise.
3895         * tests/test-mbscasestr2.c (main): Likewise.
3896         * tests/test-memmem.c (main): Likewise.
3897         * tests/test-strstr.c (main): Likewise.
3898         * tests/test-strcasestr.c (main): Likewise.
3899
3900 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3901
3902         init.sh: change framework_failure_ to fail with status 99, not 1
3903         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
3904         automake's parallel-tests rule that this is an unexpected failure,
3905         even if the test is listed in XFAIL_TESTS.
3906
3907 2010-06-11  Jim Meyering  <meyering@redhat.com>
3908
3909         test-inttostr: avoid warnings about 4-6KB literal strings
3910         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
3911         Include "macros.h", for its definition of ASSERT.
3912         (CK): s/assert/ASSERT/
3913         * modules/inttostr-tests (Files): Add macros.h.
3914
3915         init.sh: don't use $ME_ or skip_ before they are defined
3916         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
3917         their first uses.  Also hoist their companions: warn_, fail_,
3918         framework_failure_, $stderr_fileno.  Prompted by a patch from
3919         Stefano Lattarini.
3920
3921         test-sys_socket: avoid set-but-not-used warnings from gcc
3922         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
3923         avoid warning about set-but-not-used variables.
3924
3925         test-xvasprintf: avoid 'const' discard warnings
3926         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
3927         "const" when assigning from literal strings.
3928         (test_xasprintf): Add "void" in function argument list to placate
3929         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
3930
3931         tests: avoid compilation warnings in argmatch and exclude tests...
3932         in packages that define ARGMATCH_DIE_DECL, like coreutils.
3933         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
3934         Since it always exits, declare with the "noreturn" attribute.
3935         * tests/test-argmatch.c: Likewise.
3936
3937         tests: avoid 'const' discard warnings in mbsstr tests
3938         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
3939         * tests/test-mbsstr2.c (main): Likewise.
3940
3941         test-verify: avoid warning from gcc's -Wmissing-declarations
3942         * tests/test-verify.c (function): Declare to be static.
3943
3944         test-inttostr.c: include <string.h> for use of strcmp
3945         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
3946
3947         test-linkat: avoid failed assertion on "other" architectures
3948         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
3949         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
3950         sparc: https://bugs.launchpad.net/bugs/591968
3951
3952 2010-06-11  Jim Meyering  <meyering@redhat.com>
3953
3954         printf.m4: avoid autoconf's "Expanded Before Required" warning
3955         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
3956         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
3957         autoconf warning.
3958
3959 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
3960
3961         Replacement header templates are now named with ".in", not "_".
3962         * doc/gnulib-intro.texi: Correct.
3963
3964 2010-06-10  Jim Meyering  <meyering@redhat.com>
3965
3966         inttostr-tests: depend on snprintf, not snprintf-posix
3967         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
3968         snprintf-posix, to avoid this aclocal failure:
3969           missing file gnulib-tests/vasnprintf.c
3970           configure.ac:45: error: expected source file, required through \
3971           AC_LIBSOURCES, not found
3972
3973 2010-06-10  Jim Meyering  <meyering@redhat.com>
3974
3975         inttostr: add a new function, inttostr, and tests
3976         The namesake function was not available.  The existence of the
3977         template file, inttostr.c makes its addition nontrivial.
3978         * lib/anytostr.c: Rename from inttostr.c.
3979         (anytostr): Rename from inttostr.
3980         * lib/inttostr.c: New file.
3981         * modules/inttostr (Files): Add anytostr.c.
3982         (Makefile.am): Set lib_SOURCES instead of ...
3983         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
3984         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
3985         * lib/offtostr.c: Likewise.
3986         * lib/uinttostr.c: Likewise.
3987         * lib/umaxtostr.c: Likewise.
3988         * modules/inttostr-tests: New file.
3989         * tests/test-inttostr.c: New file.  Test these functions.
3990
3991 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
3992             Bruno Haible  <bruno@clisp.org>
3993
3994         Add "Extending Gnulib" chapter to manual.
3995         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
3996         chapter.
3997         (Extending Gnulib): New chapter.
3998         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
3999         chapter.
4000
4001 2010-06-09  Bruno Haible  <bruno@clisp.org>
4002
4003         Avoid relocwrapper link errors due to gnulib replacement functions.
4004         * lib/areadlink.c: Use the system's malloc, realloc functions.
4005         (areadlink): Set errno to ENOMEM explicitly.
4006         * modules/areadlink (Depends-on): Remove malloc-posix.
4007         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4008
4009 2010-06-09  Bruno Haible  <bruno@clisp.org>
4010
4011         Avoid relocwrapper link errors due to gnulib replacement functions.
4012         * lib/canonicalize-lgpl.c: Use the system's malloc function.
4013         * lib/malloca.c: Likewise.
4014         * lib/relocatable.c: Likewise.
4015         * lib/progreloc.c: Use the system's malloc, sprintf functions.
4016         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
4017         * lib/setenv.c: Use the system's malloc, realloc functions.
4018         * lib/strerror.c: Use the system's sprintf function.
4019         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4020
4021 2010-06-04  Bruno Haible  <bruno@clisp.org>
4022
4023         Prefer documented low-level autoconf macro names.
4024         * m4/lib-link.m4: Use m4_translit instead of translit.
4025         * m4/environ.m4: Likewise.
4026         * m4/mathfunc.m4: Likewise.
4027         * m4/onceonly.m4: Likewise.
4028         * m4/stdint.m4: Likewise.
4029         Suggested by Eric Blake.
4030
4031 2010-06-04  Martin Lambers  <marlam@marlam.de>
4032             Bruno Haible  <bruno@clisp.org>
4033
4034         havelib: Allow library names with '+' characters.
4035         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4036         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
4037
4038 2010-06-09  Bruno Haible  <bruno@clisp.org>
4039
4040         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
4041         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
4042         realloc failed.
4043
4044 2010-06-08  Peter Simons  <simons@cryp.to>
4045
4046         maint.mk: make the news-check rule more configurable
4047         * top/maint.mk (news-check-lines-spec) New variable.
4048         (news-check): Use "sed -n 1,10p" in place of "head".
4049
4050 2010-06-07  Jim Meyering  <meyering@redhat.com>
4051
4052         do-release-commit-and-tag: fix typo in --help
4053         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
4054
4055         regex: avoid new dead-code warning with gcc-4.6.0
4056         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
4057         if-block containing a while-loop.  It's been unused for at least
4058         5 years.
4059
4060 2010-06-05  Bruno Haible  <bruno@clisp.org>
4061
4062         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
4063         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
4064
4065 2010-06-04  Bruno Haible  <bruno@clisp.org>
4066
4067         Update to GNU gettext 0.18.1.
4068         * modules/gettext (configure.ac): Require gettext infrastructure from
4069         version 0.18.1.
4070
4071 2010-06-03  Bruno Haible  <bruno@clisp.org>
4072
4073         Don't use AC_LIBOBJ with file names in subdirectories.
4074         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
4075         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
4076         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
4077         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
4078         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
4079         gl_LIBUNISTRING_LIBSOURCE.
4080         (Makefile.am): Augment lib_SOURCES here, conditionally.
4081         * NEWS: Drop requirement for Automake option 'subdir-objects'.
4082
4083 2010-06-03  Bruno Haible  <bruno@clisp.org>
4084
4085         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
4086         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
4087         expansion does not end with a newline.
4088         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
4089         unnecessary newline.
4090
4091 2010-06-03  Bruno Haible  <bruno@clisp.org>
4092
4093         Reduce dependencies.
4094         * tests/test-quotearg.h: New file, extracted from
4095         tests/test-quotearg.c.
4096         * tests/test-quotearg-simple.c: New file, extracted from
4097         tests/test-quotearg.c.
4098         * tests/test-quotearg.c: Don't include <ctype.h>.
4099         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
4100         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
4101         use_quote_double_quotes, use_quotearg_colon): Moved to
4102         tests/test-quotearg.h.
4103         (results_g, flag_results, custom_quotes, custom_results): Moved
4104         to tests/test-quotearg-simple.c.
4105         (main): Moved the part that does not depend on gettext to
4106         tests/test-quotearg-simple.c. Return 77 if the test cannot be
4107         performed.
4108         * modules/quotearg-simple: New file.
4109         * modules/quotearg-simple-tests: New file.
4110         * modules/quotearg (Depends-on): Add quotearg-simple.
4111         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
4112         (Files): Add tests/test-quotearg.h.
4113         Reported by Paolo Bonzini.
4114
4115 2010-06-03  Bruno Haible  <bruno@clisp.org>
4116
4117         Reduce dependencies.
4118         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
4119
4120 2010-06-03  Bruno Haible  <bruno@clisp.org>
4121
4122         time: Undefine more broken macros.
4123         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
4124         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
4125         Reported by Eric Blake.
4126
4127 2010-06-03  Bruno Haible  <bruno@clisp.org>
4128
4129         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
4130         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
4131         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
4132         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
4133         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
4134         Reported by Ludovic Courtès <ludo@gnu.org>.
4135
4136 2010-06-02  Eric Blake  <eblake@redhat.com>
4137
4138         time: work with mingw + pthreads-win32 library
4139         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
4140         if timespec is defined only in pthread.h.
4141         * modules/time (Makefile.am): Substitute it.
4142         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
4143         <pthread.h>, when needed.
4144         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
4145         from the library.
4146
4147 2010-05-31  Bruno Haible  <bruno@clisp.org>
4148
4149         Avoid expanding two macros in the wrong order.
4150         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
4151         gl_LIBUNISTRING if it is defined.
4152         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
4153         autoconf >= 2.64.
4154         Reported by Ludovic Courtès <ludo@gnu.org>.
4155
4156 2010-05-27  Jim Meyering  <meyering@redhat.com>
4157
4158         maint.mk: also prohibit "#undef" of always-defined symbols
4159         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
4160         Allow more than one space before the symbol name.
4161         (sc_prohibit_always-defined_macros): Use grep's -E, now that
4162         the regexp uses alternation.
4163
4164 2010-05-26  Eric Blake  <eblake@redhat.com>
4165
4166         maint.mk: avoid echo -e
4167         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
4168         Convert all uses of echo -* to printf.
4169         Reported by Matthias Bolte.
4170
4171 2010-05-25  Bruno Haible  <bruno@clisp.org>
4172
4173         Update to GNU gettext 0.18, part 2.
4174         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
4175         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
4176
4177 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4178
4179         Add missing include in test-pwrite.c.
4180         * tests/test-pwrite.c: Include string.h, for strcmp.
4181
4182 2010-05-24  Bruno Haible  <bruno@clisp.org>
4183
4184         * NEWS: Mention requirement for Automake option 'subdir-objects'.
4185
4186 2010-05-24  Bruno Haible  <bruno@clisp.org>
4187
4188         Don't use conversion with transliteration in u{8,16,32}_strcoll.
4189         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
4190         iconveh_error argument.
4191         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
4192         U_STRCONV_TO_LOCALE.
4193         * lib/unistr/u16-strcoll.c: Likewise.
4194         * lib/unistr/u32-strcoll.c: Likewise.
4195         * modules/unistr/u8-strcoll (Depends-on): Add
4196         uniconv/u8-strconv-to-enc, localcharset. Remove
4197         uniconv/u8-strconv-to-locale.
4198         (configure.ac): Bump version number.
4199         * modules/unistr/u16-strcoll (Depends-on): Add
4200         uniconv/u16-strconv-to-enc, localcharset. Remove
4201         uniconv/u16-strconv-to-locale.
4202         (configure.ac): Bump version number.
4203         * modules/unistr/u32-strcoll (Depends-on): Add
4204         uniconv/u32-strconv-to-enc, localcharset. Remove
4205         uniconv/u32-strconv-to-locale.
4206         (configure.ac): Bump version number.
4207
4208 2010-05-24  Bruno Haible  <bruno@clisp.org>
4209
4210         Avoid a test failure on NetBSD 5.0.
4211         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
4212         an iconv() bug.
4213
4214 2010-05-24  Bruno Haible  <bruno@clisp.org>
4215
4216         Adjust #include directive style.
4217         * modules/regex (Includes): Recommend to write <regex.h>.
4218
4219 2010-05-24  Bruno Haible  <bruno@clisp.org>
4220
4221         regex: Don't require alloca.
4222         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
4223         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
4224         only inside if (0).
4225
4226 2010-05-23  Jim Meyering  <meyering@redhat.com>
4227
4228         test-renameat.c: include <sys/stat.h>
4229         * tests/test-renameat.c: Include <sys/stat.h>; required for
4230         definition of S_IS* macros.
4231
4232 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
4233
4234         Update maintainer documentation for 'relocatable-prog' module.
4235         * doc/relocatable-maint.texi: Update.
4236         Comments by Bruno Haible.
4237
4238 2010-05-23  Bruno Haible  <bruno@clisp.org>
4239
4240         git-merge-changelog: Enable --split-merged-entry by default.
4241         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
4242         (usage): Don't mention this option any more.
4243         Reported by Ralf Wildenhues.
4244
4245 2010-05-23  Jim Meyering  <meyering@redhat.com>
4246
4247         test-pwrite: do not leave behind a test file named "out"
4248         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
4249         The trivial-looking use of init.sh is really necessary.
4250         It ensures that the temporary file, "out", is created in
4251         a temporary directory, and removed upon termination.
4252         * tests/test-pwrite.sh: Re-add file.
4253         * modules/pwrite-tests: Reference it.
4254
4255 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4256
4257         Fix output redirection buglet in init.sh.
4258         * tests/init.sh: Fix redirection of stderr.
4259
4260 2010-05-20  Simon Josefsson  <simon@josefsson.org>
4261
4262         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
4263
4264 2010-05-17  Simon Josefsson  <simon@josefsson.org>
4265
4266         * modules/valgrind-tests: New file.
4267         * m4/valgrind-tests.m4: New file.
4268         * doc/valgrind-tests.texi: New file.
4269         * doc/gnulib.texi (Running self-tests under valgrind): New
4270         section.
4271
4272 2010-05-19  Bruno Haible  <bruno@clisp.org>
4273
4274         Clean up dead code in recent commit.
4275         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
4276         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
4277         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
4278         Suggested by Paolo Bonzini.
4279
4280 2010-05-19  Bruno Haible  <bruno@clisp.org>
4281
4282         Avoid valgrind error reports from libunistring.
4283         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
4284         * modules/libunistring (Files): Add it.
4285         * modules/libunistring-optional (Files): Likewise.
4286
4287 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
4288             Bruno Haible  <bruno@clisp.org>
4289
4290         New module 'libunistring-optional'.
4291         * modules/libunistring-optional: New file.
4292         * m4/libunistring-base.m4: New file.
4293         * m4/libunistring-optional.m4: New file.
4294         * lib/unicase.in.h: Renamed from lib/unicase.h.
4295         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
4296         * lib/unictype.in.h: Renamed from lib/unictype.h.
4297         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
4298         * lib/uniname.in.h: Renamed from lib/uniname.h.
4299         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
4300         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
4301         * lib/unistr.in.h: Renamed from lib/unistr.h.
4302         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
4303         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
4304         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
4305         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
4306         gl_LIBUNISTRING. If the library was found, determine the installed
4307         version and set LIBUNISTRING_VERSION.
4308         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
4309         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
4310         handle a configuration option --with-included-libunistring.
4311         * modules/libunistring (Files): Add m4/absolute-header.m4.
4312         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
4313         Add m4/libunistring-base.m4.
4314         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4315         (Makefile.am): Build unicase.h from unicase.in.h.
4316         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
4317         Add m4/libunistring-base.m4.
4318         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4319         (Makefile.am): Build uniconv.h from uniconv.in.h.
4320         * modules/unictype/base (Files): Use unictype.in.h instead of
4321         unictype.h. Add m4/libunistring-base.m4.
4322         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4323         (Makefile.am): Build unictype.h from unictype.in.h.
4324         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
4325         Add m4/libunistring-base.m4.
4326         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4327         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
4328         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
4329         Add m4/libunistring-base.m4.
4330         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4331         (Makefile.am): Build uniname.h from uniname.in.h.
4332         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
4333         Add m4/libunistring-base.m4.
4334         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4335         (Makefile.am): Build uninorm.h from uninorm.in.h.
4336         * modules/unistdio/base (Files): Use unistdio.in.h instead of
4337         unistdio.h. Add m4/libunistring-base.m4.
4338         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4339         (Makefile.am): Build unistdio.h from unistdio.in.h.
4340         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
4341         Add m4/libunistring-base.m4.
4342         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4343         (Makefile.am): Build unistr.h from unistr.in.h.
4344         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
4345         Add m4/libunistring-base.m4.
4346         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4347         (Makefile.am): Build unitypes.h from unitypes.in.h.
4348         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
4349         Add m4/libunistring-base.m4.
4350         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4351         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
4352         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
4353         uniwidth.h. Add m4/libunistring-base.m4.
4354         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4355         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
4356         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
4357         instead of augmenting lib_SOURCES.
4358         * modules/unicase/empty-suffix-context: Likewise.
4359         * modules/unicase/locale-language: Likewise.
4360         * modules/unicase/tolower: Likewise.
4361         * modules/unicase/totitle: Likewise.
4362         * modules/unicase/toupper: Likewise.
4363         * modules/unicase/u8-casecmp: Likewise.
4364         * modules/unicase/u8-casecoll: Likewise.
4365         * modules/unicase/u8-casefold: Likewise.
4366         * modules/unicase/u8-casexfrm: Likewise.
4367         * modules/unicase/u8-ct-casefold: Likewise.
4368         * modules/unicase/u8-ct-tolower: Likewise.
4369         * modules/unicase/u8-ct-totitle: Likewise.
4370         * modules/unicase/u8-ct-toupper: Likewise.
4371         * modules/unicase/u8-is-cased: Likewise.
4372         * modules/unicase/u8-is-casefolded: Likewise.
4373         * modules/unicase/u8-is-lowercase: Likewise.
4374         * modules/unicase/u8-is-titlecase: Likewise.
4375         * modules/unicase/u8-is-uppercase: Likewise.
4376         * modules/unicase/u8-prefix-context: Likewise.
4377         * modules/unicase/u8-suffix-context: Likewise.
4378         * modules/unicase/u8-tolower: Likewise.
4379         * modules/unicase/u8-totitle: Likewise.
4380         * modules/unicase/u8-toupper: Likewise.
4381         * modules/unicase/u16-casecmp: Likewise.
4382         * modules/unicase/u16-casecoll: Likewise.
4383         * modules/unicase/u16-casefold: Likewise.
4384         * modules/unicase/u16-casexfrm: Likewise.
4385         * modules/unicase/u16-ct-casefold: Likewise.
4386         * modules/unicase/u16-ct-tolower: Likewise.
4387         * modules/unicase/u16-ct-totitle: Likewise.
4388         * modules/unicase/u16-ct-toupper: Likewise.
4389         * modules/unicase/u16-is-cased: Likewise.
4390         * modules/unicase/u16-is-casefolded: Likewise.
4391         * modules/unicase/u16-is-lowercase: Likewise.
4392         * modules/unicase/u16-is-titlecase: Likewise.
4393         * modules/unicase/u16-is-uppercase: Likewise.
4394         * modules/unicase/u16-prefix-context: Likewise.
4395         * modules/unicase/u16-suffix-context: Likewise.
4396         * modules/unicase/u16-tolower: Likewise.
4397         * modules/unicase/u16-totitle: Likewise.
4398         * modules/unicase/u16-toupper: Likewise.
4399         * modules/unicase/u32-casecmp: Likewise.
4400         * modules/unicase/u32-casecoll: Likewise.
4401         * modules/unicase/u32-casefold: Likewise.
4402         * modules/unicase/u32-casexfrm: Likewise.
4403         * modules/unicase/u32-ct-casefold: Likewise.
4404         * modules/unicase/u32-ct-tolower: Likewise.
4405         * modules/unicase/u32-ct-totitle: Likewise.
4406         * modules/unicase/u32-ct-toupper: Likewise.
4407         * modules/unicase/u32-is-cased: Likewise.
4408         * modules/unicase/u32-is-casefolded: Likewise.
4409         * modules/unicase/u32-is-lowercase: Likewise.
4410         * modules/unicase/u32-is-titlecase: Likewise.
4411         * modules/unicase/u32-is-uppercase: Likewise.
4412         * modules/unicase/u32-prefix-context: Likewise.
4413         * modules/unicase/u32-suffix-context: Likewise.
4414         * modules/unicase/u32-tolower: Likewise.
4415         * modules/unicase/u32-totitle: Likewise.
4416         * modules/unicase/u32-toupper: Likewise.
4417         * modules/unicase/ulc-casecmp: Likewise.
4418         * modules/unicase/ulc-casecoll: Likewise.
4419         * modules/unicase/ulc-casexfrm: Likewise.
4420         * modules/uniconv/u8-conv-from-enc: Likewise.
4421         * modules/uniconv/u8-conv-to-enc: Likewise.
4422         * modules/uniconv/u8-strconv-from-enc: Likewise.
4423         * modules/uniconv/u8-strconv-from-locale: Likewise.
4424         * modules/uniconv/u8-strconv-to-enc: Likewise.
4425         * modules/uniconv/u8-strconv-to-locale: Likewise.
4426         * modules/uniconv/u16-conv-from-enc: Likewise.
4427         * modules/uniconv/u16-conv-to-enc: Likewise.
4428         * modules/uniconv/u16-strconv-from-enc: Likewise.
4429         * modules/uniconv/u16-strconv-from-locale: Likewise.
4430         * modules/uniconv/u16-strconv-to-enc: Likewise.
4431         * modules/uniconv/u16-strconv-to-locale: Likewise.
4432         * modules/uniconv/u32-conv-from-enc: Likewise.
4433         * modules/uniconv/u32-conv-to-enc: Likewise.
4434         * modules/uniconv/u32-strconv-from-enc: Likewise.
4435         * modules/uniconv/u32-strconv-from-locale: Likewise.
4436         * modules/uniconv/u32-strconv-to-enc: Likewise.
4437         * modules/uniconv/u32-strconv-to-locale: Likewise.
4438         * modules/unictype/bidicategory-byname: Likewise.
4439         * modules/unictype/bidicategory-name: Likewise.
4440         * modules/unictype/bidicategory-of: Likewise.
4441         * modules/unictype/bidicategory-test: Likewise.
4442         * modules/unictype/block-list: Likewise.
4443         * modules/unictype/block-test: Likewise.
4444         * modules/unictype/category-C: Likewise.
4445         * modules/unictype/category-Cc: Likewise.
4446         * modules/unictype/category-Cf: Likewise.
4447         * modules/unictype/category-Cn: Likewise.
4448         * modules/unictype/category-Co: Likewise.
4449         * modules/unictype/category-Cs: Likewise.
4450         * modules/unictype/category-L: Likewise.
4451         * modules/unictype/category-Ll: Likewise.
4452         * modules/unictype/category-Lm: Likewise.
4453         * modules/unictype/category-Lo: Likewise.
4454         * modules/unictype/category-Lt: Likewise.
4455         * modules/unictype/category-Lu: Likewise.
4456         * modules/unictype/category-M: Likewise.
4457         * modules/unictype/category-Mc: Likewise.
4458         * modules/unictype/category-Me: Likewise.
4459         * modules/unictype/category-Mn: Likewise.
4460         * modules/unictype/category-N: Likewise.
4461         * modules/unictype/category-Nd: Likewise.
4462         * modules/unictype/category-Nl: Likewise.
4463         * modules/unictype/category-No: Likewise.
4464         * modules/unictype/category-P: Likewise.
4465         * modules/unictype/category-Pc: Likewise.
4466         * modules/unictype/category-Pd: Likewise.
4467         * modules/unictype/category-Pe: Likewise.
4468         * modules/unictype/category-Pf: Likewise.
4469         * modules/unictype/category-Pi: Likewise.
4470         * modules/unictype/category-Po: Likewise.
4471         * modules/unictype/category-Ps: Likewise.
4472         * modules/unictype/category-S: Likewise.
4473         * modules/unictype/category-Sc: Likewise.
4474         * modules/unictype/category-Sk: Likewise.
4475         * modules/unictype/category-Sm: Likewise.
4476         * modules/unictype/category-So: Likewise.
4477         * modules/unictype/category-Z: Likewise.
4478         * modules/unictype/category-Zl: Likewise.
4479         * modules/unictype/category-Zp: Likewise.
4480         * modules/unictype/category-Zs: Likewise.
4481         * modules/unictype/category-and: Likewise.
4482         * modules/unictype/category-and-not: Likewise.
4483         * modules/unictype/category-byname: Likewise.
4484         * modules/unictype/category-name: Likewise.
4485         * modules/unictype/category-none: Likewise.
4486         * modules/unictype/category-of: Likewise.
4487         * modules/unictype/category-or: Likewise.
4488         * modules/unictype/category-test: Likewise.
4489         * modules/unictype/combining-class: Likewise.
4490         * modules/unictype/ctype-alnum: Likewise.
4491         * modules/unictype/ctype-alpha: Likewise.
4492         * modules/unictype/ctype-blank: Likewise.
4493         * modules/unictype/ctype-cntrl: Likewise.
4494         * modules/unictype/ctype-digit: Likewise.
4495         * modules/unictype/ctype-graph: Likewise.
4496         * modules/unictype/ctype-lower: Likewise.
4497         * modules/unictype/ctype-print: Likewise.
4498         * modules/unictype/ctype-punct: Likewise.
4499         * modules/unictype/ctype-space: Likewise.
4500         * modules/unictype/ctype-upper: Likewise.
4501         * modules/unictype/ctype-xdigit: Likewise.
4502         * modules/unictype/decimal-digit: Likewise.
4503         * modules/unictype/digit: Likewise.
4504         * modules/unictype/mirror: Likewise.
4505         * modules/unictype/numeric: Likewise.
4506         * modules/unictype/property-alphabetic: Likewise.
4507         * modules/unictype/property-ascii-hex-digit: Likewise.
4508         * modules/unictype/property-bidi-arabic-digit: Likewise.
4509         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
4510         * modules/unictype/property-bidi-block-separator: Likewise.
4511         * modules/unictype/property-bidi-boundary-neutral: Likewise.
4512         * modules/unictype/property-bidi-common-separator: Likewise.
4513         * modules/unictype/property-bidi-control: Likewise.
4514         * modules/unictype/property-bidi-embedding-or-override: Likewise.
4515         * modules/unictype/property-bidi-eur-num-separator: Likewise.
4516         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
4517         * modules/unictype/property-bidi-european-digit: Likewise.
4518         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
4519         * modules/unictype/property-bidi-left-to-right: Likewise.
4520         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
4521         * modules/unictype/property-bidi-other-neutral: Likewise.
4522         * modules/unictype/property-bidi-pdf: Likewise.
4523         * modules/unictype/property-bidi-segment-separator: Likewise.
4524         * modules/unictype/property-bidi-whitespace: Likewise.
4525         * modules/unictype/property-byname: Likewise.
4526         * modules/unictype/property-combining: Likewise.
4527         * modules/unictype/property-composite: Likewise.
4528         * modules/unictype/property-currency-symbol: Likewise.
4529         * modules/unictype/property-dash: Likewise.
4530         * modules/unictype/property-decimal-digit: Likewise.
4531         * modules/unictype/property-default-ignorable-code-point: Likewise.
4532         * modules/unictype/property-deprecated: Likewise.
4533         * modules/unictype/property-diacritic: Likewise.
4534         * modules/unictype/property-extender: Likewise.
4535         * modules/unictype/property-format-control: Likewise.
4536         * modules/unictype/property-grapheme-base: Likewise.
4537         * modules/unictype/property-grapheme-extend: Likewise.
4538         * modules/unictype/property-grapheme-link: Likewise.
4539         * modules/unictype/property-hex-digit: Likewise.
4540         * modules/unictype/property-hyphen: Likewise.
4541         * modules/unictype/property-id-continue: Likewise.
4542         * modules/unictype/property-id-start: Likewise.
4543         * modules/unictype/property-ideographic: Likewise.
4544         * modules/unictype/property-ids-binary-operator: Likewise.
4545         * modules/unictype/property-ids-trinary-operator: Likewise.
4546         * modules/unictype/property-ignorable-control: Likewise.
4547         * modules/unictype/property-iso-control: Likewise.
4548         * modules/unictype/property-join-control: Likewise.
4549         * modules/unictype/property-left-of-pair: Likewise.
4550         * modules/unictype/property-line-separator: Likewise.
4551         * modules/unictype/property-logical-order-exception: Likewise.
4552         * modules/unictype/property-lowercase: Likewise.
4553         * modules/unictype/property-math: Likewise.
4554         * modules/unictype/property-non-break: Likewise.
4555         * modules/unictype/property-not-a-character: Likewise.
4556         * modules/unictype/property-numeric: Likewise.
4557         * modules/unictype/property-other-alphabetic: Likewise.
4558         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
4559         * modules/unictype/property-other-grapheme-extend: Likewise.
4560         * modules/unictype/property-other-id-continue: Likewise.
4561         * modules/unictype/property-other-id-start: Likewise.
4562         * modules/unictype/property-other-lowercase: Likewise.
4563         * modules/unictype/property-other-math: Likewise.
4564         * modules/unictype/property-other-uppercase: Likewise.
4565         * modules/unictype/property-paired-punctuation: Likewise.
4566         * modules/unictype/property-paragraph-separator: Likewise.
4567         * modules/unictype/property-pattern-syntax: Likewise.
4568         * modules/unictype/property-pattern-white-space: Likewise.
4569         * modules/unictype/property-private-use: Likewise.
4570         * modules/unictype/property-punctuation: Likewise.
4571         * modules/unictype/property-quotation-mark: Likewise.
4572         * modules/unictype/property-radical: Likewise.
4573         * modules/unictype/property-sentence-terminal: Likewise.
4574         * modules/unictype/property-soft-dotted: Likewise.
4575         * modules/unictype/property-space: Likewise.
4576         * modules/unictype/property-terminal-punctuation: Likewise.
4577         * modules/unictype/property-test: Likewise.
4578         * modules/unictype/property-titlecase: Likewise.
4579         * modules/unictype/property-unassigned-code-value: Likewise.
4580         * modules/unictype/property-unified-ideograph: Likewise.
4581         * modules/unictype/property-uppercase: Likewise.
4582         * modules/unictype/property-variation-selector: Likewise.
4583         * modules/unictype/property-white-space: Likewise.
4584         * modules/unictype/property-xid-continue: Likewise.
4585         * modules/unictype/property-xid-start: Likewise.
4586         * modules/unictype/property-zero-width: Likewise.
4587         * modules/unictype/scripts: Likewise.
4588         * modules/unictype/syntax-c-ident: Likewise.
4589         * modules/unictype/syntax-c-whitespace: Likewise.
4590         * modules/unictype/syntax-java-ident: Likewise.
4591         * modules/unictype/syntax-java-whitespace: Likewise.
4592         * modules/unilbrk/u8-possible-linebreaks: Likewise.
4593         * modules/unilbrk/u8-width-linebreaks: Likewise.
4594         * modules/unilbrk/u16-possible-linebreaks: Likewise.
4595         * modules/unilbrk/u16-width-linebreaks: Likewise.
4596         * modules/unilbrk/u32-possible-linebreaks: Likewise.
4597         * modules/unilbrk/u32-width-linebreaks: Likewise.
4598         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
4599         * modules/unilbrk/ulc-width-linebreaks: Likewise.
4600         * modules/uniname/uniname: Likewise.
4601         * modules/uninorm/canonical-decomposition: Likewise.
4602         * modules/uninorm/composition: Likewise.
4603         * modules/uninorm/decomposing-form: Likewise.
4604         * modules/uninorm/decomposition: Likewise.
4605         * modules/uninorm/filter: Likewise.
4606         * modules/uninorm/nfc: Likewise.
4607         * modules/uninorm/nfd: Likewise.
4608         * modules/uninorm/nfkc: Likewise.
4609         * modules/uninorm/nfkd: Likewise.
4610         * modules/uninorm/u8-normalize: Likewise.
4611         * modules/uninorm/u8-normcmp: Likewise.
4612         * modules/uninorm/u8-normcoll: Likewise.
4613         * modules/uninorm/u8-normxfrm: Likewise.
4614         * modules/uninorm/u16-normalize: Likewise.
4615         * modules/uninorm/u16-normcmp: Likewise.
4616         * modules/uninorm/u16-normcoll: Likewise.
4617         * modules/uninorm/u16-normxfrm: Likewise.
4618         * modules/uninorm/u32-normalize: Likewise.
4619         * modules/uninorm/u32-normcmp: Likewise.
4620         * modules/uninorm/u32-normcoll: Likewise.
4621         * modules/uninorm/u32-normxfrm: Likewise.
4622         * modules/unistdio/u8-asnprintf: Likewise.
4623         * modules/unistdio/u8-asprintf: Likewise.
4624         * modules/unistdio/u8-snprintf: Likewise.
4625         * modules/unistdio/u8-sprintf: Likewise.
4626         * modules/unistdio/u8-u8-asnprintf: Likewise.
4627         * modules/unistdio/u8-u8-asprintf: Likewise.
4628         * modules/unistdio/u8-u8-snprintf: Likewise.
4629         * modules/unistdio/u8-u8-sprintf: Likewise.
4630         * modules/unistdio/u8-u8-vasnprintf: Likewise.
4631         * modules/unistdio/u8-u8-vasprintf: Likewise.
4632         * modules/unistdio/u8-u8-vsnprintf: Likewise.
4633         * modules/unistdio/u8-u8-vsprintf: Likewise.
4634         * modules/unistdio/u8-vasnprintf: Likewise.
4635         * modules/unistdio/u8-vasprintf: Likewise.
4636         * modules/unistdio/u8-vsnprintf: Likewise.
4637         * modules/unistdio/u8-vsprintf: Likewise.
4638         * modules/unistdio/u16-asnprintf: Likewise.
4639         * modules/unistdio/u16-asprintf: Likewise.
4640         * modules/unistdio/u16-snprintf: Likewise.
4641         * modules/unistdio/u16-sprintf: Likewise.
4642         * modules/unistdio/u16-u16-asnprintf: Likewise.
4643         * modules/unistdio/u16-u16-asprintf: Likewise.
4644         * modules/unistdio/u16-u16-snprintf: Likewise.
4645         * modules/unistdio/u16-u16-sprintf: Likewise.
4646         * modules/unistdio/u16-u16-vasnprintf: Likewise.
4647         * modules/unistdio/u16-u16-vasprintf: Likewise.
4648         * modules/unistdio/u16-u16-vsnprintf: Likewise.
4649         * modules/unistdio/u16-u16-vsprintf: Likewise.
4650         * modules/unistdio/u16-vasnprintf: Likewise.
4651         * modules/unistdio/u16-vasprintf: Likewise.
4652         * modules/unistdio/u16-vsnprintf: Likewise.
4653         * modules/unistdio/u16-vsprintf: Likewise.
4654         * modules/unistdio/u32-asnprintf: Likewise.
4655         * modules/unistdio/u32-asprintf: Likewise.
4656         * modules/unistdio/u32-snprintf: Likewise.
4657         * modules/unistdio/u32-sprintf: Likewise.
4658         * modules/unistdio/u32-u32-asnprintf: Likewise.
4659         * modules/unistdio/u32-u32-asprintf: Likewise.
4660         * modules/unistdio/u32-u32-snprintf: Likewise.
4661         * modules/unistdio/u32-u32-sprintf: Likewise.
4662         * modules/unistdio/u32-u32-vasnprintf: Likewise.
4663         * modules/unistdio/u32-u32-vasprintf: Likewise.
4664         * modules/unistdio/u32-u32-vsnprintf: Likewise.
4665         * modules/unistdio/u32-u32-vsprintf: Likewise.
4666         * modules/unistdio/u32-vasnprintf: Likewise.
4667         * modules/unistdio/u32-vasprintf: Likewise.
4668         * modules/unistdio/u32-vsnprintf: Likewise.
4669         * modules/unistdio/u32-vsprintf: Likewise.
4670         * modules/unistdio/ulc-asnprintf: Likewise.
4671         * modules/unistdio/ulc-asprintf: Likewise.
4672         * modules/unistdio/ulc-fprintf: Likewise.
4673         * modules/unistdio/ulc-snprintf: Likewise.
4674         * modules/unistdio/ulc-sprintf: Likewise.
4675         * modules/unistdio/ulc-vasnprintf: Likewise.
4676         * modules/unistdio/ulc-vasprintf: Likewise.
4677         * modules/unistdio/ulc-vfprintf: Likewise.
4678         * modules/unistdio/ulc-vsnprintf: Likewise.
4679         * modules/unistdio/ulc-vsprintf: Likewise.
4680         * modules/unistr/u8-check: Likewise.
4681         * modules/unistr/u8-chr: Likewise.
4682         * modules/unistr/u8-cmp: Likewise.
4683         * modules/unistr/u8-cmp2: Likewise.
4684         * modules/unistr/u8-cpy: Likewise.
4685         * modules/unistr/u8-cpy-alloc: Likewise.
4686         * modules/unistr/u8-endswith: Likewise.
4687         * modules/unistr/u8-mblen: Likewise.
4688         * modules/unistr/u8-mbsnlen: Likewise.
4689         * modules/unistr/u8-mbtouc: Likewise.
4690         * modules/unistr/u8-mbtouc-unsafe: Likewise.
4691         * modules/unistr/u8-mbtoucr: Likewise.
4692         * modules/unistr/u8-move: Likewise.
4693         * modules/unistr/u8-next: Likewise.
4694         * modules/unistr/u8-prev: Likewise.
4695         * modules/unistr/u8-set: Likewise.
4696         * modules/unistr/u8-startswith: Likewise.
4697         * modules/unistr/u8-stpcpy: Likewise.
4698         * modules/unistr/u8-stpncpy: Likewise.
4699         * modules/unistr/u8-strcat: Likewise.
4700         * modules/unistr/u8-strchr: Likewise.
4701         * modules/unistr/u8-strcmp: Likewise.
4702         * modules/unistr/u8-strcoll: Likewise.
4703         * modules/unistr/u8-strcpy: Likewise.
4704         * modules/unistr/u8-strcspn: Likewise.
4705         * modules/unistr/u8-strdup: Likewise.
4706         * modules/unistr/u8-strlen: Likewise.
4707         * modules/unistr/u8-strmblen: Likewise.
4708         * modules/unistr/u8-strmbtouc: Likewise.
4709         * modules/unistr/u8-strncat: Likewise.
4710         * modules/unistr/u8-strncmp: Likewise.
4711         * modules/unistr/u8-strncpy: Likewise.
4712         * modules/unistr/u8-strnlen: Likewise.
4713         * modules/unistr/u8-strpbrk: Likewise.
4714         * modules/unistr/u8-strrchr: Likewise.
4715         * modules/unistr/u8-strspn: Likewise.
4716         * modules/unistr/u8-strstr: Likewise.
4717         * modules/unistr/u8-strtok: Likewise.
4718         * modules/unistr/u8-to-u16: Likewise.
4719         * modules/unistr/u8-to-u32: Likewise.
4720         * modules/unistr/u8-uctomb: Likewise.
4721         * modules/unistr/u16-check: Likewise.
4722         * modules/unistr/u16-chr: Likewise.
4723         * modules/unistr/u16-cmp: Likewise.
4724         * modules/unistr/u16-cmp2: Likewise.
4725         * modules/unistr/u16-cpy: Likewise.
4726         * modules/unistr/u16-cpy-alloc: Likewise.
4727         * modules/unistr/u16-endswith: Likewise.
4728         * modules/unistr/u16-mblen: Likewise.
4729         * modules/unistr/u16-mbsnlen: Likewise.
4730         * modules/unistr/u16-mbtouc: Likewise.
4731         * modules/unistr/u16-mbtouc-unsafe: Likewise.
4732         * modules/unistr/u16-mbtoucr: Likewise.
4733         * modules/unistr/u16-move: Likewise.
4734         * modules/unistr/u16-next: Likewise.
4735         * modules/unistr/u16-prev: Likewise.
4736         * modules/unistr/u16-set: Likewise.
4737         * modules/unistr/u16-startswith: Likewise.
4738         * modules/unistr/u16-stpcpy: Likewise.
4739         * modules/unistr/u16-stpncpy: Likewise.
4740         * modules/unistr/u16-strcat: Likewise.
4741         * modules/unistr/u16-strchr: Likewise.
4742         * modules/unistr/u16-strcmp: Likewise.
4743         * modules/unistr/u16-strcoll: Likewise.
4744         * modules/unistr/u16-strcpy: Likewise.
4745         * modules/unistr/u16-strcspn: Likewise.
4746         * modules/unistr/u16-strdup: Likewise.
4747         * modules/unistr/u16-strlen: Likewise.
4748         * modules/unistr/u16-strmblen: Likewise.
4749         * modules/unistr/u16-strmbtouc: Likewise.
4750         * modules/unistr/u16-strncat: Likewise.
4751         * modules/unistr/u16-strncmp: Likewise.
4752         * modules/unistr/u16-strncpy: Likewise.
4753         * modules/unistr/u16-strnlen: Likewise.
4754         * modules/unistr/u16-strpbrk: Likewise.
4755         * modules/unistr/u16-strrchr: Likewise.
4756         * modules/unistr/u16-strspn: Likewise.
4757         * modules/unistr/u16-strstr: Likewise.
4758         * modules/unistr/u16-strtok: Likewise.
4759         * modules/unistr/u16-to-u32: Likewise.
4760         * modules/unistr/u16-to-u8: Likewise.
4761         * modules/unistr/u16-uctomb: Likewise.
4762         * modules/unistr/u32-check: Likewise.
4763         * modules/unistr/u32-chr: Likewise.
4764         * modules/unistr/u32-cmp: Likewise.
4765         * modules/unistr/u32-cmp2: Likewise.
4766         * modules/unistr/u32-cpy: Likewise.
4767         * modules/unistr/u32-cpy-alloc: Likewise.
4768         * modules/unistr/u32-endswith: Likewise.
4769         * modules/unistr/u32-mblen: Likewise.
4770         * modules/unistr/u32-mbsnlen: Likewise.
4771         * modules/unistr/u32-mbtouc: Likewise.
4772         * modules/unistr/u32-mbtouc-unsafe: Likewise.
4773         * modules/unistr/u32-mbtoucr: Likewise.
4774         * modules/unistr/u32-move: Likewise.
4775         * modules/unistr/u32-next: Likewise.
4776         * modules/unistr/u32-prev: Likewise.
4777         * modules/unistr/u32-set: Likewise.
4778         * modules/unistr/u32-startswith: Likewise.
4779         * modules/unistr/u32-stpcpy: Likewise.
4780         * modules/unistr/u32-stpncpy: Likewise.
4781         * modules/unistr/u32-strcat: Likewise.
4782         * modules/unistr/u32-strchr: Likewise.
4783         * modules/unistr/u32-strcmp: Likewise.
4784         * modules/unistr/u32-strcoll: Likewise.
4785         * modules/unistr/u32-strcpy: Likewise.
4786         * modules/unistr/u32-strcspn: Likewise.
4787         * modules/unistr/u32-strdup: Likewise.
4788         * modules/unistr/u32-strlen: Likewise.
4789         * modules/unistr/u32-strmblen: Likewise.
4790         * modules/unistr/u32-strmbtouc: Likewise.
4791         * modules/unistr/u32-strncat: Likewise.
4792         * modules/unistr/u32-strncmp: Likewise.
4793         * modules/unistr/u32-strncpy: Likewise.
4794         * modules/unistr/u32-strnlen: Likewise.
4795         * modules/unistr/u32-strpbrk: Likewise.
4796         * modules/unistr/u32-strrchr: Likewise.
4797         * modules/unistr/u32-strspn: Likewise.
4798         * modules/unistr/u32-strstr: Likewise.
4799         * modules/unistr/u32-strtok: Likewise.
4800         * modules/unistr/u32-to-u16: Likewise.
4801         * modules/unistr/u32-to-u8: Likewise.
4802         * modules/unistr/u32-uctomb: Likewise.
4803         * modules/uniwbrk/u8-wordbreaks: Likewise.
4804         * modules/uniwbrk/u16-wordbreaks: Likewise.
4805         * modules/uniwbrk/u32-wordbreaks: Likewise.
4806         * modules/uniwbrk/ulc-wordbreaks: Likewise.
4807         * modules/uniwbrk/wordbreak-property: Likewise.
4808         * modules/uniwidth/u8-strwidth: Likewise.
4809         * modules/uniwidth/u8-width: Likewise.
4810         * modules/uniwidth/u16-strwidth: Likewise.
4811         * modules/uniwidth/u16-width: Likewise.
4812         * modules/uniwidth/u32-strwidth: Likewise.
4813         * modules/uniwidth/u32-width: Likewise.
4814         * modules/uniwidth/width: Likewise.
4815         * modules/unicase/cased-tests (Makefile.am): Link all test programs
4816         with $(LIBUNISTRING).
4817         * modules/unicase/ignorable-tests: Likewise.
4818         * modules/unicase/locale-language-tests: Likewise.
4819         * modules/unicase/tolower-tests: Likewise.
4820         * modules/unicase/totitle-tests: Likewise.
4821         * modules/unicase/toupper-tests: Likewise.
4822         * modules/unicase/u8-casecmp-tests: Likewise.
4823         * modules/unicase/u8-casecoll-tests: Likewise.
4824         * modules/unicase/u8-casefold-tests: Likewise.
4825         * modules/unicase/u8-is-cased-tests: Likewise.
4826         * modules/unicase/u8-is-casefolded-tests: Likewise.
4827         * modules/unicase/u8-is-lowercase-tests: Likewise.
4828         * modules/unicase/u8-is-titlecase-tests: Likewise.
4829         * modules/unicase/u8-is-uppercase-tests: Likewise.
4830         * modules/unicase/u8-tolower-tests: Likewise.
4831         * modules/unicase/u8-totitle-tests: Likewise.
4832         * modules/unicase/u8-toupper-tests: Likewise.
4833         * modules/unicase/u16-casecmp-tests: Likewise.
4834         * modules/unicase/u16-casecoll-tests: Likewise.
4835         * modules/unicase/u16-casefold-tests: Likewise.
4836         * modules/unicase/u16-is-cased-tests: Likewise.
4837         * modules/unicase/u16-is-casefolded-tests: Likewise.
4838         * modules/unicase/u16-is-lowercase-tests: Likewise.
4839         * modules/unicase/u16-is-titlecase-tests: Likewise.
4840         * modules/unicase/u16-is-uppercase-tests: Likewise.
4841         * modules/unicase/u16-tolower-tests: Likewise.
4842         * modules/unicase/u16-totitle-tests: Likewise.
4843         * modules/unicase/u16-toupper-tests: Likewise.
4844         * modules/unicase/u32-casecmp-tests: Likewise.
4845         * modules/unicase/u32-casecoll-tests: Likewise.
4846         * modules/unicase/u32-casefold-tests: Likewise.
4847         * modules/unicase/u32-is-cased-tests: Likewise.
4848         * modules/unicase/u32-is-casefolded-tests: Likewise.
4849         * modules/unicase/u32-is-lowercase-tests: Likewise.
4850         * modules/unicase/u32-is-titlecase-tests: Likewise.
4851         * modules/unicase/u32-is-uppercase-tests: Likewise.
4852         * modules/unicase/u32-tolower-tests: Likewise.
4853         * modules/unicase/u32-totitle-tests: Likewise.
4854         * modules/unicase/u32-toupper-tests: Likewise.
4855         * modules/unicase/ulc-casecmp-tests: Likewise.
4856         * modules/unicase/ulc-casecoll-tests: Likewise.
4857         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
4858         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
4859         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
4860         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
4861         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
4862         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
4863         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
4864         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
4865         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
4866         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
4867         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
4868         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
4869         * modules/unictype/bidicategory-byname-tests: Likewise.
4870         * modules/unictype/bidicategory-name-tests: Likewise.
4871         * modules/unictype/bidicategory-of-tests: Likewise.
4872         * modules/unictype/bidicategory-test-tests: Likewise.
4873         * modules/unictype/block-list-tests: Likewise.
4874         * modules/unictype/block-of-tests: Likewise.
4875         * modules/unictype/block-test-tests: Likewise.
4876         * modules/unictype/category-C-tests: Likewise.
4877         * modules/unictype/category-Cc-tests: Likewise.
4878         * modules/unictype/category-Cf-tests: Likewise.
4879         * modules/unictype/category-Cn-tests: Likewise.
4880         * modules/unictype/category-Co-tests: Likewise.
4881         * modules/unictype/category-Cs-tests: Likewise.
4882         * modules/unictype/category-L-tests: Likewise.
4883         * modules/unictype/category-Ll-tests: Likewise.
4884         * modules/unictype/category-Lm-tests: Likewise.
4885         * modules/unictype/category-Lo-tests: Likewise.
4886         * modules/unictype/category-Lt-tests: Likewise.
4887         * modules/unictype/category-Lu-tests: Likewise.
4888         * modules/unictype/category-M-tests: Likewise.
4889         * modules/unictype/category-Mc-tests: Likewise.
4890         * modules/unictype/category-Me-tests: Likewise.
4891         * modules/unictype/category-Mn-tests: Likewise.
4892         * modules/unictype/category-N-tests: Likewise.
4893         * modules/unictype/category-Nd-tests: Likewise.
4894         * modules/unictype/category-Nl-tests: Likewise.
4895         * modules/unictype/category-No-tests: Likewise.
4896         * modules/unictype/category-P-tests: Likewise.
4897         * modules/unictype/category-Pc-tests: Likewise.
4898         * modules/unictype/category-Pd-tests: Likewise.
4899         * modules/unictype/category-Pe-tests: Likewise.
4900         * modules/unictype/category-Pf-tests: Likewise.
4901         * modules/unictype/category-Pi-tests: Likewise.
4902         * modules/unictype/category-Po-tests: Likewise.
4903         * modules/unictype/category-Ps-tests: Likewise.
4904         * modules/unictype/category-S-tests: Likewise.
4905         * modules/unictype/category-Sc-tests: Likewise.
4906         * modules/unictype/category-Sk-tests: Likewise.
4907         * modules/unictype/category-Sm-tests: Likewise.
4908         * modules/unictype/category-So-tests: Likewise.
4909         * modules/unictype/category-Z-tests: Likewise.
4910         * modules/unictype/category-Zl-tests: Likewise.
4911         * modules/unictype/category-Zp-tests: Likewise.
4912         * modules/unictype/category-Zs-tests: Likewise.
4913         * modules/unictype/category-and-not-tests: Likewise.
4914         * modules/unictype/category-and-tests: Likewise.
4915         * modules/unictype/category-byname-tests: Likewise.
4916         * modules/unictype/category-name-tests: Likewise.
4917         * modules/unictype/category-none-tests: Likewise.
4918         * modules/unictype/category-of-tests: Likewise.
4919         * modules/unictype/category-or-tests: Likewise.
4920         * modules/unictype/category-test-withtable-tests: Likewise.
4921         * modules/unictype/combining-class-tests: Likewise.
4922         * modules/unictype/ctype-alnum-tests: Likewise.
4923         * modules/unictype/ctype-alpha-tests: Likewise.
4924         * modules/unictype/ctype-blank-tests: Likewise.
4925         * modules/unictype/ctype-cntrl-tests: Likewise.
4926         * modules/unictype/ctype-digit-tests: Likewise.
4927         * modules/unictype/ctype-graph-tests: Likewise.
4928         * modules/unictype/ctype-lower-tests: Likewise.
4929         * modules/unictype/ctype-print-tests: Likewise.
4930         * modules/unictype/ctype-punct-tests: Likewise.
4931         * modules/unictype/ctype-space-tests: Likewise.
4932         * modules/unictype/ctype-upper-tests: Likewise.
4933         * modules/unictype/ctype-xdigit-tests: Likewise.
4934         * modules/unictype/decimal-digit-tests: Likewise.
4935         * modules/unictype/digit-tests: Likewise.
4936         * modules/unictype/mirror-tests: Likewise.
4937         * modules/unictype/numeric-tests: Likewise.
4938         * modules/unictype/property-alphabetic-tests: Likewise.
4939         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
4940         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
4941         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
4942         * modules/unictype/property-bidi-block-separator-tests: Likewise.
4943         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
4944         * modules/unictype/property-bidi-common-separator-tests: Likewise.
4945         * modules/unictype/property-bidi-control-tests: Likewise.
4946         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
4947         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
4948         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
4949         * modules/unictype/property-bidi-european-digit-tests: Likewise.
4950         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
4951         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
4952         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
4953         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
4954         * modules/unictype/property-bidi-pdf-tests: Likewise.
4955         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
4956         * modules/unictype/property-bidi-whitespace-tests: Likewise.
4957         * modules/unictype/property-byname-tests: Likewise.
4958         * modules/unictype/property-combining-tests: Likewise.
4959         * modules/unictype/property-composite-tests: Likewise.
4960         * modules/unictype/property-currency-symbol-tests: Likewise.
4961         * modules/unictype/property-dash-tests: Likewise.
4962         * modules/unictype/property-decimal-digit-tests: Likewise.
4963         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
4964         * modules/unictype/property-deprecated-tests: Likewise.
4965         * modules/unictype/property-diacritic-tests: Likewise.
4966         * modules/unictype/property-extender-tests: Likewise.
4967         * modules/unictype/property-format-control-tests: Likewise.
4968         * modules/unictype/property-grapheme-base-tests: Likewise.
4969         * modules/unictype/property-grapheme-extend-tests: Likewise.
4970         * modules/unictype/property-grapheme-link-tests: Likewise.
4971         * modules/unictype/property-hex-digit-tests: Likewise.
4972         * modules/unictype/property-hyphen-tests: Likewise.
4973         * modules/unictype/property-id-continue-tests: Likewise.
4974         * modules/unictype/property-id-start-tests: Likewise.
4975         * modules/unictype/property-ideographic-tests: Likewise.
4976         * modules/unictype/property-ids-binary-operator-tests: Likewise.
4977         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
4978         * modules/unictype/property-ignorable-control-tests: Likewise.
4979         * modules/unictype/property-iso-control-tests: Likewise.
4980         * modules/unictype/property-join-control-tests: Likewise.
4981         * modules/unictype/property-left-of-pair-tests: Likewise.
4982         * modules/unictype/property-line-separator-tests: Likewise.
4983         * modules/unictype/property-logical-order-exception-tests: Likewise.
4984         * modules/unictype/property-lowercase-tests: Likewise.
4985         * modules/unictype/property-math-tests: Likewise.
4986         * modules/unictype/property-non-break-tests: Likewise.
4987         * modules/unictype/property-not-a-character-tests: Likewise.
4988         * modules/unictype/property-numeric-tests: Likewise.
4989         * modules/unictype/property-other-alphabetic-tests: Likewise.
4990         * modules/unictype/property-other-default-ignorable-code-point-tests:
4991         Likewise.
4992         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
4993         * modules/unictype/property-other-id-continue-tests: Likewise.
4994         * modules/unictype/property-other-id-start-tests: Likewise.
4995         * modules/unictype/property-other-lowercase-tests: Likewise.
4996         * modules/unictype/property-other-math-tests: Likewise.
4997         * modules/unictype/property-other-uppercase-tests: Likewise.
4998         * modules/unictype/property-paired-punctuation-tests: Likewise.
4999         * modules/unictype/property-paragraph-separator-tests: Likewise.
5000         * modules/unictype/property-pattern-syntax-tests: Likewise.
5001         * modules/unictype/property-pattern-white-space-tests: Likewise.
5002         * modules/unictype/property-private-use-tests: Likewise.
5003         * modules/unictype/property-punctuation-tests: Likewise.
5004         * modules/unictype/property-quotation-mark-tests: Likewise.
5005         * modules/unictype/property-radical-tests: Likewise.
5006         * modules/unictype/property-sentence-terminal-tests: Likewise.
5007         * modules/unictype/property-soft-dotted-tests: Likewise.
5008         * modules/unictype/property-space-tests: Likewise.
5009         * modules/unictype/property-terminal-punctuation-tests: Likewise.
5010         * modules/unictype/property-test-tests: Likewise.
5011         * modules/unictype/property-titlecase-tests: Likewise.
5012         * modules/unictype/property-unassigned-code-value-tests: Likewise.
5013         * modules/unictype/property-unified-ideograph-tests: Likewise.
5014         * modules/unictype/property-uppercase-tests: Likewise.
5015         * modules/unictype/property-variation-selector-tests: Likewise.
5016         * modules/unictype/property-white-space-tests: Likewise.
5017         * modules/unictype/property-xid-continue-tests: Likewise.
5018         * modules/unictype/property-xid-start-tests: Likewise.
5019         * modules/unictype/property-zero-width-tests: Likewise.
5020         * modules/unictype/scripts-tests: Likewise.
5021         * modules/unictype/syntax-c-ident-tests: Likewise.
5022         * modules/unictype/syntax-c-whitespace-tests: Likewise.
5023         * modules/unictype/syntax-java-ident-tests: Likewise.
5024         * modules/unictype/syntax-java-whitespace-tests: Likewise.
5025         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
5026         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
5027         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
5028         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
5029         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
5030         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
5031         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
5032         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
5033         * modules/uniname/uniname-tests: Likewise.
5034         * modules/uninorm/canonical-decomposition-tests: Likewise.
5035         * modules/uninorm/compat-decomposition-tests: Likewise.
5036         * modules/uninorm/composition-tests: Likewise.
5037         * modules/uninorm/decomposing-form-tests: Likewise.
5038         * modules/uninorm/decomposition-tests: Likewise.
5039         * modules/uninorm/filter-tests: Likewise.
5040         * modules/uninorm/nfc-tests: Likewise.
5041         * modules/uninorm/nfd-tests: Likewise.
5042         * modules/uninorm/nfkc-tests: Likewise.
5043         * modules/uninorm/nfkd-tests: Likewise.
5044         * modules/uninorm/u8-normcmp-tests: Likewise.
5045         * modules/uninorm/u8-normcoll-tests: Likewise.
5046         * modules/uninorm/u16-normcmp-tests: Likewise.
5047         * modules/uninorm/u16-normcoll-tests: Likewise.
5048         * modules/uninorm/u32-normcmp-tests: Likewise.
5049         * modules/uninorm/u32-normcoll-tests: Likewise.
5050         * modules/unistdio/u8-asnprintf-tests: Likewise.
5051         * modules/unistdio/u8-vasnprintf-tests: Likewise.
5052         * modules/unistdio/u8-vasprintf-tests: Likewise.
5053         * modules/unistdio/u8-vsnprintf-tests: Likewise.
5054         * modules/unistdio/u8-vsprintf-tests: Likewise.
5055         * modules/unistdio/u16-asnprintf-tests: Likewise.
5056         * modules/unistdio/u16-vasnprintf-tests: Likewise.
5057         * modules/unistdio/u16-vasprintf-tests: Likewise.
5058         * modules/unistdio/u16-vsnprintf-tests: Likewise.
5059         * modules/unistdio/u16-vsprintf-tests: Likewise.
5060         * modules/unistdio/u32-asnprintf-tests: Likewise.
5061         * modules/unistdio/u32-vasnprintf-tests: Likewise.
5062         * modules/unistdio/u32-vasprintf-tests: Likewise.
5063         * modules/unistdio/u32-vsnprintf-tests: Likewise.
5064         * modules/unistdio/u32-vsprintf-tests: Likewise.
5065         * modules/unistdio/ulc-asnprintf-tests: Likewise.
5066         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
5067         * modules/unistdio/ulc-vasprintf-tests: Likewise.
5068         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
5069         * modules/unistdio/ulc-vsprintf-tests: Likewise.
5070         * modules/unistr/u8-check-tests: Likewise.
5071         * modules/unistr/u8-chr-tests: Likewise.
5072         * modules/unistr/u8-cmp-tests: Likewise.
5073         * modules/unistr/u8-cmp2-tests: Likewise.
5074         * modules/unistr/u8-cpy-alloc-tests: Likewise.
5075         * modules/unistr/u8-cpy-tests: Likewise.
5076         * modules/unistr/u8-mblen-tests: Likewise.
5077         * modules/unistr/u8-mbsnlen-tests: Likewise.
5078         * modules/unistr/u8-mbtouc-tests: Likewise.
5079         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
5080         * modules/unistr/u8-mbtoucr-tests: Likewise.
5081         * modules/unistr/u8-move-tests: Likewise.
5082         * modules/unistr/u8-next-tests: Likewise.
5083         * modules/unistr/u8-prev-tests: Likewise.
5084         * modules/unistr/u8-set-tests: Likewise.
5085         * modules/unistr/u8-stpcpy-tests: Likewise.
5086         * modules/unistr/u8-stpncpy-tests: Likewise.
5087         * modules/unistr/u8-strcat-tests: Likewise.
5088         * modules/unistr/u8-strcmp-tests: Likewise.
5089         * modules/unistr/u8-strcoll-tests: Likewise.
5090         * modules/unistr/u8-strcpy-tests: Likewise.
5091         * modules/unistr/u8-strdup-tests: Likewise.
5092         * modules/unistr/u8-strlen-tests: Likewise.
5093         * modules/unistr/u8-strmblen-tests: Likewise.
5094         * modules/unistr/u8-strmbtouc-tests: Likewise.
5095         * modules/unistr/u8-strncat-tests: Likewise.
5096         * modules/unistr/u8-strncmp-tests: Likewise.
5097         * modules/unistr/u8-strncpy-tests: Likewise.
5098         * modules/unistr/u8-strnlen-tests: Likewise.
5099         * modules/unistr/u8-to-u16-tests: Likewise.
5100         * modules/unistr/u8-to-u32-tests: Likewise.
5101         * modules/unistr/u8-uctomb-tests: Likewise.
5102         * modules/unistr/u16-check-tests: Likewise.
5103         * modules/unistr/u16-chr-tests: Likewise.
5104         * modules/unistr/u16-cmp-tests: Likewise.
5105         * modules/unistr/u16-cmp2-tests: Likewise.
5106         * modules/unistr/u16-cpy-alloc-tests: Likewise.
5107         * modules/unistr/u16-cpy-tests: Likewise.
5108         * modules/unistr/u16-mblen-tests: Likewise.
5109         * modules/unistr/u16-mbsnlen-tests: Likewise.
5110         * modules/unistr/u16-mbtouc-tests: Likewise.
5111         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
5112         * modules/unistr/u16-mbtoucr-tests: Likewise.
5113         * modules/unistr/u16-move-tests: Likewise.
5114         * modules/unistr/u16-next-tests: Likewise.
5115         * modules/unistr/u16-prev-tests: Likewise.
5116         * modules/unistr/u16-set-tests: Likewise.
5117         * modules/unistr/u16-stpcpy-tests: Likewise.
5118         * modules/unistr/u16-stpncpy-tests: Likewise.
5119         * modules/unistr/u16-strcat-tests: Likewise.
5120         * modules/unistr/u16-strcmp-tests: Likewise.
5121         * modules/unistr/u16-strcoll-tests: Likewise.
5122         * modules/unistr/u16-strcpy-tests: Likewise.
5123         * modules/unistr/u16-strdup-tests: Likewise.
5124         * modules/unistr/u16-strlen-tests: Likewise.
5125         * modules/unistr/u16-strmblen-tests: Likewise.
5126         * modules/unistr/u16-strmbtouc-tests: Likewise.
5127         * modules/unistr/u16-strncat-tests: Likewise.
5128         * modules/unistr/u16-strncmp-tests: Likewise.
5129         * modules/unistr/u16-strncpy-tests: Likewise.
5130         * modules/unistr/u16-strnlen-tests: Likewise.
5131         * modules/unistr/u16-to-u32-tests: Likewise.
5132         * modules/unistr/u16-to-u8-tests: Likewise.
5133         * modules/unistr/u16-uctomb-tests: Likewise.
5134         * modules/unistr/u32-check-tests: Likewise.
5135         * modules/unistr/u32-chr-tests: Likewise.
5136         * modules/unistr/u32-cmp-tests: Likewise.
5137         * modules/unistr/u32-cmp2-tests: Likewise.
5138         * modules/unistr/u32-cpy-alloc-tests: Likewise.
5139         * modules/unistr/u32-cpy-tests: Likewise.
5140         * modules/unistr/u32-mblen-tests: Likewise.
5141         * modules/unistr/u32-mbsnlen-tests: Likewise.
5142         * modules/unistr/u32-mbtouc-tests: Likewise.
5143         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
5144         * modules/unistr/u32-mbtoucr-tests: Likewise.
5145         * modules/unistr/u32-move-tests: Likewise.
5146         * modules/unistr/u32-next-tests: Likewise.
5147         * modules/unistr/u32-prev-tests: Likewise.
5148         * modules/unistr/u32-set-tests: Likewise.
5149         * modules/unistr/u32-stpcpy-tests: Likewise.
5150         * modules/unistr/u32-stpncpy-tests: Likewise.
5151         * modules/unistr/u32-strcat-tests: Likewise.
5152         * modules/unistr/u32-strcmp-tests: Likewise.
5153         * modules/unistr/u32-strcoll-tests: Likewise.
5154         * modules/unistr/u32-strcpy-tests: Likewise.
5155         * modules/unistr/u32-strdup-tests: Likewise.
5156         * modules/unistr/u32-strlen-tests: Likewise.
5157         * modules/unistr/u32-strmblen-tests: Likewise.
5158         * modules/unistr/u32-strmbtouc-tests: Likewise.
5159         * modules/unistr/u32-strncat-tests: Likewise.
5160         * modules/unistr/u32-strncmp-tests: Likewise.
5161         * modules/unistr/u32-strncpy-tests: Likewise.
5162         * modules/unistr/u32-strnlen-tests: Likewise.
5163         * modules/unistr/u32-to-u16-tests: Likewise.
5164         * modules/unistr/u32-to-u8-tests: Likewise.
5165         * modules/unistr/u32-uctomb-tests: Likewise.
5166         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
5167         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
5168         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
5169         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
5170         * modules/uniwidth/u8-strwidth-tests: Likewise.
5171         * modules/uniwidth/u8-width-tests: Likewise.
5172         * modules/uniwidth/u16-strwidth-tests: Likewise.
5173         * modules/uniwidth/u16-width-tests: Likewise.
5174         * modules/uniwidth/u32-strwidth-tests: Likewise.
5175         * modules/uniwidth/u32-width-tests: Likewise.
5176         * modules/uniwidth/width-tests: Likewise.
5177
5178 2010-05-18  Richard Jones  <rjones@redhat.com>
5179
5180         doc: users.txt: list hivex
5181         * users.txt: Add hivex.
5182
5183 2010-05-18  Richard Jones  <rjones@redhat.com>
5184
5185         doc: users.txt: list febootstrap
5186         * users.txt: Add febootstrap.
5187
5188 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
5189
5190         bootstrap: fix an error when gnulib is not used as a git submodule
5191         * build-aux/bootstrap (gnulib_path): If its length is zero then
5192         assign "gnulib" to it.
5193         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
5194
5195 2010-05-16  Bruno Haible  <bruno@clisp.org>
5196
5197         Avoid autoconf warnings about AM_ICONV.
5198         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
5199         2.64.
5200
5201 2010-05-16  Bruno Haible  <bruno@clisp.org>
5202
5203         absolute-header: Make the macro usable in more situations.
5204         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
5205         from gl_ABSOLUTE_HEADER.
5206         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
5207
5208 2010-05-16  James Youngman  <jay@gnu.org>
5209
5210         doc: update users.txt
5211         * users.txt: Add CSSC.
5212
5213 2010-05-16  Jim Meyering  <meyering@redhat.com>
5214
5215         init.sh: fix an error in the previous change; add more comments
5216         * tests/init.sh: Compare exit code in loop against 9, not 2.
5217         Patch by Bruno Haible.
5218         Make the two tests more similar by adding an empty "then" clause.
5219         Add comments.
5220
5221         init.sh: avoid unnecessary shell re-exec
5222         * tests/init.sh: Improve the re-exec-required check to first test the
5223         current shell.  If it passes the test, do not search for a shell that
5224         does pass, and do not re-exec.  This test is particularly contorted to
5225         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
5226         of $(...) evokes a syntax error and causes immediate shell exit with
5227         status 2.  Bruno Haible reported that the re-exec made it impossible
5228         to single-step through any init.sh-using script.
5229
5230 2010-05-16  Bruno Haible  <bruno@clisp.org>
5231
5232         Fix collision between gnulib's and libintl's printf replacements.
5233         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
5234         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
5235         (printf): When using GNU C, map the __printf__ function to rpl_printf
5236         via __asm__. When not using GNU C, define rpl_printf instead of
5237         __printf__.
5238         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
5239         commit.
5240         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
5241         commit.
5242         * m4/asm-underscore.m4: New file.
5243         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
5244         * modules/stdio (Files): Add m4/asm-underscore.m4.
5245         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
5246         Reported by Ben Pfaff.
5247
5248 2010-05-16  Bruno Haible  <bruno@clisp.org>
5249
5250         verify: Avoid skipping the test on openSUSE 11.0.
5251         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
5252
5253 2010-05-13  Bruno Haible  <bruno@clisp.org>
5254
5255         Avoid useless warnings from G++.
5256         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
5257         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
5258         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5259
5260 2010-05-11  Jim Meyering  <meyering@redhat.com>
5261
5262         maint.mk: tweak preceding change
5263         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
5264         regexps tighter by anchoring at EOL, and make the new group "shy"
5265         for slightly decreased overhead.
5266
5267 2010-05-11  Eric Blake  <eblake@redhat.com>
5268
5269         maint.mk: gnulib doesn't guarantee NSIG
5270         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
5271
5272 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
5273
5274         test-pwrite.c: Remove unused variable declaration.
5275         * tests/test-pwrite.c (main): Remove read_buf declaration.
5276
5277         Remove useless test-pwrite.sh file.
5278         * tests/test-pwrite.sh: Delete file.
5279         * modules/pwrite-tests: Remove references.
5280         Reported by Bruno Haible.
5281
5282 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
5283
5284         init.sh: fix a typo
5285         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
5286
5287 2010-05-10  Jim Meyering  <meyering@redhat.com>
5288
5289         maint.mk: avoid using a temporary file in the always-defined-macros check
5290         * top/maint.mk (.re-defmac): Remove rule.
5291         (gl_trap_): Remove definition.
5292         (sc_prohibit_always-defined_macros): Rewrite not to create and
5293         depend on a temporary file.  Instead, depend on GNU grep's ability
5294         to read a list of regular expressions from stdin when given "-f -".
5295
5296 2010-05-09  Bruno Haible  <bruno@clisp.org>
5297
5298         Update to GNU gettext 0.18, part 1.
5299         * m4/gettext.m4: Update to GNU gettext 0.18.
5300         * m4/intl.m4: Likewise.
5301         * m4/po.m4: Likewise.
5302         * modules/gettext (Files): Add m4/fcntl-o.m4.
5303         (configure.ac): Require gettext infrastructure from version 0.18.
5304
5305 2010-05-09  Jim Meyering  <meyering@redhat.com>
5306
5307         init.sh: enable MALLOC_PERTURB_
5308         * tests/init.sh: Enable glibc's malloc-perturbing option.
5309
5310         maint.mk: improve sc_cross_check_PATH_usage_in_tests
5311         With my recent change in init.sh from the two-line form:
5312             -#   : ${srcdir=.}
5313             -#   . "$srcdir/init.sh"; path_prepend_ .
5314             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
5315         I noticed that using the one-line form would cause this test
5316         to fail with a false-positive, or to stop working altogether,
5317         depending on whether help-version changed or all the tests did.
5318         * top/maint.mk (_hv_regex): Remove this definition.
5319         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
5320         (_hv_regex_strong): Use a stronger regex to check for conformance.
5321         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
5322         Give a separate diagnostic for lack of conforming use.
5323
5324         maint.mk: prohibit definition of symbols defined by gnulib
5325         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
5326         definition of symbols defined by gnulib.
5327
5328 2010-05-09  Bruno Haible  <bruno@clisp.org>
5329
5330         acl: Avoid test failure on Cygwin-hosted mingw.
5331         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
5332
5333 2010-05-09  Bruno Haible  <bruno@clisp.org>
5334
5335         error: Use system's fcntl function.
5336         * lib/error.c (fcntl): Undefine.
5337
5338 2010-05-09  Jim Meyering  <meyering@redhat.com>
5339
5340         verify: adjust formatting to be more consistent
5341         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
5342         argument-list '('s, and after one comma.
5343
5344 2010-05-09  Bruno Haible  <bruno@clisp.org>
5345
5346         error: More reliable output on mingw.
5347         * lib/error.c: Include <windows.h>.
5348         (is_open): New function.
5349         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
5350         defined.
5351
5352 2010-05-09  Bruno Haible  <bruno@clisp.org>
5353
5354         vasnprintf: Fix syntax errors in libintl build on mingw.
5355         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
5356         pad_ourselves and prec_ourselves after use.
5357
5358 2010-05-08  Bruno Haible  <bruno@clisp.org>
5359
5360         * lib/config.charset: Update comments for Cygwin 1.7.
5361         * lib/localcharset.c: Likewise.
5362
5363 2010-05-07  Jim Meyering  <meyering@redhat.com>
5364
5365         init.sh: improve comments
5366         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
5367         . "${srcdir=.}/init.sh"; path_prepend_ .
5368         Add a note about path_prepend_ and the alternative of using
5369         TESTS_ENVIRONMENT.
5370
5371 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
5372
5373         exclude: Unescape hashed patterns in wildcard mode.
5374         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
5375         to the hash list.
5376         * tests/test-exclude8.sh: New test case.
5377         * modules/exclude-tests: Add new test.
5378
5379 2010-05-05  Eric Blake  <eblake@redhat.com>
5380
5381         verify: automate tests
5382         * modules/verify-tests: New module.
5383         * tests/test-verify.sh: New file.
5384         * tests/test-verify.c: Guard each negative test with a unique id.
5385         Also avoid warning about unused left hand of comma expressions.
5386
5387 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5388
5389         Further improvements to verify.h, suggested by Eric Blake.
5390         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
5391         the GL_* versions, to avoid collision with OpenGL.
5392         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
5393         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
5394         than testing merely whether it's defined.
5395
5396         Modify verify.h to pacify gcc -Wredundant_decls.
5397         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
5398         These use the prefix "GL_" since they're likely to be useful elsewhere.
5399         We may need to break them out into a different .h file.
5400         (__COUNTER__): Define to 0 if the compiler doesn't support it.
5401         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
5402         of verify_function__.
5403
5404 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5405
5406         Tests for module pwrite.
5407         * modules/pwrite-tests: New file.
5408         * tests/test-pwrite.sh: New file.
5409         * tests/test-pwrite.c: New file.
5410
5411         New module pwrite.
5412         * lib/unistd.in.h (pwrite): New declaration.
5413         * lib/pwrite.c: New file, from glibc with modifications.
5414         * m4/pwrite.m4: New file.
5415         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
5416         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
5417         REPLACE_PWRITE.
5418         * modules/pwrite: New file.
5419         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
5420         REPLACE_PWRITE.
5421         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
5422         * doc/posix-functions/pwrite.texi: Mention the new module.
5423
5424 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5425
5426         pread: Update documentation.
5427         * doc/posix-functions/pread.texi: Mention the 'pread' module.
5428
5429 2010-05-04  Eric Blake  <eblake@redhat.com>
5430
5431         docs: update cygwin progress
5432         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
5433         this bug.
5434         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
5435         Added in cygwin 1.7.2.
5436         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
5437         Likewise.
5438         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
5439         Likewise.
5440         * doc/glibc-functions/dup3.texi (dup3): Likewise.
5441         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5442         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5443         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
5444         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
5445         Mention nproc module.
5446         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
5447         bug in cygwin 1.7.5 addition.
5448         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
5449         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
5450         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
5451         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
5452         1.7.5.
5453         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
5454         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
5455         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
5456         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
5457         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
5458         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
5459         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
5460         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
5461         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
5462         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
5463         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
5464         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
5465         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
5466         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
5467         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
5468         Likewise.
5469         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
5470         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
5471         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
5472         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
5473         Likewise.
5474         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
5475         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
5476         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
5477         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
5478         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
5479         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
5480         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
5481         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
5482         Likewise.
5483         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
5484         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
5485         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
5486         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
5487         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
5488         Likewise.
5489         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
5490         Likewise.
5491         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
5492         Likewise.
5493         * doc/glibc-functions/xdrrec_endofrecord.texi
5494         (xdrrec_endofrecord): Likewise.
5495         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
5496         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
5497         Likewise.
5498         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
5499         Likewise.
5500
5501 2010-05-04  Jim Meyering  <meyering@redhat.com>
5502
5503         gendocs.sh: make its "-s FILE" option more useful
5504         * build-aux/gendocs.sh: When honoring the -s FILE option, update
5505         $PACKAGE to reflect the probably-different basename of "FILE".
5506
5507 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
5508
5509         bootstrap: don't ignore download_po_files failure
5510         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
5511         failure.
5512
5513 2010-05-03  Jim Meyering  <meyering@redhat.com>
5514
5515         maint.mk: allow to pass options to gendocs.sh
5516         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
5517         (gendocs_options_): New overridable variable.
5518
5519         gnu-web-doc-update: don't ignore configure or build failure
5520         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
5521
5522         announce-gen: backslash-escape '@'s in --help output
5523         * build-aux/announce-gen: Fix syntax errors.
5524
5525         maint.mk, announce-gen: allow project-specific announcement mail headers
5526         * top/maint.mk (translation_project_): Define default.
5527         (announcement_Cc_, announcement_mail_headers_): Likewise.
5528         (announcement): Invoke announce-gen with new --mail-headers option.
5529         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
5530
5531         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
5532         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
5533         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
5534         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
5535         line in the "err2" output file when running "make check" in verbose
5536         mode (i.e., with set -x enabled).
5537
5538 2010-05-03  Bruno Haible  <bruno@clisp.org>
5539
5540         wctob: Fix for weird platforms.
5541         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
5542         argument value.
5543
5544 2010-05-03  Jim Meyering  <meyering@redhat.com>
5545
5546         maint.mk: prohibit unwarranted use of <strings.h>
5547         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
5548         strings.h in a file that does not also use strcasecmp, strncasecmp,
5549         ffs or ffsll.
5550
5551         maint.mk: remove obsolete comments
5552         * top/maint.mk: Remove stale, commented-out rules.
5553
5554 2010-05-02  Bruno Haible  <bruno@clisp.org>
5555
5556         wcwidth: Declare also when it's aliased.
5557         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
5558         macro.
5559
5560 2010-05-02  Bruno Haible  <bruno@clisp.org>
5561
5562         Fix regression from 2010-04-25.
5563         * gnulib-tool (func_modules_transitive_closure): Check the status of
5564         all modules, not only of the tests that are of the form foo-tests where
5565         foo is a module.
5566
5567 2010-05-02  Bruno Haible  <bruno@clisp.org>
5568
5569         wctob: Work around nasty Cygwin 1.7.2 bug.
5570         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
5571         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
5572
5573 2010-05-01  Bruno Haible  <bruno@clisp.org>
5574
5575         fpurge: Sharper test.
5576         * tests/test-fpurge.c (main): Add one more ftell check.
5577         * modules/fpurge-tests (Depends-on): Add ftell.
5578         Suggested by Eric Blake.
5579
5580 2010-05-01  Bruno Haible  <bruno@clisp.org>
5581
5582         ftello: Another test.
5583         * tests/test-ftello3.c: New file.
5584         * modules/ftello-tests (Files): Add it.
5585         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5586         MOSTLYCLEANFILES.
5587
5588         ftell: Another test.
5589         * tests/test-ftell3.c: New file.
5590         * modules/ftell-tests (Files): Add it.
5591         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5592         MOSTLYCLEANFILES.
5593
5594 2010-05-01  Bruno Haible  <bruno@clisp.org>
5595
5596         ftell, ftello: Work around Solaris bug.
5597         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
5598         * lib/ftello.c: Include stdio-impl.h.
5599         (ftello): On Solaris, when _IOWRT is set, compute the result without
5600         looking at _IOREAD.
5601         * modules/ftello (Files): Add lib/stdio-impl.h.
5602         * doc/posix-functions/ftell.texi: Mention Solaris bug.
5603         * doc/posix-functions/ftello.texi: Likewise.
5604         Reported by Eric Blake.
5605
5606 2010-05-01  Bruno Haible  <bruno@clisp.org>
5607
5608         freading: Adapt to special meaning of _IOREAD flag on Solaris.
5609         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
5610         the _IOWRT flag is also set.
5611
5612 2010-05-01  Bruno Haible  <bruno@clisp.org>
5613
5614         Fix doc about a HP-UX stdio bug.
5615         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
5616         * doc/posix-functions/ftello.texi: Likewise.
5617
5618 2010-05-01  Bruno Haible  <bruno@clisp.org>
5619
5620         lseek test: Fix failure on Solaris.
5621         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
5622         output.
5623
5624 2010-04-30  Jim Meyering  <meyering@redhat.com>
5625
5626         bootstrap: don't ignore failure to generate po*/Makevars
5627         * build-aux/bootstrap (with_gettext): Don't ignore failure
5628         to create po/Makevars or runtime-po/Makevars.
5629
5630 2010-04-29  Eric Blake  <eblake@redhat.com>
5631
5632         headers: relax license to LGPLv2+
5633         * modules/fcntl-h (License): Relax license.
5634         * modules/getopt-posix (License): Likewise.
5635         * modules/locale (License): Likewise.
5636         * modules/math (License): Likewise.
5637         * modules/pty (License): Likewise.
5638         * modules/sched (License): Likewise.
5639         * modules/search (License): Likewise.
5640         * modules/spawn (License): Likewise.
5641         * modules/stdarg (License): Likewise.
5642         * modules/sysexits (License): Likewise.
5643
5644 2010-04-29  Jim Meyering  <meyering@redhat.com>
5645
5646         inttypes: relax license to LGPLv2+
5647         * modules/inttypes (License): Relax license.
5648
5649 2010-04-29  Simon Josefsson  <simon@josefsson.org>
5650
5651         * top/maint.mk (indent): Run twice to produce idempotent results.
5652
5653 2010-04-28  Bruno Haible  <bruno@clisp.org>
5654
5655         getdate: Generate getdate.c in the source directory.
5656         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
5657         MOSTLYCLEANFILES.
5658         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
5659
5660 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
5661
5662         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
5663         is not declared as a const *; avoid warnings in that case.
5664
5665 2010-04-28  Eric Blake  <eblake@redhat.com>
5666
5667         canonicalize-lgpl: avoid compiler warning
5668         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
5669         declaration' / 'extraneous semicolon' warning with some compilers.
5670         Reported by Andreas Gruenbacher.
5671
5672 2010-04-28  Jim Meyering  <meyering@redhat.com>
5673
5674         init.sh: ensure a more reliable exit status when exiting via trap
5675         * tests/init.sh (setup_): Don't rely on $? in signal handler.
5676         Inspired by patches from Dmitry V. Levin.
5677         Also trap on signal 3 (SIGQUIT).
5678
5679 2010-04-27  Bruno Haible  <bruno@clisp.org>
5680
5681         Update doc about utimes().
5682         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
5683         'utimens' module.
5684         Reported by Andreas Gruenbacher <agruen@suse.de>.
5685
5686 2010-04-27  Eric Blake  <eblake@redhat.com>
5687
5688         full-read, full-write: relax license
5689         * modules/full-read (License): Drop to LGPLv2+.
5690         * modules/full-write (License): Likewise.
5691         * modules/safe-read (License): Likewise.
5692         * modules/safe-write (License): Likewise.
5693
5694         pthread: mention library for linking
5695         * modules/pthread (Link): Mention $(LIB_PTHREAD).
5696
5697 2010-04-27  Jim Meyering  <meyering@redhat.com>
5698
5699         maint.mk: fix a bug introduced in last change
5700         * top/maint.mk (gl_assured_headers_): Now that all names are on
5701         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
5702         is not anchored to end of word, it should be adequate.
5703
5704         maint.mk: avoid side-effect in latest syntax-check
5705         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
5706         to run commands via $(shell...), and hence to incur cost only when
5707         the new rule is actually run.
5708
5709         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
5710         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
5711         and use that to create a regexp used to detect all #if HAVE_..._H uses.
5712         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
5713         (gl_assured_headers_, az_, AZ_): Define.
5714         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
5715
5716 2010-04-26  Jim Meyering  <jim@meyering.net>
5717             Bruno Haible  <bruno@clisp.org>
5718
5719         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
5720         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
5721         Prompted by an exchange with Gilles Espinasse.
5722
5723 2010-04-26  Jim Meyering  <meyering@redhat.com>
5724
5725         git-version-gen: aesthetic tweak
5726         * build-aux/git-version-gen: Use "$nl" rather than a literal,
5727         so that the command remains on a single line.
5728
5729 2010-04-26  Eric Blake  <eblake@redhat.com>
5730
5731         git-version-gen: allow use on EBCDIC hosts
5732         * build-aux/git-version-gen (dirty): Use literal rather than tying
5733         ourselves to ascii.
5734         Reported by Steve Goetze.
5735
5736 2010-04-25  Bruno Haible  <bruno@clisp.org>
5737
5738         netdb: Add support for GNULIB_POSIXCHECK.
5739         * lib/netdb.in.h: Include warn-on-use.h.
5740         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
5741         functions are used when GNULIB_POSIXCHECK is defined and the
5742         getaddrinfo module is not in use.
5743         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
5744         freeaddrinfo, gai_strerror, getnameinfo are declared.
5745         * modules/netdb (Depends-on): Add warn-on-use.
5746         (Makefile.am): Include warn-on-use.h in netdb.h.
5747
5748 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
5749
5750         build: avoid "make check" failure without .git/ directory
5751         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
5752         there is no .git/ directory.
5753
5754 2010-04-25  Bruno Haible  <bruno@clisp.org>
5755
5756         ptsname: Fix misuse of ttyname_r.
5757         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
5758         of errno.
5759
5760 2010-04-25  Bruno Haible  <bruno@clisp.org>
5761
5762         ttyname_r: Make it work on Solaris 10.
5763         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
5764         if the system function has the POSIX declaration. Test whether the
5765         function fails if the buffer is less than 128 bytes large.
5766         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
5767         system's ttyname_r function. Provide a reasonably large buffer.
5768         * modules/ttyname_r (Depends-on): Add extensions.
5769         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
5770
5771 2010-04-25  Bruno Haible  <bruno@clisp.org>
5772
5773         Use the 'extensions' module for some more functions on Solaris.
5774         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
5775         module.
5776         * doc/posix-functions/ctime_r.texi: Likewise.
5777         * doc/posix-functions/getgrgid_r.texi: Likewise.
5778         * doc/posix-functions/getgrnam_r.texi: Likewise.
5779         * doc/posix-functions/getpwnam_r.texi: Likewise.
5780         * doc/posix-functions/getpwuid_r.texi: Likewise.
5781         * doc/posix-functions/readdir_r.texi: Likewise.
5782         * doc/posix-functions/sigwait.texi: Likewise.
5783         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
5784         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
5785
5786 2010-04-25  Bruno Haible  <bruno@clisp.org>
5787
5788         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
5789         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
5790         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
5791         * lib/ttyname_r.c: Include <limits.h>.
5792         (ttyname_r): Define using the system's ttyname_r function, if it exists
5793         and not on Solaris.
5794         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
5795         set.
5796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
5797         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
5798         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
5799         Reported by Simon Josefsson.
5800
5801 2010-04-25  Bruno Haible  <bruno@clisp.org>
5802
5803         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
5804         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
5805         * doc/posix-functions/ctime_r.texi: Likewise.
5806         * doc/posix-functions/getgrgid_r.texi: Likewise.
5807         * doc/posix-functions/getgrnam_r.texi: Likewise.
5808         * doc/posix-functions/getlogin_r.texi: Likewise.
5809         * doc/posix-functions/getpwnam_r.texi: Likewise.
5810         * doc/posix-functions/getpwuid_r.texi: Likewise.
5811         * doc/posix-functions/readdir_r.texi: Likewise.
5812         * doc/posix-functions/sigwait.texi: Likewise.
5813         * doc/posix-functions/ttyname_r.texi: Likewise.
5814         Reported by Simon Josefsson.
5815
5816 2010-04-25  Bruno Haible  <bruno@clisp.org>
5817
5818         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
5819         * gnulib-tool (func_usage): Document that --with-*-tests options apply
5820         also to --create-testdir.
5821         (func_acceptable): Don't consider the status of *-tests modules here.
5822         (func_modules_transitive_closure): Consider it here, before including a
5823         test module.
5824         (func_import, func_create_testdir): Set inc_all_direct_tests,
5825         inc_all_indirect_tests.
5826         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
5827         --create-testdir and --create-megatestdir.
5828
5829 2010-04-25  Bruno Haible  <bruno@clisp.org>
5830
5831         gnulib-tool: Add --without-*-tests options.
5832         * gnulib-tool (func_usage): Document the --without-*-tests options.
5833         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
5834         excl_unportable_tests): New variables.
5835         Fail if they are specified with --import or --update.
5836         (func_acceptable): Respect the excl_*_tests variables.
5837         (func_import): Set the excl_*_tests variables to empty.
5838
5839 2010-04-25  Simon Josefsson  <simon@josefsson.org>
5840             Bruno Haible  <bruno@clisp.org>
5841
5842         Work around a MacOS X 10.4 bug with openpty.
5843         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
5844         * tests/test-openpty.c (main): Close the master side explicitly.
5845
5846 2010-04-25  Bruno Haible  <bruno@clisp.org>
5847
5848         strnlen: Fix a C++ test error on MacOS X and Solaris.
5849         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
5850         the function is not declared.
5851         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
5852         Simon Josefsson.
5853
5854 2010-04-24  Bruno Haible  <bruno@clisp.org>
5855
5856         Avoid a gcc warning.
5857         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
5858         of correct type for %08lx directive.
5859         Reported by Eric Blake.
5860
5861 2010-04-24  Bruno Haible  <bruno@clisp.org>
5862
5863         vasnprintf: Correct errno value in case of out-of-memory.
5864         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
5865         or sprintf. Use the errno value from SNPRINTF or sprintf.
5866         Reported by Ian Beckwith <ianb@erislabs.net>.
5867
5868 2010-04-24  Bruno Haible  <bruno@clisp.org>
5869
5870         ansi-c++-opt: Find correct compiler when cross-compiling.
5871         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
5872         AC_CHECK_PROGS.
5873         Reported by Simon Josefsson.
5874
5875 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
5876
5877         vc-list-files: Add support for subversion
5878         * build-aux/vc-list-files: Use "svn list" to generate the list of
5879         files controlled by subversion.
5880
5881 2010-04-23  Jim Meyering  <meyering@redhat.com>
5882
5883         vc-list-files tests: convert to use init.sh
5884         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
5885         path_prepend_.
5886         Use Exit, not exit.
5887         Use skip_ rather than open coding it.
5888         Remove trap set-up and compare definitions.
5889         * tests/test-vc-list-files-git.sh: Likewise.
5890         * modules/vc-list-files-tests (Files): Add tests/init.sh.
5891
5892 2010-04-22  Simon Josefsson  <simon@josefsson.org>
5893
5894         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
5895         backup files.
5896
5897 2010-04-21  Simon Josefsson  <simon@josefsson.org>
5898
5899         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
5900
5901 2010-04-20  Eric Blake  <eblake@redhat.com>
5902
5903         tests: be robust to ignored SIGPIPE
5904         * tests/test-select-in.sh: Consume all output.
5905         * tests/test-lseek.sh: Check correct exit status, while avoiding
5906         EPIPE.
5907
5908 2010-04-20  Simon Josefsson  <simon@josefsson.org>
5909             Bruno Haible  <bruno@clisp.org>
5910
5911         visibility: Don't use -fvisibility if it leads to a warning.
5912         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
5913         yes, don't pretend that visibility works if it leads to a warning.
5914         Reported by Mike Gran <spk121@yahoo.com>.
5915
5916 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
5917
5918         * build-aux/bootstrap: Use "git -h" for testing for supported options
5919         instead of "git --help".  The short-form option only shows a summary,
5920         and doesn't layout the full man page.  Grep for the full option name
5921         in the summary, too.
5922
5923 2010-04-19  Bruno Haible  <bruno@clisp.org>
5924
5925         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
5926         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
5927         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
5928         mention of RELOCATABLE_STRIP.
5929         Reported by Sylvain Beucler <beuc@beuc.net>.
5930
5931 2010-04-19  Bruno Haible  <bruno@clisp.org>
5932
5933         * lib/diffseq.h: Fix typo in comment.
5934         Reported by Eric Blake.
5935
5936 2010-04-19  Bruno Haible  <bruno@clisp.org>
5937
5938         ioctl: Move autoconf macro to a .m4 file.
5939         * m4/ioctl.m4: New file, extracted from modules/ioctl.
5940         * modules/ioctl (Files): Add it.
5941         (configure.ac): Simply invoke gl_FUNC_IOCTL.
5942         Reported by Ian Beckwith <ianb@erislabs.net>.
5943
5944 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
5945             Bruno Haible  <bruno@clisp.org>
5946
5947         diffseq: Accommodate use-case with abstract arrays.
5948         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
5949         is not defined.
5950         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
5951         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
5952
5953 2010-04-18  Bruno Haible  <bruno@clisp.org>
5954
5955         * doc/posix-headers/stdbool.texi: More precise wording.
5956
5957 2010-04-17  Jim Meyering  <meyering@redhat.com>
5958
5959         maint.mk: use gnu-style indentation in an embedded perl script
5960         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
5961         Rename variable: s/two/last_two_bytes/
5962
5963 2010-04-16  Eric Blake  <eblake@redhat.com>
5964
5965         test-stdbool: skip test that fails with Solaris CC
5966         * tests/test-stdbool.c (f): Skip test that causes compilation
5967         error under buggy C++ compiler.
5968         * lib/stdbool.in.h: Document the limitation.
5969         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
5970
5971         setenv: allow compilation with C++
5972         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
5973         register keyword.
5974
5975         stdint: allow test to pass with C++
5976         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
5977
5978         getopt: allow compilation with C++
5979         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
5980         struct.
5981         * lib/getopt.c (_getopt_internal_r): Use correct type.
5982         Reported by Dagobert Michelson, via Joel E. Denny.
5983
5984 2010-04-16  Bruno Haible  <bruno@clisp.org>
5985
5986         Override netdb.h always.
5987         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
5988         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
5989         Reported by Ludovic Courtès <ludo@gnu.org>.
5990
5991 2010-04-15  Bruno Haible  <bruno@clisp.org>
5992
5993         openpty: Fix mistake from 2010-03-21.
5994         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
5995         Reported by Simon Josefsson.
5996
5997 2010-04-15  Eric Blake  <eblake@redhat.com>
5998
5999         test-forkpty: fix expected signature
6000         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
6001         Reported by Simon Josefsson.
6002
6003 2010-04-15  Jim Meyering  <meyering@redhat.com>
6004
6005         maint.mk: texinfo_suffix_re_: correct the default regexp
6006         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
6007
6008         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
6009         make it configurable via texinfo_suffix_re_.
6010
6011 2010-04-14  Eric Blake  <eblake@redhat.com>
6012
6013         strtok_r: relax license to LGPLv2+
6014         * modules/strtok_r (License): Relax license.
6015         Reported by Matthias Bolte.
6016
6017 2010-04-14  Simon Josefsson  <simon@josefsson.org>
6018
6019         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
6020         version 1.4.4 by default instead of requiring the libgcrypt
6021         version used during build.  This makes it possible to use the
6022         application with older but still binary compatible libgcrypt
6023         versions.
6024
6025 2010-04-13  Eric Blake  <eblake@redhat.com>
6026
6027         getopt-gnu: match recent glibc fixes and posix ruling
6028         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
6029         '+' handling, when requesting extensions.
6030         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
6031         'W;' handling.
6032         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
6033         * doc/posix-functions/getopt.texi (getopt): Document this.
6034         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6035         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6036         Likewise.
6037
6038         getopt: merge bug fixes from glibc
6039         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
6040         diagnostics.  Honor '+:' correctly.  Reject ';'.
6041
6042         getopt-posix: detect MacOS bug
6043         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
6044         optind when missing a required argument.
6045         * doc/posix-functions/getopt.texi (getopt): Document the bug.
6046         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6047         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6048         Likewise.
6049
6050         getopt-posix: avoid spurious failure on Solaris
6051         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
6052         an indicator that setting optind=1 is sufficient for reset.
6053
6054         getopt-posix: avoid spurious failure on FreeBSD
6055         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
6056         in POSIX mode, since the m4 test uses it.
6057
6058         gnulib-tool: silence warning on BSD sh
6059         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
6060
6061 2010-04-13  Jim Meyering  <meyering@redhat.com>
6062
6063         doc: users.txt: GNU patch now uses gnulib
6064         * users.txt: Add patch.
6065
6066 2010-04-12  Jim Meyering  <meyering@redhat.com>
6067
6068         maint.mk: generate more concise timing data for syntax-check rules
6069         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
6070         " done" from each line that reports a syntax-check test duration.
6071
6072 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
6073
6074         git-version-gen: use "git update-index..." rather than "git status"
6075         * build-aux/git-version-gen: Use git update-index --refresh, not
6076         "git status".  With some versions of git, "git status" would fail
6077         to update the index and result in an unwarranted "-dirty" suffix.
6078
6079 2010-04-11  Jim Meyering  <meyering@redhat.com>
6080
6081         openat: correct formatting (no semantic change)
6082         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
6083         Suggested by Bruno Haible.
6084
6085 2010-04-11  Bruno Haible  <bruno@clisp.org>
6086
6087         Stricter declaration checking in testdirs.
6088         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6089         If for_tests is true, augment AM_CPPFLAGS to define
6090         GNULIB_STRICT_CHECKING.
6091         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
6092         GNULIB_STRICT_CHECKING is defined, verify that the function is
6093         declared.
6094
6095 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
6096             Bruno Haible  <bruno@clisp.org>
6097
6098         libunistring: Improve configure output.
6099         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
6100         Don't say "consider installing GNU libunistring" when checking again
6101         with libiconv.
6102
6103 2010-04-11  Bruno Haible  <bruno@clisp.org>
6104
6105         libunistring: Correct value of $LTLIBUNISTRING.
6106         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
6107         correct the value of $LTLIBUNISTRING.
6108
6109 2010-04-11  Bruno Haible  <bruno@clisp.org>
6110
6111         havelib: Add static libraries to LIBS in the right order.
6112         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
6113         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
6114
6115 2010-04-11  Bruno Haible  <bruno@clisp.org>
6116
6117         libunistring: Detect libunistring also when it depends on libiconv.
6118         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
6119         the second AC_LIB_HAVE_LINKFLAGS invocation.
6120
6121 2010-04-11  James Youngman  <jay@gnu.org>
6122
6123         close-stream: declare local scalars to be "const"
6124         * lib/close-stream.c (close_stream): Make boolean variables const
6125         to document the fact that we set but do not change them.
6126
6127 2010-04-11  Bruno Haible  <bruno@clisp.org>
6128
6129         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
6130
6131 2010-04-11  Jim Meyering  <meyering@redhat.com>
6132
6133         maint.mk: don't include dist-check.mk
6134         * top/maint.mk: Remove bogus include directive.
6135
6136         maint.mk: improve empty-line-at-EOF check
6137         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
6138         solution, rather than tail+Perl-based one.  The latter would read
6139         a few kilobytes from the end of each file, and did not handle empty
6140         files properly.
6141
6142         maint.mk: print the elapsed time for each syntax-check rule
6143         * top/maint.mk (sc_m_rules_): Save start time in a file.
6144         (sc_z_rules_): New rules: remove temp file and print elapsed time.
6145         (local-check): Interpose the .z rules
6146
6147 2010-04-11  Jim Meyering  <meyering@redhat.com>
6148
6149         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
6150         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
6151         empty file with one that ends in an empty line.
6152
6153 2010-04-10  Bruno Haible  <bruno@clisp.org>
6154
6155         mkdir: Make it work on mingw64.
6156         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
6157         * lib/mkdir.c: Update comment.
6158         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
6159
6160 2010-04-10  Bruno Haible  <bruno@clisp.org>
6161
6162         Don't override improved macro from newer autoconf.
6163         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
6164         autoconf >= 2.62.
6165         Reported by Joel E. Denny <jdenny@clemson.edu>.
6166
6167 2010-04-10  Jim Meyering  <meyering@redhat.com>
6168
6169         maint.mk: new syntax-check rule: prohibit empty lines at end of file
6170         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
6171
6172         maint.mk: correct a diagnostic
6173         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
6174         in diagnostic; now use $prohibit.
6175
6176 2010-04-10  Bruno Haible  <address@hidden>
6177
6178         fchownat: Fix a C++ test error on Solaris 8.
6179         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
6180         the function does not exist.
6181
6182 2010-04-10  Bruno Haible  <bruno@clisp.org>
6183
6184         vasnprintf: Add more tests.
6185         * tests/test-vasnprintf-posix.c: Include <errno.h>.
6186         (test_function): Test converting an invalid wide string.
6187
6188         vasnprintf: Correct handling of unconvertible wide string arguments.
6189         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
6190         VASNPRINTF.
6191         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
6192         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
6193         smaller than the expected maximum need for the directive. Set errno to
6194         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
6195         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
6196         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
6197         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
6198         * modules/vasnprintf (Files): Add m4/printf.m4.
6199         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6200
6201 2010-04-10  Bruno Haible  <bruno@clisp.org>
6202
6203         vasnprintf: Fix crash in %ls directive.
6204         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
6205         string is passed as argument to %ls, with no precision and no width.
6206         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6207
6208 2010-04-10  Bruno Haible  <bruno@clisp.org>
6209
6210         vasnprintf: Fix multiple test failures on mingw.
6211         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
6212         _snprintf, or snwprintf, not _snwprintf.
6213
6214 2010-04-10  Bruno Haible  <bruno@clisp.org>
6215
6216         write: Fix a C++ test error on mingw.
6217         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
6218
6219 2010-04-10  Bruno Haible  <bruno@clisp.org>
6220
6221         vasnprintf test: Reduce code duplication.
6222         * tests/test-vasnprintf.c (test_function): New function, extracted from
6223         test_vasnprintf.
6224         (test_vasnprintf, test_asnprintf): Invoke it.
6225
6226 2010-04-10  Bruno Haible  <bruno@clisp.org>
6227
6228         strnlen: Fix warning in C++ mode on MacOS X.
6229         * lib/string.in.h (strnlen): Use the modern idiom.
6230         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
6231         defining strnlen as a macro already in <config.h>.
6232         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6233         REPLACE_STRNLEN.
6234         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
6235         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6236
6237 2010-04-08  James Youngman  <jay@gnu.org>
6238
6239         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
6240         the example.
6241
6242 2010-04-09  Jim Meyering  <meyering@redhat.com>
6243
6244         maint.mk: print better diagnostic when there is no $(_hv_file)
6245         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
6246         announce that when $(_hv_file) (aka help-version) does not exist.
6247
6248         init.sh: run tr in the "C" locale to avoid multibyte interpretation
6249         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
6250         not try to interpret its random input bytes.  Jarno Rajahalme reported
6251         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
6252         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
6253         (mktempd_): Likewise, just in case.
6254
6255         ftruncate: add two years to projected module removal date: 2012
6256         * m4/ftruncate.m4: Adjust comments.
6257
6258         ftruncate: mark module as obsolete; even MinGW provides it, now
6259         * modules/ftruncate (Status): Obsolete.
6260         (Notice): Say that.
6261         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
6262         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
6263
6264 2010-04-08  Bruno Haible  <bruno@clisp.org>
6265
6266         Fix side effects from tests-related modules.
6267         * modules/dprintf-posix (Comment): New section.
6268         * modules/fprintf-posix (Comment): Likewise.
6269         * modules/obstack-printf-posix (Comment): Likewise.
6270         * modules/printf-posix (Comment): Likewise.
6271         * modules/snprintf-posix (Comment): Likewise.
6272         * modules/sprintf-posix (Comment): Likewise.
6273         * modules/vasnprintf-posix (Comment): Likewise.
6274         * modules/vasprintf-posix (Comment): Likewise.
6275         * modules/vdprintf-posix (Comment): Likewise.
6276         * modules/vfprintf-posix (Comment): Likewise.
6277         * modules/vprintf-posix (Comment): Likewise.
6278         * modules/vsnprintf-posix (Comment): Likewise.
6279         * modules/vsprintf-posix (Comment): Likewise.
6280         * modules/xprintf-posix (Comment): Likewise.
6281         * modules/xvasprintf-posix (Comment): Likewise.
6282         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
6283         * modules/floorf-tests (Depends-on): Likewise.
6284         * modules/round-tests (Depends-on): Likewise.
6285         * modules/roundf-tests (Depends-on): Likewise.
6286         * modules/trunc-tests (Depends-on): Likewise.
6287         * modules/truncf-tests (Depends-on): Likewise.
6288         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
6289         'fprintf-posix' module is not present.
6290         * tests/test-floorf2.c (check): Likewise.
6291         * tests/test-trunc2.c (check): Likewise.
6292         * tests/test-truncf2.c (check): Likewise.
6293         * tests/test-round2.c (equal): Likewise.
6294         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6295
6296 2010-04-07  Karl Berry  <karl@gnu.org>
6297
6298         * config/srclist.txt,
6299         * config/srclistvars.sh,
6300         * config/srclist-update: doc fixes.
6301
6302 2010-04-07  Jim Meyering  <meyering@redhat.com>
6303
6304         maint.mk: add a PATH crosschecking syntax-check rule
6305         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
6306         Useful if you use a test like the one in help-version (coreutils,
6307         diffutils, grep, gzip) that ensures $(VERSION) matches what is
6308         printed by prog --version.
6309
6310 2010-04-06  Bruno Haible  <bruno@clisp.org>
6311
6312         Fix link error on mingw.
6313         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
6314         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
6315
6316 2010-04-06  Bruno Haible  <bruno@clisp.org>
6317
6318         Assume rmdir exists.
6319         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
6320
6321 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
6322
6323         doc: update users.txt
6324         * users.txt: Add gcal.
6325
6326 2010-04-06  Jim Meyering  <meyering@redhat.com>
6327
6328         init.sh: simply unset TMPDIR rather than risking env -i
6329         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
6330         although it probably works fine on all Unix-based systems, some
6331         systems (Cygwin?) cannot tolerate a totally cleared environment.
6332         Suggestion from Eric Blake.
6333
6334 2010-04-06  Jim Meyering  <meyering@redhat.com>
6335
6336         init.sh: portability fix: use env's POSIX-specified -i option not -u
6337         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
6338         than unportable env -u.  Solaris 5.11's env lacks support for -u.
6339
6340 2010-04-05  Bruno Haible  <bruno@clisp.org>
6341
6342         btowc: Work around Cygwin 1.7.2 bug.
6343         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
6344         does not map NUL to 0.
6345         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
6346
6347 2010-04-05  Bruno Haible  <bruno@clisp.org>
6348
6349         Make the multithread modules work on Cygwin 1.7.2.
6350         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
6351         imported symbols can be declared weak, so that it returns "no" on
6352         Cygwin 1.7.2.
6353
6354 2010-04-05  Bruno Haible  <bruno@clisp.org>
6355
6356         Use the module 'strncat'.
6357         * modules/unistr/u8-strncat (Depends-on): Add strncat.
6358
6359         Tests for module 'strncat'.
6360         * modules/strncat-tests: New file.
6361         * tests/test-strncat.c: New file.
6362
6363         New module 'strncat'.
6364         * lib/string.in.h (strncat): New declaration.
6365         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
6366         * m4/strncat.m4: New file, based on m4/memchr.m4.
6367         * modules/strncat: New file.
6368         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
6369         is declared.
6370         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
6371         REPLACE_STRNCAT.
6372         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
6373         REPLACE_STRNCAT.
6374         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
6375         module.
6376         * tests/test-string-c++.cc: Check signature of strncat.
6377
6378 2010-04-05  Jim Meyering  <meyering@redhat.com>
6379
6380         xstrtoumax-tests: convert to use init.sh
6381         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
6382         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6383         Use Exit, not exit.
6384         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6385
6386         xstrtoimax-tests: convert to use init.sh
6387         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
6388         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6389         Use Exit, not exit.
6390         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6391
6392 2010-04-05  Bruno Haible  <bruno@clisp.org>
6393
6394         sys_socket: Avoid #define replacements in C++ mode.
6395         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
6396         warning to the function if possible, rather than #defining the symbol
6397         to a dysfunctional alias.
6398
6399 2010-04-05  Bruno Haible  <bruno@clisp.org>
6400
6401         fseeko: Fix C++ test error on mingw.
6402         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
6403         gl_FUNC_FSEEKO.
6404         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
6405         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
6406         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
6407         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
6408
6409 2010-04-05  Bruno Haible  <bruno@clisp.org>
6410
6411         duplocale: Improve test output.
6412         * tests/test-duplocale.c (main): Print reason for skipped test.
6413
6414 2010-04-05  Bruno Haible  <bruno@clisp.org>
6415
6416         Assume rmdir exists.
6417         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
6418         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
6419
6420 2010-04-05  Bruno Haible  <bruno@clisp.org>
6421
6422         Fix link error on Solaris 8 with cc.
6423         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
6424
6425 2010-04-05  Bruno Haible  <bruno@clisp.org>
6426
6427         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6428         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
6429
6430 2010-04-05  Bruno Haible  <bruno@clisp.org>
6431
6432         vasprintf: Update documentation.
6433         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
6434
6435 2010-04-05  Bruno Haible  <bruno@clisp.org>
6436
6437         ptsname: Improve test.
6438         * tests/test-ptsname.c (main): Also try the various master names of BSD
6439         systems.
6440
6441 2010-04-05  Bruno Haible  <bruno@clisp.org>
6442
6443         memchr: Avoid a possible C++ test error.
6444         * lib/string.in.h (memchr): Provide declaration if function is missing.
6445         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
6446         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
6447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
6448         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
6449
6450 2010-04-05  Bruno Haible  <bruno@clisp.org>
6451
6452         strtok_r: Improve idiom.
6453         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
6454         AC_LIBOBJ is used.
6455
6456 2010-04-05  Bruno Haible  <bruno@clisp.org>
6457
6458         strdup: Improve idiom.
6459         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
6460         AC_LIBOBJ is used.
6461         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
6462         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
6463         when AC_LIBOBJ is used.
6464
6465 2010-04-05  Bruno Haible  <bruno@clisp.org>
6466
6467         mbsinit, mbrtowc, wcrtomb: Improve idioms.
6468         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
6469         don't set REPLACE_MBSINIT to 1.
6470         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
6471         don't set REPLACE_MBRTOWC to 1.
6472         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
6473         exist, don't set REPLACE_MBSRTOWCS to 1.
6474         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
6475         exist, don't set REPLACE_MBSNRTOWCS to 1.
6476         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
6477         don't set REPLACE_WCRTOMB to 1.
6478         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
6479         exist, don't set REPLACE_WCSRTOMBS to 1.
6480         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
6481         exist, don't set REPLACE_WCSNRTOMBS to 1.
6482
6483 2010-04-05  Bruno Haible  <bruno@clisp.org>
6484
6485         ldexpl: Improve idiom.
6486         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
6487         make sure to set HAVE_DECL_LDEXPL to 0.
6488
6489 2010-04-05  Jim Meyering  <meyering@redhat.com>
6490
6491         xstrtol-tests: convert to use init.sh
6492         * modules/xstrtol-tests (Files): Add tests/init.sh.
6493         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6494         Use Exit, not exit.
6495         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6496
6497         atexit-tests: convert to use init.sh
6498         * modules/atexit-tests (Files): Add tests/init.sh.
6499         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6500         Use Exit, not exit.
6501         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6502
6503         init.sh: fix typo
6504         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
6505
6506         init.sh: make it easier for a test script to write to the tty, ...
6507         when using automake's parallel-tests mode.
6508         * tests/init.sh (stderr_fileno_): Define overridable variable.
6509         (warn_): New function, to use it.
6510         (fail_, skip_, framework_failure_): Use warn_.
6511
6512 2010-04-04  Bruno Haible  <bruno@clisp.org>
6513
6514         btowc: Avoid warning.
6515         * lib/btowc.c: Include <stdlib.h>.
6516         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
6517
6518 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6519             Bruno Haible  <bruno@clisp.org>
6520
6521         wchar: Port to NetBSD 1.5.
6522         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
6523         * lib/wctype.in.h (WEOF): Likewise.
6524
6525 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6526             Bruno Haible  <bruno@clisp.org>
6527
6528         Port extended stdio to NetBSD 1.5.
6529         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
6530         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
6531         older.
6532
6533 2010-04-04  Bruno Haible  <bruno@clisp.org>
6534
6535         string: Remove unused substitution.
6536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6537         HAVE_DECL_STRERROR.
6538         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
6539
6540 2010-04-04  Bruno Haible  <bruno@clisp.org>
6541
6542         strtod: Avoid a possible C++ test error.
6543         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
6544         set REPLACE_STRTOD.
6545
6546 2010-04-04  Bruno Haible  <bruno@clisp.org>
6547
6548         strerror: Update documentation.
6549         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
6550
6551 2010-04-04  Bruno Haible  <bruno@clisp.org>
6552
6553         stdio: Fix some C++ test errors on Solaris 8 with GCC.
6554         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
6555         _GL_CXXALIAS_SYS_CAST.
6556
6557 2010-04-04  Bruno Haible  <bruno@clisp.org>
6558
6559         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6560         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
6561         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
6562         REPLACE_FREXPL to 1.
6563         * doc/posix-functions/frexpl.texi: Update documentation.
6564
6565 2010-04-04  Bruno Haible  <bruno@clisp.org>
6566
6567         math: Fix some C++ test errors on Solaris 8 and Cygwin.
6568         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
6569
6570 2010-04-04  Bruno Haible  <bruno@clisp.org>
6571
6572         Implement nanosleep for native Windows.
6573         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
6574
6575 2010-04-04  Bruno Haible  <bruno@clisp.org>
6576
6577         math: Fix some C++ test errors on Solaris 8.
6578         * lib/math.in.h (truncf, trunc): Use simpler idiom.
6579
6580 2010-04-04  Bruno Haible  <bruno@clisp.org>
6581
6582         math: Fix some C++ test errors on Cygwin.
6583         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
6584         truncl): Provide declaration if the system does not have it.
6585         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
6586         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
6587         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
6588         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
6589         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
6590         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
6591         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
6592         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
6593         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
6594         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
6595         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
6596         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
6597         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
6598         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
6599         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
6600         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
6601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
6602         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6603         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6604         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
6605         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6606         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6607
6608 2010-04-04  Bruno Haible  <bruno@clisp.org>
6609
6610         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
6611         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6612         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6613         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6614         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6615         * m4/isinf.m4 (gl_ISINF): Likewise.
6616         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6617
6618 2010-04-04  Bruno Haible  <bruno@clisp.org>
6619
6620         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
6621         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6622
6623 2010-04-04  Bruno Haible  <bruno@clisp.org>
6624
6625         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
6626         * modules/tmpfile (configure.ac): Update.
6627
6628         tmpfile: Fix C++ test error on mingw.
6629         * lib/stdio.in.h (tmpfile): New declaration.
6630         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
6631         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
6632         * modules/tmpfile (Depends-on): Add stdio.
6633         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6634         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
6635         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
6636         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
6637         REPLACE_TMPFILE.
6638         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
6639
6640 2010-04-04  Bruno Haible  <bruno@clisp.org>
6641
6642         ioctl: Fix C++ test error on mingw.
6643         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
6644         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
6645         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
6646
6647 2010-04-03  Bruno Haible  <bruno@clisp.org>
6648
6649         wcwidth: Fix C++ test error on mingw.
6650         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
6651         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
6652         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
6653
6654 2010-04-03  Bruno Haible  <bruno@clisp.org>
6655
6656         nanosleep: Fix C++ test error on mingw.
6657         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
6658         * lib/time.in.h (nanosleep): Use modern idiom.
6659         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
6660         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
6661         REPLACE_NANOSLEEP to 1.
6662         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
6663         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
6664
6665 2010-04-03  Bruno Haible  <bruno@clisp.org>
6666
6667         strptime: Fix C++ test error on mingw.
6668         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
6669         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
6670         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
6671         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
6672         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
6673         not REPLACE_STRPTIME.
6674         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
6675         REPLACE_STRPTIME.
6676
6677 2010-04-03  Bruno Haible  <bruno@clisp.org>
6678
6679         timegm: Fix C++ test error on mingw.
6680         * lib/time.in.h (timegm): Use modern idiom.
6681         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
6682         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
6683         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
6684         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
6685
6686 2010-04-03  Bruno Haible  <bruno@clisp.org>
6687
6688         timegm: Assume declaration if function exists.
6689         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
6690         if it exists. Don't clobber ac_cv_func_timegm.
6691
6692 2010-04-03  Bruno Haible  <bruno@clisp.org>
6693
6694         time_r: Fix C++ test error on mingw.
6695         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
6696         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
6697         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
6698         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
6699         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
6700
6701 2010-04-03  Bruno Haible  <bruno@clisp.org>
6702
6703         time_r: Minor updates.
6704         * modules/time_r (Description): Mention the provided functions.
6705         * lib/time_r.c: Don't include <string.h>.
6706         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
6707         * doc/posix-functions/localtime_r.texi: Likewise.
6708
6709 2010-04-03  Bruno Haible  <bruno@clisp.org>
6710
6711         time: Fix regression introduced on 2010-03-08.
6712         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
6713         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
6714
6715 2010-04-03  Jim Meyering  <meyering@redhat.com>
6716
6717         maint.mk: don't silently disable project-specific syntax-check rules
6718         * top/maint.mk (_prohibit_regexp): Define, to help people realize
6719         that they need to convert their project-specific syntax-check rules
6720         to use the new _sc_search_regexp.
6721
6722 2010-04-03  Bruno Haible  <bruno@clisp.org>
6723
6724         fchdir: Fix regression introduced on 2010-03-08.
6725         * lib/unistd.in.h (fchdir): Fix declaration.
6726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
6727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
6728         REPLACE_FCHDIR.
6729         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
6730         REPLACE_FCHDIR.
6731
6732 2010-04-03  Bruno Haible  <bruno@clisp.org>
6733
6734         getpagesize: Fix C++ test error on mingw.
6735         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
6736         system does not declare the function.
6737         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
6738         declared.
6739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6740         HAVE_DECL_GETPAGESIZE.
6741         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
6742
6743 2010-04-03  Bruno Haible  <bruno@clisp.org>
6744
6745         stdio: Make C++ tests work on mingw.
6746         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
6747         does not declare the function.
6748
6749 2010-04-03  Bruno Haible  <bruno@clisp.org>
6750
6751         ftello: Fix C++ test error on mingw.
6752         * lib/stdio.in.h (ftello): Use modern idiom.
6753         * lib/ftello.c (ftello): Renamed from rpl_ftello.
6754         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
6755         is missing and that it needs to be replaced.
6756         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
6757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
6758         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
6759
6760 2010-04-03  Bruno Haible  <bruno@clisp.org>
6761
6762         fseeko: Fix C++ test error on mingw.
6763         * lib/stdio.in.h (fseeko): Use modern idiom.
6764         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
6765         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
6766         is missing and that it needs to be replaced.
6767         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
6768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
6769         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
6770
6771 2010-04-03  Bruno Haible  <bruno@clisp.org>
6772
6773         mkstemp: Fix C++ test error on mingw.
6774         * lib/stdlib.in.h (mkstemp): Use modern idiom.
6775         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
6776         function is missing and that it needs to be replaced.
6777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
6778         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
6779
6780 2010-04-03  Bruno Haible  <bruno@clisp.org>
6781
6782         stpncpy: Fix C++ test error on mingw.
6783         * lib/string.in.h (stpncpy): Use modern idiom.
6784         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
6785         function is missing and that it needs to be replaced.
6786         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6787         REPLACE_STPNCPY.
6788         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
6789
6790 2010-04-03  Bruno Haible  <bruno@clisp.org>
6791
6792         sys_stat: Fix C++ test error on mingw.
6793         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
6794         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
6795
6796 2010-04-03  Bruno Haible  <bruno@clisp.org>
6797
6798         pty: Update doc.
6799         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
6800
6801 2010-04-03  Bruno Haible  <bruno@clisp.org>
6802
6803         unistd: Fix C++ test error on mingw.
6804         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
6805
6806 2010-04-03  Bruno Haible  <bruno@clisp.org>
6807
6808         Update doc regarding mingw.
6809         * doc/glibc-functions/openpty.texi: Update regarding mingw.
6810         * doc/glibc-functions/login_tty.texi: Likewise.
6811         * doc/glibc-functions/forkpty.texi: Likewise.
6812
6813 2010-04-03  Bruno Haible  <bruno@clisp.org>
6814
6815         stdlib: Avoid compilation failure of c-strtold on mingw.
6816         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
6817
6818 2010-04-03  Bruno Haible  <bruno@clisp.org>
6819
6820         locale: Make C++ tests work on Cygwin and mingw.
6821         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
6822         cannot provide the function.
6823         Reported by Simon Josefsson.
6824
6825 2010-04-03  Bruno Haible  <bruno@clisp.org>
6826
6827         localename: Port to MacOS X 10.6.
6828         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
6829         memory layout of the locales in MacOS X 10.6 as well.
6830         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
6831
6832 2010-04-02  Bruno Haible  <bruno@clisp.org>
6833
6834         gnulib-tool: Ensure that long-running tests are executed last.
6835         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
6836         running tests after the one for the other tests.
6837
6838 2010-04-02  Bruno Haible  <bruno@clisp.org>
6839
6840         gnulib-tool: Ensure the tests in the main directory are executed first.
6841         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
6842         start with the current directory.
6843
6844 2010-04-02  Bruno Haible  <bruno@clisp.org>
6845
6846         Tests for module 'havelib', moved here from GNU gettext.
6847         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
6848         modifications.
6849         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
6850         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
6851         with modifications.
6852         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
6853         modifications.
6854         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
6855         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
6856         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
6857         with modifications.
6858         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
6859         with modifications.
6860         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
6861         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
6862         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
6863         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
6864         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
6865         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
6866         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
6867         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
6868         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
6869         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
6870         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
6871         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
6872         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
6873         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
6874         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
6875         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
6876         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
6877         with modifications.
6878         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
6879         with modifications.
6880         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
6881         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
6882         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
6883         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
6884         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
6885         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
6886         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
6887         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
6888         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
6889         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
6890         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
6891         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
6892         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
6893         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
6894         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
6895         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
6896         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
6897         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
6898         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
6899         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
6900         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
6901         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
6902         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
6903         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
6904         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
6905         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
6906         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
6907         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
6908         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
6909         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
6910         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
6911         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
6912         * tests/havelib/rpathx/rpathx.c: New file, from
6913         gettext/autoconf-lib-link.
6914         * tests/havelib/rpathx/Makefile.am: New file, from
6915         gettext/autoconf-lib-link.
6916         * tests/havelib/rpathx/configure.ac: New file, from
6917         gettext/autoconf-lib-link with modifications.
6918         * tests/havelib/rpathy/rpathy.c: New file, from
6919         gettext/autoconf-lib-link.
6920         * tests/havelib/rpathy/Makefile.am: New file, from
6921         gettext/autoconf-lib-link.
6922         * tests/havelib/rpathy/configure.ac: New file, from
6923         gettext/autoconf-lib-link with modifications.
6924         * tests/havelib/rpathz/rpathz.c: New file, from
6925         gettext/autoconf-lib-link.
6926         * tests/havelib/rpathz/Makefile.am: New file, from
6927         gettext/autoconf-lib-link.
6928         * tests/havelib/rpathz/configure.ac: New file, from
6929         gettext/autoconf-lib-link with modifications.
6930         * tests/havelib/rpathlx/usex.c: New file, from
6931         gettext/autoconf-lib-link.
6932         * tests/havelib/rpathlx/Makefile.am: New file, from
6933         gettext/autoconf-lib-link.
6934         * tests/havelib/rpathlx/configure.ac: New file, from
6935         gettext/autoconf-lib-link with modifications.
6936         * tests/havelib/rpathly/usey.c: New file, from
6937         gettext/autoconf-lib-link.
6938         * tests/havelib/rpathly/Makefile.am: New file, from
6939         gettext/autoconf-lib-link.
6940         * tests/havelib/rpathly/configure.ac: New file, from
6941         gettext/autoconf-lib-link with modifications.
6942         * tests/havelib/rpathlz/usez.c: New file, from
6943         gettext/autoconf-lib-link.
6944         * tests/havelib/rpathlz/Makefile.am: New file, from
6945         gettext/autoconf-lib-link.
6946         * tests/havelib/rpathlz/configure.ac: New file, from
6947         gettext/autoconf-lib-link with modifications.
6948         * tests/havelib/rpathlyx/usey.c: New file, from
6949         gettext/autoconf-lib-link.
6950         * tests/havelib/rpathlyx/Makefile.am: New file, from
6951         gettext/autoconf-lib-link.
6952         * tests/havelib/rpathlyx/configure.ac: New file, from
6953         gettext/autoconf-lib-link with modifications.
6954         * tests/havelib/rpathlzyx/usez.c: New file, from
6955         gettext/autoconf-lib-link.
6956         * tests/havelib/rpathlzyx/Makefile.am: New file, from
6957         gettext/autoconf-lib-link.
6958         * tests/havelib/rpathlzyx/configure.ac: New file, from
6959         gettext/autoconf-lib-link with modifications.
6960         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
6961         with modifications.
6962
6963 2010-04-02  Bruno Haible  <bruno@clisp.org>
6964
6965         gnulib-tool: Create distributed built sources also for the tests.
6966         * gnulib-tool (func_create_testdir): Also generate distributed built
6967         sources in the tests directory.
6968
6969 2010-04-02  Bruno Haible  <bruno@clisp.org>
6970
6971         gnulib-tool: Obey user's environment variables.
6972         * gnulib-tool (func_create_testdir): When creating built sources,
6973         respect the environment variables for autoconf, automake, etc. given by
6974         the user.
6975
6976 2010-04-02  Bruno Haible  <bruno@clisp.org>
6977
6978         gnulib-tool: Provide the value of --m4-base to modules.
6979         * gnulib-tool (func_import, func_create_testdir): Emit a definition
6980         of gl_m4_base.
6981
6982 2010-04-02  Eric Blake  <eblake@redhat.com>
6983
6984         maint.mk: fix some fallout
6985         * NEWS: Document the incompatible change, and its effect on cfg.mk.
6986         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
6987
6988 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6989
6990         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
6991         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
6992         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
6993         (sc_cast_of_x_alloc_return_value): Likewise.
6994         (sc_cast_of_alloca_return_value): Likewise.
6995         (sc_space_tab): Likewise.
6996         (sc_prohibit_atoi_atof): Likewise.
6997         (sc_prohibit_magic_number_exit): Likewise.
6998         (sc_error_exit_success): Likewise.
6999         (sc_file_system): Likewise.
7000         (sc_prohibit_have_config_h): Likewise.
7001         (sc_require_config_h): Likewise.
7002         (sc_prohibit_HAVE_MBRTOWC): Likewise.
7003         (sc_obsolete_symbols): Likewise.
7004         (sc_changelog): Likewise.
7005         (sc_program_name): Likewise.
7006         (sc_the_the): Likewise.
7007         (sc_trailing_blank): Likewise.
7008         (sc_two_space_separator_in_usage): Likewise.
7009         (sc_useless_cpp_parens): Likewise.
7010         (sc_GPL_version): Likewise.
7011         (sc_GFDL_version): Likewise.
7012         (sc_texinfo_acronym): Likewise.
7013         (sc_prohibit_cvs_keyword): Likewise.
7014         (sc_prohibit_stat_st_blocks): Likewise.
7015         (sc_prohibit_S_IS_definition): Likewise.
7016         (sc_redundant_const): Likewise.
7017         (sc_makefile_TAB_only_indentation): Likewise.
7018         (sc_m4_quote_check): Likewise.
7019         (sc_makefile_path_separator_check): Likewise.
7020         (sc_copyright_check): Likewise.
7021         (sc_Wundef_boolean): Likewise.
7022         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
7023
7024         maint.mk: match 0 or more whitespace-before-function-call '('
7025         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
7026         that have zero or two-and-more spaces between the function name
7027         and the open parenthesis.
7028         (sc_error_message_warn_fatal): Likewise.
7029         (sc_error_message_uppercase): Likewise.
7030         (sc_error_message_period): Likewise.
7031
7032 2010-03-31  Eric Blake  <eblake@redhat.com>
7033
7034         maint.mk: check for [ as well as test
7035         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
7036         Based on a libvirt report by Matthias Bolte.
7037
7038         gnumakefile: don't squelch _version output
7039         * top/GNUmakefile (_version): Create one-shot dependency rather
7040         than using $(shell) when version must be regenerated.
7041         (_autoreconf): Run verbosely, by default.
7042
7043         sys_time: avoid compiler warnings
7044         * lib/sys_time.in.h (includes): Ensure gcc pragma is
7045         unconditional, fixing regression from 2010-03-29.
7046         Reported by Simon Josefsson.
7047
7048 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
7049
7050         maint.mk: s/_header_without_use/_sc_header_without_use/
7051         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
7052         (sc_prohibit_assert_without_use): Use the new name.
7053         (sc_prohibit_close_stream_without_use): Likewise.
7054         (sc_prohibit_getopt_without_use): Likewise.
7055         (sc_prohibit_quotearg_without_use): Likewise.
7056         (sc_prohibit_quote_without_use): Likewise.
7057         (sc_prohibit_long_options_without_use): Likewise.
7058         (sc_prohibit_inttostr_without_use): Likewise.
7059         (sc_prohibit_ignore_value_without_use): Likewise.
7060         (sc_prohibit_error_without_use): Likewise.
7061         (sc_prohibit_xalloc_without_use): Likewise.
7062         (sc_prohibit_hash_without_use): Likewise.
7063         (sc_prohibit_hash_pjw_without_use): Likewise.
7064         (sc_prohibit_safe_read_without_use): Likewise.
7065         (sc_prohibit_argmatch_without_use): Likewise.
7066         (sc_prohibit_canonicalize_without_use): Likewise.
7067         (sc_prohibit_root_dev_ino_without_use): Likewise.
7068         (sc_prohibit_openat_without_use): Likewise.
7069         (sc_prohibit_c_ctype_without_use): Likewise.
7070         (sc_prohibit_signal_without_use): Likewise.
7071         (sc_prohibit_intprops_without_use): Likewise.
7072
7073 2010-03-30  Eric Blake  <eblake@redhat.com>
7074
7075         maint: improve module indicators
7076         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
7077         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
7078         columns, and avoid extra macro expansion.
7079
7080         fdopendir: work around FreeBSD bug
7081         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
7082         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
7083         * modules/dirent (Makefile.am): Substitute it.
7084         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
7085         declaration.
7086         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
7087         fix.
7088         Reported by Christian Weisgerber <naddy@mips.inka.de>.
7089
7090 2010-03-29  Bruno Haible  <bruno@clisp.org>
7091
7092         Emit #pragma system_header after the inclusion guard, not before.
7093         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
7094         guard that spans the entire file, not before. This enables an
7095         optimization in GCC's preprocessor.
7096         * lib/ctype.in.h: Likewise.
7097         * lib/dirent.in.h: Likewise.
7098         * lib/errno.in.h: Likewise.
7099         * lib/float.in.h: Likewise.
7100         * lib/getopt.in.h: Likewise.
7101         * lib/iconv.in.h: Likewise.
7102         * lib/langinfo.in.h: Likewise.
7103         * lib/locale.in.h: Likewise.
7104         * lib/math.in.h: Likewise.
7105         * lib/netdb.in.h: Likewise.
7106         * lib/netinet_in.in.h: Likewise.
7107         * lib/pty.in.h: Likewise.
7108         * lib/sched.in.h: Likewise.
7109         * lib/se-selinux.in.h: Likewise.
7110         * lib/search.in.h: Likewise.
7111         * lib/spawn.in.h: Likewise.
7112         * lib/stdarg.in.h: Likewise.
7113         * lib/stdint.in.h: Likewise.
7114         * lib/string.in.h: Likewise.
7115         * lib/strings.in.h: Likewise.
7116         * lib/sys_file.in.h: Likewise.
7117         * lib/sys_ioctl.in.h: Likewise.
7118         * lib/sys_time.in.h: Likewise.
7119         * lib/sys_times.in.h: Likewise.
7120         * lib/sys_utsname.in.h: Likewise.
7121         * lib/sys_wait.in.h: Likewise.
7122         * lib/sysexits.in.h: Likewise.
7123         * lib/wctype.in.h: Likewise.
7124
7125 2010-03-28  James Youngman  <jay@gnu.org>
7126
7127         save-cwd: don't leak a file descriptor when the caller execs.
7128         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
7129         saved file descriptor.
7130         * modules/save-cwd (Depends-on): Depend on cloexec.
7131
7132 2010-03-29  Bruno Haible  <bruno@clisp.org>
7133
7134         Remove vestiges of fts-lgpl module.
7135         * lib/fts_.h: Assume GNULIB_FTS is 1.
7136         * lib/fts.c: Likewise.
7137         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
7138
7139 2010-03-28  Bruno Haible  <bruno@clisp.org>
7140
7141         Fix definition of tests witness macro.
7142         * gnulib-tool (func_import): Fix definition of witness macro.
7143
7144 2010-03-28  Bruno Haible  <bruno@clisp.org>
7145
7146         Fix ioctl's protoype on glibc systems.
7147         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
7148         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
7149         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
7150         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
7151         signature. If not, arrange to replace the ioctl function.
7152         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
7153         REPLACE_IOCTL.
7154         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
7155         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
7156         Reported by Ludovic Courtès <ludo@gnu.org>.
7157
7158 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
7159
7160         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
7161         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
7162         made it so grep -r --include=GLOB* ... did not work.
7163
7164 2010-03-26  Jim Meyering  <meyering@redhat.com>
7165             Eric Blake  <eblake@redhat.com>
7166
7167         maint.mk: prohibit use of test's -o and -a operators
7168         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
7169
7170 2010-03-28  Bruno Haible  <bruno@clisp.org>
7171
7172         Remove unused GNULIB_XYZ macro definitions.
7173         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
7174         invocation.
7175
7176 2010-03-28  Bruno Haible  <bruno@clisp.org>
7177
7178         Mark privileged tests modules.
7179         * modules/idpriv-drop-tests (Status): New section.
7180         * modules/idpriv-droptemp-tests (Status): New section.
7181
7182 2010-03-28  Bruno Haible  <bruno@clisp.org>
7183
7184         Split C++ tests into separate tests modules.
7185         * modules/dirent-c++-tests: New file, extracted from
7186         modules/dirent-tests.
7187         * modules/dirent-tests: Depend on it.
7188         * modules/fcntl-h-c++-tests: New file, extracted from
7189         modules/fcntl-h-tests.
7190         * modules/fcntl-h-tests: Depend on it.
7191         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
7192         * modules/glob-tests: Depend on it.
7193         * modules/iconv-h-c++-tests: New file, extracted from
7194         modules/iconv-h-tests.
7195         * modules/iconv-h-tests: Depend on it.
7196         * modules/langinfo-c++-tests: New file, extracted from
7197         modules/langinfo-tests.
7198         * modules/langinfo-tests: Depend on it.
7199         * modules/locale-c++-tests: New file, extracted from
7200         modules/locale-tests.
7201         * modules/locale-tests: Depend on it.
7202         * modules/math-c++-tests: New file, extracted from modules/math-tests.
7203         * modules/math-tests: Depend on it.
7204         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
7205         * modules/pty-tests: Depend on it.
7206         * modules/search-c++-tests: New file, extracted from
7207         modules/search-tests.
7208         * modules/search-tests: Depend on it.
7209         * modules/signal-c++-tests: New file, extracted from
7210         modules/signal-tests.
7211         * modules/signal-tests: Depend on it.
7212         * modules/spawn-c++-tests: New file, extracted from
7213         modules/spawn-tests.
7214         * modules/spawn-tests: Depend on it.
7215         * modules/stdio-c++-tests: New file, extracted from
7216         modules/stdio-tests.
7217         * modules/stdio-tests: Depend on it.
7218         * modules/stdlib-c++-tests: New file, extracted from
7219         modules/stdlib-tests.
7220         * modules/stdlib-tests: Depend on it.
7221         * modules/string-c++-tests: New file, extracted from
7222         modules/string-tests.
7223         * modules/string-tests: Depend on it.
7224         * modules/sys_ioctl-c++-tests: New file, extracted from
7225         modules/sys_ioctl-tests.
7226         * modules/sys_ioctl-tests: Depend on it.
7227         * modules/sys_select-c++-tests: New file, extracted from
7228         modules/sys_select-tests.
7229         * modules/sys_select-tests: Depend on it.
7230         * modules/sys_socket-c++-tests: New file, extracted from
7231         modules/sys_socket-tests.
7232         * modules/sys_socket-tests: Depend on it.
7233         * modules/sys_stat-c++-tests: New file, extracted from
7234         modules/sys_stat-tests.
7235         * modules/sys_stat-tests: Depend on it.
7236         * modules/sys_time-c++-tests: New file, extracted from
7237         modules/sys_time-tests.
7238         * modules/sys_time-tests: Depend on it.
7239         * modules/time-c++-tests: New file, extracted from modules/time-tests.
7240         * modules/time-tests: Depend on it.
7241         * modules/unistd-c++-tests: New file, extracted from
7242         modules/unistd-tests.
7243         * modules/unistd-tests: Depend on it.
7244         * modules/wchar-c++-tests: New file, extracted from
7245         modules/wchar-tests.
7246         * modules/wchar-tests: Depend on it.
7247         * modules/wctype-c++-tests: New file, extracted from
7248         modules/wctype-tests.
7249         * modules/wctype-tests: Depend on it.
7250         Reported by Simon Josefsson.
7251
7252 2010-03-28  Bruno Haible  <bruno@clisp.org>
7253
7254         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
7255         * gnulib-tool (func_exists_module): New function, extracted from
7256         func_verify_module.
7257         (func_verify_module): Use it.
7258         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
7259         'foo' only if 'foo' exists.
7260         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
7261         module.
7262
7263 2010-03-28  Bruno Haible  <bruno@clisp.org>
7264
7265         gnulib-tool: Add support for special categories of tests.
7266         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
7267         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
7268         (func_usage): Document them.
7269         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
7270         inc_unportable_tests, inc_all_tests): New variables.
7271         (func_acceptable): Consider these variables.
7272         (func_modules_transitive_closure): Make it work when the 'Status' field
7273         consists of multiple words.
7274         (func_import): Store and restore the values of inc_cxx_tests,
7275         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
7276         inc_all_tests in gnulib-comp.m4.
7277         (func_create_testdir): Set inc_all_tests to true.
7278         * doc/gnulib.texi (Extra tests modules): New section.
7279         Suggested by Jim Meyering.
7280
7281 2010-03-28  Bruno Haible  <bruno@clisp.org>
7282
7283         ansi-c++-opt: Allow turning off the C++ build by default.
7284         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
7285         gl_CXX_CHOICE_DEFAULT_NO is defined.
7286         Requested by Eric Blake.
7287
7288 2010-03-28  Bruno Haible  <bruno@clisp.org>
7289
7290         unistd: Avoid #define replacements in C++ mode.
7291         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7292         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7293         setsockopt, shutdown, select): In C++, attach a warning to the function
7294         if possible, rather than #defining the symbol to a dysfunctional alias.
7295         Reported by John W. Eaton <jwe@gnu.org>.
7296
7297 2010-03-28  Bruno Haible  <bruno@clisp.org>
7298
7299         Fix link errors on mingw.
7300         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
7301         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
7302         $(LIBSOCKET).
7303         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
7304         $(LIBSOCKET).
7305
7306 2010-03-28  Bruno Haible  <bruno@clisp.org>
7307             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7308
7309         lib-ignore: Determine different options for different compilers.
7310         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
7311         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
7312         Add comments.
7313         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
7314         * NEWS: Mention the change.
7315
7316 2010-03-27  Bruno Haible  <bruno@clisp.org>
7317
7318         Remove unused GNULIB_XYZ macro definitions.
7319         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
7320         * modules/fseek (configure.ac): Likewise.
7321         * modules/ioctl (configure.ac): Likewise.
7322         * modules/open (configure.ac): Likewise.
7323         * modules/stdlib-safer (configure.ac): Likewise.
7324
7325 2010-03-27  Bruno Haible  <bruno@clisp.org>
7326
7327         Add a remark about certain modules.
7328         * modules/malloc (Comment): New section.
7329         * modules/realloc (Comment): Likewise.
7330         * modules/sigpipe (Comment): Likewise.
7331
7332 2010-03-27  Bruno Haible  <bruno@clisp.org>
7333
7334         Resolve conflict between the two kinds of module indicators.
7335         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
7336         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
7337         * modules/canonicalize (configure.ac): Invoke
7338         gl_MODULE_INDICATOR_FOR_TESTS.
7339         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
7340         GNULIB_XYZ.
7341         * tests/test-dirent-c++.cc: Likewise.
7342         * tests/test-dirent-safer.c: Likewise.
7343         * tests/test-dup2.c: Likewise.
7344         * tests/test-fchdir.c: Likewise.
7345         * tests/test-fcntl-h-c++.cc: Likewise.
7346         * tests/test-getopt.c: Likewise.
7347         * tests/test-getopt.h: Likewise.
7348         * tests/test-langinfo-c++.cc: Likewise.
7349         * tests/test-locale-c++.cc: Likewise.
7350         * tests/test-math-c++.cc: Likewise.
7351         * tests/test-pty-c++.cc: Likewise.
7352         * tests/test-search-c++.cc: Likewise.
7353         * tests/test-signal-c++.cc: Likewise.
7354         * tests/test-spawn-c++.cc: Likewise.
7355         * tests/test-stdio-c++.cc: Likewise.
7356         * tests/test-stdlib-c++.cc: Likewise.
7357         * tests/test-string-c++.cc: Likewise.
7358         * tests/test-sys_ioctl-c++.cc: Likewise.
7359         * tests/test-sys_select-c++.cc: Likewise.
7360         * tests/test-sys_socket-c++.cc: Likewise.
7361         * tests/test-sys_stat-c++.cc: Likewise.
7362         * tests/test-sys_time-c++.cc: Likewise.
7363         * tests/test-time-c++.cc: Likewise.
7364         * tests/test-unistd-c++.cc: Likewise.
7365         * tests/test-wchar-c++.cc: Likewise.
7366         * tests/uninorm/test-u8-nfc.c: Likewise.
7367         * tests/uninorm/test-u8-nfd.c: Likewise.
7368         * tests/uninorm/test-u8-nfkc.c: Likewise.
7369         * tests/uninorm/test-u8-nfkd.c: Likewise.
7370         * tests/uninorm/test-u16-nfc.c: Likewise.
7371         * tests/uninorm/test-u16-nfd.c: Likewise.
7372         * tests/uninorm/test-u16-nfkc.c: Likewise.
7373         * tests/uninorm/test-u16-nfkd.c: Likewise.
7374         * tests/uninorm/test-u32-nfc.c: Likewise.
7375         * tests/uninorm/test-u32-nfc-big.c: Likewise.
7376         * tests/uninorm/test-u32-nfd.c: Likewise.
7377         * tests/uninorm/test-u32-nfd-big.c: Likewise.
7378         * tests/uninorm/test-u32-nfkc.c: Likewise.
7379         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
7380         * tests/uninorm/test-u32-nfkd.c: Likewise.
7381         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
7382         * tests/uninorm/test-u32-normalize-big.c: Likewise.
7383
7384 2010-03-27  Bruno Haible  <bruno@clisp.org>
7385
7386         Distinguish two kinds of module indicators.
7387         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
7388         gl_MODULE_INDICATOR.
7389         (gl_MODULE_INDICATOR): New macro.
7390         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
7391         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
7392         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7393         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7394         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7395         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7396         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7397         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7398         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7399         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7400         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7401         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7402         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7403         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7404         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7405         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7406         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7407         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7408         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7409         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7410         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7411         * modules/cloexec (configure.ac): Likewise.
7412         * modules/getopt-gnu (configure.ac): Likewise.
7413         * modules/uninorm/u8-normalize (configure.ac): Likewise.
7414         * modules/uninorm/u16-normalize (configure.ac): Likewise.
7415         * modules/uninorm/u32-normalize (configure.ac): Likewise.
7416         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
7417
7418 2010-03-27  Bruno Haible  <bruno@clisp.org>
7419
7420         New module description field 'Comment'.
7421         * gnulib-tool: New option --extract-comment.
7422         (func_usage): Document it.
7423         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
7424         (func_get_comment): New function.
7425         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
7426
7427 2010-03-27  Bruno Haible  <bruno@clisp.org>
7428
7429         Addendum to 2010-02-07 commit.
7430         * gnulib-tool (func_usage): Document --extract-applicability option.
7431
7432 2010-03-27  Bruno Haible  <bruno@clisp.org>
7433
7434         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
7435         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
7436         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
7437         rather than link errors.
7438
7439 2010-03-27  Bruno Haible  <bruno@clisp.org>
7440
7441         Avoid side effects from tests-related modules on the compilation of lib.
7442         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
7443         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
7444         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
7445         parameter. Emit into AM_CPPFLAGS a definition of the designated C
7446         macro.
7447         (func_import): Define a witness macro. Assign it a value that depends
7448         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
7449         tests-related modules.
7450         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
7451         Reported by Jim Meyering.
7452
7453 2010-03-27  Bruno Haible  <bruno@clisp.org>
7454
7455         Factorize common .m4 code.
7456         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
7457         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
7458         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
7459         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
7460         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7461         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
7462         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
7463         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7464         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7465         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7466         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
7467         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7468         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7469         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7470         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7471         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
7472         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7473         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7474         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7475         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
7476         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
7477         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7478         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7479         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7480         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7481         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7482         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
7483         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
7484         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
7485         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7486         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7487         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7488
7489 2010-03-27  Bruno Haible  <bruno@clisp.org>
7490
7491         Fix a compilation error on Cygwin with g++ >= 4.3.
7492         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
7493         if it is undefined or if we alias it to chmod.
7494         (lstat): Don't warn about the use of this function if it is undefined
7495         or if we alias it to stat.
7496         Reported by Simon Josefsson.
7497
7498 2010-03-27  Bruno Haible  <bruno@clisp.org>
7499
7500         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
7501         * modules/getlogin (configure.ac): Update.
7502
7503         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
7504         * modules/getlogin_r (configure.ac): Update.
7505
7506         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
7507         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
7508         * modules/inet_ntop (configure.ac): Update.
7509
7510         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
7511         * modules/inet_pton (configure.ac): Update.
7512
7513         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
7514         * modules/mbslen (configure.ac): Update.
7515
7516         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
7517         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
7518         * modules/forkpty (configure.ac): Update.
7519         * modules/openpty (configure.ac): Update.
7520
7521 2010-03-26  Simon Josefsson  <simon@josefsson.org>
7522
7523         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
7524         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
7525
7526 2010-03-25  Eric Blake  <eblake@redhat.com>
7527
7528         maint: use pragma consistently across replacement headers
7529         * lib/ctype.in.h (system_header): Hoist for consistent placement.
7530         * lib/dirent.in.h (system_header): Likewise.
7531         * lib/errno.in.h (system_header): Likewise.
7532         * lib/float.in.h (system_header): Likewise.
7533         * lib/getopt.in.h (system_header): Likewise.
7534         * lib/iconv.in.h (system_header): Likewise.
7535         * lib/inttypes.in.h (system_header): Likewise.
7536         * lib/langinfo.in.h (system_header): Likewise.
7537         * lib/locale.in.h (system_header): Likewise.
7538         * lib/math.in.h (system_header): Likewise.
7539         * lib/netdb.in.h (system_header): Likewise.
7540         * lib/netinet_in.in.h (system_header): Likewise.
7541         * lib/pty.in.h (system_header): Likewise.
7542         * lib/sched.in.h (system_header): Likewise.
7543         * lib/se-selinux.in.h (system_header): Likewise.
7544         * lib/search.in.h (system_header): Likewise.
7545         * lib/spawn.in.h (system_header): Likewise.
7546         * lib/stdarg.in.h (system_header): Likewise.
7547         * lib/stdint.in.h (system_header): Likewise.
7548         * lib/string.in.h (system_header): Likewise.
7549         * lib/strings.in.h (system_header): Likewise.
7550         * lib/sys_file.in.h (system_header): Likewise.
7551         * lib/sys_ioctl.in.h (system_header): Likewise.
7552         * lib/sys_socket.in.h (system_header): Likewise.
7553         * lib/sys_times.in.h (system_header): Likewise.
7554         * lib/sys_utsname.in.h (system_header): Likewise.
7555         * lib/sys_wait.in.h (system_header): Likewise.
7556         * lib/sysexits.in.h (system_header): Likewise.
7557         * lib/unistd.in.h (system_header): Likewise.
7558         * lib/wctype.in.h (system_header): Likewise.
7559
7560         arpa/inet: fix mingw compilation warning
7561         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
7562         Reported by Matthew Bolte.
7563
7564 2010-03-25  Bruno Haible  <bruno@clisp.org>
7565
7566         Avoid collision between gnulib wrapper and libintl wrapper.
7567         * lib/printf.c (printf): Don't define if a printf wrapper is already
7568         defined in intl/printf.c.
7569         Reported by Michel Boaventura <michel@michelboaventura.com>.
7570
7571 2010-03-25  Bruno Haible  <bruno@clisp.org>
7572
7573         Use ANSI C.
7574         * lib/readutmp.h (getutent): Provide ANSI C prototype.
7575
7576 2010-03-25  Bruno Haible  <bruno@clisp.org>
7577
7578         Minor formatting changes.
7579         * lib/acosl.c: Insert space before function argument list.
7580         * lib/argz.c: Likewise.
7581         * lib/asinl.c: Likewise.
7582         * lib/expl.c: Likewise.
7583         * lib/gen-uni-tables.c: Likewise.
7584         * lib/gettext.h: Likewise.
7585         * lib/glthread/lock.h: Likewise.
7586         * lib/tanl.c: Likewise.
7587         * lib/uniname/uniname.c: Likewise.
7588         * tests/test-idpriv-drop.c: Likewise.
7589         * tests/test-idpriv-droptemp.c: Likewise.
7590         * tests/test-lock.c: Likewise.
7591         * tests/test-tls.c: Likewise.
7592         * lib/argp-help.c: Insert space before function-like macro argument
7593         list.
7594         * lib/memcmp.c: Likewise.
7595         * tests/test-base64.c: Likewise.
7596         * lib/localename.c: Insert space before sizeof's argument list.
7597         * lib/safe-alloc.h: Likewise.
7598         * lib/file-set.h: Insert space before macro argument list.
7599         * tests/test-argp.c: Likewise.
7600         * lib/argp-namefrob.h: Insert space before function parameter list.
7601         * lib/getaddrinfo.c: Likewise.
7602         * lib/netdb.in.h: Likewise.
7603         * lib/parse-duration.h: Likewise.
7604         * lib/parse-duration.c: Likewise.
7605         * lib/poll.c: Likewise.
7606         * lib/select.c: Likewise.
7607         * lib/trim.h: Likewise.
7608         * tests/test-usleep.c: Likewise.
7609         * lib/ldexpl.c: Insert space before function parameter list and before
7610         function argument list.
7611         * lib/logl.c: Likewise.
7612         * lib/sqrtl.c: Likewise.
7613         * lib/trim.c: Likewise.
7614         * lib/cosl.c: Use GNU style indentation. Insert space before function
7615         argument list.
7616         * lib/sinl.c: Likewise.
7617         * lib/tsearch.c: Insert space after 'for'.
7618         Reported by Jim Meyering.
7619
7620 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
7621
7622         * maint.mk (sc_Wundef_boolean): Check for the presence of the
7623         config header before grepping, as it's not present before
7624         autoreconf/configure are run.  Reported by Simon Josefsson.
7625
7626 2010-03-23  Bruno Haible  <bruno@clisp.org>
7627
7628         pt_chown: Make it work with automake < 1.11.
7629         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
7630         Reported by Simon Josefsson.
7631
7632 2010-03-23  Bruno Haible  <bruno@clisp.org>
7633
7634         pt_chown: Don't depend on GPLed modules.
7635         * lib/pt_chown.c: Don't include idpriv.h.
7636         (main): Don't drop privileges.
7637         * modules/pt_chown (Depends-on): Remove idpriv-drop.
7638         Reported by Simon Josefsson.
7639
7640 2010-03-24  Simon Josefsson  <simon@josefsson.org>
7641
7642         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
7643         suggestions from karl@freefriends.org (Karl Berry).
7644
7645 2010-03-22  Eric Blake  <eblake@redhat.com>
7646
7647         gethostname: further tweaks
7648         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
7649         are overriding gethostname.
7650         Suggested by Bruno Haible.
7651
7652 2010-03-21  Bruno Haible  <bruno@clisp.org>
7653
7654         Fix comments.
7655         * lib/forkpty.c (rpl_forkpty): Fix comment.
7656         * lib/openpty.c (rpl_openpty): Likewise.
7657         Reported by Eric Blake.
7658
7659 2010-03-22  Eric Blake  <eblake@redhat.com>
7660
7661         gethostname: fix build on mingw
7662         * lib/unistd.in.h (includes): Work around fact that mingw
7663         <winsock2.h> re-includes <unistd.h>, by avoiding any
7664         redeclarations if we are being included by <winsock2.h>.
7665         Reported by Matthias Bolte.
7666
7667 2010-03-21  Bruno Haible  <bruno@clisp.org>
7668
7669         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7670         * lib/forkpty.c (forkpty): New replacement function, from glibc with
7671         modifications.
7672         * lib/pty.in.h (forkpty): Update declaration. Add comments.
7673         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
7674         provide the replacement.
7675         * modules/forkpty (Depends-on): Add openpty, login_tty.
7676         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
7677         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
7678         * doc/glibc-functions/forkpty.texi: More supported platforms.
7679         * config/srclist.txt: Add forkpty.c (commented).
7680
7681 2010-03-21  Bruno Haible  <bruno@clisp.org>
7682
7683         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
7684         (Makefile.am): Verify that PTY_LIB is defined.
7685
7686         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
7687
7688 2010-03-21  Bruno Haible  <bruno@clisp.org>
7689
7690         Tests for module 'login_tty'.
7691         * modules/login_tty-tests: New file.
7692         * tests/test-login_tty.c: New file.
7693
7694         New module 'login_tty'.
7695         * lib/login_tty.c: New file.
7696         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
7697         * modules/login_tty: New file.
7698         * doc/glibc-functions/login_tty.texi: Mention the new module.
7699
7700 2010-03-21  Bruno Haible  <bruno@clisp.org>
7701
7702         login_tty: Documentation.
7703         * doc/glibc-functions/login_tty.texi: New file.
7704         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
7705
7706 2010-03-21  Bruno Haible  <bruno@clisp.org>
7707
7708         pty: Consistent macro naming.
7709         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
7710         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
7711         * modules/pty (configure.ac): Update.
7712
7713 2010-03-21  Bruno Haible  <bruno@clisp.org>
7714
7715         Tests for openpty: Make stricter.
7716         * tests/test-openpty.c (main): Add test of canonical processing and
7717         erase.
7718         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
7719
7720         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7721         * lib/openpty.c (openpty): New replacement function.
7722         * lib/pty.in.h: Include <termios.h>.
7723         (openpty): Update declaration. Add comments.
7724         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
7725         is not declared, arrange to provide the replacement. Check for _getpty
7726         and posix_openpt.
7727         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
7728         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
7729         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
7730         * modules/pty-tests (test_pty_c___LDADD): New variable.
7731         * doc/glibc-functions/openpty.texi: More supported platforms.
7732
7733 2010-03-21  Bruno Haible  <bruno@clisp.org>
7734
7735         setenv: Tweaks.
7736         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
7737         the test program.
7738         * doc/posix-functions/setenv.texi: Update platforms list.
7739
7740 2010-03-21  Bruno Haible  <bruno@clisp.org>
7741
7742         New module 'unlockpt'.
7743         * lib/unlockpt.c: New file, from glibc with modifications.
7744         * m4/unlockpt.m4: New file.
7745         * modules/unlockpt: New file.
7746         * lib/stdlib.in.h (unlockpt): New declaration.
7747         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
7748         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
7749         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
7750         HAVE_UNLOCKPT.
7751         * doc/posix-functions/unlockpt.texi: Mention the new module.
7752         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
7753         * config/srclist.txt: Add unlockpt.c (commented).
7754
7755 2010-03-21  Jim Meyering  <meyering@redhat.com>
7756
7757         maint.mk: prohibit inclusion of "intprops.h" without use
7758         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
7759
7760 2010-03-21  Bruno Haible  <bruno@clisp.org>
7761
7762         New module 'grantpt'.
7763         * lib/grantpt.c: New file, from glibc with modifications.
7764         * m4/grantpt.m4: New file.
7765         * modules/grantpt: New file.
7766         * lib/stdlib.in.h (grantpt): New declaration.
7767         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
7768         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
7769         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
7770         HAVE_GRANTPT.
7771         * doc/posix-functions/grantpt.texi: Mention the new module.
7772         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
7773         * config/srclist.txt: Add grantpt.c (commented).
7774
7775 2010-03-21  Bruno Haible  <bruno@clisp.org>
7776
7777         New module 'pt_chown'.
7778         * lib/pt_chown.c: New file, from glibc with modifications.
7779         * lib/pty-private.h: New file, from glibc with modifications.
7780         * modules/pt_chown: New file.
7781         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
7782
7783 2010-03-21  Bruno Haible  <bruno@clisp.org>
7784
7785         Tests for module 'ptsname'.
7786         * modules/ptsname-tests: New file.
7787         * tests/test-ptsname.c: New file.
7788
7789         New module 'ptsname'.
7790         * lib/ptsname.c: New file, from glibc with modifications.
7791         * m4/ptsname.m4: New file.
7792         * modules/ptsname: New file.
7793         * lib/stdlib.in.h (ptsname): New declaration.
7794         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
7795         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
7796         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
7797         HAVE_PTSNAME.
7798         * doc/posix-functions/ptsname.texi: Mention the new module.
7799         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
7800         * config/srclist.txt: Add ptsname.c (commented).
7801
7802 2010-03-21  Bruno Haible  <bruno@clisp.org>
7803
7804         Tests for module 'ttyname_r'.
7805         * modules/ttyname_r-tests: New file.
7806         * tests/test-ttyname_r.c: New file.
7807
7808         New module 'ttyname_r'.
7809         * lib/ttyname_r.c: New file.
7810         * m4/ttyname_r.m4: New file.
7811         * modules/ttyname_r: New file.
7812         * lib/unistd.in.h (ttyname_r): New declaration.
7813         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
7814         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
7815         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
7816         HAVE_TTYNAME_R.
7817         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
7818         * doc/posix-functions/ttyname_r.texi: Mention the new module.
7819
7820 2010-03-20  Bruno Haible  <bruno@clisp.org>
7821
7822         signal: Undefine macro definitions in C++ mode.
7823         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
7824         sigfillset): Undefine macro definitions from the system header in C++
7825         mode.
7826         Reported by John W. Eaton <jwe@gnu.org>.
7827
7828 2010-03-20  Bruno Haible  <bruno@clisp.org>
7829
7830         Ensure no #include statements inside extern "C" { ... }.
7831         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
7832         contain #include statements.
7833         * lib/time.in.h: Likewise.
7834
7835 2010-03-20  Bruno Haible  <bruno@clisp.org>
7836
7837         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
7838         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
7839         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
7840         Reported by John W. Eaton <jwe@gnu.org>.
7841
7842 2010-03-20  Bruno Haible  <bruno@clisp.org>
7843
7844         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
7845         Reported by Jim Meyering.
7846
7847 2010-03-20  Bruno Haible  <bruno@clisp.org>
7848
7849         pipe: Set errno upon failure.
7850         * lib/pipe.h: Specify that when -1 is returned, errno is set.
7851         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
7852         errno value in error message.
7853
7854 2010-03-20  Bruno Haible  <bruno@clisp.org>
7855             Jim Meyering  <meyering@redhat.com>
7856
7857         lchown: Avoid "unused variable" warning.
7858         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
7859
7860 2010-03-20  Bruno Haible  <bruno@clisp.org>
7861
7862         Work around unlink() bug on MacOS X 10.5.6.
7863         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
7864         attempting to unlink a parent directory.
7865         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
7866         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
7867         activate for the replacement function.
7868         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
7869
7870 2010-03-20  Bruno Haible  <bruno@clisp.org>
7871
7872         Fix link errors on Solaris 8.
7873         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
7874         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
7875
7876 2010-03-19  Jim Meyering  <meyering@redhat.com>
7877
7878         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
7879         The _LIBC implementation of build_range_exp correctly honors the
7880         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
7881         However, the non-_LIBC implementation would ignore that syntax-bit
7882         flag and return REG_ERANGE unconditionally.
7883         This change makes it honor that flag.
7884         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
7885         Make two pointer parameters "const".
7886         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
7887         (parse_bracket_exp): Update caller.
7888
7889         regex.m4: correct the reversed range endpoint ([b-a]) test
7890         * m4/regex.m4: When requiring that [b-a] evoke failure,
7891         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
7892         test pass once again for x86-based systems.
7893
7894 2010-03-19  Bruno Haible  <bruno@clisp.org>
7895
7896         scandir: Fix link error on Solaris 8.
7897         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
7898         macros.
7899
7900 2010-03-19  Bruno Haible  <bruno@clisp.org>
7901
7902         getusershell: Fix documentation.
7903         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
7904         module.
7905         * doc/glibc-functions/setusershell.texi: Likewise.
7906
7907         getusershell: Provide declaration, missing on Solaris 9.
7908         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
7909         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
7910         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
7911         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
7912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7913         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
7914         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
7915         HAVE_GETUSERSHELL.
7916         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
7917
7918 2010-03-19  Bruno Haible  <bruno@clisp.org>
7919
7920         wctype: Provide iswblank function.
7921         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
7922         exists and is fine.
7923         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
7924         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
7925         * tests/test-wctype.c (main): Re-enable the iswblank tests.
7926         * doc/posix-functions/iswblank.texi: Update.
7927
7928 2010-03-19  Bruno Haible  <bruno@clisp.org>
7929
7930         Tests of module 'pty' in C++ mode.
7931         * modules/pty-tests: New file.
7932         * tests/test-pty-c++.cc: New file.
7933         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7934
7935 2010-03-19  Eric Blake  <eblake@redhat.com>
7936
7937         logb: fix documentation
7938         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
7939         1.5 declaration bug.
7940
7941         forkpty, openpty: prefer glibc's const-safe prototype
7942         * lib/forkpty.c (rpl_forkpty): New file.
7943         * lib/openpty.c (rpl_openpty): Likewise.
7944         * modules/forkpty (Files): Distribute it.
7945         * modules/openpty (Files): Likewise.
7946         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
7947         check...
7948         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
7949         replacement for for non-const BSD signature.
7950         * modules/pty (Makefile.am): Substitute witnesses.
7951         * lib/pty.in.h (forkpty, openpty): Declare replacements.
7952         * tests/test-forkpty.c: Update signature check.
7953         * tests/test-openpty.c: Likewise.
7954         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
7955         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7956
7957         forkpty, openpty: split functions into new modules
7958         * modules/pty (Makefile.am): Substitute new witnesses.
7959         (Libraries): Move library detection...
7960         * modules/forkpty: ...into new module.
7961         * modules/openpty: Another new module.
7962         * modules/pty-tests: Rename and split...
7963         * modules/forkpty-tests: ...to this...
7964         * modules/openpty-tests: ...and this.
7965         * tests/test-pty.c: Rename and split...
7966         * tests/test-forkpty.c: ...to this...
7967         * tests/test-openpty.c: ...and this.
7968         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
7969         (gl_PTY): Split library searching...
7970         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
7971         (gl_FORKPTY, gl_OPENPTY): New macros.
7972         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
7973         * NEWS: Mention the split.
7974         * MODULES.html.sh (Misc): Document the modules.
7975         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
7976         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7977
7978         pty: improve replacement header
7979         * lib/pty.in.h: New file.
7980         * modules/pty (Files): Ship it.
7981         (Makefile.am): Always build replacement.
7982         * m4/pty.m4: Rename...
7983         * m4/pty_h.m4: ...to this.
7984         (gl_PTY): Modernize setting of witness macros; update check of
7985         forkpty to take proper advantage of cache.
7986         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
7987
7988         getopt: avoid compiler warning
7989         * lib/getopt.c (attribute_hidden): Remove unused macro.
7990
7991 2010-03-18  Bruno Haible  <bruno@clisp.org>
7992
7993         Fix link errors on Solaris 8.
7994         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
7995         * modules/search-tests (test_search_c___LDADD): Likewise.
7996         * modules/signal-tests (test_signal_c___LDADD): Likewise.
7997         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
7998         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
7999         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
8000         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
8001         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
8002         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
8003
8004 2010-03-18  Bruno Haible  <bruno@clisp.org>
8005
8006         Fix bug introduced on 2010-03-14.
8007         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
8008         (gl_SPAWN_H): Require it.
8009         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
8010         Reported by Simon Josefsson.
8011
8012 2010-03-18  Bruno Haible  <bruno@clisp.org>
8013
8014         Fix typo introduced on 2009-12-31.
8015         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
8016         posix_spawn_file_actions_adddup2.
8017
8018 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
8019         and Eric Blake  <eblake@redhat.com>
8020
8021         test-vc-list-files-git: make more robust
8022         * tests/test-vc-list-files-git.sh: Unset problematic environment
8023         variables.  Chain commands together.
8024
8025 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
8026
8027         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
8028         `AC_CHECK_DECL' invocation.
8029
8030 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
8031
8032         * lib/inttostr.c (inttostr): Make sure the invocation of verify
8033         appears before executable statements. Suggested by Petr Sumbera
8034         <Petr.Sumbera@Sun.COM>.
8035
8036 2010-03-14  Bruno Haible  <bruno@clisp.org>
8037
8038         * tests/test-flock.c (test_exclusive): Comment out a test that causes
8039         portability problems. Instead use a simpler test.
8040         (main): Check that invalid arguments are rejected only on Linux.
8041
8042 2010-03-14  Bruno Haible  <bruno@clisp.org>
8043
8044         Fix bug introduced on 2009-12-31.
8045         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
8046         gl_PREREQ_SYS_H_WINSOCK2 always.
8047         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
8048         SYS_SOCKET_H variable.
8049         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
8050         Update comments.
8051         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
8052         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8053         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8054         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8055         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
8056
8057 2010-03-14  Bruno Haible  <bruno@clisp.org>
8058
8059         Fix values returned by sinl, cosl.
8060         * lib/trigl.h: Add specification comments.
8061         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
8062         that combines the values from the precomputed table with the values of
8063         the Chebyshev polynomials.
8064
8065 2010-03-14  Bruno Haible  <bruno@clisp.org>
8066
8067         Fix compilation error when modules 'posix_spawn[p]' are not used.
8068         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
8069         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
8070
8071 2010-03-14  Bruno Haible  <bruno@clisp.org>
8072
8073         Fix compilation error on mingw when module 'time_r' is not used.
8074         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
8075         is 1.
8076         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
8077         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
8078         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
8079         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
8080
8081 2010-03-14  Bruno Haible  <bruno@clisp.org>
8082
8083         Fix compilation error with Sun C.
8084         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
8085         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
8086         instead of GCC specific ULONG_LONG_MAX.
8087         * lib/xstrtoll.c: Likewise.
8088         * lib/xstrtoull.c: Likewise.
8089
8090 2010-03-13  Bruno Haible  <bruno@clisp.org>
8091
8092         Allow the user to disable C++ code and tests.
8093         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
8094         (gl_PROG_ANSI_CXX): Require it.
8095
8096 2010-03-13  Bruno Haible  <bruno@clisp.org>
8097
8098         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
8099         cases.
8100
8101 2010-03-13  Bruno Haible  <bruno@clisp.org>
8102
8103         Test that gnulib does not break the standard C++ headers.
8104         * tests/test-locale-c++2.cc: New file.
8105         * modules/locale-tests (Files): Add it.
8106         (Makefile.am): Compile it for test-locale-c++.
8107         * tests/test-math-c++2.cc: New file.
8108         * modules/math-tests (Files): Add it.
8109         (Makefile.am): Compile it for test-math-c++.
8110         * tests/test-signal-c++2.cc: New file.
8111         * modules/signal-tests (Files): Add it.
8112         (Makefile.am): Compile it for test-signal-c++.
8113         * tests/test-stdio-c++2.cc: New file.
8114         * modules/stdio-tests (Files): Add it.
8115         (Makefile.am): Compile it for test-stdio-c++.
8116         * tests/test-stdlib-c++2.cc: New file.
8117         * modules/stdlib-tests (Files): Add it.
8118         (Makefile.am): Compile it for test-stdlib-c++.
8119         * tests/test-string-c++2.cc: New file.
8120         * modules/string-tests (Files): Add it.
8121         (Makefile.am): Compile it for test-string-c++.
8122         * tests/test-time-c++2.cc: New file.
8123         * modules/time-tests (Files): Add it.
8124         (Makefile.am): Compile it for test-time-c++.
8125         Reported by John W. Eaton <jwe@gnu.org>.
8126
8127 2010-03-13  Bruno Haible  <bruno@clisp.org>
8128
8129         * gnulib-tool (func_usage): Clarify which options are available for
8130         --create-testdir and --create-megatestdir.
8131
8132 2010-03-13  Bruno Haible  <bruno@clisp.org>
8133
8134         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
8135         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
8136         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
8137         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8138         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
8139         when appropriate.
8140         Reported by Jim Meyering.
8141
8142 2010-03-12  Simon Josefsson  <simon@josefsson.org>
8143
8144         * gnulib-tool (func_import): Explain origin of code.
8145
8146 2010-03-12  Bruno Haible  <bruno@clisp.org>
8147
8148         Fix problem with automake's definition of CXXLINK.
8149         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
8150         Reported by Simon Josefsson and Ludovic Courtès.
8151
8152 2010-03-12  Bruno Haible  <bruno@clisp.org>
8153
8154         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
8155         stable releases.
8156
8157 2010-03-11  Bruno Haible  <bruno@clisp.org>
8158
8159         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
8160         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
8161         whether the system provides one variant or multiple variants of the
8162         function.
8163         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
8164         C++ compilers.
8165         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
8166         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
8167         Reported by Jim Meyering.
8168
8169 2010-03-09  Simon Josefsson  <simon@josefsson.org>
8170
8171         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
8172
8173 2010-03-08  Bruno Haible  <bruno@clisp.org>
8174
8175         gnulib-tool: Add support for --libtool in --create-testdir.
8176         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
8177         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
8178
8179 2010-03-08  Eric Blake  <eblake@redhat.com>
8180
8181         gnulib-tool.texi: mention possibility of git submodule
8182         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
8183         submodules.
8184         * doc/.gitignore: Ignore another generated file.
8185
8186 2010-03-08  Karl Berry  <karl@gnu.org>
8187
8188         * doc/gnulib-tool.texi (VCS Issues): Mention third option
8189         of committing gnulib files while skipping others.
8190
8191 2010-03-07  Bruno Haible  <bruno@clisp.org>
8192
8193         Tests of module 'wctype' in C++ mode.
8194         * tests/test-wctype-c++.cc: New file.
8195         * modules/wctype-tests (Files): Add it and tests/signature.h.
8196         (Depends-on): Add ansi-c++-opt.
8197         (Makefile.am): Arrange to compile and run test-wctype-c++.
8198
8199         Tests of module 'wchar' in C++ mode.
8200         * tests/test-wchar-c++.cc: New file.
8201         * modules/wchar-tests (Files): Add it and tests/signature.h.
8202         (Depends-on): Add ansi-c++-opt.
8203         (Makefile.am): Arrange to compile and run test-wchar-c++.
8204         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
8205         gl_MODULE_INDICATOR.
8206
8207         Tests of module 'unistd' in C++ mode.
8208         * tests/test-unistd-c++.cc: New file.
8209         * modules/unistd-tests (Files): Add it and tests/signature.h.
8210         (Depends-on): Add ansi-c++-opt.
8211         (Makefile.am): Arrange to compile and run test-unistd-c++.
8212         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
8213         gl_MODULE_INDICATOR.
8214
8215         Tests of module 'time' in C++ mode.
8216         * tests/test-time-c++.cc: New file.
8217         * modules/time-tests (Files): Add it and tests/signature.h.
8218         (Depends-on): Add ansi-c++-opt.
8219         (Makefile.am): Arrange to compile and run test-time-c++.
8220         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8221
8222         Tests of module 'sys_time' in C++ mode.
8223         * tests/test-sys_time-c++.cc: New file.
8224         * modules/sys_time-tests (Files): Add it and tests/signature.h.
8225         (Depends-on): Add ansi-c++-opt.
8226         (Makefile.am): Arrange to compile and run test-sys_time-c++.
8227         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
8228         gl_MODULE_INDICATOR.
8229
8230         Tests of module 'sys_stat' in C++ mode.
8231         * tests/test-sys_stat-c++.cc: New file.
8232         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
8233         (Depends-on): Add ansi-c++-opt.
8234         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
8235         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
8236         gl_MODULE_INDICATOR.
8237
8238         Tests of module 'sys_socket' in C++ mode.
8239         * tests/test-sys_socket-c++.cc: New file.
8240         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
8241         (Depends-on): Add ansi-c++-opt.
8242         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
8243         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
8244         gl_MODULE_INDICATOR.
8245
8246         Tests of module 'sys_select' in C++ mode.
8247         * tests/test-sys_select-c++.cc: New file.
8248         * modules/sys_select-tests (Files): Add it and tests/signature.h.
8249         (Depends-on): Add ansi-c++-opt.
8250         (Makefile.am): Arrange to compile and run test-sys_select-c++.
8251         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
8252         gl_MODULE_INDICATOR.
8253
8254         Tests of module 'sys_ioctl' in C++ mode.
8255         * tests/test-sys_ioctl-c++.cc: New file.
8256         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
8257         (Depends-on): Add ansi-c++-opt.
8258         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
8259         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
8260         gl_MODULE_INDICATOR.
8261
8262         Tests of module 'string' in C++ mode.
8263         * tests/test-string-c++.cc: New file.
8264         * modules/string-tests (Files): Add it and tests/signature.h.
8265         (Depends-on): Add ansi-c++-opt.
8266         (Makefile.am): Arrange to compile and run test-string-c++.
8267         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
8268         gl_MODULE_INDICATOR.
8269
8270         Tests of module 'stdlib' in C++ mode.
8271         * tests/test-stdlib-c++.cc: New file.
8272         * modules/stdlib-tests (Files): Add it and tests/signature.h.
8273         (Depends-on): Add ansi-c++-opt.
8274         (Makefile.am): Arrange to compile and run test-stdlib-c++.
8275         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
8276         gl_MODULE_INDICATOR.
8277
8278         Tests of module 'stdio' in C++ mode.
8279         * tests/test-stdio-c++.cc: New file.
8280         * modules/stdio-tests (Files): Add it and tests/signature.h.
8281         (Depends-on): Add ansi-c++-opt.
8282         (Makefile.am): Arrange to compile and run test-stdio-c++.
8283         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
8284         gl_MODULE_INDICATOR.
8285
8286         Tests of module 'spawn' in C++ mode.
8287         * tests/test-spawn-c++.cc: New file.
8288         * modules/spawn-tests (Files): Add it and tests/signature.h.
8289         (Depends-on): Add ansi-c++-opt.
8290         (Makefile.am): Arrange to compile and run test-spawn-c++.
8291         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
8292         gl_MODULE_INDICATOR.
8293
8294         Tests of module 'signal' in C++ mode.
8295         * tests/test-signal-c++.cc: New file.
8296         * modules/signal-tests (Files): Add it and tests/signature.h.
8297         (Depends-on): Add ansi-c++-opt.
8298         (Makefile.am): Arrange to compile and run test-signal-c++.
8299         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
8300         gl_MODULE_INDICATOR.
8301
8302         Tests of module 'search' in C++ mode.
8303         * tests/test-search-c++.cc: New file.
8304         * modules/search-tests (Files): Add it and tests/signature.h.
8305         (Depends-on): Add ansi-c++-opt.
8306         (Makefile.am): Arrange to compile and run test-search-c++.
8307         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
8308         gl_MODULE_INDICATOR.
8309
8310         Tests of module 'math' in C++ mode.
8311         * tests/test-math-c++.cc: New file.
8312         * modules/math-tests (Files): Add it and tests/signature.h.
8313         (Depends-on): Add ansi-c++-opt.
8314         (Makefile.am): Arrange to compile and run test-math-c++.
8315         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8316
8317         Tests of module 'locale' in C++ mode.
8318         * tests/test-locale-c++.cc: New file.
8319         * modules/locale-tests (Files): Add it and tests/signature.h.
8320         (Depends-on): Add ansi-c++-opt.
8321         (Makefile.am): Arrange to compile and run test-locale-c++.
8322         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
8323         gl_MODULE_INDICATOR.
8324
8325         Tests of module 'langinfo' in C++ mode.
8326         * tests/test-langinfo-c++.cc: New file.
8327         * modules/langinfo-tests (Files): Add it and tests/signature.h.
8328         (Depends-on): Add ansi-c++-opt.
8329         (Makefile.am): Arrange to compile and run test-langinfo-c++.
8330         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
8331         gl_MODULE_INDICATOR.
8332
8333         Tests of module 'iconv-h' in C++ mode.
8334         * tests/test-iconv-h-c++.cc: New file.
8335         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
8336         (Depends-on): Add ansi-c++-opt.
8337         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
8338
8339         Tests of module 'glob' in C++ mode.
8340         * tests/test-glob-c++.cc: New file.
8341         * modules/glob-tests (Files): Add it.
8342         (Depends-on): Add ansi-c++-opt.
8343         (Makefile.am): Arrange to compile and run test-glob-c++.
8344
8345         Tests of module 'fcntl-h' in C++ mode.
8346         * tests/test-fcntl-h-c++.cc: New file.
8347         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
8348         (Depends-on): Add ansi-c++-opt.
8349         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
8350         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
8351         gl_MODULE_INDICATOR.
8352
8353         Tests of module 'dirent' in C++ mode.
8354         * tests/test-dirent-c++.cc: New file.
8355         * modules/dirent-tests (Files): Add it and tests/signature.h.
8356         (Depends-on): Add ansi-c++-opt.
8357         (Makefile.am): Arrange to compile and run test-dirent-c++.
8358         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8359         gl_MODULE_INDICATOR.
8360
8361         New module 'ansi-c++-opt'.
8362         * modules/ansi-c++-opt: New file.
8363         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
8364
8365         Document C++ namespace mode.
8366         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
8367
8368         wctype: Avoid #define replacements in C++ mode.
8369         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
8370         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
8371         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
8372         In C++, define a namespaced alias symbol.
8373         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
8374         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
8375         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
8376         rule.
8377
8378         wchar: Avoid #define replacements in C++ mode.
8379         * lib/wchar.in.h: Include c++defs.h.
8380         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
8381         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
8382         symbol.
8383         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
8384         * modules/wchar (Depends-on): Add c++defs.
8385         (Makefile.am): Update wchar.h rule.
8386
8387         unistd: Avoid #define replacements in C++ mode.
8388         * lib/unistd.in.h: Include c++defs.h.
8389         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
8390         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
8391         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
8392         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
8393         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
8394         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
8395         symbol.
8396         (environ): Update.
8397         * modules/unistd (Depends-on): Add c++defs.
8398         (Makefile.am): Update unistd.h rule.
8399
8400         time: Avoid #define replacements in C++ mode.
8401         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
8402         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
8403         define a namespaced alias symbol.
8404         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
8405         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
8406         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
8407         * modules/time (Depends-on): Add c++defs, warn-on-use.
8408         (Makefile.am): Update time.h rule.
8409         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
8410         * modules/nanosleep (configure.ac): Likewise.
8411         * modules/strptime (configure.ac): Likewise.
8412         * modules/timegm (configure.ac): Likewise.
8413
8414         sys_time: Avoid #define replacements in C++ mode.
8415         * lib/sys_time.in.h: Include c++defs.h.
8416         (gettimeofday): In C++, define a namespaced alias symbol.
8417         * modules/sys_time (Depends-on): Add c++defs.
8418         (Makefile.am): Update sys/time.h rule.
8419
8420         sys_stat: Avoid #define replacements in C++ mode.
8421         * lib/sys_stat.in.h: Include c++defs.h.
8422         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
8423         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
8424         namespaced alias symbol.
8425         In C++, define a namespaced alias symbol.
8426         * modules/sys_stat (Depends-on): Add c++defs.
8427         (Makefile.am): Update sys/stat.h rule.
8428
8429         sys_socket: Avoid #define replacements in C++ mode.
8430         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
8431         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
8432         definitions also when the system has a <sys/socket.h>.
8433         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8434         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
8435         In C++, define a namespaced alias symbol.
8436         * modules/sys_socket (Depends-on): Add c++defs.
8437         (Makefile.am): Update sys/socket.h rule.
8438
8439         sys_select: Avoid #define replacements in C++ mode.
8440         * lib/sys_select.in.h: Include c++defs.h. Enable the function
8441         definitions also when the system has a <sys/select.h>.
8442         (select): In C++, define a namespaced alias symbol.
8443         * modules/sys_select (Depends-on): Add c++defs.
8444         (Makefile.am): Update sys/select.h rule.
8445
8446         sys_ioctl: Avoid #define replacements in C++ mode.
8447         * lib/sys_ioctl.in.h: Include c++defs.h.
8448         (ioctl): In C++, define a namespaced alias symbol.
8449         * modules/sys_ioctl (Depends-on): Add c++defs.
8450         (Makefile.am): Update sys/ioctl.h rule.
8451
8452         string: Avoid #define replacements in C++ mode.
8453         * lib/string.in.h: Include c++defs.h.
8454         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
8455         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
8456         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
8457         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
8458         strsignal, strverscmp): In C++, define a namespaced alias symbol.
8459         * modules/string (Depends-on): Add c++defs.
8460         (Makefile.am): Update string.h rule.
8461
8462         stdlib: Avoid #define replacements in C++ mode.
8463         * lib/stdlib.in.h: Include c++defs.h.
8464         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
8465         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
8466         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
8467         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
8468         symbol.
8469         * modules/stdlib (Depends-on): Add c++defs.
8470         (Makefile.am): Update stdlib.h rule.
8471
8472         stdio: Avoid #define replacements in C++ mode.
8473         * lib/stdio.in.h: Include c++defs.h.
8474         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
8475         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
8476         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
8477         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
8478         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
8479         namespaced alias symbol.
8480         * modules/stdio (Depends-on): Add c++defs.
8481         (Makefile.am): Update stdio.h rule.
8482
8483         spawn: Avoid #define replacements in C++ mode.
8484         * lib/spawn.in.h: Include c++defs.h.
8485         (posix_spawn, posix_spawnp, posix_spawnattr_init,
8486         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
8487         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
8488         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
8489         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
8490         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
8491         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
8492         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
8493         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
8494         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
8495         In C++, define a namespaced alias symbol.
8496         * modules/spawn (Depends-on): Add c++defs.
8497         (Makefile.am): Update spawn.h rule.
8498
8499         signal: Avoid #define replacements in C++ mode.
8500         * lib/signal.in.h: Include c++defs.h.
8501         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
8502         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
8503         namespaced alias symbol.
8504         * modules/signal (Depends-on): Add c++defs.
8505         (Makefile.am): Update signal.h rule.
8506
8507         search: Avoid #define replacements in C++ mode.
8508         * lib/search.in.h: Include c++defs.h.
8509         (_gl_search_compar_fn, _gl_search_action_fn): New types.
8510         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
8511         symbol.
8512         * modules/search (Depends-on): Add c++defs.
8513         (Makefile.am): Update search.h rule.
8514
8515         math: Avoid #define replacements in C++ mode.
8516         * lib/math.in.h: Include c++defs.h.
8517         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
8518         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
8519         trunc, truncl): In C++, define a namespaced alias symbol.
8520         * modules/math (Depends-on): Add c++defs.
8521         (Makefile.am): Update math.h rule.
8522
8523         locale: Avoid #define replacements in C++ mode.
8524         * lib/locale.in.h: Include c++defs.h.
8525         (duplocale): In C++, define a namespaced alias symbol.
8526         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
8527         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
8528         * modules/locale (Depends-on): Add c++defs.
8529         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
8530
8531         langinfo: Avoid #define replacements in C++ mode.
8532         * lib/langinfo.in.h: Include c++defs.h.
8533         (nl_langinfo): In C++, define a namespaced alias symbol.
8534         * modules/langinfo (Depends-on): Add c++defs.
8535         (Makefile.am): Update langinfo.h rule.
8536
8537         iconv-h: Avoid #define replacements in C++ mode.
8538         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
8539         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
8540         symbol.
8541         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
8542         whenever iconv is present.
8543         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
8544         (Makefile.am): Update iconv.h rule.
8545
8546         glob: Avoid #define replacements in C++ mode.
8547         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
8548         (_gl_glob_errfunc_fn): New type.
8549         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
8550         symbol.
8551         * modules/glob (Depends-on): Add c++defs, warn-on-use.
8552         (Makefile.am): Update glob.h rule.
8553
8554         fcntl-h: Avoid #define replacements in C++ mode.
8555         * lib/fcntl.in.h: Include c++defs.h.
8556         (fcntl, open, openat): In C++, define a namespaced alias symbol.
8557         * modules/fcntl-h (Depends-on): Add c++defs.
8558         (Makefile.am): Update fcntl.h rule.
8559
8560         dirent: Avoid #define replacements in C++ mode.
8561         * lib/dirent.in.h: Include c++defs.h.
8562         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
8563         namespaced alias symbol.
8564         (dirfd): Update declaration.
8565         * modules/dirent (Depends-on): Add c++defs.
8566         (Makefile.am): Update dirent.h rule.
8567
8568         ctype: Make it usable in C++ code.
8569         * lib/ctype.in.h: Include c++defs.h.
8570         (isblank): Declare as extern "C".
8571         * modules/ctype (Depends-on): Add c++defs.
8572         (Makefile.am): Update ctype.h rule.
8573
8574         New module 'c++defs'.
8575         * modules/c++defs: New file.
8576         * build-aux/c++defs.h: New file.
8577         Reported by John W. Eaton <jwe@gnu.org>.
8578
8579 2010-03-07  Bruno Haible  <bruno@clisp.org>
8580
8581         logb: Provide missing declaration for Cygwin.
8582         * lib/math.in.h (logb): New declaration.
8583         * m4/logb.m4: New file.
8584         * modules/logb (Files): Add m4/logb.m4.
8585         (Depends-on): Add math.
8586         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
8587         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
8588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
8589         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
8590         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
8591
8592 2010-03-07  Bruno Haible  <bruno@clisp.org>
8593
8594         Fix test-cond link error.
8595         * tests/test-cond.c: Include <stdio.h>.
8596
8597 2010-03-07  Bruno Haible  <bruno@clisp.org>
8598
8599         Fix test-dirent-safer link error.
8600         * modules/dirent-safer-tests (Makefile.am): Define
8601         test_dirent_safer_LDADD.
8602
8603 2010-03-07  Bruno Haible  <bruno@clisp.org>
8604
8605         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
8606         among default module list.
8607
8608 2010-03-07  Bruno Haible  <bruno@clisp.org>
8609
8610         Fix link error on platforms with GNU libiconv.
8611         * modules/unistr/u8-strcoll-tests (Makefile): Define
8612         test_u8_strcoll_LDADD.
8613         * modules/unistr/u16-strcoll-tests (Makefile): Define
8614         test_u16_strcoll_LDADD.
8615         * modules/unistr/u32-strcoll-tests (Makefile): Define
8616         test_u32_strcoll_LDADD.
8617
8618 2010-03-07  Bruno Haible  <bruno@clisp.org>
8619
8620         Use POSIX declarations for socket functions.
8621         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
8622         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
8623         rpl_sendto): Change declaration to match POSIX.
8624         * lib/connect.c (rpl_connect): Likewise.
8625         * lib/accept.c (rpl_accept): Likewise.
8626         * lib/bind.c (rpl_bind): Likewise.
8627         * lib/getpeername.c (rpl_getpeername): Likewise.
8628         * lib/getsockname.c (rpl_getsockname): Likewise.
8629         * lib/recv.c (rpl_recv): Likewise.
8630         * lib/send.c (rpl_send): Likewise.
8631         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8632         * lib/sendto.c (rpl_sendto): Likewise.
8633
8634 2010-03-06  Bruno Haible  <bruno@clisp.org>
8635
8636         Clarify access, euidaccess, faccessat.
8637         * doc/posix-functions/faccessat.texi: Mention security problem under
8638         "Other problems", not "Portability problems".
8639         * doc/posix-functions/access.texi: Likewise. Mention a related security
8640         problem.
8641         * doc/glibc-functions/euidaccess.texi: Mention security problems.
8642         * lib/euidaccess.c: Add comments about platforms.
8643         * lib/unistd.in.h (access, euidaccess): Add warnings.
8644
8645 2010-03-07  Bruno Haible  <bruno@clisp.org>
8646
8647         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
8648         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
8649         (POSIX_SPAWN_SETSCHEDULER): Likewise.
8650         (POSIX_SPAWN_USEVFORK): Define in a way that works when
8651         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8652         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
8653         declare when POSIX_SPAWN_SETSCHEDULER is zero.
8654         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
8655         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
8656         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
8657         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
8658         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
8659         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
8660         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
8661         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
8662         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
8663         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
8664         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
8665         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
8666         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
8667         Likewise.
8668         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
8669         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
8670         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
8671         Likewise.
8672         * tests/test-spawn.c (main): Make it work when
8673         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8674
8675 2010-03-07  Bruno Haible  <bruno@clisp.org>
8676
8677         Fix incorrect Makefile.am generation in German locale.
8678         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8679         Execute sed command with character range in C locale.
8680
8681 2010-03-06  Bruno Haible  <bruno@clisp.org>
8682
8683         Tests for module 'iconv-h'.
8684         * modules/iconv-h-tests: New file.
8685         * tests/test-iconv-h.c: New file.
8686
8687         New module 'iconv-h'.
8688         * modules/iconv-h: New file.
8689         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
8690         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
8691         (configure.ac): Remove gl_ICONV_H.
8692         (Makefile.am): Remove rule for iconv.h.
8693
8694 2010-03-06  Bruno Haible  <bruno@clisp.org>
8695
8696         More consistent naming of *.m4 files.
8697         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
8698         * modules/wctype (Files): Update.
8699
8700         More consistent naming of *.m4 files.
8701         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
8702         * modules/wchar (Files): Update.
8703
8704 2010-03-06  Jim Meyering  <meyering@redhat.com>
8705
8706         euidaccess: relax license to LGPLv2+
8707         * modules/euidaccess (License): Relax to LGPLv2+.
8708
8709 2010-03-06  Bruno Haible  <bruno@clisp.org>
8710
8711         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
8712         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
8713         (Makefile.am): Augment lib_SOURCES instead.
8714
8715 2010-03-04  Jim Meyering  <meyering@redhat.com>
8716
8717         utime: remove obsolete module
8718         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
8719         unnecessary for years, and has been marked as obsolete for 10 months.
8720         * modules/utime: Remove file.
8721         * lib/utime.c: Remove file.
8722         * m4/utime.m4: Remove file.
8723         * m4/utimes-null.m4: Remove file.
8724         * doc/posix-functions/utime.texi (utime): Remove reference to
8725         the module.  Move the sole "fixed by gnulib" item into the
8726         "problems not fixed by Gnulib" list.
8727         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
8728
8729 2010-03-05  Simon Josefsson  <simon@josefsson.org>
8730
8731         * modules/exit (License): Relax license to LGPLv2+.
8732         (Status): Mark as obsolete.
8733         * NEWS: Mention deprecated 'exit' module.
8734         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
8735         of now obsolete 'exit'.
8736
8737 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8738
8739         fts-lgpl: remove unused module
8740         * modules/fts-lgpl: Remove.
8741         * MODULES.html.sh (func_all_modules): Adjust.
8742         * check-module (find_included_lib_files): Adjust.
8743         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
8744
8745 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
8746
8747         copy-acl: enhance Solaris ACL error handling
8748         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
8749         * lib/set-mode-acl.c (qset_acl): Likewise.
8750
8751 2010-03-02  Bruno Haible  <bruno@clisp.org>
8752
8753         spawn: Don't override the system defined values on FreeBSD 8.
8754         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
8755         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
8756         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
8757         if HAVE_POSIX_SPAWN is 1.
8758         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
8759
8760 2010-03-01  Bruno Haible  <bruno@clisp.org>
8761
8762         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
8763         regarding Automake.
8764
8765 2010-02-25  Bruno Haible  <bruno@clisp.org>
8766
8767         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
8768         * gnulib-tool: Define 'echo' as a function only before the ksh alias
8769         setting, not afterwards.
8770         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8771
8772 2010-02-24  Eric Blake  <eblake@redhat.com>
8773
8774         bootstrap, git-version-gen: use timestamp
8775         * build-aux/git-version-gen (scriptversion): Force UTC.
8776         * build-aux/bootstrap (scriptversion): New variable.
8777
8778         bootstrap: allow older git
8779         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
8780         older than 1.6.4.  Requested by the libvirt project.
8781
8782 2010-02-23  Eric Blake  <eblake@redhat.com>
8783
8784         warn-on-use: work with old autoconf
8785         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
8786         AS_VAR semantics of autoconf 2.60.
8787         Reported by Bruno Haible.
8788
8789         bootstrap: improve some comments
8790         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
8791         clarification comments.
8792
8793         gettimeofday: provide correct function
8794         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
8795         when replacement is declared, otherwise provide gettimeofday.
8796         Reported by Michael Goffioul.
8797
8798 2010-02-23  Jim Meyering  <meyering@redhat.com>
8799
8800         lib-ignore: relax license to "unlimited", not LGPLv2+
8801         * modules/lib-ignore (License): Relax to "unlimited".
8802
8803 2010-02-23  Jim Meyering  <meyering@redhat.com>
8804
8805         lib-ignore: relax license to LGPLv2+
8806         * modules/lib-ignore (License): Relax to LGPLv2+.
8807
8808 2010-02-22  Eric Blake  <eblake@redhat.com>
8809
8810         lseek: avoid bash 3.2 broken pipe bug
8811         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
8812         warning from bash 3.2.
8813         Reported by Ben Pfaff, with analysis from Bruno Haible.
8814
8815         bootstrap: support non-FSF copyright holder
8816         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
8817         bootstrap.conf override of COPYRIGHT_HOLDER.
8818         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
8819
8820         bootstrap: interoperate with gettext 0.14.1
8821         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
8822
8823         bootstrap: allow for alternate submodule location
8824         * build-aux/bootstrap (gnulib_path): New variable; use instead of
8825         hardcoding submodule location.
8826         (gnulib_mk): Allow direct use of Makefile.am.
8827
8828         bootstrap: use GNULIB_SRCDIR to reduce disk usage
8829         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
8830         rather than reconfiguring where the submodule points.
8831
8832         gettimeofday: restore support for platforms that lack function
8833         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
8834         replacement if function is missing.
8835         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
8836         * modules/sys_time (Makefile.am): Substitute it.
8837         * lib/sys_time.in.h (gettimeofday): Check it.
8838         Reported by Michael Goffioul.
8839
8840 2010-02-21  Bruno Haible  <bruno@clisp.org>
8841
8842         * lib/stdio.in.h (obstack_printf): Fix typo.
8843
8844 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
8845
8846         vc-list-files: use bzr ls's -R option
8847         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
8848         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
8849
8850 2010-02-21  Jim Meyering  <meyering@redhat.com>
8851
8852         init.sh: fix EXEEXT shims to work also for names like test-prog
8853         * tests/init.sh: Re-exec a better shell, when needed.
8854         If the current shell lacks support for posix $(...), an init.sh-using
8855         test will now try to find a shell that supports that.  If EXEEXT is
8856         nonempty, we also require support for hyphen-in-alias-name and shell
8857         substitutions like ${var#glob}.  Failure to find such a shell results
8858         in a skipped test.
8859
8860 2010-02-21  Bruno Haible  <bruno@clisp.org>
8861
8862         Really work around around "broken pipe" error message from bash 3.2.
8863         * gnulib-tool (func_reset_sigpipe): Remove function.
8864         (echo): In bash 3.2, define to a function that uses printf.
8865         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
8866
8867 2010-02-20  Bruno Haible  <bruno@clisp.org>
8868
8869         Restore support for automake 1.9.6 with autoconf 2.61.
8870         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
8871         Reported by James Youngman <jay@gnu.org>.
8872
8873 2010-02-20  Bruno Haible  <bruno@clisp.org>
8874
8875         Improve *printf warning condition.
8876         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
8877         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
8878         and the function is overridden due to SIGPIPE emulation.
8879
8880 2010-02-20  Bruno Haible  <bruno@clisp.org>
8881
8882         * lib/stdio.in.h: Tweak comments.
8883
8884 2010-02-19  Bruno Haible  <bruno@clisp.org>
8885
8886         Make it easier to find modules. New gnulib-tool option '--find'.
8887         * gnulib-tool: New option --find.
8888         (func_usage): Document it.
8889         (func_sanitize_modulelist): New function, extracted from
8890         func_all_modules.
8891         (func_all_modules): Invoke it.
8892         * doc/gnulib-tool.texi (Which modules?): New node.
8893
8894 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
8895
8896         * lib/sys_select.in.h: Provide select replacement even if
8897         sys/select.h exists on a system, for Interix.
8898
8899 2010-02-18  Jim Meyering  <meyering@redhat.com>
8900
8901         init.sh: don't use $(...) just yet
8902         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
8903         to accommodate e.g., Solaris' /bin/sh.
8904
8905 2010-02-17  Bruno Haible  <bruno@clisp.org>
8906
8907         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
8908         Reported by Ludovic Courtès <ludo@gnu.org>.
8909
8910 2010-02-16  Simon Josefsson  <simon@josefsson.org>
8911
8912         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
8913         linking with -lintl.
8914
8915 2010-02-17  Simon Josefsson  <simon@josefsson.org>
8916
8917         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
8918         if not provided by the system's netdb.h.  Reported by
8919         ludo@gnu.org (Ludovic Courtès).
8920
8921 2010-02-15  Jim Meyering  <meyering@redhat.com>
8922
8923         init.sh: improve portability and efficiency
8924         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
8925         "dummy" in a for loop.
8926         Use '!', not '^' to select the complement of a character set used
8927         in a "case" statement.
8928         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
8929         Suggestions from Eric Blake.
8930
8931         init.sh: automatically accommodate programs with the .exe suffix
8932         Automatically arrange for an invocation of "prog" to execute the
8933         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
8934         may use the simpler "prog", yet still work when built on a system
8935         that requires specifying the added suffix.
8936         Do this by constructing a function named "prog" that invokes
8937         "prog.exe" for each .exe file in selected directories.
8938         * tests/init.sh (find_exe_basenames_): New function.
8939         (create_exe_shim_functions_): New function.
8940         (path_prepend_): Use it.
8941
8942         maint.mk: mark syntax-check sc_*.m rules as .PHONY
8943         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
8944         "make -t syntax-check" doesn't create a ton of sc_*.m files.
8945
8946 2010-02-14  Jim Meyering  <meyering@redhat.com>
8947
8948         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
8949         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
8950         (sc_prohibit_hash_pjw_without_use): New rule.
8951
8952         maint.mk: allow the default upload destination dir to be overridden
8953         * top/maint.mk (upload_dest_dir_): Define with a default that
8954         preserves the status quo.
8955         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
8956         Reported by Peter Simons.
8957
8958         maint.mk: prohibit inclusion of "hash.h" without_use
8959         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
8960
8961 2010-02-10  Jim Meyering  <meyering@redhat.com>
8962
8963         maint.mk: prohibit inclusion of "ignore-value.h" without_use
8964         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
8965
8966 2010-02-09  Eric Blake  <ebb9@byu.net>
8967         and Bruno Haible  <bruno@clisp.org>
8968
8969         obstack-printf-posix: ensure declaration
8970         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
8971         extracted from gl_FUNC_OBSTACK_PRINTF.
8972         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
8973         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8974         Likewise.
8975         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
8976         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
8977         0.
8978
8979 2010-02-08  Bruno Haible  <bruno@clisp.org>
8980
8981         gnulib-tool: Fix typo in 2010-02-07 commit.
8982         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
8983         Reported by Eric Blake.
8984
8985 2010-02-07  Bruno Haible  <bruno@clisp.org>
8986
8987         gnulib-tool: Fix up caching patches.
8988         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
8989         option --no-cache. Use associative arrays when supported by the shell.
8990         (sed_comments): New variable.
8991         (modcache): Renamed from do_cache.
8992         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
8993         abbreviate unnecessarily.
8994         (have_associative): New variable.
8995         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
8996         way also for ksh and zsh.
8997         (func_init_sed_convert_to_cache_statements): New function, extracted
8998         from func_cache_lookup_module. Add support for associative arrays.
8999         Don't set the c_MODULE_cached variable here. Ignore all lines before
9000         the first field header. Remove only the final newline, not all trailing
9001         newlines. Support empty fields correctly. Limit the use of 'eval' to
9002         assignments.
9003         (func_get_description, func_get_status, func_get_notice,
9004         func_get_applicability, func_get_filelist, func_get_dependencies,
9005         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
9006         func_get_automake_snippet, func_get_include_directive,
9007         func_get_link_directive, func_get_license, func_get_maintainer):
9008         Update documentation. List the unoptimized code first. Add support for
9009         associative arrays. Limit the use of 'eval' to assignments.
9010         (func_get_applicability): Undo stylistic pessimisations.
9011         (func_get_automake_snippet, func_get_include_directive): Reduce code
9012         duplication.
9013         (func_modules_transitive_closure, func_modules_add_dummy,
9014         func_modules_notice, func_modules_to_filelist, func_add_file,
9015         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
9016         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
9017         func_create_testdir, func_create_megatestdir): Update documentation.
9018
9019 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9020
9021         * gnulib-tool (func_cache_lookup_module): Store the module name
9022         belonging to the cache variable; error out if two different
9023         module names map to the same cache variable name.
9024
9025 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9026
9027         gnulib-tool: Make caching optional.
9028         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
9029         Update matching short versions of --no-changelog.
9030         (func_usage): Update.
9031         (sed_extract_cache_prog): Renamed from ...
9032         (sed_extract_prog): ... this; revert to old extraction script.
9033         (func_get_description, func_get_status)
9034         (func_get_notice, func_get_applicability, func_get_filelist)
9035         (func_get_dependencies, func_get_autoconf_early_snippet)
9036         (func_get_autoconf_snippet, func_get_automake_snippet)
9037         (func_get_include_directive, func_get_link_directive)
9038         (func_get_license, func_get_maintainer): If $do_cache is false,
9039         use old, non-caching extraction scripts.
9040         Suggestion by Bruno Haible.
9041
9042 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9043
9044         gnulib-tool: cache module metainformation.
9045         * gnulib-tool (sed_extract_prog): Match newline before each
9046         header, and rewrite header to a shell variable suffix.
9047         (func_cache_var, func_cache_lookup_module): New functions,
9048         to turn a module name into a cache variable prefix, and to
9049         look up and cache module metainformation.
9050         (func_get_description, func_get_status)
9051         (func_get_notice, func_get_applicability, func_get_filelist)
9052         (func_get_dependencies, func_get_autoconf_early_snippet)
9053         (func_get_autoconf_snippet, func_get_automake_snippet)
9054         (func_get_include_directive, func_get_link_directive)
9055         (func_get_license, func_get_maintainer): Use
9056         func_cache_lookup_module.
9057
9058 2010-02-07  Bruno Haible  <bruno@clisp.org>
9059
9060         fnctl: Fix missing dependency.
9061         * modules/fcntl (Depends-on): Add getdtablesize.
9062         Reported by John W. Eaton <jwe@gnu.org>.
9063
9064 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9065
9066         Argp: fix recognition of short alias options.
9067
9068         * lib/argp-parse.c (convert_options): Fix improper use of
9069         `|' between character values.
9070         * tests/test-argp.c (group1_option): New alias option
9071         --read (-r).
9072         (group1_parser): Special handling for 'r'.
9073         (test15): New test case.
9074         (test_fun): Add test15.
9075         * tests/test-argp-2.sh: Update expected --help and --usage
9076         outputs.
9077
9078 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9079
9080         * tests/test-argp.c: Fix indentation.
9081
9082 2010-02-04  Eric Blake  <ebb9@byu.net>
9083
9084         gettimeofday: expose type of second argument
9085         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
9086         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
9087         * tests/test-gettimeofday.c: Use it to silence warning.
9088         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
9089         the issue.
9090
9091 2010-02-03  Jim Meyering  <meyering@redhat.com>
9092
9093         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
9094         * lib/regcomp.c (TYPE_SIGNED): Define.
9095         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
9096
9097         regcomp.c: avoid a new -Wshadow warning
9098         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
9099
9100 2010-02-01  Jim Meyering  <meyering@redhat.com>
9101
9102         removing useless parentheses in cpp #define directives
9103         For motivation, see commit c0221df4, "define STREQ(a,b)
9104         consistently, removing useless parentheses"
9105         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
9106         * lib/mountlist.c (MNT_IGNORE): Likewise.
9107         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
9108
9109 2010-02-01  Eric Blake  <ebb9@byu.net>
9110
9111         sys_time: use link-warning
9112         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
9113         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
9114         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
9115         * modules/sys_time (Depends-on): Add warn-on-use.
9116         (Makefile.am): Always build replacement.
9117         (configure.ac): Update substitutions.
9118         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
9119         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
9120         bother with SYS_TIME_H.
9121         * modules/gettimeofday (configure.ac): Declare indicator.
9122         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
9123         in use.
9124
9125         closein-tests: silence compiler warning
9126         * tests/test-closein.c (main): Ignore fread result.
9127         * modules/closein-tests (Depends-on): Add ignore-value.
9128
9129         tests: silence warning about system return
9130         * tests/test-areadlink-with-size.c (main): Ignore system result.
9131         * tests/test-areadlink.c (main): Likewise.
9132         * tests/test-areadlinkat-with-size.c (main): Likewise.
9133         * tests/test-areadlinkat.c (main): Likewise.
9134         * tests/test-canonicalize-lgpl.c (main): Likewise.
9135         * tests/test-canonicalize.c (main): Likewise.
9136         * tests/test-chown.c (main): Likewise.
9137         * tests/test-fchownat.c (main): Likewise.
9138         * tests/test-fdutimensat.c (main): Likewise.
9139         * tests/test-fstatat.c (main): Likewise.
9140         * tests/test-futimens.c (main): Likewise.
9141         * tests/test-lchown.c (main): Likewise.
9142         * tests/test-link.c (main): Likewise.
9143         * tests/test-linkat.c (main): Likewise.
9144         * tests/test-lstat.c (main): Likewise.
9145         * tests/test-mkdir.c (main): Likewise.
9146         * tests/test-mkdirat.c (main): Likewise.
9147         * tests/test-mkfifo.c (main): Likewise.
9148         * tests/test-mkfifoat.c (main): Likewise.
9149         * tests/test-mknod.c (main): Likewise.
9150         * tests/test-readlink.c (main): Likewise.
9151         * tests/test-remove.c (main): Likewise.
9152         * tests/test-rename.c (main): Likewise.
9153         * tests/test-renameat.c (main): Likewise.
9154         * tests/test-rmdir.c (main): Likewise.
9155         * tests/test-symlink.c (main): Likewise.
9156         * tests/test-symlinkat.c (main): Likewise.
9157         * tests/test-unlink.c (main): Likewise.
9158         * tests/test-unlinkat.c (main): Likewise.
9159         * tests/test-utimens.c (main): Likewise.
9160         * tests/test-utimensat.c (main): Likewise.
9161         * modules/areadlink-tests (Depends-on): Add ignore-value.
9162         * modules/areadlink-with-size-tests (Depends-on): Likewise.
9163         * modules/areadlinkat-tests (Depends-on): Likewise.
9164         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
9165         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9166         * modules/canonicalize-tests (Depends-on): Likewise.
9167         * modules/chown-tests (Depends-on): Likewise.
9168         * modules/fdutimensat-tests (Depends-on): Likewise.
9169         * modules/futimens-tests (Depends-on): Likewise.
9170         * modules/lchown-tests (Depends-on): Likewise.
9171         * modules/link-tests (Depends-on): Likewise.
9172         * modules/linkat-tests (Depends-on): Likewise.
9173         * modules/lstat-tests (Depends-on): Likewise.
9174         * modules/mkdir-tests (Depends-on): Likewise.
9175         * modules/mkfifo-tests (Depends-on): Likewise.
9176         * modules/mkfifoat-tests (Depends-on): Likewise.
9177         * modules/mknod-tests (Depends-on): Likewise.
9178         * modules/openat-tests (Depends-on): Likewise.
9179         * modules/readlink-tests (Depends-on): Likewise.
9180         * modules/remove-tests (Depends-on): Likewise.
9181         * modules/rename-tests (Depends-on): Likewise.
9182         * modules/renameat-tests (Depends-on): Likewise.
9183         * modules/rmdir-tests (Depends-on): Likewise.
9184         * modules/symlink-tests (Depends-on): Likewise.
9185         * modules/symlinkat-tests (Depends-on): Likewise.
9186         * modules/unlink-tests (Depends-on): Likewise.
9187         * modules/utimens-tests (Depends-on): Likewise.
9188         * modules/utimensat-tests (Depends-on): Likewise.
9189
9190 2010-01-31  Bruno Haible  <bruno@clisp.org>
9191
9192         Perform the same test for many <math.h> functions.
9193         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
9194         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
9195         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
9196         of gl_MATHFUNC.
9197         * modules/acos (configure.ac): Likewise.
9198         * modules/asin (configure.ac): Likewise.
9199         * modules/atan (configure.ac): Likewise.
9200         * modules/atan2 (configure.ac): Likewise.
9201         * modules/cbrt (configure.ac): Likewise.
9202         * modules/copysign (configure.ac): Likewise.
9203         * modules/cos (configure.ac): Likewise.
9204         * modules/cosh (configure.ac): Likewise.
9205         * modules/erf (configure.ac): Likewise.
9206         * modules/erfc (configure.ac): Likewise.
9207         * modules/exp (configure.ac): Likewise.
9208         * modules/fmod (configure.ac): Likewise.
9209         * modules/hypot (configure.ac): Likewise.
9210         * modules/j0 (configure.ac): Likewise.
9211         * modules/j1 (configure.ac): Likewise.
9212         * modules/jn (configure.ac): Likewise.
9213         * modules/lgamma (configure.ac): Likewise.
9214         * modules/log (configure.ac): Likewise.
9215         * modules/log10 (configure.ac): Likewise.
9216         * modules/log1p (configure.ac): Likewise.
9217         * modules/pow (configure.ac): Likewise.
9218         * modules/remainder (configure.ac): Likewise.
9219         * modules/sin (configure.ac): Likewise.
9220         * modules/sinh (configure.ac): Likewise.
9221         * modules/tan (configure.ac): Likewise.
9222         * modules/tanh (configure.ac): Likewise.
9223         * modules/y0 (configure.ac): Likewise.
9224         * modules/y1 (configure.ac): Likewise.
9225         * modules/yn (configure.ac): Likewise.
9226         Suggested by Paolo Bonzini.
9227
9228 2010-01-31  Bruno Haible  <bruno@clisp.org>
9229
9230         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
9231
9232 2010-01-31  Bruno Haible  <bruno@clisp.org>
9233
9234         Work around getdelim() bug on FreeBSD 8.0.
9235         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
9236         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
9237         not work.
9238         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
9239         is 1.
9240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
9241         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
9242         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
9243         a non-zero size.
9244         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
9245
9246 2010-01-31  Bruno Haible  <bruno@clisp.org>
9247
9248         Work around getline() bug on FreeBSD 8.0.
9249         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
9250         and a non-zero size.
9251         * tests/test-getline.c (main): Likewise.
9252         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
9253         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
9254
9255 2010-01-28  Eric Blake  <ebb9@byu.net>
9256
9257         regex: fix build failure
9258         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
9259         platforms.
9260
9261 2010-01-28  Jim Meyering  <meyering@redhat.com>
9262
9263         regex: do not ignore memory allocation failure
9264         * lib/regex_internal.c (create_cd_newstate): Detect
9265         re_node_set_init_copy failure.   Extracted from glibc commit
9266         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9267
9268         regex: sync more white-space changes from libc
9269         * lib/regex_internal.c: White-space only changes.
9270         * lib/regexec.c: Likewise.
9271
9272         regex: add many uses of __attribute_warn_unused_result__
9273         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
9274         * lib/regexec.c: Likewise.
9275         Extracted from a messy glibc commit.
9276
9277         regcomp.c: spelling and merge-artifact from glibc
9278         * lib/regcomp.c: Merge remainder of glibc's
9279         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9280
9281         regcomp.c: sync white-space changes from glibc
9282         * lib/regcomp.c: Merge to accommodate white space
9283         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9284
9285         regcomp.c: do not ignore internal return values
9286         * lib/regcomp.c: Do not ignore internal return values.
9287         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
9288         but without its white-space changes and spelling fixes.
9289
9290         regex_internal.h: define __attribute_warn_unused_result__
9291         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
9292
9293         maint: add a syntax-check rule to check for vulnerable Makefile.in
9294         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
9295
9296 2010-01-27  Jim Meyering  <meyering@redhat.com>
9297
9298         ncftpput-ftp: clean up spaces
9299         * build-aux/ncftpput-ftp: Make Copyright line consistent.
9300         Remove trailing blanks.
9301
9302 2010-01-27  Simon Josefsson  <simon@josefsson.org>
9303
9304         * build-aux/git-version-gen: Fix copyright statement.
9305         * build-aux/gnupload: Likewise.
9306         * tests/test-arcfour.c: Likewise.
9307         * tests/test-arctwo.c: Likewise.
9308         * tests/test-count-one-bits.c: Likewise.
9309         * tests/test-crc.c: Likewise.
9310         * tests/test-des.c: Likewise.
9311         * tests/test-gc-arcfour.c: Likewise.
9312         * tests/test-gc-arctwo.c: Likewise.
9313         * tests/test-gc-des.c: Likewise.
9314         * tests/test-gc-hmac-md5.c: Likewise.
9315         * tests/test-gc-hmac-sha1.c: Likewise.
9316         * tests/test-gc-md2.c: Likewise.
9317         * tests/test-gc-md4.c: Likewise.
9318         * tests/test-gc-md5.c: Likewise.
9319         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9320         * tests/test-gc-rijndael.c: Likewise.
9321         * tests/test-gc-sha1.c: Likewise.
9322         * tests/test-gc.c: Likewise.
9323         * tests/test-gethostname.c: Likewise.
9324         * tests/test-gettimeofday.c: Likewise.
9325         * tests/test-hash.c: Likewise.
9326         * tests/test-hmac-md5.c: Likewise.
9327         * tests/test-hmac-sha1.c: Likewise.
9328         * tests/test-md2.c: Likewise.
9329         * tests/test-md4.c: Likewise.
9330         * tests/test-md5.c: Likewise.
9331         * tests/test-memchr.c: Likewise.
9332         * tests/test-memchr2.c: Likewise.
9333         * tests/test-memcmp.c: Likewise.
9334         * tests/test-memmem.c: Likewise.
9335         * tests/test-memrchr.c: Likewise.
9336         * tests/test-rawmemchr.c: Likewise.
9337         * tests/test-read-file.c: Likewise.
9338         * tests/test-rijndael.c: Likewise.
9339         * tests/test-sockets.c: Likewise.
9340         * tests/test-strchrnul.c: Likewise.
9341         * tests/test-strstr.c: Likewise.
9342         * tests/test-strtod.c: Likewise.
9343         * build-aux/ncftpput-ftp: Likewise.
9344
9345 2010-01-26  Eric Blake  <ebb9@byu.net>
9346
9347         ignore-value: update recommended header name
9348         * modules/ignore-value (Include): Only use <> for headers that
9349         exist in glibc.
9350
9351 2010-01-26  Jim Meyering  <meyering@redhat.com>
9352
9353         test-userspec.c: avoid compiler warnings
9354         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
9355         and "initialization discards qualifiers..." warnings.
9356         Put the first "uid" in its own scope, and make char* members "const".
9357
9358 2010-01-25  Bruno Haible  <bruno@clisp.org>
9359
9360         gnulib-tool: Make warning diagnostics consistent.
9361         * gnulib-tool (func_warning): New function.
9362         Use it everywhere where gnulib-tool produces output to stderr and it is
9363         not a fatal error.
9364
9365 2010-01-25  Bruno Haible  <bruno@clisp.org>
9366
9367         Fix test dependencies.
9368         * modules/xstrtol-tests (Depends-on): Add inttypes.
9369         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
9370
9371 2010-01-25 Pádraig Brady <P@draigBrady.com>
9372
9373         syntax-check: detect incorrect boolean macro values in config.h
9374         * modules/maintainer-makefile (configure.ac): Parameterize the location
9375         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
9376         The logic is from Eric Blake and the location indicated by Jim Meyering.
9377         Note the more natural CONFIG_HEADER name is prohibited by automake
9378         for backwards compatibility reasons.
9379         * top/maint.mk (sc_Wundef_boolean): New rule.
9380
9381 2010-01-25  Jim Meyering  <meyering@redhat.com>
9382
9383         bootstrap: detect MacOS 10.6's shasum, too
9384         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
9385         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
9386
9387 2010-01-23  Jim Meyering  <meyering@redhat.com>
9388
9389         xstrtoll: new module
9390         * modules/xstrtoll: New file.
9391         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
9392         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
9393         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
9394         ./configure fails if you use this module and lack "long long".
9395         * modules/xstrtoll-tests: New module.
9396         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
9397         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
9398         new init.sh-based test framework.
9399
9400 2010-01-24  Bruno Haible  <bruno@clisp.org>
9401
9402         Tests for module 'yn'.
9403         * modules/yn-tests: New file.
9404         * tests/test-yn.c: New file.
9405
9406         Tests for module 'y1'.
9407         * modules/y1-tests: New file.
9408         * tests/test-y1.c: New file.
9409
9410         Tests for module 'y0'.
9411         * modules/y0-tests: New file.
9412         * tests/test-y0.c: New file.
9413
9414         Tests for module 'tanh'.
9415         * modules/tanh-tests: New file.
9416         * tests/test-tanh.c: New file.
9417
9418         Tests for module 'tan'.
9419         * modules/tan-tests: New file.
9420         * tests/test-tan.c: New file.
9421
9422         Tests for module 'sqrt'.
9423         * modules/sqrt-tests: New file.
9424         * tests/test-sqrt.c: New file.
9425
9426         Tests for module 'sinh'.
9427         * modules/sinh-tests: New file.
9428         * tests/test-sinh.c: New file.
9429
9430         Tests for module 'sin'.
9431         * modules/sin-tests: New file.
9432         * tests/test-sin.c: New file.
9433
9434         Tests for module 'rint'.
9435         * modules/rint-tests: New file.
9436         * tests/test-rint.c: New file.
9437
9438         Tests for module 'remainder'.
9439         * modules/remainder-tests: New file.
9440         * tests/test-remainder.c: New file.
9441
9442         Tests for module 'pow'.
9443         * modules/pow-tests: New file.
9444         * tests/test-pow.c: New file.
9445
9446         Tests for module 'nextafter'.
9447         * modules/nextafter-tests: New file.
9448         * tests/test-nextafter.c: New file.
9449
9450         Tests for module 'modf'.
9451         * modules/modf-tests: New file.
9452         * tests/test-modf.c: New file.
9453
9454         Tests for module 'logb'.
9455         * modules/logb-tests: New file.
9456         * tests/test-logb.c: New file.
9457
9458         Tests for module 'log1p'.
9459         * modules/log1p-tests: New file.
9460         * tests/test-log1p.c: New file.
9461
9462         Tests for module 'log10'.
9463         * modules/log10-tests: New file.
9464         * tests/test-log10.c: New file.
9465
9466         Tests for module 'log'.
9467         * modules/log-tests: New file.
9468         * tests/test-log.c: New file.
9469
9470         Tests for module 'lgamma'.
9471         * modules/lgamma-tests: New file.
9472         * tests/test-lgamma.c: New file.
9473
9474         Tests for module 'ldexp'.
9475         * modules/ldexp-tests: New file.
9476         * tests/test-ldexp.c: New file.
9477
9478         Tests for module 'jn'.
9479         * modules/jn-tests: New file.
9480         * tests/test-jn.c: New file.
9481
9482         Tests for module 'j1'.
9483         * modules/j1-tests: New file.
9484         * tests/test-j1.c: New file.
9485
9486         Tests for module 'j0'.
9487         * modules/j0-tests: New file.
9488         * tests/test-j0.c: New file.
9489
9490         Tests for module 'hypot'.
9491         * modules/hypot-tests: New file.
9492         * tests/test-hypot.c: New file.
9493
9494         Tests for module 'fmod'.
9495         * modules/fmod-tests: New file.
9496         * tests/test-fmod.c: New file.
9497
9498         Tests for module 'fabs'.
9499         * modules/fabs-tests: New file.
9500         * tests/test-fabs.c: New file.
9501
9502         Tests for module 'exp'.
9503         * modules/exp-tests: New file.
9504         * tests/test-exp.c: New file.
9505
9506         Tests for module 'erfc'.
9507         * modules/erfc-tests: New file.
9508         * tests/test-erfc.c: New file.
9509
9510         Tests for module 'erf'.
9511         * modules/erf-tests: New file.
9512         * tests/test-erf.c: New file.
9513
9514         Tests for module 'cosh'.
9515         * modules/cosh-tests: New file.
9516         * tests/test-cosh.c: New file.
9517
9518         Tests for module 'cos'.
9519         * modules/cos-tests: New file.
9520         * tests/test-cos.c: New file.
9521
9522         Tests for module 'copysign'.
9523         * modules/copysign-tests: New file.
9524         * tests/test-copysign.c: New file.
9525
9526         Tests for module 'cbrt'.
9527         * modules/cbrt-tests: New file.
9528         * tests/test-cbrt.c: New file.
9529
9530         Tests for module 'atan2'.
9531         * modules/atan2-tests: New file.
9532         * tests/test-atan2.c: New file.
9533
9534         Tests for module 'atan'.
9535         * modules/atan-tests: New file.
9536         * tests/test-atan.c: New file.
9537
9538         Tests for module 'asin'.
9539         * modules/asin-tests: New file.
9540         * tests/test-asin.c: New file.
9541
9542         Tests for module 'acos'.
9543         * modules/acos-tests: New file.
9544         * tests/test-acos.c: New file.
9545
9546 2010-01-24  Bruno Haible  <bruno@clisp.org>
9547
9548         Fix tests for common <math.h> functions.
9549         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
9550         code snippet that references the function pointer, rather than merely
9551         calling the function. Substitute the FUNC_LIBM variable.
9552         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
9553         * modules/acos (configure.ac): Likewise.
9554         * modules/asin (configure.ac): Likewise.
9555         * modules/atan (configure.ac): Likewise.
9556         * modules/atan2 (configure.ac): Likewise.
9557         * modules/cbrt (configure.ac): Likewise.
9558         * modules/copysign (configure.ac): Likewise.
9559         * modules/cos (configure.ac): Likewise.
9560         * modules/cosh (configure.ac): Likewise.
9561         * modules/erf (configure.ac): Likewise.
9562         * modules/erfc (configure.ac): Likewise.
9563         * modules/exp (configure.ac): Likewise.
9564         * modules/fabs (configure.ac): Likewise.
9565         * modules/fmod (configure.ac): Likewise.
9566         * modules/hypot (configure.ac): Likewise.
9567         * modules/j0 (configure.ac): Likewise.
9568         * modules/j1 (configure.ac): Likewise.
9569         * modules/jn (configure.ac): Likewise.
9570         * modules/ldexp (configure.ac): Likewise.
9571         * modules/lgamma (configure.ac): Likewise.
9572         * modules/log (configure.ac): Likewise.
9573         * modules/log10 (configure.ac): Likewise.
9574         * modules/log1p (configure.ac): Likewise.
9575         * modules/logb (configure.ac): Likewise.
9576         * modules/modf (configure.ac): Likewise.
9577         * modules/nextafter (configure.ac): Likewise.
9578         * modules/pow (configure.ac): Likewise.
9579         * modules/remainder (configure.ac): Likewise.
9580         * modules/rint (configure.ac): Likewise.
9581         * modules/sin (configure.ac): Likewise.
9582         * modules/sinh (configure.ac): Likewise.
9583         * modules/tan (configure.ac): Likewise.
9584         * modules/tanh (configure.ac): Likewise.
9585         * modules/y0 (configure.ac): Likewise.
9586         * modules/y1 (configure.ac): Likewise.
9587         * modules/yn (configure.ac): Likewise.
9588
9589 2010-01-24  Bruno Haible  <bruno@clisp.org>
9590
9591         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
9592         * tests/test-acosl.c (x): New variable.
9593         (main): Store argument in x and fetch it from x.
9594         * tests/test-asinl.c (x): New variable.
9595         (main): Store argument in x and fetch it from x.
9596         * tests/test-atanl.c (x): New variable.
9597         (main): Store argument in x and fetch it from x.
9598         * tests/test-cosl.c (x): New variable.
9599         (main): Store argument in x and fetch it from x.
9600         * tests/test-expl.c (x): New variable.
9601         (main): Store argument in x and fetch it from x.
9602         * tests/test-logl.c (x): New variable.
9603         (main): Store argument in x and fetch it from x.
9604         * tests/test-sinl.c (x): New variable.
9605         (main): Store argument in x and fetch it from x.
9606         * tests/test-sqrtl.c (x): New variable.
9607         (main): Store argument in x and fetch it from x.
9608         * tests/test-tanl.c (x): New variable.
9609         (main): Store argument in x and fetch it from x.
9610
9611 2010-01-24  Bruno Haible  <bruno@clisp.org>
9612
9613         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
9614         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
9615         assignments to the initial TESTS_ENVIRONMENT.
9616         * doc/gnulib.texi (Unit test modules): Document it.
9617         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
9618         TESTS_ENVIRONMENT.
9619         * modules/btowc-tests (Makefile.am): Likewise.
9620         * modules/c-stack-tests (Makefile.am): Likewise.
9621         * modules/c-strcase-tests (Makefile.am): Likewise.
9622         * modules/copy-file-tests (Makefile.am): Likewise.
9623         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9624         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9625         * modules/mbrtowc-tests (Makefile.am): Likewise.
9626         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9627         * modules/mbscasestr-tests (Makefile.am): Likewise.
9628         * modules/mbschr-tests (Makefile.am): Likewise.
9629         * modules/mbscspn-tests (Makefile.am): Likewise.
9630         * modules/mbsinit-tests (Makefile.am): Likewise.
9631         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9632         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9633         * modules/mbspbrk-tests (Makefile.am): Likewise.
9634         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9635         * modules/mbsrchr-tests (Makefile.am): Likewise.
9636         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9637         * modules/mbsspn-tests (Makefile.am): Likewise.
9638         * modules/mbsstr-tests (Makefile.am): Likewise.
9639         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9640         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9641         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9642         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9643         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9644         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9645         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9646         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9647         * modules/wcrtomb-tests (Makefile.am): Likewise.
9648         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9649         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9650         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
9651         assignments from TESTS_ENVIRONMENT.
9652         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
9653         augmentation.
9654         * modules/argp-version-etc-tests (Makefile.am): Likewise.
9655         * modules/atexit-tests (Makefile.am): Likewise.
9656         * modules/binary-io-tests (Makefile.am): Likewise.
9657         * modules/closein-tests (Makefile.am): Likewise.
9658         * modules/dprintf-posix-tests (Makefile.am): Likewise.
9659         * modules/exclude-tests (Makefile.am): Likewise.
9660         * modules/fflush-tests (Makefile.am): Likewise.
9661         * modules/fpending-tests (Makefile.am): Likewise.
9662         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9663         * modules/freadahead-tests (Makefile.am): Likewise.
9664         * modules/freadptr-tests (Makefile.am): Likewise.
9665         * modules/freadseek-tests (Makefile.am): Likewise.
9666         * modules/fseek-tests (Makefile.am): Likewise.
9667         * modules/fseeko-tests (Makefile.am): Likewise.
9668         * modules/ftell-tests (Makefile.am): Likewise.
9669         * modules/ftello-tests (Makefile.am): Likewise.
9670         * modules/idpriv-drop-tests (Makefile.am): Likewise.
9671         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
9672         * modules/lseek-tests (Makefile.am): Likewise.
9673         * modules/parse-duration-tests (Makefile.am): Likewise.
9674         * modules/perror-tests (Makefile.am): Likewise.
9675         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
9676         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
9677         * modules/pipe-tests (Makefile.am): Likewise.
9678         * modules/pread-tests (Makefile.am): Likewise.
9679         * modules/printf-posix-tests (Makefile.am): Likewise.
9680         * modules/select-tests (Makefile.am): Likewise.
9681         * modules/sigpipe-tests (Makefile.am): Likewise.
9682         * modules/tsearch-tests (Makefile.am): Likewise.
9683         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9684         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9685         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9686         * modules/uniwidth/width-tests (Makefile.am): Likewise.
9687         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
9688         * modules/version-etc-tests (Makefile.am): Likewise.
9689         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9690         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9691         * modules/xalloc-die-tests (Makefile.am): Likewise.
9692         * modules/xprintf-posix-tests (Makefile.am): Likewise.
9693         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9694         * modules/xstrtol-tests (Makefile.am): Likewise.
9695         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9696         * modules/yesno-tests (Makefile.am): Likewise.
9697         Suggested by Jim Meyering.
9698
9699 2010-01-24  Bruno Haible  <bruno@clisp.org>
9700
9701         More documentation.
9702         * doc/gnulib.texi (Writing modules): New chapter.
9703         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
9704         the new chapter.
9705
9706 2010-01-24  Jim Meyering  <meyering@redhat.com>
9707
9708         maint.mk: do not prepend "./" after filtering
9709         * top/maint.mk (_prepend_srcdir_prefix): New variable
9710         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
9711         "./" when $(srcdir) is ".".
9712
9713         define STREQ(a,b) consistently, removing useless parentheses
9714         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
9715         since the only risk is that "a" or "b" contains an unparenthesized
9716         comma, but if either did that, STREQ would have 3 or more arguments.
9717         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
9718         * lib/fts.c (STREQ): Remove unnecessary parentheses.
9719         * lib/hash-triple.c (STREQ): Likewise.
9720         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
9721         * lib/getugroups.c (STREQ): Likewise.
9722
9723 2010-01-23  Jim Meyering  <meyering@redhat.com>
9724
9725         maint.mk: fix syntax-check in a non-srcdir build directory
9726         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
9727         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
9728
9729 2010-01-22  Jim Meyering  <meyering@redhat.com>
9730
9731         userspec: add unit tests
9732         * tests/test-userspec.c: New file.
9733         * modules/userspec-tests: Likewise.
9734
9735 2010-01-21  Jim Meyering  <meyering@redhat.com>
9736
9737         maint.mk: handle source file names containing "." robustly
9738         * top/maint.mk (_dot_escaped_srcdir): Define.
9739         (VC_LIST): Use it in LHS of sed substitution.
9740
9741 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
9742
9743         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
9744         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
9745         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
9746         from a non-srcdir build.
9747
9748 2010-01-20  Eric Blake  <ebb9@byu.net>
9749
9750         warn-on-use: use instead of link-warning
9751         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
9752         * modules/unistd (Depends-on, Makefile.am): Likewise.
9753         * modules/arpa_inet (Depends-on): Replace link-warning with
9754         warn-on-use.
9755         (Makefile.am): Update rules accordingly.
9756         * modules/ctype (Depends-on, Makefile.am): Likewise.
9757         * modules/dirent (Depends-on, Makefile.am): Likewise.
9758         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
9759         * modules/inttypes (Depends-on, Makefile.am): Likewise.
9760         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9761         * modules/locale (Depends-on, Makefile.am): Likewise.
9762         * modules/math (Depends-on, Makefile.am): Likewise.
9763         * modules/search (Depends-on, Makefile.am): Likewise.
9764         * modules/signal (Depends-on, Makefile.am): Likewise.
9765         * modules/spawn (Depends-on, Makefile.am): Likewise.
9766         * modules/stdlib (Depends-on, Makefile.am): Likewise.
9767         * modules/string (Depends-on, Makefile.am): Likewise.
9768         * modules/strings (Depends-on, Makefile.am): Likewise.
9769         * modules/sys_file (Depends-on, Makefile.am): Likewise.
9770         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
9771         * modules/sys_select (Depends-on, Makefile.am): Likewise.
9772         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
9773         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
9774         * modules/sys_times (Depends-on, Makefile.am): Likewise.
9775         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9776         * modules/wchar (Depends-on, Makefile.am): Likewise.
9777         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
9778         should be poisoned.
9779         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
9780         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
9781         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
9782         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9783         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9784         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9785         * m4/math_h.m4 (gl_MATH_H): Likewise.
9786         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9787         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9788         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9789         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9790         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9791         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9792         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9793         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
9794         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9795         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9796         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9797         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9798         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9799         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9800         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9801         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9802         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
9803         GL_LINK_WARNING.
9804         * lib/ctype.in.h: Likewise.
9805         * lib/dirent.in.h: Likewise.
9806         * lib/fcntl.in.h: Likewise.
9807         * lib/inttypes.in.h: Likewise.
9808         * lib/langinfo.in.h: Likewise.
9809         * lib/locale.in.h: Likewise.
9810         * lib/math.in.h: Likewise.
9811         * lib/search.in.h: Likewise.
9812         * lib/signal.in.h: Likewise.
9813         * lib/spawn.in.h: Likewise.
9814         * lib/stdio.in.h: Likewise.
9815         * lib/stdlib.in.h: Likewise.
9816         * lib/string.in.h: Likewise.
9817         * lib/strings.in.h: Likewise.
9818         * lib/sys_file.in.h: Likewise.
9819         * lib/sys_ioctl.in.h: Likewise.
9820         * lib/sys_select.in.h: Likewise.
9821         * lib/sys_socket.in.h: Likewise.
9822         * lib/sys_stat.in.h: Likewise.
9823         * lib/sys_times.in.h: Likewise.
9824         * lib/sys_utsname.in.h: Likewise.
9825         * lib/unistd.in.h: Likewise.
9826         * lib/wchar.in.h: Likewise.
9827
9828 2010-01-20  Bruno Haible  <bruno@clisp.org>
9829
9830         Avoid duplicate -lm.
9831         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
9832         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
9833         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
9834         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
9835         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
9836         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
9837         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
9838         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
9839         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
9840         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
9841         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
9842         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9843         Reported by Paolo Bonzini.
9844
9845 2010-01-19  Bruno Haible  <bruno@clisp.org>
9846
9847         langinfo, nl_langinfo: Relicense under LGPLv2+.
9848         * modules/langinfo (License): Change to LGPLv2+.
9849         * modules/nl_langinfo (License): Likewise.
9850         Patch by David Lutterkort <lutter@redhat.com>.
9851
9852 2010-01-19  Bruno Haible  <bruno@clisp.org>
9853
9854         Avoid compilation error with cc on OSF/1 5.1.
9855         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
9856         statement, not before.
9857         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9858
9859 2010-01-18  Bruno Haible  <bruno@clisp.org>
9860
9861         Avoid a link error due to the __printf__ symbol.
9862         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
9863         and 2.6.x.
9864         (__format__, __printf__): Remove definitions.
9865         * lib/argp-fmtstream.h: Likewise.
9866         * lib/argp.h: Likewise.
9867         * lib/error.h: Likewise.
9868         * lib/vasnprintf.h: Likewise.
9869         * lib/xprintf.h: Likewise.
9870         * lib/xvasprintf.h: Likewise.
9871         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9872
9873 2010-01-18  Bruno Haible  <bruno@clisp.org>
9874
9875         Tests for module 'tanl'.
9876         * modules/tanl-tests: New file.
9877         * tests/test-tanl.c: New file.
9878
9879         Tests for module 'sqrtl'.
9880         * modules/sqrtl-tests: New file.
9881         * tests/test-sqrtl.c: New file.
9882
9883         Tests for module 'sinl'.
9884         * modules/sinl-tests: New file.
9885         * tests/test-sinl.c: New file.
9886
9887         Tests for module 'logl'.
9888         * modules/logl-tests: New file.
9889         * tests/test-logl.c: New file.
9890
9891         Tests for module 'expl'.
9892         * modules/expl-tests: New file.
9893         * tests/test-expl.c: New file.
9894
9895         Tests for module 'cosl'.
9896         * modules/cosl-tests: New file.
9897         * tests/test-cosl.c: New file.
9898
9899         Tests for module 'atanl'.
9900         * modules/atanl-tests: New file.
9901         * tests/test-atanl.c: New file.
9902
9903         Tests for module 'asinl'.
9904         * modules/asinl-tests: New file.
9905         * tests/test-asinl.c: New file.
9906
9907         Tests for module 'acosl'.
9908         * modules/acosl-tests: New file.
9909         * tests/test-acosl.c: New file.
9910
9911         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9912         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
9913         tanl): Use the standard gnulib idiom.
9914         * lib/cosl.c: Don't include trigl.c and sincosl.c.
9915         * lib/sinl.c: Likewise.
9916         * lib/tanl.c: Don't include trigl.c.
9917         (kernel_tanl): Make static.
9918         * lib/sincosl.c: Include trigl.h first.
9919         * lib/trigl.c: Likewise.
9920         * m4/acosl.m4: New file.
9921         * m4/asinl.m4: New file.
9922         * m4/atanl.m4: New file.
9923         * m4/cosl.m4: New file.
9924         * m4/expl.m4: New file.
9925         * m4/logl.m4: New file.
9926         * m4/sinl.m4: New file.
9927         * m4/sqrtl.m4: New file.
9928         * m4/tanl.m4: New file.
9929         * m4/mathl.m4: Remove file.
9930         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
9931         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9932         Don't initialize GNULIB_MATHL.
9933         * modules/acosl: New file.
9934         * modules/asinl: New file.
9935         * modules/atanl: New file.
9936         * modules/cosl: New file.
9937         * modules/expl: New file.
9938         * modules/logl: New file.
9939         * modules/sinl: New file.
9940         * modules/sqrtl: New file.
9941         * modules/tanl: New file.
9942         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
9943         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
9944         substitute GNULIB_MATHL.
9945         * modules/mathl: Rewritten.
9946         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
9947         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
9948         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
9949         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
9950         * doc/posix-functions/expl.texi: Mention the 'expl' module.
9951         * doc/posix-functions/logl.texi: Mention the 'logl' module.
9952         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
9953         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
9954         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
9955
9956 2010-01-18  Bruno Haible  <bruno@clisp.org>
9957
9958         sqrt: Make gl_FUNC_SQRT requirable.
9959         * m4/sqrt.m4: New file.
9960         * modules/sqrt (Files): Add it.
9961         (configure.ac): Invoke gl_FUNC_SQRT.
9962
9963 2010-01-18  Bruno Haible  <bruno@clisp.org>
9964
9965         New modules for common <math.h> functions.
9966         * m4/mathfunc.m4: New file.
9967         * modules/acos: New file.
9968         * modules/asin: New file.
9969         * modules/atan: New file.
9970         * modules/atan2: New file.
9971         * modules/cbrt: New file.
9972         * modules/copysign: New file.
9973         * modules/cos: New file.
9974         * modules/cosh: New file.
9975         * modules/erf: New file.
9976         * modules/erfc: New file.
9977         * modules/exp: New file.
9978         * modules/fabs: New file.
9979         * modules/fmod: New file.
9980         * modules/hypot: New file.
9981         * modules/j0: New file.
9982         * modules/j1: New file.
9983         * modules/jn: New file.
9984         * modules/ldexp: New file.
9985         * modules/lgamma: New file.
9986         * modules/log: New file.
9987         * modules/log10: New file.
9988         * modules/log1p: New file.
9989         * modules/logb: New file.
9990         * modules/modf: New file.
9991         * modules/nextafter: New file.
9992         * modules/pow: New file.
9993         * modules/remainder: New file.
9994         * modules/rint: New file.
9995         * modules/sin: New file.
9996         * modules/sinh: New file.
9997         * modules/sqrt: New file.
9998         * modules/tan: New file.
9999         * modules/tanh: New file.
10000         * modules/y0: New file.
10001         * modules/y1: New file.
10002         * modules/yn: New file.
10003         * doc/posix-functions/acos.texi: Mention the 'acos' module.
10004         * doc/posix-functions/asin.texi: Mention the 'asin' module.
10005         * doc/posix-functions/atan.texi: Mention the 'atan' module.
10006         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
10007         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
10008         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
10009         * doc/posix-functions/cos.texi: Mention the 'cos' module.
10010         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
10011         * doc/posix-functions/erf.texi: Mention the 'erf' module.
10012         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
10013         * doc/posix-functions/exp.texi: Mention the 'exp' module.
10014         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
10015         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
10016         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
10017         * doc/posix-functions/j0.texi: Mention the 'j0' module.
10018         * doc/posix-functions/j1.texi: Mention the 'j1' module.
10019         * doc/posix-functions/jn.texi: Mention the 'jn' module.
10020         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
10021         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
10022         * doc/posix-functions/log.texi: Mention the 'log' module.
10023         * doc/posix-functions/log10.texi: Mention the 'log10' module.
10024         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
10025         * doc/posix-functions/logb.texi: Mention the 'logb' module.
10026         * doc/posix-functions/modf.texi: Mention the 'modf' module.
10027         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
10028         * doc/posix-functions/pow.texi: Mention the 'pow' module.
10029         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
10030         * doc/posix-functions/rint.texi: Mention the 'rint' module.
10031         * doc/posix-functions/sin.texi: Mention the 'sin' module.
10032         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
10033         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
10034         * doc/posix-functions/tan.texi: Mention the 'tan' module.
10035         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
10036         * doc/posix-functions/y0.texi: Mention the 'y0' module.
10037         * doc/posix-functions/y1.texi: Mention the 'y1' module.
10038         * doc/posix-functions/yn.texi: Mention the 'yn' module.
10039
10040 2010-01-18  Jim Meyering  <meyering@redhat.com>
10041
10042         ignore-value: relax license to LGPLv2+
10043         * modules/ignore-value (License): Relax to LGPLv2+.
10044
10045         getdate: don't leak when TZ contains two or more '"'s
10046         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
10047         double quote in TZ after the first one.
10048
10049         readtokens: do not leak internal token_lengths buffer
10050         * lib/readtokens.c (readtokens): Free the local, lengths,
10051         when the supplied "token_lengths" parameter is NULL.
10052
10053 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10054
10055         Fix a couple of missing LIBTHREAD link failures on AIX.
10056         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
10057         $(LIBTHREAD).
10058         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
10059
10060         Link test-poll against INET_PTON_LIB.
10061         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
10062         for inet_pton on Solaris 10.
10063
10064 2010-01-17  Bruno Haible  <bruno@clisp.org>
10065
10066         unistdio/*-sprintf: Fix typo in module description.
10067         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
10068         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
10069         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
10070         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
10071         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
10072         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
10073         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
10074         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10075
10076 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10077
10078         gnulib-tool: fix filelist for AIX, HP-UX ksh.
10079         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
10080         variables in shell case patterns, for AIX and HP-UX ksh.
10081
10082         Split large sed scripts, for HP-UX sed.
10083         * modules/stdio: Split sed scripts around 50 sed commands,
10084         to avoid HP-UX limit of 99 commands, in the near future.
10085         * modules/string: Likewise.
10086         * modules/unistd: Likewise.
10087
10088         gnulib-tool: avoid writing in the current directory.
10089         * gnulib-tool (func_emit_lib_Makefile_am)
10090         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
10091         not in the current directory, so concurrent gnulib-tool
10092         instances do not interfere.
10093
10094 2010-01-16  Jim Meyering  <meyering@redhat.com>
10095
10096         doc: update users.txt
10097         * users.txt: Add grep.
10098         (diffutils, gzip): Update URLs.
10099
10100 2010-01-12  Bruno Haible  <bruno@clisp.org>
10101
10102         posix_spawn: Avoid test failure on Cygwin.
10103         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
10104         characters.
10105         Reported by Simon Josefsson.
10106
10107 2010-01-12  Bruno Haible  <bruno@clisp.org>
10108
10109         * tests/test-cond.c (main): When skipping the test, show the reason.
10110
10111 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10112
10113         * lib/striconv.c (str_cd_iconv): Avoid if before free.
10114
10115 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10116
10117         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
10118         VC_LIST_ALWAYS_EXCLUDE_REGEX.
10119
10120 2010-01-12  Eric Blake  <ebb9@byu.net>
10121
10122         build: guarantee AS_VAR_IF
10123         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
10124         (gl_AS_VAR_IF): Move...
10125         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
10126         Reported by Simon Josefsson.
10127
10128 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10129
10130         * lib/stdio.in.h: Fix typo.
10131
10132 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10133
10134         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
10135         libgpg-error.
10136
10137 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10138
10139         * tests/test-xalloc-die.sh: Use $EXEEXT.
10140
10141 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10142             Bruno Haible  <bruno@clisp.org>
10143
10144         getlogin, getlogin_r: Avoid test failure.
10145         * tests/test-getlogin.c: Include <stdio.h>.
10146         (main): Skip the test when the function fails because stdin is not a
10147         tty.
10148         * tests/test-getlogin_r.c: Include <stdio.h>.
10149         (main): Skip the test when the function fails because stdin is not a
10150         tty.
10151
10152 2010-01-11  Eric Blake  <ebb9@byu.net>
10153
10154         tests: avoid more large file warnings
10155         * tests/test-fflush.c: Avoid warning about ftell use.
10156         * tests/test-fseek.c: Avoid warning about fseek use.
10157
10158 2010-01-10  Bruno Haible  <bruno@clisp.org>
10159
10160         nproc: Work better on Linux when /proc and /sys are not mounted.
10161         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
10162         as lower bound when, on glibc/Linux systems,
10163         sysconf (_SC_NPROCESSORS_CONF) returns 1.
10164         Suggested by Pádraig Brady <P@draigbrady.com>.
10165         Reported by Dmitry V. Levin <ldv@altlinux.org>.
10166
10167         nproc: Refactor.
10168         * lib/nproc.c (num_processors_via_affinity_mask): New function,
10169         extracted from num_processors.
10170         (num_processors): Call it.
10171
10172 2010-01-11  Jim Meyering  <meyering@redhat.com>
10173
10174         utimecmp: avoid new warning from upcoming gcc-4.5.0
10175         * lib/utimecmp.c (BILLION): Define using #define rather than an
10176         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
10177
10178 2010-01-11  Eric Blake  <ebb9@byu.net>
10179
10180         math: add portability warnings for classification macros
10181         * modules/math (Depends-on): Add warn-on-use.
10182         (Makefile.am): Provide new substitutions.
10183         * m4/math_h.m4 (gl_MATH_H): Require inline.
10184         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
10185         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
10186         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
10187         implement warnings.
10188
10189         unistd: warn on use of environ without module
10190         * modules/unistd (Depends-on): Add warn-on-use.
10191         (Makefile.am): Provide new substitutions.
10192         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
10193         * lib/unistd.in.h (environ): Wrap with a warning helper function.
10194
10195         stdio: warn on suspicious uses
10196         * modules/stdio (Depends-on): Add warn-on-use.
10197         (Makefile.am): Provide new substitutions.
10198         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
10199         fseeko.
10200         * lib/stdio.in.h (gets): Always warn on use.
10201         (fseek, ftell): Adjust when warnings are issued, and honor
10202         _GL_NO_LARGE_FILES as a way to silence the warning.
10203         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
10204         any warning about large file offsets.
10205         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
10206         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
10207         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
10208         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
10209         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
10210         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
10211         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
10212         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
10213
10214         warn-on-use: new module
10215         * modules/warn-on-use: New file.
10216         * build-aux/warn-on-use.h: Likewise.
10217         * m4/warn-on-use.m4: Likewise.
10218         * MODULES.html.sh (Support for building): Mention it.
10219
10220 2010-01-10  Bruno Haible  <bruno@clisp.org>
10221
10222         Tests for module 'unistr/u32-strdup'.
10223         * modules/unistr/u32-strdup-tests: New file.
10224         * tests/unistr/test-u32-strdup.c: New file.
10225
10226         Tests for module 'unistr/u16-strdup'.
10227         * modules/unistr/u16-strdup-tests: New file.
10228         * tests/unistr/test-u16-strdup.c: New file.
10229
10230         Tests for module 'unistr/u8-strdup'.
10231         * modules/unistr/u8-strdup-tests: New file.
10232         * tests/unistr/test-u8-strdup.c: New file.
10233         * tests/unistr/test-strdup.h: New file.
10234
10235         Tests for module 'unistr/u32-strncmp'.
10236         * modules/unistr/u32-strncmp-tests: New file.
10237         * tests/unistr/test-u32-strncmp.c: New file.
10238
10239         Tests for module 'unistr/u16-strncmp'.
10240         * modules/unistr/u16-strncmp-tests: New file.
10241         * tests/unistr/test-u16-strncmp.c: New file.
10242
10243         Tests for module 'unistr/u8-strncmp'.
10244         * modules/unistr/u8-strncmp-tests: New file.
10245         * tests/unistr/test-u8-strncmp.c: New file.
10246         * tests/unistr/test-strncmp.h: New file.
10247
10248         Tests for module 'unistr/u32-strcoll'.
10249         * modules/unistr/u32-strcoll-tests: New file.
10250         * tests/unistr/test-u32-strcoll.c: New file.
10251
10252         Tests for module 'unistr/u16-strcoll'.
10253         * modules/unistr/u16-strcoll-tests: New file.
10254         * tests/unistr/test-u16-strcoll.c: New file.
10255
10256         Tests for module 'unistr/u8-strcoll'.
10257         * modules/unistr/u8-strcoll-tests: New file.
10258         * tests/unistr/test-u8-strcoll.c: New file.
10259
10260         Tests for module 'unistr/u32-strcmp'.
10261         * modules/unistr/u32-strcmp-tests: New file.
10262         * tests/unistr/test-u32-strcmp.c: New file.
10263         * tests/unistr/test-u32-strcmp.h: New file.
10264
10265         Tests for module 'unistr/u16-strcmp'.
10266         * modules/unistr/u16-strcmp-tests: New file.
10267         * tests/unistr/test-u16-strcmp.c: New file.
10268         * tests/unistr/test-u16-strcmp.h: New file.
10269
10270         Tests for module 'unistr/u8-strcmp'.
10271         * modules/unistr/u8-strcmp-tests: New file.
10272         * tests/unistr/test-u8-strcmp.c: New file.
10273         * tests/unistr/test-u8-strcmp.h: New file.
10274         * tests/unistr/test-strcmp.h: New file.
10275
10276         Tests for module 'unistr/u32-strncat'.
10277         * modules/unistr/u32-strncat-tests: New file.
10278         * tests/unistr/test-u32-strncat.c: New file.
10279
10280         Tests for module 'unistr/u16-strncat'.
10281         * modules/unistr/u16-strncat-tests: New file.
10282         * tests/unistr/test-u16-strncat.c: New file.
10283
10284         Tests for module 'unistr/u8-strncat'.
10285         * modules/unistr/u8-strncat-tests: New file.
10286         * tests/unistr/test-u8-strncat.c: New file.
10287         * tests/unistr/test-strncat.h: New file.
10288
10289         Tests for module 'unistr/u32-strcat'.
10290         * modules/unistr/u32-strcat-tests: New file.
10291         * tests/unistr/test-u32-strcat.c: New file.
10292
10293         Tests for module 'unistr/u16-strcat'.
10294         * modules/unistr/u16-strcat-tests: New file.
10295         * tests/unistr/test-u16-strcat.c: New file.
10296
10297         Tests for module 'unistr/u8-strcat'.
10298         * modules/unistr/u8-strcat-tests: New file.
10299         * tests/unistr/test-u8-strcat.c: New file.
10300         * tests/unistr/test-strcat.h: New file.
10301
10302         Tests for module 'unistr/u32-stpncpy'.
10303         * modules/unistr/u32-stpncpy-tests: New file.
10304         * tests/unistr/test-u32-stpncpy.c: New file.
10305
10306         Tests for module 'unistr/u16-stpncpy'.
10307         * modules/unistr/u16-stpncpy-tests: New file.
10308         * tests/unistr/test-u16-stpncpy.c: New file.
10309
10310         Tests for module 'unistr/u8-stpncpy'.
10311         * modules/unistr/u8-stpncpy-tests: New file.
10312         * tests/unistr/test-u8-stpncpy.c: New file.
10313         * tests/unistr/test-stpncpy.h: New file.
10314
10315         Tests for module 'unistr/u32-strncpy'.
10316         * modules/unistr/u32-strncpy-tests: New file.
10317         * tests/unistr/test-u32-strncpy.c: New file.
10318
10319         Tests for module 'unistr/u16-strncpy'.
10320         * modules/unistr/u16-strncpy-tests: New file.
10321         * tests/unistr/test-u16-strncpy.c: New file.
10322
10323         Tests for module 'unistr/u8-strncpy'.
10324         * modules/unistr/u8-strncpy-tests: New file.
10325         * tests/unistr/test-u8-strncpy.c: New file.
10326         * tests/unistr/test-strncpy.h: New file.
10327
10328         Tests for module 'unistr/u32-stpcpy'.
10329         * modules/unistr/u32-stpcpy-tests: New file.
10330         * tests/unistr/test-u32-stpcpy.c: New file.
10331
10332         Tests for module 'unistr/u16-stpcpy'.
10333         * modules/unistr/u16-stpcpy-tests: New file.
10334         * tests/unistr/test-u16-stpcpy.c: New file.
10335
10336         Tests for module 'unistr/u8-stpcpy'.
10337         * modules/unistr/u8-stpcpy-tests: New file.
10338         * tests/unistr/test-u8-stpcpy.c: New file.
10339         * tests/unistr/test-stpcpy.h: New file.
10340
10341         Tests for module 'unistr/u32-strcpy'.
10342         * modules/unistr/u32-strcpy-tests: New file.
10343         * tests/unistr/test-u32-strcpy.c: New file.
10344
10345         Tests for module 'unistr/u16-strcpy'.
10346         * modules/unistr/u16-strcpy-tests: New file.
10347         * tests/unistr/test-u16-strcpy.c: New file.
10348
10349         Tests for module 'unistr/u8-strcpy'.
10350         * modules/unistr/u8-strcpy-tests: New file.
10351         * tests/unistr/test-u8-strcpy.c: New file.
10352         * tests/unistr/test-strcpy.h: New file.
10353
10354         Tests for module 'unistr/u32-strnlen'.
10355         * modules/unistr/u32-strnlen-tests: New file.
10356         * tests/unistr/test-u32-strnlen.c: New file.
10357
10358         Tests for module 'unistr/u16-strnlen'.
10359         * modules/unistr/u16-strnlen-tests: New file.
10360         * tests/unistr/test-u16-strnlen.c: New file.
10361
10362         Tests for module 'unistr/u8-strnlen'.
10363         * modules/unistr/u8-strnlen-tests: New file.
10364         * tests/unistr/test-u8-strnlen.c: New file.
10365         * tests/unistr/test-strnlen.h: New file.
10366
10367         Tests for module 'unistr/u32-strlen'.
10368         * modules/unistr/u32-strlen-tests: New file.
10369         * tests/unistr/test-u32-strlen.c: New file.
10370
10371         Tests for module 'unistr/u16-strlen'.
10372         * modules/unistr/u16-strlen-tests: New file.
10373         * tests/unistr/test-u16-strlen.c: New file.
10374
10375         Tests for module 'unistr/u8-strlen'.
10376         * modules/unistr/u8-strlen-tests: New file.
10377         * tests/unistr/test-u8-strlen.c: New file.
10378
10379         Tests for module 'unistr/u32-prev'.
10380         * modules/unistr/u32-prev-tests: New file.
10381         * tests/unistr/test-u32-prev.c: New file.
10382
10383         Tests for module 'unistr/u16-prev'.
10384         * modules/unistr/u16-prev-tests: New file.
10385         * tests/unistr/test-u16-prev.c: New file.
10386
10387         Tests for module 'unistr/u8-prev'.
10388         * modules/unistr/u8-prev-tests: New file.
10389         * tests/unistr/test-u8-prev.c: New file.
10390
10391         Tests for module 'unistr/u32-next'.
10392         * modules/unistr/u32-next-tests: New file.
10393         * tests/unistr/test-u32-next.c: New file.
10394
10395         Tests for module 'unistr/u16-next'.
10396         * modules/unistr/u16-next-tests: New file.
10397         * tests/unistr/test-u16-next.c: New file.
10398
10399         Tests for module 'unistr/u8-next'.
10400         * modules/unistr/u8-next-tests: New file.
10401         * tests/unistr/test-u8-next.c: New file.
10402
10403         Tests for module 'unistr/u32-strmbtouc'.
10404         * modules/unistr/u32-strmbtouc-tests: New file.
10405         * tests/unistr/test-u32-strmbtouc.c: New file.
10406
10407         Tests for module 'unistr/u16-strmbtouc'.
10408         * modules/unistr/u16-strmbtouc-tests: New file.
10409         * tests/unistr/test-u16-strmbtouc.c: New file.
10410
10411         Tests for module 'unistr/u8-strmbtouc'.
10412         * modules/unistr/u8-strmbtouc-tests: New file.
10413         * tests/unistr/test-u8-strmbtouc.c: New file.
10414
10415         Tests for module 'unistr/u32-strmblen'.
10416         * modules/unistr/u32-strmblen-tests: New file.
10417         * tests/unistr/test-u32-strmblen.c: New file.
10418
10419         Tests for module 'unistr/u16-strmblen'.
10420         * modules/unistr/u16-strmblen-tests: New file.
10421         * tests/unistr/test-u16-strmblen.c: New file.
10422
10423         Tests for module 'unistr/u8-strmblen'.
10424         * modules/unistr/u8-strmblen-tests: New file.
10425         * tests/unistr/test-u8-strmblen.c: New file.
10426
10427         Tests for module 'unistr/u32-cpy-alloc'.
10428         * modules/unistr/u32-cpy-alloc-tests: New file.
10429         * tests/unistr/test-u32-cpy-alloc.c: New file.
10430
10431         Tests for module 'unistr/u16-cpy-alloc'.
10432         * modules/unistr/u16-cpy-alloc-tests: New file.
10433         * tests/unistr/test-u16-cpy-alloc.c: New file.
10434
10435         Tests for module 'unistr/u8-cpy-alloc'.
10436         * modules/unistr/u8-cpy-alloc-tests: New file.
10437         * tests/unistr/test-u8-cpy-alloc.c: New file.
10438         * tests/unistr/test-cpy-alloc.h: New file.
10439
10440         Tests for module 'unistr/u32-mbsnlen'.
10441         * modules/unistr/u32-mbsnlen-tests: New file.
10442         * tests/unistr/test-u32-mbsnlen.c: New file.
10443
10444         Tests for module 'unistr/u16-mbsnlen'.
10445         * modules/unistr/u16-mbsnlen-tests: New file.
10446         * tests/unistr/test-u16-mbsnlen.c: New file.
10447
10448         Tests for module 'unistr/u8-mbsnlen'.
10449         * modules/unistr/u8-mbsnlen-tests: New file.
10450         * tests/unistr/test-u8-mbsnlen.c: New file.
10451
10452         Tests for module 'unistr/u32-chr'.
10453         * modules/unistr/u32-chr-tests: New file.
10454         * tests/unistr/test-u32-chr.c: New file.
10455
10456         Tests for module 'unistr/u16-chr'.
10457         * modules/unistr/u16-chr-tests: New file.
10458         * tests/unistr/test-u16-chr.c: New file.
10459
10460         Tests for module 'unistr/u8-chr'.
10461         * modules/unistr/u8-chr-tests: New file.
10462         * tests/unistr/test-u8-chr.c: New file.
10463         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
10464
10465         Tests for module 'unistr/u32-cmp2'.
10466         * modules/unistr/u32-cmp2-tests: New file.
10467         * tests/unistr/test-u32-cmp2.c: New file.
10468
10469         Tests for module 'unistr/u16-cmp2'.
10470         * modules/unistr/u16-cmp2-tests: New file.
10471         * tests/unistr/test-u16-cmp2.c: New file.
10472
10473         Tests for module 'unistr/u8-cmp2'.
10474         * modules/unistr/u8-cmp2-tests: New file.
10475         * tests/unistr/test-u8-cmp2.c: New file.
10476         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
10477
10478         Tests for module 'unistr/u32-cmp'.
10479         * modules/unistr/u32-cmp-tests: New file.
10480         * tests/unistr/test-u32-cmp.c: New file.
10481
10482         Tests for module 'unistr/u16-cmp'.
10483         * modules/unistr/u16-cmp-tests: New file.
10484         * tests/unistr/test-u16-cmp.c: New file.
10485
10486         Tests for module 'unistr/u8-cmp'.
10487         * modules/unistr/u8-cmp-tests: New file.
10488         * tests/unistr/test-u8-cmp.c: New file.
10489         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
10490
10491         Tests for module 'unistr/u32-set'.
10492         * modules/unistr/u32-set-tests: New file.
10493         * tests/unistr/test-u32-set.c: New file.
10494
10495         Tests for module 'unistr/u16-set'.
10496         * modules/unistr/u16-set-tests: New file.
10497         * tests/unistr/test-u16-set.c: New file.
10498
10499         Tests for module 'unistr/u8-set'.
10500         * modules/unistr/u8-set-tests: New file.
10501         * tests/unistr/test-u8-set.c: New file.
10502         * tests/unistr/test-set.h: New file.
10503
10504         Tests for module 'unistr/u32-move'.
10505         * modules/unistr/u32-move-tests: New file.
10506         * tests/unistr/test-u32-move.c: New file.
10507
10508         Tests for module 'unistr/u16-move'.
10509         * modules/unistr/u16-move-tests: New file.
10510         * tests/unistr/test-u16-move.c: New file.
10511
10512         Tests for module 'unistr/u8-move'.
10513         * modules/unistr/u8-move-tests: New file.
10514         * tests/unistr/test-u8-move.c: New file.
10515         * tests/unistr/test-move.h: New file.
10516
10517         Tests for module 'unistr/u32-cpy'.
10518         * modules/unistr/u32-cpy-tests: New file.
10519         * tests/unistr/test-u32-cpy.c: New file.
10520
10521         Tests for module 'unistr/u16-cpy'.
10522         * modules/unistr/u16-cpy-tests: New file.
10523         * tests/unistr/test-u16-cpy.c: New file.
10524
10525         Tests for module 'unistr/u8-cpy'.
10526         * modules/unistr/u8-cpy-tests: New file.
10527         * tests/unistr/test-u8-cpy.c: New file.
10528         * tests/unistr/test-cpy.h: New file.
10529
10530 2010-01-09  Bruno Haible  <bruno@clisp.org>
10531
10532         Tests for module 'unistr/u32-uctomb'.
10533         * modules/unistr/u32-uctomb-tests: New file.
10534         * tests/unistr/test-u32-uctomb.c: New file.
10535
10536         Tests for module 'unistr/u16-uctomb'.
10537         * modules/unistr/u16-uctomb-tests: New file.
10538         * tests/unistr/test-u16-uctomb.c: New file.
10539
10540         Tests for module 'unistr/u8-uctomb'.
10541         * modules/unistr/u8-uctomb-tests: New file.
10542         * tests/unistr/test-u8-uctomb.c: New file.
10543
10544         Tests for module 'unistr/u32-mbtoucr'.
10545         * modules/unistr/u32-mbtoucr-tests: New file.
10546         * tests/unistr/test-u32-mbtoucr.c: New file.
10547
10548         Tests for module 'unistr/u16-mbtoucr'.
10549         * modules/unistr/u16-mbtoucr-tests: New file.
10550         * tests/unistr/test-u16-mbtoucr.c: New file.
10551
10552         Tests for module 'unistr/u8-mbtoucr'.
10553         * modules/unistr/u8-mbtoucr-tests: New file.
10554         * tests/unistr/test-u8-mbtoucr.c: New file.
10555
10556         Tests for module 'unistr/u32-mbtouc'.
10557         * modules/unistr/u32-mbtouc-tests: New file.
10558         * tests/unistr/test-u32-mbtouc.c: New file.
10559
10560         Tests for module 'unistr/u16-mbtouc'.
10561         * modules/unistr/u16-mbtouc-tests: New file.
10562         * tests/unistr/test-u16-mbtouc.c: New file.
10563
10564         Tests for module 'unistr/u8-mbtouc'.
10565         * modules/unistr/u8-mbtouc-tests: New file.
10566         * tests/unistr/test-u8-mbtouc.c: New file.
10567
10568         Tests for module 'unistr/u32-mbtouc-unsafe'.
10569         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
10570         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
10571         * tests/unistr/test-u32-mbtouc.h: New file.
10572
10573         Tests for module 'unistr/u16-mbtouc-unsafe'.
10574         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
10575         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
10576         * tests/unistr/test-u16-mbtouc.h: New file.
10577
10578         Tests for module 'unistr/u8-mbtouc-unsafe'.
10579         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
10580         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
10581         * tests/unistr/test-u8-mbtouc.h: New file.
10582
10583         Tests for module 'unistr/u32-mblen'.
10584         * modules/unistr/u32-mblen-tests: New file.
10585         * tests/unistr/test-u32-mblen.c: New file.
10586
10587         Tests for module 'unistr/u16-mblen'.
10588         * modules/unistr/u16-mblen-tests: New file.
10589         * tests/unistr/test-u16-mblen.c: New file.
10590
10591         Tests for module 'unistr/u8-mblen'.
10592         * modules/unistr/u8-mblen-tests: New file.
10593         * tests/unistr/test-u8-mblen.c: New file.
10594
10595         Tests for module 'unistr/u32-to-u16'.
10596         * modules/unistr/u32-to-u16-tests: New file.
10597         * tests/unistr/test-u32-to-u16.c: New file.
10598
10599         Tests for module 'unistr/u32-to-u8'.
10600         * modules/unistr/u32-to-u8-tests: New file.
10601         * tests/unistr/test-u32-to-u8.c: New file.
10602
10603         Tests for module 'unistr/u16-to-u32'.
10604         * modules/unistr/u16-to-u32-tests: New file.
10605         * tests/unistr/test-u16-to-u32.c: New file.
10606
10607         Tests for module 'unistr/u16-to-u8'.
10608         * modules/unistr/u16-to-u8-tests: New file.
10609         * tests/unistr/test-u16-to-u8.c: New file.
10610
10611         Tests for module 'unistr/u8-to-u32'.
10612         * modules/unistr/u8-to-u32-tests: New file.
10613         * tests/unistr/test-u8-to-u32.c: New file.
10614
10615         Tests for module 'unistr/u8-to-u16'.
10616         * modules/unistr/u8-to-u16-tests: New file.
10617         * tests/unistr/test-u8-to-u16.c: New file.
10618
10619         Tests for module 'unistr/u32-check'.
10620         * modules/unistr/u32-check-tests: New file.
10621         * tests/unistr/test-u32-check.c: New file.
10622
10623         Tests for module 'unistr/u16-check'.
10624         * modules/unistr/u16-check-tests: New file.
10625         * tests/unistr/test-u16-check.c: New file.
10626
10627         Tests for module 'unistr/u8-check'.
10628         * modules/unistr/u8-check-tests: New file.
10629         * tests/unistr/test-u8-check.c: New file.
10630
10631         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
10632         (category_equals): New function.
10633         (main): Add more tests.
10634         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
10635
10636         * tests/unictype/test-bidi_byname.c (main): Add more tests.
10637
10638 2010-01-10  Bruno Haible  <bruno@clisp.org>
10639
10640         unistr/u*-strcoll: Try harder to distinguish different strings.
10641         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
10642         compare s1 and s2 to see if they are different.
10643
10644 2010-01-10  Bruno Haible  <bruno@clisp.org>
10645
10646         unistr/u*-stpncpy: Fix the return value.
10647         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
10648         description of the return value consistent with stpncpy in glibc.
10649         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
10650         written non-NUL unit.
10651
10652 2010-01-10  Bruno Haible  <bruno@clisp.org>
10653
10654         unistr/u*-next: Add missing dependencies.
10655         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
10656         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
10657         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
10658
10659 2010-01-10  Bruno Haible  <bruno@clisp.org>
10660
10661         unistr/u8-mbsnlen: Fix return value for incomplete character.
10662         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
10663         u8_mblen.
10664         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
10665         Remove unistr/u8-mblen.
10666         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
10667         u16_mblen.
10668         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
10669         Remove unistr/u16-mblen.
10670
10671 2010-01-10  Bruno Haible  <bruno@clisp.org>
10672
10673         wchar: Fix compilation error when <wchar.h> is used from coreutils.
10674         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
10675         Reported by Brian Gough <bjg@gnu.org> and
10676         Chris Clayton <chris2553@googlemail.com> via
10677         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
10678
10679 2010-01-09  Bruno Haible  <bruno@clisp.org>
10680
10681         unistr/u16-to-u32: Reject invalid input.
10682         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
10683         u16_mbtouc.
10684         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
10685         Remove unistr/u16-mbtouc.
10686
10687         unistr/u16-to-u8: Reject invalid input.
10688         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
10689         u16_mbtouc.
10690         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
10691         Remove unistr/u16-mbtouc.
10692
10693         unistr/u8-to-u32: Reject invalid input.
10694         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
10695         u8_mbtouc.
10696         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
10697         Remove unistr/u8-mbtouc.
10698
10699         unistr/u8-to-u16: Reject invalid input.
10700         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
10701         u8_mbtouc.
10702         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
10703         Remove unistr/u8-mbtouc.
10704
10705 2010-01-09  Bruno Haible  <bruno@clisp.org>
10706
10707         Tests for module 'getlogin'.
10708         * modules/getlogin-tests: New file.
10709         * tests/test-getlogin.c: New file.
10710
10711         New module 'getlogin'.
10712         * lib/unistd.in.h (getlogin): New declaration.
10713         * lib/getlogin.c: New file.
10714         * m4/getlogin.m4: New file.
10715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
10716         HAVE_GETLOGIN.
10717         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
10718         HAVE_GETLOGIN.
10719         * modules/getlogin: New file.
10720         * doc/posix-functions/getlogin.texi: Mention the new module.
10721         Reported by John W. Eaton <jwe@gnu.org>.
10722
10723 2010-01-09  Bruno Haible  <bruno@clisp.org>
10724
10725         getlogin_r: Support for native Windows.
10726         * lib/getlogin_r.c: Include <windows.h>
10727         (getlogin_r): Implement for native Windows.
10728         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
10729         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
10730         via John W. Eaton <jwe@gnu.org>.
10731
10732 2010-01-09  Bruno Haible  <bruno@clisp.org>
10733
10734         getlogin_r: Small fixes.
10735         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
10736         succeeds.
10737         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
10738         before testing whether getlogin_r is declared. No need to set
10739         HAVE_DECL_GETLOGIN_R to 1.
10740         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
10741
10742 2010-01-09  Bruno Haible  <bruno@clisp.org>
10743
10744         * lib/unistd.in.h (getlogin_r): Add comment.
10745
10746 2010-01-09  Bruno Haible  <bruno@clisp.org>
10747
10748         Tests for module 'getlogin_r'.
10749         * modules/getlogin_r-tests: New file.
10750         * tests/test-getlogin_r.c: New file.
10751
10752 2010-01-09  Jim Meyering  <meyering@redhat.com>
10753
10754         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
10755         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
10756         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
10757
10758 2010-01-08  Simon Josefsson  <simon@josefsson.org>
10759
10760         * lib/dup2.c (rpl_dup2): Improve comment.
10761
10762 2010-01-08  Eric Blake  <ebb9@byu.net>
10763
10764         maint.mk: allow packages to add makefile @@ exceptions
10765         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
10766         (sc_makefile_check): Rename...
10767         (sc_makefile_at_at_check): ...to this, and use hook.
10768
10769         dup2: work around mingw bug
10770         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
10771         Reported by Simon Josefsson.
10772
10773 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
10774
10775         glob: Fix C++ compilation.
10776         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
10777         C++.
10778
10779 2010-01-07  Bruno Haible  <bruno@clisp.org>
10780
10781         Fix indentation of wctype.in.h, broken since 2007-01-06.
10782         * lib/wctype.in.h: Fix indentation of preprocessor directives.
10783
10784 2010-01-07  Bruno Haible  <bruno@clisp.org>
10785
10786         mbslen: Avoid collision with system function.
10787         * lib/string.in.h [MirBSD]: Include <wchar.h>.
10788         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
10789         * m4/mbslen.m4: New file.
10790         * modules/mbslen (Files): Add it.
10791         (configure.ac): Invoke gl_MBSLEN.
10792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
10793         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
10794         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
10795         via Ian Beckwith <ianb@erislabs.net>.
10796
10797 2010-01-07  Bruno Haible  <bruno@clisp.org>
10798
10799         dirent: Document the last fix.
10800         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
10801
10802 2010-01-07  Bruno Haible  <bruno@clisp.org>
10803
10804         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
10805         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
10806         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
10807         va_list are defined.
10808         * doc/posix-headers/stdio.texi: Document the bug of missing types.
10809         Reported by Eric Blake.
10810
10811 2010-01-07  Bruno Haible  <bruno@clisp.org>
10812
10813         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
10814         * modules/xlist (Depends-on): Add 'list',
10815         * modules/xoset (Depends-on): Add 'oset'.
10816         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10817
10818 2010-01-07  Bruno Haible  <bruno@clisp.org>
10819
10820         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
10821         * doc/posix-functions/strncasecmp.texi: Likewise.
10822
10823 2010-01-07  Bruno Haible  <bruno@clisp.org>
10824
10825         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
10826
10827 2010-01-07  John W. Eaton  <jwe@octave.org>
10828
10829         wctype: allow C++ use
10830         * lib/wctype.in.h: Add extern "C" block for C++.
10831
10832 2010-01-06  Eric Blake  <ebb9@byu.net>
10833
10834         maint.mk: detect incorrect GFDL usage
10835         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
10836
10837 2010-01-06  Jim Meyering  <meyering@redhat.com>
10838         and Eric Blake  <ebb9@byu.net>
10839
10840         maint.mk: ignore multi-line copyright in NEWS
10841         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
10842
10843 2010-01-06  Eric Blake  <ebb9@byu.net>
10844
10845         select: add missing dependency
10846         * modules/select-tests (Depends-on): Move sockets dependency...
10847         * modules/select (Depends-on): ...here.
10848         Reported by Ian Beckwith.
10849
10850         doc: regenerate INSTALL
10851         * doc/INSTALL: Reflect recent autoconf update.
10852         * doc/INSTALL.ISO: Likewise.
10853         * doc/INSTALL.UTF-8: Likewise.
10854
10855         pread: fix compilation on glibc
10856         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
10857         Reported by Ralf Wildenhues.
10858
10859         dirent: fix test failure
10860         * lib/dirent.in.h (includes): Guarantee ino_t.
10861         Reported by Ralf Wildenhues.
10862
10863 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
10864
10865         linkat, renameat: avoid bad free
10866         * lib/at-func2.c (at_func2): Fix typo.
10867         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
10868
10869 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10870
10871         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
10872         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
10873         to avoid failure of symlink test later.
10874
10875 2010-01-06  Eric Blake  <ebb9@byu.net>
10876
10877         stdio, unistd: guarantee ssize_t
10878         * lib/unistd.in.h (includes): Ensure that types required by POSIX
10879         2008 are exposed when needed.
10880         * lib/stdio.in.h (includes): Likewise.
10881         Reported by Ralf Wildenhues.
10882
10883 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
10884
10885         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
10886         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
10887         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
10888
10889 2010-01-06  Jim Meyering  <meyering@redhat.com>
10890
10891         readtokens: this module *does* require xalloc.h
10892         It uses only functions that were omitted by the old syntax-check rule.
10893         * lib/readtokens.c: Include "xalloc.h" once again.
10894         * modules/readtokens (Depends-on): Add xalloc.
10895         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
10896
10897 2010-01-05  Eric Blake  <ebb9@byu.net>
10898
10899         maint: support 'make announcement' from a VPATH build
10900         * top/maint.mk (announcement): Look for correct NEWS file.
10901
10902 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
10903
10904         utimens (fdutimens): ignore a negative FD, per contract
10905         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
10906         when we have a valid file descriptor.  Otherwise, using a brand
10907         new glibc (with just-patched futimens that now fails with EBADF)
10908         would cause this function to fail with ENOSYS.
10909         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
10910         See also http://bugzilla.redhat.com/552320.
10911
10912 2010-01-05  Eric Blake  <ebb9@byu.net>
10913
10914         strcase: document what it provides
10915         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
10916         gnulib module.
10917         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
10918         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
10919
10920 2010-01-05  Jim Meyering  <meyering@redhat.com>
10921
10922         maint: remove useless inclusions of "xalloc.h"
10923         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
10924         * lib/readtokens.c: Likewise.
10925         * lib/same.c: Likewise.
10926         * modules/getloadavg (Depends-on): Remove xalloc.
10927         * modules/readtokens: Likewise.
10928         * modules/same: Likewise.
10929
10930         maint.mk: include 4 more function names in alloca.h-checking regexp
10931         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
10932         regexp.  Before, we would give a false-positive (saying alloca.h
10933         is included unnecessarily) when the only uses involved omitted symbols.
10934
10935         xalloc.h: use consistent formatting
10936         * lib/xalloc.h: Move declarations to start in the first column.
10937
10938 2010-01-05  Eric Blake  <ebb9@byu.net>
10939
10940         mkdir: avoid xalloc
10941         * lib/mkdir.c (includes): Drop unused header.
10942         Reported by John W. Eaton.
10943
10944 2010-01-04  Jim Meyering  <meyering@redhat.com>
10945
10946         nl_langinfo: avoid configure-time syntax error
10947         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
10948         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
10949         the empty string.  Don't let that provoke a shell syntax error.
10950
10951         regcomp, regexec, fnmatch: avoid array bounds read error
10952         * lib/regcomp.c (build_equiv_class): From glibc:
10953         Use only the low 24 bits of a findidx return value as an index
10954         into the weights array.  Patch by Ulrich Drepper:
10955         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
10956         * lib/regexec.c (check_node_accept_bytes): Likewise.
10957         * lib/fnmatch_loop.c (FCT): Likewise.
10958
10959         regcomp: skip collseq lookup when there are no rules
10960         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
10961         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
10962
10963         regcomp: recognize ill-formed { } expressions
10964         * lib/regcomp.c (parse_dup_op): From glibc:
10965         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
10966
10967         regcomp: fix typo in comment
10968         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
10969         s/satisfy/satisfies/.
10970
10971         regcomp: sync from glibc: remove dead store
10972         * lib/regcomp.c (duplicate_node_closure): Remove useless
10973         search_duplicated_node call and dead store.
10974
10975         regcomp: sync from glibc; always use nl_langinfo
10976         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
10977         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
10978         * modules/regex (Depends-on): Add nl_langinfo.
10979
10980 2010-01-04  Eric Blake  <ebb9@byu.net>
10981
10982         fdopendir: fix configure test
10983         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
10984
10985 2010-01-01  Bruno Haible  <bruno@clisp.org>
10986
10987         wchar: Remove unused configure check.
10988         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
10989
10990 2010-01-01  Eric Blake  <ebb9@byu.net>
10991
10992         headers: make check of system header explicit
10993         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
10994         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
10995         ourselves.
10996         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10997         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10998         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
10999         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
11000         internals.
11001         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
11002         missing.
11003         Suggested by Bruno Haible.
11004
11005 2010-01-01  Jim Meyering  <meyering@redhat.com>
11006
11007         ChangeLog: tweak to eliminate unnecessary copyright line
11008         * ChangeLog: Remove a copyright line that was mistakenly updated
11009         by today's update-copyright run.  Reported by Eric Blake.
11010
11011         test-update-copyright: don't let envvar setting cause test failure
11012         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11013
11014 2010-01-01  Bruno Haible  <bruno@clisp.org>
11015
11016         localename: Avoid gcc warning.
11017         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
11018         function if it is not used.
11019
11020 2010-01-01  Jim Meyering  <meyering@redhat.com>
11021
11022         update nearly all FSF copyright year lists to include 2010
11023         Use the same procedure as for 2009, outlined in
11024         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
11025
11026         version-etc: set COPYRIGHT_YEAR to 2010
11027         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
11028
11029 2009-12-31  Eric Blake  <ebb9@byu.net>
11030
11031         doc: correct availability of cygwin 1.5.x getopt
11032         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
11033         variables.
11034         * doc/posix-functions/opterr.texi (opterr): Likewise.
11035         * doc/posix-functions/optind.texi (optind): Likewise.
11036         * doc/posix-functions/optopt.texi (optopt): Likewise.
11037         * doc/posix-functions/tzname.texi (tzname): Likewise.
11038
11039         openat: update maintainer
11040         * modules/openat (Maintainer): Add myself.
11041
11042         utimens: avoid shadowing warning
11043         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
11044         buffers into one, to avoid shadowing, as well as avoiding a
11045         redundant stat.
11046         Reported by Jim Meyering.
11047
11048         test-dup2: avoid compiler warning
11049         * tests/test-dup2.c (is_inheritable): Only define if used.
11050
11051 2010-01-01  Bruno Haible  <bruno@clisp.org>
11052
11053         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
11054         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
11055         defined, use wctomb instead of wcrtomb.
11056
11057 2010-01-01  Bruno Haible  <bruno@clisp.org>
11058
11059         iconv: Reject native Solaris iconv.
11060         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
11061         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
11062
11063 2009-12-31  Bruno Haible  <bruno@clisp.org>
11064
11065         * tests/test-signal.c (main): Remove test of 'SIG'.
11066
11067 2009-12-31  Bruno Haible  <bruno@clisp.org>
11068
11069         spawn: Fix incomplete fix.
11070         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
11071         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
11072         warnings for GNULIB_POSIXCHECK again.
11073         Reported by Eric Blake.
11074
11075 2009-12-31  Bruno Haible  <bruno@clisp.org>
11076
11077         Avoid namespace pollution on glibc systems.
11078         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
11079         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
11080         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
11081         glibc systems.
11082
11083 2009-12-31  Bruno Haible  <bruno@clisp.org>
11084
11085         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
11086         (gl_REPLACE_WCHAR_H): Turn into a no-op.
11087         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
11088         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11089         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11090         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11091         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11092
11093 2009-12-31  Bruno Haible  <bruno@clisp.org>
11094
11095         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
11096         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
11097         afterwards.
11098
11099 2009-12-31  Bruno Haible  <bruno@clisp.org>
11100
11101         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
11102         SYS_UTSNAME_H.
11103
11104 2009-12-31  Bruno Haible  <bruno@clisp.org>
11105
11106         spawn: Fix misapplied patch.
11107         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
11108         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
11109         warnings for GNULIB_POSIXCHECK.
11110
11111 2009-12-31  Bruno Haible  <bruno@clisp.org>
11112
11113         times: Update after sys_times changed.
11114         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
11115         * modules/times (Files): Add it.
11116         (configure.ac): Invoke gl_FUNC_TIMES.
11117
11118 2009-12-31  Bruno Haible  <bruno@clisp.org>
11119
11120         Use AC_C_INLINE where necessary.
11121         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
11122         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
11123         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
11124         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
11125         * m4/mbfile.m4 (gl_MBFILE): Likewise.
11126         * m4/mbiter.m4 (gl_MBITER): Likewise.
11127         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11128         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11129         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
11130         * modules/u64 (configure.ac): Likewise.
11131
11132 2009-12-31  Bruno Haible  <bruno@clisp.org>
11133
11134         Use AC_C_INLINE instead of module 'inline' where possible.
11135         * modules/inline (Description): Clarify purpose.
11136         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
11137         * modules/count-one-bits (Depends-on): Remove inline.
11138         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
11139         * modules/openat (Depends-on): Remove inline.
11140         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
11141         instead of depending on module 'inline'.
11142         * modules/filevercmp (Depends-on, configure.ac): Likewise.
11143         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
11144         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
11145         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
11146         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
11147         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
11148         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
11149         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
11150         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
11151         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
11152         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
11153         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
11154         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
11155         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
11156         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
11157         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
11158         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
11159         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
11160         Likewise.
11161         * modules/unictype/property-ascii-hex-digit (Depends-on,
11162         configure.ac): Likewise.
11163         * modules/unictype/property-bidi-arabic-digit (Depends-on,
11164         configure.ac): Likewise.
11165         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
11166         configure.ac): Likewise.
11167         * modules/unictype/property-bidi-block-separator (Depends-on,
11168         configure.ac): Likewise.
11169         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
11170         configure.ac): Likewise.
11171         * modules/unictype/property-bidi-common-separator (Depends-on,
11172         configure.ac): Likewise.
11173         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
11174         Likewise.
11175         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
11176         configure.ac): Likewise.
11177         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
11178         configure.ac): Likewise.
11179         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
11180         configure.ac): Likewise.
11181         * modules/unictype/property-bidi-european-digit (Depends-on,
11182         configure.ac): Likewise.
11183         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
11184         configure.ac): Likewise.
11185         * modules/unictype/property-bidi-left-to-right (Depends-on,
11186         configure.ac): Likewise.
11187         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
11188         configure.ac): Likewise.
11189         * modules/unictype/property-bidi-other-neutral (Depends-on,
11190         configure.ac): Likewise.
11191         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
11192         Likewise.
11193         * modules/unictype/property-bidi-segment-separator (Depends-on,
11194         configure.ac): Likewise.
11195         * modules/unictype/property-bidi-whitespace (Depends-on,
11196         configure.ac): Likewise.
11197         * modules/unictype/property-combining (Depends-on, configure.ac):
11198         Likewise.
11199         * modules/unictype/property-composite (Depends-on, configure.ac):
11200         Likewise.
11201         * modules/unictype/property-currency-symbol (Depends-on,
11202         configure.ac): Likewise.
11203         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
11204         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
11205         Likewise.
11206         * modules/unictype/property-default-ignorable-code-point (Depends-on,
11207         configure.ac): Likewise.
11208         * modules/unictype/property-deprecated (Depends-on, configure.ac):
11209         Likewise.
11210         * modules/unictype/property-diacritic (Depends-on, configure.ac):
11211         Likewise.
11212         * modules/unictype/property-extender (Depends-on, configure.ac):
11213         Likewise.
11214         * modules/unictype/property-format-control (Depends-on, configure.ac):
11215         Likewise.
11216         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
11217         Likewise.
11218         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
11219         Likewise.
11220         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
11221         Likewise.
11222         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
11223         Likewise.
11224         * modules/unictype/property-hyphen (Depends-on, configure.ac):
11225         Likewise.
11226         * modules/unictype/property-id-continue (Depends-on, configure.ac):
11227         Likewise.
11228         * modules/unictype/property-id-start (Depends-on, configure.ac):
11229         Likewise.
11230         * modules/unictype/property-ideographic (Depends-on, configure.ac):
11231         Likewise.
11232         * modules/unictype/property-ids-binary-operator (Depends-on,
11233         configure.ac): Likewise.
11234         * modules/unictype/property-ids-trinary-operator (Depends-on,
11235         configure.ac): Likewise.
11236         * modules/unictype/property-ignorable-control (Depends-on,
11237         configure.ac): Likewise.
11238         * modules/unictype/property-iso-control (Depends-on, configure.ac):
11239         Likewise.
11240         * modules/unictype/property-join-control (Depends-on, configure.ac):
11241         Likewise.
11242         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
11243         Likewise.
11244         * modules/unictype/property-line-separator (Depends-on, configure.ac):
11245         Likewise.
11246         * modules/unictype/property-logical-order-exception (Depends-on,
11247         configure.ac): Likewise.
11248         * modules/unictype/property-lowercase (Depends-on, configure.ac):
11249         Likewise.
11250         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
11251         * modules/unictype/property-non-break (Depends-on, configure.ac):
11252         Likewise.
11253         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
11254         Likewise.
11255         * modules/unictype/property-numeric (Depends-on, configure.ac):
11256         Likewise.
11257         * modules/unictype/property-other-alphabetic (Depends-on,
11258         configure.ac): Likewise.
11259         * modules/unictype/property-other-default-ignorable-code-point
11260         (Depends-on, configure.ac): Likewise.
11261         * modules/unictype/property-other-grapheme-extend (Depends-on,
11262         configure.ac): Likewise.
11263         * modules/unictype/property-other-id-continue (Depends-on,
11264         configure.ac): Likewise.
11265         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
11266         Likewise.
11267         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
11268         Likewise.
11269         * modules/unictype/property-other-math (Depends-on, configure.ac):
11270         Likewise.
11271         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
11272         Likewise.
11273         * modules/unictype/property-paired-punctuation (Depends-on,
11274         configure.ac): Likewise.
11275         * modules/unictype/property-paragraph-separator (Depends-on,
11276         configure.ac): Likewise.
11277         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
11278         Likewise.
11279         * modules/unictype/property-pattern-white-space (Depends-on,
11280         configure.ac): Likewise.
11281         * modules/unictype/property-private-use (Depends-on, configure.ac):
11282         Likewise.
11283         * modules/unictype/property-punctuation (Depends-on, configure.ac):
11284         Likewise.
11285         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
11286         Likewise.
11287         * modules/unictype/property-radical (Depends-on, configure.ac):
11288         Likewise.
11289         * modules/unictype/property-sentence-terminal (Depends-on,
11290         configure.ac): Likewise.
11291         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
11292         Likewise.
11293         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
11294         * modules/unictype/property-terminal-punctuation (Depends-on,
11295         configure.ac): Likewise.
11296         * modules/unictype/property-titlecase (Depends-on, configure.ac):
11297         Likewise.
11298         * modules/unictype/property-unassigned-code-value (Depends-on,
11299         configure.ac): Likewise.
11300         * modules/unictype/property-unified-ideograph (Depends-on,
11301         configure.ac): Likewise.
11302         * modules/unictype/property-uppercase (Depends-on, configure.ac):
11303         Likewise.
11304         * modules/unictype/property-variation-selector (Depends-on,
11305         configure.ac): Likewise.
11306         * modules/unictype/property-white-space (Depends-on, configure.ac):
11307         Likewise.
11308         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
11309         Likewise.
11310         * modules/unictype/property-xid-start (Depends-on, configure.ac):
11311         Likewise.
11312         * modules/unictype/property-zero-width (Depends-on, configure.ac):
11313         Likewise.
11314         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
11315         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
11316         Likewise.
11317
11318 2009-12-31  Bruno Haible  <bruno@clisp.org>
11319
11320         Remove unnecessary AC_C_INLINE invocation.
11321         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
11322         since 2009-08-21.
11323
11324 2009-12-31  Jim Meyering  <meyering@redhat.com>
11325
11326         maint.mk: don't require explicit gpg_key_ID in cfg.mk
11327         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
11328         With this change, we can all remove the gpg_key_ID = ... definition
11329         from our respective cfg.mk files.
11330
11331         maint.mk: create announcement template in ~/, not in /tmp
11332         * top/maint.mk (emit_upload_commands): Adjust.
11333         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
11334         Remove temporary file, .ci-msg.
11335
11336 2009-12-31  Eric Blake  <ebb9@byu.net>
11337
11338         link-warning: always build headers with link warnings
11339         * modules/arpa_inet (Makefile.am): Always build replacement
11340         header.
11341         * modules/ctype (Makefile.am): Likewise.
11342         * modules/dirent (Makefile.am): Likewise.
11343         * modules/inttypes (Makefile.am): Likewise.
11344         * modules/langinfo (Makefile.am): Likewise.
11345         * modules/locale (Makefile.am): Likewise.
11346         * modules/spawn (Makefile.am): Likewise.
11347         * modules/sys_file (Makefile.am): Likewise.
11348         * modules/sys_ioctl (Makefile.am): Likewise.
11349         * modules/sys_select (Makefile.am): Likewise.
11350         * modules/sys_socket (Makefile.am): Likewise.
11351         * modules/sys_times (Makefile.am): Likewise.
11352         * modules/sys_utsname (Makefile.am): Likewise.
11353         * modules/sys_wait (Makefile.am): Likewise.
11354         * modules/wchar (Makefile.am): Likewise.
11355         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
11356         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
11357         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
11358         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
11359         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
11360         Likewise.
11361         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11362         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11363         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
11364         Likewise.
11365         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
11366         Likewise.
11367         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11368         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
11369         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
11370         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11371         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11372         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11373         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11374         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
11375         (gl_WCHAR_H_DEFAULTS): Likewise.
11376
11377 2009-12-31  Eric Blake  <ebb9@byu.net>
11378
11379         signal, spawn: use link warnings
11380         * lib/signal.in.h (sigset_t): Make unconditional.
11381         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
11382         (sigpending, sigprocmask, sigaction): Add link warnings.
11383         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
11384         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
11385         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
11386         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
11387         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
11388         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
11389         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
11390         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
11391         (posix_spawn_file_actions_destroy)
11392         (posix_spawn_file_actions_addopen)
11393         (posix_spawn_file_actions_addclose)
11394         (posix_spawn_file_actions_adddup2): Likewise.
11395         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
11396         * tests/test-signal.c (main): Enhance test.
11397
11398         spawn: improve wrapper support
11399         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
11400         (gl_SPAWN_H_DEFAULTS): New defaults.
11401         * modules/spawn (Makefile.am): Substitute them.
11402         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
11403         Only declare if missing or broken.
11404
11405         sys_times, sys_utsname: use include_next
11406         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
11407         header.
11408         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
11409         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11410         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11411         * modules/sys_times (Depends-on): Add include_next.
11412         (Makefile.am): Substitute additional values.
11413         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
11414         * lib/sys_times.in.h (includes): Include native header, if
11415         available.
11416         * lib/sys_utsname.in.h (includes): Likewise.
11417         * tests/test-sys_times.c (main): Enhance test.
11418
11419         fdutimensat: revert prior patch
11420         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
11421         utimens.h.
11422         Reported by Bruno Haible.
11423
11424 2009-12-30  Eric Blake  <ebb9@byu.net>
11425
11426         sys_wait: drop link-warning dependency
11427         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
11428         link-warning efforts.
11429         * lib/sys_wait.in.h: Likewise.
11430
11431         fdutimensat: remove bogus dependency
11432         * modules/fdutimensat (Depends-on): Drop inline.
11433
11434         unistd: fix typo
11435         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
11436
11437 2009-12-30  Bruno Haible  <bruno@clisp.org>
11438
11439         Fix compilation error with Solaris cc.
11440         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
11441         * lib/unicase/u16-is-invariant.c: Likewise.
11442         * lib/unicase/u32-is-invariant.c: Likewise.
11443         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11444
11445 2009-12-30  Bruno Haible  <bruno@clisp.org>
11446
11447         Fix test crash.
11448         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
11449         locales.
11450         Reported by Simon Josefsson <simon@josefsson.org>.
11451
11452 2009-12-30  Bruno Haible  <bruno@clisp.org>
11453
11454         Fix compilation error on most platforms.
11455         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
11456         Reported by Simon Josefsson <simon@josefsson.org>
11457         and Nelson H. F. Beebe <beebe@math.utah.edu>.
11458
11459 2009-12-30  Eric Blake  <ebb9@byu.net>
11460
11461         futimens, utimensat: work around ntfs-3g bug
11462         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
11463         a ctime bug is present, and expand workaround to cover ntfs-3g.
11464         * lib/utimens.c (fdutimens, lutimens): Likewise.
11465         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
11466         (validate_timespec): Adjust return value.
11467         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
11468         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11469         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
11470
11471 2009-12-29  Eric Blake  <ebb9@byu.net>
11472
11473         link-warning: make usage consistent
11474         * modules/ctype (Depends-on): Add link-warning.
11475         (Makefile.am): Update rules accordingly.
11476         * modules/langinfo (Depends-on, Makefile.am): Likewise.
11477         * modules/locale (Depends-on, Makefile.am): Likewise.
11478         * modules/sys_file (Makefile.am): Likewise.
11479         * modules/getopt-posix (Makefile.am): Delete unused link warning
11480         efforts.
11481         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
11482         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
11483         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
11484         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
11485
11486         stdio: remove unused variables
11487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
11488         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
11489         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11490
11491         tests: test more substitute headers
11492         * modules/ctype-tests: New file.
11493         * modules/dirent-tests: Likewise.
11494         * modules/spawn-tests: Likewise.
11495         * modules/sys_file-tests: Likewise.
11496         * modules/sys_ioctl-tests: Likewise.
11497         * modules/sys_wait-tests: Likewise.
11498         * tests/test-ctype.c: Likewise.
11499         * tests/test-dirent.c: Likewise.
11500         * tests/test-spawn.c: Likewise.
11501         * tests/test-sys_file.c: Likewise.
11502         * tests/test-sys_ioctl.c: Likewise.
11503         * tests/test-sys_wait.c: Likewise.
11504         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
11505         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
11506         whether or not flock is in use.
11507
11508         tests: remove License section from module
11509         * modules/arpa_inet-tests: Remove unneeded section.
11510         * modules/byteswap-tests: Likewise.
11511         * modules/ceilf-tests: Likewise.
11512         * modules/ceill-tests: Likewise.
11513         * modules/crypto/des-tests: Likewise.
11514         * modules/crypto/gc-arcfour-tests: Likewise.
11515         * modules/crypto/gc-arctwo-tests: Likewise.
11516         * modules/crypto/gc-des-tests: Likewise.
11517         * modules/crypto/gc-hmac-md5-tests: Likewise.
11518         * modules/crypto/gc-hmac-sha1-tests: Likewise.
11519         * modules/crypto/gc-md2-tests: Likewise.
11520         * modules/crypto/gc-md4-tests: Likewise.
11521         * modules/crypto/gc-md5-tests: Likewise.
11522         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
11523         * modules/crypto/gc-rijndael-tests: Likewise.
11524         * modules/crypto/gc-sha1-tests: Likewise.
11525         * modules/crypto/gc-tests: Likewise.
11526         * modules/crypto/md2-tests: Likewise.
11527         * modules/crypto/md4-tests: Likewise.
11528         * modules/fcntl-h-tests: Likewise.
11529         * modules/floorf-tests: Likewise.
11530         * modules/floorl-tests: Likewise.
11531         * modules/frexp-nolibm-tests: Likewise.
11532         * modules/frexp-tests: Likewise.
11533         * modules/frexpl-nolibm-tests: Likewise.
11534         * modules/frexpl-tests: Likewise.
11535         * modules/getaddrinfo-tests: Likewise.
11536         * modules/inttypes-tests: Likewise.
11537         * modules/isfinite-tests: Likewise.
11538         * modules/isinf-tests: Likewise.
11539         * modules/ldexpl-tests: Likewise.
11540         * modules/locale-tests: Likewise.
11541         * modules/math-tests: Likewise.
11542         * modules/netdb-tests: Likewise.
11543         * modules/netinet_in-tests: Likewise.
11544         * modules/printf-frexp-tests: Likewise.
11545         * modules/printf-frexpl-tests: Likewise.
11546         * modules/priv-set-tests: Likewise.
11547         * modules/random_r-tests: Likewise.
11548         * modules/round-tests: Likewise.
11549         * modules/roundf-tests: Likewise.
11550         * modules/roundl-tests: Likewise.
11551         * modules/search-tests: Likewise.
11552         * modules/select-tests: Likewise.
11553         * modules/signal-tests: Likewise.
11554         * modules/stdbool-tests: Likewise.
11555         * modules/stddef-tests: Likewise.
11556         * modules/stdint-tests: Likewise.
11557         * modules/stdio-tests: Likewise.
11558         * modules/stdlib-tests: Likewise.
11559         * modules/string-tests: Likewise.
11560         * modules/strings-tests: Likewise.
11561         * modules/sys_select-tests: Likewise.
11562         * modules/sys_socket-tests: Likewise.
11563         * modules/sys_stat-tests: Likewise.
11564         * modules/sys_time-tests: Likewise.
11565         * modules/sys_utsname-tests: Likewise.
11566         * modules/sysexits-tests: Likewise.
11567         * modules/time-tests: Likewise.
11568         * modules/trunc-tests: Likewise.
11569         * modules/truncf-tests: Likewise.
11570         * modules/truncl-tests: Likewise.
11571         * modules/tsearch-tests: Likewise.
11572         * modules/unistd-tests: Likewise.
11573         * modules/wchar-tests: Likewise.
11574         * modules/wctype-tests: Likewise.
11575
11576         tests: fix license on several tests
11577         * tests/test-des.c: Update to GPLv3+.
11578         * tests/test-flock.c: Likewise.
11579         * tests/test-fsync.c: Likewise.
11580         * tests/test-futimens.h: Likewise.
11581         * tests/test-gc-arcfour.c: Likewise.
11582         * tests/test-gc-arctwo.c: Likewise.
11583         * tests/test-gc-des.c: Likewise.
11584         * tests/test-gc-hmac-md5.c: Likewise.
11585         * tests/test-gc-hmac-sha1.c: Likewise.
11586         * tests/test-gc-md2.c: Likewise.
11587         * tests/test-gc-md4.c: Likewise.
11588         * tests/test-gc-md5.c: Likewise.
11589         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11590         * tests/test-gc-rijndael.c: Likewise.
11591         * tests/test-gc-sha1.c: Likewise.
11592         * tests/test-gc.c: Likewise.
11593         * tests/test-getcwd.c: Likewise.
11594         * tests/test-link.c: Likewise.
11595         * tests/test-link.h: Likewise.
11596         * tests/test-lutimens.h: Likewise.
11597         * tests/test-md2.c: Likewise.
11598         * tests/test-md4.c: Likewise.
11599         * tests/test-mkdir.h: Likewise.
11600         * tests/test-rename.c: Likewise.
11601         * tests/test-rename.h: Likewise.
11602         * tests/test-safe-alloc.c: Likewise.
11603         * tests/test-utimens-common.h: Likewise.
11604         * tests/test-utimens.h: Likewise.
11605
11606         maint: sync license texts
11607         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
11608         * doc/gpl-3.0.texi: Revert copyright year update.
11609         * doc/lgpl-3.0.texi: Likewise.
11610
11611 2009-12-29  Jim Meyering  <meyering@redhat.com>
11612
11613         update nearly all FSF copyright year lists to include 2009
11614         The files named by the following are exempted:
11615             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
11616               test -f "$dst" && { echo "$dst"; continue; }
11617               test -d "$dst" || continue
11618               echo "$dst"/$(basename "$src")
11619             done > exempt
11620             git ls-files tests/unictype >> exempt
11621         In the remaining files, convert to all-interval notation if
11622         - there is already at least one year interval like 2000-2003
11623         - the file is maintained by me
11624         - the file is in lib/uni*/, where that style already prevails
11625         Otherwise, use update-copyright's default.
11626
11627 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11628         and Eric Blake  <ebb9@byu.net>
11629
11630         tests: don't require debug system() to pass
11631         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
11632         * tests/test-rmdir.h (test_rmdir_func): Likewise.
11633         * tests/test-unlink.h (test_unlink_func): Likewise.
11634         * tests/test-fstatat.c (main): ...into callers.
11635         * tests/test-lstat.c (main): Likewise.
11636         * tests/test-rmdir.c (main): Likewise.
11637         * tests/test-unlink.c (main): Likewise.
11638         * tests/test-unlinkat.c (main): Likewise.
11639         * tests/test-areadlink-with-size.c (main): Don't require a
11640         debug-only system call to pass, aiding cross-testing to mingw.
11641         * tests/test-areadlink.c (main): Likewise.
11642         * tests/test-areadlinkat-with-size.c (main): Likewise.
11643         * tests/test-areadlinkat.c (main): Likewise.
11644         * tests/test-canonicalize-lgpl.c (main): Likewise.
11645         * tests/test-canonicalize.c (main): Likewise.
11646         * tests/test-chown.c (main): Likewise.
11647         * tests/test-fchownat.c (main): Likewise.
11648         * tests/test-lchown.c (main): Likewise.
11649         * tests/test-fdutimensat.c (main): Likewise.
11650         * tests/test-futimens.c (main): Likewise.
11651         * tests/test-link.c (main): Likewise.
11652         * tests/test-linkat.c (main): Likewise.
11653         * tests/test-mkdir.c (main): Likewise.
11654         * tests/test-mkdirat.c (main): Likewise.
11655         * tests/test-mkfifo.c (main): Likewise.
11656         * tests/test-mkfifoat.c (main): Likewise.
11657         * tests/test-mknod.c (main): Likewise.
11658         * tests/test-readlink.c (main): Likewise.
11659         * tests/test-remove.c (main): Likewise.
11660         * tests/test-rename.c (main): Likewise.
11661         * tests/test-renameat.c (main): Likewise.
11662         * tests/test-symlink.c (main): Likewise.
11663         * tests/test-symlinkat.c (main): Likewise.
11664         * tests/test-utimens.c (main): Likewise.
11665         * tests/test-utimensat.c (main): Likewise.
11666
11667 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11668
11669         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
11670         on $(UNUSED_PARAMETER_H) to avoid build failure.
11671
11672 2009-12-28  Jim Meyering  <meyering@redhat.com>
11673
11674         update-copyright: you may specify a max. line length other than 72
11675         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11676
11677         maint: use consistent FSF copyright line syntax
11678         * lib/posixtm.c: Add missing comma in FSF copyright line.
11679         * lib/posixtm.h: Likewise.
11680         * lib/getugroups.c: Add missing ", Inc.".
11681
11682         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
11683         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
11684         FSF copyright line.  Remove trailing blanks.
11685
11686 2009-12-28  Eric Blake  <ebb9@byu.net>
11687
11688         test-dup2: reduce dependencies
11689         * modules/cloexec (Configure.ac): Set witness.
11690         * modules/dup2-tests (Depends-on): Drop cloexec.
11691         * tests/test-dup2.c (main): Skip portion of test if cloexec module
11692         not present.
11693         Suggested by Bruno Haible.
11694
11695 2009-12-26  Bruno Haible  <bruno@clisp.org>
11696
11697         Remove an unneeded dependency.
11698         * modules/fseterr (Depends-on): Remove dup2.
11699
11700 2009-12-26  Eric Blake  <ebb9@byu.net>
11701
11702         tests: use macros.h in more places
11703         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
11704         (ASSERT_STREAM): Provide default of stderr.
11705         * tests/test-dirent-safer.c: Include macros.h, using alternate
11706         stream for assertions.
11707         * tests/test-dup-safer.c: Likewise.
11708         * tests/test-freopen-safer.c: Likewise.
11709         * tests/test-getopt.c: Likewise.
11710         * tests/test-openat-safer.c: Likewise.
11711         * tests/test-pipe.c: Likewise.
11712         * tests/test-popen-safer.c: Likewise.
11713         * modules/dirent-safer-tests (Files): Include macros.h.
11714         * modules/unistd-safer-tests (Files): Likewise.
11715         * modules/freopen-safer-tests (Files): Likewise.
11716         * modules/getopt-posix-tests (Files): Likewise.
11717         * modules/openat-safer-tests (Files): Likewise.
11718         * modules/pipe-tests (Files): Likewise.
11719
11720 2009-12-26  Bruno Haible  <bruno@clisp.org>
11721
11722         javacomp: Portability fix.
11723         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
11724         that it also works on Solaris.
11725
11726 2009-12-26  Bruno Haible  <bruno@clisp.org>
11727
11728         localename: Fix storage allocation of gl_locale_name_thread's result.
11729         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
11730         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
11731         all platforms that have 'uselocale'.
11732         (gl_locale_name_thread_unsafe): New function, extracted from
11733         gl_locale_name_thread.
11734         (gl_locale_name_thread): Call struniq on all platforms that have
11735         'uselocale'.
11736         * tests/test-localename.c (test_locale_name_thread): Check that the
11737         resulting strings are permanently allocated.
11738         * modules/localename-tests (Depends-on): Add strdup.
11739
11740 2009-12-26  Bruno Haible  <bruno@clisp.org>
11741
11742         * tests/test-localename.c (categories): Fill in the strings.
11743
11744 2009-12-26  Jim Meyering  <meyering@redhat.com>
11745
11746         isdir: complete the removal of m4/isdir.m4
11747         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
11748
11749         isdir: clean up, since at least grep still uses it
11750         * lib/isdir.c: Include "isdir.h".
11751         (S_ISDIR): Remove now-unneeded definition.
11752         * modules/isdir (Files): Add lib/isdir.h.
11753         * lib/isdir.h: New file, with declaration.
11754         * m4/isdir.m4: Remove file -- unneeded.
11755
11756 2009-12-25  Bruno Haible  <bruno@clisp.org>
11757
11758         selinux-h: Make generated .h files standalone.
11759         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
11760         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
11761         * lib/se-selinux.in.h: Likewise.
11762         * modules/selinux-h (Depends-on): Add unused-parameter.
11763         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
11764         selinux/selinux.h and selinux/context.h.
11765         Suggested by Eric Blake.
11766
11767 2009-12-25  Bruno Haible  <bruno@clisp.org>
11768
11769         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
11770         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
11771         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
11772         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
11773         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
11774
11775 2009-12-24  Bruno Haible  <bruno@clisp.org>
11776
11777         openat: Fix warning.
11778         * lib/openat-proc.c: Include <unistd.h>.
11779
11780 2009-12-24  Bruno Haible  <bruno@clisp.org>
11781
11782         New module 'unused-parameter'.
11783         * build-aux/unused-parameter.h: New file, extracted from earlier
11784         gnulib-common.m4.
11785         * modules/unused-parameter: New file.
11786         * lib/unistr.h: Include unused-parameter.h.
11787         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
11788         _GL_UNUSED.
11789         * modules/unistr/base (Depends-on): Add unused-parameter.
11790
11791 2009-12-24  Bruno Haible  <bruno@clisp.org>
11792
11793         Add missing dependencies to 'extensions' module.
11794         * m4/extensions.m4: Add comment.
11795         * modules/accept4 (Depends-on): Add extensions.
11796         * modules/dup3 (Depends-on): Likewise.
11797         * modules/fcntl (Depends-on): Likewise.
11798         * modules/futimens (Depends-on): Likewise.
11799         * modules/mknod (Depends-on): Likewise.
11800         * modules/pipe2 (Depends-on): Likewise.
11801         * modules/stat-time (Depends-on): Likewise.
11802         * modules/strcasestr-simple (Depends-on): Likewise.
11803         * modules/strsignal (Depends-on): Likewise.
11804         * modules/utimensat (Depends-on): Likewise.
11805         * modules/localcharset (Depends-on): Likewise. Needed because of
11806         gl_FCNTL_O_FLAGS.
11807         * modules/wcrtomb (Depends-on): Likewise. Needed because of
11808         AC_TYPE_MBSTATE_T.
11809         * modules/wcsnrtombs (Depends-on): Likewise.
11810         * modules/wcsrtombs (Depends-on): Likewise.
11811
11812 2009-12-24  Bruno Haible  <bruno@clisp.org>
11813
11814         binary-io: Avoid gcc warning due to SET_BINARY.
11815         * lib/binary-io.h (SET_BINARY): Cast the result to void.
11816         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
11817
11818 2009-12-24  Bruno Haible  <bruno@clisp.org>
11819
11820         Avoid future namespace pollution on glibc systems.
11821         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
11822         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
11823         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
11824         glibc systems.
11825
11826 2009-12-24  Bruno Haible  <bruno@clisp.org>
11827
11828         Refactor common macros used in tests.
11829         * tests/macros.h: New file.
11830         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
11831         and/or <stdlib.h>, if appropriate.
11832         (ASSERT, SIZEOF): Remove macros.
11833         * tests/test-areadlink-with-size.c: Likewise.
11834         * tests/test-areadlinkat.c: Likewise.
11835         * tests/test-areadlinkat-with-size.c: Likewise.
11836         * tests/test-argmatch.c: Likewise.
11837         * tests/test-argv-iter.c: Likewise.
11838         * tests/test-array-mergesort.c: Likewise.
11839         * tests/test-array_list.c: Likewise.
11840         * tests/test-array_oset.c: Likewise.
11841         * tests/test-avltree_list.c: Likewise.
11842         * tests/test-avltree_oset.c: Likewise.
11843         * tests/test-avltreehash_list.c: Likewise.
11844         * tests/test-base64.c: Likewise.
11845         * tests/test-binary-io.c: Likewise.
11846         * tests/test-bitrotate.c: Likewise.
11847         * tests/test-btowc.c: Likewise.
11848         * tests/test-byteswap.c: Likewise.
11849         * tests/test-c-ctype.c: Likewise.
11850         * tests/test-c-stack.c: Likewise.
11851         * tests/test-c-strcasecmp.c: Likewise.
11852         * tests/test-c-strcasestr.c: Likewise.
11853         * tests/test-c-strncasecmp.c: Likewise.
11854         * tests/test-c-strstr.c: Likewise.
11855         * tests/test-canonicalize-lgpl.c: Likewise.
11856         * tests/test-canonicalize.c: Likewise.
11857         * tests/test-carray_list.c: Likewise.
11858         * tests/test-ceilf1.c: Likewise.
11859         * tests/test-ceilf2.c: Likewise.
11860         * tests/test-ceill.c: Likewise.
11861         * tests/test-chown.c: Likewise.
11862         * tests/test-cloexec.c: Likewise.
11863         * tests/test-copy-acl.c: Likewise.
11864         * tests/test-copy-file.c: Likewise.
11865         * tests/test-count-one-bits.c: Likewise.
11866         * tests/test-dprintf-posix.c: Likewise.
11867         * tests/test-dup2.c: Likewise.
11868         * tests/test-dup3.c: Likewise.
11869         * tests/test-duplocale.c: Likewise.
11870         * tests/test-fbufmode.c: Likewise.
11871         * tests/test-fchdir.c: Likewise.
11872         * tests/test-fchownat.c: Likewise.
11873         * tests/test-fcntl-safer.c: Likewise.
11874         * tests/test-fcntl.c: Likewise.
11875         * tests/test-fdopendir.c: Likewise.
11876         * tests/test-fdutimensat.c: Likewise.
11877         * tests/test-fflush2.c: Likewise.
11878         * tests/test-file-has-acl.c: Likewise.
11879         * tests/test-filevercmp.c: Likewise.
11880         * tests/test-flock.c: Likewise.
11881         * tests/test-floorf1.c: Likewise.
11882         * tests/test-floorf2.c: Likewise.
11883         * tests/test-floorl.c: Likewise.
11884         * tests/test-fnmatch.c: Likewise.
11885         * tests/test-fopen.h: Likewise.
11886         * tests/test-fpending.c: Likewise.
11887         * tests/test-fprintf-posix.c: Likewise.
11888         * tests/test-fpurge.c: Likewise.
11889         * tests/test-freadable.c: Likewise.
11890         * tests/test-freadahead.c: Likewise.
11891         * tests/test-freading.c: Likewise.
11892         * tests/test-freadptr.c: Likewise.
11893         * tests/test-freadptr2.c: Likewise.
11894         * tests/test-freadseek.c: Likewise.
11895         * tests/test-freopen.c: Likewise.
11896         * tests/test-frexp.c: Likewise.
11897         * tests/test-frexpl.c: Likewise.
11898         * tests/test-fseek.c: Likewise.
11899         * tests/test-fseeko.c: Likewise.
11900         * tests/test-fstatat.c: Likewise.
11901         * tests/test-fstrcmp.c: Likewise.
11902         * tests/test-fsync.c: Likewise.
11903         * tests/test-ftell.c: Likewise.
11904         * tests/test-ftello.c: Likewise.
11905         * tests/test-func.c: Likewise.
11906         * tests/test-futimens.c: Likewise.
11907         * tests/test-fwritable.c: Likewise.
11908         * tests/test-fwriting.c: Likewise.
11909         * tests/test-getcwd.c: Likewise.
11910         * tests/test-getdate.c: Likewise.
11911         * tests/test-getdelim.c: Likewise.
11912         * tests/test-getdtablesize.c: Likewise.
11913         * tests/test-getgroups.c: Likewise.
11914         * tests/test-getline.c: Likewise.
11915         * tests/test-getndelim2.c: Likewise.
11916         * tests/test-glob.c: Likewise.
11917         * tests/test-hash.c: Likewise.
11918         * tests/test-i-ring.c: Likewise.
11919         * tests/test-iconv-utf.c: Likewise.
11920         * tests/test-iconv.c: Likewise.
11921         * tests/test-idpriv-drop.c: Likewise.
11922         * tests/test-idpriv-droptemp.c: Likewise.
11923         * tests/test-inet_ntop.c: Likewise.
11924         * tests/test-inet_pton.c: Likewise.
11925         * tests/test-isblank.c: Likewise.
11926         * tests/test-isfinite.c: Likewise.
11927         * tests/test-isinf.c: Likewise.
11928         * tests/test-isnan.c: Likewise.
11929         * tests/test-isnand.h: Likewise.
11930         * tests/test-isnanf.h: Likewise.
11931         * tests/test-isnanl.h: Likewise.
11932         * tests/test-lchown.c: Likewise.
11933         * tests/test-ldexpl.c: Likewise.
11934         * tests/test-link.c: Likewise.
11935         * tests/test-linkat.c: Likewise.
11936         * tests/test-linked_list.c: Likewise.
11937         * tests/test-linkedhash_list.c: Likewise.
11938         * tests/test-localename.c: Likewise.
11939         * tests/test-lseek.c: Likewise.
11940         * tests/test-lstat.c: Likewise.
11941         * tests/test-mbmemcasecmp.c: Likewise.
11942         * tests/test-mbmemcasecoll.c: Likewise.
11943         * tests/test-mbrtowc.c: Likewise.
11944         * tests/test-mbscasecmp.c: Likewise.
11945         * tests/test-mbscasestr1.c: Likewise.
11946         * tests/test-mbscasestr2.c: Likewise.
11947         * tests/test-mbscasestr3.c: Likewise.
11948         * tests/test-mbscasestr4.c: Likewise.
11949         * tests/test-mbschr.c: Likewise.
11950         * tests/test-mbscspn.c: Likewise.
11951         * tests/test-mbsinit.c: Likewise.
11952         * tests/test-mbsncasecmp.c: Likewise.
11953         * tests/test-mbsnrtowcs.c: Likewise.
11954         * tests/test-mbspbrk.c: Likewise.
11955         * tests/test-mbspcasecmp.c: Likewise.
11956         * tests/test-mbsrchr.c: Likewise.
11957         * tests/test-mbsrtowcs.c: Likewise.
11958         * tests/test-mbsspn.c: Likewise.
11959         * tests/test-mbsstr1.c: Likewise.
11960         * tests/test-mbsstr2.c: Likewise.
11961         * tests/test-mbsstr3.c: Likewise.
11962         * tests/test-memchr.c: Likewise.
11963         * tests/test-memchr2.c: Likewise.
11964         * tests/test-memcmp.c: Likewise.
11965         * tests/test-memmem.c: Likewise.
11966         * tests/test-memrchr.c: Likewise.
11967         * tests/test-mkdir.c: Likewise.
11968         * tests/test-mkdirat.c: Likewise.
11969         * tests/test-mkfifo.c: Likewise.
11970         * tests/test-mkfifoat.c: Likewise.
11971         * tests/test-mknod.c: Likewise.
11972         * tests/test-nanosleep.c: Likewise.
11973         * tests/test-nl_langinfo.c: Likewise.
11974         * tests/test-obstack-printf.c: Likewise.
11975         * tests/test-open.c: Likewise.
11976         * tests/test-openat.c: Likewise.
11977         * tests/test-pipe-filter-gi1.c: Likewise.
11978         * tests/test-pipe-filter-gi2-main.c: Likewise.
11979         * tests/test-pipe-filter-ii1.c: Likewise.
11980         * tests/test-pipe-filter-ii2-main.c: Likewise.
11981         * tests/test-pipe2.c: Likewise.
11982         * tests/test-popen.h: Likewise.
11983         * tests/test-posixtm.c: Likewise.
11984         * tests/test-pread.c: Likewise.
11985         * tests/test-printf-frexp.c: Likewise.
11986         * tests/test-printf-frexpl.c: Likewise.
11987         * tests/test-printf-posix.c: Likewise.
11988         * tests/test-priv-set.c: Likewise.
11989         * tests/test-quotearg.c: Likewise.
11990         * tests/test-random_r.c: Likewise.
11991         * tests/test-rawmemchr.c: Likewise.
11992         * tests/test-rbtree_list.c: Likewise.
11993         * tests/test-rbtree_oset.c: Likewise.
11994         * tests/test-rbtreehash_list.c: Likewise.
11995         * tests/test-readlink.c: Likewise.
11996         * tests/test-remove.c: Likewise.
11997         * tests/test-rename.c: Likewise.
11998         * tests/test-renameat.c: Likewise.
11999         * tests/test-rmdir.c: Likewise.
12000         * tests/test-round1.c: Likewise.
12001         * tests/test-roundf1.c: Likewise.
12002         * tests/test-roundl.c: Likewise.
12003         * tests/test-safe-alloc.c: Likewise.
12004         * tests/test-sameacls.c: Likewise.
12005         * tests/test-set-mode-acl.c: Likewise.
12006         * tests/test-setenv.c: Likewise.
12007         * tests/test-sigaction.c: Likewise.
12008         * tests/test-signbit.c: Likewise.
12009         * tests/test-sleep.c: Likewise.
12010         * tests/test-snprintf-posix.c: Likewise.
12011         * tests/test-snprintf.c: Likewise.
12012         * tests/test-sprintf-posix.c: Likewise.
12013         * tests/test-stat-time.c: Likewise.
12014         * tests/test-stat.c: Likewise.
12015         * tests/test-strcasestr.c: Likewise.
12016         * tests/test-strchrnul.c: Likewise.
12017         * tests/test-strerror.c: Likewise.
12018         * tests/test-striconv.c: Likewise.
12019         * tests/test-striconveh.c: Likewise.
12020         * tests/test-striconveha.c: Likewise.
12021         * tests/test-strsignal.c: Likewise.
12022         * tests/test-strstr.c: Likewise.
12023         * tests/test-strtod.c: Likewise.
12024         * tests/test-strverscmp.c: Likewise.
12025         * tests/test-symlink.c: Likewise.
12026         * tests/test-symlinkat.c: Likewise.
12027         * tests/test-trunc1.c: Likewise.
12028         * tests/test-trunc2.c: Likewise.
12029         * tests/test-truncf1.c: Likewise.
12030         * tests/test-truncf2.c: Likewise.
12031         * tests/test-truncl.c: Likewise.
12032         * tests/test-uname.c: Likewise.
12033         * tests/test-unlink.c: Likewise.
12034         * tests/test-unlinkat.c: Likewise.
12035         * tests/test-unsetenv.c: Likewise.
12036         * tests/test-usleep.c: Likewise.
12037         * tests/test-utimens.c: Likewise.
12038         * tests/test-utimensat.c: Likewise.
12039         * tests/test-vasnprintf-posix.c: Likewise.
12040         * tests/test-vasnprintf-posix2.c: Likewise.
12041         * tests/test-vasnprintf.c: Likewise.
12042         * tests/test-vasprintf-posix.c: Likewise.
12043         * tests/test-vasprintf.c: Likewise.
12044         * tests/test-vdprintf-posix.c: Likewise.
12045         * tests/test-vfprintf-posix.c: Likewise.
12046         * tests/test-vprintf-posix.c: Likewise.
12047         * tests/test-vsnprintf-posix.c: Likewise.
12048         * tests/test-vsnprintf.c: Likewise.
12049         * tests/test-vsprintf-posix.c: Likewise.
12050         * tests/test-wcrtomb.c: Likewise.
12051         * tests/test-wcsnrtombs.c: Likewise.
12052         * tests/test-wcsrtombs.c: Likewise.
12053         * tests/test-wctype.c: Likewise.
12054         * tests/test-wcwidth.c: Likewise.
12055         * tests/test-xfprintf-posix.c: Likewise.
12056         * tests/test-xmemdup0.c: Likewise.
12057         * tests/test-xprintf-posix.c: Likewise.
12058         * tests/test-xvasprintf.c: Likewise.
12059         * tests/unicase/test-locale-language.c: Likewise.
12060         * tests/unicase/test-mapping-part1.h: Likewise.
12061         * tests/unicase/test-predicate-part1.h: Likewise.
12062         * tests/unicase/test-u8-casecmp.c: Likewise.
12063         * tests/unicase/test-u8-casecoll.c: Likewise.
12064         * tests/unicase/test-u8-casefold.c: Likewise.
12065         * tests/unicase/test-u8-is-cased.c: Likewise.
12066         * tests/unicase/test-u8-is-casefolded.c: Likewise.
12067         * tests/unicase/test-u8-is-lowercase.c: Likewise.
12068         * tests/unicase/test-u8-is-titlecase.c: Likewise.
12069         * tests/unicase/test-u8-is-uppercase.c: Likewise.
12070         * tests/unicase/test-u8-tolower.c: Likewise.
12071         * tests/unicase/test-u8-totitle.c: Likewise.
12072         * tests/unicase/test-u8-toupper.c: Likewise.
12073         * tests/unicase/test-u16-casecmp.c: Likewise.
12074         * tests/unicase/test-u16-casecoll.c: Likewise.
12075         * tests/unicase/test-u16-casefold.c: Likewise.
12076         * tests/unicase/test-u16-is-cased.c: Likewise.
12077         * tests/unicase/test-u16-is-casefolded.c: Likewise.
12078         * tests/unicase/test-u16-is-lowercase.c: Likewise.
12079         * tests/unicase/test-u16-is-titlecase.c: Likewise.
12080         * tests/unicase/test-u16-is-uppercase.c: Likewise.
12081         * tests/unicase/test-u16-tolower.c: Likewise.
12082         * tests/unicase/test-u16-totitle.c: Likewise.
12083         * tests/unicase/test-u16-toupper.c: Likewise.
12084         * tests/unicase/test-u32-casecmp.c: Likewise.
12085         * tests/unicase/test-u32-casecoll.c: Likewise.
12086         * tests/unicase/test-u32-casefold.c: Likewise.
12087         * tests/unicase/test-u32-is-cased.c: Likewise.
12088         * tests/unicase/test-u32-is-casefolded.c: Likewise.
12089         * tests/unicase/test-u32-is-lowercase.c: Likewise.
12090         * tests/unicase/test-u32-is-titlecase.c: Likewise.
12091         * tests/unicase/test-u32-is-uppercase.c: Likewise.
12092         * tests/unicase/test-u32-tolower.c: Likewise.
12093         * tests/unicase/test-u32-totitle.c: Likewise.
12094         * tests/unicase/test-u32-toupper.c: Likewise.
12095         * tests/unicase/test-ulc-casecmp.c: Likewise.
12096         * tests/unicase/test-ulc-casecoll.c: Likewise.
12097         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
12098         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
12099         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
12100         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
12101         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
12102         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
12103         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
12104         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
12105         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
12106         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
12107         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
12108         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
12109         * tests/unictype/test-bidi_byname.c: Likewise.
12110         * tests/unictype/test-bidi_name.c: Likewise.
12111         * tests/unictype/test-bidi_of.c: Likewise.
12112         * tests/unictype/test-bidi_test.c: Likewise.
12113         * tests/unictype/test-block_list.c: Likewise.
12114         * tests/unictype/test-block_of.c: Likewise.
12115         * tests/unictype/test-block_test.c: Likewise.
12116         * tests/unictype/test-categ_and.c: Likewise.
12117         * tests/unictype/test-categ_and_not.c: Likewise.
12118         * tests/unictype/test-categ_byname.c: Likewise.
12119         * tests/unictype/test-categ_name.c: Likewise.
12120         * tests/unictype/test-categ_none.c: Likewise.
12121         * tests/unictype/test-categ_of.c: Likewise.
12122         * tests/unictype/test-categ_or.c: Likewise.
12123         * tests/unictype/test-categ_test_withtable.c: Likewise.
12124         * tests/unictype/test-combining.c: Likewise.
12125         * tests/unictype/test-decdigit.c: Likewise.
12126         * tests/unictype/test-digit.c: Likewise.
12127         * tests/unictype/test-mirror.c: Likewise.
12128         * tests/unictype/test-numeric.c: Likewise.
12129         * tests/unictype/test-pr_byname.c: Likewise.
12130         * tests/unictype/test-pr_test.c: Likewise.
12131         * tests/unictype/test-predicate-part1.h: Likewise.
12132         * tests/unictype/test-scripts.c: Likewise.
12133         * tests/unictype/test-sy_c_ident.c: Likewise.
12134         * tests/unictype/test-sy_java_ident.c: Likewise.
12135         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
12136         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
12137         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
12138         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
12139         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
12140         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
12141         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
12142         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
12143         * tests/uninorm/test-canonical-decomposition.c: Likewise.
12144         * tests/uninorm/test-compat-decomposition.c: Likewise.
12145         * tests/uninorm/test-composition.c: Likewise.
12146         * tests/uninorm/test-decomposing-form.c: Likewise.
12147         * tests/uninorm/test-decomposition.c: Likewise.
12148         * tests/uninorm/test-u8-nfc.c: Likewise.
12149         * tests/uninorm/test-u8-nfd.c: Likewise.
12150         * tests/uninorm/test-u8-nfkc.c: Likewise.
12151         * tests/uninorm/test-u8-nfkd.c: Likewise.
12152         * tests/uninorm/test-u8-normcmp.c: Likewise.
12153         * tests/uninorm/test-u8-normcoll.c: Likewise.
12154         * tests/uninorm/test-u16-nfc.c: Likewise.
12155         * tests/uninorm/test-u16-nfd.c: Likewise.
12156         * tests/uninorm/test-u16-nfkc.c: Likewise.
12157         * tests/uninorm/test-u16-nfkd.c: Likewise.
12158         * tests/uninorm/test-u16-normcmp.c: Likewise.
12159         * tests/uninorm/test-u16-normcoll.c: Likewise.
12160         * tests/uninorm/test-u32-nfc.c: Likewise.
12161         * tests/uninorm/test-u32-nfd.c: Likewise.
12162         * tests/uninorm/test-u32-nfkc.c: Likewise.
12163         * tests/uninorm/test-u32-nfkd.c: Likewise.
12164         * tests/uninorm/test-u32-normalize-big.c: Likewise.
12165         * tests/uninorm/test-u32-normcmp.c: Likewise.
12166         * tests/uninorm/test-u32-normcoll.c: Likewise.
12167         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
12168         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
12169         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
12170         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
12171         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
12172         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
12173         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
12174         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
12175         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
12176         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
12177         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
12178         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
12179         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
12180         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
12181         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
12182         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
12183         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
12184         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
12185         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
12186         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
12187         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
12188         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
12189         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
12190         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
12191         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
12192         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
12193         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
12194         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
12195         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
12196         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
12197         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
12198         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
12199         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
12200         * tests/uniwidth/test-u8-strwidth.c: Likewise.
12201         * tests/uniwidth/test-u8-width.c: Likewise.
12202         * tests/uniwidth/test-u16-strwidth.c: Likewise.
12203         * tests/uniwidth/test-u16-width.c: Likewise.
12204         * tests/uniwidth/test-u32-strwidth.c: Likewise.
12205         * tests/uniwidth/test-u32-width.c: Likewise.
12206         * tests/uniwidth/test-uc_width.c: Likewise.
12207         * tests/uniwidth/test-uc_width2.c: Likewise.
12208         * modules/acl-tests (Files): Add tests/macros.h.
12209         * modules/areadlink-tests (Files): Likewise.
12210         * modules/areadlink-with-size-tests (Files): Likewise.
12211         * modules/areadlinkat-tests (Files): Likewise.
12212         * modules/areadlinkat-with-size-tests (Files): Likewise.
12213         * modules/argmatch-tests (Files): Likewise.
12214         * modules/argv-iter-tests (Files): Likewise.
12215         * modules/array-list-tests (Files): Likewise.
12216         * modules/array-mergesort-tests (Files): Likewise.
12217         * modules/array-oset-tests (Files): Likewise.
12218         * modules/avltree-list-tests (Files): Likewise.
12219         * modules/avltree-oset-tests (Files): Likewise.
12220         * modules/avltreehash-list-tests (Files): Likewise.
12221         * modules/base64-tests (Files): Likewise.
12222         * modules/binary-io-tests (Files): Likewise.
12223         * modules/bitrotate-tests (Files): Likewise.
12224         * modules/btowc-tests (Files): Likewise.
12225         * modules/byteswap-tests (Files): Likewise.
12226         * modules/c-ctype-tests (Files): Likewise.
12227         * modules/c-stack-tests (Files): Likewise.
12228         * modules/c-strcase-tests (Files): Likewise.
12229         * modules/c-strcasestr-tests (Files): Likewise.
12230         * modules/c-strstr-tests (Files): Likewise.
12231         * modules/canonicalize-lgpl-tests (Files): Likewise.
12232         * modules/canonicalize-tests (Files): Likewise.
12233         * modules/carray-list-tests (Files): Likewise.
12234         * modules/ceilf-tests (Files): Likewise.
12235         * modules/ceill-tests (Files): Likewise.
12236         * modules/chown-tests (Files): Likewise.
12237         * modules/cloexec-tests (Files): Likewise.
12238         * modules/copy-file-tests (Files): Likewise.
12239         * modules/count-one-bits-tests (Files): Likewise.
12240         * modules/dprintf-posix-tests (Files): Likewise.
12241         * modules/dup2-tests (Files): Likewise.
12242         * modules/dup3-tests (Files): Likewise.
12243         * modules/duplocale-tests (Files): Likewise.
12244         * modules/fbufmode-tests (Files): Likewise.
12245         * modules/fchdir-tests (Files): Likewise.
12246         * modules/fcntl-safer-tests (Files): Likewise.
12247         * modules/fcntl-tests (Files): Likewise.
12248         * modules/fdopendir-tests (Files): Likewise.
12249         * modules/fdutimensat-tests (Files): Likewise.
12250         * modules/fflush-tests (Files): Likewise.
12251         * modules/filevercmp-tests (Files): Likewise.
12252         * modules/flock-tests (Files): Likewise.
12253         * modules/floorf-tests (Files): Likewise.
12254         * modules/floorl-tests (Files): Likewise.
12255         * modules/fnmatch-tests (Files): Likewise.
12256         * modules/fopen-safer-tests (Files): Likewise.
12257         * modules/fopen-tests (Files): Likewise.
12258         * modules/fpending-tests (Files): Likewise.
12259         * modules/fprintf-posix-tests (Files): Likewise.
12260         * modules/fpurge-tests (Files): Likewise.
12261         * modules/freadable-tests (Files): Likewise.
12262         * modules/freadahead-tests (Files): Likewise.
12263         * modules/freading-tests (Files): Likewise.
12264         * modules/freadptr-tests (Files): Likewise.
12265         * modules/freadseek-tests (Files): Likewise.
12266         * modules/freopen-tests (Files): Likewise.
12267         * modules/frexp-nolibm-tests (Files): Likewise.
12268         * modules/frexp-tests (Files): Likewise.
12269         * modules/frexpl-nolibm-tests (Files): Likewise.
12270         * modules/frexpl-tests (Files): Likewise.
12271         * modules/fseek-tests (Files): Likewise.
12272         * modules/fseeko-tests (Files): Likewise.
12273         * modules/fstrcmp-tests (Files): Likewise.
12274         * modules/fsync-tests (Files): Likewise.
12275         * modules/ftell-tests (Files): Likewise.
12276         * modules/ftello-tests (Files): Likewise.
12277         * modules/func-tests (Files): Likewise.
12278         * modules/futimens-tests (Files): Likewise.
12279         * modules/fwritable-tests (Files): Likewise.
12280         * modules/fwriting-tests (Files): Likewise.
12281         * modules/getcwd-tests (Files): Likewise.
12282         * modules/getdate-tests (Files): Likewise.
12283         * modules/getdelim-tests (Files): Likewise.
12284         * modules/getdtablesize-tests (Files): Likewise.
12285         * modules/getgroups-tests (Files): Likewise.
12286         * modules/getline-tests (Files): Likewise.
12287         * modules/getndelim2-tests (Files): Likewise.
12288         * modules/glob-tests (Files): Likewise.
12289         * modules/hash-tests (Files): Likewise.
12290         * modules/i-ring-tests (Files): Likewise.
12291         * modules/iconv-tests (Files): Likewise.
12292         * modules/iconv_open-utf-tests (Files): Likewise.
12293         * modules/idpriv-drop-tests (Files): Likewise.
12294         * modules/idpriv-droptemp-tests (Files): Likewise.
12295         * modules/inet_ntop-tests (Files): Likewise.
12296         * modules/inet_pton-tests (Files): Likewise.
12297         * modules/isblank-tests (Files): Likewise.
12298         * modules/isfinite-tests (Files): Likewise.
12299         * modules/isinf-tests (Files): Likewise.
12300         * modules/isnan-tests (Files): Likewise.
12301         * modules/isnand-nolibm-tests (Files): Likewise.
12302         * modules/isnand-tests (Files): Likewise.
12303         * modules/isnanf-nolibm-tests (Files): Likewise.
12304         * modules/isnanf-tests (Files): Likewise.
12305         * modules/isnanl-nolibm-tests (Files): Likewise.
12306         * modules/isnanl-tests (Files): Likewise.
12307         * modules/lchown-tests (Files): Likewise.
12308         * modules/ldexpl-tests (Files): Likewise.
12309         * modules/link-tests (Files): Likewise.
12310         * modules/linkat-tests (Files): Likewise.
12311         * modules/linked-list-tests (Files): Likewise.
12312         * modules/linkedhash-list-tests (Files): Likewise.
12313         * modules/localename-tests (Files): Likewise.
12314         * modules/lseek-tests (Files): Likewise.
12315         * modules/lstat-tests (Files): Likewise.
12316         * modules/mbmemcasecmp-tests (Files): Likewise.
12317         * modules/mbmemcasecoll-tests (Files): Likewise.
12318         * modules/mbrtowc-tests (Files): Likewise.
12319         * modules/mbscasecmp-tests (Files): Likewise.
12320         * modules/mbscasestr-tests (Files): Likewise.
12321         * modules/mbschr-tests (Files): Likewise.
12322         * modules/mbscspn-tests (Files): Likewise.
12323         * modules/mbsinit-tests (Files): Likewise.
12324         * modules/mbsncasecmp-tests (Files): Likewise.
12325         * modules/mbsnrtowcs-tests (Files): Likewise.
12326         * modules/mbspbrk-tests (Files): Likewise.
12327         * modules/mbspcasecmp-tests (Files): Likewise.
12328         * modules/mbsrchr-tests (Files): Likewise.
12329         * modules/mbsrtowcs-tests (Files): Likewise.
12330         * modules/mbsspn-tests (Files): Likewise.
12331         * modules/mbsstr-tests (Files): Likewise.
12332         * modules/memchr-tests (Files): Likewise.
12333         * modules/memchr2-tests (Files): Likewise.
12334         * modules/memcmp-tests (Files): Likewise.
12335         * modules/memmem-tests (Files): Likewise.
12336         * modules/memrchr-tests (Files): Likewise.
12337         * modules/mkdir-tests (Files): Likewise.
12338         * modules/mkfifo-tests (Files): Likewise.
12339         * modules/mkfifoat-tests (Files): Likewise.
12340         * modules/mknod-tests (Files): Likewise.
12341         * modules/nanosleep-tests (Files): Likewise.
12342         * modules/nl_langinfo-tests (Files): Likewise.
12343         * modules/obstack-printf-tests (Files): Likewise.
12344         * modules/open-tests (Files): Likewise.
12345         * modules/openat-tests (Files): Likewise.
12346         * modules/pipe-filter-gi-tests (Files): Likewise.
12347         * modules/pipe-filter-ii-tests (Files): Likewise.
12348         * modules/pipe2-tests (Files): Likewise.
12349         * modules/popen-safer-tests (Files): Likewise.
12350         * modules/popen-tests (Files): Likewise.
12351         * modules/posixtm-tests (Files): Likewise.
12352         * modules/pread-tests (Files): Likewise.
12353         * modules/printf-frexp-tests (Files): Likewise.
12354         * modules/printf-frexpl-tests (Files): Likewise.
12355         * modules/printf-posix-tests (Files): Likewise.
12356         * modules/priv-set-tests (Files): Likewise.
12357         * modules/quotearg-tests (Files): Likewise.
12358         * modules/random_r-tests (Files): Likewise.
12359         * modules/rawmemchr-tests (Files): Likewise.
12360         * modules/rbtree-list-tests (Files): Likewise.
12361         * modules/rbtree-oset-tests (Files): Likewise.
12362         * modules/rbtreehash-list-tests (Files): Likewise.
12363         * modules/readlink-tests (Files): Likewise.
12364         * modules/remove-tests (Files): Likewise.
12365         * modules/rename-tests (Files): Likewise.
12366         * modules/renameat-tests (Files): Likewise.
12367         * modules/rmdir-tests (Files): Likewise.
12368         * modules/round-tests (Files): Likewise.
12369         * modules/roundf-tests (Files): Likewise.
12370         * modules/roundl-tests (Files): Likewise.
12371         * modules/safe-alloc-tests (Files): Likewise.
12372         * modules/setenv-tests (Files): Likewise.
12373         * modules/sigaction-tests (Files): Likewise.
12374         * modules/signbit-tests (Files): Likewise.
12375         * modules/sleep-tests (Files): Likewise.
12376         * modules/snprintf-posix-tests (Files): Likewise.
12377         * modules/snprintf-tests (Files): Likewise.
12378         * modules/sprintf-posix-tests (Files): Likewise.
12379         * modules/stat-tests (Files): Likewise.
12380         * modules/stat-time-tests (Files): Likewise.
12381         * modules/strcasestr-tests (Files): Likewise.
12382         * modules/strchrnul-tests (Files): Likewise.
12383         * modules/strerror-tests (Files): Likewise.
12384         * modules/striconv-tests (Files): Likewise.
12385         * modules/striconveh-tests (Files): Likewise.
12386         * modules/striconveha-tests (Files): Likewise.
12387         * modules/strsignal-tests (Files): Likewise.
12388         * modules/strstr-tests (Files): Likewise.
12389         * modules/strtod-tests (Files): Likewise.
12390         * modules/strverscmp-tests (Files): Likewise.
12391         * modules/symlink-tests (Files): Likewise.
12392         * modules/symlinkat-tests (Files): Likewise.
12393         * modules/trunc-tests (Files): Likewise.
12394         * modules/truncf-tests (Files): Likewise.
12395         * modules/truncl-tests (Files): Likewise.
12396         * modules/uname-tests (Files): Likewise.
12397         * modules/unicase/cased-tests (Files): Likewise.
12398         * modules/unicase/ignorable-tests (Files): Likewise.
12399         * modules/unicase/locale-language-tests (Files): Likewise.
12400         * modules/unicase/tolower-tests (Files): Likewise.
12401         * modules/unicase/totitle-tests (Files): Likewise.
12402         * modules/unicase/toupper-tests (Files): Likewise.
12403         * modules/unicase/u8-casecmp-tests (Files): Likewise.
12404         * modules/unicase/u8-casecoll-tests (Files): Likewise.
12405         * modules/unicase/u8-casefold-tests (Files): Likewise.
12406         * modules/unicase/u8-is-cased-tests (Files): Likewise.
12407         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
12408         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
12409         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
12410         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
12411         * modules/unicase/u8-tolower-tests (Files): Likewise.
12412         * modules/unicase/u8-totitle-tests (Files): Likewise.
12413         * modules/unicase/u8-toupper-tests (Files): Likewise.
12414         * modules/unicase/u16-casecmp-tests (Files): Likewise.
12415         * modules/unicase/u16-casecoll-tests (Files): Likewise.
12416         * modules/unicase/u16-casefold-tests (Files): Likewise.
12417         * modules/unicase/u16-is-cased-tests (Files): Likewise.
12418         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
12419         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
12420         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
12421         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
12422         * modules/unicase/u16-tolower-tests (Files): Likewise.
12423         * modules/unicase/u16-totitle-tests (Files): Likewise.
12424         * modules/unicase/u16-toupper-tests (Files): Likewise.
12425         * modules/unicase/u32-casecmp-tests (Files): Likewise.
12426         * modules/unicase/u32-casecoll-tests (Files): Likewise.
12427         * modules/unicase/u32-casefold-tests (Files): Likewise.
12428         * modules/unicase/u32-is-cased-tests (Files): Likewise.
12429         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
12430         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
12431         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
12432         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
12433         * modules/unicase/u32-tolower-tests (Files): Likewise.
12434         * modules/unicase/u32-totitle-tests (Files): Likewise.
12435         * modules/unicase/u32-toupper-tests (Files): Likewise.
12436         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
12437         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
12438         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
12439         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
12440         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
12441         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
12442         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
12443         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
12444         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
12445         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
12446         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
12447         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
12448         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
12449         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
12450         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
12451         * modules/unictype/bidicategory-name-tests (Files): Likewise.
12452         * modules/unictype/bidicategory-of-tests (Files): Likewise.
12453         * modules/unictype/bidicategory-test-tests (Files): Likewise.
12454         * modules/unictype/block-list-tests (Files): Likewise.
12455         * modules/unictype/block-of-tests (Files): Likewise.
12456         * modules/unictype/block-test-tests (Files): Likewise.
12457         * modules/unictype/category-C-tests (Files): Likewise.
12458         * modules/unictype/category-Cc-tests (Files): Likewise.
12459         * modules/unictype/category-Cf-tests (Files): Likewise.
12460         * modules/unictype/category-Cn-tests (Files): Likewise.
12461         * modules/unictype/category-Co-tests (Files): Likewise.
12462         * modules/unictype/category-Cs-tests (Files): Likewise.
12463         * modules/unictype/category-L-tests (Files): Likewise.
12464         * modules/unictype/category-Ll-tests (Files): Likewise.
12465         * modules/unictype/category-Lm-tests (Files): Likewise.
12466         * modules/unictype/category-Lo-tests (Files): Likewise.
12467         * modules/unictype/category-Lt-tests (Files): Likewise.
12468         * modules/unictype/category-Lu-tests (Files): Likewise.
12469         * modules/unictype/category-M-tests (Files): Likewise.
12470         * modules/unictype/category-Mc-tests (Files): Likewise.
12471         * modules/unictype/category-Me-tests (Files): Likewise.
12472         * modules/unictype/category-Mn-tests (Files): Likewise.
12473         * modules/unictype/category-N-tests (Files): Likewise.
12474         * modules/unictype/category-Nd-tests (Files): Likewise.
12475         * modules/unictype/category-Nl-tests (Files): Likewise.
12476         * modules/unictype/category-No-tests (Files): Likewise.
12477         * modules/unictype/category-P-tests (Files): Likewise.
12478         * modules/unictype/category-Pc-tests (Files): Likewise.
12479         * modules/unictype/category-Pd-tests (Files): Likewise.
12480         * modules/unictype/category-Pe-tests (Files): Likewise.
12481         * modules/unictype/category-Pf-tests (Files): Likewise.
12482         * modules/unictype/category-Pi-tests (Files): Likewise.
12483         * modules/unictype/category-Po-tests (Files): Likewise.
12484         * modules/unictype/category-Ps-tests (Files): Likewise.
12485         * modules/unictype/category-S-tests (Files): Likewise.
12486         * modules/unictype/category-Sc-tests (Files): Likewise.
12487         * modules/unictype/category-Sk-tests (Files): Likewise.
12488         * modules/unictype/category-Sm-tests (Files): Likewise.
12489         * modules/unictype/category-So-tests (Files): Likewise.
12490         * modules/unictype/category-Z-tests (Files): Likewise.
12491         * modules/unictype/category-Zl-tests (Files): Likewise.
12492         * modules/unictype/category-Zp-tests (Files): Likewise.
12493         * modules/unictype/category-Zs-tests (Files): Likewise.
12494         * modules/unictype/category-and-not-tests (Files): Likewise.
12495         * modules/unictype/category-and-tests (Files): Likewise.
12496         * modules/unictype/category-byname-tests (Files): Likewise.
12497         * modules/unictype/category-name-tests (Files): Likewise.
12498         * modules/unictype/category-none-tests (Files): Likewise.
12499         * modules/unictype/category-of-tests (Files): Likewise.
12500         * modules/unictype/category-or-tests (Files): Likewise.
12501         * modules/unictype/category-test-withtable-tests (Files): Likewise.
12502         * modules/unictype/combining-class-tests (Files): Likewise.
12503         * modules/unictype/ctype-alnum-tests (Files): Likewise.
12504         * modules/unictype/ctype-alpha-tests (Files): Likewise.
12505         * modules/unictype/ctype-blank-tests (Files): Likewise.
12506         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
12507         * modules/unictype/ctype-digit-tests (Files): Likewise.
12508         * modules/unictype/ctype-graph-tests (Files): Likewise.
12509         * modules/unictype/ctype-lower-tests (Files): Likewise.
12510         * modules/unictype/ctype-print-tests (Files): Likewise.
12511         * modules/unictype/ctype-punct-tests (Files): Likewise.
12512         * modules/unictype/ctype-space-tests (Files): Likewise.
12513         * modules/unictype/ctype-upper-tests (Files): Likewise.
12514         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
12515         * modules/unictype/decimal-digit-tests (Files): Likewise.
12516         * modules/unictype/digit-tests (Files): Likewise.
12517         * modules/unictype/mirror-tests (Files): Likewise.
12518         * modules/unictype/numeric-tests (Files): Likewise.
12519         * modules/unictype/property-alphabetic-tests (Files): Likewise.
12520         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
12521         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
12522         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
12523         Likewise.
12524         * modules/unictype/property-bidi-block-separator-tests (Files):
12525         Likewise.
12526         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
12527         Likewise.
12528         * modules/unictype/property-bidi-common-separator-tests (Files):
12529         Likewise.
12530         * modules/unictype/property-bidi-control-tests (Files): Likewise.
12531         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
12532         Likewise.
12533         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
12534         Likewise.
12535         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
12536         Likewise.
12537         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
12538         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
12539         Likewise.
12540         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
12541         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
12542         Likewise.
12543         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
12544         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
12545         * modules/unictype/property-bidi-segment-separator-tests (Files):
12546         Likewise.
12547         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
12548         * modules/unictype/property-byname-tests (Files): Likewise.
12549         * modules/unictype/property-combining-tests (Files): Likewise.
12550         * modules/unictype/property-composite-tests (Files): Likewise.
12551         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
12552         * modules/unictype/property-dash-tests (Files): Likewise.
12553         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
12554         * modules/unictype/property-default-ignorable-code-point-tests (Files):
12555         Likewise.
12556         * modules/unictype/property-deprecated-tests (Files): Likewise.
12557         * modules/unictype/property-diacritic-tests (Files): Likewise.
12558         * modules/unictype/property-extender-tests (Files): Likewise.
12559         * modules/unictype/property-format-control-tests (Files): Likewise.
12560         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
12561         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
12562         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
12563         * modules/unictype/property-hex-digit-tests (Files): Likewise.
12564         * modules/unictype/property-hyphen-tests (Files): Likewise.
12565         * modules/unictype/property-id-continue-tests (Files): Likewise.
12566         * modules/unictype/property-id-start-tests (Files): Likewise.
12567         * modules/unictype/property-ideographic-tests (Files): Likewise.
12568         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
12569         * modules/unictype/property-ids-trinary-operator-tests (Files):
12570         Likewise.
12571         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
12572         * modules/unictype/property-iso-control-tests (Files): Likewise.
12573         * modules/unictype/property-join-control-tests (Files): Likewise.
12574         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
12575         * modules/unictype/property-line-separator-tests (Files): Likewise.
12576         * modules/unictype/property-logical-order-exception-tests (Files):
12577         Likewise.
12578         * modules/unictype/property-lowercase-tests (Files): Likewise.
12579         * modules/unictype/property-math-tests (Files): Likewise.
12580         * modules/unictype/property-non-break-tests (Files): Likewise.
12581         * modules/unictype/property-not-a-character-tests (Files): Likewise.
12582         * modules/unictype/property-numeric-tests (Files): Likewise.
12583         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
12584         * modules/unictype/property-other-default-ignorable-code-point-tests
12585         (Files): Likewise.
12586         * modules/unictype/property-other-grapheme-extend-tests (Files):
12587         Likewise.
12588         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
12589         * modules/unictype/property-other-id-start-tests (Files): Likewise.
12590         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
12591         * modules/unictype/property-other-math-tests (Files): Likewise.
12592         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
12593         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
12594         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
12595         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
12596         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
12597         * modules/unictype/property-private-use-tests (Files): Likewise.
12598         * modules/unictype/property-punctuation-tests (Files): Likewise.
12599         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
12600         * modules/unictype/property-radical-tests (Files): Likewise.
12601         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
12602         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
12603         * modules/unictype/property-space-tests (Files): Likewise.
12604         * modules/unictype/property-terminal-punctuation-tests (Files):
12605         Likewise.
12606         * modules/unictype/property-test-tests (Files): Likewise.
12607         * modules/unictype/property-titlecase-tests (Files): Likewise.
12608         * modules/unictype/property-unassigned-code-value-tests (Files):
12609         Likewise.
12610         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
12611         * modules/unictype/property-uppercase-tests (Files): Likewise.
12612         * modules/unictype/property-variation-selector-tests (Files): Likewise.
12613         * modules/unictype/property-white-space-tests (Files): Likewise.
12614         * modules/unictype/property-xid-continue-tests (Files): Likewise.
12615         * modules/unictype/property-xid-start-tests (Files): Likewise.
12616         * modules/unictype/property-zero-width-tests (Files): Likewise.
12617         * modules/unictype/scripts-tests (Files): Likewise.
12618         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
12619         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
12620         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
12621         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
12622         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
12623         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
12624         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
12625         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
12626         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
12627         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
12628         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
12629         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
12630         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
12631         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
12632         * modules/uninorm/composition-tests (Files): Likewise.
12633         * modules/uninorm/decomposing-form-tests (Files): Likewise.
12634         * modules/uninorm/decomposition-tests (Files): Likewise.
12635         * modules/uninorm/filter-tests (Files): Likewise.
12636         * modules/uninorm/nfc-tests (Files): Likewise.
12637         * modules/uninorm/nfd-tests (Files): Likewise.
12638         * modules/uninorm/nfkc-tests (Files): Likewise.
12639         * modules/uninorm/nfkd-tests (Files): Likewise.
12640         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
12641         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
12642         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
12643         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
12644         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
12645         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
12646         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
12647         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
12648         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
12649         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
12650         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
12651         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
12652         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
12653         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
12654         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
12655         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
12656         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
12657         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
12658         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
12659         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
12660         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
12661         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
12662         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
12663         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
12664         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
12665         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
12666         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
12667         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
12668         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
12669         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
12670         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
12671         * modules/uniwidth/u8-width-tests (Files): Likewise.
12672         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
12673         * modules/uniwidth/u16-width-tests (Files): Likewise.
12674         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
12675         * modules/uniwidth/u32-width-tests (Files): Likewise.
12676         * modules/uniwidth/width-tests (Files): Likewise.
12677         * modules/unlink-tests (Files): Likewise.
12678         * modules/unsetenv-tests (Files): Likewise.
12679         * modules/usleep-tests (Files): Likewise.
12680         * modules/utimens-tests (Files): Likewise.
12681         * modules/utimensat-tests (Files): Likewise.
12682         * modules/vasnprintf-posix-tests (Files): Likewise.
12683         * modules/vasnprintf-tests (Files): Likewise.
12684         * modules/vasprintf-posix-tests (Files): Likewise.
12685         * modules/vasprintf-tests (Files): Likewise.
12686         * modules/vdprintf-posix-tests (Files): Likewise.
12687         * modules/vfprintf-posix-tests (Files): Likewise.
12688         * modules/vprintf-posix-tests (Files): Likewise.
12689         * modules/vsnprintf-posix-tests (Files): Likewise.
12690         * modules/vsnprintf-tests (Files): Likewise.
12691         * modules/vsprintf-posix-tests (Files): Likewise.
12692         * modules/wcrtomb-tests (Files): Likewise.
12693         * modules/wcsnrtombs-tests (Files): Likewise.
12694         * modules/wcsrtombs-tests (Files): Likewise.
12695         * modules/wctype-tests (Files): Likewise.
12696         * modules/wcwidth-tests (Files): Likewise.
12697         * modules/xmemdup0-tests (Files): Likewise.
12698         * modules/xprintf-posix-tests (Files): Likewise.
12699         * modules/xvasprintf-tests (Files): Likewise.
12700
12701 2009-12-24  Eric Blake  <ebb9@byu.net>
12702
12703         test-nanosleep: fix typo
12704         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
12705         patch.
12706         Reported by Bruno Haible.
12707
12708 2009-12-24  Bruno Haible  <bruno@clisp.org>
12709
12710         Reduce namespace pollution on glibc systems.
12711         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
12712         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
12713         systems.
12714         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
12715         <getopt.h> on glibc systems.
12716         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
12717         systems.
12718         * lib/fcntl.c: Include <unistd.h> here instead.
12719
12720 2009-12-24  Bruno Haible  <bruno@clisp.org>
12721
12722         * lib/stdlib.in.h (includes): Fix typo in today's commit.
12723
12724 2009-12-24  Eric Blake  <ebb9@byu.net>
12725
12726         tests: add signature checks
12727         * tests/signature.h (SIGNATURE_CHECK): New file.
12728         * modules/atexit-tests (Files): Use it.
12729         * modules/btowc-tests (Files): Likewise.
12730         * modules/canonicalize-lgpl-tests (Files): Likewise.
12731         * modules/ceilf-tests (Files): Likewise.
12732         * modules/ceill-tests (Files): Likewise.
12733         * modules/chown-tests (Files): Likewise.
12734         * modules/dprintf-posix-tests (Files): Likewise.
12735         * modules/dup2-tests (Files): Likewise.
12736         * modules/dup3-tests (Files): Likewise.
12737         * modules/duplocale-tests (Files): Likewise.
12738         * modules/fchdir-tests (Files): Likewise.
12739         * modules/fcntl-tests (Files): Likewise.
12740         * modules/fdopendir-tests (Files): Likewise.
12741         * modules/fflush-tests (Files): Likewise.
12742         * modules/flock-tests (Files): Likewise.
12743         * modules/floorf-tests (Files): Likewise.
12744         * modules/floorl-tests (Files): Likewise.
12745         * modules/fnmatch-tests (Files): Likewise.
12746         * modules/fopen-tests (Files): Likewise.
12747         * modules/fprintf-posix-tests (Files): Likewise.
12748         * modules/freopen-tests (Files): Likewise.
12749         * modules/frexp-nolibm-tests (Files): Likewise.
12750         * modules/frexp-tests (Files): Likewise.
12751         * modules/frexpl-nolibm-tests (Files): Likewise.
12752         * modules/frexpl-tests (Files): Likewise.
12753         * modules/fseek-tests (Files): Likewise.
12754         * modules/fseeko-tests (Files): Likewise.
12755         * modules/fsync-tests (Files): Likewise.
12756         * modules/ftell-tests (Files): Likewise.
12757         * modules/ftello-tests (Files): Likewise.
12758         * modules/futimens-tests (Files): Likewise.
12759         * modules/getaddrinfo-tests (Files): Likewise.
12760         * modules/getcwd-tests (Files): Likewise.
12761         * modules/getdelim-tests (Files): Likewise.
12762         * modules/getdtablesize-tests (Files): Likewise.
12763         * modules/getgroups-tests (Files): Likewise.
12764         * modules/gethostname-tests (Files): Likewise.
12765         * modules/getline-tests (Files): Likewise.
12766         * modules/getopt-posix-tests (Files): Likewise.
12767         * modules/gettimeofday-tests (Files): Likewise.
12768         * modules/glob-tests (Files): Likewise.
12769         * modules/iconv-tests (Files): Likewise.
12770         * modules/inet_ntop-tests (Files): Likewise.
12771         * modules/inet_pton-tests (Files): Likewise.
12772         * modules/isblank-tests (Files): Likewise.
12773         * modules/lchown-tests (Files): Likewise.
12774         * modules/ldexpl-tests (Files): Likewise.
12775         * modules/link-tests (Files): Likewise.
12776         * modules/linkat-tests (Files): Likewise.
12777         * modules/lseek-tests (Files): Likewise.
12778         * modules/lstat-tests (Files): Likewise.
12779         * modules/mbrtowc-tests (Files): Likewise.
12780         * modules/mbsinit-tests (Files): Likewise.
12781         * modules/mbsnrtowcs-tests (Files): Likewise.
12782         * modules/mbsrtowcs-tests (Files): Likewise.
12783         * modules/memchr-tests (Files): Likewise.
12784         * modules/memcmp-tests (Files): Likewise.
12785         * modules/memmem-tests (Files): Likewise.
12786         * modules/memrchr-tests (Files): Likewise.
12787         * modules/mkdir-tests (Files): Likewise.
12788         * modules/mkfifo-tests (Files): Likewise.
12789         * modules/mkfifoat-tests (Files): Likewise.
12790         * modules/mknod-tests (Files): Likewise.
12791         * modules/nanosleep-tests (Files): Likewise.
12792         * modules/nl_langinfo-tests (Files): Likewise.
12793         * modules/obstack-printf-tests (Files): Likewise.
12794         * modules/open-tests (Files): Likewise.
12795         * modules/openat-tests (Files): Likewise.
12796         * modules/perror-tests (Files): Likewise.
12797         * modules/pipe2-tests (Files): Likewise.
12798         * modules/poll-tests (Files): Likewise.
12799         * modules/popen-tests (Files): Likewise.
12800         * modules/posix_spawn-tests (Files): Likewise.
12801         * modules/posix_spawnp-tests (Files): Likewise.
12802         * modules/pread-tests (Files): Likewise.
12803         * modules/printf-posix-tests (Files): Likewise.
12804         * modules/pty-tests (Files): Likewise.
12805         * modules/random_r-tests (Files): Likewise.
12806         * modules/rawmemchr-tests (Files): Likewise.
12807         * modules/readlink-tests (Files): Likewise.
12808         * modules/remove-tests (Files): Likewise.
12809         * modules/rename-tests (Files): Likewise.
12810         * modules/renameat-tests (Files): Likewise.
12811         * modules/rmdir-tests (Files): Likewise.
12812         * modules/round-tests (Files): Likewise.
12813         * modules/roundf-tests (Files): Likewise.
12814         * modules/roundl-tests (Files): Likewise.
12815         * modules/select-tests (Files): Likewise.
12816         * modules/setenv-tests (Files): Likewise.
12817         * modules/sigaction-tests (Files): Likewise.
12818         * modules/sleep-tests (Files): Likewise.
12819         * modules/snprintf-posix-tests (Files): Likewise.
12820         * modules/snprintf-tests (Files): Likewise.
12821         * modules/sprintf-posix-tests (Files): Likewise.
12822         * modules/stat-tests (Files): Likewise.
12823         * modules/strcasestr-tests (Files): Likewise.
12824         * modules/strchrnul-tests (Files): Likewise.
12825         * modules/strerror-tests (Files): Likewise.
12826         * modules/strsignal-tests (Files): Likewise.
12827         * modules/strstr-tests (Files): Likewise.
12828         * modules/strtod-tests (Files): Likewise.
12829         * modules/strverscmp-tests (Files): Likewise.
12830         * modules/symlink-tests (Files): Likewise.
12831         * modules/symlinkat-tests (Files): Likewise.
12832         * modules/times-tests (Files): Likewise.
12833         * modules/trunc-tests (Files): Likewise.
12834         * modules/truncf-tests (Files): Likewise.
12835         * modules/truncl-tests (Files): Likewise.
12836         * modules/tsearch-tests (Files): Likewise.
12837         * modules/uname-tests (Files): Likewise.
12838         * modules/unlink-tests (Files): Likewise.
12839         * modules/unsetenv-tests (Files): Likewise.
12840         * modules/usleep-tests (Files): Likewise.
12841         * modules/utimensat-tests (Files): Likewise.
12842         * modules/vasprintf-tests (Files): Likewise.
12843         * modules/vdprintf-posix-tests (Files): Likewise.
12844         * modules/vfprintf-posix-tests (Files): Likewise.
12845         * modules/vprintf-posix-tests (Files): Likewise.
12846         * modules/vsnprintf-posix-tests (Files): Likewise.
12847         * modules/vsnprintf-tests (Files): Likewise.
12848         * modules/vsprintf-posix-tests (Files): Likewise.
12849         * modules/wcrtomb-tests (Files): Likewise.
12850         * modules/wcsnrtombs-tests (Files): Likewise.
12851         * modules/wcsrtombs-tests (Files): Likewise.
12852         * modules/wcwidth-tests (Files): Likewise.
12853         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
12854         * tests/test-isinf.c (isinf): Likewise.
12855         * tests/test-isnan.c (isnan): Likewise.
12856         * tests/test-signbit.c (signbit): Likewise.
12857         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
12858         declaration, either as macro or with correct signature.
12859         (select): Ensure function under test is declared with correct
12860         signature in correct header.
12861         * tests/test-atexit.c (atexit): Likewise.
12862         * tests/test-btowc.c (btowc): Likewise.
12863         * tests/test-canonicalize-lgpl.c (realpath)
12864         (canonicalize_file_name): Likewise.
12865         * tests/test-ceilf1.c (ceilf): Likewise.
12866         * tests/test-ceill.c (ceill): Likewise.
12867         * tests/test-chown.c (chown): Likewise.
12868         * tests/test-dprintf-posix.c (dprintf): Likewise.
12869         * tests/test-dup2.c (dup2): Likewise.
12870         * tests/test-dup3.c (dup3): Likewise.
12871         * tests/test-duplocale.c (duplocale): Likewise.
12872         * tests/test-fchdir.c (fchdir): Likewise.
12873         * tests/test-fchownat.c (fchownat): Likewise.
12874         * tests/test-fcntl.c (fcntl): Likewise.
12875         * tests/test-fdopendir.c (fdopendir): Likewise.
12876         * tests/test-fflush.c (fflush): Likewise.
12877         * tests/test-flock.c (flock): Likewise.
12878         * tests/test-floorf1.c (floorf): Likewise.
12879         * tests/test-floorl.c (floorl): Likewise.
12880         * tests/test-fnmatch.c (fnmatch): Likewise.
12881         * tests/test-fopen.c (fopen): Likewise.
12882         * tests/test-fprintf-posix.c (fprintf): Likewise.
12883         * tests/test-freopen.c (freopen): Likewise.
12884         * tests/test-frexp.c (frexp): Likewise.
12885         * tests/test-frexpl.c (frexpl): Likewise.
12886         * tests/test-fseek.c (fseek): Likewise.
12887         * tests/test-fseeko.c (fseeko): Likewise.
12888         * tests/test-fstatat.c (fstatat): Likewise.
12889         * tests/test-fsync.c (fsync): Likewise.
12890         * tests/test-ftell.c (ftell): Likewise.
12891         * tests/test-ftello.c (ftello): Likewise.
12892         * tests/test-futimens.c (futimens): Likewise.
12893         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
12894         (gai_strerror): Likewise.
12895         * tests/test-getcwd.c (getcwd): Likewise.
12896         * tests/test-getdelim.c (getdelim): Likewise.
12897         * tests/test-getdtablesize.c (getdtablesize): Likewise.
12898         * tests/test-getgroups.c (getgroups): Likewise.
12899         * tests/test-gethostname.c (gethostname): Likewise.
12900         * tests/test-getline.c (getline): Likewise.
12901         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
12902         Likewise.
12903         * tests/test-gettimeofday.c (gettimeofday): Likewise.
12904         * tests/test-glob.c (glob, globfree): Likewise.
12905         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
12906         * tests/test-inet_ntop.c (inet_ntop): Likewise.
12907         * tests/test-inet_pton.c (inet_pton): Likewise.
12908         * tests/test-isblank.c (isblank): Likewise.
12909         * tests/test-lchown.c (lchown): Likewise.
12910         * tests/test-ldexpl.c (ldexpl): Likewise.
12911         * tests/test-link.c (link): Likewise.
12912         * tests/test-linkat.c (linkat): Likewise.
12913         * tests/test-lseek.c (lseek): Likewise.
12914         * tests/test-lstat.c (lstat): Likewise.
12915         * tests/test-mbrtowc.c (mbrtowc): Likewise.
12916         * tests/test-mbsinit.c (mbsinit): Likewise.
12917         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
12918         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
12919         * tests/test-memchr.c (memchr): Likewise.
12920         * tests/test-memcmp.c (memcmp): Likewise.
12921         * tests/test-memmem.c (memmem): Likewise.
12922         * tests/test-memrchr.c (memrchr): Likewise.
12923         * tests/test-mkdir.c (mkdir): Likewise.
12924         * tests/test-mkdirat.c (mkdirat): Likewise.
12925         * tests/test-mkfifo.c (mkfifo): Likewise.
12926         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
12927         * tests/test-mknod.c (mknod): Likewise.
12928         * tests/test-nanosleep.c (nanosleep): Likewise.
12929         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
12930         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
12931         Likewise.
12932         * tests/test-open.c (open): Likewise.
12933         * tests/test-openat.c (openat): Likewise.
12934         * tests/test-perror.c (perror): Likewise.
12935         * tests/test-pipe2.c (pipe2): Likewise.
12936         * tests/test-poll.c (poll): Likewise.
12937         * tests/test-popen.c (popen, pclose): Likewise.
12938         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
12939         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
12940         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
12941         (posix_spawn_file_actions_destroy)
12942         (posix_spawn_file_actions_addclose)
12943         (posix_spawn_file_actions_addopen)
12944         (posix_spawn_file_actions_adddup2): Likewise.
12945         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
12946         * tests/test-pread.c (pread): Likewise.
12947         * tests/test-printf-posix.c (printf): Likewise.
12948         * tests/test-pty.c (openpty, forkpty): Likewise.
12949         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
12950         (random_r): Likewise.
12951         * tests/test-rawmemchr.c (rawmemchr): Likewise.
12952         * tests/test-readlink.c (readlink): Likewise.
12953         * tests/test-remove.c (remove): Likewise.
12954         * tests/test-rename.c (rename): Likewise.
12955         * tests/test-renameat.c (renameat): Likewise.
12956         * tests/test-rmdir.c (rmdir): Likewise.
12957         * tests/test-round1.c (round): Likewise.
12958         * tests/test-roundf1.c (roundf): Likewise.
12959         * tests/test-roundl.c (roundl): Likewise.
12960         * tests/test-setenv.c (setenv): Likewise.
12961         * tests/test-sigaction.c (sigaction): Likewise.
12962         * tests/test-sleep.c (sleep): Likewise.
12963         * tests/test-snprintf.c (snprintf): Likewise.
12964         * tests/test-sprintf-posix.c (sprintf): Likewise.
12965         * tests/test-stat.c (stat): Likewise.
12966         * tests/test-stpncpy.c (stpncpy): Likewise.
12967         * tests/test-strcasestr.c (strcasestr): Likewise.
12968         * tests/test-strchrnul.c (strchrnul): Likewise.
12969         * tests/test-strerror.c (strerror): Likewise.
12970         * tests/test-strsignal.c (strsignal): Likewise.
12971         * tests/test-strstr.c (strstr): Likewise.
12972         * tests/test-strtod.c (strtod): Likewise.
12973         * tests/test-strverscmp.c (strverscmp): Likewise.
12974         * tests/test-symlink.c (symlink): Likewise.
12975         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
12976         * tests/test-times.c (times): Likewise.
12977         * tests/test-trunc1.c (trunc): Likewise.
12978         * tests/test-truncf1.c (truncf): Likewise.
12979         * tests/test-truncl.c (truncl): Likewise.
12980         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
12981         Likewise.
12982         * tests/test-uname.c (uname): Likewise.
12983         * tests/test-unlink.c (unlink): Likewise.
12984         * tests/test-unlinkat.c (unlinkat): Likewise.
12985         * tests/test-unsetenv.c (unsetenv): Likewise.
12986         * tests/test-usleep.c (usleep): Likewise.
12987         * tests/test-utimensat.c (utimensat): Likewise.
12988         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
12989         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
12990         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
12991         * tests/test-vprintf-posix.c (vprintf): Likewise.
12992         * tests/test-vsnprintf.c (vsnprintf): Likewise.
12993         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
12994         * tests/test-wcrtomb.c (wcrtomb): Likewise.
12995         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
12996         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
12997         * tests/test-wcwidth.c (wcwidth): Likewise.
12998
12999         build: pull in conditional headers during GNULIB_POSIXCHECK
13000         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
13001         definitions from any conditionally-included headers.
13002         * lib/stdlib.in.h (includes): Likewise.
13003         * lib/unistd.in.h (includes): Likewise.
13004
13005 2009-12-24  Bruno Haible  <bruno@clisp.org>
13006
13007         * tests/test-argv-iter.c: Include header file being tested immediately
13008         after config.h.
13009         * tests/test-base64.c: Likewise.
13010         * tests/test-flock.c: Likewise.
13011         * tests/test-fsync.c: Likewise.
13012         * tests/test-getdate.c: Likewise.
13013         * tests/test-getndelim2.c: Likewise.
13014         * tests/test-isfinite.c: Likewise.
13015         * tests/test-isinf.c: Likewise.
13016         * tests/test-strerror.c: Likewise.
13017         * tests/test-strsignal.c: Likewise.
13018
13019 2009-12-23  Eric Blake  <ebb9@byu.net>
13020
13021         unistd: work around cygwin bug
13022         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
13023         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
13024         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
13025
13026 2009-12-23  Bruno Haible  <bruno@clisp.org>
13027
13028         localename: More tests.
13029         * tests/test-localename.c (SIZEOF): New macro.
13030         (categories): New variable.
13031         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
13032         test_locale_name_default): Add test w.r.t. thread locale.
13033         (test_locale_name_thread): New function.
13034         (main): Invoke it.
13035
13036         localename: Make aware of thread locale.
13037         * lib/localename.h (gl_locale_name_thread): New declaration.
13038         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
13039         behaviour with respect to thread locale.
13040         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
13041         <langinfo.h>, glthread/lock.h.
13042         (SIZE_BITS): New macro.
13043         (string_hash): New function.
13044         (struct hash_node): New type.
13045         (HASH_TABLE_SIZE): New macro.
13046         (struniq_hash_table, struniq_lock): New variables.
13047         (struniq): New function.
13048         (gl_locale_name_thread): New function.
13049         (gl_locale_name): Invoke it.
13050         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
13051         * modules/localename (Depends-on): Add lock.
13052         Reported by Mike Gran <spk121@yahoo.com>.
13053
13054 2009-12-23  Eric Blake  <ebb9@byu.net>
13055
13056         va-args: new module
13057         * modules/va-args: New file.
13058         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
13059         * MODULES.html.sh (Core language properties): Mention it.
13060
13061         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
13062         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
13063         named alias for __attribute__((__unused__)).
13064         * lib/chown.c: Update client.
13065         * lib/fchmodat.c: Likewise.
13066         * lib/fts.c: Likewise.
13067         * lib/getdate.y: Likewise.
13068         * lib/getgroups.c: Likewise.
13069         * lib/getopt.c: Likewise.
13070         * lib/getugroups.c: Likewise.
13071         * lib/mkdir.c: Likewise.
13072         * lib/mkfifo.c: Likewise.
13073         * lib/mkfifoat.c: Likewise.
13074         * lib/mknod.c: Likewise.
13075         * lib/mknodat.c: Likewise.
13076         * lib/readlink.c: Likewise.
13077         * lib/se-context.in.h: Likewise.
13078         * lib/se-selinux.in.h: Likewise.
13079         * lib/sockets.c: Likewise.
13080         * lib/symlink.c: Likewise.
13081         * lib/symlinkat.c: Likewise.
13082         * lib/unicodeio.c: Likewise.
13083         * lib/unistr.h: Likewise.
13084         * tests/test-areadlink.c: Likewise.
13085         * tests/test-areadlinkat.c: Likewise.
13086         * tests/test-filenamecat.c: Likewise.
13087         * tests/test-fseeko.c: Likewise.
13088         * tests/test-ftello.c: Likewise.
13089         * tests/test-getdate.c: Likewise.
13090         * tests/test-getgroups.c: Likewise.
13091         * tests/test-gethostname.c: Likewise.
13092         * tests/test-quotearg.c: Likewise.
13093         * tests/test-version-etc.c: Likewise.
13094         * tests/test-xalloc-die.c: Likewise.
13095         * tests/test-xfprintf-posix.c: Likewise.
13096         * tests/test-xprintf-posix.c: Likewise.
13097         * tests/test-xvasprintf.c: Likewise.
13098
13099         tests: avoid compiler warnings
13100         * tests/test-fcntl.c (main): Delete unused parameters.
13101         * tests/test-freopen-safer.c (main): Likewise.
13102         * tests/test-xalloc-die.c (main): Mark unused parameters.
13103         * tests/test-fseeko.c (main): Likewise.
13104         * tests/test-ftello.c (main): Likewise.
13105         * tests/test-nanosleep.c (main): Avoid declaration warning.
13106         * tests/test-sleep.c (main): Likewise.
13107         * tests/test-unsetenv.c (main): Silence warning about string
13108         literal.
13109         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13110
13111 2009-12-23  Bruno Haible  <bruno@clisp.org>
13112
13113         * tests/test-localename.c (test_locale_name): New function, extracted
13114         from main. Also test mixed situations.
13115         (test_locale_name_posix, test_locale_name_environ,
13116         test_locale_name_default): New functions.
13117         (main): Invoke them all.
13118         * modules/localename-tests (configure.ac): Test for newlocale.
13119
13120 2009-12-23  Bruno Haible  <bruno@clisp.org>
13121
13122         unistd: Ensure getcwd gets declared before being overridden.
13123         * lib/unistd.in.h: Conditionally include <io.h>.
13124
13125 2009-12-22  Bruno Haible  <bruno@clisp.org>
13126
13127         wchar: Diagnose broken combination of glibc and gcc versions and flags.
13128         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
13129         (gl_WCHAR_H): Invoke it.
13130         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
13131         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
13132         Reported by Karl Berry <karl@freefriends.org>.
13133
13134 2009-12-22  Eric Blake  <ebb9@byu.net>
13135
13136         math, unistd: avoid redundant includes
13137         * lib/math.in.h (isnan): No need to re-include <math.h>.
13138         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
13139
13140         getsubopt: work around cygwin bug
13141         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
13142         avoid conflicting with system getsubopt.
13143         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
13144         bug.
13145
13146         getopt: synchronize from glibc
13147         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
13148         parameter order.  Adjust all callers.
13149         (_getopt_internal_r, main): Adjust quoting in error messages.
13150         Drop considerations for outdated POSIX 1003.2 error message.
13151         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
13152         callers.
13153         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
13154
13155         test-getopt: test stderr behavior
13156         * modules/getopt-posix-tests (Depends-on): Add dup2.
13157         * tests/test-getopt.c (ASSERT): Avoid stderr.
13158         (main): Move stderr to a temporary file.
13159         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
13160         Instead, add parameter to inform caller if output occurred.
13161         (test_getopt): Adjust all existing tests to expect silence, and
13162         add new tests of leading ":".
13163         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
13164         glibc shortcomings with leading "-:" or "+:" in optstring.
13165         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13166         Likewise.
13167         * doc/posix-functions/getopt.texi (getopt): Likewise.
13168
13169         test-getopt: enhance test
13170         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
13171         supports optind=0.
13172         * tests/test-getopt.c (OPTIND_MIN): Move...
13173         * tests/test-getopt.h (OPTIND_MIN): ...here.
13174         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
13175         Require that optind=0 works, since modern BSD supports it in
13176         addition to optreset, and since coreutils expects it.
13177         (test_getopt_long_only): New test.
13178         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
13179         glibc shortcomings with 'W;', and enforcement of optind=0.
13180         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13181         Likewise.
13182
13183 2009-12-21  Bruno Haible  <bruno@clisp.org>
13184
13185         localename: Improvements for MacOS X and Cygwin.
13186         * lib/localename.h (gl_locale_name_environ): New declaration.
13187         * lib/localename.c (gl_locale_name_environ): New function, extracted from
13188         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
13189         (gl_locale_name_posix): Invoke it.
13190         (gl_locale_name_default): Add comments. Use Windows native API also on
13191         Cygwin.
13192
13193 2009-12-21  Bruno Haible  <bruno@clisp.org>
13194
13195         Update list of Win32 locale ids.
13196         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
13197         (LANG_SAMI): Renamed from LANG_SAAMI.
13198         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
13199         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
13200         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
13201         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
13202         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
13203         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
13204         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
13205         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
13206         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
13207         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
13208         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
13209         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
13210         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
13211         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
13212         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
13213         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
13214         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
13215         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
13216         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
13217         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
13218         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
13219         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
13220         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
13221         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
13222         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
13223         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
13224         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
13225         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
13226         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
13227         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
13228         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
13229         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
13230         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
13231         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
13232         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
13233         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
13234         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
13235         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
13236         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
13237         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
13238         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
13239         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
13240         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
13241         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
13242         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
13243         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
13244         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
13245         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
13246         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
13247         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
13248         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
13249         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
13250         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
13251         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
13252         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
13253         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
13254         Add more languages and countries for Sami, Sorbian. Add more countries
13255         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
13256         for Pashto. Change country for Syriac, Tswana.
13257
13258 2009-12-21  Eric Blake  <ebb9@byu.net>
13259
13260         test-utimens: avoid spurious failure
13261         * tests/test-chown.h (nap): Factor...
13262         * tests/nap.h: ...into new file.
13263         * tests/test-lchown.h (nap): Avoid duplication.
13264         * tests/test-utimens-common.h (nap): Use shared implementation,
13265         necessary on file systems with 1-second resolution.
13266         * modules/chown-tests (Files): Include new file.
13267         * modules/fdutimensat-tests (Files): Likewise.
13268         * modules/futimens-tests (Files): Likewise.
13269         * modules/lchown-tests (Files): Likewise.
13270         * modules/openat-tests (Files): Likewise.
13271         * modules/utimens-tests (Files): Likewise.
13272         * modules/utimensat-tests (Files): Likewise.
13273
13274 2009-12-19  Eric Blake  <ebb9@byu.net>
13275
13276         futimens, utimensat: work around Linux bug
13277         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
13278         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13279         * lib/utimensat.c (rpl_utimensat): Work around it.
13280         * lib/futimens.c (rpl_futimens): Adjust comment.
13281
13282         utimens: work around Linux ctime bug
13283         * lib/utimens.c (detect_ctime_bug): New helper function.
13284         (update_timespec): Differentiate between workaround needed for
13285         this bug vs. what is needed for systems that lack utimensat.
13286         (fdutimens, lutimens): Work around bug.
13287
13288         utimens: check for ctime update
13289         * tests/test-utimens-common.h (check_ctime): Define.
13290         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
13291         * tests/test-futimens.h (test_futimens): Likewise.
13292         * tests/test-lutimens.h (test_lutimens): Likewise.
13293         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13294         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13295
13296 2009-12-19  Bruno Haible  <bruno@clisp.org>
13297
13298         dprintf-posix: Check against memory leak fixed on 2009-12-15.
13299         * tests/test-dprintf-posix2.sh: New file.
13300         * tests/test-dprintf-posix2.c: New file.
13301         * modules/dprintf-posix-tests (Files): Add them.
13302         (configure.ac): Check for getrlimit and setrlimit.
13303         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
13304
13305 2009-12-19  Bruno Haible  <bruno@clisp.org>
13306
13307         fprintf-posix: Check against memory leak fixed on 2009-12-15.
13308         * tests/test-fprintf-posix3.sh: New file.
13309         * tests/test-fprintf-posix3.c: New file.
13310         * modules/fprintf-posix-tests (Files): Add them.
13311         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
13312
13313 2009-12-19  Eric Blake  <ebb9@byu.net>
13314
13315         dirfd: fix prototype
13316         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
13317         * lib/dirfd.c (dirfd): Likewise.
13318
13319         canonicalize: reduce memory usage
13320         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
13321         allocation to size.
13322         Reported by Solar Designer <solar@openwall.com>.
13323
13324 2009-12-19  Bruno Haible  <bruno@clisp.org>
13325
13326         New module attribute 'Applicability'.
13327         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
13328         * gnulib-tool: New option --extract-applicability.
13329         (func_usage): Document it.
13330         (sed_extract_prog): Recognize it.
13331         (func_get_applicability): New function.
13332         (func_import): Generalize handling of 'link-warning' module.
13333         * modules/link-warning (Applicability): New section.
13334         * modules/arg-nonnull (Applicability): New section.
13335         Repoted by Simon Josefsson <simon@josefsson.org>.
13336
13337 2009-12-19  Bruno Haible  <bruno@clisp.org>
13338
13339         fflush: tweak
13340         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
13341         * lib/fseeko.c (rpl_fseeko): Likewise.
13342
13343 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
13344
13345         * lib/gl_list.h: Fix typo in comment.
13346
13347 2009-12-16  Eric Blake  <ebb9@byu.net>
13348
13349         fcntl: use to simplify other modules
13350         * modules/cloexec (Depends-on): Add fcntl.
13351         * modules/fchdir (Depends-on): Likewise.
13352         * modules/fd-safer-flag (Depends-on): Likewise.
13353         * modules/unistd-safer (Depends-on): Likewise.
13354         * modules/dup3 (configure.ac): Set module indicator.
13355         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
13356         missing.
13357         * lib/fchdir.c (_gl_register_dup): Fix comment.
13358         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
13359         * lib/dup-safer.c (dup_safer): Likewise.
13360         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
13361         * lib/dup3.c (dup3): Likewise.
13362         * tests/test-fchdir.c (main): Enhance test.
13363         Fixes a dup_cloexec bug reported by Ondřej Vašík.
13364
13365         fcntl: port portions of fcntl to mingw
13366         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
13367         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
13368         replacement for mingw.
13369         * modules/fcntl (Description): Update.
13370         (Depends-on): Add dup2.
13371         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
13372         * modules/fcntl-h (Makefile.am): Substitute it.
13373         * lib/fcntl.in.h (fcntl): Update declaration.
13374         (F_DUPFD, F_GETFD): New macros, when needed.
13375         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
13376         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
13377         * tests/test-fcntl.c (check_flags, main): Enhance test for items
13378         we now guarantee.
13379
13380         fcntl: work around cygwin bug in F_DUPFD
13381         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
13382         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
13383         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
13384         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
13385         * doc/posix-functions/fcntl.texi (fcntl): Document it.
13386
13387         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
13388         * modules/fcntl (Files): List new files.
13389         (configure.ac): Run a test.
13390         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
13391         * lib/fcntl.c (rpl_fcntl): Likewise.
13392         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
13393         (gl_FCNTL_H): Always replace fcntl.h.
13394         * modules/fcntl-h (Makefile.am): Substitute witnesses.
13395         * lib/fcntl.in.h (fcntl): Declare replacement.
13396         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
13397         needed, plus a witness.
13398         * doc/posix-functions/fcntl.texi (fcntl): Document this.
13399         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
13400         * tests/test-fcntl.c: New file.
13401         * modules/fcntl-tests: Likewise.
13402
13403         binary-io: avoid potential compilation warning
13404         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
13405         directives.
13406
13407         fflush: avoid compilation error on NetBSD
13408         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
13409         between off_t and fpos_t, since the latter is sometimes a struct.
13410         * lib/fseeko.c (rpl_fseeko): Likewise.
13411         Reported by Alexander Nasonov <alnsn@yandex.ru>.
13412
13413 2009-12-15  Eric Blake  <ebb9@byu.net>
13414
13415         fcntl-h, stdio, sys_ioctl: fix declarations
13416         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
13417         function must not take arguments.
13418         * lib/sys_ioctl.in.h (ioctl): Likewise.
13419         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
13420         (open): Add a link warning.
13421
13422 2009-12-15  Jim Meyering  <meyering@redhat.com>
13423
13424         areadlink, areadlink-with-size: relax license to LGPLv2+
13425         * modules/areadlink (License): Relax to LGPLv2+.
13426         * modules/areadlink-with-size (License): Likewise.
13427
13428 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
13429             Bruno Haible  <bruno@clisp.org>
13430
13431         *printf: Fix memory leak.
13432         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
13433         * lib/vfprintf.c (vfprintf): Likewise.
13434         * lib/dprintf.c (dprintf): Likewise.
13435         * lib/vdprintf.c (vdprintf): Likewise.
13436
13437 2009-12-14  Eric Blake  <ebb9@byu.net>
13438
13439         accept4: adjust module dependencies
13440         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
13441
13442         utimens: one more try at avoiding compiler warning
13443         * lib/utimens.c (lutimens): Lower scope of result.
13444
13445 2009-12-13  Bruno Haible  <bruno@clisp.org>
13446
13447         Move the malloc checking from module 'list' to new module 'xlist'.
13448         * modules/xlist: New file.
13449         * lib/gl_xlist.h: New file.
13450         * lib/gl_xlist.c: New file.
13451         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
13452         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
13453         gl_list_add_last, gl_list_add_before, gl_list_add_after,
13454         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
13455         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
13456         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
13457         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
13458         gl_sortedlist_nx_add): New declarations.
13459         (struct gl_list_implementation): Rename and change methods accordingly.
13460         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
13461         (gl_list_nx_create): Renamed from gl_list_create.
13462         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13463         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13464         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13465         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13466         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13467         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13468         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13469         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13470         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
13471         gl_list_create_empty.
13472         (gl_list_nx_create): Renamed from gl_list_create.
13473         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13474         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13475         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13476         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13477         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13478         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13479         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13480         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13481         * lib/gl_array_list.c: Don't include xalloc.h.
13482         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
13483         NULL upon out-of-memory.
13484         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
13485         out-of-memory.
13486         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
13487         Change return type to 'int'.
13488         (gl_array_nx_set_at): Renamed from gl_array_set_at.
13489         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13490         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
13491         upon out-of-memory.
13492         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
13493         upon out-of-memory.
13494         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
13495         upon out-of-memory.
13496         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
13497         upon out-of-memory.
13498         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
13499         out-of-memory.
13500         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
13501         Update.
13502         (gl_array_list_implementation): Update.
13503         * lib/gl_carray_list.c: Don't include xalloc.h.
13504         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
13505         Return NULL upon out-of-memory.
13506         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
13507         out-of-memory.
13508         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
13509         Change return type to 'int'.
13510         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
13511         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13512         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
13513         upon out-of-memory.
13514         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
13515         upon out-of-memory.
13516         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
13517         out-of-memory.
13518         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
13519         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
13520         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
13521         Update.
13522         (gl_carray_list_implementation): Update.
13523         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
13524         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
13525         gl_linked_create_empty. Return NULL upon out-of-memory.
13526         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
13527         out-of-memory.
13528         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
13529         Change return type to 'int'. Return -1 upon out-of-memory.
13530         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
13531         out-of-memory.
13532         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
13533         upon out-of-memory.
13534         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
13535         upon out-of-memory.
13536         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
13537         NULL upon out-of-memory.
13538         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
13539         upon out-of-memory.
13540         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
13541         out-of-memory.
13542         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
13543         Update.
13544         * lib/gl_linked_list.c: Don't include xalloc.h.
13545         (gl_linked_list_implementation): Update.
13546         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
13547         (add_to_bucket): Change return type to 'int'.
13548         (gl_linkedhash_list_implementation): Update.
13549         * lib/gl_anytree_list1.h (free_subtree): New function.
13550         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
13551         gl_tree_create_empty. Return NULL upon out-of-memory.
13552         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
13553         Change return type to 'int'. Return -1 upon out-of-memory.
13554         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
13555         out-of-memory.
13556         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
13557         (gl_tree_remove_node): New function, moved here from
13558         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
13559         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
13560         Update.
13561         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
13562         malloc, not xmalloc. Return NULL upon out-of-memory.
13563         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13564         out-of-memory.
13565         (gl_tree_remove_node_from_tree): New function, extracted from
13566         gl_tree_remove_node.
13567         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13568         upon out-of-memory.
13569         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13570         out-of-memory.
13571         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13572         upon out-of-memory.
13573         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13574         upon out-of-memory.
13575         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13576         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
13577         not xmalloc. Return NULL upon out-of-memory.
13578         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13579         out-of-memory.
13580         (gl_tree_remove_node_from_tree): New function, extracted from
13581         gl_tree_remove_node.
13582         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13583         upon out-of-memory.
13584         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13585         out-of-memory.
13586         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13587         upon out-of-memory.
13588         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13589         upon out-of-memory.
13590         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13591         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
13592         gl_anytree_list1.h before gl_anyavltree_list2.h.
13593         (gl_avltree_list_implementation): Update.
13594         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
13595         gl_anytree_list1.h before gl_anyavltree_list2.h.
13596         (gl_rbtree_list_implementation): Update.
13597         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
13598         Change return type to 'int'. Return -1 upon out-of-memory. Use
13599         __builtin_expect.
13600         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
13601         (gl_avltreehash_list_implementation): Update.
13602         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
13603         (gl_rbtreehash_list_implementation): Update.
13604         * modules/array-list (Depends-on): Remove xalloc.
13605         * modules/carray-list (Depends-on): Likewise.
13606         * modules/linked-list (Depends-on): Likewise.
13607         * modules/linkedhash-list (Depends-on): Likewise.
13608         * modules/avltree-list (Depends-on): Likewise.
13609         * modules/rbtree-list (Depends-on): Likewise.
13610         * modules/avltreehash-list (Depends-on): Likewise.
13611         * modules/rbtreehash-list (Depends-on): Likewise.
13612
13613         * modules/xsublist: New file.
13614         * lib/gl_xsublist.h: New file.
13615         * lib/gl_xsublist.c: New file.
13616         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
13617         (gl_sublist_nx_create): New declaration.
13618         * lib/gl_sublist.c: Don't include xalloc.h.
13619         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
13620         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
13621         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
13622         Change return type to 'int'. Return -1 upon out-of-memory.
13623         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
13624         upon out-of-memory.
13625         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
13626         NULL upon out-of-memory.
13627         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
13628         upon out-of-memory.
13629         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
13630         NULL upon out-of-memory.
13631         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
13632         NULL upon out-of-memory.
13633         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
13634         upon out-of-memory.
13635         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
13636         (gl_sublist_list_implementation): Update.
13637         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
13638         upon out-of-memory.
13639         * modules/sublist (Depends-on): Remove xalloc.
13640
13641         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
13642         * tests/test-carray_list.c: Likewise.
13643         * tests/test-linked_list.c: Likewise.
13644         * tests/test-linkedhash_list.c: Likewise.
13645         * tests/test-avltree_list.c: Likewise.
13646         * tests/test-rbtree_list.c: Likewise.
13647         * tests/test-avltreehash_list.c: Likewise.
13648         * tests/test-rbtreehash_list.c: Likewise.
13649         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
13650         * modules/carray-list-tests (Makefile.am): Likewise.
13651         * modules/linked-list-tests (Makefile.am): Likewise.
13652         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13653         * modules/avltree-list-tests (Makefile.am): Likewise.
13654         * modules/rbtree-list-tests (Makefile.am): Likewise.
13655         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13656         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13657
13658         * NEWS: Mention the changes.
13659
13660         * lib/clean-temp.c: Include gl_xlist.h.
13661         * modules/clean-temp (Depends-on): Add xlist.
13662
13663         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
13664         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
13665
13666         * tests/test-array_oset.c: Include gl_xlist.h.
13667         * modules/array-oset-tests (Depends-on): Add xlist.
13668
13669         Reported by José E. Marchesi <jemarch@gnu.org>.
13670
13671 2009-12-13  Bruno Haible  <bruno@clisp.org>
13672
13673         Move the malloc checking from module 'oset' to new module 'xoset'.
13674         * modules/xoset: New file.
13675         * lib/gl_xoset.h: New file.
13676         * lib/gl_xoset.c: New file.
13677         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
13678         declarations.
13679         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
13680         (struct gl_oset_implementation): Rename and change methods accordingly.
13681         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
13682         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13683         'int'. Mark as __warn_unused_result__.
13684         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
13685         gl_oset_create_empty.
13686         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13687         'int'.
13688         * lib/gl_array_oset.c: Don't include xalloc.h.
13689         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
13690         malloc, not xmalloc.
13691         (grow): Change return type to 'int'. Don't call xalloc_die.
13692         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
13693         to 'int'.
13694         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
13695         'int'.
13696         (gl_array_oset_implementation): Update.
13697         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
13698         gl_tree_create_empty.
13699         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
13700         'int'.
13701         * lib/gl_avltree_oset.c: Don't include xalloc.h.
13702         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13703         xmalloc.
13704         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13705         not xmalloc.
13706         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13707         xmalloc.
13708         (gl_avltree_oset_implementation): Update.
13709         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
13710         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13711         xmalloc.
13712         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13713         not xmalloc.
13714         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13715         xmalloc.
13716         (gl_rbtree_oset_implementation): Update.
13717         * modules/array-oset (Depends-on): Remove xalloc.
13718         * modules/avltree-oset (Depends-on): Likewise.
13719         * modules/rbtree-oset (Depends-on): Likewise.
13720         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
13721         * tests/test-avltree_oset.c: Likewise.
13722         * tests/test-rbtree_oset.c: Likewise.
13723         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
13724         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
13725         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13726         * NEWS: Mention the change.
13727
13728 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
13729
13730         maint.mk: allow a project to override release-prep commands
13731         * top/maint.mk (alpha, beta, stable): Move release-preparatory
13732         commands into a new rule.
13733         (release-prep): New rule.
13734         (release-prep-hook): New overridable variable.
13735
13736 2009-12-13  Bruno Haible  <bruno@clisp.org>
13737
13738         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
13739
13740 2009-12-13  Jim Meyering  <meyering@redhat.com>
13741
13742         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
13743         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
13744
13745 2009-12-12  Bruno Haible  <bruno@clisp.org>
13746
13747         duplocale: Tweak.
13748         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
13749
13750 2009-12-12  Karl Berry  <karl@gnu.org>
13751
13752         * config/srclist.txt (strtoll.c): tab changes, no more sync.
13753
13754 2009-12-12  Bruno Haible  <bruno@clisp.org>
13755
13756         * m4/po.m4: Undo incorrect untabification.
13757
13758 2009-12-12  Bruno Haible  <bruno@clisp.org>
13759
13760         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
13761         * modules/c-strtod (Depends-on): Add locale.
13762         * modules/c-strtold (Depends-on): Likewise.
13763
13764 2009-12-12  Bruno Haible  <bruno@clisp.org>
13765
13766         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
13767
13768 2009-12-11  Eric Blake  <ebb9@byu.net>
13769
13770         setenv: relax requirement in light of POSIX ruling
13771         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
13772         not NULL.
13773         * tests/test-setenv.c (main): Relax test.
13774         * tests/test-unsetenv.c (main): Likewise.
13775         * doc/posix-functions/setenv.texi (setenv): Document this.
13776         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13777
13778 2009-12-11  Bruno Haible  <bruno@clisp.org>
13779
13780         New module 'fd-safer-flag'.
13781         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
13782         * lib/dup-safer.c (dup_safer_flag): Remove function.
13783         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
13784         * lib/fd-safer.c (fd_safer_flag): Remove function.
13785         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
13786         * modules/cloexec (configure.ac): Drop indicator macro.
13787         * modules/fd-safer-flag: New file.
13788         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
13789         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
13790         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
13791
13792 2009-12-11  Bruno Haible  <bruno@clisp.org>
13793
13794         Tests for module 'nl_langinfo'.
13795         * modules/nl_langinfo-tests: New file.
13796         * tests/test-nl_langinfo.sh: New file.
13797         * tests/test-nl_langinfo.c: New file.
13798
13799         New module 'nl_langinfo'.
13800         * lib/nl_langinfo.c: New file.
13801         * m4/nl_langinfo.m4: New file.
13802         * modules/nl_langinfo: New file.
13803         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
13804
13805 2009-12-11  Bruno Haible  <bruno@clisp.org>
13806
13807         Tests for module 'langinfo'.
13808         * modules/langinfo-tests: New file.
13809         * tests/test-langinfo.c: New file.
13810
13811         New module 'langinfo'.
13812         * lib/langinfo.in.h: New file.
13813         * m4/langinfo_h.m4: New file.
13814         * modules/langinfo: New file.
13815         * doc/posix-headers/langinfo.texi: Mention the new module.
13816
13817 2009-12-11  Bruno Haible  <bruno@clisp.org>
13818
13819         * lib/config.charset: Untabify.
13820
13821 2009-12-11  Bruno Haible  <bruno@clisp.org>
13822
13823         * modules/unistd-safer (configure.ac): Drop indicator macro.
13824
13825 2009-12-11  Bruno Haible  <bruno@clisp.org>
13826
13827         Move pipe2-safer code to its own file.
13828         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
13829         * lib/pipe-safer.c (pipe2_safer): Remove function.
13830         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
13831         (Makefile.am): Add it to lib_SOURCES.
13832
13833 2009-12-10  Bruno Haible  <bruno@clisp.org>
13834
13835         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
13836
13837 2009-12-10  Bruno Haible  <bruno@clisp.org>
13838
13839         Declare which arguments expect non-NULL values, for GCC and clang.
13840         * build-aux/arg-nonnull.h: New file.
13841         * modules/arg-nonnull: New file.
13842         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
13843         (inet_ntop, inet_pton): Use it.
13844         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
13845         (closedir, dirfd, opendir, scandir, alphasort): Use it.
13846         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
13847         (open, openat): Use it.
13848         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
13849         (fnmatch): Use it.
13850         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
13851         (getopt, getopt_long, getopt_long_only): Use it.
13852         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
13853         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
13854         Use it.
13855         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
13856         (iconv_open): Use it.
13857         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
13858         (strtoimax, strtoumax): Use it.
13859         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
13860         (duplocale): Use it.
13861         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
13862         (frexp, frexpl): Use it.
13863         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
13864         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
13865         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
13866         (tsearch, tfind, tdelete, twalk): Use it.
13867         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
13868         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
13869         sigpending): Use it.
13870         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
13871         (posix_spawn, posix_spawnp, posix_spawnattr_init,
13872         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
13873         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
13874         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
13875         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
13876         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
13877         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
13878         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
13879         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
13880         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
13881         Use it.
13882         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
13883         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
13884         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
13885         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
13886         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
13887         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
13888         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
13889         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
13890         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
13891         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
13892         strtoull, unsetenv): Use it.
13893         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
13894         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
13895         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
13896         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
13897         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
13898         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
13899         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
13900         (strcasecmp, strncasecmp): Use it.
13901         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
13902         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
13903         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
13904         rpl_setsockopt): Use it.
13905         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
13906         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
13907         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
13908         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
13909         (gettimeofday): Use it.
13910         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
13911         (times): Use it.
13912         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
13913         (uname): Use it.
13914         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
13915         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
13916         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
13917         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
13918         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
13919         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
13920         unlinkat, write): Use it.
13921         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
13922         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
13923         * lib/argv-iter.h: Include arg-nonnull.h.
13924         (_ATTRIBUTE_NONNULL_): Remove macro.
13925         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
13926         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
13927         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
13928         optimization.
13929         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
13930         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
13931         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
13932         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
13933         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
13934         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
13935         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
13936         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
13937         * modules/arpa_inet (Depends-on): Add arg-nonnull.
13938         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
13939         * modules/dirent (Depends-on): Add arg-nonnull.
13940         (Makefile.am): Insert arg-nonnull.h into dirent.h.
13941         * modules/fcntl-h (Depends-on): Add arg-nonnull.
13942         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
13943         * modules/fnmatch (Depends-on): Add arg-nonnull.
13944         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
13945         * modules/getopt-posix (Depends-on): Add arg-nonnull.
13946         (Makefile.am): Insert arg-nonnull.h into getopt.h.
13947         * modules/glob (Depends-on): Add arg-nonnull.
13948         (Makefile.am): Insert arg-nonnull.h into glob.h.
13949         * modules/iconv_open (Depends-on): Add arg-nonnull.
13950         (Makefile.am): Insert arg-nonnull.h into iconv.h.
13951         * modules/inttypes (Depends-on): Add arg-nonnull.
13952         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
13953         * modules/locale (Depends-on): Add arg-nonnull.
13954         (Makefile.am): Insert arg-nonnull.h into locale.h.
13955         * modules/math (Depends-on): Add arg-nonnull.
13956         (Makefile.am): Insert arg-nonnull.h into math.h.
13957         * modules/netdb (Depends-on): Add arg-nonnull.
13958         (Makefile.am): Insert arg-nonnull.h into netdb.h.
13959         * modules/search (Depends-on): Add arg-nonnull.
13960         (Makefile.am): Insert arg-nonnull.h into search.h.
13961         * modules/signal (Depends-on): Add arg-nonnull.
13962         (Makefile.am): Insert arg-nonnull.h into signal.h.
13963         * modules/spawn (Depends-on): Add arg-nonnull.
13964         (Makefile.am): Insert arg-nonnull.h into spawn.h.
13965         * modules/stdio (Depends-on): Add arg-nonnull.
13966         (Makefile.am): Insert arg-nonnull.h into stdio.h.
13967         * modules/stdlib (Depends-on): Add arg-nonnull.
13968         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
13969         * modules/string (Depends-on): Add arg-nonnull.
13970         (Makefile.am): Insert arg-nonnull.h into string.h.
13971         * modules/strings (Depends-on): Add arg-nonnull.
13972         (Makefile.am): Insert arg-nonnull.h into strings.h.
13973         * modules/sys_socket (Depends-on): Add arg-nonnull.
13974         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
13975         * modules/sys_stat (Depends-on): Add arg-nonnull.
13976         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
13977         * modules/sys_time (Depends-on): Add arg-nonnull.
13978         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
13979         * modules/sys_times (Depends-on): Add arg-nonnull.
13980         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
13981         * modules/sys_utsname (Depends-on): Add arg-nonnull.
13982         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
13983         * modules/time (Depends-on): Add arg-nonnull.
13984         (Makefile.am): Insert arg-nonnull.h into time.h.
13985         * modules/unistd (Depends-on): Add arg-nonnull.
13986         (Makefile.am): Insert arg-nonnull.h into unistd.h.
13987         * modules/wchar (Depends-on): Add arg-nonnull.
13988         (Makefile.am): Insert arg-nonnull.h into wchar.h.
13989         * modules/argv-iter (Depends-on): Add arg-nonnull.
13990         * tests/test-canonicalize.c (null_ptr): New function.
13991         (main): Use it.
13992         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
13993         (main): Use it.
13994         * tests/test-memmem.c (null_ptr): New function.
13995         (main): Use it.
13996         Reported by Jim Meyering.
13997
13998 2009-12-10  Bruno Haible  <bruno@clisp.org>
13999
14000         Use spaces for indentation, not tabs.
14001         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14002         * m4/*.m4: Untabify.
14003         * build-aux/*.h: Untabify.
14004         * tests/**/*.[hc]: Untabify.
14005         * README: New section "Indent with spaces, not TABs", based on
14006         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
14007         * NEWS: Mention the change.
14008
14009 2009-12-10  Bruno Haible  <bruno@clisp.org>
14010
14011         pty test: Fix link error.
14012         * modules/pty-tests (Makefile.am): Add the default LDADD value to
14013         test_pty_LDADD.
14014
14015 2009-12-07  Simon Josefsson  <simon@josefsson.org>
14016
14017         * modules/pty: New file.
14018         * modules/pty-tests: New file.
14019         * m4/pty.m4: New file.
14020         * tests/test-pty.c: New file.
14021         * doc/glibc-headers/pty.texi: Modified.
14022         * doc/glibc-functions/forkpty.texi: Modified.
14023         * doc/glibc-functions/openpty.texi: Modified.
14024
14025 2009-12-10  Bruno Haible  <bruno@clisp.org>
14026
14027         Avoid syntax error in C++ mode.
14028         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
14029
14030 2009-12-10  Bruno Haible  <bruno@clisp.org>
14031
14032         Use sed with option -e.
14033         * gnulib-tool (func_version, func_emit_copyright_notice,
14034         func_emit_initmacro_end, func_import, func_create_testdir): Pass
14035         option -e to sed.
14036         * modules/link-warning (Makefile.am): Likewise.
14037
14038 2009-12-10  Jim Meyering  <meyering@redhat.com>
14039
14040         mgetgroups: do not write bytes beyond end of malloc'd buffer
14041         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
14042         username, we call getgroups with a one-element-shorter buffer,
14043         but still told it the length was original, max_n_groups.
14044
14045 2009-12-09  Eric Blake  <ebb9@byu.net>
14046
14047         cloexec: relax license
14048         * modules/cloexec (Maintainer): Add myself.
14049         (License): Use LGPL, not GPL.
14050
14051         link-warning: optimize generation
14052         * modules/link-warning (Makefile.am): Reduce process usage.
14053
14054 2009-12-09  Bruno Haible  <bruno@clisp.org>
14055
14056         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
14057         workaround was added on 2009-11-17.
14058
14059 2009-12-09  Jim Meyering  <meyering@redhat.com>
14060             Bruno Haible  <bruno@clisp.org>
14061
14062         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
14063         * modules/link-warning (Makefile.am): Make the comment-removing sed
14064         command more robust in the face of bootstrap-prepended comment lines.
14065
14066 2009-12-09  Bruno Haible  <bruno@clisp.org>
14067
14068         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
14069         most one group.
14070
14071 2009-12-09  Simon Josefsson <simon@josefsson.org>
14072             Bruno Haible  <bruno@clisp.org>
14073
14074         * build-aux/link-warning.h: Add copyright notice.
14075         * modules/link-warning (Makefile.am): Generate link-warning.h from
14076         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
14077         * NEWS: Mention change in link-warning module.
14078         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
14079         * modules/dirent (Makefile.am): Add dependency to dirent.h.
14080         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
14081         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
14082         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
14083         * modules/math (Makefile.am): Add dependency to math.h.
14084         * modules/search (Makefile.am): Add dependency to search.h.
14085         * modules/signal (Makefile.am): Add dependency to signal.h.
14086         * modules/spawn (Makefile.am): Add dependency to spawn.h.
14087         * modules/stdio (Makefile.am): Add dependency to stdio.h.
14088         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
14089         * modules/string (Makefile.am): Add dependency to string.h.
14090         * modules/strings (Makefile.am): Add dependency to strings.h.
14091         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
14092         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
14093         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
14094         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
14095         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
14096         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
14097         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
14098         * modules/unistd (Makefile.am): Add dependency to unistd.h.
14099         * modules/wchar (Makefile.am): Add dependency to wchar.h.
14100
14101 2009-12-09  Bruno Haible  <bruno@clisp.org>
14102
14103         fchdir: Optimize away rpl_fstat when possible.
14104         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
14105         REPLACE_OPEN_DIRECTORY.
14106         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
14107
14108 2009-12-09  Bruno Haible  <bruno@clisp.org>
14109
14110         * lib/fchdir.c: Update comment.
14111
14112 2009-12-09  Bruno Haible  <bruno@clisp.org>
14113
14114         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
14115
14116 2009-12-08  Eric Blake  <ebb9@byu.net>
14117
14118         fchdir: avoid memory leak on re-registration.
14119         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
14120
14121 2009-12-08  Jim Meyering  <meyering@redhat.com>
14122
14123         init.sh: avoid Solaris 10 /bin/sh portability problem
14124         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
14125         sourced script:
14126           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
14127           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
14128           bar
14129         tests/init.sh relied on that, accepting a --set-path=DIR argument,
14130         and two tests used that idiom.
14131         * tests/init.sh: Update suggested usage comments.
14132         (path_prepend_): New function, to be used in place
14133         of the --src-path=DIR option.
14134         (setup_): Move PATH-prepending code into path_prepend_.
14135         * tests/test-pread.sh: Adapt to new usage.
14136         * tests/test-xalloc-die.sh: Likewise.
14137
14138 2009-12-08  Simon Josefsson  <simon@josefsson.org>
14139
14140         * doc/gnulib.texi (Glibc pty.h): Add.
14141         * doc/glibc-functions/forkpty.texi: Add.
14142         * doc/glibc-functions/openpty.texi: Add.
14143         Suggested by Bruno Haible.
14144
14145 2009-12-08  Eric Blake  <ebb9@byu.net>
14146
14147         fchdir: fix logic bugs
14148         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
14149         * tests/test-fchdir.c (main): Enhance test.
14150         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
14151         is in use.
14152
14153         dup2: fix logic bugs
14154         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
14155         REPLACE_DUP2 to decide when rpl_dup2 is needed.
14156         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
14157         exists.
14158         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
14159
14160 2009-12-07  Eric Blake  <ebb9@byu.net>
14161
14162         unlink: fix m4 detection
14163         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
14164
14165         unistd-safer: add unit test
14166         * modules/unistd-safer-tests: New file.
14167         * tests/test-dup-safer.c: Likewise.
14168         * tests/test-cloexec.c (setmode): Avoid compiler warning.
14169         * tests/test-dup2.c (setmode): Likewise.
14170         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
14171
14172         cloexec: preserve text vs. binary across dup_cloexec
14173         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
14174         mode.
14175         * modules/dup2-tests (Depends-on): Add binary-io.
14176         * modules/cloexec-tests (Depends-on): Likewise.
14177         * tests/test-dup2.c (setmode, is_mode): New helpers.
14178         (main): Add tests that translation mode is preserved.
14179         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
14180         Reported by Bruno Haible.
14181
14182         mgetgroups: reduce duplicate listings
14183         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
14184         resulting array.
14185         * tests/test-chown.h (test_chown): Simplify client.
14186         * tests/test-lchown.h (test_lchown): Likewise.
14187
14188 2009-12-06  Bruno Haible  <bruno@clisp.org>
14189
14190         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
14191         value.
14192
14193 2009-12-06  Bruno Haible  <bruno@clisp.org>
14194
14195         * lib/progname.c: Include stdio.h, stdlib.h.
14196         (set_program_name): Reject a NULL argument.
14197
14198 2009-12-05  Eric Blake  <ebb9@byu.net>
14199
14200         pipe2-safer: new module
14201         * modules/pipe2-safer: New file.
14202         * lib/unistd-safer.h (pipe2_safer): New prototype.
14203         * lib/unistd--.h (pipe2): New wrapper.
14204         * lib/pipe-safer.c (pipe2_safer): New function.
14205         * modules/pipe (Depends-on): Add pipe2-safer.
14206         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
14207
14208         stdlib-safer: preserve cloexec flag for mkostemp[s]
14209         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
14210         fd_safer_flag.
14211
14212         unistd-safer: allow preservation of cloexec status via flag
14213         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
14214         prototypes.
14215         * lib/dup-safer.c (dup_safer_flag): New function.
14216         * lib/fd-safer.c (fd_safer_flag): Likewise.
14217         * modules/cloexec (configure.ac): Set witness.
14218
14219         test-dup2: enhance test
14220         * modules/dup2-tests (Depends-on): Add cloexec.
14221         * tests/test-dup2.c (main): Enhance test.
14222
14223         cloexec: add dup_cloexec
14224         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
14225         header and comments.
14226         * lib/cloexec.c (set_cloexec_flag): Add comments.
14227         (dup_cloexec): New function, with mingw implementation borrowed
14228         from...
14229         * lib/w32spawn.h (dup_noinherit): ...here.
14230         * modules/execute (Depends-on): Add cloexec.
14231         * modules/pipe (Depends-on): Likewise.
14232         * modules/cloexec (Depends-on): Add dup2.
14233         * modules/cloexec-tests (Files): New file.
14234         * tests/test-cloexec.c: Likewise.
14235
14236         test-xalloc-die: fix test for mingw
14237         * modules/xalloc-die-tests (Files): Add tests/init.sh.
14238         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
14239         directory and .exe suffix off argv[0] output.
14240
14241         test-fseeko: fix test for mingw
14242         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
14243         than undefining fseek, so test will pass on mingw.
14244
14245 2009-12-05  Bruno Haible  <bruno@clisp.org>
14246
14247         * lib/progname.h (set_program_name): Clarify specification.
14248         * lib/progname.c (set_program_name): Likewise.
14249         Reported by Jim Meyering.
14250
14251 2009-12-05  Jim Meyering  <meyering@redhat.com>
14252
14253         maint.mk: backslash-escape parens in default regexp
14254         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
14255         backslash-escape the literal parentheses.
14256
14257         maint.mk: news-date-check: use grep -E
14258         * top/maint.mk (today): Define a Make variable, not a...
14259         (news-date-check): ...shell variable.
14260         (news-date-regexp): Use the Make variable.
14261         Use grep's -E option.  Change the failing diagnostic to mention
14262         the variable, $(news-date-regexp).
14263
14264 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
14265
14266         maintainer-makefile: allow customization of NEWS entry format
14267         * top/maint.mk (news-date-regexp): New overridable variable.
14268         (news-date-check): Use it.
14269
14270 2009-12-04  Eric Blake  <ebb9@byu.net>
14271
14272         mgetgroups: add xgetgroups, and avoid ENOSYS failures
14273         * lib/mgetgroups.h (xgetgroups): New prototype.
14274         * lib/mgetgroups.c (xgetgroups): New wrapper.
14275         (mgetgroups): Handle ENOSYS.
14276         * modules/mgetgroups (Depends-on): Add realloc.
14277         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
14278
14279         mgetgroups: avoid argument promotion issues with -1
14280         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
14281         for invalid gid_t.
14282         * tests/test-chown.h (getegid, test_chown): Likewise.
14283         * tests/test-lchown.h (getegid, test_lchown): Likewise.
14284
14285 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
14286
14287         exclude: Fix header file problems.
14288         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
14289
14290 2009-12-01  Jim Meyering  <meyering@redhat.com>
14291
14292         fts: fts_open: do not let an empty string cause immediate failure
14293         This is required in support of GNU rm, for which the command
14294         "rm A '' B" must process and remove both A and B, in spite of
14295         the empty string argument.
14296         * lib/fts.c (fts_open): Do not let the presence of an empty string
14297         cause fts_open to fail immediately.  Most fts-using tools must be
14298         able to process all arguments, in order, and can be expected to
14299         diagnose such arguments themselves.
14300
14301 2009-11-30  Eric Blake  <ebb9@byu.net>
14302
14303         utimens: fix compilation error
14304         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
14305         Declare variable at right scope.
14306
14307 2009-11-29  Jim Meyering  <meyering@redhat.com>
14308
14309         bootstrap: handle perl-5.11's changed --version output
14310         * build-aux/bootstrap (get_version): Handle perl separately,
14311         since perl-5.11's --version output is different.
14312
14313 2009-11-28  Jim Meyering  <meyering@redhat.com>
14314
14315         userspec: depend on the inttostr module, too
14316         * modules/userspec (Depends-on): Add inttostr.
14317
14318         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
14319         * lib/userspec.c (parse_with_separator): Do not accept a user ID
14320         number of MAXUID when it evaluates to (uid_t) -1.
14321         Likewise for group ID.  Reported by Matt McCutchen in
14322         <http://savannah.gnu.org/bugs/?28113>
14323
14324         userspec: reformat to use spaces, not TABs
14325         * lib/userspec.c: Expand TABs to spaces.
14326         Add Emacs' "indent-tabs-mode: nil" hint.
14327
14328 2009-11-27  Eric Blake  <ebb9@byu.net>
14329
14330         getopt-gnu: flush out another BSD bug
14331         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
14332         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
14333         flush out BSD bug.
14334         * tests/test-getopt.h (test_getopt): End lists with NULL.
14335         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14336         (test_getopt_long_posix): Enhance test.
14337         * modules/getopt-posix-tests (Depends-on): Add stdbool.
14338         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
14339         getopt-gnu.
14340         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14341         Likewise.
14342
14343 2009-11-27  Simon Josefsson  <simon@josefsson.org>
14344
14345         * modules/idpriv-droptemp-tests (Notice): Fix text.
14346
14347 2009-11-27  Jim Meyering  <meyering@redhat.com>
14348
14349         test-xalloc-die: avoid spurious failure due to libtool argv difference
14350         In a libtool-enabled project, this test would fail due to a difference
14351         in the emitted program name, e.g.,
14352         -test-xalloc-die: memory exhausted
14353         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
14354         Use program to avoid that.
14355         * modules/xalloc-die-tests (Depends-on): Add progname.
14356         * tests/test-xalloc-die.c: Include progname.h".
14357         (program_name): Remove decl.
14358         (main): Call set_program_name.
14359         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
14360
14361 2009-11-26  Richard Jones  <rjones@redhat.com>
14362
14363         w32sock: leave win32 error in place.
14364         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
14365
14366 2009-11-26  Eric Blake  <ebb9@byu.net>
14367
14368         init.sh: suggest to use skip_ and fail_ functions in comments
14369         * tests/init.sh: Add a sentence.
14370
14371 2009-11-25  Bruno Haible  <bruno@clisp.org>
14372
14373         init.sh: add documentation in comments
14374         * tests/init.sh: Add some developer and user documentation.
14375
14376 2009-11-26  Jim Meyering  <meyering@redhat.com>
14377
14378         init.sh: accommodate even those who specify bogus srcdir manually
14379         * tests/init.sh: Normally, srcdir is guaranteed by automake and
14380         configure-time tests to be sanitized, so that there is no need to
14381         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
14382         (with no double quotes) suffices.  However, since tests may be
14383         invoked manually, and since you may explicitly set srcdir to the
14384         name of a directory containing spaces, do quote its uses here.
14385         * tests/test-pread.sh: Likewise.
14386         Suggested by Bruno Haible.
14387
14388         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
14389         * tests/test-pread.sh: Write no data into the pipe, because
14390         test-pread actually reads none.  This avoids a diagnostic,
14391         "bash: echo: write error: Broken pipe", that arises in the unusual
14392         event something is ignoring SIGPIPE, and might be interpreted
14393         as some sort of failure.  Reported by Bruno Haible.
14394
14395 2009-11-25  Jim Meyering  <meyering@redhat.com>
14396
14397         test-pread: cover failure with ESPIPE and EINVAL
14398         * tests/test-pread.c (main): Test for failure, too.
14399         * tests/test-pread.sh: Invoke with stdin on a pipe.
14400         Suggested by Eric Blake.
14401
14402         pread: improvement and fix
14403         * modules/pread (Depends-on): Depend on lseek, for portability to
14404         e.g., mingw.  Suggested by Eric Blake.
14405         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
14406
14407         unistd.in.h: correct declaration of pread
14408         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
14409         Reported by Richard W.M. Jones.
14410
14411         test-pread.sh: distribute the test script
14412         * modules/pread-tests (Files): Include test-pread.sh.
14413
14414         test-pread.sh: clean up
14415         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
14416         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
14417         That is unnecessary, since it's always ".".
14418         Suggestion from Eric Blake.
14419
14420         test-pread.sh: make executable
14421         * tests/test-pread.sh: Set executable bit.
14422         Reported by Eric Blake.
14423
14424         correct typo in test-pread.sh
14425         * tests/test-pread.sh: Add #! line.
14426
14427         test pread
14428         * tests/test-pread.c: New file.
14429         * tests/test-pread.sh: Likewise.
14430         * modules/pread-tests: Likewise.
14431
14432         pread: new module
14433         * modules/pread: New file.
14434         * lib/unistd.in.h (pread): Define/declare.
14435         * lib/pread.c (pread): New file.
14436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
14437         * modules/unistd (Makefile.am): Substitute witnesses.
14438         * doc/posix-functions/pread.texi (pread): Update.
14439         * MODULES.html.sh: Add pread.
14440
14441 2009-11-25  Jim Meyering  <meyering@redhat.com>
14442
14443         tests/init.sh: new file to be used via most *.sh tests
14444         * tests/init.sh: New file.
14445
14446 2009-11-25  Eric Blake  <ebb9@byu.net>
14447
14448         utimens: work around older Linux failure with symlinks
14449         * lib/utimens.c (lutimensat_works_really): New variable.
14450         (fdutimens, lutimens): Use it to manage kernels that support
14451         nanosecond times on files, but not on symlinks.
14452         Reported by Ondřej Vašík.
14453
14454         utimes: fix configure grammar
14455         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
14456
14457 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
14458
14459         regex: Fix fastmap for multibyte character ranges.
14460         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
14461         characters when a multibyte character range is included.
14462
14463 2009-11-22  Andy Wingo  <wingo@pobox.com>
14464
14465         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
14466         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
14467
14468 2009-11-24  Bruno Haible  <bruno@clisp.org>
14469
14470         doc: Most *_l functions exist in MacOS X 10.5.
14471         * doc/posix-functions/duplocale.texi: Update platforms list.
14472         * doc/posix-functions/freelocale.texi: Likewise.
14473         * doc/posix-functions/newlocale.texi: Likewise.
14474         * doc/posix-functions/uselocale.texi: Likewise.
14475         * doc/posix-functions/isalnum_l.texi: Likewise.
14476         * doc/posix-functions/isalpha_l.texi: Likewise.
14477         * doc/posix-functions/isblank_l.texi: Likewise.
14478         * doc/posix-functions/iscntrl_l.texi: Likewise.
14479         * doc/posix-functions/isdigit_l.texi: Likewise.
14480         * doc/posix-functions/isgraph_l.texi: Likewise.
14481         * doc/posix-functions/islower_l.texi: Likewise.
14482         * doc/posix-functions/isprint_l.texi: Likewise.
14483         * doc/posix-functions/ispunct_l.texi: Likewise.
14484         * doc/posix-functions/isspace_l.texi: Likewise.
14485         * doc/posix-functions/isupper_l.texi: Likewise.
14486         * doc/posix-functions/iswalnum_l.texi: Likewise.
14487         * doc/posix-functions/iswalpha_l.texi: Likewise.
14488         * doc/posix-functions/iswblank_l.texi: Likewise.
14489         * doc/posix-functions/iswcntrl_l.texi: Likewise.
14490         * doc/posix-functions/iswctype_l.texi: Likewise.
14491         * doc/posix-functions/iswdigit_l.texi: Likewise.
14492         * doc/posix-functions/iswgraph_l.texi: Likewise.
14493         * doc/posix-functions/iswlower_l.texi: Likewise.
14494         * doc/posix-functions/iswprint_l.texi: Likewise.
14495         * doc/posix-functions/iswpunct_l.texi: Likewise.
14496         * doc/posix-functions/iswspace_l.texi: Likewise.
14497         * doc/posix-functions/iswupper_l.texi: Likewise.
14498         * doc/posix-functions/iswxdigit_l.texi: Likewise.
14499         * doc/posix-functions/isxdigit_l.texi: Likewise.
14500         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
14501         * doc/posix-functions/strcasecmp_l.texi: Likewise.
14502         * doc/posix-functions/strcoll_l.texi: Likewise.
14503         * doc/posix-functions/strfmon_l.texi: Likewise.
14504         * doc/posix-functions/strftime_l.texi: Likewise.
14505         * doc/posix-functions/strncasecmp_l.texi: Likewise.
14506         * doc/posix-functions/strxfrm_l.texi: Likewise.
14507         * doc/posix-functions/tolower_l.texi: Likewise.
14508         * doc/posix-functions/toupper_l.texi: Likewise.
14509         * doc/posix-functions/towctrans_l.texi: Likewise.
14510         * doc/posix-functions/towlower_l.texi: Likewise.
14511         * doc/posix-functions/towupper_l.texi: Likewise.
14512         * doc/posix-functions/wcscoll_l.texi: Likewise.
14513         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14514         * doc/posix-functions/wctrans_l.texi: Likewise.
14515         * doc/posix-functions/wctype_l.texi: Likewise.
14516         * doc/glibc-functions/strptime_l.texi: Likewise.
14517         * doc/glibc-functions/strtod_l.texi: Likewise.
14518         * doc/glibc-functions/strtof_l.texi: Likewise.
14519         * doc/glibc-functions/strtol_l.texi: Likewise.
14520         * doc/glibc-functions/strtold_l.texi: Likewise.
14521         * doc/glibc-functions/strtoll_l.texi: Likewise.
14522         * doc/glibc-functions/strtoul_l.texi: Likewise.
14523         * doc/glibc-functions/strtoull_l.texi: Likewise.
14524         * doc/glibc-functions/wcsftime_l.texi: Likewise.
14525         * doc/glibc-functions/wcstod_l.texi: Likewise.
14526         * doc/glibc-functions/wcstof_l.texi: Likewise.
14527         * doc/glibc-functions/wcstol_l.texi: Likewise.
14528         * doc/glibc-functions/wcstold_l.texi: Likewise.
14529         * doc/glibc-functions/wcstoll_l.texi: Likewise.
14530         * doc/glibc-functions/wcstoul_l.texi: Likewise.
14531         * doc/glibc-functions/wcstoull_l.texi: Likewise.
14532
14533 2009-11-24  Bruno Haible  <bruno@clisp.org>
14534
14535         duplocale: Fix logic bug.
14536         * lib/duplocale.c: Don't include <langinfo.h>.
14537         (_NL_LOCALE_NAME): Remove macro.
14538         (rpl_duplocale): Use setlocale instead of nl_langinfo.
14539         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
14540
14541 2009-11-23  Jim Meyering  <meyering@redhat.com>
14542
14543         test-update-copyright: don't hard-code /usr/bin/perl
14544         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
14545         perl to print the current year.  Gilles Espinasse reported that
14546         the replaced use of perl was hard-coded as /usr/bin/perl.
14547
14548 2009-11-23  Bruno Haible  <bruno@clisp.org>
14549
14550         duplocale: Add support for glibc 2.3.x.
14551         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
14552
14553 2009-11-22  Bruno Haible  <bruno@clisp.org>
14554
14555         vasnprintf: Tiny optimization.
14556         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
14557         MacOS X.
14558
14559 2009-11-22  Bruno Haible  <bruno@clisp.org>
14560
14561         Tests for module 'duplocale'.
14562         * modules/duplocale-tests: New file.
14563         * tests/test-duplocale.c: New file.
14564
14565         New module 'duplocale'.
14566         * m4/duplocale.m4: New file.
14567         * lib/locale.in.h (duplocale): New declaration.
14568         * lib/duplocale.c: New file.
14569         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
14570         gl_LOCALE_H_DEFAULTS): New macros.
14571         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
14572         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
14573         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
14574         REPLACE_DUPLOCALE.
14575         * modules/duplocale: New file.
14576         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
14577
14578 2009-11-22  Bruno Haible  <bruno@clisp.org>
14579
14580         * modules/locale-tests (configure.ac): Test for newlocale function.
14581         * tests/test-locale.c: When the system has extended locale functions,
14582         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
14583
14584         locale: Make locale_t available when possible.
14585         * lib/locale.in.h: Include <xlocale.h> when it exists.
14586         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
14587         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
14588         * modules/locale (Depends-on): Add extensions.
14589         (Makefile.am): Also substitute HAVE_XLOCALE_H.
14590         * doc/posix-headers/locale.texi: Document the problem with locale_t.
14591
14592 2009-11-22  Bruno Haible  <bruno@clisp.org>
14593
14594         Add comments.
14595         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
14596         invocation.
14597         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14598         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14599         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14600
14601 2009-11-22  Bruno Haible  <bruno@clisp.org>
14602
14603         error: account for the possibility of freopen (stdout).
14604         * lib/error.c: Include <unistd.h>.
14605         (flush_stdout): New function, extracted from error and error_at_line.
14606         Determine stdout's fd dynamically.
14607         (error, error_at_line): Invoke flush_stdout.
14608         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
14609         * modules/error (Depends-on): Add unistd.
14610
14611 2009-11-22  Bruno Haible  <bruno@clisp.org>
14612
14613         diffseq: Add comment.
14614         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
14615
14616 2009-11-22  Jim Meyering  <meyering@redhat.com>
14617
14618         c-stack: avoid defining an unused static function
14619         * lib/c-stack.c (find_stack_direction): Do not define this function
14620         when it will not be used.
14621
14622         diffseq: avoid spurious gcc warnings
14623         * lib/diffseq.h (IF_LINT2): Define.
14624         (compareseq): Use it to initialize two members of "part".
14625         This avoids two used-uninitialized warnings.
14626
14627 2009-11-21  Jim Meyering  <meyering@redhat.com>
14628
14629         c-stack: avoid "ignoring return value of `write'" warning
14630         * lib/c-stack.c: Include "ignore-value.h".
14631         (die): Explicitly ignore each write return value.
14632         * modules/c-stack (Depends-on): Add ignore-value.
14633
14634 2009-11-21  Bruno Haible  <bruno@clisp.org>
14635
14636         diffseq: reduce scope of variable 'best'.
14637         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
14638         variable, earlier used for two different purposes.
14639
14640 2009-11-21  Jim Meyering  <meyering@redhat.com>
14641
14642         diffseq: remove useless assignment to "best"
14643         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
14644         assignment.  At that point "best" is already guaranteed to be zero.
14645
14646 2009-11-20  Eric Blake  <ebb9@byu.net>
14647
14648         build: mention ftp redirector in release announcements
14649         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
14650         values that used to come from cfg.mk; mention FTP redirect URL.
14651         * build-aux/announce-gen: Mention the mirror list.
14652         Suggested by Karl Berry.
14653
14654         nanosleep: improve port to mingw
14655         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
14656         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
14657         LIB_NANOSLEEP, but only when needed.
14658         * modules/select (Link): Document LIBSOCKET.
14659         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
14660         enough.
14661
14662         nanosleep: work around cygwin bug
14663         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
14664         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
14665         bug.
14666         (getnow): Delete, not needed.
14667         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
14668         LIB_CLOCK_GETTIME.
14669         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
14670         clock-time, gettime.
14671         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
14672         bug.
14673         * modules/nanosleep-tests: New test.
14674         * tests/test-nanosleep.c: New file.
14675
14676         sleep: work around cygwin bug
14677         * lib/sleep.c (rpl_sleep): Work around the bug.
14678         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
14679         (gl_PREREQ_SLEEP): Delete unused macro.
14680         * modules/sleep (Depends-on): Add verify.
14681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14682         * modules/unistd (Makefile.am): Substitute witness.
14683         * lib/unistd.in.h (sleep): Update prototype.
14684         * doc/posix-functions/sleep.texi (sleep): Document the bug.
14685         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
14686         * modules/sleep-tests (Depends-on): Check for alarm.
14687
14688 2009-11-20  Jim Meyering  <meyering@redhat.com>
14689
14690         maint.mk: improve sc_prohibit_magic_number_exit
14691         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
14692         so it does not match uses like System.exit(1).
14693         Add comments showing how to correct all offenders.
14694
14695 2009-11-19  Eric Blake  <ebb9@byu.net>
14696
14697         xalloc-die-tests: add missing library
14698         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
14699
14700         test-xvasprintf: silence compiler warnings
14701         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
14702         empty string from gcc.
14703
14704 2009-11-19  Jim Meyering  <meyering@redhat.com>
14705
14706         xfreopen: new module, from coreutils
14707         * modules/xfreopen: New module.
14708         * lib/xfreopen.c: New file.
14709         * lib/xfreopen.h: New file.
14710         * MODULES.html.sh (File stream based Input/Output"): Add it.
14711
14712 2009-11-19  Eric Blake  <ebb9@byu.net>
14713
14714         manywarnings: depend on warnings
14715         * modules/manywarnings (Depends-on): Add warnings.
14716
14717         build: avoid compiler warnings
14718         * lib/select.c (rpl_select): Delete unused variable.
14719         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
14720
14721 2009-11-18  Eric Blake  <ebb9@byu.net>
14722
14723         tests: avoid false negative with --with-packager
14724         * tests/test-version-etc.sh: Discard packager information.
14725         * tests/test-argp-version-etc-1.sh: Likewise.
14726         Reported by Mike Frysinger.
14727
14728         utimens: fix regression on Solaris
14729         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
14730         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
14731         can only change fd timestamps via futimesat.  Instead, use an
14732         additional witness macro to avoid BSD bug.
14733         Reported by Jim Meyering.
14734
14735 2009-11-17  Eric Blake  <ebb9@byu.net>
14736
14737         usleep: use it to simplify tests
14738         * modules/stat-time-tests (Depends-on): Add usleep.
14739         (configure.ac): Drop usleep check.
14740         * modules/chown-tests (Depends-on, configure.ac): Likewise.
14741         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
14742         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
14743         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
14744         * modules/openat-tests (Depends-on, configure.ac): Likewise.
14745         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
14746         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
14747         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
14748         Likewise.
14749         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
14750         * tests/test-lchown.h (nap): Likewise.
14751         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
14752         * tests/test-stat-time.c (nap): Likewise.
14753         * tests/test-utimens-common.h (nap): Update comments.
14754
14755         usleep: new module
14756         * modules/usleep: New file.
14757         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14758         * lib/usleep.c (usleep): Likewise.
14759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
14760         * modules/unistd (Makefile.am): Substitute witnesses.
14761         * lib/unistd.in.h (usleep): Add declaration.
14762         * doc/pastposix-functions/usleep.texi (usleep): Document this.
14763         * MODULES.html.sh (Date and time): Likewise.
14764         * modules/usleep-tests (Depends-on): New test.
14765         * tests/test-usleep.c: New file.
14766
14767         chown: work around OpenBSD bug
14768         * lib/chown.c (rpl_chown): Work around the bug.
14769         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
14770         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
14771         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
14772         * modules/chown (Depends-on): Add stdbool.
14773         * modules/lchown (Depends-on): Likewise.
14774         * doc/posix-functions/chown.texi (chown): Document the bug.
14775         * doc/posix-functions/lchown.texi (lchown): Likewise.
14776         * tests/test-lchown.h (test_chown): Relax test.
14777
14778         mkstemp: avoid conflict with C++ keyword template
14779         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
14780         * lib/mkostemp.c (mkostemp): Likewise.
14781         * lib/mkostemps.c (mkostemps): Likewise.
14782         * lib/mkstemp.c (mkstemp): Likewise.
14783         * lib/mkstemps.c (mkstemps): Likewise.
14784
14785         xalloc-die-tests: optimize
14786         * tests/test-xalloc-die.sh: Reduce number of processes.
14787
14788 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14789
14790         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
14791         patch from ludo@gnu.org (Ludovic Courtès).
14792
14793 2009-11-17  Jim Meyering  <meyering@redhat.com>
14794
14795         version-etc: use proper license string
14796         * modules/version-etc (License): Use LGPL, not LGPLv3+.
14797         * modules/version-etc-fsf: Likewise.
14798
14799 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14800
14801         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
14802         printed to stdout.  Deal with EOL differences.
14803
14804 2009-11-17  Eric Blake  <ebb9@byu.net>
14805
14806         unsetenv: work around Solaris bug
14807         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
14808         * lib/unsetenv.c (rpl_unsetenv): Work around it.
14809         Reported by Jim Meyering.
14810
14811         vasnprintf: avoid compiler warnings
14812         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
14813         variables.
14814         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
14815
14816 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14817
14818         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
14819         settings since xalloc-die is no longer the self test,
14820         xalloc-die.sh is.
14821
14822 2009-11-17  Jim Meyering  <meyering@redhat.com>
14823
14824         test-xalloc-die.sh: make the code agree with the commit log
14825         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
14826         at the end, just in case you happen to have a test-xalloc-die
14827         program in some other PATH directory.
14828
14829         test-xalloc-die.sh: fix a portability bug
14830         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
14831         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
14832         Otherwise, argv[0] (as often seen in diagnostics) would be too
14833         system-dependent, sometimes with, and sometimes without the leading "./".
14834
14835         version-etc-fsf: relax license to LGPLv3+
14836         * modules/version-etc-fsf (License): Relax license.
14837
14838 2009-11-16  Eric Blake  <ebb9@byu.net>
14839
14840         xalloc-die-tests: avoid printing null pointer
14841         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
14842         shell script.
14843         * tests/test-xalloc-die.c (program_name): Declare.
14844         * tests/test-xalloc-die.sh (tmpfiles): New file.
14845
14846         setenv, unsetenv: work around various bugs
14847         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
14848         (setenv) [HAVE_SETENV]: Work around bugs.
14849         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
14850         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
14851         for bugs.
14852         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
14853         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
14854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
14855         * modules/stdlib (Makefile.am): Update substitutions.
14856         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
14857         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
14858         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14859         * modules/setenv-tests: New test.
14860         * modules/unsetenv-tests: Likewise.
14861         * tests/test-setenv.c: New file.
14862         * tests/test-unsetenv.c: Likewise.
14863
14864 2009-11-16  Jim Meyering  <meyering@redhat.com>
14865
14866         version-etc: relax license to LGPLv3+
14867         * modules/version-etc (License): Relax license.
14868
14869         better AC_REQUIRE expanded-before-required-warning avoidance
14870         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
14871         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
14872         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
14873         which is no longer needed.
14874
14875 2009-11-16  Eric Blake  <ebb9@byu.net>
14876
14877         test-freading: clean up temporary file
14878         * tests/test-freading.c (main): Remove file on success, and use
14879         ASSERT more liberally.
14880         Reported by Jim Meyering.
14881
14882 2009-11-16  Jim Meyering  <meyering@redhat.com>
14883
14884         avoid new AC_REQUIRE expanded-before-required warnings
14885         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
14886         merely using it.
14887         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
14888         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
14889
14890 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14891
14892         * tests/test-xalloc-die.c: New file.
14893         * modules/xalloc-die-tests: New file.
14894         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
14895         XFAIL_TESTS so it can be appended by modules.
14896
14897 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14898
14899         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
14900         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
14901
14902 2009-11-14  Eric Blake  <ebb9@byu.net>
14903
14904         fnmatch: avoid compiler warning
14905         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
14906         to silence compiler warning about mismatch signedness in ?:.
14907         Reported by Robert Millan.
14908
14909         intprops: add double-inclusion guard
14910         * lib/intprops.h: Allow idempotent includes.
14911         Suggested by Bruce Korb.
14912
14913         openat: detect Solaris fchownat bug
14914         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
14915         penalizing glibc chownat when only lchownat is broken.
14916         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
14917         trailing slash bugs.
14918         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
14919         * modules/openat-tests (Files): Include more files.
14920         (Depends-on): Add mgetgroups, sleep, stat-time.
14921         (configure.ac): Add additional checks.
14922         (Makefile.am): Build new test.
14923         * tests/test-fchownat.c: New file.
14924
14925         lchown: detect Solaris and FreeBSD bug
14926         * lib/lchown.c (rpl_lchown): Work around bug.
14927         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
14928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14929         * modules/unistd (Makefile.am): Populate it.
14930         * lib/unistd.in.h (lchown): Update declaration.
14931         * doc/posix-functions/lchown.texi (lchown): Document the bug.
14932         * modules/lchown-tests: New file.
14933         * tests/test-lchown.h (test_lchown): Likewise.
14934         * tests/test-lchown.c (main): Likewise.
14935
14936         chown: detect Solaris and FreeBSD bug
14937         * lib/chown.c (rpl_chown): Work around bug.
14938         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
14939         (gl_PREREQ_CHOWN): Delete.
14940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14941         * modules/unistd (Makefile.am): Populate it.
14942         * lib/unistd.in.h (chown): Update declaration.
14943         * lib/lchown.c (chown): Update client.
14944         * modules/lchown (Depends-on): Add lstat.
14945         * doc/posix-functions/chown.texi (chown): Document the bug.
14946         * doc/posix-functions/getgroups.texi (getgroups): Document
14947         getgroups pitfall.
14948         * modules/chown-tests: New file.
14949         * tests/test-chown.h (test_chown): Likewise.
14950         * tests/test-chown.c (main): Likewise.
14951
14952 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
14953
14954         gnulib-tool: correctly detect absence of m4 directories
14955         * gnulib-tool: Avoid extra newline on data passed to wc -l.
14956
14957 2009-11-14  Jim Meyering  <meyering@redhat.com>
14958
14959         maint.mk: Prohibit inclusion of "xalloc.h" without use.
14960         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14961
14962 2009-11-14  John W. Eaton  <jwe@gnu.org>
14963
14964         strftime.h: wrap funtion declaration in extern "C" block
14965         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
14966
14967 2009-11-13  Eric Blake  <ebb9@byu.net>
14968
14969         getgroups: avoid compiler warning
14970         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
14971
14972         getgroups: work around FreeBSD bug
14973         * lib/getgroups.c (rpl_getgroups): Work around the bug.
14974         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
14975         * doc/posix-functions/getgroups.texi (getgroups): Document it.
14976         * tests/test-getgroups.c (main): Fix buffer overrun.
14977
14978         getgroups: avoid compilation failure
14979         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
14980         * modules/getgroups (Depends-on): Add stdint.
14981
14982 2009-11-13  Jim Meyering  <meyering@redhat.com>
14983
14984         test-getgroups: avoid compilation failure
14985         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
14986
14987 2009-11-13  Eric Blake  <ebb9@byu.net>
14988
14989         mgetgroups: new module, taken from coreutils
14990         * modules/mgetgroups: New file.
14991         * lib/mgetgroups.h: Likewise.
14992         * lib/mgetgroups.c (mgetgroups): Likewise.
14993         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
14994         * MODULES.html.sh (Users and groups): Mention it.
14995
14996         getgroups: don't expose GETGROUPS_T to user
14997         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
14998         an element at a time if GETGROUPS_T is wrong size.
14999         * lib/getugroups.h (getugroups): Change signature.
15000         * lib/unistd.in.h (getgroups): Likewise.
15001         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
15002         signature needs fixing.
15003         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
15004         AC_TYPE_GETGROUPS.
15005         * modules/group-member (Depends-on): Add getgroups.
15006         * lib/group-member.c (group_info, get_group_info): Use gid_t.
15007         (group_member): Rely on getgroups replacement.
15008         * lib/getugroups.c (getugroups): Use gid_t.
15009         * tests/test-getgroups.c (main): Likewise.
15010         * NEWS: Mention the signature change.
15011         * doc/posix-functions/getgroups.texi (getgroups): Mention the
15012         problem with signature.
15013         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
15014         GETGROUPS_T is still useful for setgroups.
15015
15016         getgroups, getugroups: provide stubs for mingw
15017         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
15018         * lib/getugroups.c (getugroups): Likewise.
15019         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
15020         function.  Modernize replacement scheme.
15021         (gl_PREREQ_GETGROUPS): Delete.
15022         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
15023         * modules/getgroups (configure.ac): Declare witness.
15024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
15025         * modules/unistd (Depends-on): Substitute witness.
15026         * lib/unistd.in.h (getgroups): Declare replacement.
15027
15028         getgroups: avoid calling exit
15029         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
15030         drop xalloc.
15031         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
15032         dependencies.
15033         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
15034         exiting, in the rare case of malloc failure.
15035
15036         getgroups: fix logic error
15037         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
15038         has more than 20 groups.
15039         * modules/getgroups-tests: New test.
15040         * tests/test-getgroups.c: New file.
15041
15042 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15043
15044         * tests/test-base64.c: Improve.
15045
15046 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15047
15048         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
15049         Blake <ebb9@byu.net>.
15050
15051 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15052
15053         * tests/test-xvasprintf.c: Add %s%s related checks.
15054
15055 2009-11-12  Eric Blake  <ebb9@byu.net>
15056
15057         version-etc: match standards.texi style
15058         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
15059         and use <> only for URLs.
15060
15061 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
15062
15063         fts: do not fail on a submount during traversal
15064         * lib/fts.c (fts_build): Read the stat info again after opening
15065         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
15066         Original report at http://bugzilla.redhat.com/501848.
15067
15068 2009-11-12  Jim Meyering  <meyering@redhat.com>
15069
15070         bootstrap: sync from coreutils
15071         * build-aux/bootstrap (bootstrap_epilogue): New function.
15072         Use git_modules_config in one more place.  This make bootstrap's
15073         --gnulib-srcdir option more useful for testing.
15074
15075         bootstrap: generalize autoheader check
15076         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
15077         AC_CONFIG_HEADERS.
15078
15079 2009-11-11  Eric Blake  <ebb9@byu.net>
15080
15081         mkfifoat: use new modules for Solaris and BSD bugs
15082         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
15083         * lib/mkfifoat.c (mknodat): Split...
15084         * lib/mknodat.c (mknodat): ...into new file.
15085         * modules/mkfifoat (Files): Ship new file.
15086         (Depends-on): Add mkfifo, mknod.
15087         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
15088         (Depends-on): Add symlink.
15089         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
15090         redundant with test_mkfifo.h.
15091         (do_mkfifoat, do_mknodat): New helpers.
15092
15093         mknod: new module
15094         * modules/mknod: New file.
15095         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
15096         * lib/mknod.c (mknod): Likewise.
15097         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
15098         defaults.
15099         * modules/sys_stat (Makefile.am): Substitute them.
15100         * lib/sys_stat.in.h (mknod): Declare replacement.
15101         * MODULES.html.sh (Support for systems lacking POSIX:2008):
15102         Document it.
15103         * doc/posix-functions/mknod.texi (mknod): Likewise.
15104         * modules/mknod-tests: New test.
15105         * tests/test-mknod.c: Likewise.
15106
15107         mkfifo: new module
15108         * modules/mkfifo: New file.
15109         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15110         * lib/mkfifo.c (mkfifo): Likewise.
15111         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
15112         defaults.
15113         * modules/sys_stat (Makefile.am): Substitute them.
15114         * lib/sys_stat.in.h (mkfifo): Declare replacement.
15115         * MODULES.html.sh (Support for systems lacking POSIX:2008):
15116         Document it.
15117         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
15118         * modules/mkfifo-tests: New test.
15119         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
15120         from test-mkfifoat.c.
15121         * tests/test-mkfifo.c: New file.
15122
15123         readlink: detect FreeBSD bug
15124         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
15125         slash on symlink.
15126         * doc/posix-functions/readlink.texi (readlink): Document the bug.
15127         * tests/test-readlink.h (test_readlink): Enhance test.
15128
15129         symlink: detect FreeBSD bug
15130         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
15131         slash on symlink.
15132         * doc/posix-functions/symlink.texi (symlink): Document the bug.
15133         * tests/test-symlink.h (test_symlink): Enhance test.
15134
15135 2009-11-10  Eric Blake  <ebb9@byu.net>
15136
15137         link: detect FreeBSD bug
15138         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
15139         symlink.
15140         * doc/posix-functions/link.texi (link): Document the bug.
15141         * tests/test-link.h (test_link): Enhance test.
15142         * tests/test-linkat.c (main): Update caller.
15143
15144         unlink, remove: detect FreeBSD bug
15145         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
15146         slash on symlink.
15147         * doc/posix-functions/unlink.texi (unlink): Document the bug.
15148         * doc/posix-functions/remove.texi (remove): Likewise.
15149         * tests/test-unlink.h (test_unlink): Enhance test.
15150         * tests/test-remove.c (main): Likewise.
15151
15152 2009-11-09  Eric Blake  <ebb9@byu.net>
15153
15154         rename: detect FreeBSD bug
15155         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
15156         slash on symlink.
15157         * modules/renameat-tests (Depends-on): Add filenamecat.
15158         * tests/test-rename.h (test_rename): Allow one more errno.
15159         * tests/test-renameat.c (main): Likewise.
15160         * doc/posix-functions/rename.texi (rename): Document the bug.
15161
15162         open: detect FreeBSD bug
15163         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
15164         symlink.
15165         * doc/posix-functions/open.texi (open): Document the bug.
15166         * doc/posix-functions/utimes.texi (utimes): Likewise.
15167         * tests/test-open.h (test_open): Add parameters, and test symlink
15168         handling.
15169         * tests/test-open.c (main): Adjust caller.
15170         * tests/test-fcntl-safer.c (main): Likewise.
15171         * modules/open-tests (Depends-on): Add stdbool, symlink.
15172         * modules/fcntl-safer-tests (Depends-on): Likewise.
15173         * tests/test-openat.c (main): Add test-open tests.
15174
15175         stat: detect FreeBSD bug
15176         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
15177         symlink.
15178         * doc/posix-functions/stat.texi (stat): Document the bug.
15179         * tests/test-stat.h (test_stat_func): Add argument.
15180         * tests/test-stat.c (main): Adjust caller.
15181         * tests/test-fstatat.c (main): Likewise.
15182         * modules/stat-tests (Depends-on): Add stdbool, symlink.
15183         Reported by Jim Meyering.
15184
15185 2009-11-09  James Youngman  <jay@gnu.org>
15186
15187         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
15188         * lib/strftime.c: Correct placement of #include "ignore-value.h".
15189
15190 2009-11-08  Jim Meyering  <meyering@redhat.com>
15191
15192         utimens: remove invalid futimesat call
15193         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
15194         It used the file descriptor of the target file as the DIR_FD
15195         parameter and NULL as the file name.  That caused failure with
15196         errno == EFAULT on FreeBSD-8.0-rc2
15197
15198 2009-11-07  Eric Blake  <ebb9@byu.net>
15199
15200         fflush, freadseek: use fseeko, not fseek
15201         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
15202         (clear_ungetc_buffer): Avoid potential problems on large files.
15203         * lib/freadseek.c (freadseek): Likewise.
15204         * modules/freadseek (Depends-on): Add fseeko.
15205         * modules/fseek (configure.ac): Set a witness.
15206         * tests/test-fflush.c (main): Use fseeko.
15207         * tests/test-fpurge.c (fseek): Disable link warning.
15208         * tests/test-freadable.c (fseek): Likewise.
15209         * tests/test-freading.c (fseek): Likewise.
15210         * tests/test-fseeko.c (fseek): Likewise.
15211         * tests/test-ftell.c (fseek): Likewise.
15212         * tests/test-ftello.c (fseek): Likewise.
15213         * tests/test-fwritable.c (fseek): Likewise.
15214         * tests/test-fwriting.c (fseek): Likewise.
15215
15216 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15217
15218         * modules/memchr (Depends-on): Drop getpagesize dependency.
15219
15220 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15221
15222         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
15223         Reported by Ludovic Courtès.
15224         * build-aux/pmccabe2html: Improve example usage.
15225         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
15226
15227 2009-11-06  Jim Meyering  <meyering@redhat.com>
15228
15229         do-release-commit-and-tag: New module.
15230         Automate the release-commit and tag process.
15231         * build-aux/do-release-commit-and-tag: New script, from coreutils.
15232         * modules/do-release-commit-and-tag: New file.
15233         * MODULES.html.sh (Support for maintaining and releasing): Add it.
15234
15235 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15236
15237         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
15238         because test-select.c uses inet_pton.
15239
15240 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15241
15242         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
15243         GETADDRINFO_LIB.  Bump serial number.
15244         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
15245         Suggested by Eric Blake <ebb9@byu.net>.
15246
15247 2009-11-05  Eric Blake  <ebb9@byu.net>
15248
15249         strtod: detect darwin bug
15250         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
15251         Reported by Leo Davis.
15252
15253         freopen-safer: new module
15254         * modules/freopen-safer: New module.
15255         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
15256         * lib/freopen-safer.c (freopen_safer): New file.
15257         * lib/stdio-safer.h (freopen_safer): New declaration.
15258         * lib/stdio--.h (freopen): New override.
15259         * MODULES.html.sh (File stream based Input/Output): Mention it.
15260         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
15261         freopen-safer module.
15262         * doc/posix-functions/stderr.texi (stderr): Likewise.
15263         * doc/posix-functions/stdin.texi (stdin): Likewise.
15264         * doc/posix-functions/stdout.texi (stdout): Likewise.
15265         * modules/freopen-safer-tests: New test.
15266         * tests/test-reopen-safer.c: New file.
15267
15268 2009-11-05  Jim Meyering  <meyering@redhat.com>
15269
15270         maint.mk: Prohibit inclusion of "close-stream.h" without use.
15271         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
15272
15273 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15274
15275         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
15276
15277 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15278
15279         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
15280
15281 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15282
15283         Fix link error.
15284         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
15285         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15286
15287 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15288
15289         * tests/test-func.c: Also test value of __func__.
15290
15291 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15292
15293         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
15294         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
15295
15296 2009-11-05  Bruno Haible  <bruno@clisp.org>
15297
15298         Fix link error.
15299         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
15300         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15301         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
15302
15303 2009-11-05  Bruno Haible  <bruno@clisp.org>
15304
15305         Tests for module 'inet_pton'.
15306         * modules/inet_pton-tests: New file.
15307         * tests/test-inet_pton.c: New file.
15308
15309 2009-11-05  Bruno Haible  <bruno@clisp.org>
15310
15311         Tests for module 'inet_ntop'.
15312         * modules/inet_ntop-tests: New file.
15313         * tests/test-inet_ntop.c: New file.
15314
15315 2009-11-04  Eric Blake  <ebb9@byu.net>
15316
15317         stdlib-safer: wrap all mkstemp variants
15318         * modules/mkostemp (configure.ac): Set witness.
15319         * modules/mkostemps (configure.ac): Likewise.
15320         * modules/mkstemps (configure.ac): Likewise.
15321         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
15322         (mkstemps_safer): Wrap more functions.
15323         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
15324         wrapping.
15325         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
15326         (mkstemps_safer): Implement the wrappers.
15327
15328         mkstemps, mkostemps: new modules
15329         * modules/mkostemps: New module.
15330         * modules/mkstemps: Likewise.
15331         * lib/mkostemps.c (mkostemps): New file.
15332         * lib/mkstemps.c (mkstemps): Likewise.
15333         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
15334         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
15335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
15336         * modules/stdlib (Makefile.am): Substitute them.
15337         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
15338         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
15339         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15340         * doc/gnulib.texi (Glibc stdlib.h): Include them.
15341         * MODULES.html.sh (File system functions): Mention them.
15342
15343         tempname: resync from glibc
15344         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
15345         same values for __GT_FILE as glibc.  Abort even when assertions
15346         are disabled.
15347         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
15348         match its value otherwise.  Allow idempotent inclusion.
15349         * lib/mkdtemp.c (mkdtemp): Adjust caller.
15350         * lib/mkostemp.c (mkostemp): Likewise.
15351         * lib/mkstemp.c (mkstemp): Likewise.
15352         * lib/tmpfile.c (tmpfile): Likewise.
15353         * NEWS: Document this.
15354
15355         utimens: fix use of futimens on older Linux
15356         * lib/utimens.c (fdutimens): Use updated, rather than original,
15357         timespec to avoid bug in older Linux kernel.
15358         Reported by Simon Josefsson.
15359
15360 2009-11-04  Bruno Haible  <bruno@clisp.org>
15361
15362         Make num_processors more flexible and consistent.
15363         * lib/nproc.h (enum nproc_query): New type.
15364         (num_processors): Add a 'query' argument.
15365         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
15366         (num_processors): Add a 'query' argument. Test the value of the
15367         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
15368         mingw, count the number of CPUs available for the current process.
15369         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
15370         Check for sched_getaffinity and sched_getaffinity_np.
15371         * modules/nproc (Depends-on): Add c-ctype, extensions.
15372         * NEWS: Mention the change.
15373
15374 2009-11-03  Bruno Haible  <bruno@clisp.org>
15375
15376         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
15377
15378 2009-11-03  Jim Meyering  <meyering@redhat.com>
15379
15380         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
15381         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
15382         if it is defined.
15383
15384 2009-11-02  Eric Blake  <ebb9@byu.net>
15385
15386         mktime, timegm: share common declaration
15387         * lib/mktime-internal.h: New file.
15388         * lib/mktime.c: Use it rather than open-coding a declaration.
15389         * lib/timegm.c: Likewise.
15390         * modules/mktime (Files): Ship it.
15391         * modules/timegm (Files): Likewise.
15392         Suggested by Bruno Haible.
15393
15394         test-update-copyright: update test to match script changes
15395         * tests/test-update-copyright.sh: Avoid hard-coding perl
15396         location.  Don't update *.bak created by earlier runs.
15397
15398 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15399             Simon Josefsson  <simon@josefsson.org>
15400             Bruno Haible  <bruno@clisp.org>
15401
15402         Fix link error on Solaris 8.
15403         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
15404         also in libnsl. Define also INET_PTON_LIB.
15405         * modules/inet_pton (Link): New section.
15406
15407 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15408             Bruno Haible  <bruno@clisp.org>
15409
15410         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
15411         * modules/inet_ntop (Link): New section.
15412         Reported by Boyan Kasarov <bkasarov@gmail.com>.
15413
15414 2009-11-02  Eric Blake  <ebb9@byu.net>
15415
15416         maint: avoid compiler warnings in m4 macros
15417         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
15418         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
15419
15420 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15421
15422         * m4/pmccabe2html.m4: Remove file.
15423         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
15424         function.  Change maintainer.
15425         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
15426         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
15427         Courtès).
15428
15429 2009-10-31  Eric Blake  <ebb9@byu.net>
15430
15431         fseeko: fix m4 regression
15432         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
15433         regression from 2009-10-27.
15434         Reported by Ralf Wildenhues.
15435
15436 2009-10-31  Jim Meyering  <meyering@redhat.com>
15437
15438         inttostr: aesthetics and improved (compile-time) safety
15439         Define inttype_is_signed rather than inttype_is_unsigned,
15440         since the sole use is via "#if inttype_is_signed".
15441         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
15442         inttype_is_unsigned.
15443         * lib/offtostr.c (inttype_is_signed): Likewise.
15444         * lib/uinttostr.c (inttype_is_signed): Likewise.
15445         * lib/umaxtostr.c (inttype_is_signed): Likewise.
15446         * lib/inttostr.c (inttostr): Use verify to cross-check the
15447         inttype_is_signed value and the signedness of the actual type.
15448         * modules/inttostr (Depends-on): Add verify.
15449
15450 2009-10-30  Eric Blake  <ebb9@byu.net>
15451
15452         build: avoid compiler warnings
15453         * lib/fchmodat.c (lchmod): Mark unused variables.
15454         * lib/getopt.c (_getopt_initialize): Likewise.
15455         * lib/mktime.c (__mktime_internal): Provide prototype.
15456         * lib/inttostr.c (inttostr): Avoid compiler warning even with
15457         older gcc that do not understand #pragma GCC diagnostic.
15458         * lib/uinttostr.c (inttype_is_unsigned): Define.
15459         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
15460
15461 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
15462
15463         stat: fix compilation on AIX
15464         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
15465         only see struct stat64.
15466
15467 2009-10-30  Eric Blake  <ebb9@byu.net>
15468
15469         exclude: make more robust
15470         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
15471         rather than masking a coding bug.
15472         Suggested by Bruno Haible.
15473
15474 2009-10-30  Jim Meyering  <meyering@redhat.com>
15475
15476         perl scripts: remove #!/usr/bin/perl in favor of more portable...
15477         Rather than putting #!/usr/bin/perl on the first line,
15478         start with a variant of what's recommended by "man perlrun" that
15479         invokes the first "perl" program from your shell's search path.
15480         * build-aux/gitlog-to-changelog: Replace #!... as above.
15481         Add a "Local Variables" perl mode setting.
15482         Prompted by a patch from Ludovic Courtès.
15483         Improved by Eric Blake.
15484         * build-aux/useless-if-before-free: Likewise.
15485         * build-aux/announce-gen: Likewise.
15486         * build-aux/update-copyright: Likewise.
15487
15488 2009-10-29  Eric Blake  <ebb9@byu.net>
15489
15490         filenamecat-lgpl: adjust clients
15491         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
15492         filenamecat.
15493         * modules/renameat (Depends-on): Likewise.
15494
15495         filenamecat: split into filenamecat-lgpl
15496         * modules/filenamecat-lgpl: New module.
15497         * modules/filenamecat (Files): Move library-safe files into
15498         filenamecat-lgpl.
15499         (Depends-on): Add filenamecat-lgpl.
15500         (configure.ac): Declare witness.
15501         * lib/filenamecat.h (file_name_concat): Only declare when using
15502         GPL module.
15503         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
15504         Move...
15505         * lib/filenamecat-lgpl.c: ...into new file.
15506         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
15507         (gl_FILE_NAME_CONCAT): Use it.
15508         * MODULES.html.sh (File system functions): Mention new module.
15509
15510         argp: avoid memory leak
15511         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
15512         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
15513         base_name, since the latter malloc()s and can call exit().
15514         Leak introduced 2006-07-03.
15515
15516         dirname-lgpl: adjust clients that don't need full dirname
15517         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
15518         * modules/filenamecat (Depends-on): Likewise.
15519         * modules/linkat (Depends-on): Likewise.
15520         * modules/mkancesdirs (Depends-on): Likewise.
15521         * modules/mkdir (Depends-on): Likewise.
15522         * modules/openat (Depends-on): Likewise.
15523         * modules/savewd (Depends-on): Likewise.
15524         * modules/rename (Depends-on): Likewise.
15525         (License): Relax license.
15526         * modules/mkdir-tests (Depends-on): Drop progname.
15527         (Makefile.am): Delete unneeded LDADD.
15528         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
15529
15530         dirname: split into dirname-lgpl
15531         * modules/dirname-lgpl: New module.
15532         * modules/dirname (Files): Move library-safe files into
15533         dirname-lgpl.
15534         (Depends-on): Add dirname-lgpl.
15535         (configure.ac): Declare witness.
15536         * modules/double-slash-root (License): Relax license.
15537         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
15538         module.
15539         * lib/dirname.c (dir_len, mdir_name): Move...
15540         * lib/dirname-lgpl.c: ...into new file.
15541         * lib/basename.c (last_component, base_len): Move...
15542         * lib/basename-lgpl.c: ...into new file.
15543         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
15544         (gl_DIRNAME): Use it.
15545         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
15546         Mention new module.
15547         * modules/dirname-tests (Depends-on): Add progname.
15548         * tests/test-dirname.c (program_name): Delete.
15549
15550         mkdir: make safe for libraries
15551         * modules/mkdir (Depends-on): Drop xalloc.
15552         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
15553         exit.
15554
15555         tests: avoid some compiler warnings
15556         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
15557         literals.
15558         * tests/test-memchr.c (main): Avoid type mismatch.
15559         * tests/test-arpa_inet.c (main): Avoid unused parameters.
15560         * tests/test-base64.c (main): Likewise.
15561         * tests/test-getdelim.c (main): Likewise.
15562         * tests/test-gethostname.c (main): Likewise.
15563         * tests/test-getline.c (main): Likewise.
15564         * tests/test-netinet_in.c (main): Likewise.
15565         * tests/test-select.c (open_server_socket, main): Likewise.
15566         * tests/test-select-stdin.c (main): Likewise.
15567         * tests/test-sockets.c (main): Likewise.
15568         * tests/test-strsignal.c (main): Likewise.
15569         * tests/test-sys_select.c (main): Likewise.
15570         * tests/test-sys_socket.c (main): Likewise.
15571         * tests/test-u64.c (main): Likewise.
15572         * tests/test-xfprintf-posix.c (main): Likewise.
15573         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
15574
15575         sockets: avoid compiler warning
15576         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
15577
15578         maint: detect usage(1) and other suspicious exits
15579         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
15580
15581 2009-10-29  Jim Meyering  <meyering@redhat.com>
15582
15583         timespec: long-to-int truncation could make timespec_cmp malfunction
15584         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
15585         a multiple of 2^32 nanoseconds as no difference.
15586
15587 2009-10-28  Jim Meyering  <meyering@redhat.com>
15588
15589         fprintftime: wrap macro code argument in "do {...} while(0)"
15590         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
15591         cpy macro must be a statement that can be followed by a semicolon.
15592         Now that the else clause contains a comment and is hence longer
15593         than one line, I require curly braces.  That in turn requires
15594         that we wrap this code block in the standard do...while(0).
15595
15596         fprintftime: remove stray semicolon from previous change
15597         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
15598
15599         fprintftime: avoid a warning about ignored fwrite return value
15600         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
15601         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
15602         that is unsafe.
15603         * modules/fprintftime (Depends-on): Add ignore-value.
15604
15605         exclude: avoid an unwarranted warning
15606         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
15607
15608 2009-10-27  Eric Blake  <ebb9@byu.net>
15609
15610         fseek: avoid compilation failure when fflush is replaced
15611         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
15612         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
15613         module is in use.
15614         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
15615         module is not in use; since REPLACE_FSEEK worked otherwise.
15616         (GNULIB_FTELLO): Likewise for ftell.
15617         Reported by Ian Beckwith and others.
15618
15619 2009-10-27  Bruno Haible  <bruno@clisp.org>
15620
15621         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
15622         Reported by Jim Meyering.
15623
15624 2009-10-27  Jim Meyering  <jim@meyering.net>
15625             Bruno Haible  <bruno@clisp.org>
15626
15627         Avoid warning despite dropping the return value of fwrite.
15628         * lib/unicodeio.c: Include ignore-value.h.
15629         (fwrite_success_callback): Explicitly ignore fwrite's return value.
15630         * modules/unicodeio (Depends-on): Add ignore-value.
15631
15632 2009-10-26  Eric Blake  <ebb9@byu.net>
15633
15634         areadlinkat: fix fallback path
15635         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
15636         pointer and zero.
15637
15638 2009-10-22  Pádraig Brady  <P@draigBrady.com>
15639
15640         Use a better IO block size for modern systems
15641         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
15642         * lib/md2.c: Likewise.
15643         * lib/md4.c: Likewise.
15644         * lib/md5.c: Likewise.
15645         * lib/sha1.c: Likewise.
15646         * lib/sha256.c: Likewise.
15647         * lib/sha512.c: Likewise.
15648
15649 2009-10-22  Eric Blake  <ebb9@byu.net>
15650
15651         tests: avoid several compiler warnings
15652         * tests/test-getcwd.c (main): Avoid buffer underflow.
15653         * tests/test-getdate.c (main): String literals are not safe with
15654         putenv, so use setenv.  Declare unused argument.
15655         * modules/getdate-tests (Depends-on): Add setenv.
15656         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
15657         problems with string literals in char *.
15658         * tests/test-hash.c (main): Avoid shadowing declaration.
15659         (insert_new): Treat string literals as char const *.
15660         * tests/test-getopt.h (test_getopt): Likewise.
15661         (getopt_loop): Alter types to minimize casting elsewhere.
15662         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
15663         (test_getopt_long_posix): Likewise.
15664         (do_getopt_long): Add wrapper to minimize casting.
15665         * tests/test-atexit.c (clear_temp_file): Use void.
15666         * tests/test-areadlink-with-size.c (main): Declare unused
15667         arguments.
15668         * tests/test-areadlink.c (main): Likewise.
15669         * tests/test-areadlinkat-with-size.c (main): Likewise.
15670         * tests/test-areadlinkat.c (main): Likewise.
15671         * tests/test-canonicalize-lgpl.c (main): Likewise.
15672         * tests/test-canonicalize.c (main): Likewise.
15673         * tests/test-dirent-safer.c (main): Likewise.
15674         * tests/test-dirname.c (main): Likewise.
15675         * tests/test-dup2.c (main): Likewise.
15676         * tests/test-fchdir.c (main): Likewise.
15677         * tests/test-fcntl-h.c (main): Likewise.
15678         * tests/test-fcntl-safer.c (main): Likewise.
15679         * tests/test-fdopendir.c (main): Likewise.
15680         * tests/test-fdutimensat.c (main): Likewise.
15681         * tests/test-fflush.c (main): Likewise.
15682         * tests/test-filenamecat.c (main): Likewise.
15683         * tests/test-filevercmp.c (main): Likewise.
15684         * tests/test-fopen-safer.c (main): Likewise.
15685         * tests/test-fopen.c (main): Likewise.
15686         * tests/test-fpending.c (main): Likewise.
15687         * tests/test-fpurge.c (main): Likewise.
15688         * tests/test-freading.c (main): Likewise.
15689         * tests/test-fstatat.c (main): Likewise.
15690         * tests/test-fsync.c (main): Likewise.
15691         * tests/test-futimens.c (main): Likewise.
15692         * tests/test-getndelim2.c (main): Likewise.
15693         * tests/test-gettimeofday.c (main): Likewise.
15694         * tests/test-getopt.c (main): Likewise.
15695         * tests/test-i-ring.c (main): Likewise.
15696         * tests/test-inttypes.c (main): Likewise.
15697         * tests/test-link.c (main): Likewise.
15698         * tests/test-lstat.c (main): Likewise.
15699         * tests/test-math.c (main): Likewise.
15700         * tests/test-md5.c (main): Likewise.
15701         * tests/test-memchr2.c (main): Likewise.
15702         * tests/test-memrchr.c (main): Likewise.
15703         * tests/test-mkdir.c (main): Likewise.
15704         * tests/test-mkdirat.c (main): Likewise.
15705         * tests/test-mkfifoat.c (main): Likewise.
15706         * tests/test-open.c (main): Likewise.
15707         * tests/test-openat-safer.c (main): Likewise.
15708         * tests/test-openat.c (main): Likewise.
15709         * tests/test-quotearg.c (main): Likewise.
15710         * tests/test-rawmemchr.c (main): Likewise.
15711         * tests/test-readlink.c (main): Likewise.
15712         * tests/test-remove.c (main): Likewise.
15713         * tests/test-rename.c (main): Likewise.
15714         * tests/test-renameat.c (main): Likewise.
15715         * tests/test-rmdir.c (main): Likewise.
15716         * tests/test-sha1.c (main): Likewise.
15717         * tests/test-signal.c (main): Likewise.
15718         * tests/test-sigaction.c (main): Likewise.
15719         * tests/test-stat.c (main): Likewise.
15720         * tests/test-stat-time.c (main): Likewise.
15721         * tests/test-stddef.c (main): Likewise.
15722         * tests/test-stdint.c (main): Likewise.
15723         * tests/test-stdio.c (main): Likewise.
15724         * tests/test-stdlib.c (main): Likewise.
15725         * tests/test-strchrnul.c (main): Likewise.
15726         * tests/test-strerror.c (main): Likewise.
15727         * tests/test-string.c (main): Likewise.
15728         * tests/test-strtod.c (main): Likewise.
15729         * tests/test-strverscmp.c (main): Likewise.
15730         * tests/test-symlink.c (main): Likewise.
15731         * tests/test-symlinkat.c (main): Likewise.
15732         * tests/test-sys_stat.c (main): Likewise.
15733         * tests/test-sys_time.c (main): Likewise.
15734         * tests/test-time.c (main): Likewise.
15735         * tests/test-unistd.c (main): Likewise.
15736         * tests/test-unlink.c (main): Likewise.
15737         * tests/test-unlinkat.c (main): Likewise.
15738         * tests/test-utimens.c (main): Likewise.
15739         * tests/test-utimensat.c (main): Likewise.
15740         * tests/test-version-etc.c (main): Likewise.
15741         * tests/test-wchar.c (main): Likewise.
15742         * tests/test-wctype.c (main): Likewise.
15743         * tests/test-xprintf-posix.c (main): Likewise.
15744         * tests/test-posixtm.c (main): Likewise.
15745         (STREQ): Delete unused macro.
15746         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
15747         shadowed variables.
15748         * tests/test-memchr.c (main): Likewise.
15749
15750 2009-10-21  Eric Blake  <ebb9@byu.net>
15751
15752         areadlinkat: avoid failure on older glibc
15753         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
15754         rather than mis-comparing 0 against FUNC_RESULT of char*.
15755
15756 2009-10-21  Bruno Haible  <bruno@clisp.org>
15757
15758         * modules/stpncpy (License): Relicense under LGPLv2+.
15759         Reported by David Lutterkort <lutter@redhat.com>.
15760
15761 2009-10-20  Eric Blake  <ebb9@byu.net>
15762
15763         utimensat: work around Solaris 9 bug
15764         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
15765         has trailing slash bugs.
15766         * tests/test-lutimens.h (test_lutimens): Enhance test.
15767         * tests/test-utimens.h (test_utimens): Likewise.
15768         * doc/posix-functions/utime.texi (utime): Enhance documentation.
15769         * doc/posix-functions/utimes.texi (utimes): Likewise.
15770         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15771         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
15772         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
15773         * doc/posix-functions/futimens.texi (futimens): Likewise.
15774
15775         fdutimensat: new module
15776         * modules/fdutimensat: New file.
15777         * lib/fdutimensat.c (fdutimensat): Likewise.
15778         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
15779         * MODULES.html.sh (File system functions): Mention module.
15780         * modules/fdutimensat-tests: New test.
15781         * tests/test-fdutimensat.c: Likewise.
15782
15783         doc: regenerate INSTALL
15784         * doc/INSTALL: Reflect recent autoconf update.
15785         * doc/INSTALL.ISO: Likewise.
15786         * doc/INSTALL.UTF-8: Likewise.
15787
15788 2009-10-20  Pádraig Brady  <P@draigBrady.com>
15789
15790         acl: warn if ACL support is not detected
15791         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
15792
15793 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
15794
15795         * lib/nproc.h: Add extern "C" block for C++.
15796
15797 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
15798             Bruno Haible  <bruno@clisp.org>
15799
15800         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
15801         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
15802         * doc/posix-functions/isalpha.texi: Likewise.
15803         * doc/posix-functions/isblank.texi: Likewise.
15804         * doc/posix-functions/iscntrl.texi: Likewise.
15805         * doc/posix-functions/isdigit.texi: Likewise.
15806         * doc/posix-functions/isgraph.texi: Likewise.
15807         * doc/posix-functions/islower.texi: Likewise.
15808         * doc/posix-functions/isprint.texi: Likewise.
15809         * doc/posix-functions/ispunct.texi: Likewise.
15810         * doc/posix-functions/isspace.texi: Likewise.
15811         * doc/posix-functions/isupper.texi: Likewise.
15812         * doc/posix-functions/isxdigit.texi: Likewise.
15813
15814 2009-10-18  Bruno Haible  <bruno@clisp.org>
15815
15816         Tests for module 'isblank'.
15817         * modules/isblank-tests: New file.
15818         * tests/test-isblank.c: New file.
15819
15820         New module 'isblank'.
15821         * lib/isblank.c: New file.
15822         * m4/isblank.m4: New file.
15823         * modules/isblank: New file.
15824         * doc/posix-functions/isblank.texi: Mention the new module.
15825
15826 2009-10-18  Bruno Haible  <bruno@clisp.org>
15827
15828         New module 'ctype'.
15829         * lib/ctype.in.h: New file.
15830         * m4/ctype.m4: New file.
15831         * modules/ctype: New file.
15832         * doc/posix-headers/ctype.texi: Mention the new module.
15833
15834 2009-10-18  Jim Meyering  <meyering@redhat.com>
15835
15836         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
15837         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
15838         right after its initialization, rather than farther down.
15839         Keeping these in close proximity makes it easier to ensure
15840         that each such variable is initialized.  E.g.,
15841
15842             LIB_CLOCK_GETTIME=
15843             AC_SUBST([LIB_CLOCK_GETTIME])
15844
15845         This change also increments these serial numbers.
15846         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
15847         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15848         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15849
15850 2009-10-18  Bruno Haible  <bruno@clisp.org>
15851
15852         Don't let environment variables perturb build.
15853         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
15854         (gl_PREREQ_GETHRXTIME): ... not here.
15855
15856 2009-10-18  Bruno Haible  <bruno@clisp.org>
15857
15858         Avoid symlink attack in localcharset module.
15859         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
15860         (O_NOFOLLOW): Define fallback.
15861         (get_charset_aliases): Don't open the file if it is a symbolic link.
15862         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
15863         gl_FCNTL_H.
15864         (gl_FCNTL_H): Require it.
15865         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
15866         * modules/localcharset (Files): Add m4/fcntl_h.m4.
15867         Reported by Fergal Glynn <fglynn@veracode.com>.
15868
15869 2009-10-18  Bruno Haible  <bruno@clisp.org>
15870
15871         Implement nproc for mingw.
15872         * lib/nproc.c: Include <windows.h>
15873         (num_processors): On native Windows platforms, try GetSystemInfo.
15874
15875 2009-10-18  Bruno Haible  <bruno@clisp.org>
15876
15877         Implement nproc for IRIX.
15878         * lib/nproc.c: Include <sys/sysmp.h>.
15879         (num_processors): On IRIX systems, try sysmp.
15880         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
15881
15882 2009-10-18  Bruno Haible  <bruno@clisp.org>
15883
15884         Implement nproc for HP-UX.
15885         * lib/nproc.c: Include <sys/pstat.h>
15886         (num_processors): On HP-UX systems, try pstat_getdynamic.
15887         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
15888         pstat_getdynamic.
15889
15890 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
15891             Bruno Haible  <bruno@clisp.org>
15892
15893         Implement nproc for NetBSD, OpenBSD.
15894         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
15895         (ARRAY_SIZE): New macro.
15896         (num_processors): On BSD systems, try sysctl of HW_NCPU.
15897         * m4/nproc.m4: New file.
15898         * modules/nproc (Files): Add m4/nproc.m4.
15899         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
15900         (Makefile.am): Instead, augment lib_SOURCES.
15901
15902 2009-10-18  Bruno Haible  <bruno@clisp.org>
15903
15904         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
15905         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
15906         sys/param.h.
15907
15908 2009-10-16  Eric Blake  <ebb9@byu.net>
15909
15910         utimensat: new module
15911         * modules/utimensat: New file.
15912         * lib/utimensat.c (utimensat): Likewise.
15913         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15914         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
15915         so we can work around Linux bugs.
15916         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15917         * modules/sys_stat (Makefile.am): Substitute them.
15918         * lib/sys_stat.in.h (utimensat): Declare it.
15919         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15920         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15921         * modules/utimensat-tests: New test.
15922         * tests/test-utimensat.c: Likewise.
15923
15924         utimens: let lutimens work on non-symlinks
15925         * lib/utimens.c (lutimens): Fall back to utimens rather than
15926         failing with ENOSYS, when file is not a symlink.
15927         (utimens): Reduce redirection.
15928         * tests/test-lutimens.h (test_lutimens): Update test to cover
15929         non-symlinks.
15930         * tests/test-utimens.h (test_utimens): Update test to cover
15931         symlinks.
15932         * tests/test-utimens.c (main): Update caller.
15933
15934         utimens: cache whether utimensat syscall works
15935         * lib/utimens.c (utimensat_works_really): New cache variable.
15936         (fdutimens, lutimens): Use it to avoid failing syscall.
15937
15938         test-stat-time, test-utimens: improve portability
15939         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
15940         ext4 on alpha, and for cygwin.
15941         * tests/test-utimens-common.h: New file.
15942         (nap): Factor delays into single function.
15943         * tests/test-lutimens.h (test_lutimens): Use new header.
15944         * tests/test-futimens.h (test_futimens): Likewise.
15945         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
15946         timestamps to occur from same machine, as was done previously for
15947         test_utimens.
15948         * modules/utimens-tests (Files): Ship new file.
15949         * modules/futimens-tests (Files): Likewise.
15950         Reported in part by Jim Meyering.
15951
15952         sys_stat: sort replacement declarations
15953         * lib/sys_stat.in.h: Sort declarations.
15954         * lib/futimens.c (futimens): Fix typo.
15955
15956 2009-10-15  Jim Meyering  <meyering@redhat.com>
15957
15958         don't let environment settings perturb build
15959         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
15960         could cause a configure-time and/or build-time malfunction.
15961         Typically, a configure-time function-in-library test is performed
15962         via code like this:
15963
15964           LIB_VAR=
15965           AC_SUBST([LIB_VAR])
15966           prefix_saved_LIBS=$LIBS
15967             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
15968                        [test "$ac_cv_search_FUNC" = "none required" ||
15969                         LIB_VAR=$ac_cv_search_FUNC])
15970           LIBS=$prefix_saved_LIBS
15971
15972         However, in each of the files affected by this change, the LIB_VAR=
15973         initialization was omitted.  Thus, when set in the environment, its
15974         value would propagate into generated Makefiles when FUNC is not found
15975         in LIB_NAME.
15976         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
15977         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15978         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15979
15980 2009-10-14  Eric Blake  <ebb9@byu.net>
15981
15982         fchdir: avoid infinite recursion in mingw
15983         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
15984         recursing.
15985
15986         test-stat-time: port to mingw
15987         * tests/test-stat-time.c (force_unlink): Return a value.
15988         (test_ctime) [W32]: Fix compilation error.
15989         (nap): Don't call usleep with too large an argument.  Use
15990         force_unlink.
15991         * doc/pastposix-functions/usleep.texi (usleep): Document the
15992         portability issue.
15993
15994 2009-10-13  Jim Meyering  <meyering@redhat.com>
15995
15996         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
15997         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
15998         * modules/pipe-filter-ii: Likewise.
15999         * modules/sys_socket-tests: Likewise.
16000         * modules/tsearch-tests: Likewise.
16001         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
16002         (check): Depend on it.
16003
16004 2009-10-12  Eric Blake  <ebb9@byu.net>
16005
16006         utimens-tests: port to NFS file systems
16007         * tests/test-utimens.h (test_utimens): Refactor utimecmp
16008         comparisons to avoid spurious failures from timestamp drift
16009         between NFS machines.
16010
16011 2009-10-12  Eric Blake  <ebb9@byu.net>
16012
16013         stat-time-tests: minor cleanups
16014         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
16015         * tests/test-stat-time.c (nap): Separate assignment from call.
16016         Suggested by Paolo Bonzini and Bruno Haible.
16017
16018         sys_stat: guarantee struct timespec
16019         * lib/sys_stat.in.h (includes): Always include <time.h>
16020         * modules/sys_stat (Depends-on): Add time.
16021         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
16022         mode_t permission values.
16023         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
16024         get at subsecond timestamps.
16025
16026 2009-10-10  Eric Blake  <ebb9@byu.net>
16027
16028         futimens: new module
16029         * modules/futimens: New file.
16030         * lib/futimens.c (futimens): Likewise.
16031         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
16032         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
16033         we can work around Linux bugs.
16034         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16035         * modules/sys_stat (Makefile.am): Substitute them.
16036         * lib/sys_stat.in.h (futimens): Declare it.
16037         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16038         * doc/posix-functions/futimens.texi (futimens): Likewise.
16039         * modules/futimens-tests: New test.
16040         * tests/test-futimens.c: Likewise.
16041
16042         utimens: introduce fdutimens
16043         * lib/utimens.h (fdutimens): New prototype.
16044         * lib/utimens.c (gl_futimens): Move guts...
16045         (fdutimens): ...to new interface.
16046         * tests/test-utimens.c (do_fdutimens): Use it.
16047
16048         utimens: add UTIME_NOW and UTIME_OMIT support
16049         * lib/utimens.c (validate_timespec, update_timespec): New helper
16050         functions.
16051         (gl_futimens, lutimens): Use them.
16052         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
16053         stdbool, sys_stat.
16054         (Link): Mention resulting library dependency.
16055         * modules/utimecmp (Link): Likewise.
16056         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
16057         (Makefile.am): Pick up library dependency.
16058         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
16059         definition.
16060         * tests/test-sys_stat.c: Test the definitions.
16061         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
16062         * NEWS: Document library dependency.
16063
16064         utimecmp: support symlink timestamps
16065         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
16066         hashing when possible.  Use pathconf when available.
16067         (SYSCALL_RESOLUTION): Recognize tighter resolution.
16068         * modules/utimecmp (Depends-on): Add lstat.
16069
16070         utimens: add lutimens interface
16071         * lib/utimens.c (lutimens): New function.
16072         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
16073         * lib/utimens.h (lutimens): Declare new interface.
16074         * tests/test-utimens.c (main): Enhance test.
16075         * tests/test-lutimens.h (test_lutimens): New file.
16076         * modules/utimens-tests (Files): Distribute it.
16077         (Depends-on): Add symlink.
16078         (configure.ac): Check for usleep.
16079
16080         utimens: validate futimens usage
16081         * lib/utimens.c (gl_futimens): Require valid fd up front, using
16082         fewer syscalls on failure later on.  Avoid compiler warning on
16083         mingw.
16084         * modules/utimens (Depends-on): Add dup2.
16085
16086         utimens: add test
16087         * modules/utimens-tests: New test.
16088         * tests/test-utimens.h: New file.
16089         * tests/test-futimens.h: Likewise.
16090         * tests/test-utimens.c: Likewise.
16091
16092         doc: mention timestamp portability issues
16093         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
16094         instead.
16095         * doc/posix-functions/utime.texi (utime): Likewise.
16096         * doc/posix-functions/utimes.texi (utimes): Likewise.
16097         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
16098         instead.
16099         * doc/posix-functions/futimens.texi (futimens): Mention utimens
16100         module.
16101         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16102         Mention weakness with symlink timestamps.
16103         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
16104         to utimensat/futimens instead.
16105         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
16106
16107         test-dup2: enhance test
16108         * tests/test-dup2.c (main): Also check AT_FDCWD.
16109
16110         test-stat-time: avoid more spurious failures
16111         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
16112         xfs; and avoid race if the two timestamps cross quantization edge.
16113
16114         relocatable: prefer 'file system' over 'filesystem'
16115         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
16116         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
16117         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
16118         * doc/relocatable.texi (Enabling Relocatability): Likewise.
16119         * lib/relocatable.c (compute_curr_prefix): Likewise.
16120
16121 2009-10-10  Jim Meyering  <meyering@redhat.com>
16122
16123         stat-time-tests: check for the usleep function
16124         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
16125
16126 2009-10-10  Bruno Haible  <bruno@clisp.org>
16127
16128         * modules/xnanosleep: Put the Link section after the Include section.
16129
16130 2009-10-09  Eric Blake  <ebb9@byu.net>
16131
16132         dup2: work around FreeBSD 6.1 bug
16133         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
16134         * doc/posix-functions/dup2.texi (dup2): Document it.
16135         Reported by Nelson H. F. Beebe and Jim Meyering.
16136
16137         test-stat-time: port to buggy NFS clients
16138         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
16139         (test_ctime): Also skip test if mtime and ctime are skewed.
16140
16141         maint: prefer 'file system' over 'filesystem'
16142         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16143         * doc/posix-functions/lstat.texi (lstat): Likewise.
16144         * lib/file-has-acl.c (file_has_acl): Likewise.
16145         * lib/fwriteerror.c [TEST]: Likewise.
16146         * tests/test-areadlink.h (test_areadlink): Likewise.
16147         * tests/test-areadlinkat-with-size.c (main): Likewise.
16148         * tests/test-areadlinkat.c (main): Likewise.
16149         * tests/test-canonicalize-lgpl.c (main): Likewise.
16150         * tests/test-canonicalize.c (main): Likewise.
16151         * tests/test-fstatat.c (main): Likewise.
16152         * tests/test-linkat.c (main): Likewise.
16153         * tests/test-lstat.h (test_lstat_func): Likewise.
16154         * tests/test-mkdir.h (test_mkdir): Likewise.
16155         * tests/test-readlink.h (test_readlink): Likewise.
16156         * tests/test-remove.c (main): Likewise.
16157         * tests/test-rename.h (test_rename): Likewise.
16158         * tests/test-renameat.c (main): Likewise.
16159         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16160         * tests/test-symlink.h (test_symlink): Likewise.
16161         * tests/test-symlinkat.c (main): Likewise.
16162         * tests/test-unlink.h (test_unlink_func): Likewise.
16163         * tests/test-unlinkat.c (main): Likewise.
16164
16165         maint: make realtime library usage explicit
16166         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
16167         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
16168         * modules/settime (Link): Likewise.
16169         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
16170
16171         test-stat-time: speed up execution
16172         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
16173         warning on mingw.
16174         (nap): New helper function.
16175         (prepare_test): Use it to reduce sleep time.
16176         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
16177         execution.
16178         * modules/stat-time-tests (configure.ac): Check for usleep.
16179
16180 2009-10-09  Jim Meyering  <meyering@redhat.com>
16181
16182         selinux-h: always use getfilecon wrappers
16183         * lib/getfilecon.c: New file.
16184         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
16185         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
16186         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
16187         (fgetfilecon): Provide a stub.
16188         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
16189         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
16190         file unconditionally.
16191         When <selinux/selinux.h> is found, arrange to use wrappers.
16192         * modules/selinux-h (Files): Add getfilecon.c.
16193         (Makefile.am): Substitute include-next-related bits
16194         into the now-always-generated selinux/selinux.h file.
16195         * doc/glibc-functions/lgetfilecon.texi: New file.
16196         * doc/glibc-functions/fgetfilecon.texi: New file.
16197         * doc/glibc-functions/getfilecon.texi: New file.
16198         * doc/glibc-functions/getfilecon-desc.texi: New file.
16199         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
16200         which to pull in the new files.
16201         * MODULES.html.sh (Misc): Add selinux-h.
16202
16203 2009-10-08  Jim Meyering  <meyering@redhat.com>
16204
16205         unistd: fix comment typo
16206         * lib/unistd.in.h (euidaccess): Fix a comment typo.
16207
16208 2009-10-08  Eric Blake  <ebb9@byu.net>
16209
16210         areadlink: use SIZE_MAX consistently
16211         * modules/areadlink (Depends-on): Add stdint.
16212         * modules/areadlink-with-size (Depends-on): Likewise.
16213         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
16214         gives NULL; drop sys/types, since unistd gives size_t; and add
16215         stdint for SIZE_MAX.
16216         (SIZE_MAX): Rely on headers.
16217         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
16218         and add stdint.
16219         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
16220         (SIZE_MAX): Likewise.
16221         (INITIAL_BUF_SIZE): Turn into enum.
16222         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
16223
16224 2009-10-08  Jim Meyering  <meyering@redhat.com>
16225
16226         areadlinkat: avoid compilation failure
16227         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
16228         Fix typo in comment.
16229
16230 2009-10-07  Eric Blake  <ebb9@byu.net>
16231
16232         areadlinkat-with-size: new module
16233         * modules/areadlinkat-with-size: New module.
16234         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
16235         * lib/areadlink.h (areadlinkat): Declare it.
16236         * MODULES.html.sh (File system functions): Mention it.
16237         * modules/areadlinkat-with-size-tests: New test.
16238         * tests/test-areadlinkat-with-size.c: New file.
16239
16240         xreadlinkat: new module
16241         * modules/xreadlinkat: New module.
16242         * lib/xreadlinkat.c (xreadlinkat): New file.
16243         * lib/xreadlink.h (xreadlinkat): Declare it.
16244         * MODULES.html.sh (File system functions): Mention it.
16245
16246         areadlinkat: new module
16247         * lib/at-func.c (FUNC_FAIL): New define.
16248         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
16249         * modules/areadlinkat: New module.
16250         * lib/linkat.c (areadlinkat): Move...
16251         * lib/areadlinkat.c (areadlinkat): ...to new file.
16252         * lib/areadlink.h (areadlinkat): Declare it.
16253         * modules/linkat (Depends-on): Add areadlinkat.
16254         * MODULES.html.sh (File system functions): Mention it.
16255         * modules/areadlinkat-tests: New test.
16256         * tests/test-areadlinkat.c: New file.
16257
16258         areadlink, areadlink-with-size: add tests
16259         * modules/areadlink-tests: New test.
16260         * modules/areadlink-with-size-tests: Likewise.
16261         * tests/test-areadlink.h: New file.
16262         * tests/test-areadlink.c: Likewise.
16263         * tests/test-areadlink-with-size.c: Likewise.
16264
16265         maint: minor cleanups
16266         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
16267         _UNUSED_PARAMETER_ instead.
16268         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
16269         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
16270         * modules/linkat-tests (Files): Distribute test-link.h.
16271
16272         openat, utimens: whitespace cleanup
16273         * lib/openat.c: Prefer space throughout, rather than mix of 8
16274         spaces vs. tabs.
16275         * lib/at-func.c: Likewise.
16276         * lib/utimens.c: Likewise.
16277
16278         openat: avoid using wrong fd
16279         * lib/openat.c (openat_permissive): Reject user's fd if saving the
16280         working directory chooses same fd.
16281         * lib/at-func.c (AT_FUNC_NAME): Likewise.
16282
16283         mkdir, mkdirat: fix cygwin 1.5.x bug
16284         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
16285         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
16286         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
16287         bug.
16288         (gl_PREREQ_MKDIR): Delete unused macro.
16289         * modules/mkdir (Files): Track file rename.
16290         (configure.ac): Update macro name.
16291         * modules/openat (Depends-on): Add mkdir.
16292         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
16293
16294         mkdir, mkdirat: add tests
16295         * modules/mkdir-tests: New test.
16296         * tests/test-mkdir.h: New file.
16297         * tests/test-mkdir.c: Likewise.
16298         * tests/test-mkdirat.c: Likewise.
16299         * modules/openat-tests (Files): Add new files.
16300         (Makefile.am): Run new test.
16301
16302 2009-10-06  Eric Blake  <ebb9@byu.net>
16303
16304         doc: tweak *at function documentation
16305         * doc/posix-functions/faccessat.texi (faccessat): Mention
16306         known issue with replacement.
16307         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
16308         * doc/posix-functions/linkat.texi (linkat): Likewise.
16309         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
16310         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
16311         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16312         * doc/posix-functions/renameat.texi (renameat): Likewise.
16313         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16314
16315         openat: fix GNU/Hurd bug in unlinkat
16316         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
16317         broken.
16318         * doc/posix-functions/unlink.texi (unlink): Document this.
16319         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
16320
16321         fdopendir: fix GNU/Hurd bug
16322         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
16323         allowing non-directory fds.
16324         * lib/fdopendir.c (rpl_fdopendir): Work around it.
16325         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16326         * modules/dirent (Makefile.am): Substitute it.
16327         * lib/dirent.in.h (fdopendir): Declare replacement.
16328         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
16329         * tests/test-fdopendir.c (main): Test something other than
16330         /dev/null, since on Hurd that behaves like a directory.
16331
16332         test-symlink: port to GNU/Hurd
16333         * tests/test-symlink.h (test_symlink): Relax expected errno.
16334
16335         doc: tweak more cygwin information
16336         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
16337         now compatible with glibc.
16338         * doc/posix-functions/getopt.texi (getopt): Likewise.
16339
16340         getopt-gnu: add another test
16341         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
16342         guarantee behavior relied on by m4.
16343         * tests/test-getopt.c (main): Use it.
16344         * modules/getopt-posix-tests (Depends-on): Add setenv.
16345         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
16346
16347         getopt: fix compilation on darwin
16348         * lib/getopt.in.h (includes): Leave breadcrumbs during system
16349         include.
16350         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
16351         Reported by Ludovic Courtès.
16352
16353 2009-10-06  Bruno Haible  <bruno@clisp.org>
16354
16355         * modules/size_max (Description): Discourage its use.
16356         Reported by Simon Josefsson.
16357
16358 2009-10-06  Jim Meyering  <meyering@redhat.com>
16359
16360         linkat: avoid compilation failure
16361         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
16362
16363 2009-10-05  Eric Blake  <ebb9@byu.net>
16364
16365         linkat: support Linux 2.6.17
16366         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
16367         linkat on Linux, but allow cache variable override.
16368         * lib/linkat.c (rpl_linkat): Define override.
16369         * modules/linkat (Depends-on): Add symlinkat.
16370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
16371         * modules/unistd (Makefile.am): Substitute it.
16372         * lib/unistd.in.h (linkat): Declare replacement.
16373         Reported by Pádraig Brady.
16374
16375         quotearg: port test to systems with C.UTF-8 locale
16376         * tests/test-quotearg.c (struct result_strings): Add another
16377         member, differentiating between C.ASCII and C.UTF-8 handling.
16378         (compare_strings): Add parameter.
16379         (main): Adjust all callers.
16380
16381         getopt: avoid clash with FreeBSD _getopt_internal
16382         * lib/getopt.in.h (_getopt_internal): Override the name.
16383         * lib/getopt_int.h (includes): Pick up any overrides.
16384         Reported by Reuben Thomas.
16385
16386         hash: allow C89 compilation
16387         * lib/hash.c (check_tuning): Move declaration before statement.
16388         Reported by Reuben Thomas.
16389
16390 2009-10-05  Karl Berry  <karl@gnu.org>
16391
16392         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
16393
16394 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
16395             Bruno Haible  <bruno@clisp.org>
16396
16397         * lib/uname.c (uname): Use a table-driven algorithm to compute
16398         Windows NT versions.
16399
16400 2009-10-04  Bruno Haible  <bruno@clisp.org>
16401
16402         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
16403         program_invocation_short_name.
16404         * modules/progname (configure.ac): Test for presence of
16405         program_invocation_short_name.
16406         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16407
16408 2009-10-04  Bruno Haible  <bruno@clisp.org>
16409
16410         * lib/progname.c (set_program_name): Fix comment.
16411         Reported by Jim Meyering.
16412
16413 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16414             Bruno Haible  <bruno@clisp.org>
16415
16416         * lib/uname.c: Include <string.h>.
16417         (uname): Do only one call to GetVersionEx in the common case.
16418
16419 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16420             Bruno Haible  <bruno@clisp.org>
16421
16422         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
16423         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
16424         (uname): Add support for Windows CE and various non-x86 CPU types.
16425
16426 2009-10-03  Bruno Haible  <bruno@clisp.org>
16427
16428         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
16429         invocation to tests/configure.ac.
16430         Reported by Ian Beckwith <ianb@erislabs.net>.
16431
16432 2009-10-02  Eric Blake  <ebb9@byu.net>
16433
16434         fchdir: avoid compiler warning
16435         * lib/fchdir.c (canonicalize_file_name)
16436         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
16437
16438         test-open: support mingw errno values
16439         * tests/test-open.h (test_open): Relax test.
16440         * tests/test-fopen.h (test_fopen): Likewise.
16441         * tests/test-openat-safer.c (main): Likewise.
16442
16443         open: fix opening directory on mingw
16444         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
16445
16446         test-open: on GNU/Hurd, /dev/null is a directory
16447         * tests/test-fopen.h (main): Rename...
16448         (test_fopen): ...to this.  Use a guaranteed non-directory when
16449         confirming open behavior on trailing slash.
16450         * tests/test-openat-safer.c (main): Likewise.
16451         * tests/test-open.h (main): Likewise....
16452         (test_open): ...to this.
16453         * tests/test-fopen.c (main): Adjust caller.
16454         * tests/test-fopen-safer.c (main): Likewise.
16455         * tests/test-open.c (main): Likewise.
16456         * tests/test-fcntl-safer.c (main): Likewise.
16457         Reported by Samuel Thibault.
16458
16459         rename, fchdir: don't ignore chdir failure
16460         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
16461         * lib/rename.c (rpl_rename) [W32]: Likewise.
16462         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
16463         an empty destination directory if source cannot be renamed,
16464         although there is still possibility for failure.
16465         * doc/posix-functions/rename.texi (rename): Document the race.
16466         Reported by Jim Meyering.
16467
16468         maint: cleanup whitespace in recent commits
16469         * lib/rename.c (rpl_rename): Remove tabs.
16470         * tests/test-link.h (test_link): Likewise.
16471         * lib/fchdir.c (get_name): Likewise.
16472         Reported by Jim Meyering.
16473
16474 2009-10-02  Ben Pfaff  <blp@gnu.org>
16475
16476         relocatable-prog-wrapper: Add missing dependency on
16477         double-slash-root.
16478         * modules/relocatable-prog-wrapper: Add dependency.
16479         Reported by Ian Beckwith <ianb@erislabs.net>.
16480
16481 2009-10-02  Eric Blake  <ebb9@byu.net>
16482
16483         renameat: fix Solaris bugs
16484         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
16485         needed fixing.
16486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
16487         * modules/stdio (Makefile.am): Substitute it.
16488         * lib/stdio.in.h (renameat): Declare replacement.
16489         * lib/renameat.c (rpl_renameat): Implement fix.
16490
16491         renameat: new module
16492         * modules/renameat: New file.
16493         * lib/renameat.c (renameat): Likewise.
16494         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
16495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16496         * modules/stdio (Makefile.am): Substitute them.
16497         * lib/stdio.in.h (renameat): Declare it.
16498         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16499         * doc/posix-functions/renameat.texi (renameat): Likewise.
16500         * modules/renameat-tests: New test.
16501         * tests/test-renameat.c: Likewise.
16502
16503         rename: fix mingw bugs
16504         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
16505         directory overwrite bugs.
16506
16507         rename: fix another cygwin 1.5 bug
16508         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
16509         checks.
16510         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
16511         unnecessary cygwin workarounds.  Also work around bug with moving
16512         full directory onto an empty one.
16513         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
16514
16515         rename-dest-slash: merge into rename module
16516         * modules/rename-dest-slash (Status): Mark obsolete.
16517         (Depends-on): Add rename.
16518         (Files): Let rename do it all.
16519         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
16520         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
16521         * m4/rename-dest-slash.m4: ...so this file can be deleted.
16522         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
16523         * lib/rename.c (rpl_rename): Update comments.
16524
16525         rename: fix cygwin 1.5.x bugs
16526         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
16527         * lib/rename.c (rpl_rename): Work around them.
16528         * modules/rename (Depends-on): Add same-inode.
16529
16530         rename: fix Solaris 10 bug
16531         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16532         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
16533         was the only bug.
16534
16535         rename: fix Solaris 9 bug
16536         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
16537         on non-directory.  Avoid calling exit.
16538         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
16539         strdup.
16540         * modules/rename-tests (Depends-on): Drop lstat.
16541         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16542         (gl_PREREQ_RENAME): Delete unused macro.
16543
16544         rename-dest-slash: fix NetBSD bug
16545         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
16546         links.
16547         * modules/rename-dest-slash (Depends-on): Add same-inode.
16548
16549         rename-tests: new test, exposes several platform bugs
16550         * modules/rename-tests: New file.
16551         * tests/test-rename.h: Likewise.
16552         * tests/test-rename.c: Likewise.
16553         * doc/posix-functions/rename.texi (rename): Improve documentation,
16554         including bugs that will eventually be fixed in gnulib.
16555
16556 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
16557
16558         * lib/uname.c: Include <stdlib.h>
16559         (uname): Assume version info is available.
16560
16561 2009-10-02  Jim Meyering  <meyering@redhat.com>
16562
16563         gnu-web-doc-update: correct --help output
16564         * build-aux/gnu-web-doc-update: Make --help output relevant.
16565
16566         gnu-web-doc-update: add standard options
16567         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
16568
16569         gnu-web-doc-update: New module.
16570         Use this script to automatically update the on-line web documentation
16571         for your GNU project at http://www.gnu.org/software/$pkg/manual/
16572         * modules/gnu-web-doc-update: New file, from coreutils.
16573         * build-aux/gnu-web-doc-update: New script.
16574
16575 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
16576
16577         link: LoadLibrary is not needed.
16578         * lib/link.c: Use GetModuleHandle.
16579
16580 2009-10-01  Eric Blake  <ebb9@byu.net>
16581
16582         getopt: bump serial number
16583         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
16584         change.
16585
16586         tests: tighten link, rmdir, and remove tests
16587         * tests/test-link.h (includes): No need to use <config.h> here.
16588         Clean up if directory hard link was created, otherwise test for
16589         trailing '.'.
16590         * tests/test-linkat.c (main): Simplify.
16591         * tests/test-remove.c (main): Enhance test for trailing '.'.
16592         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16593
16594 2009-10-01  Jim Meyering  <meyering@redhat.com>
16595
16596         maint.mk: requiring "make major" was annoying, for a "minor" release.
16597         What is intended is "stable", to contrast with alpha and beta,
16598         so require "make stable", not "make major".
16599         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
16600         (get_tool_versions): Likewise.
16601         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
16602
16603 2009-09-30  Ben Pfaff  <blp@gnu.org>
16604
16605         Fix broken build of replacement for Windows tmpfile().
16606         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
16607         flags argument added along with the 'mkostemp' module.
16608
16609 2009-09-28  Bruno Haible  <bruno@clisp.org>
16610
16611         Avoid identifier clash with POSIX function 'remove' defined as a macro.
16612         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
16613         to 'remove_elt'.
16614         (gl_list_remove): Update.
16615         * lib/gl_list.c (gl_list_remove): Update.
16616         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
16617         to 'remove_elt'.
16618         (gl_oset_remove): Update.
16619         * lib/gl_list.c (gl_oset_remove): Update.
16620         Reported by Eric Blake.
16621
16622 2009-09-28  Eric Blake  <ebb9@byu.net>
16623
16624         doc: mention yet more cygwin 1.7 status
16625         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
16626         cygwin.
16627         * doc/glibc-functions/execvpe.texi (execvpe): New file.
16628         * doc/gnulib.texi (Glibc unistd.h): Mention it.
16629
16630         argp: fix test failure
16631         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
16632         that are not upper-case.  Pass correct range to tolower.
16633
16634 2009-09-27  Jim Meyering  <meyering@redhat.com>
16635
16636         test-yesno: work around sparc-dash here-document infelicity
16637         Without this change, the literal \177 byte in a here document
16638         would make dash 0.5.5.1-3 access uninitialized memory.
16639         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
16640         Instead, use a marker, "@", and filter through tr to create the desired
16641         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
16642
16643 2009-09-27  Bruno Haible  <bruno@clisp.org>
16644
16645         Disable untested support for new flavours of ACLs on AIX.
16646         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
16647         progress.
16648         * lib/set-mode-acl.c (qset_acl): Likewise.
16649
16650 2008-12-07  Bruno Haible  <bruno@clisp.org>
16651
16652         Add support for new flavours of ACLs on AIX. (Untested.)
16653         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
16654         (file_has_acl): Add support for newer AIX.
16655         * lib/set-mode-acl.c (qset_acl): Likewise.
16656         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
16657         Rainer Tammer <tammer@tammer.net>.
16658
16659 2009-09-26  Eric Blake  <ebb9@byu.net>
16660
16661         argp: fix compilation of getopt
16662         * lib/getopt.in.h (includes): Use different guard than glibc.
16663         Reported by Sergey Poznyakoff.
16664
16665         doc: mention more cygwin 1.7 status
16666         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
16667         bug.
16668         * doc/posix-functions/execl.texi (execl): Likewise.
16669         * doc/posix-functions/execle.texi (execle): Likewise.
16670         * doc/posix-functions/execlp.texi (execlp): Likewise.
16671         * doc/posix-functions/execv.texi (execv): Likewise.
16672         * doc/posix-functions/execve.texi (execve): Likewise.
16673         * doc/posix-functions/execvp.texi (execvp): Likewise.
16674         * doc/glibc-functions/canonicalize_file_name.texi
16675         (canonicalize_file_name): Cygwin 1.7 now provides this.
16676         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
16677         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
16678         on AT_SYMLINK_NOFOLLOW.
16679
16680 2009-09-24  Eric Blake  <ebb9@byu.net>
16681
16682         test-linkat: make test more robust
16683         * tests/test-linkat.c (main): Avoid collision with EEXIST.
16684
16685         getopt: fix inclusion guards for cygwin
16686         * modules/getopt-posix (Depends-on): Add include-next.
16687         (Makefile.am): Substitute more items in replacement header.
16688         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
16689         <getopt.h>.
16690         * lib/getopt.in.h (includes): Use split inclusion guard, and
16691         prefer <getopt.h> over include <unistd.h> when one is present.
16692         (option): Also override name of 'struct option'.
16693
16694         same-inode: revert prior change; it is not yet ready
16695         * NEWS: Undo mention of this change.
16696         * lib/same-inode.h (same-inode.h): Undo tri-state change.
16697         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16698         * lib/cycle-check.c (cycle_check): Likewise.
16699         * lib/same.c (same_name): Likewise.
16700         * lib/at-func2.c (at_func2): Likewise.
16701
16702 2009-09-23  Eric Blake  <ebb9@byu.net>
16703
16704         linkat: new module
16705         * modules/linkat: New file.
16706         * lib/at-func2.c (at_func2): Likewise.
16707         * lib/linkat.c (linkat): Likewise.
16708         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16709         * lib/openat-priv.h (at_func2): Add declaration.
16710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16711         * modules/unistd (Makefile.am): Substitute them.
16712         * lib/unistd.in.h (linkat): Declare it.
16713         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16714         * doc/posix-functions/linkat.texi (linkat): Likewise.
16715         * doc/posix-functions/link.texi (link): Tweak wording.
16716         * tests/test-link.c (main): Move guts...
16717         * tests/test-link.h (test_link): ...into new file.
16718         * modules/linkat-tests: New test.
16719         * tests/test-linkat.c: Likewise.
16720         * modules/link-tests (Files): Ship new file.
16721         (Depends-on): Add stdbool.
16722
16723         dirname: add library-safe mdir_name
16724         * lib/dirname.h (mdir_name): New prototype.
16725         * lib/dirname.c (dir_name): Move guts...
16726         (mdir_name): ...to new function that avoids xalloc_die.
16727
16728         fchdir: another mingw fix
16729         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
16730         * lib/fchdir.c (get_name): New helper method; skips canonicalize
16731         on mingw (where it has not yet been ported), and make it optional
16732         elsewhere.
16733         (_gl_register_fd): Use it.
16734
16735         same-inode: make SAME_INODE tri-state, to port to mingw
16736         * NEWS: Mention this change.
16737         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
16738         st_ino always being 0.
16739         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16740         * lib/cycle-check.c (cycle_check): Likewise.
16741         * lib/same.c (same_name): Likewise.
16742
16743         lstat: avoid mingw compilation error
16744         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
16745         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
16746         lstat ourselves.
16747         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
16748         was adequate.
16749         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
16750         the checks for lstat.
16751         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
16752
16753         link: fix test failure on Solaris 9
16754         * lib/link.c (rpl_link): Don't assume link will catch bogus
16755         trailing slash on source.
16756
16757         test-symlinkat: enhance test
16758         * tests/test-readlink.c (main): Move guts...
16759         * tests/test-readlink.h (test_readlink): ...into new file.
16760         * tests/test-symlink.c (main): Move guts...
16761         * tests/test-symlink.h (test_symlink): ...into new file.
16762         * tests/test-symlinkat.c (main): Use new files for further
16763         coverage.
16764         (do_symlink, do_readlink): New helper functions.
16765         * modules/symlink-tests (Files): Ship new file.
16766         (Depends-on): Add stdbool.
16767         * modules/readlink-tests (Files): Ship new file.
16768         (Depends-on): Add stdbool.
16769         * modules/symlinkat-tests (Files): Use new files.
16770
16771 2009-09-23  Eric Blake  <ebb9@byu.net>
16772
16773         readlink: document portability issue with symlink length
16774         * doc/posix-functions/lstat.texi (lstat): Mention that some file
16775         systems have bogus st_size on symlinks, and mention the
16776         areadlink-with-size module.
16777         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16778         * doc/posix-functions/readlink.texi (readlink): Mention the
16779         areadlink module, and ERANGE failure.
16780         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16781         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
16782
16783         readlink: fix Solaris 9 bug with trailing slash
16784         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
16785         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
16786         * doc/posix-functions/readlink.texi (readlink): Document this.
16787         * modules/readlink-tests: New test.
16788         * tests/test-readlink.c: Likewise.
16789
16790         readlink: fix cygwin 1.5.x bug with return type
16791         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
16792         * lib/unistd.in.h (readlink): Use ssize_t.
16793         * lib/readlink.c (readlink): Likewise.
16794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16795         * modules/unistd (Makefile.am): Substitute it.
16796         * lib/unistd.in.h (readlink): Declare replacement.
16797         * doc/posix-functions/readlink.texi (readlink): Document this.
16798
16799         symlink: use throughout gnulib
16800         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
16801         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
16802         symlink is not used.
16803         * modules/symlinkat (Depends-on): Add symlink.
16804         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16805         * modules/canonicalize-tests (Depends-on): Likewise.
16806         * modules/lstat-tests (Depends-on): Likewise.
16807         * modules/openat-tests (Depends-on): Likewise.
16808         * modules/remove-tests (Depends-on): Likewise.
16809         * modules/rmdir-tests (Depends-on): Likewise.
16810         * modules/unlink-tests (Depends-on): Likewise.
16811         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
16812         * tests/test-canonicalize.c (symlink): Likewise.
16813         * tests/test-fstatat.c (symlink): Likewise.
16814         * tests/test-lstat.c (symlink): Likewise.
16815         * tests/test-remove.c (symlink): Likewise.
16816         * tests/test-rmdir.c (symlink): Likewise.
16817         * tests/test-unlink.c (symlink): Likewise.
16818         * tests/test-unlinkat.c (symlink): Likewise.
16819
16820         symlink: new module, for Solaris 9 bug
16821         * modules/symlink: New file.
16822         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16823         * lib/symlink.c: Likewise.
16824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
16825         * modules/unistd (Makefile.am): Substitute them.
16826         * lib/unistd.in.h (symlink): Declare replacement.
16827         * MODULES.html.sh (File system functions): Mention it.
16828         * doc/posix-functions/symlink.texi (symlink): Likewise.
16829         * modules/symlink-tests: New test.
16830         * tests/test-symlink.c: Likewise.
16831
16832 2009-09-23  Bruno Haible  <bruno@clisp.org>
16833
16834         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
16835         when needed.
16836         Test case: gnulib-tool --import --with-tests atexit inttypes.
16837         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
16838
16839 2009-09-23  Bruno Haible  <bruno@clisp.org>
16840
16841         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
16842         subcommand, not in a subshell.
16843
16844 2009-09-22  Eric Blake  <ebb9@byu.net>
16845
16846         unistd: sort replacement declarations
16847         * lib/unistd.in.h: Sort declarations.
16848
16849         open, openat: minor optimization
16850         * lib/open.c (open): If open succeeded, len is non-zero.
16851         * lib/openat.c (rpl_openat): Likewise.
16852
16853         link-follow: ensure correct result
16854         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
16855         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
16856         distinguish between possible failures.
16857
16858 2009-09-21  Eric Blake  <ebb9@byu.net>
16859
16860         fts: avoid compiler warning
16861         * lib/fts.c (dirent_inode_sort_may_be_useful)
16862         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
16863
16864 2009-09-19  Bruno Haible  <bruno@clisp.org>
16865
16866         * lib/progreloc.c (canonicalize_file_name): New declaration.
16867
16868 2009-09-19  Eric Blake  <ebb9@byu.net>
16869
16870         link: fix quoting
16871         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
16872
16873         openat: fix openat bugs on Solaris 9
16874         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
16875         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
16876         * modules/openat (Depends-on): Add open.
16877         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
16878         * modules/fcntl-h (Makefile.am): Substitute it.
16879         * lib/fcntl.in.h (openat): Declare replacement.
16880         * doc/posix-functions/openat.texi (openat): Document this.
16881
16882         openat: move fstatat and unlinkat into correct files
16883         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
16884         compiled.
16885         * lib/openat.c (fstatat, unlinkat): Move...
16886         * lib/fstatat.c (fstatat): ...into correct files.
16887         * lib/unlinkat.c (unlinkat): Likewise.
16888
16889         openat: fix unlinkat bugs on Solaris 9
16890         * lib/unlinkat.c (unlinkat): New file.
16891         * modules/openat (Depends-on): Add unlink.
16892         (Files): Distribute it.
16893         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
16894         trailing slash behavior is broken.
16895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16896         * modules/unistd (Makefile.am): Substitute it.
16897         * lib/unistd.in.h (unlinkat): Declare replacement.
16898         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
16899
16900         openat: fix fstatat bugs on Solaris 9
16901         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
16902         stat.
16903         * doc/posix-functions/fstatat.texi (fstatat): Document this.
16904
16905         test-unlinkat: enhance test, to expose Solaris 9 bug
16906         * tests/test-unlink.c (main): Factor guts...
16907         * tests/test-unlink.h (test_rmdir_func): ...into new file.
16908         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
16909         * tests/test-rmdir.c (main): Adjust caller.
16910         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
16911         (unlinker): New helper function.
16912         (rmdirat): Enhance check.
16913         * modules/rmdir-tests (Depends-on): Add stdbool.
16914         * modules/unlink-tests (Depends-on): Likewise.
16915         (Files): Add test-unlink.h.
16916         * modules/openat-tests (Files): Likewise.
16917         (Depends-on): Add unlinkdir.
16918
16919         test-fstatat: new test, to expose Solaris 9 bugs
16920         * tests/test-stat.c (main): Factor guts...
16921         * tests/test-stat.h (test_stat_func): ...into new file.
16922         * tests/test-lstat.c (main): Factor guts...
16923         * tests/test-lstat.h (test_lstat_func): ...into new file.
16924         * tests/test-fstatat.c: New file.
16925         * modules/stat-tests (Files): Add test-stat.h.
16926         * modules/lstat-tests (Files): Add test-lstat.h.
16927         (Depends-on): Add stdbool.
16928         * modules/openat-tests (Depends-on): Add pathmax.
16929         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
16930         (Makefile.am): Run new test.
16931
16932         remove: new module, for mingw and Solaris 9 bugs
16933         * modules/remove: New file.
16934         * lib/remove.c: Likewise.
16935         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
16936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16937         * modules/stdio (Makefile.am): Use them.
16938         * lib/stdio.in.h (remove): Declare replacement.
16939         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16940         * doc/posix-functions/remove.texi (remove): Likewise.
16941         * modules/remove-tests: New test.
16942         * tests/test-remove.c: Likewise.
16943
16944         unlink: new module, for Solaris 9 bug
16945         * modules/unlink: New file.
16946         * lib/unlink.c: Likewise.
16947         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16949         * modules/unistd (Makefile.am): Use them.
16950         * lib/unistd.in.h (stat): Declare replacement.
16951         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16952         * doc/posix-functions/unlink.texi (unlink): Likewise.
16953         * modules/unlink-tests: New test.
16954         * tests/test-unlink.c: Likewise.
16955
16956         lstat: fix Solaris 9 bug
16957         * lib/lstat.c (lstat): Also check for trailing slash on
16958         non-symlink, non-directories.  Use stat module to simplify logic.
16959         * doc/posix-functions/lstat.texi (lstat): Document it.
16960         * modules/lstat-tests (Depends-on): Add errno, same-inode.
16961         (configure.ac): Check for symlink.
16962         * tests/test-lstat.c (main): Add more tests.
16963
16964         stat: add as dependency to other modules
16965         * modules/chown (Depends-on): Add stat.
16966         * modules/euidaccess (Depends-on): Likewise.
16967         * modules/fchdir (Depends-on): Likewise.
16968         * modules/isdir (Depends-on): Likewise.
16969         * modules/link (Depends-on): Likewise.
16970         * modules/lstat (Depends-on): Likewise.
16971         * modules/mkdir-p (Depends-on): Likewise.
16972         * modules/modechange (Depends-on): Likewise.
16973         * modules/open (Depends-on): Likewise.
16974         * modules/readlink (Depends-on): Likewise.
16975         * modules/same (Depends-on): Likewise.
16976
16977         stat: fix Solaris 9 bug
16978         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
16979         slash.
16980         * lib/stat.c (rpl_stat): Work around it.
16981         * doc/posix-functions/stat.texi (stat): Update documentation.
16982
16983         stat: new module, for mingw bug
16984         * modules/stat: New file.
16985         * lib/stat.c: Likewise.
16986         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16987         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16988         * modules/sys_stat (Makefile.am): Use them.
16989         * lib/sys_stat.in.h (stat): Declare replacement.
16990         * lib/openat.c (fstatat): Deal with lstat and stat being function
16991         macros.
16992         * modules/openat (Depends-on): Add inline.
16993         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16994         * doc/posix-functions/stat.texi (stat): Likewise.
16995         * modules/stat-tests: New test.
16996         * tests/test-stat.c: Likewise.
16997
16998 2009-09-19  Jim Meyering  <meyering@redhat.com>
16999
17000         syntax-check: detect unnecessary inclusion of canonicalize.h
17001         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
17002
17003 2009-09-19  Eric Blake  <ebb9@byu.net>
17004
17005         canonicalize-lgpl: adjust clients to use correct header
17006         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
17007         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
17008         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
17009         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
17010         * lib/progreloc.c (includes): Likewise.
17011
17012 2009-09-19  Jim Meyering  <meyering@redhat.com>
17013
17014         test-posixtm.c: correct a comment
17015         * tests/test-posixtm.c: Correct first-line comment.
17016         Spotted by Eric Blake.
17017
17018 2009-09-16  Jim Meyering  <meyering@redhat.com>
17019
17020         posixtm-tests: make T const-correct; add a test case
17021         * tests/test-posixtm.c (T): Declare const.
17022         Add a test for -(2^31+1).
17023         Remove useless can-succeed-only-in-2002 test.
17024
17025         posixtm-tests: adjust the sole failing test
17026         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
17027         expected output matches what mktime now produces.  Cross-checked via
17028         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
17029
17030         posixtm: move #ifdef'd tests into a new module
17031         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
17032         * tests/test-posixtm.c: ... this new file.
17033         * modules/posixtm-tests: New module.
17034
17035 2009-09-19  Eric Blake  <ebb9@byu.net>
17036
17037         openat: simplify use of at-func.c
17038         * lib/at-func.c (includes): Include prerequisites here, to
17039         simplify requirements on client files.
17040         * lib/openat-priv.h: Add double-inclusion guard.
17041         * lib/faccessat.c (includes): Simplify.
17042         * lib/fchmodat.c (includes): Likewise.
17043         * lib/fchownat.c (includes): Likewise.
17044         * lib/mkdirat.c (includes): Likewise.
17045         * lib/mkfifoat.c (includes): Likewise.
17046         * lib/symlinkat.c (includes): Likewise.
17047
17048         openat: allow return of fd 0
17049         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
17050         * modules/save-cwd (Depends-on): Replace fcntl-safer with
17051         unistd-safer.
17052         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
17053         <fcntl.h>; this module does not leak fds.
17054         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
17055         must be allowed to return 0, leaving openat_safer to add the
17056         safety.
17057         (openat_permissive): Avoid writing to just-opened fd 2 if
17058         restoring the current directory fails.
17059         * lib/openat-die.c (openat_restore_fail): Add comment.
17060         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
17061         (save_cwd): Guarantee safe fd, but without use of open_safer.
17062         * tests/test-openat.c: New test.
17063         * modules/openat-tests (Files, Makefile.am): Distribute and build
17064         new file.
17065
17066         relocatable-prog-wrapper: fix build
17067         * modules/relocatable-prog-wrapper (Files): Update name of
17068         canonicalize m4 file, broken on 2009-09-17.
17069         Reported by emad hajjar <aleppos@hotmail.com>.
17070
17071 2009-09-19  Bruno Haible  <bruno@clisp.org>
17072
17073         * lib/safe-alloc.h: Use the standard header with GPL copyright.
17074         * lib/safe-alloc.c: Likewise.
17075         Reported by Ian Beckwith <ianb@erislabs.net>.
17076
17077 2009-09-18  Bruno Haible  <bruno@clisp.org>
17078
17079         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
17080         Reported by <erobles@sensacd.com.mx>.
17081
17082 2009-09-17  Eric Blake  <ebb9@byu.net>
17083
17084         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
17085         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
17086         slashes when checking if last component is missing.
17087         * tests/test-canonicalize.c (main): Test this.
17088
17089         canonicalize, canonicalize-lgpl: honor // if distinct from /
17090         * modules/canonicalize (Files): Add double-slash-root.m4.
17091         * modules/canonicalize-lgpl (Files): Likewise.
17092         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
17093         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
17094         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
17095         fallback definition.
17096         (canonicalize_filename_mode): Use it to protect //.
17097         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
17098         (__realpath): Likewise.
17099         * tests/test-canonicalize.c (main): Test this.
17100         * tests/test-canonicalize-lgpl.c (main): Likewise.
17101         * modules/canonicalize-tests (Depends-on): Add same-inode.
17102         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17103
17104         canonicalize-lgpl: fix glibc bug with trailing slash
17105         * m4/canonicalize-lgpl.m4: Move contents...
17106         * m4/canonicalize.m4: ...here.
17107         (gl_CANONICALIZE_LGPL): Factor realpath check...
17108         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
17109         glibc 2.3.5 bug, fixed 2005-04-27.
17110         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
17111         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
17112         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
17113         * modules/canonicalize-lgpl (Files): Manage file rename.
17114         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
17115         * modules/stdlib (Makefile.am): Substitute witness.
17116         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
17117         is needed.
17118         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
17119         replacement is required.
17120         * lib/canonicalize.c (canonicalize_file_name): Likewise.
17121         * doc/glibc-functions/canonicalize_file_name.texi
17122         (canonicalize_file_name): Document this.
17123         * doc/posix-functions/realpath.texi (realpath): Likewise.
17124
17125         canonicalize-lgpl: reject non-directory with trailing slash
17126         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
17127         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
17128         catches failures in glibc 2.3.5.
17129         * tests/test-canonicalize.c (main): Likewise.
17130
17131         canonicalize-lgpl: use native realpath if it works
17132         * lib/canonicalize-lgpl.c (realpath): Guard with
17133         FUNC_REALPATH_WORKS.
17134         * lib/stdlib.in.h (realpath): Make declaration optional based on
17135         HAVE_REALPATH.
17136         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
17137         native realpath works.
17138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
17139         * modules/stdlib (Makefile.am): Substitute witness.
17140
17141         canonicalize, canonicalize-lgpl: use <stdlib.h>
17142         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
17143         (Include): Mention <stdlib.h>.
17144         (configure.ac): Mention functions we provide.
17145         * modules/canonicalize (configure.ac): Likewise.
17146         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
17147         realpath if canonicalize_file_name is missing.
17148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
17149         * modules/stdlib (Makefile.am): Substitute witnesses.
17150         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
17151         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
17152         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
17153         * NEWS: Document this.
17154         * doc/glibc-functions/canonicalize_file_name.texi
17155         (canonicalize_file_name): Likewise.
17156         * doc/posix-functions/realpath.texi (realpath): Likewise.
17157         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
17158
17159         test-canonicalize: consolidate into single C program
17160         * tests/test-canonicalize.sh: Delete; move setup into...
17161         * tests/test-canonicalize.c (main): ...the program, making it
17162         easier to run in debugger.  Add some tests.
17163         * modules/canonicalize-tests (Files): Remove unused file.
17164         (Depends-on): Add progname.
17165         (configure.ac, Makefile.am): Simplify.
17166
17167         test-canonicalize-lgpl: consolidate into single C program
17168         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
17169         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
17170         easier to run in debugger.  Add some tests.
17171         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
17172         (configure.ac, Makefile.am): Simplify.
17173
17174         canonicalize: avoid resolvepath
17175         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
17176         unnecessary checks.
17177         * lib/canonicalize.c (includes): Simplify.
17178         (canonicalize_file_name): Drop resolvepath implementation.
17179         * modules/canonicalize (Depends-on): Drop filenamecat.
17180
17181         canonicalize: don't lose errno
17182         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
17183         over calls to free.
17184
17185         canonicalize: simplify errno handling
17186         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
17187         assignment.
17188
17189         canonicalize, canonicalize-lgpl: update module dependencies
17190         * modules/canonicalize (Depends-on): Add extensions, lstat,
17191         pathmax, stdlib.
17192         (Files): Drop pathmax.h.
17193         (configure.ac): Adjust macro name.
17194         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
17195         lstat, stdlib, sys_stat.
17196         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
17197         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
17198         extensions.
17199         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
17200         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
17201         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
17202         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
17203         declaration, if available.
17204         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
17205         we can rely on the readlink module.
17206         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
17207         (includes): Use <unistd.h> unconditionally.
17208
17209 2009-09-17  Eric Blake  <ebb9@byu.net>
17210
17211         maint: make Include sections of modules consistent
17212         * modules/alloca: Use only header name; no need to list #include.
17213         * modules/alloca-opt: Likewise.
17214         * modules/arpa_inet: Likewise.
17215         * modules/canon-host: Likewise.
17216         * modules/configmake: Likewise.
17217         * modules/dirent: Likewise.
17218         * modules/eealloc: Likewise.
17219         * modules/environ: Likewise.
17220         * modules/fchdir: Likewise.
17221         * modules/fcntl: Likewise.
17222         * modules/fcntl-h: Likewise.
17223         * modules/gethrxtime: Likewise.
17224         * modules/gettime: Likewise.
17225         * modules/ignore-value: Likewise.
17226         * modules/inet_ntop: Likewise.
17227         * modules/inet_pton: Likewise.
17228         * modules/inttypes: Likewise.
17229         * modules/isnand-nolibm: Likewise.
17230         * modules/isnanf-nolibm: Likewise.
17231         * modules/mbchar: Likewise.
17232         * modules/mbfile: Likewise.
17233         * modules/mbiter: Likewise.
17234         * modules/mbuiter: Likewise.
17235         * modules/netdb: Likewise.
17236         * modules/netinet_in: Likewise.
17237         * modules/nproc: Likewise.
17238         * modules/pagealign_alloc: Likewise.
17239         * modules/poll: Likewise.
17240         * modules/printf-frexp: Likewise.
17241         * modules/pthread: Likewise.
17242         * modules/putenv: Likewise.
17243         * modules/random_r: Likewise.
17244         * modules/relocatable-prog: Likewise.
17245         * modules/search: Likewise.
17246         * modules/select: Likewise.
17247         * modules/selinux-h: Likewise.
17248         * modules/settime: Likewise.
17249         * modules/signal: Likewise.
17250         * modules/size_max: Likewise.
17251         * modules/socklen: Likewise.
17252         * modules/ssize_t: Likewise.
17253         * modules/stdarg: Likewise.
17254         * modules/stdbool: Likewise.
17255         * modules/stddef: Likewise.
17256         * modules/stdint: Likewise.
17257         * modules/stdio: Likewise.
17258         * modules/stdlib: Likewise.
17259         * modules/string: Likewise.
17260         * modules/strings: Likewise.
17261         * modules/sys_file: Likewise.
17262         * modules/sys_ioctl: Likewise.
17263         * modules/sys_select: Likewise.
17264         * modules/sys_socket: Likewise.
17265         * modules/sys_stat: Likewise.
17266         * modules/sys_time: Likewise.
17267         * modules/sys_times: Likewise.
17268         * modules/sys_utsname: Likewise.
17269         * modules/sys_wait: Likewise.
17270         * modules/sysexits: Likewise.
17271         * modules/time: Likewise.
17272         * modules/times: Likewise.
17273         * modules/tmpfile: Likewise.
17274         * modules/trim: Likewise.
17275         * modules/unistd: Likewise.
17276         * modules/wchar: Likewise.
17277         * modules/wctype: Likewise.
17278
17279 2009-09-17  Bruno Haible  <bruno@clisp.org>
17280
17281         Make getdate.y compile on QNX and NetBSD 5 / i386.
17282         * m4/getdate.m4 (gl_GETDATE): Conditionally define
17283         TIME_T_FITS_IN_LONG_INT.
17284         * lib/getdate.y (long_time_t): New type.
17285         (relative_time): Change type of 'seconds' field to long_time_t.
17286         (get_date): Update types of local variables. Check against overflow
17287         during conversion from long_time_t to time_t.
17288         Reported by Matt Kraai <kraai@ftbfs.org>
17289         and Hasso Tepper <hasso@netbsd.org>.
17290
17291 2009-09-17  Bruno Haible  <bruno@clisp.org>
17292
17293         * modules/COPYING: Update copyright years.
17294         * modules/README: Likeiwse.
17295         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
17296         Reported by Ian Beckwith <ianb@erislabs.net>.
17297
17298 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
17299
17300         * users.txt: Update references for gnuit package.
17301
17302 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
17303
17304         * m4/getdelim.m4: Fix typo in copyright line.
17305
17306 2009-09-17  Bruno Haible  <bruno@clisp.org>
17307
17308         * lib/atoll.c: Use the standard header with GPL copyright.
17309         * lib/argz.in.h: Likewise.
17310         * lib/glob.c: Likewise.
17311         * lib/glob-libc.h: Likewise.
17312         * lib/random_r.c: Likewise.
17313         * lib/siglist.h: Likewise.
17314         * lib/strsignal.c: Likewise.
17315         Reported by Ian Beckwith <ianb@erislabs.net>.
17316
17317 2009-09-17  Eric Blake  <ebb9@byu.net>
17318
17319         rmdir: ensure correct dependency order
17320         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
17321
17322 2009-09-17  Bruno Haible  <bruno@clisp.org>
17323
17324         Disable assertion that fails on NetBSD 5 / i386.
17325         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
17326         Reported by Sam Steingold <sds@gnu.org>
17327         and Hasso Tepper <hasso@netbsd.org>.
17328
17329 2009-09-16  Eric Blake  <ebb9@byu.net>
17330
17331         unlinkdir: port to mingw
17332         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
17333         on which no one can unlink a directory.
17334
17335         stdlib: sort witness names
17336         * modules/stdlib (Makefile.am): Sort replacements.
17337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
17338         * lib/stdlib.in.h: Likewise.
17339
17340         parse-duration-tests: avoid link failure
17341         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
17342         LIBINTL.
17343         Reported by Tom G. Christensen.
17344
17345         openat-tests: ensure unlinkat behaves like rmdir
17346         * tests/test-rmdir.c (main): Factor guts...
17347         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
17348         * modules/rmdir-tests (Files): Ship new file.
17349         * modules/openat-tests: New test.
17350         * tests/test-unlinkat.c: Likewise.
17351
17352         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
17353         * modules/rmdir-errno (Status, Notice): Now obsolete.
17354
17355         rmdir: work around cygwin 1.5.x and mingw bugs
17356         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
17357         * lib/rmdir.c (rmdir): Work around it.
17358         * modules/rmdir (Status, Notice): No longer obsolete.
17359         (Files): Add dos.m4.
17360         (Depends-on): Add unistd.
17361         (configure.ac): Set witnesses.
17362         (License): Relax to LGPLv2+.
17363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
17364         * modules/unistd (Makefile.am): Substitute witnesses.
17365         * lib/unistd.in.h (rmdir): Declare replacement.
17366         * doc/posix-functions/rmdir.texi (rmdir): Document this.
17367         * modules/rmdir-tests: New tests.
17368         * tests/test-rmdir.c: Likewise.
17369
17370 2009-09-15  Eric Blake  <ebb9@byu.net>
17371
17372         fchdir: improve use of replacement functions
17373         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
17374         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
17375         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
17376         REPLACE_CLOSEDIR.
17377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
17378         * modules/sys_stat (Makefile.am): Substitute correct witness.
17379         * modules/dirent (Makefile.am): Likewise.
17380         * modules/unistd (Makefile.am): Likewise.
17381         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
17382         * lib/unistd.in.h (dup): Likewise.
17383         * lib/sys_stat.in.h (fstat): Likewise.
17384
17385         maint: ignore gnulib-tool temp files
17386         * .gitignore: Ignore files created during gnulib-tool --test.
17387
17388 2009-09-13  Jim Meyering  <meyering@redhat.com>
17389
17390         posixtm: don't reject a time that specify "60" as the number of seconds
17391         * lib/posixtm.c (posixtime): The code to reject invalid dates
17392         would also reject a time specified with the .60 suffix.
17393         But POSIX allows that, in order to accommodate leap seconds.
17394         So don't reject it.
17395         (main): Adjust tests accordingly.
17396         * modules/posixtm (Depends-on): Add stpcpy.
17397
17398 2009-09-11  Jim Meyering  <meyering@redhat.com>
17399
17400         announce-gen: include [$release_type] in emitted Subject:
17401         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
17402         e.g., [stable] in the emitted Subject: line.
17403
17404 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17405
17406         Remove obsolete macros from several modules.
17407         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
17408         obsolete Autoconf macros with their modern counterparts.
17409         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
17410         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
17411         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
17412         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
17413         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
17414         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17415         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17416         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17417         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17418         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
17419         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17420         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17421         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
17422         * m4/sockets.m4 (gl_SOCKETS): Likewise.
17423         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
17424         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
17425         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
17426         * m4/time_r.m4 (gl_TIME_R): Likewise.
17427         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17428         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
17429         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
17430
17431         Fix copyright header in build-aux scripts.
17432         * build-aux/git-version-gen: Fix copyright header to match GPLv3
17433         recommendation.
17434         * build-aux/ncftpput-ftp: Likewise.
17435         * build-aux/update-copyright: Likewise.
17436
17437 2009-09-09  Eric Blake  <ebb9@byu.net>
17438
17439         test-link: allow Linux choice of errno
17440         * tests/test-link.c (main): Relax test for alternate error.
17441
17442         strndup: fix improper m4 caching
17443         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
17444         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
17445         (gl_PREREQ_STRNDUP): Delete.
17446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
17447         * modules/string (Makefile.am): Substitute it.
17448         * lib/string.in.h (strndup): Modernize prototype.
17449
17450         getcwd: port to mingw
17451         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
17452         different from the POSIX assumptions made throughout the getcwd
17453         module; fortunately, the mingw getcwd does not need replacement.
17454         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
17455         * modules/getcwd-tests: New test.
17456         * tests/test-getcwd.c: Likewise.
17457
17458         link: fix platform bugs
17459         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
17460         * lib/link.c (link): Work around them.  Fix related mingw bug.
17461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
17462         * modules/unistd (Makefile.am): Substitute it.
17463         * lib/unistd.in.h (link): Declare replacement.
17464         * doc/posix-functions/link.texi (link): Document this.
17465         * modules/link (Depends-on): Add strdup-posix, sys_stat.
17466
17467         test-link: consolidate into single C program, test more cases
17468         * tests/test-link.sh: Delete.
17469         * tests/test-link.c: Test more error conditions.  Exposes bugs on
17470         at least Cygwin and Solaris.
17471         * modules/link-tests (Files): Remove unused file.
17472         (Depends-on): Add errno, sys_stat.
17473         (Makefile.am): Simplify.
17474
17475 2009-09-08  Bruno Haible  <bruno@clisp.org>
17476
17477         Work around towlower, towupper bug on mingw.
17478         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
17479         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
17480         * doc/posix-functions/towlower.texi: Mention the mingw bug.
17481         * doc/posix-functions/towupper.texi: Likewise.
17482         Reported by Eric Blake.
17483
17484 2009-09-08  Jim Meyering  <meyering@redhat.com>
17485
17486         build: don't try to run autoheader if we don't use it
17487         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
17488         is not used in configure.ac.
17489
17490 2009-09-08  Eric Blake  <ebb9@byu.net>
17491
17492         euidaccess: fix compilation error
17493         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
17494
17495         rawmemchr: relax license
17496         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
17497         okay.
17498         Reported by Jim Meyering.
17499
17500         mkfifoat: new module
17501         * modules/mkfifoat: New file.
17502         * lib/mkfifoat.c: Likewise.
17503         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
17504         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17505         * modules/sys_stat (Makefile.am): Use them.
17506         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
17507         * MODULES.html.sh (File system functions): Mention module.
17508         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17509         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17510         * modules/mkfifoat-tests: New test.
17511         * tests/test-mkfifoat.c: Likewise.
17512
17513         strchrnul: relax license
17514         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
17515         okay.
17516         Reported by Jim Meyering.
17517
17518 2009-09-08  Eric Blake  <ebb9@byu.net>
17519
17520         fstatat: fix compilation on Solaris
17521         * lib/fstatat.c (includes): Add fcntl.h.
17522         Reported by Pádraig Brady.
17523
17524 2009-09-07  Eric Blake  <ebb9@byu.net>
17525
17526         rename: modernize replacement
17527         * modules/rename (Depends-on): Add stdio.
17528         (configure.ac): Declare witness.
17529         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
17530         stdio take care of replacement.
17531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
17532         * modules/stdio (Makefile.am): Substitute them.
17533         * lib/stdio.in.h (rename): Declare replacement.
17534         * lib/rename.c (includes): Allow cross-compilation to non-windows
17535         machines.
17536         * doc/posix-functions/rename.texi (rename): Improve
17537         documentation.
17538
17539         stdio: sort witness names
17540         * modules/stdio (Makefile.am): Sort replacements.
17541         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17542         * lib/stdio.in.h: Likewise.
17543
17544         getcwd: minor cleanups
17545         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
17546         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
17547
17548         openat: provide more convenience names
17549         * modules/faccessat (configure.ac): Add C witness.
17550         * lib/unistd.in.h (readlinkat): Fix typo.
17551         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
17552         convenience wrappers.
17553         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
17554         wrappers in syntax checks.
17555
17556 2009-09-06  Eric Blake  <ebb9@byu.net>
17557
17558         doc: fix comments in recent patches
17559         * lib/faccessat.c: Mention correct function.
17560         * lib/fchmodat.c: Likewise.
17561         * lib/fchownat.c: Likewise.
17562         * lib/symlinkat.c: Likewise.
17563         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
17564         constants.
17565
17566         faccessat, symlinkat: continue cleanup of previous patch
17567         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
17568         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17569         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
17570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
17571         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
17572         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
17573         set.
17574
17575 2009-09-06  Bruno Haible  <bruno@clisp.org>
17576
17577         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
17578         (fstatat): Declare if GNULIB_FSTATAT is set.
17579         (mkdirat): Declare if GNULIB_MKDIRAT is set.
17580         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
17581         (unlinkat): Declare if GNULIB_UNLINKAT is set.
17582         * modules/fcntl-h (Files): Remove m4/openat.m4.
17583         * modules/sys_stat (Files): Remove m4/openat.m4.
17584         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
17585         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
17586         * modules/unistd (Files): Remove m4/openat.m4.
17587         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
17588         GNULIB_OPENAT.
17589         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
17590         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
17591         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
17592         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
17593         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
17594         gl_OPENAT_DEFAULTS.
17595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
17596         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
17597         Don't require gl_OPENAT_DEFAULTS.
17598         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
17599         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
17600         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
17601         (gl_OPENAT_DEFAULTS): Remove macro.
17602
17603 2009-09-06  Bruno Haible  <bruno@clisp.org>
17604
17605         * modules/openat (configure.ac): Remove unneeded witness.
17606
17607 2009-09-06  Bruno Haible  <bruno@clisp.org>
17608
17609         Set errno to ENOSYS when a function is entirely unsupported.
17610         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
17611         EOPNOTSUPP.
17612         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17613         * modules/chown (Depends-on): Remove errno.
17614
17615 2009-09-06  Bruno Haible  <bruno@clisp.org>
17616
17617         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
17618
17619 2009-09-06  Bruno Haible  <bruno@clisp.org>
17620
17621         * lib/sys_stat.in.h: Fix preprocessor command indentation.
17622
17623 2009-09-06  Ben Pfaff  <blp@gnu.org>
17624             Bruno Haible  <bruno@clisp.org>
17625
17626         Work around a glibc bug in strtok_r.
17627         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
17628         Undefine if UNDEFINE_STRTOK_R is set.
17629         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
17630         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17631         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
17632         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
17633         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
17634         UNDEFINE_STRTOK_R.
17635         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
17636
17637 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17638
17639         exclude: minor fix
17640         * lib/exclude.c: Include wctype.h
17641
17642 2009-09-06  Akim Demaille  <demaille@gostai.com>
17643
17644         bootstrap: improve error message
17645         * build-aux/bootstrap (find_tool): Upon failure, report the list
17646         of candidates.
17647         Honor the initial value of the envvar.
17648
17649 2009-09-05  Eric Blake  <ebb9@byu.net>
17650
17651         symlinkat: new module
17652         * modules/symlinkat: New file.
17653         * lib/symlinkat.c: Likewise.
17654         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
17655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17656         * modules/unistd (Makefile.am): Use them.
17657         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
17658         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
17659         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
17660         * MODULES.html.sh (File system functions): Mention module.
17661         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17662         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17663         * modules/symlinkat-tests: New test.
17664         * tests/test-symlinkat.c: Likewise.
17665
17666         test-openat-safer: add more checks
17667         * tests/test-openat-safer.c (main): Check more code paths.
17668
17669 2009-09-05  Jim Meyering  <meyering@redhat.com>
17670
17671         syntax-check: detect unnecessary inclusion of openat.h
17672         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
17673
17674 2009-09-05  Bruno Haible  <bruno@clisp.org>
17675
17676         Support towlower, towupper.
17677         * doc/posix-functions/towlower.texi: Mention module wctype.
17678         * doc/posix-functions/towupper.texi: Likewise.
17679         * lib/wctype.in.h (towlower, towupper): New functions.
17680         * tests/test-wctype.c: Include stdio.h, stdlib.h.
17681         (ASSERT): New macro.
17682         (e): New variable.
17683         (main): Test also towlower, towupper. Test WEOF argument.
17684         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
17685
17686 2009-09-05  Bruno Haible  <bruno@clisp.org>
17687
17688         Fix conversion behaviour when the input is invalid.
17689         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
17690         mark occurring in first pass of indirect conversion.
17691         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
17692         input.
17693         Found by clang's static analyzer.
17694
17695 2009-09-05  Bruno Haible  <bruno@clisp.org>
17696
17697         * tests/test-striconveh.c (main): Test indirect conversion on platforms
17698         where direct conversion is possible.
17699
17700 2009-09-04  Eric Blake  <ebb9@byu.net>
17701
17702         openat: fail with ENOENT on empty name
17703         * lib/openat-proc.c (openat_proc_name): Special-case the empty
17704         buffer.
17705
17706         link-follow: fix logic bug in prior patch
17707         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
17708         reversed sense of yes and no in prior patch.  Avoid confusing
17709         compilation failure with desired semantics.
17710
17711         link-follow: accomodate mingw and cross-compilation
17712         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
17713         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
17714         cross-compilation results to -1, to make linkat easier to
17715         implement when cross-compiling.  Trivially support mingw.
17716         * modules/link-follow (configure.ac): Call new name.
17717         * NEWS: Mention this.
17718
17719 2009-09-03  Eric Blake  <ebb9@byu.net>
17720
17721         faccessat: compile replacement
17722         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
17723         needed.
17724
17725         fts: fix compilation error
17726         * lib/fts.c (includes): Re-add "openat.h", for
17727         openat_needs_fchdir.
17728
17729         faccessat: new module
17730         * modules/faccessat: New file.
17731         * lib/faccessat.c: Likewise.
17732         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17734         * modules/unistd (Makefile.am): Use it.
17735         * lib/unistd.in.h (faccessat): Declare it.
17736         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
17737         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
17738         * MODULES.html.sh (File system functions): Mention it.
17739         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
17740         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
17741
17742         euidaccess: prefer POSIX over non-standard implementation
17743         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
17744         * lib/euidaccess.c (euidaccess): Use it if available.
17745
17746         openat: make template easier to use
17747         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
17748         AT_FUNC_F2 to be undefined.
17749         (VALIDATE_FLAG): New macro; use it to reject bad flags.
17750         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
17751         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
17752         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
17753         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
17754         Likewise.
17755         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
17756         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
17757         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
17758         Likewise.
17759
17760         openat: declare in POSIX headers
17761         * NEWS: Mention this.
17762         * modules/openat (configure.ac): Declare witnesses.
17763         (Depends-on): Add fcntl-h, sys_stat, unistd.
17764         (Include): Mention correct headers.
17765         * modules/fcntl-h (Depends-on): Add link-warning.
17766         (Files): Add openat.m4.
17767         (Makefile.am): Substitute witnesses.
17768         * modules/sys_stat (Files, Makefile.am): Likewise.
17769         * modules/unistd (Files, Makefile.am): Likewise.
17770         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
17771         (gl_OPENAT_DEFAULTS): New macro.
17772         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
17773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
17774         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
17775         (SYS_STAT_H): Remove unused variable.
17776         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
17777         * lib/fcntl--.h (includes): Remove unneeded header.
17778         * lib/openat-safer.c (includes): Likewise.
17779         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
17780         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
17781         appropriate headers.
17782         (__OPENAT_PREFIX): Delete.
17783         * lib/fcntl.in.h (openat): Provide declaration.
17784         (AT_FDCWD): Fix Solaris bug.
17785         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
17786         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
17787         * lib/fchmodat.c (includes):  Adjust to find declaration.
17788         * lib/fchownat.c (includes): Likewise.
17789         * lib/mkdirat.c (includes): Likewise.
17790         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
17791         still visible.
17792
17793 2009-09-02  Eric Blake  <ebb9@byu.net>
17794
17795         errno: use consistently
17796         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
17797         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
17798         * lib/canonicalize.c (ELOOP): Likewise.
17799         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
17800         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
17801         * lib/lchown.c (EOPNOTSUPP): Likewise.
17802         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
17803         * lib/savewd.c (ESTALE): Likewise.
17804         * lib/settime.c (ENOSYS): Likewise.
17805         * lib/utimens.c (ENOSYS): Likewise.
17806         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
17807         * lib/chdir-safer.c (ELOOP): Likewise.
17808         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
17809         * modules/c-stack (Depends-on): Add errno.
17810         * modules/canonicalize (Depends-on): Likewise.
17811         * modules/chdir-safer (Depends-on): Likewise.
17812         * modules/fdopendir (Depends-on): Likewise.
17813         * modules/inet_ntop (Depends-on): Likewise.
17814         * modules/inet_pton (Depends-on): Likewise.
17815         * modules/lchown (Depends-on): Likewise.
17816         * modules/openat (Depends-on): Likewise.
17817         * modules/savewd (Depends-on): Likewise.
17818         * modules/settime (Depends-on): Likewise.
17819         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
17820
17821         fts: avoid leaking fds
17822         * modules/fts (Depends-on): Add cloexec.
17823         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
17824         flag.
17825
17826         fts: make directory fds more robust
17827         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
17828         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
17829
17830         backupfile, chdir-long, fts, savedir: make safer
17831         * lib/backupfile.c (includes): Use "dirent--.h", since
17832         numbered_backup can write to stderr during readdir.
17833         * lib/savedir.c (includes): Likewise.
17834         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
17835         emulation can write to stderr on failure.
17836         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
17837         * lib/getcwd.c: Document why opendir_safer is unused.
17838         * lib/glob.c: Likewise.
17839         * lib/scandir.c: Likewise.
17840         * lib/openat-proc.c: Likewise, for open_safer.
17841         * modules/backupfile (Depends-on): Add dirent-safer.
17842         * modules/savedir (Depends-on): Likewise.
17843         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
17844         * modules/chdir-long (Depends-on): Add openat-safer.
17845
17846         openat-safer: new module
17847         * modules/openat-safer: New file.
17848         * lib/openat-safer.c: Likewise.
17849         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
17850         * lib/fcntl-safer.h (openat_safer): Declare.
17851         * lib/fcntl--.h (openat): Override.
17852         * MODULES.html.sh (File descriptor based I/O): Mention it.
17853         * lib/openat.h: Add double-inclusion guards.
17854         * lib/openat.c (includes): Only include "fcntl-safer.h", not
17855         "fcntl--.h", so we can implement openat.
17856         * modules/openat-safer-tests: New test.
17857         * tests/test-openat-safer.c: New file.
17858
17859         dirent-safer: new module
17860         * modules/dirent-safer: New file.
17861         * lib/dirent--.h: Likewise.
17862         * lib/dirent-safer.h: Likewise.
17863         * lib/opendir-safer.c: Likewise.
17864         * m4/dirent-safer.m4: Likewise.
17865         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
17866         * modules/dirent-safer-tests: New test.
17867         * tests/test-dirent-safer.c: New file.
17868         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
17869
17870         fdopendir: optimize on mingw
17871         * lib/unistd.in.h (_gl_directory_name): New prototype.
17872         * lib/fchdir.c (_gl_directory_name): Implement it.
17873         (fchdir): Use it to simplify implementation.
17874         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
17875         fchdir, when available, to avoid calling [f]chdir().
17876
17877         fdopendir: split into its own module
17878         * lib/openat.c (fdopendir): Move...
17879         * lib/fdopendir.c: ...into new file.
17880         * modules/fdopendir: New module.
17881         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
17882         * modules/openat (Depends-on): Add fdopendir.
17883         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
17884         fdopendir here.
17885         * modules/savedir (Depends-on): Only need fdopendir, not full
17886         openat.
17887         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
17888         * lib/openat.h (fdopendir): Drop prototype.
17889         * lib/dirent.in.h (fdopendir): Provide prototype.
17890         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
17891         * modules/dirent (Makefile.am): Substitute them.
17892         * MODULES.html.sh (File system functions): Mention it.
17893         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
17894         * modules/fdopendir-tests: New file.
17895         * tests/test-fdopendir.c: Likewise.
17896
17897         fchdir: use more consistent macro convention
17898         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
17899         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
17900         REPLACE_FCHDIR, rather than relying on config.h macros.
17901         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
17902         inside a single make-time REPLACE_FCHDIR block, rather than using
17903         the config.h FCHDIR_REPLACEMENT.
17904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
17905         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
17906         Manage fstat replacement.
17907         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
17908         REPLACE_FCHDIR.
17909         * modules/sys_stat (Files): Add m4/unistd_h.m4.
17910         (Makefile.am): Substitute REPLACE_FCHDIR.
17911         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
17912         FCHDIR_REPLACEMENT.
17913         * lib/dup-safer.c (dup_safer): Likewise.
17914         * lib/dup2.c (rpl_dup2): Likewise.
17915         * lib/dup3.c (rpl_dup3): Likewise.
17916         * lib/open.c (rpl_open): Likewise.
17917
17918         fchdir: simplify error handling, and support dup3
17919         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
17920         stdbool, malloc-posix, realloc-posix.
17921         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
17922         (ensure_dirs_slot): Return false on allocation failure.
17923         (rpl_dup2): Delete.
17924         (_gl_register_dup): New function.
17925         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
17926         (_gl_register_fd): Close fd on allocation failure.
17927         * lib/fcntl.in.h (_gl_register_fd): Update signature.
17928         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
17929         prototype.
17930         (rpl_dup2_fchdir): Delete prototype.
17931         * lib/open.c (open): Update caller.
17932         * lib/dup2.c (dup2): Track fchdir metadata.
17933         * lib/dup3.c (dup3): Likewise.
17934         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
17935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
17936
17937 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17938
17939         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
17940         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
17941         don't pass arguments to AC_OUTPUT.
17942
17943 2009-09-02  Bruno Haible  <bruno@clisp.org>
17944
17945         * modules/mkdtemp (License): Relicense under LGPLv2+.
17946         Reported by Paolo Bonzini.
17947
17948 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17949
17950         Replace uses of obsolete autoconf macros in Jim's modules.
17951         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
17952         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
17953         can evoke a warning from autoconf when run with -Wobsolete
17954         enabled.  They were declared obsolete for good reasons (see
17955         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
17956         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
17957         should not continue using the deprecated macros.
17958         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
17959         obsolete Autoconf macros with modern counterparts.
17960         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17961         * m4/dos.m4 (gl_AC_DOS): Likewise.
17962         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
17963         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17964         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
17965         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
17966         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
17967         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
17968         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
17969         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
17970         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
17971         Likewise.
17972         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17973         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
17974         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
17975         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
17976         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17977         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
17978
17979 2009-09-01  Eric Blake  <ebb9@byu.net>
17980
17981         fchdir: fix off-by-one bug in previous patch
17982         * lib/fchdir.c (rpl_fstat): Use correct bounds.
17983         (_gl_unregister_fd): Delete useless if.
17984
17985 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
17986
17987         maint.mk: sort the list of syntax-check rules
17988         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
17989         easier to get a sense of progress when the rules are run sequentially
17990         and take a long time.
17991
17992 2009-09-01  Simon Josefsson  <simon@josefsson.org>
17993
17994         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
17995         * modules/netinet_in: Likewise.
17996         * modules/sys_file: Likewise.
17997         * modules/sys_ioctl: Likewise.
17998         * modules/sys_select: Likewise.
17999         * modules/sys_socket: Likewise.
18000         * modules/sys_stat: Likewise.
18001         * modules/sys_time: Likewise.
18002         * modules/sys_times: Likewise.
18003         * modules/sys_utsname: Likewise.
18004         * modules/sys_wait: Likewise.
18005
18006 2009-09-01  Jim Meyering  <meyering@redhat.com>
18007
18008         fts: help ensure that return values are not ignored
18009         * lib/fts_.h (__GNUC_PREREQ): Define.
18010         (__attribute_warn_unused_result__): Define.
18011         (fts_children, fts_close, fts_open, fts_read): Declare with
18012         __attribute_warn_unused_result__.
18013
18014         fts: fts_close now fails also when closing a dir file descriptor fails
18015         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
18016         and propagate to caller, along with errno.
18017
18018         announce-gen: correct formatting in --help output
18019         * build-aux/announce-gen (usage): Move the one-line description in
18020         --help output "up", to where it belongs, just after Usage:.
18021
18022 2009-08-31  Eric Blake  <ebb9@byu.net>
18023
18024         fchdir: port to mingw
18025         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
18026         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
18027         opened, then use a substitute.
18028         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
18029         replacement.
18030         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
18031         (_gl_register_fd): No need to check stat if open already filters
18032         all directories.
18033         (fchdir): Fix error condition to match POSIX.
18034         * modules/fchdir (Depends-on): Add sys_stat.
18035         * doc/posix-functions/open.texi (open): Document the limitation.
18036         * modules/fchdir-tests: New file.
18037         * tests/test-fchdir.c: Likewise.
18038
18039         canonicalize: allow cross-testing from cygwin to mingw
18040         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
18041         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
18042         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
18043         Likewise.
18044         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
18045         target does not support symlinks.
18046         * tests/test-canonicalize-lgpl.sh: Likewise.
18047
18048         chown: avoid compilation warning on mingw
18049         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
18050         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
18051         mingw.
18052         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
18053         * modules/chown (Depends-on): Add errno.
18054
18055 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18056
18057         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
18058         command.
18059
18060 2009-08-31  Jim Meyering  <meyering@redhat.com>
18061
18062         canonicalize: remove useless initialization
18063         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
18064         initialization of local, "end".
18065
18066 2009-08-30  Bruno Haible  <bruno@clisp.org>
18067
18068         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
18069         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
18070         ENOSYS.
18071
18072 2009-08-30  Bruno Haible  <bruno@clisp.org>
18073
18074         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
18075         /usr/xpg4/bin/tr when it exists.
18076         * tests/test-pipe-filter-gi1.sh: Likewise.
18077
18078 2009-08-30  Bruno Haible  <bruno@clisp.org>
18079
18080         Work around deficient /usr/bin/id program on Solaris.
18081         * tests/test-file-has-acl.sh (ID): New variable.
18082         * tests/test-set-mode-acl.sh (ID): Likewise.
18083         * tests/test-copy-acl.sh (ID): Likewise.
18084         * tests/test-copy-file.sh (ID): Likewise.
18085
18086 2009-08-30  Bruno Haible  <bruno@clisp.org>
18087
18088         New module 'xstriconveh'.
18089         * lib/xstriconveh.h: New file.
18090         * lib/xstriconveh.c: New file.
18091         * modules/xstriconveh: New file.
18092
18093 2009-08-30  Bruno Haible  <bruno@clisp.org>
18094
18095         Make it easier to use mem_cd_iconveh.
18096         * lib/striconveh.h (iconveh_t): New type.
18097         (iconveh_open, iconveh_close): New declarations.
18098         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
18099         with a single 'const iconveh_t *' argument.
18100         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
18101         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
18102         with a single 'const iconveh_t *' argument.
18103         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
18104         * tests/test-striconveh.c (main): Update.
18105         * NEWS: Mention the change.
18106
18107 2009-08-30  Bruno Haible  <bruno@clisp.org>
18108
18109         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
18110         problem.
18111
18112 2009-08-30  Bruno Haible  <bruno@clisp.org>
18113
18114         Work around iconv_open problem on Solaris.
18115         * lib/iconv_open-solaris.gperf: New file.
18116         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
18117         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
18118         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
18119         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
18120         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
18121         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
18122
18123 2009-08-29  Jim Meyering  <meyering@redhat.com>
18124
18125         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
18126         * top/maint.mk (cvs-check): Remove target; it was just an alias
18127         to the better-named vc-diff-check.
18128         (maintainer-distcheck): Remove rule.  It was used only from
18129         the (alpha/beta/major) target, and all of its commands but one
18130         were coreutils-specific.
18131         (vc-dist): Remove rule.
18132         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
18133         Run vc-diff-check, not vc-dist.
18134         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
18135
18136 2009-08-27  Bruno Haible  <bruno@clisp.org>
18137
18138         * tests/test-bitrotate.c (main): Remove test that uses a shift count
18139         of 0.
18140
18141 2009-08-27  Bruno Haible  <bruno@clisp.org>
18142
18143         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
18144         compilers.
18145         * doc/func.texi: Document the SunPRO C bug.
18146
18147 2009-08-27  Bruno Haible  <bruno@clisp.org>
18148
18149         Fix link error on Solaris.
18150         * tests/test-parse-duration.c (xstrdup): Remove function.
18151
18152 2009-08-26  Pádraig Brady  <P@draigbrady.com>
18153
18154         ignore-value: handle pointer types, too
18155         * lib/ignore-value.h (__attribute__): Remove definition.
18156         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
18157         of a more concise and more-often effective "(void) i" statement.
18158         (ignore_ptr): New function to suppress warnings from functions that
18159         return pointers, and to make it explicit that one function doesn't
18160         handle all cases.
18161
18162 2009-08-25  Bruno Haible  <bruno@clisp.org>
18163
18164         dup2: work around a Linux bug.
18165         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
18166         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
18167         * doc/posix-functions/dup2.texi: Mention the Linux bug.
18168         Reported by Simon Josefsson.
18169
18170 2009-08-25  Jim Meyering  <meyering@redhat.com>
18171
18172         libguestfs uses gnulib
18173         * users.txt: Add libguestfs.
18174
18175 2009-08-24  Eric Blake  <ebb9@byu.net>
18176
18177         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
18178         * lib/pipe2.c (includes): Add binary-io.h.
18179         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
18180
18181 2009-08-24  Bruno Haible  <bruno@clisp.org>
18182
18183         Tolerate declared but missing accept4 syscall.
18184         * lib/accept4.c (accept4): Invoke original accept4 function first, if
18185         available.
18186         * lib/sys_socket.in.h (accept4): If the function is already present,
18187         override it.
18188         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
18189         * modules/accept4 (Makefile.am): Compile accept4.c always.
18190         Reported by Paolo Bonzini and Eric Blake.
18191
18192 2009-08-23  Bruno Haible  <bruno@clisp.org>
18193
18194         New module 'accept4'.
18195         * lib/sys_socket.in.h (accept4): New declaration.
18196         * lib/accept4.c: New file.
18197         * m4/accept4.m4: New file.
18198         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18199         GNULIB_ACCEPT4, HAVE_ACCEPT4.
18200         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
18201         HAVE_ACCEPT4.
18202         * modules/accept4: New file.
18203         * doc/glibc-functions/accept4.texi: Mention the new module.
18204
18205 2009-08-24  Jim Meyering  <meyering@redhat.com>
18206
18207         progname: also set global program_invocation_name, when possible
18208         Before this change, a libtool-enabled program that calls glibc's
18209         error function would report the program name as
18210         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
18211         * modules/progname (configure.ac): Check for a declaration of
18212         program_invocation_name.
18213         * lib/progname.c:  Include <errno.h>.
18214         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
18215         Set program_invocation_name.
18216
18217 2009-08-23  Bruno Haible  <bruno@clisp.org>
18218
18219         * lib/dup3.c: Include <string.h>.
18220
18221 2009-08-23  Bruno Haible  <bruno@clisp.org>
18222
18223         * lib/dup3.c (dup3): Test only once whether the system actually exists.
18224         * lib/pipe2.c (pipe2): Likewise.
18225         Suggested by Eric Blake.
18226
18227 2009-08-23  Bruno Haible  <bruno@clisp.org>
18228
18229         Tolerate declared but missing dup3 syscall.
18230         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
18231         * lib/unistd.in.h (dup3): If the function is already present,
18232         override it.
18233         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
18234         * modules/dup3 (Makefile.am): Compile dup3.c always.
18235         Reported by Paolo Bonzini.
18236
18237 2009-08-23  Bruno Haible  <bruno@clisp.org>
18238
18239         Tolerate declared but missing pipe2 syscall.
18240         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
18241         available.
18242         * lib/unistd.in.h (pipe2): If the function is already present,
18243         override it.
18244         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
18245         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
18246         Reported by Paolo Bonzini.
18247
18248 2009-08-23  Bruno Haible  <bruno@clisp.org>
18249
18250         * lib/pipe2.c (pipe2): Move #ifs inside function.
18251
18252 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18253
18254         quotearg: document limitations of quote_these_too
18255         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
18256         those limitations are created.
18257         * lib/quotearg.h (set_char_quoting): Document that digits and
18258         letters that are special after backslash are not permitted.
18259         (quotearg_char): Cross-reference set_char_quoting documentation.
18260
18261 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
18262
18263         quotearg: implement custom_quoting_style
18264         * lib/quotearg.c: (struct quoting_options): Add left_quote and
18265         right_quote fields.
18266         (set_custom_quoting): New public function.
18267         (quotearg_buffer_restyled): Add left_quote and right_quote
18268         arguments, handle them very much like locale quoting, and update
18269         all uses.
18270         (quotearg_n_custom): New public function.
18271         (quotearg_n_custom_mem): New public function.
18272         (quotearg_custom): New public function.
18273         (quotearg_custom_mem): New public function.
18274         * lib/quotearg.h: Prototype and document new public functions.
18275         (enum quoting_style): For escape_quoting_style and
18276         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
18277         ignored even though they're otherwise like c_quoting_style.
18278         Add custom_quoting_style member and document with comparison to
18279         clocale_quoting_style.
18280         * tests/test-quotearg.c (custom_quotes): New array.
18281         (custom_results): New array.
18282         (main): Extend to test custom quoting.
18283
18284 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18285
18286         quotearg: fix right quote escaping when it's in quote_these_too
18287         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
18288         quote, be sure to prepend only one backslash.
18289         * tests/test-quotearg.c (use_quote_double_quotes): New function.
18290         (main): Test it.
18291
18292 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18293
18294         quotearg-tests: test escaping of embedded locale quotes
18295         * tests/test-quotearg.c (struct result_strings): Add member for
18296         new input.
18297         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
18298         (inputs): Add new input.
18299         (results_g): Add expected results.
18300         (flag_results): Likewise.
18301         (locale_results): Likewise.
18302         (compare_strings): Check those.
18303
18304 2009-08-23  Bruno Haible  <bruno@clisp.org>
18305
18306         Tests for module 'dup3'.
18307         * modules/dup3-tests: New file.
18308         * tests/test-dup3.c: New file.
18309
18310         New module 'dup3'.
18311         * lib/unistd.in.h (dup3): New declaration.
18312         * lib/dup3.c: New file.
18313         * m4/dup3.m4: New file.
18314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
18315         HAVE_DUP3.
18316         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
18317         * modules/dup3: New file.
18318         * doc/glibc-functions/dup3.texi: Mention the new module.
18319
18320 2009-08-23  Bruno Haible  <bruno@clisp.org>
18321
18322         Tweak the dup2 test.
18323         * tests/test-dup2.c (main): Create the test file empty. Verify that an
18324         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
18325         the test file is still empty. Fix argument order of lseek.
18326
18327 2009-08-23  Bruno Haible  <bruno@clisp.org>
18328
18329         Avoid test link errors when the modules getopt-gnu, gettext are used.
18330         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
18331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18332
18333 2009-08-23  Bruno Haible  <bruno@clisp.org>
18334
18335         Fix getdtablesize() on mingw.
18336         * lib/getdtablesize.c (getdtablesize): Implement differently.
18337         * lib/unistd.in.h (getdtablesize): Improve comment.
18338
18339 2009-08-23  Bruno Haible  <bruno@clisp.org>
18340
18341         New module 'mkostemp'.
18342         Based on Ulrich Drepper's 2007-08-10 change in glibc.
18343         * lib/stdlib.in.h (mksotemp): New declaration.
18344         * lib/mkostemp.c: New file, from glibc with modifications.
18345         * lib/tempname.h (GT_FILE): Remove outdated comment.
18346         (gen_tempname): Add flags argument.
18347         * lib/tempname.c (__GT_BIGFILE): Remove macro.
18348         (__GT_FILE): Map to 1.
18349         (small_open, large_open): Remove macros.
18350         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
18351         * lib/mkstemp.c (mkstemp): Update.
18352         * lib/mkdtemp.c (mkdtemp): Likewise.
18353         * m4/mkostemp.m4: New file.
18354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
18355         HAVE_MKOSTEMP.
18356         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
18357         HAVE_MKOSTEMP.
18358         * modules/mkostemp: New file, based on modules/mkstemp.
18359         * doc/glibc-functions/mkostemp.texi: Mention the new module.
18360         * NEWS: Mention the change.
18361
18362 2009-08-23  Bruno Haible  <bruno@clisp.org>
18363
18364         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
18365         Reported by Eric Blake.
18366
18367 2009-08-23  Bruno Haible  <bruno@clisp.org>
18368
18369         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
18370         Reported by Eric Blake.
18371
18372 2009-08-23  Bruno Haible  <bruno@clisp.org>
18373
18374         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
18375         * modules/pipe2 (Depends-on): Likewise.
18376
18377 2009-08-23  Eric Blake  <ebb9@byu.net>
18378
18379         fcntl-h: add O_TTY_INIT support
18380         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
18381         * tests/test-fcntl-h.c (o): Test it.
18382         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18383
18384         fcntl-h: rename from fcntl, in preparation for fcntl(2)
18385         * modules/fcntl: Move <fcntl.h> header replacement...
18386         * modules/fcntl-h: ...to new name, so as not to collide with
18387         like-named function.
18388         * tests/test-fcntl.c: Rename...
18389         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
18390         * modules/fcntl-tests: Rename...
18391         * modules/fcntl-h-tests: ...to this.  Update test file name.
18392         * modules/chdir-long (Depends-on): Update clients.
18393         * modules/chdir-safer (Depends-on): Likewise.
18394         * modules/fcntl-safer (Depends-on): Likewise.
18395         * modules/fts (Depends-on): Likewise.
18396         * modules/mkancesdirs (Depends-on): Likewise.
18397         * modules/mkdir-p (Depends-on): Likewise.
18398         * modules/open (Depends-on): Likewise.
18399         * modules/savewd (Depends-on): Likewise.
18400         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
18401         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18402
18403 2009-08-22  Bruno Haible  <bruno@clisp.org>
18404
18405         * modules/binary-io (License): Relicense under LGPL.
18406         * modules/pipe2 (License): Likewise.
18407
18408 2009-08-22  Bruno Haible  <bruno@clisp.org>
18409
18410         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
18411         return value.
18412         * lib/pipe-filter-gi.c (filter_init): Likewise.
18413         Reported by Eric Blake.
18414
18415 2009-08-22  Bruno Haible  <bruno@clisp.org>
18416
18417         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
18418         * modules/pipe (Depends-on): Add pipe2.
18419
18420 2009-08-22  Bruno Haible  <bruno@clisp.org>
18421
18422         Tests for module 'pipe2'.
18423         * modules/pipe2-tests: New file.
18424         * tests/test-pipe2.c: New file.
18425
18426         New module 'pipe2'.
18427         * lib/unistd.in.h (pipe2): New declaration.
18428         * lib/pipe2.c: New file.
18429         * m4/pipe2.m4: New file.
18430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
18431         HAVE_PIPE2.
18432         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
18433         * modules/pipe2: New file.
18434         * doc/glibc-functions/pipe2.texi: Mention the new module.
18435
18436 2009-08-22  Bruno Haible  <bruno@clisp.org>
18437
18438         Reference some new glibc functions.
18439         * doc/glibc-functions/accept4.texi: New file.
18440         * doc/glibc-functions/dup3.texi: New file.
18441         * doc/glibc-functions/mkostemp.texi: New file.
18442         * doc/glibc-functions/pipe2.texi: New file.
18443         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
18444         (Glibc sys/socket.h): Refer to accept4.
18445         (Glibc unistd.h): Refer to dup3, pipe2.
18446         Reported by Eric Blake.
18447
18448 2009-08-22  Jim Meyering  <meyering@redhat.com>
18449             Bruno Haible  <bruno@clisp.org>
18450
18451         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
18452         This makes it so packages using automake-1.11's silent-rules option
18453         can print e.g., a single "GEN    configmake.h" line, rather than
18454         the 30+ statements that perform the job.  If you want to see the
18455         actual commands, you can still run "make V=1".
18456         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
18457         so that make output is abbreviated when those variables are defined
18458         appropriately.
18459         * modules/argz: Likewise.
18460         * modules/arpa_inet: Likewise.
18461         * modules/byteswap: Likewise.
18462         * modules/configmake: Likewise.
18463         * modules/dirent: Likewise.
18464         * modules/errno: Likewise.
18465         * modules/fcntl: Likewise.
18466         * modules/float: Likewise.
18467         * modules/fnmatch: Likewise.
18468         * modules/getopt-posix: Likewise.
18469         * modules/glob: Likewise.
18470         * modules/iconv_open: Likewise.
18471         * modules/inttypes: Likewise.
18472         * modules/localcharset: Likewise.
18473         * modules/locale: Likewise.
18474         * modules/math: Likewise.
18475         * modules/netdb: Likewise.
18476         * modules/netinet_in: Likewise.
18477         * modules/poll: Likewise.
18478         * modules/posix_spawnp-tests: Likewise.
18479         * modules/sched: Likewise.
18480         * modules/search: Likewise.
18481         * modules/selinux-h: Likewise.
18482         * modules/signal: Likewise.
18483         * modules/spawn: Likewise.
18484         * modules/stdarg: Likewise.
18485         * modules/stdbool: Likewise.
18486         * modules/stddef: Likewise.
18487         * modules/stdint: Likewise.
18488         * modules/stdio: Likewise.
18489         * modules/stdlib: Likewise.
18490         * modules/string: Likewise.
18491         * modules/strings: Likewise.
18492         * modules/sys_file: Likewise.
18493         * modules/sys_ioctl: Likewise.
18494         * modules/sys_select: Likewise.
18495         * modules/sys_socket: Likewise.
18496         * modules/sys_stat: Likewise.
18497         * modules/sys_time: Likewise.
18498         * modules/sys_times: Likewise.
18499         * modules/sys_utsname: Likewise.
18500         * modules/sys_wait: Likewise.
18501         * modules/sysexits: Likewise.
18502         * modules/time: Likewise.
18503         * modules/unistd: Likewise.
18504         * modules/wchar: Likewise.
18505         * modules/wctype: Likewise.
18506
18507 2009-08-22  Jim Meyering  <meyering@redhat.com>
18508
18509         announce-gen: detect write failure
18510         * build-aux/announce-gen: Add Coda at end.
18511         Remove equivalent-but-more-verbose block at top.
18512
18513 2009-08-19  Akim Demaille  <demaille@gostai.com>
18514
18515         bootstrap: --help to stdout.
18516         * bootstrap (usage): Don't send --help to stderr.
18517         Use a here doc instead of a long string.
18518
18519 2009-08-21  Eric Blake  <ebb9@byu.net>
18520
18521         test-popen-safer: split from test-popen
18522         * tests/test-popen.c (main): Move...
18523         * tests/test-popen.h: ...into new file.
18524         * tests/test-popen-safer2.c: New file.
18525         * modules/popen-tests (Files): Add test-popen.h.
18526         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
18527         Suggested by Bruno Haible.
18528
18529         test-fcntl-safer: split from test-open
18530         * tests/test-open.c (main): Move...
18531         * tests/test-open.h: ...into new file.
18532         * tests/test-fcntl-safer.c: New file.
18533         * modules/open-tests (Files): Add test-open.h.
18534         * modules/fcntl-safer-tests: New file.
18535         Suggested by Bruno Haible.
18536
18537         test-fopen-safer: split from test-fopen
18538         * tests/test-fopen.c (main): Move...
18539         * tests/test-fopen.h: ...into new file.
18540         * tests/test-fopen-safer.c: New file.
18541         * modules/fopen-tests (Files): Add test-fopen.h.
18542         * modules/fopen-safer-tests: New file.
18543         Suggested by Bruno Haible.
18544
18545 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18546
18547         popen-safer: test O_CLOEXEC at run-time.
18548         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
18549
18550 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18551
18552         fcntl: move more flags to the header
18553         * lib/cloexec.c: Do not define FD_CLOEXEC here.
18554         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
18555         * lib/fcntl.in.h: Do both things here.
18556
18557 2009-08-21  Jim Meyering  <meyering@redhat.com>
18558
18559         consistently remove $@-t before redirecting to it
18560         * modules/argz: Remove $@-t and $@ before redirecting to the former.
18561         * modules/alloca-opt: Likewise.
18562         * modules/byteswap: Likewise.
18563         * modules/fnmatch: Likewise.
18564         * modules/getopt-posix: Likewise.
18565         * modules/glob: Likewise.
18566         * modules/poll: Likewise.
18567         * modules/posix_spawnp-tests: Likewise.
18568         * modules/sys_socket: Likewise.
18569         * modules/sysexits: Likewise.
18570
18571 2009-08-21  Eric Blake  <ebb9@byu.net>
18572
18573         popen: simplify access to original popen
18574         * lib/popen.c (rpl_popen): No need to worry about popen being a
18575         macro.
18576         Reported by Bruno Haible.
18577
18578 2009-08-20  Eric Blake  <ebb9@byu.net>
18579
18580         build: avoid some compiler warnings
18581         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
18582         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
18583         type.
18584         (new_exclude_segment, excluded_file_pattern_p)
18585         (excluded_file_name_p): Reduce scope.
18586         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
18587         old-style declaration.
18588
18589 2009-08-20  Simon Josefsson  <simon@josefsson.org>
18590
18591         * tests/test-exclude1.sh: Handle Windows EOL.
18592         * tests/test-exclude2.sh: Likewise.
18593         * tests/test-exclude3.sh: Likewise.
18594         * tests/test-exclude4.sh: Likewise.
18595         * tests/test-exclude5.sh: Likewise.
18596         * tests/test-exclude6.sh: Likewise.
18597         * tests/test-exclude7.sh: Likewise.
18598
18599 2009-08-19  Akim Demaille  <demaille@gostai.com>
18600
18601         bootstrap: find sha1sum when named gsha1sum.
18602         * bootstrap (find_tool): New.
18603         ($SHA1SUM): New.
18604         Use it.
18605
18606 2009-08-20  Jim Meyering  <meyering@redhat.com>
18607
18608         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
18609         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
18610         expression that converts "." in a file name to "\." in the resulting
18611         regexp.  Start with a dummy statement, so that prior shell variable
18612         definitions are expanded portably.  Reported by Simon Josefsson.
18613
18614 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
18615
18616         Fix polling for writeability of a screen buffer.
18617         * lib/poll.c: Distinguish input and screen buffers for the
18618         Win32 implementation.
18619         * lib/select.c: Likewise.
18620
18621 2009-08-19  Eric Blake  <ebb9@byu.net>
18622
18623         popen-safer: prevent popen from clobbering std descriptors
18624         * modules/popen-safer: New file.
18625         * lib/popen-safer.c: Likewise.
18626         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
18627         * lib/stdio--.h (popen): Provide override.
18628         * lib/stdio-safer.h (popen_safer): Provide declaration.
18629         * tests/test-popen.c (includes): Partially test this.
18630         * modules/popen-safer-tests: New file, for more tests.
18631         * tests/test-popen-safer.c: Likewise.
18632         * MODULES.html.sh (file stream based Input/Output): Mention it.
18633
18634         tests: test some of the *-safer modules
18635         * modules/fopen-safer (Depends-on): Add fopen.
18636         * modules/fcntl-safer (Depends-on): Add fcntl.
18637         * modules/stdlib-safer (Depends-on): Add stdlib.
18638         (configure.ac): Set indicator.
18639         * modules/unistd-safer (configure.ac): Likewise.
18640         * modules/tmpfile-safer (configure.ac): Likewise.
18641         (Depends-on): Add tmpfile.
18642         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
18643         active.
18644         * tests/test-fopen.c (includes): Test safer versions when they are
18645         in use.
18646         * tests/test-open.c (includes): Likewise.
18647
18648         popen: fix cygwin 1.5 bug when stdin closed
18649         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
18650         * modules/popen: New file.
18651         * modules/popen-tests: Likewise.
18652         * tests/test-popen.c: Likewise.
18653         * m4/popen.m4: Likewise.
18654         * lib/popen.c: Likewise.
18655         * lib/stdio.in.h (popen): New declaration.
18656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
18657         * modules/stdio (Makefile.am): Likewise.
18658         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
18659
18660 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
18661
18662         maint.mk: give full control over update-copyright exclusions
18663         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
18664         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
18665         (update-copyright): Don't force inclusion of top-level
18666         ChangeLog.  Don't force exclusion of all COPYING files, but make
18667         them the default exclusion instead.
18668
18669 2009-08-16  Bruno Haible  <bruno@clisp.org>
18670
18671         Fix test failures on Solaris 10.
18672         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
18673         tests when Solaris iconv() is used.
18674         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
18675         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
18676         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
18677         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
18678         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
18679
18680 2009-08-16  Bruno Haible  <bruno@clisp.org>
18681
18682         Fix test failures on Solaris 10.
18683         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
18684         'tr' program and pass it as first argument.
18685         * tests/test-pipe-filter-gi1.sh: Likewise.
18686         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
18687         program as first argument.
18688         * tests/test-pipe-filter-gi1.c (main): Likewise.
18689
18690 2009-08-16  Eric Blake  <ebb9@byu.net>
18691
18692         fpurge: fix previous commits
18693         * modules/fpurge (Makefile.am): Make replacement conditional,
18694         partially reverting 2007-04-29 change; missed in previous
18695         attempt.
18696         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
18697         is missing.
18698
18699 2009-08-16  Bruno Haible  <bruno@clisp.org>
18700
18701         Clarify fpurge's effect on the file position.
18702         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
18703         * tests/test-fpurge.c (main): Make a second pass for checking the file
18704         position.
18705
18706 2009-08-16  Bruno Haible  <bruno@clisp.org>
18707
18708         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
18709         declaration of fpurge is missing.
18710         * tests/test-fpurge.c (main): Check that the file has not more contents
18711         than expected. Close the file before removing it.
18712
18713 2009-08-15  Eric Blake  <ebb9@byu.net>
18714
18715         fpurge: don't wrap working cygwin implementation
18716         * lib/fpurge.c (fpurge): Fix comment typo.
18717         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
18718         1.7 to avoid replacement.
18719         * tests/test-fpurge.c (main): Enhance test.
18720
18721 2009-08-15  Eric Blake  <ebb9@byu.net>
18722         and Jim Meyering  <meyering@redhat.com>
18723
18724         test-update-copyright: skip if perl is insufficient
18725         * tests/test-update-copyright.sh: Failure to run maintainer tool
18726         should not cause testsuite failure on cygwin 1.5.
18727
18728 2009-08-14  Eric Blake  <ebb9@byu.net>
18729
18730         doc: mention more functions added in cygwin 1.7.0
18731         * doc/posix-headers/limits.texi (limits.h): Update for recent
18732         cygwin additions.
18733         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
18734         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18735         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
18736         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
18737         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
18738
18739 2009-08-14  Eric Blake  <ebb9@byu.net>
18740
18741         maint.mk: simplify update-copyright rule
18742         * top/maint.mk (update-copyright-local): Delete, and document how
18743         to do it in cfg.mk instead.
18744         (update-copyright-exclude-regexp): Delete, and document how to do
18745         it in .x-update-copyright instead.
18746         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
18747         exclude ChangeLog.
18748
18749 2009-08-14  Bruno Haible  <bruno@clisp.org>
18750
18751         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
18752
18753 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18754
18755         maint.mk: support update-copyright-env
18756         * top/maint.mk (update-copyright-env): Define place-holder.
18757         (update-copyright): Expand $(update-copyright-env) before
18758         invoking update-copyright.
18759
18760 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18761
18762         update-copyright: implement forced reformatting
18763         * build-aux/update-copyright: Implement and document
18764         UPDATE_COPYRIGHT_FORCE.
18765         * tests/test-update-copyright.sh: Test it.
18766
18767 2009-08-14  Eric Blake  <ebb9@byu.net>
18768         and Bruno Haible  <bruno@clisp.org>
18769
18770         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
18771         * tests/test-locale.c: Revert previous patch related to NULL.
18772         * tests/test-stdio.c: Likewise.
18773         * tests/test-stdlib.c: Likewise.
18774         * tests/test-string.c: Likewise.
18775         * tests/test-unistd.c: Likewise.
18776         * modules/time-tests (Depends-on): Add verify.
18777         * modules/wchar-tests (Depends-on): Likewise.
18778         * tests/test-time.c: Test for NULL compliance.
18779         * tests/test-wchar.c: Likewise.
18780         * modules/locale (Depends-on): Add stddef.
18781         * modules/stdio (Depends-on): Likewise.
18782         * modules/stdlib (Depends-on): Likewise.
18783         * modules/string (Depends-on): Likewise.
18784         * modules/time (Depends-on): Likewise.
18785         * modules/unistd (Depends-on): Likewise.
18786         * modules/wchar (Depends-on): Likewise.
18787         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
18788         * lib/stdlib.in.h (includes): Likewise.
18789         * lib/string.in.h (includes): Likewise.
18790         * lib/time.in.h (includes): Likewise.
18791         * lib/unistd.in.h (includes): Likewise.
18792         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
18793         replaced.
18794         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18795         * m4/stddef_h.m4: New file.
18796         * modules/stddef: Likewise.
18797         * lib/stddef.in.h: Likewise.
18798         * modules/stddef-tests: Likewise.
18799         * tests/test-stddef.c: Likewise.
18800         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
18801         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
18802         * doc/posix-headers/locale.texi (locale.h): Likewise.
18803         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
18804         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18805         * doc/posix-headers/string.texi (string.h): Likewise.
18806         * doc/posix-headers/time.texi (time.h): Likewise.
18807         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
18808         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
18809
18810 2009-08-14  Eric Blake  <ebb9@byu.net>
18811
18812         doc: improve git diff of texinfo files
18813         * .gitattributes: Add rule for *.texi files, with hint on how to
18814         use it.
18815         Copied from m4, and based on a report by Bruno Haible.
18816
18817 2009-08-14  Bruno Haible  <bruno@clisp.org>
18818
18819         Disable multithread support by default on Cygwin 1.5.x for real.
18820         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
18821
18822 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18823
18824         update-copyright: much ado about intervals
18825         * build-aux/update-copyright: Implement and document
18826         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
18827         of copyright year intervals.
18828         Also, document UPDATE_COPYRIGHT_YEAR.
18829         * tests/test-update-copyright.sh: Test it.
18830
18831         update-copyright: convert 2-digit to 4-digit years
18832         * build-aux/update-copyright: Implement and document.
18833         * tests/test-update-copyright.sh: Update.
18834
18835 2009-08-14  Jim Meyering  <meyering@redhat.com>
18836
18837         test-exclude: avoid coreutils "make check" failure
18838         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
18839         just as in test-argmatch.c.
18840
18841 2009-08-13  Eric Blake  <ebb9@byu.net>
18842
18843         test-dup2: fix bad assumption
18844         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
18845         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
18846
18847         test-version-etc: fix CRLF portability issue
18848         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
18849         recognize \r.
18850         * tests/test-argp-version-etc-1.sh: Likewise.
18851
18852         getopt: update client modules
18853         * modules/argp (Depends-on): Use getopt-gnu.
18854         * modules/git-merge-changelog (Depends-on): Likewise.
18855         * modules/long-options (Depends-on): Likewise.
18856         * modules/xstrtol (Depends-on): Likewise.
18857
18858 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18859
18860         * tests/test-version-etc.sh: Don't fail on different
18861         project/version.  Don't fail on CRLF differences.  Rewrite to use
18862         multiple -e instead of multiple sed forks, suggested by Eric Blake
18863         <ebb9@byu.net>.
18864         * tests/test-argp-version-etc-1.sh: Likewise.
18865
18866 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18867
18868         * tests/test-version-etc.sh: Don't fail on different
18869         project/version.
18870
18871 2009-08-12  Bruno Haible  <bruno@clisp.org>
18872
18873         Tests for modules 'getopt-posix', 'getopt-gnu'.
18874         * modules/getopt-posix-tests: New file.
18875         * tests/test-getopt.c: New file.
18876         * tests/test-getopt.h: New file.
18877         * tests/test-getopt_long.h: New file.
18878
18879         New modules 'getopt-posix', 'getopt-gnu'.
18880         * modules/getopt-gnu: New file, renamed from modules/getopt.
18881         * modules/getopt-posix: New file.
18882         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
18883         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
18884         (gl_GETOPT): Remove macro.
18885         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
18886         Disable the test against BSD systems that declare optreset. Test
18887         against mingw bug. Test against lack of support of optional arguments
18888         on many platforms.
18889         * doc/glibc-headers/getopt.texi: Update module name and list of
18890         relevant platforms.
18891         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
18892         'getopt-gnu' and more portability problems.
18893         * NEWS: Mention the changes.
18894
18895 2009-08-12  Bruno Haible  <bruno@clisp.org>
18896
18897         Ensure that optarg etc. get declared by <unistd.h>.
18898         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
18899         AC_USE_SYSTEM_EXTENSIONS.
18900         * modules/getopt (Depends-on): Add 'extensions'.
18901
18902 2009-08-12  Bruno Haible  <bruno@clisp.org>
18903
18904         Avoid test link errors.
18905         * modules/pipe-filter-ii-tests (Makefile.am): Define
18906         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
18907         * modules/pipe-filter-gi-tests (Makefile.am): Define
18908         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
18909         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18910
18911 2009-08-12  Bruno Haible  <bruno@clisp.org>
18912
18913         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
18914         gl_GETOPT_SUBSTITUTE before.
18915         (gl_GETOPT): Use it.
18916         * m4/argp.m4 (gl_ARGP): Update.
18917         Reported by Sergey Poznyakoff.
18918
18919         * m4/getopt.m4: Reorder macros.
18920         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
18921         (gl_GETOPT_SUBSTITUTE): Remove macro.
18922
18923 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18924
18925         Minor improvement in gitlog-to-changelog
18926
18927         * build-aux/gitlog-to-changelog: New option `--format' makes
18928         output format string configurable.
18929
18930 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18931
18932         Optimize exclude: use hash tables for non-wildcard patterns.
18933
18934         * lib/exclude.c: Include hash.h and mbuiter.h
18935         (struct exclude_pattern, exclude_segment): New data types.
18936         (struct exclude): Rewrite.
18937         (fnmatch_pattern_has_wildcards): New function.
18938         (new_exclude_segment, free_exclude_segment): New functions.
18939         (excluded_file_pattern_p, excluded_file_name_p): New functions.
18940         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
18941         * lib/exclude.h (is_fnmatch_pattern): New prototype.
18942         * modules/exclude: Depend on hash and mbuiter.
18943
18944         * modules/exclude-tests: New file.
18945         * tests/test-exclude.c: New file.
18946         * tests/test-exclude1.sh: New file.
18947         * tests/test-exclude2.sh: New file.
18948         * tests/test-exclude3.sh: New file.
18949         * tests/test-exclude4.sh: New file.
18950         * tests/test-exclude5.sh: New file.
18951         * tests/test-exclude6.sh: New file.
18952         * tests/test-exclude7.sh: New file.
18953
18954 2009-08-12  Bruno Haible  <bruno@clisp.org>
18955
18956         Ensure that getopt() gets declared by <unistd.h>.
18957         * lib/unistd.in.h: Conditionally include getopt.h.
18958         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
18959         Set GNULIB_UNISTD_H_GETOPT.
18960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18961         GNULIB_UNISTD_H_GETOPT.
18962         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
18963
18964 2009-08-12  Bruno Haible  <bruno@clisp.org>
18965
18966         Clarify logic.
18967         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
18968         gl_replace_getopt instead of GETOPT_H.
18969
18970 2009-08-12  Bruno Haible  <bruno@clisp.org>
18971
18972         * m4/getopt.m4: Add comments.
18973
18974 2009-08-12  Bruno Haible  <bruno@clisp.org>
18975
18976         Disable multithread support by default on Cygwin 1.5.x.
18977         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
18978         set gl_use_threads=no if not specified otherwise.
18979
18980 2009-08-11  Bruno Haible  <bruno@clisp.org>
18981
18982         Avoid compilation error on NetBSD 5.0.
18983         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
18984         * tests/test-stdio.c: Likewise.
18985         * tests/test-stdlib.c: Likewise.
18986         * tests/test-string.c: Likewise.
18987         * tests/test-unistd.c: Likewise.
18988         Reported by Greg Troxel <gdt@ir.bbn.com>
18989         at <https://savannah.gnu.org/support/?106973>.
18990
18991 2009-08-11  Bruno Haible  <bruno@clisp.org>
18992
18993         * modules/dup2-tests (Depends-on): Remove close.
18994
18995         Undo 2009-07-19 commit.
18996         * modules/acl-tests (Depends-on): Remove close.
18997         * modules/binary-io-tests (Depends-on): Likewise.
18998         * modules/closein-tests (Depends-on): Likewise.
18999         * modules/flock-tests (Depends-on): Likewise.
19000         * modules/fsync-tests (Depends-on): Likewise.
19001         * modules/lseek-tests (Depends-on): Likewise.
19002         * modules/pipe-tests (Depends-on): Likewise.
19003         * modules/posix_spawn-tests (Depends-on): Likewise.
19004         * modules/posix_spawnp-tests (Depends-on): Likewise.
19005         * modules/stat-time-tests (Depends-on): Likewise.
19006         * modules/yesno-tests (Depends-on): Likewise.
19007
19008 2009-08-10  Bruno Haible  <bruno@clisp.org>
19009
19010         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
19011
19012 2009-08-10  Bruno Haible  <bruno@clisp.org>
19013
19014         Fix a gcc warning.
19015         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
19016
19017 2009-08-10  Bruno Haible  <bruno@clisp.org>
19018
19019         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
19020         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
19021         not only the first time.
19022         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
19023         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
19024         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
19025         is 1, not only the the first time.
19026
19027 2009-08-10  Bruno Haible  <bruno@clisp.org>
19028
19029         Make it possible to use module 'gethostname' without module 'close'.
19030         * lib/unistd.in.h (close): Evoke a link error only if
19031         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
19032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19033         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19034         * modules/unistd (Makefile.am): Substitute
19035         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19036         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
19037         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
19038         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19039         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19040         * modules/sys_ioctl (Makefile.am): Substitute
19041         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19042         * modules/socket (configure.ac): On native Windows, set
19043         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
19044         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19045         Reported by Sam Steingold <sds@gnu.org>.
19046
19047 2009-08-10  Bruno Haible  <bruno@clisp.org>
19048
19049         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
19050         * modules/ioctl (configure.ac): Likewise.
19051
19052 2009-08-10  Bruno Haible  <bruno@clisp.org>
19053
19054         Avoid collision between gnulib wrapper and libintl wrapper.
19055         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
19056         already defined in intl/printf.c.
19057         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
19058         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
19059
19060 2009-08-09  Bruno Haible  <bruno@clisp.org>
19061
19062         Make <sys/select.h> really self-contained, also on Solaris 10.
19063         * lib/sys_select.in.h: Include <string.h>.
19064         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
19065         Solaris 10 problem.
19066         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
19067         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
19068         Reported by Jim Meyering.
19069
19070 2009-08-09  Bruno Haible  <bruno@clisp.org>
19071
19072         Avoid warnings from 'aclocal' that are due to a use of macro name
19073         AM_XGETTEXT_OPTION that is not defined in automake.
19074         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
19075         automake.
19076         * modules/error (configure.ac): Likewise.
19077         * modules/propername (configure.ac): Likewise.
19078         * modules/vasprintf (configure.ac): Likewise.
19079         * modules/verror (configure.ac): Likewise.
19080         * modules/xprintf (configure.ac): Likewise.
19081         * modules/xvasprintf (configure.ac): Likewise.
19082
19083 2009-08-08  Bruno Haible  <bruno@clisp.org>
19084
19085         Avoid compilation error in C++ mode.
19086         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
19087         Reported by Sam Steingold <sds@gnu.org>.
19088
19089 2009-08-08  Bruno Haible  <bruno@clisp.org>
19090
19091         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
19092         for the various Unix platforms.
19093         * doc/posix-headers/limits.texi: Update platforms list regarding
19094         HOST_NAME_MAX.
19095         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19096
19097 2009-08-07  Jim Meyering  <meyering@redhat.com>
19098
19099         selinux-at: fix typo in a comment
19100         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
19101         Spotted by Paolo Bonzini.
19102
19103         selinux-at: remove redundant m4 code, add documentation
19104         * modules/selinux-at (configure.ac): Remove redundant code.
19105         LIB_SELINUX is already set via the dependent module, selinux-h.
19106         (Include): Add quotes around selinux-at.h.
19107         * lib/selinux-at.h: Add documentation.
19108         Reported by Bruno Haible in
19109         http://marc.info/?l=gnulib-bug&m=124958988300749
19110
19111 2009-08-07  Bruno Haible  <bruno@clisp.org>
19112
19113         Avoid link error on MacOS X 10.3 and 10.4.
19114         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
19115         on non-ELF systems.
19116         * lib/argp-pv.c (argp_program_version): Likewise.
19117         Reported by Simon Josefsson.
19118
19119 2009-08-07  Simon Josefsson  <simon@josefsson.org>
19120
19121         * tests/test-version-etc.sh: Use $EXEEXT.
19122
19123 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
19124
19125         update-copyright: update documentation to point to maint.mk
19126         * build-aux/update-copyright: Here.
19127
19128 2009-08-06  Jim Meyering  <meyering@redhat.com>
19129
19130         maint.mk: support update-copyright-local
19131         * top/maint.mk (update-copyright-local): Define place-holder.
19132         (update-copyright): Depend on $(update-copyright-local).
19133
19134 2009-08-06  Jim Meyering  <meyering@redhat.com>
19135
19136         selinux-at: new module
19137         Initially written for coreutils, this module will soon be
19138         used by findutils, too.
19139         * MODULES.html.sh [Misc]: Add selinux-at.
19140         * lib/selinux-at.h: New file, from coreutils.
19141         * lib/selinux-at.c: Likewise.
19142         * modules/selinux-at: Likewise.
19143         (License): Change from LGPL to GPL, since it depends
19144         on the GPL'd openat module.
19145
19146         doc: update README
19147         * README: Remove references to cogito.
19148         Remove cvs-repo-updating instructions from 2007.
19149         Don't imply that CVS is better if you have limited disk space.
19150
19151 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19152
19153         update-copyright: support C-style comments
19154         * build-aux/update-copyright: Implement and document.
19155         * tests/test-update-copyright.sh: Test.
19156
19157 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19158
19159         update-copyright: support omitted "(C)"
19160         * build-aux/update-copyright: Implement and document.  Also,
19161         allow variable whitespace before "(C)".
19162         * tests/test-update-copyright.sh: Test.
19163
19164 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19165
19166         update-copyright: don't trip on non-FSF copyright statements
19167         * build-aux/update-copyright: Fix so that the first correctly
19168         formatted FSF copyright statement is recognized no matter what
19169         appears before it.  Update documentation.
19170         * tests/test-update-copyright.sh: Test that.
19171
19172 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19173
19174         update-copyright: clean up code a little
19175         * build-aux/update-copyright: Append "_re" to the name of any
19176         variable holding a regular expression.
19177         Replace "old" and "new" with "stmt" in variable names.
19178         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
19179         handled correctly.
19180         Format code more consistently.
19181
19182 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19183
19184         update-copyright-tests: improve portability
19185         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
19186         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
19187
19188 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
19189
19190         update-copyright: support @copyright{} and &copy;
19191         * build-aux/update-copyright: Implement and document.
19192         * tests/test-update-copyright.sh: Test.
19193
19194 2009-08-04  Jim Meyering  <meyering@redhat.com>
19195
19196         update-copyright-tests: correctly test EOL=\r\n handling
19197         * tests/test-update-copyright.sh: Put \r at the end of some lines
19198         for the dos-eol tests.  Based on a patch by Joel E. Denny.
19199
19200         maint.mk: make update-copyright exclusion list more configurable
19201         * top/maint.mk (update-copyright): Default to excluding COPYING,
19202         but allow an override, in case someone does want to update that file.
19203
19204         maint.mk: don't update copyright date in COPYING
19205         * top/maint.mk (update-copyright): Exclude COPYING.
19206
19207         maint.mk: add a copyright-updating rule
19208         * top/maint.mk (update-copyright): New rule.
19209         Derived from coreutils/Makefile.am.
19210
19211         update-copyright: rename some variables
19212         * build-aux/update-copyright: Rename a few variables for clarity.
19213         Tweak syntax.  List Joel E. Denny as coauthor.
19214
19215 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
19216
19217         update-copyright: fix bug for 2-digit last year and add tests
19218         * build-aux/update-copyright: Fix bug.
19219         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
19220         specified.
19221         * modules/update-copyright-tests: New
19222         * tests/test-update-copyright.sh: New.
19223
19224 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19225
19226         update-copyright: handle leading tabs in line prefix
19227         * build-aux/update-copyright: Count leading tabs as 8 spaces
19228         when computing margin.  This helps with the formatting of
19229         ChangeLogs, for example.
19230         Fix documentation a little.
19231
19232 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19233
19234         update-copyright: support EOL=\r\n
19235         * build-aux/update-copyright: Implement that.
19236
19237 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19238
19239         update-copyright: automatically format copyright statements
19240         * build-aux/update-copyright: Implement that.
19241         Also, be a little more predictable and safer by always failing
19242         when the full copyright format is not perfectly recognized as an
19243         unbroken whole.  Discussed at
19244         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
19245         Rewrite documentation.
19246
19247 2009-08-03  Bruno Haible  <bruno@clisp.org>
19248
19249         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
19250
19251 2009-08-02  Bruno Haible  <bruno@clisp.org>
19252
19253         Tests for module 'uname'.
19254         * modules/uname-tests: New file.
19255         * tests/test-uname.c: New file.
19256
19257         New module 'uname'.
19258         * lib/uname.c: New file.
19259         * m4/uname.m4: New file.
19260         * modules/uname: New file.
19261         * doc/posix-functions/uname.texi: Mention the new module.
19262
19263 2009-08-02  Bruno Haible  <bruno@clisp.org>
19264
19265         Tests for module 'sys_utsname'.
19266         * modules/sys_utsname-tests: New file.
19267         * tests/test-sys_utsname.c: New file.
19268
19269         New module 'sys_utsname'.
19270         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
19271         * m4/sys_utsname_h.m4: New file.
19272         * modules/sys_utsname: New file.
19273         * doc/posix-headers/sys_utsname.texi: Mention the new module.
19274
19275 2009-08-02  Bruno Haible  <bruno@clisp.org>
19276
19277         Implicitly initialize the sockets library.
19278         * lib/gethostname.c: Include sockets.h.
19279         (rpl_gethostname): Invoke gl_sockets_startup.
19280         * lib/socket.c: Include sockets.h.
19281         (rpl_socket): Invoke gl_sockets_startup.
19282         * modules/gethostname (Depends-on): Add sockets.
19283         * modules/socket (Depends-on): Likewise.
19284         * tests/test-poll.c: Don't include sockets.h.
19285         (main): Don't invoke gl_sockets_startup.
19286         * tests/test-select.c: Don't include sockets.h.
19287         (main): Don't invoke gl_sockets_startup.
19288
19289 2009-08-02  Bruno Haible  <bruno@clisp.org>
19290
19291         Allow multiple calls to gl_sockets_startup.
19292         * lib/sockets.c (initialized_sockets_version): New variable.
19293         (gl_sockets_startup): Do nothing if already called for this or a higher
19294         version.
19295         (gl_sockets_cleanup): Reset initialized_sockets_version.
19296
19297 2009-08-03  Simon Josefsson  <simon@josefsson.org>
19298
19299         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
19300         different project/version.
19301
19302 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
19303             Bruno Haible  <bruno@clisp.org>
19304
19305         Tests for module 'pipe-filter-gi'.
19306         * modules/pipe-filter-gi-tests: New file.
19307         * tests/test-pipe-filter-gi1.sh: New file.
19308         * tests/test-pipe-filter-gi1.c: New file.
19309         * tests/test-pipe-filter-gi2.sh: New file.
19310         * tests/test-pipe-filter-gi2-main.c: New file.
19311         * tests/test-pipe-filter-gi2-child.c: New file.
19312
19313         New module 'pipe-filter-gi'.
19314         * lib/pipe-filter-gi.c: New file.
19315         * modules/pipe-filter-gi: New file.
19316
19317 2009-08-02  Bruno Haible  <bruno@clisp.org>
19318             Paolo Bonzini  <bonzini@gnu.org>
19319
19320         Tests for module 'pipe-filter-ii'.
19321         * modules/pipe-filter-ii-tests: New file.
19322         * tests/test-pipe-filter-ii1.sh: New file.
19323         * tests/test-pipe-filter-ii1.c: New file.
19324         * tests/test-pipe-filter-ii2.sh: New file.
19325         * tests/test-pipe-filter-ii2-main.c: New file.
19326         * tests/test-pipe-filter-ii2-child.c: New file.
19327
19328         New module 'pipe-filter-ii'.
19329         * lib/pipe-filter.h: New file.
19330         * lib/pipe-filter-ii.c: New file.
19331         * lib/pipe-filter-aux.h: New file.
19332         * modules/pipe-filter-ii: New file.
19333
19334 2009-08-02  Simon Josefsson  <simon@josefsson.org>
19335
19336         * lib/gc-libgcrypt.c: Change copyright to FSF.
19337         * lib/gc-gnulib.c: Likewise.
19338
19339 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
19340
19341         * lib/gethostname.c: Include limits.h.
19342
19343 2009-08-02  Simon Josefsson  <simon@josefsson.org>
19344             Bruno Haible  <bruno@clisp.org>
19345
19346         Ensure HOST_NAME_MAX as part of the gethostname module.
19347         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
19348         define also HOST_NAME_MAX.
19349         * tests/test-gethostname.c: Include <limits.h>.
19350         (main): Check also HOST_NAME_MAX.
19351         * doc/posix-headers/limits.texi: Document the mingw problem.
19352
19353 2009-08-02  Bruno Haible  <bruno@clisp.org>
19354
19355         * lib/gethostname.c (gethostname): Fix handling of large len argument.
19356         Add comments.
19357
19358 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19359
19360         * lib/gethostname.c: Add Windows wrapper.
19361         * m4/gethostname.m4: Look for gethostname in -lws2_32.
19362         * modules/gethostname: Depend on sys_socket & errno, for also
19363         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
19364         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
19365
19366 2009-07-31  Jim Meyering  <meyering@redhat.com>
19367
19368         getloadavg: fix symbol name in comment
19369         * lib/getloadavg.c: Correct a typo I introduced when adding
19370         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
19371         Matt Kraai spotted the problem.
19372
19373 2009-07-29  Matt Kraai  <mkraai@beckman.com>
19374
19375         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
19376         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
19377         code also if ! defined N_NAME_POINTER.
19378         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
19379         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
19380         but the n_name member is a 12-byte array.
19381
19382 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
19383
19384         update-copyright: generalize comment handling
19385         * build-aux/update-copyright: Handle copyright statements
19386         within more comment styles.
19387         Document usage.
19388         Report any file with an external copyright holder or parse failure.
19389
19390 2009-07-29  Jim Meyering  <meyering@redhat.com>
19391
19392         mktime: correct setting of REPLACE_MKTIME
19393         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
19394
19395         update-copyright: new module
19396         * modules/update-copyright: New file.
19397         * build-aux/update-copyright: New file.
19398         * MODULES.html.sh (maint+release support): Add update-copyright.
19399
19400 2009-07-27  Bruno Haible  <bruno@clisp.org>
19401
19402         Fix compilation error when <ctime> is used and mktime is replaced.
19403         * lib/time.in.h (mktime): New declaration.
19404         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
19405         REPLACE_MKTIME instead of defining mktime in config.h.
19406         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
19407         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
19408         Reported by Ross McFarland <rwmcfa1@neces.com>.
19409
19410 2009-07-27  Bruno Haible  <bruno@clisp.org>
19411
19412         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
19413         Reported by Matt Kraai <mkraai@beckman.com>.
19414
19415 2009-07-25  Jim Meyering  <meyering@redhat.com>
19416
19417         maint.mk: avoid warnings about missing files
19418         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
19419         diagnostic when .prev-version does not exist.
19420         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
19421         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
19422         nonexistent cfg.mk.
19423         Suggestions from Simon Josefsson.
19424
19425 2009-07-25  Bruno Haible  <bruno@clisp.org>
19426
19427         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
19428         defined as macros. Needed on QNX 6.4.1.
19429         Reported by Matt Kraai <mkraai@beckman.com>.
19430
19431 2009-07-23  Jim Meyering  <meyering@redhat.com>
19432
19433         maint.mk: invoke "make dist" with a working value of XZ_OPT
19434         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
19435
19436 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
19437
19438         Make fseeko.c compile on QNX.
19439         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
19440
19441 2009-07-22  Peter Simons  <simons@cryp.to>
19442
19443         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
19444         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
19445         * lib/md4.h: Likewise.
19446         * lib/md5.h: Likewise.
19447         * lib/sha1.h: Likewise.
19448         * lib/sha256.h: Likewise.
19449         * lib/sha512.h: Likewise.
19450
19451         tests-sha1: don't assign literal string to 'char *' variable
19452         * tests/test-sha1.c (main): Declare locals with "const" to match
19453         attributes of the right hand side.
19454
19455 2009-07-21  Eric Blake  <ebb9@byu.net>
19456
19457         dup2: fix more mingw problems
19458         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
19459         fd to itself.
19460         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19461         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
19462         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
19463         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
19464         care of mingw bugs.
19465
19466 2009-07-21  Jim Meyering  <meyering@redhat.com>
19467
19468         vc-list-files: avoid failure when /bin/sh is dash
19469         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
19470         On some Debian based systems, /bin/sh is a symlink to dash, and running
19471         this command would omit the "/" following each 'tests' prefix:
19472           dash -x build-aux/vc-list-files -C . tests
19473         That is because bash and dash work differently:
19474           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
19475           bash ok
19476           dash odd
19477
19478 2009-07-21  Eric Blake  <ebb9@byu.net>
19479
19480         dup2-tests: test previous patch
19481         * modules/dup2-tests: New file.
19482         * tests/test-dup2.c: Likewise.
19483         * tests/test-open.c (main): Avoid unspecified behavior.
19484         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
19485         test.
19486
19487         dup2: work around mingw and cygwin 1.5 bug
19488         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
19489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19490         * modules/unistd (Makefile.am): Substitute it.
19491         * lib/unistd.in.h (dup2): Declare the replacement.
19492         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
19493         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
19494         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
19495         * modules/execute (Depends-on): Add dup2.
19496         * modules/fseterr (Depends-on): Likewise.
19497         * modules/pipe (Depends-on): Likewise.
19498         * modules/posix_spawn-internal (Depends-on): Likewise.
19499
19500 2009-07-21  Bruno Haible  <bruno@clisp.org>
19501
19502         * modules/.gitattributes: New file.
19503
19504 2009-07-20  Bruno Haible  <bruno@clisp.org>
19505
19506         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
19507         (main): Use it.
19508
19509 2009-07-20  Eric Blake  <ebb9@byu.net>
19510
19511         test-pipe: make a bit more robust.
19512         * tests/test-pipe.c (myerr): Allow error messages regardless of
19513         what we do to stderr.
19514         (test_pipe): Rearrange to avoid deadlock.
19515         (child_main): Try a larger read, to ensure we avoided deadlock.
19516         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
19517         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
19518         if misused.
19519
19520 2009-07-19  Jim Meyering  <meyering@redhat.com>
19521
19522         fts: avoid false-positive cycle-detection
19523         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
19524         for each new command line argument.
19525
19526 2009-07-19  Bruno Haible  <bruno@clisp.org>
19527
19528         Fix build error on mingw with the modules sys_select and unistd.
19529         * modules/acl-tests (Depends-on): Add close.
19530         * modules/binary-io-tests (Depends-on): Likewise.
19531         * modules/closein-tests (Depends-on): Likewise.
19532         * modules/flock-tests (Depends-on): Likewise.
19533         * modules/fsync-tests (Depends-on): Likewise.
19534         * modules/lseek-tests (Depends-on): Likewise.
19535         * modules/pipe-tests (Depends-on): Likewise.
19536         * modules/posix_spawn-tests (Depends-on): Likewise.
19537         * modules/posix_spawnp-tests (Depends-on): Likewise.
19538         * modules/stat-time-tests (Depends-on): Likewise.
19539         * modules/yesno-tests (Depends-on): Likewise.
19540
19541 2009-07-19  Bruno Haible  <bruno@clisp.org>
19542
19543         Unify conditionals.
19544         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
19545         macros, not at the compiler macros.
19546         * lib/pipe.c: Likewise.
19547         * lib/execute.c: Likewise.
19548         * lib/spawni.c: Likewise.
19549
19550 2009-07-19  Bruno Haible  <bruno@clisp.org>
19551
19552         Fix handling of closed stdin/stdout/stderr on mingw.
19553         * lib/w32spawn.h: Include unistd.h.
19554         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
19555         file descriptor with O_NOINHERIT flag.
19556         (fd_safer_noinherit): New function, based on fd-safer.c.
19557         (dup_safer_noinherit): New function, based on dup-safer.c.
19558         (undup_safer_noinherit): New function.
19559         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
19560         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
19561         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
19562         instead of fd_safer.
19563         * tests/test-pipe.c: Include <windows.h>.
19564         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
19565
19566         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
19567         from main.
19568         (test_pipe): Pass an extra argument for disambiguation.
19569         (main): Invoke parent_main or child_main.
19570
19571         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
19572         consistently.
19573
19574 2009-07-18  Eric Blake  <ebb9@byu.net>
19575
19576         test-pipe: fix mingw build
19577         * tests/test-pipe.c (main): Avoid fcntl on mingw.
19578
19579 2009-07-18  Bruno Haible  <bruno@clisp.org>
19580
19581         * modules/pipe-tests (Makefile.am): Fix typo.
19582
19583 2009-07-18  Eric Blake  <ebb9@byu.net>
19584
19585         error: fix mingw build
19586         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
19587         Reported by Bruno Haible.
19588
19589         error: avoid undefined use of stdout
19590         * lib/error.c (error, error_at_line): Check that fd 1 is open
19591         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
19592         is handling faults and the close_stdout module wants to report the
19593         detection of closed stdout as an error.
19594
19595 2009-07-17  Eric Blake  <ebb9@byu.net>
19596
19597         pipe: be robust in face of closed fds
19598         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
19599         should cause child to misbehave.
19600         * modules/pipe-tests: New module.
19601         * tests/test-pipe.c: New file.
19602         * tests/test-pipe.sh: New file.
19603         Reported by Akim Demaille.
19604
19605 2009-07-14  Bruno Haible  <bruno@clisp.org>
19606
19607         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
19608         Reported by anonymous kc.
19609
19610 2009-07-07  Jim Meyering  <meyering@redhat.com>
19611
19612         maint.mk: don't look for translatable strings in *.m4 or *.mk
19613         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
19614         when searching for translatable strings.
19615
19616 2009-07-05  Jim Meyering  <meyering@redhat.com>
19617
19618         remove superfluous parentheses in STREQ definition
19619         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
19620         * lib/getugroups.c (STREQ): Likewise.
19621         * lib/fnmatch.c (STREQ): Likewise.
19622         Spotted by Bruno Haible.
19623
19624 2009-07-04  Jim Meyering  <meyering@redhat.com>
19625
19626         argv-iter: new module
19627         * MODULES.html.sh: Add argv-iter.
19628         * lib/argv-iter.c, lib/argv-iter.h: New files.
19629         * modules/argv-iter: New file.
19630         * modules/argv-iter-tests: New file.
19631         * tests/test-argv-iter.c: Test it.
19632
19633 2009-07-04  Bruno Haible  <bruno@clisp.org>
19634
19635         Fix assertion.
19636         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
19637         contains more exact copies of a given entry than file2, leave the extra
19638         copies unpaired rather than aborting.
19639         Reported by Eric Blake.
19640
19641 2009-07-02  Bruno Haible  <bruno@clisp.org>
19642
19643         Speedup git-merge-changelog for git cherry-pick.
19644         * lib/git-merge-changelog.c (struct entries_mapping): New type.
19645         (entries_mapping_get): New function, extracted from compute_mapping.
19646         (entries_mapping_reverse_get): New function.
19647         (compute_mapping): Add a 'full' argument. Return the result in a
19648         'struct entries_mapping'.
19649         (main): Update. Access the mappings through entries_mapping_get.
19650         Reported by Eric Blake.
19651
19652 2009-07-02  Bruno Haible  <bruno@clisp.org>
19653
19654         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
19655         best_i.
19656
19657 2009-07-02  Bruno Haible  <bruno@clisp.org>
19658
19659         Speed up approximate search for matching ChangeLog entries.
19660         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
19661         argument. Call fstrcmp_bounded instead of fstrcmp.
19662         (compute_mapping, try_split_merged_entry, main): Update callers.
19663
19664 2009-07-02  Bruno Haible  <bruno@clisp.org>
19665
19666         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
19667
19668 2009-06-30  Bruno Haible  <bruno@clisp.org>
19669
19670         Reduce the number of uc_is_cased calls.
19671         * lib/unicase.h (casing_suffix_context_t): Add
19672         'first_char_except_ignorable' field.
19673         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
19674         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
19675         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
19676         Update initializer.
19677         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
19678         case-ignorable characters.
19679         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
19680         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
19681         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
19682         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
19683         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
19684
19685 2009-06-30  Bruno Haible  <bruno@clisp.org>
19686
19687         Tests for module 'unicase/ignorable'.
19688         * modules/unicase/ignorable-tests: New file.
19689         * tests/unicase/test-ignorable.c: New file, generated by
19690         gen-uni-tables.
19691
19692         Tests for module 'unicase/cased'.
19693         * modules/unicase/cased-tests: New file.
19694         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
19695         * tests/unicase/test-predicate-part1.h: New file, derived from
19696         tests/unictype/test-predicate-part1.h.
19697         * tests/unicase/test-predicate-part2.h: New file, same as
19698         tests/unictype/test-predicate-part2.h.
19699
19700         Fix evaluation of "Before C" condition of FINAL_SIGMA.
19701         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
19702         (output_casing_properties): New function.
19703         (main): Call it.
19704         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
19705         * lib/unicase/cased.c: Include unictype/bitmap.h.
19706         (uc_is_cased): Define through a bitmap lookup.
19707         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
19708         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
19709         (uc_is_case_ignorable): Define through a bitmap lookup.
19710         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
19711         lib/unictype/bitmap.h.
19712         (Depends-on): Add inline. Clean up.
19713         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
19714         lib/unictype/bitmap.h.
19715         (Depends-on): Add inline. Clean up.
19716         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
19717         recognition.
19718         * tests/unicase/test-u16-tolower.c (main): Likewise.
19719         * tests/unicase/test-u32-tolower.c (main): Likewise.
19720
19721 2009-06-30  Bruno Haible  <bruno@clisp.org>
19722
19723         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
19724         * lib/unicase/u16-casemap.c: Likewise.
19725         * lib/unicase/u32-casemap.c: Likewise.
19726
19727 2009-06-29  Bruno Haible  <bruno@clisp.org>
19728
19729         Define u32_casefold as a wrapper around u32_ct_casefold.
19730         * lib/unicase/u32-casefold.c: Update.
19731         * modules/unicase/u32-casefold (Depends-on): Add
19732         unicase/u32-ct-casefold, unicase/empty-prefix-context,
19733         unicase/empty-suffix-context. Clean up.
19734
19735         Define u16_casefold as a wrapper around u16_ct_casefold.
19736         * lib/unicase/u16-casefold.c: Update.
19737         * modules/unicase/u16-casefold (Depends-on): Add
19738         unicase/u16-ct-casefold, unicase/empty-prefix-context,
19739         unicase/empty-suffix-context. Clean up.
19740
19741         Define u8_casefold as a wrapper around u8_ct_casefold.
19742         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
19743         * lib/unicase/u8-casefold.c: Update.
19744         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
19745         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19746
19747         Define u32_totitle as a wrapper around u32_ct_totitle.
19748         * lib/unicase/u32-totitle.c: Update.
19749         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
19750         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19751
19752         Define u16_totitle as a wrapper around u16_ct_totitle.
19753         * lib/unicase/u16-totitle.c: Update.
19754         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
19755         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19756
19757         Define u8_totitle as a wrapper around u8_ct_totitle.
19758         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
19759         functions.
19760         (FUNC): Delegate to U_CT_TOTITLE.
19761         * lib/unicase/u8-totitle.c: Update.
19762         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
19763         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19764
19765         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
19766         invocation.
19767         * modules/unicase/u32-tolower (Depends-on): Add
19768         unicase/empty-prefix-context, unicase/empty-suffix-context.
19769
19770         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
19771         invocation.
19772         * modules/unicase/u16-tolower (Depends-on): Add
19773         unicase/empty-prefix-context, unicase/empty-suffix-context.
19774
19775         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
19776         * modules/unicase/u8-tolower (Depends-on): Add
19777         unicase/empty-prefix-context, unicase/empty-suffix-context.
19778
19779         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
19780         invocation.
19781         * modules/unicase/u32-toupper (Depends-on): Add
19782         unicase/empty-prefix-context, unicase/empty-suffix-context.
19783
19784         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
19785         invocation.
19786         * modules/unicase/u16-toupper (Depends-on): Add
19787         unicase/empty-prefix-context, unicase/empty-suffix-context.
19788
19789         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
19790         * modules/unicase/u8-toupper (Depends-on): Add
19791         unicase/empty-prefix-context, unicase/empty-suffix-context.
19792
19793         New module 'unicase/u32-ct-casefold'.
19794         * lib/unicase/u32-ct-casefold.c: New file.
19795         * modules/unicase/u32-ct-casefold: New file.
19796
19797         New module 'unicase/u16-ct-casefold'.
19798         * lib/unicase/u16-ct-casefold.c: New file.
19799         * modules/unicase/u16-ct-casefold: New file.
19800
19801         New module 'unicase/u8-ct-casefold'.
19802         * lib/unicase/u8-ct-casefold.c: New file.
19803         * lib/unicase/u-ct-casefold.h: New file, derived from
19804         lib/unicase/u-casefold.h.
19805         * modules/unicase/u8-ct-casefold: New file.
19806
19807         New module 'unicase/u32-ct-totitle'.
19808         * lib/unicase/u32-ct-totitle.c: New file.
19809         * modules/unicase/u32-ct-totitle: New file.
19810
19811         New module 'unicase/u16-ct-totitle'.
19812         * lib/unicase/u16-ct-totitle.c: New file.
19813         * modules/unicase/u16-ct-totitle: New file.
19814
19815         New module 'unicase/u8-ct-totitle'.
19816         * lib/unicase/u8-ct-totitle.c: New file.
19817         * lib/unicase/u-ct-totitle.h: New file, derived from
19818         lib/unicase/u-totitle.h.
19819         * modules/unicase/u8-ct-totitle: New file.
19820
19821         New module 'unicase/u32-ct-tolower'.
19822         * lib/unicase/u32-ct-tolower.c: New file.
19823         * modules/unicase/u32-ct-tolower: New file.
19824
19825         New module 'unicase/u16-ct-tolower'.
19826         * lib/unicase/u16-ct-tolower.c: New file.
19827         * modules/unicase/u16-ct-tolower: New file.
19828
19829         New module 'unicase/u8-ct-tolower'.
19830         * lib/unicase/u8-ct-tolower.c: New file.
19831         * modules/unicase/u8-ct-tolower: New file.
19832
19833         New module 'unicase/u32-ct-toupper'.
19834         * lib/unicase/u32-ct-toupper.c: New file.
19835         * modules/unicase/u32-ct-toupper: New file.
19836
19837         New module 'unicase/u16-ct-toupper'.
19838         * lib/unicase/u16-ct-toupper.c: New file.
19839         * modules/unicase/u16-ct-toupper: New file.
19840
19841         New module 'unicase/u8-ct-toupper'.
19842         * lib/unicase/u8-ct-toupper.c: New file.
19843         * modules/unicase/u8-ct-toupper: New file.
19844
19845         Add context arguments to u*_casemap functions.
19846         * lib/unicase/unicasemap.h: Include unicase.h.
19847         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
19848         suffix_context arguments.
19849         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
19850         functions.
19851         (FUNC): Add prefix_context and suffix_context arguments. Use
19852         uc_is_cased and uc_is_case_ignorable.
19853         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
19854         * lib/unicase/u16-casemap.c: Likewise.
19855         * lib/unicase/u32-casemap.c: Likewise.
19856         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
19857         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19858         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
19859         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19860         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
19861         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19862
19863         New module 'unicase/u32-suffix-context'.
19864         * lib/unicase/u32-suffix-context.c: New file.
19865         * modules/unicase/u32-suffix-context: New file.
19866
19867         New module 'unicase/u16-suffix-context'.
19868         * lib/unicase/u16-suffix-context.c: New file.
19869         * modules/unicase/u16-suffix-context: New file.
19870
19871         New module 'unicase/u8-suffix-context'.
19872         * lib/unicase/u8-suffix-context.c: New file.
19873         * lib/unicase/u-suffix-context.h: New file.
19874         * modules/unicase/u8-suffix-context: New file.
19875
19876         New module 'unicase/empty-suffix-context'.
19877         * lib/unicase/empty-suffix-context.c: New file.
19878         * modules/unicase/empty-suffix-context: New file.
19879
19880         New module 'unicase/u32-prefix-context'.
19881         * lib/unicase/u32-prefix-context.c: New file.
19882         * modules/unicase/u32-prefix-context: New file.
19883
19884         New module 'unicase/u16-prefix-context'.
19885         * lib/unicase/u16-prefix-context.c: New file.
19886         * modules/unicase/u16-prefix-context: New file.
19887
19888         New module 'unicase/u8-prefix-context'.
19889         * lib/unicase/u8-prefix-context.c: New file.
19890         * lib/unicase/u-prefix-context.h: New file.
19891         * lib/unicase/context.h: New file.
19892         * modules/unicase/u8-prefix-context: New file.
19893
19894         New module 'unicase/empty-prefix-context'.
19895         * lib/unicase/empty-prefix-context.c: New file.
19896         * modules/unicase/empty-prefix-context: New file.
19897
19898         New module 'unicase/ignorable'.
19899         * lib/unicase/ignorable.c: New file.
19900         * modules/unicase/ignorable: New file.
19901
19902         New module 'unicase/cased'.
19903         * lib/unicase/caseprop.h: New file.
19904         * lib/unicase/cased.c: New file.
19905         * modules/unicase/cased: New file.
19906
19907         New functions for case mapping of substrings.
19908         * lib/unicase.h (casing_prefix_context_t): New type.
19909         (unicase_empty_prefix_context): New variable.
19910         (u8_casing_prefix_context, u16_casing_prefix_context,
19911         u32_casing_prefix_context, u8_casing_prefixes_context,
19912         u16_casing_prefixes_context, u32_casing_prefixes_context): New
19913         declarations.
19914         (casing_suffix_context_t): New type.
19915         (unicase_empty_suffix_context): New variable.
19916         (u8_casing_suffix_context, u16_casing_suffix_context,
19917         u32_casing_suffix_context, u8_casing_suffixes_context,
19918         u16_casing_suffixes_context, u32_casing_suffixes_context,
19919         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
19920         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
19921         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
19922         declarations.
19923
19924 2009-06-28  Jim Meyering  <meyering@redhat.com>
19925
19926         boostrap: indent only with spaces
19927         * build-aux/bootstrap: Indent only with spaces, never TABs.
19928
19929         bootstrap: split long lines
19930         * build-aux/bootstrap: Keep line length < 80.
19931
19932         bootstrap: sync from coreutils
19933         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
19934         just as autoreconf does.  Verify a list of prerequisite
19935         package-name,version-number pairs if defined in bootstrap.conf.
19936         Refer to README-prereq, if prerequisites are not satisfied.
19937
19938 2009-06-27  Eric Blake  <ebb9@byu.net>
19939
19940         tests: add test for bogus NULL definition
19941         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
19942         * tests/test-stdlib.c: Likewise.
19943         * tests/test-string.c: Likewise.
19944         * tests/test-locale.c: Likewise.
19945         * tests/test-unistd.c: Likewise.
19946         * modules/stdio-tests (Depends-on): Add verify.
19947         * modules/stdlib-tests (Depends-on): Likewise.
19948         * modules/string-tests (Depends-on): Likewise.
19949         * modules/locale-tests (Depends-on): Likewise.
19950         * modules/unistd-tests (Depends-on): Likewise.
19951
19952 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
19953
19954         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
19955         self-explaining comment.
19956         * m4/selinux-selinux-h: Update serial.
19957         (gl_LIBSELINUX): New macro, adding a warning for missing development
19958         packages to code extracted from...
19959         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
19960         Add warning for missing development packages here, too.
19961
19962 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
19963
19964         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
19965
19966 2009-06-25  Eric Blake  <ebb9@byu.net>
19967
19968         version-etc: fix regression
19969         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
19970         gcc.
19971         (version_etc): Use it, to catch bugs with trailing NULL.
19972         * lib/version-etc.c (version_etc_arn): Delete unused argument.
19973         (version_etc_va): Fix logic bug.
19974         * modules/version-etc-tests: Add test.
19975         * tests/test-version-etc.c: New file.
19976         * tests/test-version-etc.sh: Likewise.
19977
19978 2009-06-25  Sam Steingold  <sds@gnu.org>
19979
19980         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
19981         mbtowc declaration.
19982
19983 2009-06-25  Eric Blake  <ebb9@byu.net>
19984
19985         fpurge: migrate into <stdio.h>
19986         * lib/fpurge.h: Delete...
19987         * lib/stdio.in.h (fpurge): ...and declare here, instead.
19988         * lib/fpurge.c (fpurge): Change declaring header.
19989         * modules/fpurge (Files): Drop deleted file.
19990         (Depends-on): Add stdio.
19991         (configure.ac): Set witness.
19992         * modules/stdio (Makefile.am): Support fpurge macros.
19993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19994         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
19995         * lib/fflush.c: Update client.
19996         * tests/test-fpurge.c: Likewise.
19997         * NEWS: Mention the change.
19998
19999 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20000
20001         * lib/argp-version-etc.c (program_authors): Add const
20002         qualifier.
20003         * lib/version-etc.c: Fix typos in the comments.
20004         * modules/argp-version-etc: Depends on version-etc.
20005
20006 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20007
20008         argp-version-etc: new module.
20009
20010         * lib/argp-version-etc.c: New file.
20011         * lib/argp-version-etc.h: New file.
20012         * modules/argp-version-etc: New file.
20013         * modules/argp-version-etc-tests: New file.
20014         * tests/test-argp-version-etc.c: New test.
20015         * tests/test-argp-version-etc-1.sh: New test.
20016
20017 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20018
20019         Provide additional interfaces and documentation for version-etc
20020         module.
20021
20022         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
20023         interfaces.
20024         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
20025         prototypes.
20026
20027 2009-06-24  Bruno Haible  <bruno@clisp.org>
20028
20029         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
20030         HAVE_LIB${NAME} macro.
20031         Reported by Sam Steingold <sds@gnu.org>.
20032
20033 2009-06-23  Simon Josefsson  <simon@josefsson.org>
20034
20035         * modules/hash-tests (test_hash_LDADD): Link to libintl when
20036         needed.
20037
20038 2009-06-21  Bruno Haible  <bruno@clisp.org>
20039
20040         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
20041         work.
20042         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
20043         together with LIB${NAME}, LTLIB${NAME}.
20044         Reported by Sam Steingold <sds@gnu.org>.
20045
20046 2009-06-20  Jim Meyering  <meyering@redhat.com>
20047
20048         tests: make sc_require_test_exit_idiom more generic
20049         * top/maint.mk (Exit_witness_file): New overridable variable.
20050         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
20051         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
20052
20053 2009-06-19  Jim Meyering  <meyering@redhat.com>
20054
20055         hash: reverse order of src/dst parameters in an internal interface
20056         * lib/hash.c (transfer_entries): Reverse order of parameters to
20057         put DST before SRC.  Adjust callers.
20058
20059         tests: test-hash: avoid wholesale duplication
20060         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
20061         Instead, use a loop and add a single conditional.
20062
20063         tests: test-hash: allow seed selection via a command line argument
20064         * tests/test-hash.c (get_seed): New function.
20065         (main): Use it.
20066
20067 2009-06-19  Eric Blake  <ebb9@byu.net>
20068
20069         hash: avoid memory leak on allocation failure
20070         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
20071         failure.  Factor repeated algorithm...
20072         (transfer_entries): ...into new helper routine.
20073         (hash_delete): React to hash_rehash return value.
20074
20075         hash: reduce memory pressure in hash_rehash no-op case
20076         * lib/hash.c (next_prime): Avoid overflow.
20077         (hash_initialize): Factor bucket size computation...
20078         (compute_bucket_size): ...into new helper function.
20079         (hash_rehash): Use new function and open coding to reduce memory
20080         pressure, and avoid a memory leak in USE_OBSTACK code.
20081         Reported by Jim Meyering.
20082
20083 2009-06-18  Eric Blake  <ebb9@byu.net>
20084
20085         hash: make rotation more obvious
20086         * modules/hash (Depends-on): Add bitrotate and stdint.
20087         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
20088         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
20089         (SIZE_MAX): Rely on headers for definition.
20090         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
20091         (raw_hasher): Use rotr_sz.
20092         Suggested by Jim Meyering.
20093
20094         hash: fix memory leak in last patch
20095         * lib/hash.c (hash_rehash): Avoid memory leak.
20096
20097         hash: avoid no-op rehashing
20098         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
20099
20100         hash: provide default callback functions
20101         * lib/hash.c (raw_hasher, raw_comparator): New functions.
20102         (hash_initialize): Use them as defaults.
20103         * tests/test-hash.c (main): Test this.
20104
20105         hash: minor optimization
20106         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
20107         when possible.
20108         (hash_initialize): Document this promise.
20109         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
20110         * tests/test-hash.c (hash_compare_strings): Test this.
20111
20112 2009-06-18  Bruno Haible  <bruno@clisp.org>
20113
20114         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
20115         going to be replaced anyway.
20116
20117 2009-06-18  Bruno Haible  <bruno@clisp.org>
20118
20119         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
20120         in one place.
20121         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
20122         be replaced anyway.
20123
20124 2009-06-18  Eric Blake  <ebb9@byu.net>
20125
20126         hash: check for resize before insertion
20127         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
20128         threshold before insertion, so that a pathological hash_rehash
20129         that fills every bucket can still trigger another rehash.
20130
20131 2009-06-18  Jim Meyering  <meyering@redhat.com>
20132
20133         hash-tests: add a loop around the small tests
20134         * tests/test-hash.c (main): Repeat small tests with selected
20135         small initial table sizes.
20136
20137 2009-06-17  Eric Blake  <ebb9@byu.net>
20138
20139         hash: minor cleanups
20140         * lib/hash.h (hash_entry): Make opaque, by moving...
20141         * lib/hash.c (hash_entry): ...here.
20142         (hash_insert): Clarify restrictions on what can be inserted.
20143         (hash_get_next): Clarify when it is safe to remove an element
20144         during traversal.
20145         (check_tuning): Skip verification when tuning is known safe.
20146         (hash_initialize): Clarify restrictions on tuning.
20147
20148 2009-06-17  Jim Meyering  <jim@meyering.net>
20149         and Eric Blake  <ebb9@byu.net>
20150
20151         hash-tests: new module
20152         * modules/hash-tests: New file.
20153         * tests/test-hash.c: New file.
20154
20155 2009-06-17  Eric Blake  <ebb9@byu.net>
20156
20157         strstr-simple: document new module
20158         * MODULES.html.sh: Document new module.
20159
20160         strstr, strcasestr: replace on platforms with broken memchr
20161         * modules/strstr: Split into...
20162         * modules/strstr-simple: ...new module that does not care about
20163         performance, but does care about glibc bug.
20164         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
20165         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
20166         if platform memchr is broken, per Debian bug 521737.
20167         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
20168         memchr.
20169         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
20170         * doc/posix-functions/strstr.texi (strstr): Document the fix.
20171         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20172         * modules/mountlist (Depends-on): Add strstr-simple.
20173         * modules/gen-uni-tables (Depends-on): Likewise.
20174         * modules/argz (Depends-on): Add strstr.
20175
20176 2009-06-17  Bruno Haible  <bruno@clisp.org>
20177
20178         * modules/posix_spawn-internal (Depends-on): Add errno.
20179
20180 2009-06-17  Bruno Haible  <bruno@clisp.org>
20181
20182         Define missing ESTALE on Interix 3.5.
20183         * lib/errno.in.h (ESTALE): Assign a value if missing.
20184         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
20185         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
20186         missing.
20187         * doc/posix-headers/errno.texi: Mention the Interix bug.
20188         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
20189
20190 2009-06-15  Eric Blake  <ebb9@byu.net>
20191
20192         memchr, memchr2: add valgrind exception
20193         * lib/memchr.valgrind: New file.
20194         * lib/memchr2.valgrind: New file.
20195         * modules/memchr (Files): Distribute valgrind file.
20196         * modules/memchr2 (Files): Likewise.
20197
20198         docs: memchr is no longer obsolete
20199         * MODULES.html.sh: Move memchr from obsolete to string.h section.
20200         * lib/string.in.h (memchr): Simplify logic.
20201
20202 2009-06-14  Jim Meyering  <meyering@redhat.com>
20203
20204         link-follow: fix the "checking..." message to not mention trailing slash
20205         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
20206         never considered trailing slashes.
20207
20208 2009-06-14  Bruno Haible  <bruno@clisp.org>
20209
20210         * m4/memchr.m4: Mention also the bug on IA-64.
20211         * doc/posix-functions/memchr.texi: Likewise.
20212
20213 2009-06-12  Eric Blake  <ebb9@byu.net>
20214
20215         memchr: detect broken x86_64 and alpha implementations
20216         * modules/memchr-tests (Depends-on): Move mmap detection...
20217         * modules/memchr (Depends-on): ...here.
20218         (configure.ac): Set indicator.
20219         * lib/string.in.h (memchr): Declare replacement.
20220         * modules/string (Makefile.am): Trigger replacement.
20221         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
20222         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
20223         bugs.
20224         * doc/posix-functions/memchr.texi (memchr): Document the bug.
20225         * modules/getpagesize (License): Relax license.
20226
20227 2009-06-11  Bruno Haible  <bruno@clisp.org>
20228
20229         * lib/idpriv.h: Add more references.
20230
20231 2009-06-08  Bruno Haible  <bruno@clisp.org>
20232
20233         Tests for module 'idpriv-droptemp'.
20234         * modules/idpriv-droptemp-tests: New file.
20235         * tests/test-idpriv-droptemp.sh: New file.
20236         * tests/test-idpriv-droptemp.su.sh: New file.
20237         * tests/test-idpriv-droptemp.c: New file.
20238
20239         New module 'idpriv-droptemp'.
20240         * lib/idpriv-droptemp.c: New file.
20241         * modules/idpriv-droptemp: New file.
20242
20243 2009-06-08  Bruno Haible  <bruno@clisp.org>
20244
20245         Tests for module 'idpriv-drop'.
20246         * modules/idpriv-drop-tests: New file.
20247         * tests/test-idpriv-drop.sh: New file.
20248         * tests/test-idpriv-drop.su.sh: New file.
20249         * tests/test-idpriv-drop.c: New file.
20250
20251         New module 'idpriv-drop'.
20252         * lib/idpriv.h: New file.
20253         * lib-idpriv-drop.c: New file.
20254         * m4/idpriv.m4: New file.
20255         * modules/idpriv-drop: New file.
20256
20257 2009-06-08  Bruno Haible  <bruno@clisp.org>
20258
20259         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
20260         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20261         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20262         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20263         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20264         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20265         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20266
20267 2009-06-08  Eric Blake  <ebb9@byu.net>
20268
20269         test-strstr: use memory fence, when possible
20270         * tests/test-strstr.c (main): Use memory fence, in order to be
20271         more likely to trigger Debian bug 521737.
20272         * modules/strstr-tests (Files): Pull in additional files.
20273
20274         memchr: no longer obsolete, for wider field testing
20275         * modules/memchr (Status, Notice): Delete, this module is no
20276         longer obsolete.
20277         * modules/vasnprintf (Depends-on): Add memchr.
20278
20279 2009-06-07  Jim Meyering  <meyering@redhat.com>
20280
20281         hash: declare some functions with the warn_unused_result attribute
20282         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
20283
20284 2009-06-07  Bruno Haible  <bruno@clisp.org>
20285
20286         * tests/test-alignof.c: Don't test int64_t if it does not exist.
20287         Reported by Eric Blake.
20288
20289 2009-06-06  Eric Blake  <ebb9@byu.net>
20290
20291         test-alignof: fix typo with long double
20292         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
20293         compiler error.
20294
20295 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
20296
20297         Escape non-texinfo { and }s.
20298         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
20299         markup error.
20300
20301 2009-06-04  Jim Meyering  <meyering@redhat.com>
20302
20303         gitlog-to-changelog: don't infloop on an empty commit log
20304         * build-aux/gitlog-to-changelog: Warn about an empty log message.
20305         Reported by Boris Petersen <transacid@centerim.org>.
20306
20307 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
20308
20309         version-etc: extend for packagers
20310         Add three new configure options, intended for packagers:
20311           --with-packager="packager name"
20312           --with-packager-version="packager-specific version"
20313           --with-packager-bug-reports="packager bug reporting"
20314         An example with coreutils:
20315           $ ./configure \
20316             --with-packager=Gentoo \
20317             --with-packager-bug-report=http://bugs.gentoo.org/ \
20318             --with-packager-version="patchset 1.6"
20319           $ ./src/ls --version | head -n2
20320           ls (GNU coreutils) 7.1-dirty
20321           Packaged by Gentoo (patchset 1.6)
20322         Note that the bug reporting info via --help doesn't show up because
20323         coreutils uses its own custom emit_bug_reporting_address() implementation
20324         in src/system.h.  If it didn't, it'd look like:
20325           $ ./src/ls --help | tail -n4
20326           Report bugs to <bug-coreutils@gnu.org>.
20327           Report Gentoo bugs to <http://bugs.gentoo.org/>.
20328           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
20329           General help using GNU software: <http://www.gnu.org/gethelp/>.
20330         * lib/version-etc.c: Print new information, if provided.
20331         * m4/version-etc.m4: New file.
20332         * modules/version-etc (Files): Add m4/version-etc.m4.
20333         (configure.ac): Add gl_VERSION_ETC.
20334
20335 2009-05-31  Bruno Haible  <bruno@clisp.org>
20336
20337         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
20338         and 'int64_t'.
20339         * modules/alignof-tests (Dependencies): Add stdint.
20340         Reported by Eric Blake.
20341
20342 2009-05-31  Bruno Haible  <bruno@clisp.org>
20343
20344         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
20345         restriction due to compiler bugs.
20346         Reported by Eric Blake.
20347
20348 2009-05-31  Simon Josefsson  <simon@josefsson.org>
20349             Bruno Haible  <bruno@clisp.org>
20350
20351         Fix test-alignof failure.
20352         * lib/alignof.h (alignof_slot): New macro.
20353         (alignof_type): New macro, with the same semantics as the previous
20354         'alignof'.
20355         (alignof): Alias to alignof_slot.
20356         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
20357         check that the results are usable as constant expressions.
20358
20359 2009-05-31  Bruno Haible  <bruno@clisp.org>
20360
20361         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
20362         * tests/test-memchr.c (main): Check that memchr does not read past the
20363         first occurrence of the byte.
20364         * tests/test-strstr.c (main): Update comment.
20365         Suggested by Eric Blake.
20366
20367 2009-05-30  Bruno Haible  <bruno@clisp.org>
20368
20369         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
20370         detail how to use dumpbin.
20371         Reported by David Byron <dbyron@dbyron.com>.
20372
20373 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20374
20375         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
20376
20377 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20378
20379         * m4/manywarnings.m4: Add GCC 4.4 warnings.
20380
20381 2009-05-28  Bruno Haible  <bruno@clisp.org>
20382
20383         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
20384         build-aux/ files.
20385
20386 2009-05-28  Simon Josefsson  <simon@josefsson.org>
20387
20388         * gnulib-tool (func_import): Transform license on build-aux/ files too.
20389
20390 2009-05-27  Simon Josefsson  <simon@josefsson.org>
20391
20392         * gnulib-tool (sed_transform_main_lib_file)
20393         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
20394         regexps.
20395
20396 2009-05-26  Simon Josefsson  <simon@josefsson.org>
20397
20398         * tests/test-strstr.c: Add another self-test.
20399         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
20400         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
20401
20402 2009-05-23  Bruno Haible  <bruno@clisp.org>
20403
20404         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
20405         change.
20406
20407 2009-05-21  Bruno Haible  <bruno@clisp.org>
20408
20409         Simplify use of mode_t varargs.
20410         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
20411         uses 'mode_t' or 'int'.
20412         * lib/openat.c (openat): Likewise.
20413         * lib/open-safer.c (open_safer): Likewise.
20414         * m4/mode_t.m4: New file.
20415         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
20416         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
20417         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
20418         * modules/open (Files): Add m4/mode_t.m4.
20419         * modules/openat (Files): Likewise.
20420         * modules/fcntl-safer (Files): Likewise.
20421         Suggested by Eric Blake.
20422
20423 2009-05-21  Pádraig Brady  <P@draigbrady.com>
20424
20425         * doc/glibc-functions/fallocate.texi: New file.
20426         * doc/gnulib.texi: Include it.
20427
20428 2009-05-21  Eric Blake  <ebb9@byu.net>
20429             Bruno Haible  <bruno@clisp.org>
20430
20431         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
20432         invocations.
20433         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20434
20435 2009-05-21  Eric Blake  <ebb9@byu.net>
20436             Bruno Haible  <bruno@clisp.org>
20437
20438         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
20439         include_next. Fix of 2008-11-20 commit.
20440         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
20441         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
20442         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
20443         NEXT_MATH_H.
20444         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
20445         instead of NEXT_MATH_H.
20446
20447 2009-05-21  Bruno Haible  <bruno@clisp.org>
20448
20449         Avoid redefinition warnings for SIZE_MAX.
20450         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
20451         Reported by Simon Josefsson.
20452
20453 2009-05-21  Bruno Haible  <bruno@clisp.org>
20454
20455         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
20456         AC_CACHE_VAL.
20457
20458 2009-05-20  Bruno Haible  <bruno@clisp.org>
20459
20460         Make zeroptr.h work on mingw.
20461         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
20462         mprotect.
20463         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
20464         * modules/memchr2-tests (configure.ac): Likewise.
20465         * modules/memcmp-tests (configure.ac): Likewise.
20466         * modules/memmem-tests (configure.ac): Likewise.
20467         * modules/memrchr-tests (configure.ac): Likewise.
20468         Reported by Simon Josefsson.
20469
20470 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20471
20472         * tests/test-glob.c: Include string.h for strcmp prototype.
20473
20474 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20475
20476         * modules/getdelim (Depends-on): Add explicit stdint, although it
20477         was implicitly already pulled in via realloc-posix.
20478         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
20479
20480 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20481
20482         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
20483         G. Christensen" <tgc@jupiterrise.com>.
20484         * m4/sys_socket_h.m4: Check for sa_family_t.
20485         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
20486         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
20487         * tests/test-sys_socket.c: Check that sa_family_t works.
20488
20489 2009-05-18  Eric Blake  <ebb9@byu.net>
20490
20491         maint.mk: allow gnulib_dir in VPATH build
20492         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
20493
20494 2009-05-15  Jim Meyering  <meyering@redhat.com>
20495
20496         maint.mk: Give gnulib_dir a default definition.
20497         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
20498         Thus, most packages no longer need to specify this variable in cfg.mk
20499
20500 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
20501
20502         rename.m4: fix typos that would make non-mingw cross-configure fail
20503         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
20504
20505 2009-05-13  Eric Blake  <ebb9@byu.net>
20506
20507         mmap-anon: avoid out-of-order autoconf expansion
20508         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
20509         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
20510         * modules/memchr-tests (Depends-on): Add extensions.
20511         * modules/memchr2-tests (Depends-on): Add extensions.
20512         * modules/memcmp-tests (Depends-on): Add extensions.
20513         * modules/memmem-tests (Depends-on): Add extensions.
20514         * modules/memrchr-tests (Depends-on): Add extensions.
20515
20516 2009-05-13  Bruno Haible  <bruno@clisp.org>
20517
20518         Make some tests ISO C 99 compliant.
20519         * tests/zerosize-ptr.h: New file.
20520         * tests/test-memchr.c: Include zerosize-ptr.h.
20521         (main): Use a zero-size object pointer instead of NULL.
20522         * tests/test-memchr2.c: Include zerosize-ptr.h.
20523         (main): Use a zero-size object pointer instead of NULL.
20524         * tests/test-memcmp.c: Include zerosize-ptr.h.
20525         (main): Use a zero-size object pointer instead of NULL.
20526         * tests/test-memmem.c: Include zerosize-ptr.h.
20527         (main): Use a zero-size object pointer instead of NULL.
20528         * tests/test-memrchr.c: Include zerosize-ptr.h.
20529         (main): Use a zero-size object pointer instead of NULL.
20530         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
20531         m4/mmap-anon.m4.
20532         (Depends-on): Add getpagesize.
20533         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20534         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
20535         m4/mmap-anon.m4.
20536         (Depends-on): Add getpagesize.
20537         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20538         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
20539         m4/mmap-anon.m4.
20540         (Depends-on): Add getpagesize.
20541         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20542         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
20543         m4/mmap-anon.m4.
20544         (Depends-on): Add getpagesize.
20545         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20546         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
20547         m4/mmap-anon.m4.
20548         (Depends-on): Add getpagesize.
20549         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20550
20551 2009-05-12  Bruno Haible  <bruno@clisp.org>
20552
20553         Tests for module 'alignof'.
20554         * modules/alignof-tests: New file.
20555         * tests/test-alignof.c: New file.
20556
20557 2009-05-12  Bruno Haible  <bruno@clisp.org>
20558
20559         Fix alignof macro.
20560         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
20561         vendor compilers that are always correct.
20562
20563 2009-05-12  Bruno Haible  <bruno@clisp.org>
20564
20565         Make the MAP_ANONYMOUS detection work on HP-UX 11.
20566         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
20567         not whether its fully works.
20568
20569 2009-05-12  Bruno Haible  <bruno@clisp.org>
20570
20571         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
20572
20573 2009-05-12  Jim Meyering  <meyering@redhat.com>
20574
20575         * top/maint.mk: Adjust backslash alignment.
20576
20577 2009-05-11  Simon Josefsson  <simon@josefsson.org>
20578
20579         * top/maint.mk: Make $(srcdir)/build-aux configurable.
20580
20581 2009-05-11  Eric Blake  <ebb9@byu.net>
20582
20583         argp: avoid undefined behavior
20584         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
20585         macros.
20586
20587 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20588
20589         * tests/test-vc-list-files-git.sh: Do git config of user.email and
20590         user.name to prevent git commit from complaining.
20591
20592 2009-05-10  Bruno Haible  <bruno@clisp.org>
20593
20594         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
20595         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
20596         it rewrites every file name only once.
20597         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
20598
20599 2009-05-08  Bruno Haible  <bruno@clisp.org>
20600
20601         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
20602         instead of 'max'.
20603
20604 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20605
20606         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
20607         sockaddr_storage test.
20608
20609 2009-05-07  Simon Josefsson  <simon@josefsson.org>
20610
20611         * modules/sys_socket (Makefile.am): Substitute
20612         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
20613         * m4/sys_socket_h.m4: Check for sockaddr_storage.
20614         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
20615         * tests/test-sys_socket.c: Check sockaddr_storage.
20616
20617 2009-05-08  Bruno Haible  <bruno@clisp.org>
20618
20619         New module 'alignof'.
20620         * lib/alignof.h: New file.
20621         * modules/alignof: New file.
20622
20623 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20624             Bruno Haible  <bruno@clisp.org>
20625
20626         Fix test-file-has-acl on FreeBSD.
20627         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
20628         mask is implicitly added.
20629         * tests/test-file-has-acl.c: Include <signal.h>.
20630         (main): Terminate the test after 5 seconds.
20631         * modules/acl-tests (configure.ac): Check for alarm function.
20632
20633 2009-05-04  Bruno Haible  <bruno@clisp.org>
20634
20635         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
20636         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
20637         * modules/errno (configure.ac): Drop AC_REQUIRE.
20638         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
20639         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
20640
20641 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20642
20643         * modules/glob-tests: New module.
20644         * tests/test-glob.c: Add.
20645
20646 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20647
20648         * modules/fnmatch-tests: New module.
20649         * tests/test-fnmatch.c: Add.
20650
20651 2009-05-04  Eric Blake  <ebb9@byu.net>
20652
20653         maint: make the new no-submodule-changes rule VPATH-safe
20654         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
20655
20656 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20657             Bruno Haible  <bruno@clisp.org>
20658
20659         acl: Fix infinite loop on FreeBSD.
20660         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
20661         of return value from acl_get_entry.
20662         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
20663         Likewise.
20664
20665 2009-05-03  Bruno Haible  <bruno@clisp.org>
20666
20667         * lib/acl-internal.h (acl_entries): Clarify return value.
20668         * lib/acl_entries.c (acl_entries): Likewise.
20669
20670 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20671
20672         Bug fix in acl module.
20673         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
20674
20675 2009-05-03  Bruno Haible  <bruno@clisp.org>
20676
20677         Create gperf-generated file in the source dir, not in the build dir.
20678         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
20679         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
20680         * modules/unicase/locale-language (unicase/locale-languages.h):
20681         Likewise.
20682         * modules/unicase/special-casing (unicase/special-casing-table.h):
20683         Likewise.
20684         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
20685         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
20686         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
20687         Reported by Ralf Wildenhues.
20688
20689 2009-05-03  Bruno Haible  <bruno@clisp.org>
20690
20691         * modules/fnmatch (Description, configure.ac): Taken from
20692         fnmatch-posix.
20693         * modules/fnmatch-posix: Turn into a symbolic reference to the
20694         'fnmatch' module, and deprecate.
20695         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
20696
20697 2009-05-03  Bruno Haible  <bruno@clisp.org>
20698
20699         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
20700         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
20701         Reported by Ralf Wildenhues.
20702
20703 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20704
20705         * m4/fnmatch.m4: Fix fnmatch re-define.
20706
20707 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20708
20709         priv-set: new module and tests; adapt write-any-file
20710         * lib/priv-set.c: New file.
20711         * lib/priv-set.h: New file.
20712         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
20713         * lib/write-any-file.c: Simplify by using priv-set module.
20714         * m4/priv-set.m4: New file.
20715         * modules/priv-set: New file.
20716         * modules/unlinkdir: Add dependency on priv-set module.
20717         * modules/write-any-file: Likewise.
20718
20719         Tests for module 'priv-set'.
20720         * modules/priv-set-tests: New file.
20721         * tests/test-priv-set.c: New file.
20722
20723 2009-05-03  Jim Meyering  <meyering@redhat.com>
20724             Bruno Haible  <bruno@clisp.org>
20725
20726         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
20727         use the converted UTF-8 variant of the name instead.
20728
20729 2009-05-03  Jim Meyering  <meyering@redhat.com>
20730
20731         tests: tighten some getdate tests
20732         * tests/test-getdate.c (main): Tighten tests: require equality,
20733         not just greater than.  Set TZ envvar to UTC0.
20734
20735 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20736
20737         getdate: correctly interpret "next monday" when run on a Monday
20738         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
20739         that e.g., "next tues" (when run on a tuesday) results in a date
20740         that is one week in the future, and not today's date.
20741         I.e., add a week when the wday is the same as the current one.
20742         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
20743         and earlier by Martin Bernreuther and Jan Minář.
20744         * tests/test-getdate.c (main): Check that "next DAY" is always in
20745         the future and that "last DAY" is always in the past.
20746
20747 2009-05-02  Jim Meyering  <meyering@redhat.com>
20748
20749         build: ensure that a release build fails when a submodule is unclean
20750         * top/maint.mk (no-submodule-changes): New rule.
20751         (alpha beta major): Depend on it.
20752
20753 2009-05-02  Bruno Haible  <bruno@clisp.org>
20754
20755         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
20756         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
20757         shell variable gl_fnmatch_required to detect which variant is
20758         requested.
20759         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
20760         gl_FUNC_FNMATCH_POSIX.
20761         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
20762         exclude fnmatch-posix.
20763
20764 2009-05-02  Bruno Haible  <bruno@clisp.org>
20765
20766         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
20767         * modules/mbsrtowcs (License): Change to LGPLv2+.
20768         * modules/strnlen1 (License): Likewise.
20769         Reported by Simon Josefsson.
20770
20771 2009-05-02  Bruno Haible  <bruno@clisp.org>
20772
20773         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
20774         "cross".
20775         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
20776         gnulib-tool was called with option --source-base=lib.
20777
20778 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20779
20780         Use automake *-local hooks without commands, for extensibility.
20781         * modules/localcharset (Makefile.am): Rename install-exec-local
20782         rule to install-exec-localcharset, and make it a prerequisite of
20783         install-exec-local.  Likewise, rename the uninstall-local rule to
20784         uninstall-localcharset, and make it a prerequisite of the former.
20785
20786 2009-05-01  Bruno Haible  <bruno@clisp.org>
20787
20788         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
20789         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20790         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
20791         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
20792         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
20793         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20794         m4/locale-zh.m4, m4/codeset.m4.
20795
20796         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20797         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
20798         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20799         m4/locale-zh.m4.
20800
20801         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
20802         REPLACE_WCRTOMB if mbstate_t must be replaced.
20803         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
20804         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
20805
20806 2009-05-01  Bruno Haible  <bruno@clisp.org>
20807
20808         Avoid compiler warnings when redefining macros defined by <libintl.h>.
20809         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
20810         dngettext, dcngettext, textdomain, bindtextdomain,
20811         bind_textdomain_codeset): Undefine before redefining.
20812
20813 2009-04-30  Bruno Haible  <bruno@clisp.org>
20814
20815         Fix bug introduced on 2009-04-25.
20816         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
20817         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
20818         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
20819         is defined.
20820         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
20821         is defined.
20822         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
20823         is defined.
20824         Reported by Elbert_Pol <elbert.pol@gmail.com>.
20825
20826 2009-04-28  Bruno Haible  <bruno@clisp.org>
20827
20828         Comment tweaks.
20829         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
20830         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
20831         * lib/unicase.h (u*_casexfrm): Likewise.
20832         Reported by Paolo Bonzini.
20833
20834 2009-04-28  Bruno Haible  <bruno@clisp.org>
20835
20836         Fix a compilation error.
20837         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
20838         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20839         Reported by Jim Meyering.
20840
20841 2009-04-27  Bruno Haible  <bruno@clisp.org>
20842
20843         New module 'libunistring'.
20844         * modules/libunistring: New file.
20845         * m4/libunistring.m4: New file.
20846         * MODULES.html.sh (Unicode string functions): Add it.
20847
20848 2009-04-27  Eric Blake  <ebb9@byu.net>
20849
20850         maint.mk: allow package-specific header to provide <config.h>
20851         * top/maint.mk (sc_require_config_h): New variable.
20852         (sc_require_config_h, sc_require_config_h_first): Use it.
20853
20854 2009-04-27  Simon Josefsson  <simon@josefsson.org>
20855
20856         * top/maint.mk (sc_avoid_if_before_free): Except
20857         useless-if-before-free script.
20858
20859 2009-04-27  Eric Blake  <ebb9@byu.net>
20860
20861         maintainer-makefile: depend on all required helper scripts
20862         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
20863         useless-if-before-free.
20864         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
20865         version, rather than assuming gnulib checkout is available.
20866         Reported by Simen Josefsson.
20867
20868 2009-04-26  Bruno Haible  <bruno@clisp.org>
20869
20870         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
20871         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
20872         "../" or "..".
20873
20874 2009-04-26  Bruno Haible  <bruno@clisp.org>
20875
20876         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
20877         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
20878         AC_LIB_HAVE_LINKFLAGS.
20879
20880 2009-04-26  Bruno Haible  <bruno@clisp.org>
20881
20882         Simplify calling convention of u*_conv_from_encoding.
20883         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
20884         u32_conv_from_encoding): Expect a resultbuf argument and return the
20885         result directly as a pointer.
20886         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
20887         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
20888         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
20889         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
20890         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
20891         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20892         Update.
20893         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
20894         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
20895         * lib/vasnprintf.c (VASNPRINTF): Update.
20896         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
20897         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
20898         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
20899         * NEWS: Mention the change.
20900
20901 2009-04-26  Bruno Haible  <bruno@clisp.org>
20902
20903         Simplify calling convention of u*_conv_to_encoding.
20904         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
20905         u32_conv_to_encoding): Expect a resultbuf argument and return the
20906         result directly as a pointer.
20907         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20908         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
20909         freeing scaled_offsets if mem_iconveha failed.
20910         * lib/unicase/u-casexfrm.h (FUNC): Update.
20911         * lib/uninorm/u-normxfrm.h (FUNC): Update.
20912         * lib/vasnprintf.c (VASNPRINTF): Update.
20913         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
20914         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
20915         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
20916         * NEWS: Mention the change.
20917
20918 2009-04-26  Bruno Haible  <bruno@clisp.org>
20919
20920         Avoid test failures on AIX and OSF/1.
20921         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
20922         malloc(0).
20923         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20924         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20925         Likewise.
20926         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
20927         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
20928         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
20929         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
20930         * doc/posix-functions/malloc.texi: Document the portability problem
20931         related to malloc(0).
20932
20933 2009-04-26  Bruno Haible  <bruno@clisp.org>
20934
20935         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
20936         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
20937         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
20938
20939 2009-04-25  Bruno Haible  <bruno@clisp.org>
20940
20941         Avoid link error when creating a namespace clean library.
20942         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
20943         as macro with arguments if already defined as an alias.
20944         * lib/signbitf.c (gl_signbitf): Don't undefine.
20945         * lib/signbitd.c (gl_signbitd): Don't undefine.
20946         * lib/signbitl.c (gl_signbitl): Don't undefine.
20947
20948 2009-04-25  Jim Meyering  <meyering@redhat.com>
20949
20950         vc-list-files: fix another quoting bug
20951         * build-aux/vc-list-files: Avoid sed backslash expansion
20952         of pathological directory names.
20953
20954 2009-04-25  Eric Blake  <ebb9@byu.net>
20955
20956         vc-list-files: fix shell quoting error
20957         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
20958         timestamp.
20959
20960 2009-04-25  Jim Meyering  <meyering@redhat.com>
20961
20962         vc-list-files: restore lost functionality with subdir argument
20963         * build-aux/vc-list-files: When given a non-"." sub-directory
20964         argument, substitute the $dir/ prefix back onto each resulting name.
20965         Otherwise, coreutils' root_tests check would fail.
20966
20967 2009-04-24  Eric Blake  <ebb9@byu.net>
20968
20969         vc-list-files: ignore git symlinks
20970         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
20971         than ls-files, to ignore git symlinks.
20972
20973         maint.mk: import improvements from m4
20974         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
20975         (move_if_change): Delete unused macro.
20976         (news-date-check, vc-diff-check): Support VPATH builds.
20977         (announcement): Likewise.  Split --bootstrap-tools list...
20978         (boostrap-tools): ...into separate list, which can be overridden
20979         in cfg.mk.
20980         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
20981         requiring dependency on useless-if-before-free module.
20982         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
20983         Support VPATH builds.
20984
20985 2009-04-24  Jim Meyering  <meyering@redhat.com>
20986
20987         maint.mk: remove coreutils-specific rules and variables
20988         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
20989         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
20990         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
20991
20992         maint.mk: remove obsolete rule
20993         * top/maint.mk (rel-check): Remove rule.
20994         (WGET, WGETFLAGS): Remove now-unused variables.
20995
20996 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20997
20998         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
20999         consistency.
21000
21001         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
21002         '$(PATH_SEPARATOR)' instead of ':'.
21003
21004 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21005
21006         * lib/getopt1.c (main): Use 'const' for static array.
21007
21008 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21009
21010         * top/maint.mk: Sync with coreutils.
21011         * NEWS: Explain incompatibilities.
21012
21013 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21014             Bruno Haible  <bruno@clisp.org>
21015
21016         Fix cross-compilation results.
21017         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
21018         statement, as third argument of AC_TRY_RUN.
21019         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21020         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21021         Likewise.
21022         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21023         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21024         Likewise.
21025         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21026         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
21027         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
21028
21029 2009-04-20  Bruno Haible  <bruno@clisp.org>
21030
21031         Avoid test failure on mingw.
21032         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
21033
21034 2009-04-20  Bruno Haible  <bruno@clisp.org>
21035
21036         Avoid compilation error on mingw.
21037         * modules/localename-tests (Depends-on): Add locale.
21038
21039 2009-04-19  Bruno Haible  <bruno@clisp.org>
21040
21041         Support for building a shared library on Windows platforms.
21042         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
21043         (main): Test the presence of UNINORM_NFC here.
21044         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
21045         (main): Test the presence of UNINORM_NFD here.
21046         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
21047         (main): Test the presence of UNINORM_NFKC here.
21048         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
21049         (main): Test the presence of UNINORM_NFKD here.
21050
21051 2009-04-19  Bruno Haible  <bruno@clisp.org>
21052
21053         Avoid a compiler warning.
21054         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
21055         Change type of variable 'sequence'.
21056
21057 2009-04-19  Bruno Haible  <bruno@clisp.org>
21058
21059         * modules/configmake (Makefile.am): When the contents of configmake.h
21060         does not change, arrange to preserve its modification time.
21061
21062 2009-04-17  Simon Josefsson  <simon@josefsson.org>
21063
21064         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
21065         gettext domain.
21066
21067 2009-04-16  Jim Meyering  <meyering@redhat.com>
21068
21069         useless-if-before-free: improve conversion code
21070         * build-aux/useless-if-before-free: Adjust code-in-comment to match
21071         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
21072
21073 2009-04-14  Bruno Haible  <bruno@clisp.org>
21074
21075         * modules/fcntl (Depends-on): Add extensions.
21076         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
21077
21078 2009-04-12  Ben Pfaff  <blp@gnu.org>
21079
21080         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
21081         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
21082
21083 2009-03-20  Ben Pfaff  <blp@gnu.org>
21084
21085         Make rename replace existing destinations on Windows.
21086         * m4/rename.m4: Add test for Mingw.
21087         * lib/rename.c: Add rename replacement that uses MoveFileEx with
21088         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
21089         * doc/posix-functions/rename.texi: Document.
21090
21091 2009-04-10  Bruno Haible  <bruno@clisp.org>
21092
21093         New include file "iconveh.h".
21094         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
21095         * lib/striconveh.h: Include it.
21096         (enum iconv_ilseq_handler): Remove definition.
21097         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
21098         striconveh.h.
21099         * lib/striconveha.c: Include striconveh.h.
21100         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
21101         * modules/striconveh (Files): Add lib/iconveh.h.
21102         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
21103         lib/striconveh.h.
21104
21105 2009-04-10  Bruno Haible  <bruno@clisp.org>
21106
21107         * lib/uniconv.h: Update comment.
21108
21109 2009-04-10  Bruno Haible  <bruno@clisp.org>
21110
21111         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
21112         always.
21113         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
21114         * lib/unistr/u16-mbtouc-aux.c: Likewise.
21115         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
21116         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
21117         "unistring-notinline.h", so that the function gets defined always.
21118         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
21119         * lib/unistr/u8-uctomb.c: Likewise.
21120         * lib/unistr/u16-mbtouc.c: Likewise.
21121         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
21122         * lib/unistr/u16-uctomb.c: Likewise.
21123         * lib/unistr/u32-mbtouc.c: Likewise.
21124         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
21125         * lib/unistr/u32-uctomb.c: Likewise.
21126
21127 2009-04-10  Bruno Haible  <bruno@clisp.org>
21128
21129         Mark 'utime' obsolete.
21130         * modules/utime (Status, Notice): New sections.
21131         Suggested by Jim Meyering.
21132
21133         Fix cross-compile guess for utime test.
21134         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
21135         autoconf.
21136         * doc/posix-functions/utime.texi: Give more precisions.
21137         Reported by Jan <ipif@ymail.com>.
21138
21139 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
21140
21141         filevercmp: correct today's change
21142         * lib/filevercmp.c: Also handle coreutils' test inputs.
21143         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
21144
21145         Fix regression in 'filevercmp' module. Thanks Sven Joachim
21146         for reporting it.
21147         * lib/filevercmp.c: Special handle for "", "." and "..".
21148         * tests/test-filevercmp.c: Enlarge the set suite.
21149
21150 2009-04-07  Jim Meyering  <meyering@redhat.com>
21151
21152         useless-if-before-free: show how to remove braced useless free, too
21153         * build-aux/useless-if-before-free: still only in a comment, though.
21154
21155 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
21156
21157         maint.mk: import changes to syntax-check macros from coreutils
21158         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
21159         Use them in the relevant macros.
21160
21161 2009-04-06  Bruno Haible  <bruno@clisp.org>
21162
21163         Fix unportable use of bit-fields.
21164         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
21165         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
21166         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
21167
21168 2009-04-06  Bruno Haible  <bruno@clisp.org>
21169
21170         Avoid test failures on AIX and OSF/1.
21171         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
21172         that malloc(0) = NULL.
21173         * tests/unicase/test-u8-tolower.c (check): Likewise.
21174         * tests/unicase/test-u8-totitle.c (check): Likewise.
21175         * tests/unicase/test-u8-toupper.c (check): Likewise.
21176         * tests/unicase/test-u16-casefold.c (check): Likewise.
21177         * tests/unicase/test-u16-tolower.c (check): Likewise.
21178         * tests/unicase/test-u16-totitle.c (check): Likewise.
21179         * tests/unicase/test-u16-toupper.c (check): Likewise.
21180         * tests/unicase/test-u32-casefold.c (check): Likewise.
21181         * tests/unicase/test-u32-tolower.c (check): Likewise.
21182         * tests/unicase/test-u32-totitle.c (check): Likewise.
21183         * tests/unicase/test-u32-toupper.c (check): Likewise.
21184         * tests/uninorm/test-u8-nfc.c (check): Likewise.
21185         * tests/uninorm/test-u8-nfd.c (check): Likewise.
21186         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
21187         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
21188         * tests/uninorm/test-u16-nfc.c (check): Likewise.
21189         * tests/uninorm/test-u16-nfd.c (check): Likewise.
21190         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
21191         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
21192         * tests/uninorm/test-u32-nfc.c (check): Likewise.
21193         * tests/uninorm/test-u32-nfd.c (check): Likewise.
21194         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
21195         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
21196
21197 2009-04-05  Bruno Haible  <bruno@clisp.org>
21198
21199         Work around an autoconf limitation.
21200         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
21201         comment line if it would be longer than 3 KB.
21202
21203 2009-04-05  Bruno Haible  <bruno@clisp.org>
21204
21205         Avoid test failure with libiconv-1.13.
21206         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
21207         of the expected test results.
21208
21209 2009-04-05  Bruno Haible  <bruno@clisp.org>
21210
21211         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
21212         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
21213         that it should be installed.
21214
21215 2009-04-05  Bruno Haible  <bruno@clisp.org>
21216
21217         * gnulib-tool: New option --copy-file.
21218         (func_usage): Document it.
21219         (func_dest_tmpfilename): Moved out of func_import.
21220         (func_add_file, func_update_file): New functions, extracted from
21221         func_import.
21222         (func_import): Update.
21223
21224 2009-04-05  Karl Berry  <karl@gnu.org>
21225
21226         * README: prominently mention gnulib-tool.
21227         Rearrange sections so getting the code is near the top.
21228
21229 2009-04-05  Bruno Haible  <bruno@clisp.org>
21230
21231         * lib/unicase.h: Mention u*_cmp2.
21232         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
21233         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
21234         * lib/unicase/ulc-casecmp.c: Likewise.
21235         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
21236         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
21237         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
21238         unistr/u8-cmp.
21239         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
21240         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
21241         unistr/u16-cmp.
21242         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
21243         unistr/u32-cmp.
21244
21245         * lib/uninorm.h: Mention u*_cmp2.
21246         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
21247         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
21248         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
21249         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
21250         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
21251         unistr/u8-cmp.
21252         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
21253         unistr/u16-cmp.
21254         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
21255         unistr/u32-cmp.
21256
21257         New module 'unistr/u32-cmp2'.
21258         * lib/unistr/u32-cmp2.c: New file.
21259         * modules/unistr/u32-cmp2: New file.
21260
21261         New module 'unistr/u16-cmp2'.
21262         * lib/unistr/u16-cmp2.c: New file.
21263         * modules/unistr/u16-cmp2: New file.
21264
21265         New module 'unistr/u8-cmp2'.
21266         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
21267         * lib/unistr/u8-cmp2.c: New file.
21268         * lib/unistr/u-cmp2.h: New file.
21269         * modules/unistr/u8-cmp2: New file.
21270
21271 2009-04-05  Bruno Haible  <bruno@clisp.org>
21272
21273         * lib/unictype.h (uc_property_is_valid): New macro.
21274         * tests/unictype/test-pr_byname.c (main): Use it.
21275
21276         * lib/unistr.h: Doc fixes.
21277         * lib/uniconv.h: Doc fixes.
21278         * lib/unictype.h: Doc fixes.
21279
21280 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
21281
21282         Port coreutils 7.2 to Solaris 8.
21283
21284         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
21285         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
21286         for Solaris 8.  This is a bit of a hack, as it means it's the
21287         caller's responsibility to add -lnsl if needed, but most likely it
21288         won't be needed since only getaddrinfo uses this and getaddrinfo
21289         isn't needed on Solaris 8.
21290
21291         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
21292         problem to Solaris 8 encountered with coreutils 7.2, which
21293         resulted in a message "fnmatch.c:292: warning: passing argument 4
21294         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
21295         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
21296
21297 2009-04-03  Simon Josefsson  <simon@josefsson.org>
21298
21299         * m4/ld-version-script.m4: Add FIXME comment.
21300
21301 2009-04-02  Simon Josefsson  <simon@josefsson.org>
21302
21303         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
21304         SOVERSION variable.
21305
21306 2009-04-02  Bruno Haible  <bruno@clisp.org>
21307
21308         * Makefile (info, html, dvi, pdf): Combine the rules.
21309         Suggested by Jim Meyering.
21310
21311 2009-04-01  Bruno Haible  <bruno@clisp.org>
21312
21313         * Makefile (info, html, dvi, pdf): New targets.
21314         Reported by Reuben Thomas <rrt@sc3d.org>.
21315
21316 2009-04-01  Bruno Haible  <bruno@clisp.org>
21317
21318         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
21319         can be put into PATH.
21320         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
21321
21322 2009-04-01  Bruno Haible  <bruno@clisp.org>
21323
21324         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
21325
21326 2009-04-01  Bruno Haible  <bruno@clisp.org>
21327
21328         Rename module 'visibility'.
21329         * modules/lib-symbol-visibility: Renamed from modules/visibility.
21330         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
21331         * doc/gnulib.texi: Update.
21332         * MODULES.html.sh (Misc): Update.
21333         * NEWS: Mention the change.
21334
21335 2009-04-01  Simon Josefsson  <simon@josefsson.org>
21336
21337         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
21338         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
21339         Eric Blake <ebb9@byu.net> for review.
21340         * MODULES.html.sh: Add lib-msvc-compat.
21341         * doc/gnulib.texi: Link to new section.
21342         * m4/ld-output-def.m4: New file.
21343         * doc/ld-output-def.texi: New file.
21344
21345 2009-04-01  Simon Josefsson  <simon@josefsson.org>
21346
21347         Rename ld-version-script to lib-symbol-versions.  Suggested by
21348         Bruno Haible <bruno@clisp.org>.
21349         * modules/ld-version-script: Renamed to lib-symbol-versions.
21350         * doc/ld-version-script.texi: Fix module name.
21351         * MODULES.html.sh: Add lib-symbol-versions.
21352
21353 2009-03-31  Simon Josefsson  <simon@josefsson.org>
21354
21355         * modules/u64-tests: New file.
21356         * tests/test-u64.c: New file.
21357
21358 2009-03-04  Simon Josefsson  <simon@josefsson.org>
21359
21360         * MODULES.html.sh: Mention u64.
21361         * modules/u64: New module.
21362         * modules/crypto/sha512: Depend on u64 module instead of providing
21363         u64.h.
21364
21365 2009-03-27  Eric Blake  <ebb9@byu.net>
21366
21367         test-strerror: make debugging EAI_SYSTEM easier
21368         * modules/getaddrinfo-tests (Depends-on): Add strerror.
21369         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
21370         failure was EAI_SYSTEM.
21371
21372 2009-03-25  Bruno Haible  <bruno@clisp.org>
21373
21374         Fix a problem with --enable-relocatable on Solaris 7.
21375         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
21376         since 2008-02-24.
21377
21378 2009-03-25  Eric Blake  <ebb9@byu.net>
21379
21380         test-sockets: avoid gcc warning
21381         * tests/test-sockets.c (main): Silence compiler warning.
21382
21383 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
21384
21385         New modules nproc, pthread, contributed by Glen Lenker.
21386
21387         * MODULES.html.sh: Add pthread, nproc.
21388         * lib/nproc.c: New file.
21389         * lib/nproc.h: New file.
21390         * lib/pthread.in.h: New file.
21391         * m4/pthread.m4: New file.
21392         * modules/nproc: New file.
21393         * modules/pthread: New file.
21394
21395 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21396
21397         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
21398         New variable.
21399
21400 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
21401
21402         filevercmp: handle simple~ and numbered.~3~ backup suffixes
21403         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
21404         * tests/test-filevercmp.c: Add tests for backup suffixes.
21405
21406 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21407
21408         * modules/stdlib (Depends-on): Add stdint, needed when defining
21409         struct random_data on, for example, HP-UX 10.20.  Reported by
21410         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21411
21412 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21413
21414         * lib/readline.c (readline): Call fflush on stdout after printing
21415         prompt.
21416
21417 2009-03-20  Bruno Haible  <bruno@clisp.org>
21418
21419         Remove dependency from 'close' module to -lws2_32 on native Windows.
21420         * lib/close-hook.h: New file.
21421         * lib/close-hook.c: New file.
21422         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
21423         w32sock.h.
21424         (_gl_close_fd_maybe_socket): Remove function.
21425         (rpl_close): Invoke execute_all_close_hooks instead of
21426         _gl_close_fd_maybe_socket.
21427         * lib/sockets.c: Include close-hook.h, w32sock.h.
21428         (close_fd_maybe_socket): New function, essentially from lib/close.c.
21429         (close_sockets_hook): New variable.
21430         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
21431         (gl_sockets_cleanup): Unregister it.
21432         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
21433         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
21434         * modules/close-hook: New file.
21435         * modules/close (Files): Remove lib/w32sock.h.
21436         (Depends-on): Add close-hook.
21437         (Link): Remove section.
21438         * modules/sockets (Files): Add lib/w32sock.h.
21439         (Depends-on): Add close-hook.
21440         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
21441         invocation.
21442         * NEWS: Mention that LIB_CLOSE is gone.
21443
21444 2009-03-23  Eric Blake  <ebb9@byu.net>
21445
21446         signal-tests: test previous patch
21447         * tests/test-signal.c: New file.
21448         * modules/signal-tests: Likewise.
21449
21450         signal.h: always support 'volatile sig_atomic_t'
21451         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
21452         (gl_SIGNAL_H_DEFAULTS): Add a default.
21453         * modules/signal (Makefile.am): Substitute if needed.
21454         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
21455         users can blindly add volatile.
21456         * doc/posix-headers/signal.texi (signal.h): Document it.
21457         Reported by Matthew Woehlke.
21458
21459 2009-03-23  Jim Meyering  <meyering@redhat.com>
21460
21461         pathmax: PATH_MAX: use pathconf only when available
21462         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
21463         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
21464         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
21465         This avoids a link failure in a PSP cross-compilation environment
21466         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
21467
21468         * lib/vasnprintf.c (divide): Fix typo in comment.
21469
21470 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21471
21472         * gnulib-tool (func_filter_filelist): Fix comment.
21473
21474 2009-03-20  Bruno Haible  <bruno@clisp.org>
21475
21476         Make sockets.h self-contained.
21477         * lib/sockets.c: Include sockets.h first.
21478         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
21479
21480 2009-03-19  Eric Blake  <ebb9@byu.net>
21481
21482         doc: mention more functions added in cygwin 1.7.0
21483         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
21484         addition.
21485         * doc/posix-functions/log2f.texi: Likewise.
21486
21487 2009-03-19  Jim Meyering  <meyering@redhat.com>
21488
21489         fsusage: avoid syntax error due to statement-before-declaration
21490         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
21491         after all declarations.  Reported by Matthew Woehlke in
21492         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
21493
21494 2009-03-18  Eric Blake  <ebb9@byu.net>
21495
21496         build-aux/compile: sync from automake
21497         * build-aux/compile: New file, from automake.
21498         * config/srclist.txt: Mention build-aux/compile.
21499
21500 2009-03-17  Bruno Haible  <bruno@clisp.org>
21501
21502         * lib/git-merge-changelog.c: Fix typo in comment.
21503         Reported by Reuben Thomas <rrt@sc3d.org>.
21504
21505 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
21506
21507         * m4/regex.m4: update and improve help for
21508         --without-included-regex.
21509
21510 2009-03-17  Simon Josefsson  <simon@josefsson.org>
21511
21512         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
21513         failure on missing include files.
21514
21515 2009-03-17  Eric Blake  <ebb9@byu.net>
21516
21517         doc: mention more functions added in cygwin 1.7.0
21518         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
21519         addition.
21520         * doc/posix-functions/fwscanf.texi: Likewise.
21521         * doc/posix-functions/swprintf.texi: Likewise.
21522         * doc/posix-functions/swscanf.texi: Likewise.
21523         * doc/posix-functions/vfwprintf.texi: Likewise.
21524         * doc/posix-functions/vfwscanf.texi: Likewise.
21525         * doc/posix-functions/vswprintf.texi: Likewise.
21526         * doc/posix-functions/vswscanf.texi: Likewise.
21527         * doc/posix-functions/vwprintf.texi: Likewise.
21528         * doc/posix-functions/vwscanf.texi: Likewise.
21529         * doc/posix-functions/wcscasecmp.texi: Likewise.
21530         * doc/posix-functions/wcsdup.texi: Likewise.
21531         * doc/posix-functions/wcsftime.texi: Likewise.
21532         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21533         * doc/posix-functions/wprintf.texi: Likewise.
21534         * doc/posix-functions/wscanf.texi: Likewise.
21535         * doc/glibc-functions/gethostbyname2.texi: Likewise.
21536
21537 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21538
21539         maint.mk: really add $(AM_MAKEFLAGS)
21540         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
21541         was inadvertently omitted in the last commit.
21542         Spotted by Bruno Haible.
21543
21544         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
21545         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
21546         $(AM_MAKEFLAGS)' rather than plain `make'.
21547
21548         gnulib-tool: execute $MAKE not make
21549         * gnulib-tool: Default $MAKE to 'make'.
21550         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
21551         than make.  Initialize $MAKE in the do-autobuild script.
21552
21553         gnulib-tool: use $MAKE not make in generated files
21554         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
21555         make, in generated files.  Initialize $MAKE in the do-autobuild
21556         script.
21557
21558         * top/GNUmakefile (_have-git-version-gen): Fix typo.
21559
21560         GNUmakefile: disable parallelism only for multiple, recursive targets
21561         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
21562         additions in the Makefile.
21563         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
21564         by Automake.
21565         (.NOTPARALLEL): Only disable parallel builds if multiple targets
21566         are listed on the command line and at least one of them is
21567         listed in $(ALL_RECURSIVE_TARGETS).
21568
21569 2009-03-14  Bruno Haible  <bruno@clisp.org>
21570
21571         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
21572         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
21573         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
21574         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
21575         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
21576         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
21577         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
21578         unistr/u8-uctomb.
21579         * modules/unistr/u8-strchr (Depends-on): Likewise.
21580         * modules/unistr/u8-strrchr (Depends-on): Likewise.
21581         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
21582         unistr/u16-uctomb.
21583         * modules/unistr/u16-strchr (Depends-on): Likewise.
21584         * modules/unistr/u16-strrchr (Depends-on): Likewise.
21585
21586 2009-03-12  Bruno Haible  <bruno@clisp.org>
21587
21588         Work around select() bug on Interix 3.5.
21589         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
21590         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
21591         * m4/select.m4: New file.
21592         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
21593         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
21594         * modules/select (Files): Add m4/select.m4.
21595         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
21596         * modules/nanosleep (Depends-on): Add select.
21597         * modules/poll (Depends-on): Likewise.
21598         * doc/posix-functions/select.texi: Mention the Interix bug.
21599         Reported by Markus Duft <mduft@gentoo.org>.
21600
21601         * lib/select.c: Renamed from lib/winsock-select.c.
21602         * modules/select (Files): Add lib/select.c, remove
21603         lib/winsock-select.c.
21604         (configure.ac): Update.
21605
21606 2009-03-12  Jim Meyering  <meyering@redhat.com>
21607
21608         avoid gcc warnings about unused macro definitions
21609         * lib/readtokens.c (STREQ): Remove unused definition.
21610         * lib/xmalloc.c (SIZE_MAX): Likewise.
21611         * lib/openat-die.c (N_): Likewise.
21612         * lib/mountlist.c (SIZE_MAX): Remove definition.
21613         Instead, include <stdint.h>.
21614         * lib/readutmp.c: Likewise.
21615         * modules/readutmp (Depends-on): Add stdint.
21616         * modules/mountlist (Depends-on): Add stdint.
21617         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
21618
21619 2009-03-10  Bruno Haible  <bruno@clisp.org>
21620
21621         Tests for module 'mbmemcasecoll'.
21622         * modules/mbmemcasecoll-tests: New file.
21623         * tests/test-mbmemcasecoll1.sh: New file.
21624         * tests/test-mbmemcasecoll2.sh: New file.
21625         * tests/test-mbmemcasecoll3.sh: New file.
21626         * tests/test-mbmemcasecoll.c: New file.
21627
21628         New module 'mbmemcasecoll'.
21629         * lib/mbmemcasecoll.h: New file.
21630         * lib/mbmemcasecoll.c: New file.
21631         * modules/mbmemcasecoll: New file.
21632
21633         * tests/test-mbmemcasecmp.h: New file, extracted from
21634         tests/test-mbmemcasecmp.c.
21635         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
21636         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
21637         (main): Update.
21638         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
21639
21640 2009-03-09  Bruno Haible  <bruno@clisp.org>
21641
21642         Tests for module 'mbmemcasecmp'.
21643         * modules/mbmemcasecmp-tests: New file.
21644         * tests/test-mbmemcasecmp1.sh: New file.
21645         * tests/test-mbmemcasecmp2.sh: New file.
21646         * tests/test-mbmemcasecmp3.sh: New file.
21647         * tests/test-mbmemcasecmp.c: New file.
21648
21649         New module 'mbmemcasecmp'.
21650         * lib/mbmemcasecmp.h: New file.
21651         * lib/mbmemcasecmp.c: New file.
21652         * modules/mbmemcasecmp: New file.
21653
21654 2009-03-09  Bruno Haible  <bruno@clisp.org>
21655
21656         Tests for module 'unicase/ulc-casecoll'.
21657         * modules/unicase/ulc-casecoll-tests: New file.
21658         * tests/unicase/test-ulc-casecoll1.sh: New file.
21659         * tests/unicase/test-ulc-casecoll2.sh: New file.
21660         * tests/unicase/test-ulc-casecoll.c: New file.
21661
21662         New module 'unicase/ulc-casecoll'.
21663         * lib/unicase.h (ulc_casecoll): New declaration.
21664         * lib/unicase/ulc-casecoll.c: New file.
21665         * modules/unicase/ulc-casecoll: New file.
21666
21667         New module 'unicase/ulc-casexfrm'.
21668         * lib/unicase.h (ulc_casexfrm): New declaration.
21669         * lib/unicase/ulc-casexfrm.c: New file.
21670         * modules/unicase/ulc-casexfrm: New file.
21671
21672 2009-03-09  Bruno Haible  <bruno@clisp.org>
21673
21674         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
21675         invocations.
21676
21677         * m4/mbscasecmp.m4: Remove file.
21678         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
21679         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
21680
21681         * m4/mbscasestr.m4: Remove file.
21682         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
21683         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
21684
21685         * m4/mbschr.m4: Remove file.
21686         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
21687         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
21688
21689         * m4/mbscspn.m4: Remove file.
21690         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
21691         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
21692
21693         * m4/mbslen.m4: Remove file.
21694         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
21695         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
21696
21697         * m4/mbsncasecmp.m4: Remove file.
21698         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
21699         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
21700
21701         * m4/mbsnlen.m4: Remove file.
21702         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
21703         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
21704
21705         * m4/mbspbrk.m4: Remove file.
21706         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
21707         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
21708
21709         * m4/mbspcasecmp.m4: Remove file.
21710         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
21711         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
21712
21713         * m4/mbsrchr.m4: Remove file.
21714         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
21715         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
21716
21717         * m4/mbssep.m4: Remove file.
21718         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
21719         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
21720
21721         * m4/mbsspn.m4: Remove file.
21722         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
21723         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
21724
21725         * m4/mbsstr.m4: Remove file.
21726         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
21727         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
21728
21729         * m4/mbstok_r.m4: Remove file.
21730         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
21731         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
21732
21733         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
21734
21735         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
21736         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
21737
21738         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
21739
21740 2009-03-08  Bruno Haible  <bruno@clisp.org>
21741
21742         Tests for module 'unicase/ulc-casecmp'.
21743         * modules/unicase/ulc-casecmp-tests: New file.
21744         * tests/unicase/test-ulc-casecmp1.sh: New file.
21745         * tests/unicase/test-ulc-casecmp2.sh: New file.
21746         * tests/unicase/test-ulc-casecmp.c: New file.
21747
21748         New module 'unicase/ulc-casecmp'.
21749         * lib/unicase.h (ulc_casecmp): New declaration.
21750         * lib/unicase/ulc-casecmp.c: New file.
21751         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
21752         'const SRC_UNIT *'.
21753         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
21754         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
21755         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
21756         * modules/unicase/ulc-casecmp: New file.
21757
21758         Tests for module 'unicase/u32-is-cased'.
21759         * modules/unicase/u32-is-cased-tests: New file.
21760         * tests/unicase/test-u32-is-cased.c: New file.
21761
21762         Tests for module 'unicase/u16-is-cased'.
21763         * modules/unicase/u16-is-cased-tests: New file.
21764         * tests/unicase/test-u16-is-cased.c: New file.
21765
21766         Tests for module 'unicase/u8-is-cased'.
21767         * modules/unicase/u8-is-cased-tests: New file.
21768         * tests/unicase/test-u8-is-cased.c: New file.
21769         * tests/unicase/test-is-cased.h: New file.
21770
21771         New module 'unicase/u32-is-cased'.
21772         * lib/unicase/u32-is-cased.c: New file.
21773         * modules/unicase/u32-is-cased: New file.
21774
21775         New module 'unicase/u16-is-cased'.
21776         * lib/unicase/u16-is-cased.c: New file.
21777         * modules/unicase/u16-is-cased: New file.
21778
21779         New module 'unicase/u8-is-cased'.
21780         * lib/unicase/u8-is-cased.c: New file.
21781         * lib/unicase/u-is-cased.h: New file.
21782         * modules/unicase/u8-is-cased: New file.
21783
21784         Tests for module 'unicase/u32-is-casefolded'.
21785         * modules/unicase/u32-is-casefolded-tests: New file.
21786         * tests/unicase/test-u32-is-casefolded.c: New file.
21787
21788         Tests for module 'unicase/u16-is-casefolded'.
21789         * modules/unicase/u16-is-casefolded-tests: New file.
21790         * tests/unicase/test-u16-is-casefolded.c: New file.
21791
21792         Tests for module 'unicase/u8-is-casefolded'.
21793         * modules/unicase/u8-is-casefolded-tests: New file.
21794         * tests/unicase/test-u8-is-casefolded.c: New file.
21795         * tests/unicase/test-is-casefolded.h: New file.
21796
21797         New module 'unicase/u32-is-casefolded'.
21798         * lib/unicase/u32-is-casefolded.c: New file.
21799         * modules/unicase/u32-is-casefolded: New file.
21800
21801         New module 'unicase/u16-is-casefolded'.
21802         * lib/unicase/u16-is-casefolded.c: New file.
21803         * modules/unicase/u16-is-casefolded: New file.
21804
21805         New module 'unicase/u8-is-casefolded'.
21806         * lib/unicase/u8-is-casefolded.c: New file.
21807         * modules/unicase/u8-is-casefolded: New file.
21808
21809         Tests for module 'unicase/u32-is-titlecase'.
21810         * modules/unicase/u32-is-titlecase-tests: New file.
21811         * tests/unicase/test-u32-is-titlecase.c: New file.
21812
21813         Tests for module 'unicase/u16-is-titlecase'.
21814         * modules/unicase/u16-is-titlecase-tests: New file.
21815         * tests/unicase/test-u16-is-titlecase.c: New file.
21816
21817         Tests for module 'unicase/u8-is-titlecase'.
21818         * modules/unicase/u8-is-titlecase-tests: New file.
21819         * tests/unicase/test-u8-is-titlecase.c: New file.
21820         * tests/unicase/test-is-titlecase.h: New file.
21821
21822         New module 'unicase/u32-is-titlecase'.
21823         * lib/unicase/u32-is-titlecase.c: New file.
21824         * modules/unicase/u32-is-titlecase: New file.
21825
21826         New module 'unicase/u16-is-titlecase'.
21827         * lib/unicase/u16-is-titlecase.c: New file.
21828         * modules/unicase/u16-is-titlecase: New file.
21829
21830         New module 'unicase/u8-is-titlecase'.
21831         * lib/unicase/u8-is-titlecase.c: New file.
21832         * modules/unicase/u8-is-titlecase: New file.
21833
21834         Tests for module 'unicase/u32-is-lowercase'.
21835         * modules/unicase/u32-is-lowercase-tests: New file.
21836         * tests/unicase/test-u32-is-lowercase.c: New file.
21837
21838         Tests for module 'unicase/u16-is-lowercase'.
21839         * modules/unicase/u16-is-lowercase-tests: New file.
21840         * tests/unicase/test-u16-is-lowercase.c: New file.
21841
21842         Tests for module 'unicase/u8-is-lowercase'.
21843         * modules/unicase/u8-is-lowercase-tests: New file.
21844         * tests/unicase/test-u8-is-lowercase.c: New file.
21845         * tests/unicase/test-is-lowercase.h: New file.
21846
21847         New module 'unicase/u32-is-lowercase'.
21848         * lib/unicase/u32-is-lowercase.c: New file.
21849         * modules/unicase/u32-is-lowercase: New file.
21850
21851         New module 'unicase/u16-is-lowercase'.
21852         * lib/unicase/u16-is-lowercase.c: New file.
21853         * modules/unicase/u16-is-lowercase: New file.
21854
21855         New module 'unicase/u8-is-lowercase'.
21856         * lib/unicase/u8-is-lowercase.c: New file.
21857         * modules/unicase/u8-is-lowercase: New file.
21858
21859         Tests for module 'unicase/u32-is-uppercase'.
21860         * modules/unicase/u32-is-uppercase-tests: New file.
21861         * tests/unicase/test-u32-is-uppercase.c: New file.
21862
21863         Tests for module 'unicase/u16-is-uppercase'.
21864         * modules/unicase/u16-is-uppercase-tests: New file.
21865         * tests/unicase/test-u16-is-uppercase.c: New file.
21866
21867         Tests for module 'unicase/u8-is-uppercase'.
21868         * modules/unicase/u8-is-uppercase-tests: New file.
21869         * tests/unicase/test-u8-is-uppercase.c: New file.
21870         * tests/unicase/test-is-uppercase.h: New file.
21871
21872         New module 'unicase/u32-is-uppercase'.
21873         * lib/unicase/u32-is-uppercase.c: New file.
21874         * modules/unicase/u32-is-uppercase: New file.
21875
21876         New module 'unicase/u16-is-uppercase'.
21877         * lib/unicase/u16-is-uppercase.c: New file.
21878         * modules/unicase/u16-is-uppercase: New file.
21879
21880         New module 'unicase/u8-is-uppercase'.
21881         * lib/unicase/u8-is-uppercase.c: New file.
21882         * modules/unicase/u8-is-uppercase: New file.
21883
21884         New module 'unicase/u32-is-invariant'.
21885         * lib/unicase/u32-is-invariant.c: New file.
21886         * modules/unicase/u32-is-invariant: New file.
21887
21888         New module 'unicase/u16-is-invariant'.
21889         * lib/unicase/u16-is-invariant.c: New file.
21890         * modules/unicase/u16-is-invariant: New file.
21891
21892         New module 'unicase/u8-is-invariant'.
21893         * lib/unicase/u8-is-invariant.c: New file.
21894         * lib/unicase/invariant.h: New file.
21895         * lib/unicase/u-is-invariant.h: New file.
21896         * modules/unicase/u8-is-invariant: New file.
21897
21898         Tests for module 'unicase/u32-casecoll'.
21899         * modules/unicase/u32-casecoll-tests: New file.
21900         * tests/unicase/test-u32-casecoll.c: New file.
21901
21902         Tests for module 'unicase/u16-casecoll'.
21903         * modules/unicase/u16-casecoll-tests: New file.
21904         * tests/unicase/test-u16-casecoll.c: New file.
21905
21906         Tests for module 'unicase/u8-casecoll'.
21907         * modules/unicase/u8-casecoll-tests: New file.
21908         * tests/unicase/test-u8-casecoll.c: New file.
21909
21910         New module 'unicase/u32-casecoll'.
21911         * lib/unicase/u32-casecoll.c: New file.
21912         * modules/unicase/u32-casecoll: New file.
21913
21914         New module 'unicase/u16-casecoll'.
21915         * lib/unicase/u16-casecoll.c: New file.
21916         * modules/unicase/u16-casecoll: New file.
21917
21918         New module 'unicase/u8-casecoll'.
21919         * lib/unicase/u8-casecoll.c: New file.
21920         * lib/unicase/u-casecoll.h: New file.
21921         * modules/unicase/u8-casecoll: New file.
21922
21923         New module 'unicase/u32-casexfrm'.
21924         * lib/unicase/u32-casexfrm.c: New file.
21925         * modules/unicase/u32-casexfrm: New file.
21926
21927         New module 'unicase/u16-casexfrm'.
21928         * lib/unicase/u16-casexfrm.c: New file.
21929         * modules/unicase/u16-casexfrm: New file.
21930
21931         New module 'unicase/u8-casexfrm'.
21932         * lib/unicase/u8-casexfrm.c: New file.
21933         * lib/unicase/u-casexfrm.h: New file.
21934         * modules/unicase/u8-casexfrm: New file.
21935
21936         Tests for module 'unicase/u32-casecmp'.
21937         * modules/unicase/u32-casecmp-tests: New file.
21938         * tests/unicase/test-u32-casecmp.c: New file.
21939
21940         Tests for module 'unicase/u16-casecmp'.
21941         * modules/unicase/u16-casecmp-tests: New file.
21942         * tests/unicase/test-u16-casecmp.c: New file.
21943
21944         Tests for module 'unicase/u8-casecmp'.
21945         * modules/unicase/u8-casecmp-tests: New file.
21946         * tests/unicase/test-u8-casecmp.c: New file.
21947         * tests/unicase/test-casecmp.h: New file.
21948
21949         New module 'unicase/u32-casecmp'.
21950         * lib/unicase/u32-casecmp.c: New file.
21951         * modules/unicase/u32-casecmp: New file.
21952
21953         New module 'unicase/u16-casecmp'.
21954         * lib/unicase/u16-casecmp.c: New file.
21955         * modules/unicase/u16-casecmp: New file.
21956
21957         New module 'unicase/u8-casecmp'.
21958         * lib/unicase/u8-casecmp.c: New file.
21959         * lib/unicase/u-casecmp.h: New file.
21960         * modules/unicase/u8-casecmp: New file.
21961
21962         Tests for module 'unicase/u32-casefold'.
21963         * modules/unicase/u32-casefold-tests: New file.
21964         * tests/unicase/test-u32-casefold.c: New file.
21965
21966         Tests for module 'unicase/u16-casefold'.
21967         * modules/unicase/u16-casefold-tests: New file.
21968         * tests/unicase/test-u16-casefold.c: New file.
21969
21970         Tests for module 'unicase/u8-casefold'.
21971         * modules/unicase/u8-casefold-tests: New file.
21972         * tests/unicase/test-u8-casefold.c: New file.
21973
21974         New module 'unicase/u32-casefold'.
21975         * lib/unicase/u32-casefold.c: New file.
21976         * modules/unicase/u32-casefold: New file.
21977
21978         New module 'unicase/u16-casefold'.
21979         * lib/unicase/u16-casefold.c: New file.
21980         * modules/unicase/u16-casefold: New file.
21981
21982         New module 'unicase/u8-casefold'.
21983         * lib/unicase/u8-casefold.c: New file.
21984         * lib/unicase/u-casefold.h: New file.
21985         * modules/unicase/u8-casefold: New file.
21986
21987         New module 'unicase/tocasefold'.
21988         * lib/unicase/casefold.h: New file.
21989         * lib/unicase/tocasefold.c: New file.
21990         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
21991         * modules/unicase/tocasefold: New file.
21992
21993         Tests for module 'unicase/u32-totitle'.
21994         * modules/unicase/u32-totitle-tests: New file.
21995         * tests/unicase/test-u32-totitle.c: New file.
21996
21997         Tests for module 'unicase/u16-totitle'.
21998         * modules/unicase/u16-totitle-tests: New file.
21999         * tests/unicase/test-u16-totitle.c: New file.
22000
22001         Tests for module 'unicase/u8-totitle'.
22002         * modules/unicase/u8-totitle-tests: New file.
22003         * tests/unicase/test-u8-totitle.c: New file.
22004
22005         New module 'unicase/u32-totitle'.
22006         * lib/unicase/u32-totitle.c: New file.
22007         * modules/unicase/u32-totitle: New file.
22008
22009         New module 'unicase/u16-totitle'.
22010         * lib/unicase/u16-totitle.c: New file.
22011         * modules/unicase/u16-totitle: New file.
22012
22013         New module 'unicase/u8-totitle'.
22014         * lib/unicase/u8-totitle.c: New file.
22015         * lib/unicase/u-totitle.h: New file.
22016         * modules/unicase/u8-totitle: New file.
22017
22018         Tests for module 'unicase/u32-tolower'.
22019         * modules/unicase/u32-tolower-tests: New file.
22020         * tests/unicase/test-u32-tolower.c: New file.
22021
22022         Tests for module 'unicase/u16-tolower'.
22023         * modules/unicase/u16-tolower-tests: New file.
22024         * tests/unicase/test-u16-tolower.c: New file.
22025
22026         Tests for module 'unicase/u8-tolower'.
22027         * modules/unicase/u8-tolower-tests: New file.
22028         * tests/unicase/test-u8-tolower.c: New file.
22029
22030         New module 'unicase/u32-tolower'.
22031         * lib/unicase/u32-tolower.c: New file.
22032         * modules/unicase/u32-tolower: New file.
22033
22034         New module 'unicase/u16-tolower'.
22035         * lib/unicase/u16-tolower.c: New file.
22036         * modules/unicase/u16-tolower: New file.
22037
22038         New module 'unicase/u8-tolower'.
22039         * lib/unicase/u8-tolower.c: New file.
22040         * modules/unicase/u8-tolower: New file.
22041
22042         Tests for module 'unicase/u32-toupper'.
22043         * modules/unicase/u32-toupper-tests: New file.
22044         * tests/unicase/test-u32-toupper.c: New file.
22045
22046         Tests for module 'unicase/u16-toupper'.
22047         * modules/unicase/u16-toupper-tests: New file.
22048         * tests/unicase/test-u16-toupper.c: New file.
22049
22050         Tests for module 'unicase/u8-toupper'.
22051         * modules/unicase/u8-toupper-tests: New file.
22052         * tests/unicase/test-u8-toupper.c: New file.
22053
22054         New module 'unicase/u32-toupper'.
22055         * lib/unicase/u32-toupper.c: New file.
22056         * modules/unicase/u32-toupper: New file.
22057
22058         New module 'unicase/u16-toupper'.
22059         * lib/unicase/u16-toupper.c: New file.
22060         * modules/unicase/u16-toupper: New file.
22061
22062         New module 'unicase/u8-toupper'.
22063         * lib/unicase/u8-toupper.c: New file.
22064         * modules/unicase/u8-toupper: New file.
22065
22066         New module 'unicase/u32-casemap'.
22067         * lib/unicase/u32-casemap.c: New file.
22068         * modules/unicase/u32-casemap: New file.
22069
22070         New module 'unicase/u16-casemap'.
22071         * lib/unicase/u16-casemap.c: New file.
22072         * modules/unicase/u16-casemap: New file.
22073
22074         New module 'unicase/u8-casemap'.
22075         * lib/unicase/unicasemap.h: New file.
22076         * lib/unicase/u8-casemap.c: New file.
22077         * lib/unicase/u-casemap.h: New file.
22078         * modules/unicase/u8-casemap: New file.
22079
22080         New module 'unicase/special-casing'.
22081         * lib/unicase/special-casing.h: New file.
22082         * lib/unicase/special-casing.c: New file.
22083         * lib/unicase/special-casing-table.gperf: New file, generated by
22084         gen-uni-tables.c.
22085         * modules/unicase/special-casing: New file.
22086
22087         Tests for module 'unicase/locale-language'.
22088         * modules/unicase/locale-language-tests: New file.
22089         * tests/unicase/test-locale-language.sh: New file.
22090         * tests/unicase/test-locale-language.c: New file.
22091
22092         New module 'unicase/locale-language'.
22093         * lib/unicase/locale-language.c: New file.
22094         * lib/unicase/locale-languages.gperf: New file.
22095         * modules/unicase/locale-language: New file.
22096
22097         Generate more tables for case conversion and case folding.
22098         * lib/gen-uni-tables.c (SCC_*): New enum items.
22099         (struct special_casing_rule): New type.
22100         (casing_rules, num_casing_rules, allocated_casing_rules): New
22101         variables.
22102         (add_casing_rule, fill_casing_rules): New functions.
22103         (struct casefold_rule): New type.
22104         (casefolding_rules, num_casefolding_rules,
22105         allocated_casefolding_rules): New variables.
22106         (fill_casefolding_rules): New function.
22107         (unicode_casefold): New variable.
22108         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
22109         sort_casing_rules, output_casing_rules): New functions.
22110         (main): Accept to more arguments: SpecialCasing.txt and
22111         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
22112         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
22113         Output mapping for casefolding.
22114
22115         * lib/unicase.h: Include stdbool.h, uninorm.h.
22116         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
22117         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
22118         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
22119         arguments.
22120         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
22121         resultp arguments.
22122         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
22123         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
22124         resultp arguments.
22125         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
22126         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
22127         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
22128         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
22129         declarations.
22130         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
22131
22132 2009-03-08  Bruno Haible  <bruno@clisp.org>
22133
22134         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
22135         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
22136         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
22137         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
22138
22139 2009-03-07  Bruno Haible  <bruno@clisp.org>
22140
22141         Adjust u*_normcmp, u*_normcoll API.
22142         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
22143         u16_normcoll, u32_normcoll): Change failure conventions.
22144         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
22145         errno and return -1.
22146         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
22147
22148 2009-03-07  Bruno Haible  <bruno@clisp.org>
22149
22150         Tests for module 'uninorm/u32-normcoll'.
22151         * modules/uninorm/u32-normcoll-tests: New file.
22152         * tests/uninorm/test-u32-normcoll.c: New file.
22153
22154         Tests for module 'uninorm/u16-normcoll'.
22155         * modules/uninorm/u16-normcoll-tests: New file.
22156         * tests/uninorm/test-u16-normcoll.c: New file.
22157
22158         Tests for module 'uninorm/u8-normcoll'.
22159         * modules/uninorm/u8-normcoll-tests: New file.
22160         * tests/uninorm/test-u8-normcoll.c: New file.
22161
22162 2009-03-07  Bruno Haible  <bruno@clisp.org>
22163
22164         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
22165         tests/uninorm/test-u32-normcmp.c.
22166         * tests/uninorm/test-u32-normcmp.c: Include it.
22167         (test_nonascii): New function, extracted from main. Add some more
22168         tests.
22169         (main): Invoke test_ascii and test_nonascii.
22170         * modules/uninorm/u32-normcmp-tests (Files): Add
22171         tests/uninorm/test-u32-normcmp.h.
22172         (Depends-on): Remove uninorm/u32-normcmp.
22173
22174         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
22175         tests/uninorm/test-u16-normcmp.c.
22176         * tests/uninorm/test-u16-normcmp.c: Include it.
22177         (test_nonascii): New function, extracted from main. Add some more
22178         tests.
22179         (main): Invoke test_ascii and test_nonascii.
22180         * modules/uninorm/u16-normcmp-tests (Files): Add
22181         tests/uninorm/test-u16-normcmp.h.
22182         (Depends-on): Remove uninorm/u16-normcmp.
22183
22184         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
22185         tests/uninorm/test-u8-normcmp.c.
22186         * tests/uninorm/test-u8-normcmp.c: Include it.
22187         (test_nonascii): New function, extracted from main. Add some more
22188         tests.
22189         (main): Invoke test_ascii and test_nonascii.
22190         * modules/uninorm/u8-normcmp-tests (Files): Add
22191         tests/uninorm/test-u8-normcmp.h.
22192         (Depends-on): Remove uninorm/u8-normcmp.
22193
22194 2009-03-07  Bruno Haible  <bruno@clisp.org>
22195
22196         New module 'uninorm/u32-normcoll'.
22197         * lib/uninorm/u32-normcoll.c: New file.
22198         * modules/uninorm/u32-normcoll: New file.
22199
22200         New module 'uninorm/u16-normcoll'.
22201         * lib/uninorm/u16-normcoll.c: New file.
22202         * modules/uninorm/u16-normcoll: New file.
22203
22204         New module 'uninorm/u8-normcoll'.
22205         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
22206         declarations.
22207         * lib/uninorm/u8-normcoll.c: New file.
22208         * lib/uninorm/u-normcoll.h: New file.
22209         * modules/uninorm/u8-normcoll: New file.
22210
22211         New module 'uninorm/u32-normxfrm'.
22212         * lib/uninorm/u32-normxfrm.c: New file.
22213         * modules/uninorm/u32-normxfrm: New file.
22214
22215         New module 'uninorm/u16-normxfrm'.
22216         * lib/uninorm/u16-normxfrm.c: New file.
22217         * modules/uninorm/u16-normxfrm: New file.
22218
22219         New module 'uninorm/u8-normxfrm'.
22220         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
22221         declarations.
22222         * lib/uninorm/u8-normxfrm.c: New file.
22223         * lib/uninorm/u-normxfrm.h: New file.
22224         * modules/uninorm/u8-normxfrm: New file.
22225
22226 2009-03-07  Bruno Haible  <bruno@clisp.org>
22227
22228         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
22229         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
22230         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
22231
22232 2009-03-07  Bruno Haible  <bruno@clisp.org>
22233
22234         New module 'memxfrm'.
22235         * lib/memxfrm.h: New file.
22236         * lib/memxfrm.c: New file.
22237         * modules/memxfrm: New file.
22238
22239 2009-03-07  Bruno Haible  <bruno@clisp.org>
22240
22241         New module 'memcmp2'.
22242         * lib/memcmp2.h: New file.
22243         * lib/memcmp2.c: New file.
22244         * modules/memcmp2: New file.
22245
22246 2009-03-07  Bruno Haible  <bruno@clisp.org>
22247
22248         Tests for module 'uninorm/decomposing-form'.
22249         * modules/uninorm/decomposing-form-tests: New file.
22250         * tests/uninorm/test-decomposing-form.c: New file.
22251
22252         New module 'uninorm/decomposing-form'.
22253         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
22254         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
22255         Add 'decomposing_variant' field.
22256         * lib/uninorm/decomposing-form.c: New file.
22257         * lib/uninorm/nfc.c (uninorm_nfc): Update.
22258         * lib/uninorm/nfd.c (uninorm_nfd): Update.
22259         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
22260         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
22261         * modules/uninorm/decomposing-form: New file.
22262         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
22263         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
22264
22265 2009-03-07  Bruno Haible  <bruno@clisp.org>
22266
22267         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
22268         strings.
22269
22270 2009-03-06  Bruno Haible  <bruno@clisp.org>
22271
22272         Tests for module 'uninorm/u32-normcmp'.
22273         * tests/uninorm/test-u32-normcmp.c: New file.
22274         * modules/uninorm/u32-normcmp-tests: New file.
22275
22276         Tests for module 'uninorm/u16-normcmp'.
22277         * tests/uninorm/test-u16-normcmp.c: New file.
22278         * modules/uninorm/u16-normcmp-tests: New file.
22279
22280         Tests for module 'uninorm/u8-normcmp'.
22281         * tests/uninorm/test-u8-normcmp.c: New file.
22282         * modules/uninorm/u8-normcmp-tests: New file.
22283
22284         New module 'uninorm/u32-normcmp'.
22285         * lib/uninorm/u32-normcmp.c: New file.
22286         * modules/uninorm/u32-normcmp: New file.
22287
22288         New module 'uninorm/u16-normcmp'.
22289         * lib/uninorm/u16-normcmp.c: New file.
22290         * modules/uninorm/u16-normcmp: New file.
22291
22292         New module 'uninorm/u8-normcmp'.
22293         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
22294         declarations.
22295         * lib/uninorm/u8-normcmp.c: New file.
22296         * lib/uninorm/u-normcmp.h: New file.
22297         * modules/uninorm/u8-normcmp: New file.
22298
22299 2009-03-06  Bruno Haible  <bruno@clisp.org>
22300
22301         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
22302         Reported by Eric Blake.
22303
22304 2009-03-06  Eric Blake  <ebb9@byu.net>
22305             Bruno Haible  <bruno@clisp.org>
22306
22307         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
22308         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
22309         condition.
22310         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
22311         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
22312         condition.
22313         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
22314
22315 2009-03-06  Eric Blake  <ebb9@byu.net>
22316
22317         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
22318         to avoid compiler warnings.
22319         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
22320
22321 2009-03-05  Bruno Haible  <bruno@clisp.org>
22322
22323         * tests/test-ftell.c (main): Disable test beyond end of file on
22324         FreeMiNT.
22325         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22326
22327 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
22328
22329         * lib/filevercmp.c: Move hidden files up in ordering.
22330         * tests/test-filevercmp.c: Add tests for hidden files.
22331
22332 2009-03-04  Bruno Haible  <bruno@clisp.org>
22333
22334         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
22335         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
22336         AM_CFLAGS.
22337         Reported by Simon Josefsson.
22338
22339 2009-03-03  Bruno Haible  <bruno@clisp.org>
22340
22341         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
22342         Reported by Simon Josefsson.
22343
22344         * doc/ld-version-script.texi: Update node reference.
22345
22346 2009-03-03  Bruno Haible  <bruno@clisp.org>
22347
22348         * modules/visibility (License): Change to 'unlimited'.
22349         Suggested by Simon Josefsson.
22350
22351 2009-03-03  Jim Meyering  <meyering@redhat.com>
22352
22353         unlinkdir: cannot_unlink_dir may modify process state
22354         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
22355         it's neither thread-safe nor appropriate for use in a library.
22356
22357 2009-03-03  Eric Blake  <ebb9@byu.net>
22358
22359         test-closein: silence test under Darwin
22360         * tests/test-closein.sh: Ignore stderr from cat, since we don't
22361         care if it dies from EPIPE or EBADF.
22362
22363 2009-03-03  Bruno Haible  <bruno@clisp.org>
22364
22365         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
22366         earlier.
22367         * doc/visibility.texi: Fix @node and @section.
22368
22369 2009-03-03  Simon Josefsson  <simon@josefsson.org>
22370
22371         * doc/gnulib.texi: Link to sections for ld version script and
22372         visibility.
22373         * doc/visibility.texi: Add @node and @section.
22374         * modules/ld-version-script: New module.
22375         * m4/ld-version-script.m4: New file.
22376         * doc/ld-version-script.texi: New file.
22377
22378 2009-03-02  David Lutterkort  <lutter@redhat.com>
22379
22380         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
22381         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22382
22383 2009-03-02  Bruno Haible  <bruno@clisp.org>
22384
22385         * doc/visibility.texi: Mention libtool's -export-symbols option.
22386
22387 2009-03-02  Jim Meyering  <meyering@redhat.com>
22388
22389         announce-gen: new option: --no-print-checksums
22390         * build-aux/announce-gen (usage): Describe it.
22391         (print_checksums): Print a newline here, not in the [*] footnote.
22392         (main): Honor it.
22393
22394 2009-03-01  Bruno Haible  <bruno@clisp.org>
22395
22396         Use socklen_t in the native Windows replacements prototypes.
22397         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
22398         instead of 'int'.
22399         * lib/getsockopt.c (rpl_getsockopt): Likewise.
22400         * lib/setsockopt.c (rpl_setsockopt): Likewise.
22401         * modules/getsockopt (Depends-on): Add socklen.
22402         * modules/setsockopt (Depends-on): Add socklen.
22403
22404 2009-03-01  Bruno Haible  <bruno@clisp.org>
22405
22406         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
22407         least 4.2.
22408
22409 2009-03-01  Eric Blake  <ebb9@byu.net>
22410             Bruno Haible  <bruno@clisp.org>
22411
22412         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
22413         error messages.
22414         * lib/wait-process.c (wait_subprocess): Omit error message about
22415         deadly signal sent to the child of termsigp != NULL.
22416
22417 2009-03-01  Eric Blake  <ebb9@byu.net>
22418
22419         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
22420
22421 2009-03-01  Bruno Haible  <bruno@clisp.org>
22422
22423         Avoid a gcc warning.
22424         * tests/test-sched.c (b): Make global.
22425         Reported by Eric Blake.
22426
22427 2009-01-19  Martin Lambers  <marlam@marlam.de>
22428
22429         Provide POSIX semantics for socket timeout options on W32.
22430         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
22431         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
22432         * modules/setsockopt: Depend on sys_time module for struct timeval.
22433         * modules/getsockopt: Depend on sys_time module for struct timeval.
22434
22435 2009-03-01  Simon Josefsson  <simon@josefsson.org>
22436
22437         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
22438         __USE_GNU, for consistency with netdb.in.h.
22439         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22440
22441 2009-03-01  Bruno Haible  <bruno@clisp.org>
22442
22443         More support for FreeMiNT.
22444         * lib/fseeko.c (rpl_fseeko): Complete last commit.
22445         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22446
22447 2009-03-01  Bruno Haible  <bruno@clisp.org>
22448
22449         More support for FreeMiNT.
22450         * lib/fpurge.c (fpurge): Correct last commit.
22451         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22452
22453 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22454
22455         Fix unportable awk script in vc-list-files.
22456         * build-aux/vc-list-files: In the replacement awk script, use
22457         substr with a second argument of 1, not zero.
22458         Report by Simon Josefsson.
22459
22460 2009-02-28  Bruno Haible  <bruno@clisp.org>
22461
22462         More support for FreeMiNT.
22463         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
22464         to FreeMiNT today.
22465         * lib/fwriting.c (fwriting): Likewise.
22466         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
22467
22468 2009-02-28  Bruno Haible  <bruno@clisp.org>
22469
22470         * tests/test-freadseek.c (main): Disable test beyond end of file on
22471         FreeMiNT.
22472         * tests/test-ftello.c (main): Likewise.
22473         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22474
22475 2009-02-28  Bruno Haible  <bruno@clisp.org>
22476
22477         Add tentative support for FreeMiNT.
22478         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
22479         * lib/fpurge.c (fpurge): Likewise.
22480         * lib/freadable.c (freadable): Likewise.
22481         * lib/freading.c (freading): Likewise.
22482         * lib/freadptr.c (freadptr): Likewise.
22483         * lib/freadseek.c (freadptrinc): Likewise.
22484         * lib/fseeko.c (rpl_fseeko): Likewise.
22485         * lib/fseterr.c (fseterr): Likewise.
22486         * lib/fwritable.c (fwritable): Likewise.
22487         * lib/fwriting.c (fwriting): Likewise.
22488         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
22489         Hourihane.
22490         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22491
22492 2009-02-28  Bruno Haible  <bruno@clisp.org>
22493
22494         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
22495         SIGCHLD.
22496         Reported by Jim Meyering.
22497
22498 2009-02-28  Bruno Haible  <bruno@clisp.org>
22499
22500         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
22501         Mention the results of these tests on various platforms.
22502         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
22503         order.
22504         * doc/posix-functions/printf.texi: Likewise.
22505         * doc/posix-functions/snprintf.texi: Likewise.
22506         * doc/posix-functions/sprintf.texi: Likewise.
22507         * doc/posix-functions/vfprintf.texi: Likewise.
22508         * doc/posix-functions/vprintf.texi: Likewise.
22509         * doc/posix-functions/vsnprintf.texi: Likewise.
22510         * doc/posix-functions/vsprintf.texi: Likewise.
22511         * doc/glibc-functions/obstack_printf.texi: Likewise.
22512         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22513
22514 2009-02-28  Bruno Haible  <bruno@clisp.org>
22515
22516         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
22517         Reported by Loïc Minier <lool@dooz.org>.
22518
22519 2009-02-27  Bruno Haible  <bruno@clisp.org>
22520
22521         * gnulib-tool (func_import): Make the sed expression used to create the
22522         sed script for updating the .gitignore file POSIX compliant.
22523         Reported by Eric Blake.
22524
22525 2009-02-27  Bruno Haible  <bruno@clisp.org>
22526
22527         * gnulib-tool (sed): Don't alias as "sed --posix".
22528         Reported by Eric Blake.
22529
22530 2009-02-27  Bruno Haible  <bruno@clisp.org>
22531
22532         Avoid test link errors.
22533         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
22534         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
22535         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
22536         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
22537         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22538
22539 2009-02-27  Bruno Haible  <bruno@clisp.org>
22540
22541         Avoid spurious "(cached)" in configure output.
22542         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
22543         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
22544         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22545         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22546         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22547         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22548         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22549         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22550         Reported by Eric Blake.
22551
22552 2009-02-27  Eric Blake  <ebb9@byu.net>
22553
22554         printf: fix regression in previous patch
22555         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
22556
22557 2009-02-27  Bruno Haible  <bruno@clisp.org>
22558
22559         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
22560         value.
22561         * lib/stdint.in.h: Likewise.
22562         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
22563
22564 2009-02-27  Eric Blake  <ebb9@byu.net>
22565
22566         doc: mention more functions added in cygwin 1.7.0
22567         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
22568         addition.
22569         * doc/posix-functions/open_wmemstream.texi: Likewise.
22570         * doc/posix-functions/wcsnlen.texi: Likewise.
22571         * doc/posix-functions/wcsnrtombs.texi: Likewise.
22572         * doc/posix-functions/wcstod.texi: Likewise.
22573         * doc/posix-functions/wcstof.texi: Likewise.
22574         * doc/posix-functions/wcstoimax.texi: Likewise.
22575         * doc/posix-functions/wcstok.texi: Likewise.
22576         * doc/posix-functions/wcstoumax.texi: Likewise.
22577
22578         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
22579         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
22580         * doc/posix-functions/fprintf.texi: Update.
22581         * doc/posix-functions/printf.texi: Update.
22582         * doc/posix-functions/snprintf.texi: Update.
22583         * doc/posix-functions/sprintf.texi: Update.
22584         * doc/posix-functions/vfprintf.texi: Update.
22585         * doc/posix-functions/vprintf.texi: Update.
22586         * doc/posix-functions/vsnprintf.texi: Update.
22587         * doc/posix-functions/vsprintf.texi: Update.
22588         * doc/glibc-functions/obstack_printf.texi: Update.
22589         * doc/glibc-functions/obstack_vprintf.texi: Update.
22590
22591 2009-02-26  Eric Blake  <ebb9@byu.net>
22592
22593         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
22594         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
22595         compilation bug by using runtime conversion.
22596         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22597         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
22598         * modules/ceill-tests (Files): Use nan.h.
22599         * modules/floorl-tests (Files): Likewise.
22600         * modules/frexpl-tests (Files): Likewise.
22601         * modules/isnanl-tests (Files): Likewise.
22602         * modules/ldexpl-tests (Files): Likewise.
22603         * modules/roundl-tests (Files): Likewise.
22604         * modules/truncl-tests (Files): Likewise.
22605         * tests/test-ceill.c (main): Use a working NaN.
22606         * tests/test-floorl.c (main): Likewise.
22607         * tests/test-frexpl.c (main): Likewise.
22608         * tests/test-isnan.c (test_long_double): Likewise.
22609         * tests/test-isnanl.h (main): Likewise.
22610         * tests/test-ldexpl.h (main): Likewise.
22611         * tests/test-roundl.h (main): Likewise.
22612         * tests/test-truncl.h (main): Likewise.
22613         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
22614
22615 2009-02-26  Eric Blake  <ebb9@byu.net>
22616             Bruno Haible  <bruno@clisp.org>
22617
22618         Work around a *printf bug with %ls on Solaris.
22619         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
22620         precision is specified, sprintf stops converting the wide string
22621         argument when the number of bytes that have been produced by this
22622         conversion equals or exceeds the precision.
22623         * doc/posix-functions/fprintf.texi: Update.
22624         * doc/posix-functions/printf.texi: Update.
22625         * doc/posix-functions/snprintf.texi: Update.
22626         * doc/posix-functions/sprintf.texi: Update.
22627         * doc/posix-functions/vfprintf.texi: Update.
22628         * doc/posix-functions/vprintf.texi: Update.
22629         * doc/posix-functions/vsnprintf.texi: Update.
22630         * doc/posix-functions/vsprintf.texi: Update.
22631         * doc/glibc-functions/obstack_printf.texi: Update.
22632         * doc/glibc-functions/obstack_vprintf.texi: Update.
22633
22634 2009-02-26  Eric Blake  <ebb9@byu.net>
22635
22636         stdlib: favor compiler check of random.h
22637         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
22638         to avoid an ObjC random.h installed by Swarm.
22639
22640 2009-02-26  Bruno Haible  <bruno@clisp.org>
22641
22642         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
22643         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
22644         Reported by Gary V. Vaughan <gary@gnu.org>.
22645
22646 2009-02-26  Bruno Haible  <bruno@clisp.org>
22647
22648         Fix *printf behaviour regarding the %ls directive.
22649         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
22650         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
22651         NEED_PRINTF_DIRECTIVE_LS.
22652         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
22653         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
22654         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22655         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
22656         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
22657         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
22658         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22659         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22660         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22661         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22662         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22663         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
22664         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22665         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22666         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22667         * doc/posix-functions/fprintf.texi: Update.
22668         * doc/posix-functions/printf.texi: Update.
22669         * doc/posix-functions/snprintf.texi: Update.
22670         * doc/posix-functions/sprintf.texi: Update.
22671         * doc/posix-functions/vfprintf.texi: Update.
22672         * doc/posix-functions/vprintf.texi: Update.
22673         * doc/posix-functions/vsnprintf.texi: Update.
22674         * doc/posix-functions/vsprintf.texi: Update.
22675         * doc/glibc-functions/obstack_printf.texi: Update.
22676         * doc/glibc-functions/obstack_vprintf.texi: Update.
22677         Reported by Eric Blake.
22678
22679 2009-02-25  Bruno Haible  <bruno@clisp.org>
22680
22681         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
22682         with known value.
22683         Reported by Gary V. Vaughan <gary@gnu.org>.
22684
22685 2009-02-25  Bruno Haible  <bruno@clisp.org>
22686
22687         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
22688         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
22689         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
22690         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
22691         Reported by Gary V. Vaughan <gary@gnu.org>.
22692
22693 2009-02-25  Bruno Haible  <bruno@clisp.org>
22694
22695         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
22696         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
22697         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
22698         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
22699         Reported by Gary V. Vaughan <gary@gnu.org>.
22700
22701 2009-02-25  Eric Blake  <ebb9@byu.net>
22702
22703         tests: skip fseek/ftell tests if ungetc is broken
22704         * m4/ungetc.m4: New file.
22705         * modules/fseek-tests: Split test, so ungetc dependency is
22706         separate from rest of test.
22707         * modules/fseeko-tests: Likewise.
22708         * modules/ftell-tests: Likewise.
22709         * modules/ftello-tests: Likewise.
22710         * tests/test-fseek.c (main): Isolate ungetc dependency.
22711         * tests/test-fseeko.c (main): Likewise.
22712         * tests/test-ftell.c (main): Likewise.
22713         * tests/test-ftello.c (main): Likewise.
22714         * tests/test-fseek2.sh: New file.
22715         * tests/test-fseeko2.sh: Likewise.
22716         * tests/test-ftell2.sh: Likewise.
22717         * tests/test-ftello2.sh: Likewise.
22718
22719 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
22720
22721         test-getaddrinfo: fix usage of skip return code 77
22722         * tests/test-gettaddrinfo.c: Return skip code 77 only
22723         for first occurance of skip (4x77 is not 77)
22724
22725 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
22726
22727         strtod: avoid C99 decl-after-statement
22728         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
22729
22730 2009-02-24  Eric Blake  <ebb9@byu.net>
22731
22732         strtod: detect HP-UX 11.31 bug
22733         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
22734         Reported by Gary V. Vaughan.
22735
22736 2009-02-23  Bruno Haible  <bruno@clisp.org>
22737
22738         Fix invalid read past end of memory block.
22739         * lib/vasnprintf.c (DCHAR_SET): Define.
22740         (local_wcslen): Define only when needed.
22741         (local_strnlen, local_wcsnlen): New functions.
22742         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
22743         directives that involve a conversion ourselves.
22744         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
22745         wcsnlen, mbrtowc, wcrtomb.
22746         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
22747         * tests/test-vasprintf-posix.c (test_function): Likewise.
22748         * tests/test-snprintf-posix.h (test_function): Likewise.
22749         * tests/test-sprintf-posix.h (test_function): Likewise.
22750         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22751
22752 2009-02-22  Bruno Haible  <bruno@clisp.org>
22753
22754         Implement new clarified decomposition of Hangul syllables.
22755         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
22756         of type LTV, return only a pairwise decomposition.
22757         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
22758         Likewise.
22759         * tests/uninorm/test-decomposition.c (main): Updated expected result.
22760         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
22761         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
22762
22763 2009-02-22  Bruno Haible  <bruno@clisp.org>
22764
22765         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
22766         zero-length results and shrink excess allocated memory.
22767         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
22768         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
22769         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
22770         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
22771         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
22772         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
22773         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
22774         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
22775         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
22776         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
22777         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
22778         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
22779
22780 2009-02-21  Bruno Haible  <bruno@clisp.org>
22781
22782         * doc/gnulib.texi: Include safe-alloc.texi earlier.
22783         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
22784         spaces after a period. Put a space between a macro name and its
22785         argument list. Trivial rewordings.
22786         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
22787         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
22788         (main): Return 0 explicitly.
22789
22790 2009-02-21  Bruno Haible  <bruno@clisp.org>
22791
22792         Tests for module 'uninorm/filter'.
22793         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
22794         * modules/uninorm/filter-tests: New file.
22795
22796         New module 'uninorm/filter'.
22797         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
22798         uninorm_filter_flush, uninorm_filter_free): New declarations.
22799         * lib/uninorm/uninorm-filter.c: New file.
22800         * modules/uninorm/filter: New file.
22801
22802 2009-02-21  Bruno Haible  <bruno@clisp.org>
22803
22804         Tests for module 'uninorm/nfkc'.
22805         * tests/uninorm/test-nfkc.c: New file.
22806         * tests/uninorm/test-u8-nfkc.c: New file.
22807         * tests/uninorm/test-u16-nfkc.c: New file.
22808         * tests/uninorm/test-u32-nfkc.c: New file.
22809         * tests/uninorm/test-u32-nfkc-big.sh: New file.
22810         * tests/uninorm/test-u32-nfkc-big.c: New file.
22811         * modules/uninorm/nfkc-tests: New file.
22812
22813         New module 'uninorm/nfkc'.
22814         * lib/uninorm/nfkc.c: New file.
22815         * modules/uninorm/nfkc: New file.
22816
22817         Tests for module 'uninorm/nfkd'.
22818         * tests/uninorm/test-nfkd.c: New file.
22819         * tests/uninorm/test-u8-nfkd.c: New file.
22820         * tests/uninorm/test-u16-nfkd.c: New file.
22821         * tests/uninorm/test-u32-nfkd.c: New file.
22822         * tests/uninorm/test-u32-nfkd-big.sh: New file.
22823         * tests/uninorm/test-u32-nfkd-big.c: New file.
22824         * modules/uninorm/nfkd-tests: New file.
22825
22826         New module 'uninorm/nfkd'.
22827         * lib/uninorm/nfkd.c: New file.
22828         * modules/uninorm/nfkd: New file.
22829
22830         Tests for module 'uninorm/nfc'.
22831         * tests/uninorm/test-nfc.c: New file.
22832         * tests/uninorm/test-u8-nfc.c: New file.
22833         * tests/uninorm/test-u16-nfc.c: New file.
22834         * tests/uninorm/test-u32-nfc.c: New file.
22835         * tests/uninorm/test-u32-nfc-big.sh: New file.
22836         * tests/uninorm/test-u32-nfc-big.c: New file.
22837         * modules/uninorm/nfc-tests: New file.
22838
22839         New module 'uninorm/nfc'.
22840         * lib/uninorm/nfc.c: New file.
22841         * modules/uninorm/nfc: New file.
22842
22843         Tests for module 'uninorm/nfd'.
22844         * tests/uninorm/test-nfd.c: New file.
22845         * tests/uninorm/test-u8-nfd.c: New file.
22846         * tests/uninorm/test-u16-nfd.c: New file.
22847         * tests/uninorm/test-u32-nfd.c: New file.
22848         * tests/uninorm/test-u32-nfd-big.sh: New file.
22849         * tests/uninorm/test-u32-nfd-big.c: New file.
22850         * tests/uninorm/test-u32-normalize-big.h: New file.
22851         * tests/uninorm/test-u32-normalize-big.c: New file.
22852         * tests/uninorm/NormalizationTest.txt: New file, created from
22853         Unicode 5.1.0 NormalizationTest.txt.
22854         * modules/uninorm/nfd-tests: New file.
22855
22856         New module 'uninorm/nfd'.
22857         * lib/uninorm/nfd.c: New file.
22858         * modules/uninorm/nfd: New file.
22859
22860         New module 'uninorm/u32-normalize'.
22861         * lib/uninorm/u32-normalize.c: New file.
22862         * modules/uninorm/u32-normalize: New file.
22863
22864         New module 'uninorm/u16-normalize'.
22865         * lib/uninorm/u16-normalize.c: New file.
22866         * modules/uninorm/u16-normalize: New file.
22867
22868         New module 'uninorm/u8-normalize'.
22869         * lib/uninorm/u8-normalize.c: New file.
22870         * lib/uninorm/normalize-internal.h: New file.
22871         * lib/uninorm/u-normalize-internal.h: New file.
22872         * modules/uninorm/u8-normalize: New file.
22873
22874         New module 'uninorm/decompose-internal'.
22875         * lib/uninorm/decompose-internal.c: New file.
22876         * modules/uninorm/decompose-internal: New file.
22877
22878         Tests for module 'uninorm/composition'.
22879         * tests/uninorm/test-composition.c: New file.
22880         * modules/uninorm/composition-tests: New file.
22881
22882         New module 'uninorm/composition'.
22883         * lib/uninorm/composition.c: New file.
22884         * lib/uninorm/composition-table.gperf: New file, generated by
22885         gen-uni-tables.
22886         * modules/uninorm/composition: New file.
22887
22888         Tests for module 'uninorm/compat-decomposition'.
22889         * tests/uninorm/test-compat-decomposition.c: New file.
22890         * modules/uninorm/compat-decomposition-tests: New file.
22891
22892         New module 'uninorm/compat-decomposition'.
22893         * lib/uninorm/decompose-internal.h: New file.
22894         * lib/uninorm/compat-decomposition.c: New file.
22895         * modules/uninorm/compat-decomposition: New file.
22896
22897         Tests for module 'uninorm/canonical-decomposition'.
22898         * tests/uninorm/test-canonical-decomposition.c: New file.
22899         * modules/uninorm/canonical-decomposition-tests: New file.
22900
22901         New module 'uninorm/canonical-decomposition'.
22902         * lib/uninorm/canonical-decomposition.c: New file.
22903         * modules/uninorm/canonical-decomposition: New file.
22904
22905         Tests for module 'uninorm/decomposition'.
22906         * tests/uninorm/test-decomposition.c: New file.
22907         * modules/uninorm/decomposition-tests: New file.
22908
22909         New module 'uninorm/decomposition'.
22910         * lib/uninorm/decomposition.c: New file.
22911         * modules/uninorm/decomposition: New file.
22912
22913         New module 'uninorm/decomposition-table'.
22914         * lib/uninorm/decomposition-table.h: New file.
22915         * lib/uninorm/decomposition-table.c: New file.
22916         * lib/uninorm/decomposition-table1.h: New file, generated by
22917         gen-uni-tables.
22918         * lib/uninorm/decomposition-table2.h: New file, generated by
22919         gen-uni-tables.
22920         * modules/uninorm/decomposition-table: New file.
22921
22922         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
22923         (UC_DECOMP_*): New enumeration items.
22924         (get_decomposition): New function.
22925         (struct decomp_table): New type.
22926         (output_decomposition, output_decomposition_tables): New functions.
22927         (unicode_composition_exclusions): New variable.
22928         (fill_composition_exclusions, debug_output_composition_tables): New
22929         functions.
22930         (main): Accept one more argument. Invoke fill_composition_exclusions.
22931         Output decomposition and composition tables.
22932
22933         New module 'uninorm/base'.
22934         * lib/uninorm.h: New file.
22935         * lib/unictype.h: Update comment.
22936         * modules/uninorm/base: New file.
22937
22938 2009-02-21  David Lutterkort  <lutter@redhat.com>
22939
22940         Tests for module 'safe-alloc'.
22941         * tests/test-safe-alloc.c: New file.
22942         * modules/safe-alloc-tests: New file.
22943
22944         New module 'safe-alloc'.
22945         * lib/safe-alloc.h: New file.
22946         * lib/safe-alloc.c: New file.
22947         * m4/safe-alloc.m4: New file.
22948         * modules/safe-alloc: New file.
22949         * doc/safe-alloc.texi: New file.
22950         * doc/gnulib.texi: Include it.
22951         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22952         safe-alloc.
22953
22954 2009-02-18  Bruno Haible  <bruno@clisp.org>
22955
22956         Fix link error on non-glibc systems.
22957         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
22958         variable.
22959         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22960
22961 2009-02-18  Jim Meyering  <meyering@redhat.com>
22962
22963         fts: avoid used-uninitialized error due to recent change
22964         * lib/fts.c (fts_read): Guard uses of the new member,
22965         parent->fts_n_dirs_remaining, since it's not relevant for
22966         the parent of a directory specified on the command-line.
22967
22968 2009-02-17  James Youngman  <jay@gnu.org>
22969             Bruno Haible  <bruno@clisp.org>
22970
22971         * m4/include_next.m4: Reformulate comment.
22972
22973 2009-02-16  Jim Meyering  <meyering@redhat.com>
22974
22975         fts: add #if guards so that the fts_lgpl module still builds
22976         * lib/fts.c: Guard just-added hash-table-using parts with
22977         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
22978         Reported by Simon Josefsson.
22979
22980 2009-02-15  Bruno Haible  <bruno@clisp.org>
22981
22982         * modules/array-mergesort-tests: New file.
22983         * tests/test-array-mergesort.c: New file.
22984
22985         New module 'array-mergesort'.
22986         * modules/array-mergesort: New file.
22987         * lib/array-mergesort.h: New file.
22988
22989 2009-02-15  Bruno Haible  <bruno@clisp.org>
22990
22991         Fix 2009-02-07 commit.
22992         * lib/gen-uni-tables.c (output_predicate, output_category,
22993         output_combclass, output_bidi_category, output_decimal_digit,
22994         output_digit, output_numeric, output_mirror, output_scripts,
22995         output_ident_category, output_simple_mapping): Fix format directives.
22996         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
22997
22998 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
22999
23000         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
23001         fixes are available from IBM.
23002
23003 2009-02-13  Jim Meyering  <meyering@redhat.com>
23004
23005         fts: arrange not to stat non-directories in more cases
23006         This makes GNU find (when it doesn't need to stat each file)
23007         *much* more efficient at traversing reiserfs file systems.
23008         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
23009         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
23010         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
23011         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
23012         (leaf_optimization_applies): New function.
23013         (LCO_hash, LCO_compare): New helper functions.
23014         (link_count_optimize_ok): New function.
23015         (fts_stat): Initialize new member (if dir).
23016         (fts_read): Decrement parent's fts_n_dirs_remaining count if
23017         we've just stat'ed a directory.  Skip the stat call when possible.
23018         ---
23019         Note this AFS-related exchange:
23020         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
23021         and note find's pioctl call in find/fstype.c.
23022         But that is necessary only if you want to enable the
23023         optimization for AFS, and for now, I don't.
23024
23025         fts: move a function definition "up" (no semantic change)
23026         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
23027         "up" to precede upcoming use of a related function.
23028
23029 2009-02-11  Jim Meyering  <meyering@redhat.com>
23030
23031         fts: correct internal computation of nlinks (optimization-related)
23032         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
23033         whether the current entry is a directory, so don't test it.
23034
23035 2009-02-10  Bruno Haible  <bruno@clisp.org>
23036
23037         Tests for module 'uniwbrk/ulc-wordbreaks'.
23038         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
23039         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
23040         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
23041
23042         Tests for module 'uniwbrk/u32-wordbreaks'.
23043         * modules/uniwbrk/u32-wordbreaks-tests: New file.
23044         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
23045
23046         Tests for module 'uniwbrk/u16-wordbreaks'.
23047         * modules/uniwbrk/u16-wordbreaks-tests: New file.
23048         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
23049
23050         Tests for module 'uniwbrk/u8-wordbreaks'.
23051         * modules/uniwbrk/u8-wordbreaks-tests: New file.
23052         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
23053
23054 2009-02-10  Bruno Haible  <bruno@clisp.org>
23055
23056         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
23057         property.
23058         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
23059         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
23060         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
23061
23062 2009-02-10  Simon Josefsson  <simon@josefsson.org>
23063
23064         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
23065         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
23066
23067 2009-02-10  Bruno Haible  <bruno@clisp.org>
23068
23069         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
23070         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
23071         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
23072         * lib/unilbrk/u8-possible-linebreaks.c: Update.
23073         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
23074         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
23075
23076 2009-02-09  Simon Josefsson  <simon@josefsson.org>
23077
23078         * lib/sockets.h (gl_fd_to_handle): New function.
23079
23080         * tests/test-sockets.c: Call gl_fd_to_handle.
23081
23082 2009-02-09  Bruno Haible  <bruno@clisp.org>
23083
23084         * doc/havelib.texi: Document the conventions on bi-arch systems.
23085
23086 2009-02-08  Bruno Haible  <bruno@clisp.org>
23087
23088         Document the AC_LIB_LINKFLAGS macro.
23089         * doc/havelib.texi: New file, mostly written on 2005-05-24.
23090         * doc/gnulib.texi: Include it.
23091
23092 2009-02-08  Bruno Haible  <bruno@clisp.org>
23093
23094         Fix wrong order of sections, compared to TOC.
23095         * doc/gnulib.texi: Include relocatable-maint.texi after the
23096         "Regular expressions" node, not before.
23097
23098 2009-02-08  Bruno Haible  <bruno@clisp.org>
23099
23100         Tests for module 'unicase/totitle'.
23101         * modules/unicase/totitle-tests: New file.
23102
23103         Tests for module 'unicase/tolower'.
23104         * modules/unicase/tolower-tests: New file.
23105
23106         Tests for module 'unicase/toupper'.
23107         * modules/unicase/toupper-tests: New file.
23108         * tests/unicase/test-mapping-part1.h: New file.
23109         * tests/unicase/test-mapping-part2.h: New file.
23110
23111         New module 'unicase/totitle'.
23112         * modules/unicase/totitle: New file.
23113         * lib/unicase/totitle.c: New file.
23114
23115         New module 'unicase/tolower'.
23116         * modules/unicase/tolower: New file.
23117         * lib/unicase/tolower.c: New file.
23118
23119         New module 'unicase/toupper'.
23120         * modules/unicase/toupper: New file.
23121         * lib/unicase/toupper.c: New file.
23122         * lib/unicase/simple-mapping.h: New file.
23123
23124         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
23125         (mapping_table): New structure.
23126         (output_simple_mapping): New function.
23127         (main): Invoke output_simple_mapping_test and output_simple_mapping.
23128         * modules/gen-uni-tables (Description): Update.
23129         * lib/unicase/toupper.h: New file, automatically generated by
23130         gen-uni-tables.
23131         * lib/unicase/tolower.h: New file, automatically generated by
23132         gen-uni-tables.
23133         * lib/unicase/totitle.h: New file, automatically generated by
23134         gen-uni-tables.
23135         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
23136         gen-uni-tables.
23137         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
23138         gen-uni-tables.
23139         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
23140         gen-uni-tables.
23141
23142         New module 'unicase/base'.
23143         * modules/unicase/base: New file.
23144         * lib/unicase.h: New file.
23145
23146 2009-02-08  Bruno Haible  <bruno@clisp.org>
23147
23148         New module 'uniwbrk/ulc-wordbreaks'.
23149         * modules/uniwbrk/ulc-wordbreaks: New file.
23150         * lib/uniwbrk/ulc-wordbreaks.c: New file.
23151
23152         New module 'uniwbrk/u32-wordbreaks'.
23153         * modules/uniwbrk/u32-wordbreaks: New file.
23154         * lib/uniwbrk/u32-wordbreaks.c: New file.
23155
23156         New module 'uniwbrk/u16-wordbreaks'.
23157         * modules/uniwbrk/u16-wordbreaks: New file.
23158         * lib/uniwbrk/u16-wordbreaks.c: New file.
23159
23160         New module 'uniwbrk/u8-wordbreaks'.
23161         * modules/uniwbrk/u8-wordbreaks: New file.
23162         * lib/uniwbrk/u8-wordbreaks.c: New file.
23163         * lib/uniwbrk/u-wordbreaks.h: New file.
23164
23165         New module 'uniwbrk/table'.
23166         * modules/uniwbrk/table: New file.
23167         * lib/uniwbrk/wbrktable.h: New file.
23168         * lib/uniwbrk/wbrktable.c: New file.
23169
23170         New module 'uniwbrk/wordbreak-property'.
23171         * modules/uniwbrk/wordbreak-property: New file.
23172         * lib/uniwbrk/wordbreak-property.c: New file.
23173
23174         * lib/gen-uni-tables.c (WBP_*): New enum items.
23175         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
23176         (unicode_org_wbp): New variable.
23177         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
23178         New functions.
23179         (wbp_table): New structure.
23180         (output_wbp, output_wbrk_tables): New functions.
23181         (main): Accept additional argument. Invoke fill_org_wbp,
23182         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
23183         output_wbrk_tables.
23184         * modules/gen-uni-tables (Description): Update.
23185         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
23186         gen-uni-tables.
23187
23188         New module 'uniwbrk/base'.
23189         * modules/uniwbrk/base: New file.
23190         * lib/uniwbrk.h: New file.
23191
23192 2009-02-08  Bruno Haible  <bruno@clisp.org>
23193
23194         Update to Unicode 5.1.0.
23195         * lib/gen-uni-tables.c (is_property_alphabetic): Include
23196         U+2185..U+2188.
23197         (is_property_default_ignorable_code_point): Don't include characters
23198         of category Cc or Cs and not-a-characters.
23199         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
23200         U+0D79, U+109E, U+109F, U+A60C.
23201         * lib/unictype/bidi_of.h: Regenerated.
23202         * lib/unictype/blocks.h: Regenerated.
23203         * lib/unictype/categ_C.h: Regenerated.
23204         * lib/unictype/categ_Cf.h: Regenerated.
23205         * lib/unictype/categ_Cn.h: Regenerated.
23206         * lib/unictype/categ_L.h: Regenerated.
23207         * lib/unictype/categ_Ll.h: Regenerated.
23208         * lib/unictype/categ_Lm.h: Regenerated.
23209         * lib/unictype/categ_Lo.h: Regenerated.
23210         * lib/unictype/categ_Lu.h: Regenerated.
23211         * lib/unictype/categ_M.h: Regenerated.
23212         * lib/unictype/categ_Mc.h: Regenerated.
23213         * lib/unictype/categ_Me.h: Regenerated.
23214         * lib/unictype/categ_Mn.h: Regenerated.
23215         * lib/unictype/categ_N.h: Regenerated.
23216         * lib/unictype/categ_Nd.h: Regenerated.
23217         * lib/unictype/categ_Nl.h: Regenerated.
23218         * lib/unictype/categ_No.h: Regenerated.
23219         * lib/unictype/categ_P.h: Regenerated.
23220         * lib/unictype/categ_Pd.h: Regenerated.
23221         * lib/unictype/categ_Pe.h: Regenerated.
23222         * lib/unictype/categ_Pf.h: Regenerated.
23223         * lib/unictype/categ_Pi.h: Regenerated.
23224         * lib/unictype/categ_Po.h: Regenerated.
23225         * lib/unictype/categ_Ps.h: Regenerated.
23226         * lib/unictype/categ_S.h: Regenerated.
23227         * lib/unictype/categ_Sk.h: Regenerated.
23228         * lib/unictype/categ_Sm.h: Regenerated.
23229         * lib/unictype/categ_So.h: Regenerated.
23230         * lib/unictype/categ_of.h: Regenerated.
23231         * lib/unictype/combining.h: Regenerated.
23232         * lib/unictype/ctype_alnum.h: Regenerated.
23233         * lib/unictype/ctype_alpha.h: Regenerated.
23234         * lib/unictype/ctype_graph.h: Regenerated.
23235         * lib/unictype/ctype_lower.h: Regenerated.
23236         * lib/unictype/ctype_print.h: Regenerated.
23237         * lib/unictype/ctype_punct.h: Regenerated.
23238         * lib/unictype/ctype_upper.h: Regenerated.
23239         * lib/unictype/decdigit.h: Regenerated.
23240         * lib/unictype/digit.h: Regenerated.
23241         * lib/unictype/mirror.h: Regenerated.
23242         * lib/unictype/numeric.h: Regenerated.
23243         * lib/unictype/pr_alphabetic.h: Regenerated.
23244         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
23245         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
23246         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
23247         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
23248         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
23249         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
23250         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
23251         * lib/unictype/pr_combining.h: Regenerated.
23252         * lib/unictype/pr_dash.h: Regenerated.
23253         * lib/unictype/pr_decimal_digit.h: Regenerated.
23254         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
23255         * lib/unictype/pr_deprecated.h: Regenerated.
23256         * lib/unictype/pr_diacritic.h: Regenerated.
23257         * lib/unictype/pr_extender.h: Regenerated.
23258         * lib/unictype/pr_format_control.h: Regenerated.
23259         * lib/unictype/pr_grapheme_base.h: Regenerated.
23260         * lib/unictype/pr_grapheme_extend.h: Regenerated.
23261         * lib/unictype/pr_grapheme_link.h: Regenerated.
23262         * lib/unictype/pr_id_continue.h: Regenerated.
23263         * lib/unictype/pr_id_start.h: Regenerated.
23264         * lib/unictype/pr_ideographic.h: Regenerated.
23265         * lib/unictype/pr_ignorable_control.h: Regenerated.
23266         * lib/unictype/pr_lowercase.h: Regenerated.
23267         * lib/unictype/pr_math.h: Regenerated.
23268         * lib/unictype/pr_numeric.h: Regenerated.
23269         * lib/unictype/pr_other_alphabetic.h: Regenerated.
23270         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
23271         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
23272         * lib/unictype/pr_other_id_continue.h: Regenerated.
23273         * lib/unictype/pr_other_lowercase.h: Regenerated.
23274         * lib/unictype/pr_other_math.h: Regenerated.
23275         * lib/unictype/pr_punctuation.h: Regenerated.
23276         * lib/unictype/pr_sentence_terminal.h: Regenerated.
23277         * lib/unictype/pr_soft_dotted.h: Regenerated.
23278         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
23279         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
23280         * lib/unictype/pr_unified_ideograph.h: Regenerated.
23281         * lib/unictype/pr_uppercase.h: Regenerated.
23282         * lib/unictype/pr_xid_continue.h: Regenerated.
23283         * lib/unictype/pr_xid_start.h: Regenerated.
23284         * lib/unictype/pr_zero_width.h: Regenerated.
23285         * lib/unictype/scripts.h: Regenerated.
23286         * lib/unictype/scripts_byname.gperf: Regenerated.
23287         * lib/unictype/sy_java_ident.h: Regenerated.
23288         * lib/unilbrk/lbrkprop1.h: Regenerated.
23289         * lib/unilbrk/lbrkprop2.h: Regenerated.
23290         * tests/unictype/test-categ_C.c: Regenerated.
23291         * tests/unictype/test-categ_Cf.c: Regenerated.
23292         * tests/unictype/test-categ_Cn.c: Regenerated.
23293         * tests/unictype/test-categ_L.c: Regenerated.
23294         * tests/unictype/test-categ_Ll.c: Regenerated.
23295         * tests/unictype/test-categ_Lm.c: Regenerated.
23296         * tests/unictype/test-categ_Lo.c: Regenerated.
23297         * tests/unictype/test-categ_Lu.c: Regenerated.
23298         * tests/unictype/test-categ_M.c: Regenerated.
23299         * tests/unictype/test-categ_Mc.c: Regenerated.
23300         * tests/unictype/test-categ_Me.c: Regenerated.
23301         * tests/unictype/test-categ_Mn.c: Regenerated.
23302         * tests/unictype/test-categ_N.c: Regenerated.
23303         * tests/unictype/test-categ_Nd.c: Regenerated.
23304         * tests/unictype/test-categ_Nl.c: Regenerated.
23305         * tests/unictype/test-categ_No.c: Regenerated.
23306         * tests/unictype/test-categ_P.c: Regenerated.
23307         * tests/unictype/test-categ_Pd.c: Regenerated.
23308         * tests/unictype/test-categ_Pe.c: Regenerated.
23309         * tests/unictype/test-categ_Pf.c: Regenerated.
23310         * tests/unictype/test-categ_Pi.c: Regenerated.
23311         * tests/unictype/test-categ_Po.c: Regenerated.
23312         * tests/unictype/test-categ_Ps.c: Regenerated.
23313         * tests/unictype/test-categ_S.c: Regenerated.
23314         * tests/unictype/test-categ_Sk.c: Regenerated.
23315         * tests/unictype/test-categ_Sm.c: Regenerated.
23316         * tests/unictype/test-categ_So.c: Regenerated.
23317         * tests/unictype/test-ctype_alnum.c: Regenerated.
23318         * tests/unictype/test-ctype_alpha.c: Regenerated.
23319         * tests/unictype/test-ctype_graph.c: Regenerated.
23320         * tests/unictype/test-ctype_lower.c: Regenerated.
23321         * tests/unictype/test-ctype_print.c: Regenerated.
23322         * tests/unictype/test-ctype_punct.c: Regenerated.
23323         * tests/unictype/test-ctype_upper.c: Regenerated.
23324         * tests/unictype/test-decdigit.h: Regenerated.
23325         * tests/unictype/test-digit.h: Regenerated.
23326         * tests/unictype/test-numeric.h: Regenerated.
23327         * tests/unictype/test-pr_alphabetic.c: Regenerated.
23328         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
23329         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
23330         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
23331         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
23332         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
23333         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
23334         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
23335         * tests/unictype/test-pr_combining.c: Regenerated.
23336         * tests/unictype/test-pr_dash.c: Regenerated.
23337         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
23338         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
23339         * tests/unictype/test-pr_deprecated.c: Regenerated.
23340         * tests/unictype/test-pr_diacritic.c: Regenerated.
23341         * tests/unictype/test-pr_extender.c: Regenerated.
23342         * tests/unictype/test-pr_format_control.c: Regenerated.
23343         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
23344         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
23345         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
23346         * tests/unictype/test-pr_id_continue.c: Regenerated.
23347         * tests/unictype/test-pr_id_start.c: Regenerated.
23348         * tests/unictype/test-pr_ideographic.c: Regenerated.
23349         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
23350         * tests/unictype/test-pr_lowercase.c: Regenerated.
23351         * tests/unictype/test-pr_math.c: Regenerated.
23352         * tests/unictype/test-pr_numeric.c: Regenerated.
23353         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
23354         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
23355         Regenerated.
23356         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
23357         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
23358         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
23359         * tests/unictype/test-pr_other_math.c: Regenerated.
23360         * tests/unictype/test-pr_punctuation.c: Regenerated.
23361         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
23362         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
23363         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
23364         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
23365         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
23366         * tests/unictype/test-pr_uppercase.c: Regenerated.
23367         * tests/unictype/test-pr_xid_continue.c: Regenerated.
23368         * tests/unictype/test-pr_xid_start.c: Regenerated.
23369         * tests/unictype/test-pr_zero_width.c: Regenerated.
23370
23371         Update to Unicode 5.1.0.
23372         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
23373         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
23374         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
23375         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
23376         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
23377         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
23378         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
23379         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
23380         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
23381         (nonspacing_table_ind): Update.
23382         * tests/uniwidth/test-uc_width2.sh: Update expected result.
23383
23384         Update to Unicode 5.1.0.
23385         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
23386         code transform.
23387         * lib/uniname/uniname.c (unicode_character_name,
23388         unicode_name_character): Add the range 0x1Fxxx to the code transform.
23389         * lib/uniname/uninames.h: Regenerated.
23390         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
23391
23392 2009-02-07  Bruno Haible  <bruno@clisp.org>
23393
23394         Merge gen-ctype and gen-lbrk into a single program.
23395         * lib/gen-uni-tables.c: New file, incorporating
23396         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
23397         Add directory prefixes to the names of the generated files.
23398         * lib/unictype/gen-ctype.c: Remove file.
23399         * lib/unilbrk/gen-lbrk.c: Remove file.
23400         * modules/gen-uni-tables: New file.
23401         * modules/unictype/gen-ctype: Remove file.
23402         * modules/unilbrk/gen-lbrk: Remove file.
23403
23404 2009-02-07  Bruno Haible  <bruno@clisp.org>
23405
23406         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
23407
23408         New module 'unistr/u32-strcoll'.
23409         * modules/unistr/u32-strcoll: New file.
23410         * lib/unistr/u32-strcoll.c: New file.
23411
23412         New module 'unistr/u16-strcoll'.
23413         * modules/unistr/u16-strcoll: New file.
23414         * lib/unistr/u16-strcoll.c: New file.
23415
23416         New module 'unistr/u8-strcoll'.
23417         * modules/unistr/u8-strcoll: New file.
23418         * lib/unistr/u8-strcoll.c: New file.
23419         * lib/unistr/u-strcoll.h: New file.
23420
23421 2009-02-07  Bruno Haible  <bruno@clisp.org>
23422
23423         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
23424         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23425         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23426         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
23427         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
23428         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
23429
23430 2009-02-07  Bruno Haible  <bruno@clisp.org>
23431
23432         Make 64-bit clean.
23433         * lib/unictype/gen-ctype.c (output_predicate, output_category,
23434         output_combclass, output_bidi_category, output_decimal_digit,
23435         output_digit, output_numeric, output_mirror, output_scripts,
23436         output_ident_category): Use proper width specifier in format strings.
23437
23438 2009-02-07  Bruno Haible  <bruno@clisp.org>
23439
23440         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
23441         failure behaviour.
23442
23443 2009-02-07  Jim Meyering  <meyering@redhat.com>
23444
23445         regex: avoid compilation failure with upcoming gcc-4.4
23446         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
23447         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
23448         "... error: integer overflow in preprocessor expression".
23449
23450 2009-02-05  Ben Pfaff  <blp@gnu.org>
23451
23452         Fix link errors on Windows when close module is used.
23453         * modules/close: Add $(LIB_CLOSE) to Link section.
23454         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
23455         $(LIB_CLOSE) on Windows.
23456
23457 2009-02-05  Jim Meyering  <meyering@redhat.com>
23458
23459         still avoid unused-parameter warnings, but do it cleanly
23460         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
23461         (get_fs_usage): Cast to void instead.
23462         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
23463         (dev_from_mount_options, read_file_system_list): Cast to void.
23464         Prompted by Bruno Haible.
23465
23466 2009-02-04  Jim Meyering  <meyering@redhat.com>
23467
23468         fsusage.c: correct copyright year
23469         * lib/fsusage.c: Reflect year in which the change is pushed into
23470
23471         avoid misc. warnings
23472         * lib/fsusage.c (UNUSED_PARAM): Define.
23473         (get_fs_usage): Mark parameter "disk" as unused.
23474         * lib/getugroups.c (getgrent): Use "void" in prototype.
23475         * lib/mountlist.c: Mark unused parameters.
23476         (read_file_system_list): Declare a local with "const".
23477         * lib/nanosleep.c (getnow): Declare static.
23478         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
23479
23480         dirfd: set errno upon failure
23481         * lib/dirfd.c: Include <errno.h>.
23482         Set errno to ENOTSUP when returning -1.
23483         * modules/dirfd (Depends-on): Add errno.
23484         Suggested by John Kodis <kodis@comcast.net>.
23485
23486 2009-02-01  Bruno Haible  <bruno@clisp.org>
23487
23488         Don't assume sizeof (long) >= sizeof (void *).
23489         * lib/memcmp.c: Include stdint.h.
23490         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
23491         srcp2 to 'const byte *'.
23492         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
23493         types to uintptr_t.
23494         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
23495         * modules/memcmp (Depends-on): Add stdint.
23496         Reported by Ozkan Sezer <sezeroz@gmail.com>.
23497
23498 2009-01-30  Eric Blake  <ebb9@byu.net>
23499
23500         fix more require-before-expand issues
23501         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
23502         expand, AC_PROG_AWK.
23503         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
23504
23505 2009-01-28  Eric Blake  <ebb9@byu.net>
23506
23507         version-etc: use consistent URL formatting
23508         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
23509         Improve formatting.  Use fputs for string without %.
23510
23511 2009-01-28  Jim Meyering  <meyering@redhat.com>
23512
23513         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
23514         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
23515         "underquoted definition of NAME" from autoconf-2.59.
23516
23517 2009-01-28  Bruno Haible  <bruno@clisp.org>
23518
23519         * doc/gnulib.texi: Add "Obsolete modules" to index.
23520
23521 2009-01-28  Jim Meyering  <meyering@redhat.com>
23522
23523         useless-if-before-free: recognize more variants
23524         * build-aux/useless-if-before-free: Also recognize e.g.,
23525         if (NULL != p) free (p);
23526
23527 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
23528
23529         test-getaddrinfo: skip (don't fail) this test when there's no network
23530         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
23531         on the presumption that it means you lack network access.
23532
23533 2009-01-26  Jim Meyering  <meyering@redhat.com>
23534
23535         fflush: avoid warnings on modern systems
23536         * lib/fflush.c (rpl_fflush): Move declarations of locals,
23537         pos and result, into scopes where they're used.
23538
23539 2009-01-26  Eric Blake  <ebb9@byu.net>
23540
23541         Silence warning reintroduced by recent extensions patch.
23542         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
23543         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
23544         autoconf.
23545
23546         Backport improved autoconf semantics of AC_DEFUN_ONCE.
23547         * m4/00gnulib.m4: New file.
23548         * gnulib-tool (func_get_filelist): Always use it.
23549         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
23550         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
23551
23552 2009-01-25  Bruno Haible  <bruno@clisp.org>
23553
23554         Make test-quotearg work on MacOS X and AIX.
23555         * tests/test-quotearg.sh: New file.
23556         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
23557         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
23558         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
23559         include <libintl.h>.
23560         (fake_locale): Remove variable.
23561         (gettext, dgettext, dcgettext): Remove functions.
23562         (main): Instead of setting a fake locale, set a real locale. Call
23563         textdomain and bindtextdomain.
23564         * modules/quotearg-tests (Files): Add the new files.
23565         (Depends-on): Add gettext, setenv, unsetenv.
23566         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
23567         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
23568         Augment TESTS_ENVIRONMENT.
23569
23570 2009-01-25  Bruno Haible  <bruno@clisp.org>
23571
23572         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
23573         fr_FR.ISO8859-1 locale on MacOS X.
23574         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
23575         ja_JP.eucJP locale on MacOS X.
23576         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
23577         zh_CN.GB18030 locale on MacOS X.
23578
23579 2009-01-25  Bruno Haible  <bruno@clisp.org>
23580
23581         Avoid link errors on MacOS X 10.3.
23582         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
23583         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23584
23585 2009-01-25  Bruno Haible  <bruno@clisp.org>
23586
23587         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23588         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
23589         * modules/pipe (Files): Remove m4/posix_spawn.m4.
23590         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23591         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
23592         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23593         posix_spawnattr_init, posix_spawnattr_setsigmask,
23594         posix_spawnattr_setflags, posix_spawnattr_destroy.
23595
23596         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23597         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
23598         * modules/execute (Files): Remove m4/posix_spawn.m4.
23599         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23600         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23601         posix_spawnattr_init, posix_spawnattr_setsigmask,
23602         posix_spawnattr_setflags, posix_spawnattr_destroy.
23603
23604 2009-01-25  Bruno Haible  <bruno@clisp.org>
23605
23606         * lib/glthread/threadlib.c: Include <stdlib.h>.
23607
23608 2009-01-25  Bruno Haible  <bruno@clisp.org>
23609
23610         * lib/glthread/threadlib.c (dummy): New declaration.
23611
23612 2009-01-25  Bruno Haible  <bruno@clisp.org>
23613
23614         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
23615         multibyte characters also for the GB18030 encoding. Don't crash when
23616         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
23617
23618 2009-01-25  Bruno Haible  <bruno@clisp.org>
23619
23620         Avoid redefining 'struct random_data' on OSF/1 5.1.
23621         * lib/stdlib.in.h: Include <random.h> if it exists.
23622         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
23623         HAVE_RANDOM_H. Include <random.h> when testing whether
23624         'struct random_data' exists.
23625         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
23626
23627 2009-01-25  Bruno Haible  <bruno@clisp.org>
23628
23629         Don't install charset.alias on MacOS X >= 10.3.
23630         * lib/localcharset.c (DARWIN7): New macro.
23631         (get_charset_aliases): Hardcode the result for Darwin7.
23632         * modules/localcharset (install-exec-local): Don't install
23633         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
23634
23635 2009-01-25  Bruno Haible  <bruno@clisp.org>
23636
23637         Don't install charset.alias on mingw and Cygwin.
23638         * modules/localcharset (install-exec-local): Don't install
23639         charset.alias on mingw and Cygwin, if the file does not yet exist.
23640         The result for these platforms is hardcoded in localcharset.c.
23641
23642 2009-01-25  Bruno Haible  <bruno@clisp.org>
23643
23644         Make it possible again to use AC_GNU_SOURCE together with gnulib.
23645         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
23646         before requiring AC_USE_SYSTEM_EXTENSIONS.
23647
23648 2009-01-25  Jim Meyering  <meyering@redhat.com>
23649
23650         c-strtod: avoid warnings
23651         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
23652         "assignment discards qualifiers from pointer target type" warnings.
23653
23654 2009-01-24  Bruno Haible  <bruno@clisp.org>
23655
23656         Add support for non-UTF-8 locales on MacOS X.
23657         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
23658         canonical encodings. For Darwin 7 and newer, don't map traditional
23659         encodings to UTF-8.
23660         Reported by Vincent Lefevre <vincent@vinc17.org>
23661         at <http://savannah.gnu.org/bugs/?25235>.
23662
23663 2009-01-24  Bruno Haible  <bruno@clisp.org>
23664
23665         * doc/gnulib.texi (Obsolete modules): New section.
23666         Reported by Mike Frysinger <vapier@gentoo.org>.
23667
23668 2009-01-24  Bruno Haible  <bruno@clisp.org>
23669
23670         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
23671         (%.dvi): New rule.
23672
23673 2009-01-24  Bruno Haible  <bruno@clisp.org>
23674
23675         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
23676         Reported by Eric Blake.
23677
23678 2009-01-24  Bruno Haible  <bruno@clisp.org>
23679
23680         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
23681         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
23682         Reported by Gary V. Vaughan <gary@gnu.org>.
23683
23684 2009-01-24  Bruno Haible  <bruno@clisp.org>
23685
23686         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
23687
23688 2009-01-23  Bruno Haible  <bruno@clisp.org>
23689
23690         Make c-strtod, c-strtold usable in libraries.
23691         * lib/c-strtod.c: Include string.h instead of xalloc.h.
23692         (C_STRTOD): Call strdup instead of xstrdup.
23693         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
23694         * modules/c-strtold (Depends-on): Likewise.
23695         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
23696         * NEWS: Mention the change.
23697         Reported by Michael Gold <mgold@ncf.ca>.
23698
23699 2009-01-23  Jim Meyering  <meyering@redhat.com>
23700
23701         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
23702         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
23703         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
23704
23705 2009-01-23  Simon Josefsson  <simon@josefsson.org>
23706
23707         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
23708         GNU CoreUtils.
23709         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
23710         * modules/version-etc (Description): Update.
23711
23712 2009-01-22  Bruno Haible  <bruno@clisp.org>
23713
23714         Cache the C locale object.
23715         * lib/c-strtod.c (c_locale_cache): New variable.
23716         (c_locale): New function.
23717         (C_STRTOD): Use it, and don't call freelocale.
23718         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
23719         Suggested by Paolo Bonzini.
23720
23721 2009-01-21  Bruno Haible  <bruno@clisp.org>
23722
23723         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
23724         conditions other than overflow.
23725
23726 2009-01-21  Bruno Haible  <bruno@clisp.org>
23727
23728         * lib/c-strtod.c: Include errno.h.
23729         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
23730         value from STRTOD_L and STRTOD.
23731
23732 2009-01-21  Bruno Haible  <bruno@clisp.org>
23733         and Jim Meyering  <meyering@redhat.com>
23734
23735         nanosleep: skip configure test (fail it) for apple universal builds
23736         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
23737         universal builds, assume that nanosleep does not work.
23738         * modules/nanosleep (Depends-on): Add multiarch.
23739
23740         mktime: skip configure test (fail it) for apple universal builds
23741         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
23742         universal builds, assume that mktime does not work.
23743         * modules/mktime (Depends-on): Add multiarch.
23744
23745 2009-01-21  Eric Blake  <ebb9@byu.net>
23746
23747         multiarch: avoid expand-before-require warning
23748         * modules/multiarch (configure.ac): Require, rather than expand,
23749         gl_MULTIARCH.
23750         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
23751         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
23752         enforce that all clients require it.  Partial reversion of
23753         2008-12-29 patch.
23754
23755         error: avoid expand-before-require warning
23756         * modules/errno (configure.ac): Require, rather than expand,
23757         gl_HEADER_ERRNO_H.
23758         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
23759         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
23760         enforce that all clients require it.
23761
23762         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
23763         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
23764         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
23765         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
23766
23767 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
23768
23769         Revert:
23770         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23771
23772         regex: do not depend on obsolete modules.
23773         * modules/regex: Remove memcmp and memmove.
23774
23775 2009-01-20  Bruno Haible  <bruno@clisp.org>
23776
23777         Make the 'link' module link on Windows NT 4.
23778         * lib/link.c (_WIN32_WINNT): Don't define.
23779         (CreateHardLinkFuncType): New type.
23780         (CreateHardLinkFunc, initialized): New variables.
23781         (initialize): New function.
23782         (link): Invoke CreateHardLink indirectly through the function pointer.
23783
23784 2009-01-20  Bruno Haible  <bruno@clisp.org>
23785
23786         Fix compilation failure on mingw.
23787         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
23788
23789 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
23790
23791         * doc/c-strtod.texi: Mention a couple of restrictions.
23792
23793 2009-01-20  Jim Meyering  <meyering@redhat.com>
23794
23795         gettimeofday: move more declarations out of functions
23796         * lib/gettimeofday.c: Move extern declarations of tzset and
23797         gmtime out of containing functions.  Prompted by Bruno Haible.
23798
23799 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23800
23801         regex: do not depend on obsolete modules.
23802         * modules/regex: Remove memcmp and memmove.
23803
23804 2009-01-19  Bruno Haible  <bruno@clisp.org>
23805
23806         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23807         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
23808         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23809         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
23810         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
23811
23812 2009-01-19  Bruno Haible  <bruno@clisp.org>
23813
23814         * tests/test-link.c: Include <errno.h>.
23815         (main): Exit with code 77 when a hard link cannot be created due to
23816         the file system.
23817         * tests/test-link.sh: Skip test when a hard link cannot be created due
23818         to the file system.
23819         Suggested by Eric Blake.
23820
23821 2009-01-19  Martin Lambers  <marlam@marlam.de>
23822
23823         * modules/link-tests: New file.
23824         * tests/test-link.sh: New file.
23825         * tests/test-link.c: New file.
23826
23827 2009-01-19  Eric Blake  <ebb9@byu.net>
23828
23829         doc: mention another function added in cygwin 1.7.0
23830         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
23831         Another new function in cygwin 1.7.
23832
23833 2009-01-19  Bruno Haible  <bruno@clisp.org>
23834
23835         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23836         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
23837         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
23838         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23839         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23840         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
23841         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23842         * m4/md4.m4 (gl_MD4): Likewise.
23843         * m4/md5.m4 (gl_MD5): Likewise.
23844         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
23845         * m4/sha1.m4 (gl_SHA1): Likewise.
23846         * m4/sha256.m4 (gl_SHA256): Likewise.
23847         * m4/sha512.m4 (gl_SHA512): Likewise.
23848
23849 2009-01-19  Bruno Haible  <bruno@clisp.org>
23850
23851         * modules/uniname/uniname-tests (Depends-on): Add progname.
23852         * tests/uniname/test-uninames.c: Include progname.h.
23853         (main): Call set_program_name.
23854
23855         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
23856         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
23857         (main): Call set_program_name.
23858
23859         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
23860         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
23861         (main): Call set_program_name.
23862
23863         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
23864         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
23865         (main): Call set_program_name.
23866
23867         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
23868         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
23869         (main): Call set_program_name.
23870
23871         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
23872         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
23873         (main): Call set_program_name.
23874
23875         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
23876         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
23877         (main): Call set_program_name.
23878
23879         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
23880         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
23881         (main): Call set_program_name.
23882
23883         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
23884         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
23885         (main): Call set_program_name.
23886
23887 2009-01-19  Eric Blake  <ebb9@byu.net>
23888
23889         test-unistd: test previous patch
23890         * tests/test-unistd.c: Test *_FILENO macros.
23891
23892         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
23893         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23894         Guarantee a definition.
23895         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
23896         * modules/unistd-safer (Depends-on): Add dependency on unistd.
23897         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
23898         * lib/dup-safer.c (STDERR_FILENO): Likewise.
23899         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23900         Likewise.
23901         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
23902         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
23903         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23904         Likewise.
23905         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
23906         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
23907         (STDERR_FILENO): Likewise.
23908         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
23909         (STDERR_FILENO): Likewise.
23910         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
23911         (STDERR_FILENO): Likewise.
23912         Reported by Elbert Pol.
23913
23914 2009-01-19  Eric Blake  <ebb9@byu.net>
23915
23916         doc: mention more functions added in cygwin 1.7.0
23917         * doc/posix-functions/abort.texi (abort): Update wording related
23918         to cygwin.
23919         * doc/posix-functions/daylight.texi (daylight): Likewise.
23920         * doc/posix-functions/optarg.texi (optarg): Likewise.
23921         * doc/posix-functions/optarg.texi (opterr): Likewise.
23922         * doc/posix-functions/optarg.texi (optind): Likewise.
23923         * doc/posix-functions/optarg.texi (optopt): Likewise.
23924         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
23925         worked in 1.5.x, and was withdrawn in 1.7.
23926         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
23927         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
23928         cygwin versions.
23929         * doc/posix-functions/perror.texi (perror): Likewise.
23930         * doc/posix-functions/printf.texi (printf): Likewise.
23931         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
23932         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
23933         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
23934         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
23935         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23936         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
23937         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23938         Likewise.
23939         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23940         Likewise.
23941         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
23942         this function.
23943         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
23944         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
23945         Likewise.
23946         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
23947         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
23948         * doc/posix-functions/confstr.texi (confstr): Likewise.
23949         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
23950         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
23951         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
23952         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
23953         * doc/posix-functions/fputws.texi (fputws): Likewise.
23954         * doc/posix-functions/fwide.texi (fwide): Likewise.
23955         * doc/posix-functions/getwc.texi (getwc): Likewise.
23956         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
23957         * doc/posix-functions/putwc.texi (putwc): Likewise.
23958         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
23959         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
23960         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
23961         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
23962         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
23963         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
23964         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
23965         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
23966         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
23967         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
23968         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
23969
23970 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23971
23972         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
23973         * lib/ioctl.c: Include <sys/ioctl.h>.
23974
23975 2009-01-19  Simon Josefsson  <simon@josefsson.org>
23976
23977         * modules/getdate-tests (Depends-on): Add progname.
23978         * tests/test-getdate.c: Use progname module, to avoid link errors
23979         on non-glibc systems.
23980
23981 2009-01-18  Simon Josefsson  <simon@josefsson.org>
23982
23983         * modules/filenamecat-tests (Depends-on): Add progname.
23984         * modules/fstrcmp-tests (Depends-on): Likewise.
23985
23986         * tests/test-filenamecat.c: Use progname module, to avoid link
23987         errors on non-glibc systems.
23988         * tests/test-fstrcmp.c: Likewise.
23989
23990 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23991
23992         gettimeofday: avoid warning: nested extern declaration of 'localtime'
23993         * lib/gettimeofday.c: Move extern declaration out of function.
23994
23995 2009-01-18  Bruno Haible  <bruno@clisp.org>
23996
23997         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
23998         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
23999         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
24000
24001 2009-01-18  Bruno Haible  <bruno@clisp.org>
24002
24003         * lib/strftime.c (MEMPCPY): Remove unused macro.
24004         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
24005
24006 2009-01-18  Martin Lambers  <marlam@marlam.de>
24007
24008         New module 'link'.
24009         * lib/unistd.in.h (link): New declaration.
24010         * lib/link.c: New file.
24011         * m4/link.m4: New file.
24012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
24013         HAVE_LINK.
24014         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
24015         * modules/link: New file.
24016         * doc/posix-functions/link.texi: Mention the new module.
24017
24018 2009-01-18  Bruno Haible  <bruno@clisp.org>
24019
24020         * tests/test-avltree_list.c (main): Call set_program_name.
24021         * tests/test-avltree_oset.c (main): Likewise.
24022         * tests/test-obstack-printf.c: Include progname.h.
24023         (main): Call set_program_name.
24024         * tests/test-quotearg.c: Include progname.h.
24025         (main): Call set_program_name.
24026         * tests/test-xmemdup0.c: Include progname.h.
24027         (main): Call set_program_name.
24028
24029 2009-01-18  Bruno Haible  <bruno@clisp.org>
24030
24031         New module 'alphasort'.
24032         * lib/dirent.in.h (alphasort): New declaration.
24033         * lib/alphasort.c: New file, from glibc with modifications.
24034         * m4/alphasort.m4: New file.
24035         * modules/alphasort: New file.
24036         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
24037         HAVE_ALPHASORT.
24038         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
24039         HAVE_ALPHASORT.
24040         * doc/posix-functions/alphasort.texi: Mention the new module and the
24041         portability problems.
24042
24043 2009-01-18  Bruno Haible  <bruno@clisp.org>
24044
24045         New module 'scandir'.
24046         * lib/dirent.in.h (scandir): New declaration.
24047         * lib/scandir.c: New file, from glibc with modifications.
24048         * m4/scandir.m4: New file.
24049         * modules/scandir: New file.
24050         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
24051         HAVE_SCANDIR.
24052         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
24053         HAVE_SCANDIR.
24054         * doc/posix-functions/scandir.texi: Mention the new module and the
24055         portability problems.
24056
24057 2009-01-17  Bruno Haible  <bruno@clisp.org>
24058
24059         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
24060         Update documentation.
24061         (func_remove_suffix): Escape all dots in the suffix. Update
24062         documentation.
24063         (func_filter_filelist): Update documentation.
24064         Reported by Ralf Wildenhues.
24065
24066 2009-01-17  Bruno Haible  <bruno@clisp.org>
24067
24068         * modules/dprintf-posix-tests: New file.
24069         * tests/test-dprintf-posix.sh: New file.
24070         * tests/test-dprintf-posix.c: New file.
24071
24072         New modules 'dprintf', 'dprintf-posix'.
24073         * lib/stdio.in.h (dprintf): New declaration.
24074         * lib/dprintf.c: New file.
24075         * m4/dprintf.m4: New file.
24076         * m4/dprintf-posix.m4: New file.
24077         * modules/dprintf: New file.
24078         * modules/dprintf-posix: New file.
24079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
24080         HAVE_DPRINTF, REPLACE_DPRINTF.
24081         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
24082         HAVE_DPRINTF, REPLACE_DPRINTF.
24083         * doc/posix-functions/dprintf.texi: Mention the new modules.
24084
24085 2009-01-17  Bruno Haible  <bruno@clisp.org>
24086
24087         * modules/vdprintf-posix-tests: New file.
24088         * tests/test-vdprintf-posix.sh: New file.
24089         * tests/test-vdprintf-posix.c: New file.
24090
24091         New modules 'vdprintf', 'vdprintf-posix'.
24092         * lib/stdio.in.h (vdprintf): New declaration.
24093         * lib/vdprintf.c: New file.
24094         * m4/vdprintf.m4: New file.
24095         * m4/vdprintf-posix.m4: New file.
24096         * modules/vdprintf: New file.
24097         * modules/vdprintf-posix: New file.
24098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
24099         HAVE_VDPRINTF, REPLACE_VDPRINTF.
24100         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
24101         HAVE_VDPRINTF, REPLACE_VDPRINTF.
24102         * doc/posix-functions/vdprintf.texi: Mention the new modules.
24103
24104 2009-01-17  Bruno Haible  <bruno@clisp.org>
24105
24106         Fix replacement of fopen on mingw.
24107         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
24108         mingw.
24109
24110 2009-01-17  Bruno Haible  <bruno@clisp.org>
24111
24112         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
24113         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
24114
24115 2009-01-17  Bruno Haible  <bruno@clisp.org>
24116
24117         Avoid test-fflush2.sh failure on mingw.
24118         * tests/test-fflush2.c: Include binary-io.h.
24119         (main): Put standard input into binary mode.
24120         * modules/fflush-tests (Depends-on): Add binary-io.
24121
24122 2009-01-17  Bruno Haible  <bruno@clisp.org>
24123
24124         * lib/wchar.in.h: In another particular situation, include only the
24125         system's <wchar.h> file.
24126         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
24127         Reported by Albert Chin-A-Young <china@thewrittenword.com>
24128         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
24129
24130 2009-01-17  Bruno Haible  <bruno@clisp.org>
24131
24132         Support for stripping executables in --enable-relocatable.
24133         * build-aux/install-reloc: Expect one more argument, or an environment
24134         variable RELOC_STRIP_PROG. If set, strip the destination program and
24135         its wrapper.
24136         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
24137         RELOC_STRIP_PROG.
24138         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
24139         to set RELOCATABLE_STRIP.
24140         * NEWS: Mention the new Makefile requirement.
24141
24142 2009-01-17  Bruno Haible  <bruno@clisp.org>
24143
24144         * build-aux/install-reloc: Remove debugging information left over by
24145         C compiler on MacOS X.
24146
24147 2009-01-17  Bruno Haible  <bruno@clisp.org>
24148
24149         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
24150         * lib/progreloc.c (find_executable): Fix type of pointer passed to
24151         _NSGetExecutablePath.
24152
24153 2009-01-16  Jim Meyering  <meyering@redhat.com>
24154
24155         strerror: avoid warnings about discarding "const"
24156         * lib/strerror.c (rpl_strerror): Instead of returning a const
24157         string from each and every "case", use a variable, and add a single
24158         cast after the switch.
24159
24160 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
24161
24162         * lib/arpa_inet.in.h: Add extern "C" block for C++.
24163
24164 2009-01-16  Bruno Haible  <bruno@clisp.org>
24165
24166         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
24167         array initializer syntax that also works in C++ mode.
24168         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24169
24170 2009-01-16  Jim Meyering  <meyering@redhat.com>
24171
24172         poll: suppress a warning
24173         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
24174         to ignore "...unsigned expression < 0 is always false" warnings.
24175
24176 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
24177
24178         poll: remove declarations of unused variables
24179         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
24180         sockbuf and optlen.
24181
24182 2009-01-15  Bruno Haible  <bruno@clisp.org>
24183
24184         Make fflush-after-ungetc POSIX compliant on BSD systems.
24185         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
24186         (clear_ungetc_buffer): Implement also for other systems.
24187         (rpl_fflush): On glibc systems, invoke
24188         clear_ungetc_buffer_preserving_position. Otherwise, invoke
24189         clear_ungetc_buffer after fetching the stream's position, not before.
24190
24191 2009-01-15  Bruno Haible  <bruno@clisp.org>
24192
24193         Make fflush-after-ungetc POSIX compliant on glibc systems.
24194         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
24195         after ungetc.
24196         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
24197         (rpl_fflush): On glibc systems, simply call the system's fflush
24198         function after clearing the ungetc buffer.
24199         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
24200         Instead, lseek only to the end of file, then use the system's fseeko
24201         for the rest. On glibc systems, reset the EOF indicator bit.
24202
24203 2009-01-15  Jim Meyering  <meyering@redhat.com>
24204
24205         openmp.m4: revert quote-adding change, for portability to older autoconf
24206         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
24207         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
24208         Simon Josefsson noticed the problem when using autoconf-2.61.
24209
24210 2009-01-15  Bruno Haible  <bruno@clisp.org>
24211
24212         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
24213         * tests/test-fflush2.c (ASSERT): Always fail.
24214         (main): Add two tests for fflush() after ungetc(), taking into account
24215         the Austin Group's clarification.
24216         Suggested by Eric Blake.
24217
24218 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
24219
24220         mktime.m4: remove K&R-style function prototypes
24221         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
24222         for the Sun C++ compiler.
24223
24224 2009-01-14  Bruno Haible  <bruno@clisp.org>
24225
24226         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
24227         while including <wchar.h>.
24228         * lib/wchar.in.h: In two particular situations on HP-UX, include only
24229         the system's <wchar.h> file.
24230         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24231
24232 2009-01-14  Bruno Haible  <bruno@clisp.org>
24233
24234         * m4/csharp.m4: Don't mention gettext on the serial number line.
24235         * m4/csharpexec.m4: Likewise.
24236         * m4/eaccess.m4: Likewise.
24237         * m4/javaexec.m4: Likewise.
24238         * m4/sig_atomic_t.m4: Likewise.
24239         * m4/tmpdir.m4: Likewise.
24240         * m4/intldir.m4: Bump gettext version.
24241         * m4/lib-ld.m4: Likewise.
24242
24243 2009-01-14  Bruno Haible  <bruno@clisp.org>
24244
24245         * lib/progname.c (set_program_name): Add more comments.
24246         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24247
24248 2009-01-14  Simon Josefsson  <simon@josefsson.org>
24249
24250         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
24251         were sys/stat.h does not define it.
24252
24253 2009-01-14  Jim Meyering  <meyering@redhat.com>
24254
24255         many *.m4 files: improve m4 quoting
24256         99% of this change was performed by running the following commands:
24257         git ls-files | grep '\.m4$' | xargs perl -pi \
24258           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
24259           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
24260           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
24261           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
24262         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
24263         The remainder were to add Copyright dates, increment serial numbers,
24264         undo some changes in comments, exclude m4/intl.m4, and add quotes
24265         around the "1" in ",1" where the unusual spacing prohibited the
24266         above regexps from doing the job.  For more details, see
24267         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
24268         * m4/acl.m4: Modified.
24269         * m4/afs.m4: Likewise.
24270         * m4/alloca.m4: Likewise.
24271         * m4/argp.m4: Likewise.
24272         * m4/argz.m4: Likewise.
24273         * m4/atexit.m4: Likewise.
24274         * m4/bison-i18n.m4: Likewise.
24275         * m4/bison.m4: Likewise.
24276         * m4/byteswap.m4: Likewise.
24277         * m4/c-stack.m4: Likewise.
24278         * m4/c-strtod.m4: Likewise.
24279         * m4/calloc.m4: Likewise.
24280         * m4/canonicalize-lgpl.m4: Likewise.
24281         * m4/chown.m4: Likewise.
24282         * m4/clock_time.m4: Likewise.
24283         * m4/codeset.m4: Likewise.
24284         * m4/copy-file.m4: Likewise.
24285         * m4/csharp.m4: Likewise.
24286         * m4/csharpcomp.m4: Likewise.
24287         * m4/csharpexec.m4: Likewise.
24288         * m4/d-ino.m4: Likewise.
24289         * m4/d-type.m4: Likewise.
24290         * m4/dirfd.m4: Likewise.
24291         * m4/double-slash-root.m4: Likewise.
24292         * m4/eaccess.m4: Likewise.
24293         * m4/eealloc.m4: Likewise.
24294         * m4/environ.m4: Likewise.
24295         * m4/errno_h.m4: Likewise.
24296         * m4/euidaccess.m4: Likewise.
24297         * m4/execute.m4: Likewise.
24298         * m4/fatal-signal.m4: Likewise.
24299         * m4/fchdir.m4: Likewise.
24300         * m4/fcntl_h.m4: Likewise.
24301         * m4/fileblocks.m4: Likewise.
24302         * m4/filenamecat.m4: Likewise.
24303         * m4/findprog.m4: Likewise.
24304         * m4/flexmember.m4: Likewise.
24305         * m4/fnmatch.m4: Likewise.
24306         * m4/fopen.m4: Likewise.
24307         * m4/fpending.m4: Likewise.
24308         * m4/fprintf-posix.m4: Likewise.
24309         * m4/free.m4: Likewise.
24310         * m4/frexp.m4: Likewise.
24311         * m4/frexpl.m4: Likewise.
24312         * m4/fsusage.m4: Likewise.
24313         * m4/ftruncate.m4: Likewise.
24314         * m4/gc-camellia.m4: Likewise.
24315         * m4/gc-random.m4: Likewise.
24316         * m4/gc.m4: Likewise.
24317         * m4/getaddrinfo.m4: Likewise.
24318         * m4/getcwd-abort-bug.m4: Likewise.
24319         * m4/getcwd-path-max.m4: Likewise.
24320         * m4/getdate.m4: Likewise.
24321         * m4/getdomainname.m4: Likewise.
24322         * m4/getgroups.m4: Likewise.
24323         * m4/gethostname.m4: Likewise.
24324         * m4/gethrxtime.m4: Likewise.
24325         * m4/getline.m4: Likewise.
24326         * m4/getloadavg.m4: Likewise.
24327         * m4/getndelim2.m4: Likewise.
24328         * m4/getpass.m4: Likewise.
24329         * m4/gettext.m4: Likewise.
24330         * m4/gettime.m4: Likewise.
24331         * m4/gettimeofday.m4: Likewise.
24332         * m4/gnulib-common.m4: Likewise.
24333         * m4/group-member.m4: Likewise.
24334         * m4/host-os.m4: Likewise.
24335         * m4/iconv.m4: Likewise.
24336         * m4/iconv_open.m4: Likewise.
24337         * m4/inet_ntop.m4: Likewise.
24338         * m4/inet_pton.m4: Likewise.
24339         * m4/inline.m4: Likewise.
24340         * m4/intldir.m4: Likewise.
24341         * m4/intlmacosx.m4: Likewise.
24342         * m4/intmax.m4: Likewise.
24343         * m4/intmax_t.m4: Likewise.
24344         * m4/inttypes.m4: Likewise.
24345         * m4/inttypes_h.m4: Likewise.
24346         * m4/inttypes-pri.m4: Likewise.
24347         * m4/isapipe.m4: Likewise.
24348         * m4/isnand.m4: Likewise.
24349         * m4/isnanf.m4: Likewise.
24350         * m4/isnanl.m4: Likewise.
24351         * m4/javacomp.m4: Likewise.
24352         * m4/javaexec.m4: Likewise.
24353         * m4/jm-winsz1.m4: Likewise.
24354         * m4/jm-winsz2.m4: Likewise.
24355         * m4/lchown.m4: Likewise.
24356         * m4/lcmessage.m4: Likewise.
24357         * m4/ldexpl.m4: Likewise.
24358         * m4/lib-ld.m4: Likewise.
24359         * m4/lib-link.m4: Likewise.
24360         * m4/libsigsegv.m4: Likewise.
24361         * m4/link-follow.m4: Likewise.
24362         * m4/localcharset.m4: Likewise.
24363         * m4/locale-fr.m4: Likewise.
24364         * m4/locale-ja.m4: Likewise.
24365         * m4/locale-tr.m4: Likewise.
24366         * m4/locale-zh.m4: Likewise.
24367         * m4/lock.m4: Likewise.
24368         * m4/longlong.m4: Likewise.
24369         * m4/ls-mntd-fs.m4: Likewise.
24370         * m4/lstat.m4: Likewise.
24371         * m4/malloc.m4: Likewise.
24372         * m4/mathl.m4: Likewise.
24373         * m4/mbrtowc.m4: Likewise.
24374         * m4/mbstate_t.m4: Likewise.
24375         * m4/mbswidth.m4: Likewise.
24376         * m4/memchr.m4: Likewise.
24377         * m4/memcmp.m4: Likewise.
24378         * m4/memcpy.m4: Likewise.
24379         * m4/memmem.m4: Likewise.
24380         * m4/memmove.m4: Likewise.
24381         * m4/mempcpy.m4: Likewise.
24382         * m4/memrchr.m4: Likewise.
24383         * m4/memset.m4: Likewise.
24384         * m4/minmax.m4: Likewise.
24385         * m4/mkdir-slash.m4: Likewise.
24386         * m4/mkdtemp.m4: Likewise.
24387         * m4/mktime.m4: Likewise.
24388         * m4/mmap-anon.m4: Likewise.
24389         * m4/mountlist.m4: Likewise.
24390         * m4/nanosleep.m4: Likewise.
24391         * m4/nls.m4: Likewise.
24392         * m4/nocrash.m4: Likewise.
24393         * m4/open.m4: Likewise.
24394         * m4/openat.m4: Likewise.
24395         * m4/openmp.m4: Likewise.
24396         * m4/pathmax.m4: Likewise.
24397         * m4/perl.m4: Likewise.
24398         * m4/physmem.m4: Likewise.
24399         * m4/pipe.m4: Likewise.
24400         * m4/po.m4: Likewise.
24401         * m4/poll.m4: Likewise.
24402         * m4/posixtm.m4: Likewise.
24403         * m4/posixver.m4: Likewise.
24404         * m4/printf-frexp.m4: Likewise.
24405         * m4/printf-frexpl.m4: Likewise.
24406         * m4/printf-posix.m4: Likewise.
24407         * m4/printf-posix-rpl.m4: Likewise.
24408         * m4/printf.m4: Likewise.
24409         * m4/progtest.m4: Likewise.
24410         * m4/putenv.m4: Likewise.
24411         * m4/readline.m4: Likewise.
24412         * m4/readlink.m4: Likewise.
24413         * m4/readutmp.m4: Likewise.
24414         * m4/realloc.m4: Likewise.
24415         * m4/regex.m4: Likewise.
24416         * m4/relocatable.m4: Likewise.
24417         * m4/relocatable-lib.m4: Likewise.
24418         * m4/rename-dest-slash.m4: Likewise.
24419         * m4/rename.m4: Likewise.
24420         * m4/rmdir-errno.m4: Likewise.
24421         * m4/rmdir.m4: Likewise.
24422         * m4/roundf.m4: Likewise.
24423         * m4/roundl.m4: Likewise.
24424         * m4/rpmatch.m4: Likewise.
24425         * m4/save-cwd.m4: Likewise.
24426         * m4/selinux-selinux-h.m4: Likewise.
24427         * m4/setenv.m4: Likewise.
24428         * m4/settime.m4: Likewise.
24429         * m4/sig2str.m4: Likewise.
24430         * m4/sig_atomic_t.m4: Likewise.
24431         * m4/signalblocking.m4: Likewise.
24432         * m4/signbit.m4: Likewise.
24433         * m4/sigpipe.m4: Likewise.
24434         * m4/sockets.m4: Likewise.
24435         * m4/sockpfaf.m4: Likewise.
24436         * m4/st_dm_mode.m4: Likewise.
24437         * m4/stat-time.m4: Likewise.
24438         * m4/stdbool.m4: Likewise.
24439         * m4/stdint.m4: Likewise.
24440         * m4/stdint_h.m4: Likewise.
24441         * m4/stpcpy.m4: Likewise.
24442         * m4/stpncpy.m4: Likewise.
24443         * m4/strcase.m4: Likewise.
24444         * m4/strchrnul.m4: Likewise.
24445         * m4/strcspn.m4: Likewise.
24446         * m4/strdup.m4: Likewise.
24447         * m4/strftime.m4: Likewise.
24448         * m4/strndup.m4: Likewise.
24449         * m4/strnlen.m4: Likewise.
24450         * m4/strpbrk.m4: Likewise.
24451         * m4/strptime.m4: Likewise.
24452         * m4/strsep.m4: Likewise.
24453         * m4/strtod.m4: Likewise.
24454         * m4/strtoimax.m4: Likewise.
24455         * m4/strtok_r.m4: Likewise.
24456         * m4/strtol.m4: Likewise.
24457         * m4/strtoll.m4: Likewise.
24458         * m4/strtoul.m4: Likewise.
24459         * m4/strtoull.m4: Likewise.
24460         * m4/strtoumax.m4: Likewise.
24461         * m4/strverscmp.m4: Likewise.
24462         * m4/threadlib.m4: Likewise.
24463         * m4/timegm.m4: Likewise.
24464         * m4/tm_gmtoff.m4: Likewise.
24465         * m4/tmpdir.m4: Likewise.
24466         * m4/tmpfile.m4: Likewise.
24467         * m4/tzset.m4: Likewise.
24468         * m4/uintmax_t.m4: Likewise.
24469         * m4/unlinkdir.m4: Likewise.
24470         * m4/unlocked-io.m4: Likewise.
24471         * m4/uptime.m4: Likewise.
24472         * m4/userspec.m4: Likewise.
24473         * m4/utimbuf.m4: Likewise.
24474         * m4/utime.m4: Likewise.
24475         * m4/utimes-null.m4: Likewise.
24476         * m4/utimes.m4: Likewise.
24477         * m4/vararrays.m4: Likewise.
24478         * m4/vasnprintf.m4: Likewise.
24479         * m4/vfprintf-posix.m4: Likewise.
24480         * m4/vprintf-posix.m4: Likewise.
24481         * m4/wait-process.m4: Likewise.
24482         * m4/wchar_t.m4: Likewise.
24483         * m4/wint_t.m4: Likewise.
24484         * m4/write-any-file.m4: Likewise.
24485         * m4/yield.m4: Likewise.
24486
24487 2009-01-13  Bruno Haible  <bruno@clisp.org>
24488
24489         Avoid test-copy-file.sh failures when ACL support insufficient.
24490         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
24491         TESTS_ENVIRONMENT.
24492         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
24493         Reported by Jim Meyering.
24494
24495 2009-01-13  Bruno Haible  <bruno@clisp.org>
24496
24497         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
24498         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
24499         * modules/unistdio/u8-printf-parse (Files): Likewise.
24500         * modules/unistdio/u32-printf-parse (Files): Likewise.
24501         * modules/unistdio/ulc-printf-parse (Files): Likewise.
24502
24503 2009-01-13  Simon Josefsson  <simon@josefsson.org>
24504
24505         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
24506         and m4/inttypes_h.m4 too.
24507
24508 2009-01-12  Eric Blake  <ebb9@byu.net>
24509
24510         tests: IRIX 6.2 cc can't compile -0.0 into .data
24511         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
24512         rather than at compile-time.
24513         * tests/test-floorl.c (minus_zero): Likewise.
24514         * tests/test-frexpl.c (minus_zero): Likewise.
24515         * tests/test-isnan.c (minus_zerol): Likewise.
24516         * tests/test-isnanl.h (minus_zero): Likewise.
24517         * tests/test-ldexpl.c (minus_zero): Likewise.
24518         * tests/test-roundl.c (minus_zero): Likewise.
24519         * tests/test-signbit.c (minus_zerol): Likewise.
24520         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24521         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24522         * tests/test-truncl.c (minus_zero): Likewise.
24523         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24524         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24525         Reported by Tom G. Christensen and Nelson H. F. Beebe.
24526
24527 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24528
24529         regex: fix glibc bug 9697
24530         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
24531         handling.
24532
24533 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24534
24535         regex: fix glibc bug 697
24536         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
24537         being NULL also if there are no backreferences.
24538
24539 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24540
24541         regex: merge glibc changes
24542         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
24543         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
24544         re_string_skip_chars, re_string_reconstruct): Likewise.
24545         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
24546
24547 2009-01-07  Jim Meyering  <meyering@redhat.com>
24548
24549         poll: filter through cppi
24550         * lib/poll.c: Indent cpp directives to reflect nesting.
24551
24552 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
24553
24554         poll: don't return uninitialized
24555         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
24556
24557 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
24558
24559         avoid compile failure on AIX 6.1
24560         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
24561         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
24562
24563 2009-01-04  Jim Meyering  <meyering@redhat.com>
24564
24565         remove duplicate inclusion of <stdio.h>
24566         * tests/test-fprintf-posix.c: Likewise.
24567         * tests/test-printf-posix.c: Likewise.
24568         * tests/test-snprintf-posix.c: Likewise.
24569         * tests/test-sprintf-posix.c: Likewise.
24570         * tests/test-vasprintf-posix.c: Likewise.
24571         * tests/test-vfprintf-posix.c: Likewise.
24572         * tests/test-vprintf-posix.c: Likewise.
24573         * tests/test-vsnprintf-posix.c: Likewise.
24574         * tests/test-vsprintf-posix.c: Likewise.
24575
24576 2009-01-03  Jim Meyering  <meyering@redhat.com>
24577
24578         gnulib-tool: fix sed-based filtering
24579         * gnulib-tool (func_filter_filelist): Remove extra backslash
24580         in sed_fff_filter definition.
24581
24582 2009-01-02  Jim Meyering  <meyering@redhat.com>
24583
24584         strftime: avoid compilation failure on Solaris 2.6
24585         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
24586         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
24587         Don't #define mbrlen or mbsinit, since now they're guaranteed to
24588         be available.  Reported by Tom G. Christensen.  Details in
24589         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
24590
24591 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24592             Bruno Haible  <bruno@clisp.org>
24593
24594         Speed up gnulib-tool by doing more string processing through shell
24595         built-ins.
24596         * gnulib-tool (fast_func_append): New variable.
24597         (func_remove_prefix, func_remove_suffix): New functions.
24598         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
24599         (func_filter_filelist): New function.
24600         (func_get_dependencies): Use func_remove_suffix instead of sed.
24601         (func_get_automake_snippet): Use func_filter_filelist instead of a
24602         subshell and sed invocation.
24603
24604 2009-01-01  Bruno Haible  <bruno@clisp.org>
24605
24606         Fix a security bug.
24607         * gnulib-tool (func_import, import, update): Don't allow the characters
24608         '"', '$', '`', '\' in macro arguments that become part of commands that
24609         are evaluated.
24610
24611 2009-01-01  Bruno Haible  <bruno@clisp.org>
24612
24613         * gnulib-tool (func_reset_sigpipe): Add more comments.
24614
24615 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24616
24617         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
24618         func_emit_tests_Makefile_am, func_import): Abort loops early if we
24619         already know the answer.
24620
24621 2009-01-01  Jim Meyering  <meyering@redhat.com>
24622
24623         * lib/version-etc.c (version_etc_va): Update copyright year.
24624
24625 2008-12-30  Bruno Haible  <bruno@clisp.org>
24626
24627         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
24628         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
24629         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
24630
24631 2008-12-29  Eric Blake  <ebb9@byu.net>
24632
24633         multiarch: avoid autoconf AC_REQUIRE bug
24634         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
24635         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
24636         2.63 and older.
24637         Reported by Bruno Haible, and analyzed in
24638         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
24639
24640 2008-12-29  Bruno Haible  <bruno@clisp.org>
24641
24642         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
24643         files in subdirectories correctly.
24644         Reported by Ralf Wildenhues.
24645
24646 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24647
24648         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
24649         rather than 'join FILE -', for Solaris join.
24650
24651 2008-12-29  Bruno Haible  <bruno@clisp.org>
24652
24653         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
24654         quoting.
24655         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
24656         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24657         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24658         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
24659         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24660         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
24661         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
24662         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
24663         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24664         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
24665         * m4/nls.m4 (AM_NLS): Likewise.
24666         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
24667         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
24668         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24669         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
24670         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
24671         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24672         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
24673         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
24674         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
24675         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
24676         * m4/xsize.m4 (gl_XSIZE): Likewise.
24677         Suggested by Jim Meyering.
24678
24679 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24680
24681         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
24682         * lib/parse-duration.c: use a switch instead of cascading if's.
24683
24684 2008-12-29  Eric Blake  <ebb9@byu.net>
24685
24686         wchar.h: supply WEOF on Irix 5.3
24687         * lib/wchar.in.h (wint_t): Also supply WEOF.
24688         * lib/wctype.in.h (wint_t): Likewise.
24689         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
24690         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
24691         Reported by Tom G. Christensen.
24692
24693 2008-12-26  Bruno Haible  <bruno@clisp.org>
24694
24695         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
24696         i486, i586, i686.
24697
24698 2008-12-26  Bruno Haible  <bruno@clisp.org>
24699
24700         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
24701
24702 2008-12-26  Bruno Haible  <bruno@clisp.org>
24703
24704         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
24705         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
24706         not __STDC_CONSTANT_MACROS.
24707         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24708
24709 2008-12-25  Bruno Haible  <bruno@clisp.org>
24710
24711         Add support for universal builds to vasnprintf.
24712         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
24713         universal builds, guess no.
24714         * modules/vasnprintf-posix (Depends-on): Add multiarch.
24715         * modules/vasprintf-posix (Depends-on): Likewise.
24716         * modules/fprintf-posix (Depends-on): Likewise.
24717         * modules/vfprintf-posix (Depends-on): Likewise.
24718         * modules/snprintf-posix (Depends-on): Likewise.
24719         * modules/vsnprintf-posix (Depends-on): Likewise.
24720         * modules/sprintf-posix (Depends-on): Likewise.
24721         * modules/vsprintf-posix (Depends-on): Likewise.
24722         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24723         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24724         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24725         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24726         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24727         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24728         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24729
24730         Add support for universal builds to <inttypes.h>.
24731         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
24732         _SCNu64_PREFIX): In Apple
24733         universal builds, define directly, using _LP64.
24734         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
24735         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
24736         * modules/inttypes (Depends-on): Add multiarch.
24737         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24738
24739         Add support for universal builds to <stdint.h>.
24740         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
24741         universal builds, define directly, using _LP64.
24742         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
24743         Apple universal builds, don't test for the size and suffix of ptrdiff_t
24744         and size_t.
24745         * modules/stdint (Depends-on): Add multiarch.
24746         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24747
24748         New module 'multiarch'.
24749         * modules/multiarch: New file.
24750         * m4/multiarch.m4: New file.
24751
24752 2008-12-25  Bruno Haible  <bruno@clisp.org>
24753
24754         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
24755
24756 2008-12-25  Bruno Haible  <bruno@clisp.org>
24757
24758         * modules/btowc (License): Relicense under LGPLv2+.
24759         * modules/mbsinit (License): Likewise.
24760         * modules/mbrtowc (License): Likewise.
24761         * modules/wcrtomb (License): Likewise.
24762         * modules/streq (License): Likewise.
24763         Reported by David Lutterkort <lutter@redhat.com>.
24764
24765 2008-12-23  Bruno Haible  <bruno@clisp.org>
24766
24767         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
24768
24769 2008-12-23  Bruno Haible  <bruno@clisp.org>
24770
24771         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
24772         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
24773         GETADDRINFO_LIB, not in LIBS.
24774         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
24775         * modules/canon-host (Link): Likewise.
24776         * NEWS: Mention the change.
24777         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
24778         GETADDRINFO_LIB.
24779
24780 2008-12-22  Bruno Haible  <bruno@clisp.org>
24781
24782         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
24783         * doc/posix-functions/iswalpha_l.texi: Likewise.
24784         * doc/posix-functions/iswblank_l.texi: Likewise.
24785         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24786         * doc/posix-functions/iswctype_l.texi: Likewise.
24787         * doc/posix-functions/iswdigit_l.texi: Likewise.
24788         * doc/posix-functions/iswgraph_l.texi: Likewise.
24789         * doc/posix-functions/iswlower_l.texi: Likewise.
24790         * doc/posix-functions/iswprint_l.texi: Likewise.
24791         * doc/posix-functions/iswpunct_l.texi: Likewise.
24792         * doc/posix-functions/iswspace_l.texi: Likewise.
24793         * doc/posix-functions/iswupper_l.texi: Likewise.
24794         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24795         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
24796         * doc/posix-functions/open_wmemstream.texi: Likewise.
24797         * doc/posix-functions/swscanf.texi: Likewise.
24798         * doc/posix-functions/towctrans_l.texi: Likewise.
24799         * doc/posix-functions/towlower.texi: Likewise.
24800         * doc/posix-functions/towlower_l.texi: Likewise.
24801         * doc/posix-functions/towupper.texi: Likewise.
24802         * doc/posix-functions/towupper_l.texi: Likewise.
24803         * doc/posix-functions/vfwprintf.texi: Likewise.
24804         * doc/posix-functions/vfwscanf.texi: Likewise.
24805         * doc/posix-functions/vswscanf.texi: Likewise.
24806         * doc/posix-functions/vwprintf.texi: Likewise.
24807         * doc/posix-functions/vwscanf.texi: Likewise.
24808         * doc/posix-functions/wcpcpy.texi: Likewise.
24809         * doc/posix-functions/wcpncpy.texi: Likewise.
24810         * doc/posix-functions/wcscasecmp.texi: Likewise.
24811         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
24812         * doc/posix-functions/wcscoll_l.texi: Likewise.
24813         * doc/posix-functions/wcsdup.texi: Likewise.
24814         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24815         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
24816         * doc/posix-functions/wcsnlen.texi: Likewise.
24817         * doc/posix-functions/wcsnrtombs.texi: Likewise.
24818         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24819         * doc/posix-functions/wctrans_l.texi: Likewise.
24820         * doc/posix-functions/wctype_l.texi: Likewise.
24821         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
24822         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
24823         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
24824         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
24825         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
24826         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
24827         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
24828         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
24829         * doc/glibc-functions/wcschrnul.texi: Likewise.
24830         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24831         * doc/glibc-functions/wcstod_l.texi: Likewise.
24832         * doc/glibc-functions/wcstof_l.texi: Likewise.
24833         * doc/glibc-functions/wcstol_l.texi: Likewise.
24834         * doc/glibc-functions/wcstold_l.texi: Likewise.
24835         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24836         * doc/glibc-functions/wcstoq.texi: Likewise.
24837         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24838         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24839         * doc/glibc-functions/wcstouq.texi: Likewise.
24840         * doc/glibc-functions/wmempcpy.texi: Likewise.
24841
24842 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
24843             Eric Blake  <ebb9@byu.net>
24844             Paolo Bonzini  <bonzini@gnu.org>
24845             Bruno Haible  <bruno@clisp.org>
24846
24847         Make c-stack work on Haiku.
24848         * lib/c-stack.c (SA_ONSTACK): Define fallback.
24849         (c_stack_action): Use SA_ONSTACK flag.
24850
24851 2008-12-22  Bruno Haible  <bruno@clisp.org>
24852
24853         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
24854
24855 2008-12-22  Bruno Haible  <bruno@clisp.org>
24856
24857         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
24858         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
24859         being overridden.
24860         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
24861         New macros.
24862         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
24863         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
24864         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
24865         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
24866
24867 2008-12-22  Bruno Haible  <bruno@clisp.org>
24868
24869         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
24870         from test code.
24871
24872 2008-12-22  Eric Blake  <ebb9@byu.net>
24873
24874         Avoid gcc warnings on cygwin.
24875         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
24876         Avoid unused variable.
24877         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
24878         Likewise.
24879
24880 2008-12-22  Bruno Haible  <bruno@clisp.org>
24881
24882         Remove HAVE_MBRTOWC conditionals.
24883         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
24884         (mbscasecmp): Assume mbrtowc function.
24885         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
24886         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
24887         * lib/mbschr.c: Include mbuiter.h unconditionally.
24888         (mbschr): Assume mbrtowc function.
24889         * lib/mbscspn.c: Include mbuiter.h unconditionally.
24890         (mbscspn): Assume mbrtowc function.
24891         * lib/mbslen.c: Include mbuiter.h unconditionally.
24892         (mbslen): Assume mbrtowc function.
24893         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
24894         (mbsncasecmp): Assume mbrtowc function.
24895         * lib/mbsnlen.c: Include mbiter.h unconditionally.
24896         (mbsnlen): Assume mbrtowc function.
24897         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
24898         (mbspbrk): Assume mbrtowc function.
24899         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
24900         (mbspcasecmp): Assume mbrtowc function.
24901         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
24902         (mbsrchr): Assume mbrtowc function.
24903         * lib/mbssep.c: Include mbuiter.h unconditionally.
24904         (mbssep): Assume mbrtowc function.
24905         * lib/mbsspn.c: Include mbuiter.h unconditionally.
24906         (mbsspn): Assume mbrtowc function.
24907         * lib/mbsstr.c: Include mbuiter.h unconditionally.
24908         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
24909         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
24910         (mbstok_r): Assume mbrtowc function.
24911         * lib/propername.c: Include mbuiter.h unconditionally.
24912         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
24913         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
24914         (trim2): Assume mbrtowc function.
24915         * lib/mbswidth.c (mbsinit): Remove fallback definition.
24916         (mbsnwidth): Assume mbrtowc function.
24917         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
24918         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
24919         fallback definitions.
24920         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
24921
24922 2008-12-22  Bruno Haible  <bruno@clisp.org>
24923
24924         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
24925
24926 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
24927
24928         * modules/regex: Request emulations for the mb*/wc* functions we need.
24929         * m4/regex.m4: Don't look for those functions here.
24930         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
24931
24932 2008-12-22  Bruno Haible  <bruno@clisp.org>
24933
24934         * modules/fnmatch (Depends-on): Remove duplicated dependency.
24935
24936 2008-12-21  Bruno Haible  <bruno@clisp.org>
24937
24938         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
24939         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
24940         (Include): Remove conditionalization.
24941         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
24942         (Include): Remove conditionalization.
24943         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
24944         (Include): Remove conditionalization.
24945         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
24946         * m4/mbfile.m4 (gl_MBFILE): Likewise.
24947         * NEWS: Mention the change.
24948         Reported by Alan Hourihane <alanh@fairlite.co.uk>
24949         via Sergey Poznyakoff <gray@gnu.org.ua>.
24950
24951 2008-12-21  Bruno Haible  <bruno@clisp.org>
24952
24953         * MODULES.html.sh (Extended multibyte and wide character utilities
24954         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
24955         wcrtomb, wcsrtombs.
24956         (Support for systems lacking POSIX:2008): Add accept, bind, close,
24957         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
24958         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
24959         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
24960
24961 2008-12-21  Bruno Haible  <bruno@clisp.org>
24962
24963         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
24964
24965 2008-12-21  Bruno Haible  <bruno@clisp.org>
24966
24967         * modules/wcsnrtombs-tests: New file.
24968         * tests/test-wcsnrtombs1.sh: New file.
24969         * tests/test-wcsnrtombs2.sh: New file.
24970         * tests/test-wcsnrtombs3.sh: New file.
24971         * tests/test-wcsnrtombs4.sh: New file.
24972         * tests/test-wcsnrtombs.c: New file.
24973
24974         New module 'wcsnrtombs'.
24975         * lib/wchar.in.h (wcsnrtombs): New declaration.
24976         * lib/wcsnrtombs.c: New file.
24977         * lib/wcsrtombs-state.c: New file.
24978         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
24979         (internal_state): Remove variable.
24980         * m4/wcsnrtombs.m4: New file.
24981         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
24982         compilation units.
24983         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
24984         HAVE_WCSNRTOMBS.
24985         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
24986         HAVE_WCSNRTOMBS.
24987         * modules/wcsnrtombs: New file.
24988         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
24989         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
24990
24991 2008-12-21  Bruno Haible  <bruno@clisp.org>
24992
24993         * modules/wcsrtombs-tests: New file.
24994         * tests/test-wcsrtombs1.sh: New file.
24995         * tests/test-wcsrtombs2.sh: New file.
24996         * tests/test-wcsrtombs3.sh: New file.
24997         * tests/test-wcsrtombs4.sh: New file.
24998         * tests/test-wcsrtombs.c: New file.
24999
25000         New module 'wcsrtombs'.
25001         * lib/wchar.in.h (wcsrtombs): New declaration.
25002         * lib/wcsrtombs.c: New file.
25003         * m4/wcsrtombs.m4: New file.
25004         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
25005         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25006         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
25007         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25008         * modules/wcsrtombs: New file.
25009         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
25010         bugs.
25011
25012 2008-12-21  Bruno Haible  <bruno@clisp.org>
25013
25014         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
25015         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
25016         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
25017         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
25018         if not correct.
25019         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
25020         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
25021         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25022         m4/locale-zh.m4, m4/codeset.m4.
25023         * doc/posix-functions/wcrtomb.texi: Document the bug.
25024
25025 2008-12-21  Bruno Haible  <bruno@clisp.org>
25026
25027         Work around a btowc() bug on IRIX 6.5.
25028         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
25029         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
25030         REPLACE_WTOBC if not.
25031         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
25032         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
25033         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
25034
25035 2008-12-21  Bruno Haible  <bruno@clisp.org>
25036
25037         * modules/wcrtomb-tests: New file.
25038         * tests/test-wcrtomb.sh: New file.
25039         * tests/test-wcrtomb.c: New file.
25040
25041         New module 'wcrtomb'.
25042         * lib/wchar.in.h (wcrtomb): New declaration.
25043         * lib/wcrtomb.c: New file.
25044         * m4/wcrtomb.m4: New file.
25045         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
25046         HAVE_WCRTOMB.
25047         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
25048         HAVE_WCRTOMB.
25049         * modules/wcrtomb: New file.
25050         * doc/posix-functions/wcrtomb.texi: Mention the new module.
25051
25052 2008-12-21  Bruno Haible  <bruno@clisp.org>
25053
25054         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
25055         * modules/mbsrtowcs (Files): Likewise.
25056         * modules/wctob (Files): Likewise.
25057         * modules/c-strcase-tests (Files): Likewise.
25058         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25059         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25060         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25061         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25062         * modules/vasnprintf-posix-tests (Files): Likewise.
25063
25064 2008-12-21  William Pursell  <bill.pursell@gmail.com>
25065
25066         gitlog-to-changelog: pass all command-line arguments to git-log
25067         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
25068         it is sometimes convenient to filter the commits in various ways.
25069         gitlog-to-changelog only allows --since to specify a start date,
25070         but git-log itself supports many other filtering mechanisms.
25071         At the moment, I want to filter by branch name.  Rather than
25072         adding a --branch option to gitlog-to-changelog, it seems more
25073         flexible to simply pass all options directly to git-log and let
25074         git do the work.  Notice that this effectively makes --since a
25075         redundant option for gitlog-to-changelog, but removing it would
25076         require current usage to change since calls would then require
25077         an additional '--'.
25078
25079 2008-12-21  Bruno Haible  <bruno@clisp.org>
25080
25081         * modules/mbsnrtowcs-tests: New file.
25082         * tests/test-mbsnrtowcs1.sh: New file.
25083         * tests/test-mbsnrtowcs2.sh: New file.
25084         * tests/test-mbsnrtowcs3.sh: New file.
25085         * tests/test-mbsnrtowcs4.sh: New file.
25086         * tests/test-mbsnrtowcs.c: New file.
25087
25088         New module 'mbsnrtowcs'.
25089         * lib/wchar.in.h (mbsnrtowcs): New declaration.
25090         * lib/mbsnrtowcs.c: New file.
25091         * lib/mbsrtowcs-state.c: New file.
25092         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
25093         (internal_state): Remove variable.
25094         * m4/mbsnrtowcs.m4: New file.
25095         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
25096         compilation units.
25097         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
25098         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
25099         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
25100         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
25101         * modules/mbsnrtowcs: New file.
25102         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
25103         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
25104         portability problem.
25105
25106 2008-12-21  Bruno Haible  <bruno@clisp.org>
25107
25108         Work around mbsrtowcs bug.
25109         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
25110         (gl_FUNC_MBSRTOWCS): Invoke it.
25111         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25112         m4/locale-zh.m4.
25113         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
25114
25115 2008-12-21  Bruno Haible  <bruno@clisp.org>
25116
25117         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
25118
25119 2008-12-21  Bruno Haible  <bruno@clisp.org>
25120
25121         Update doc for AIX.
25122         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
25123         16-bit wchar_t type.
25124         * doc/posix-functions/btowc.texi: Likewise.
25125         * doc/posix-functions/fgetwc.texi: Likewise.
25126         * doc/posix-functions/fgetws.texi: Likewise.
25127         * doc/posix-functions/fputwc.texi: Likewise.
25128         * doc/posix-functions/fputws.texi: Likewise.
25129         * doc/posix-functions/fwide.texi: Likewise.
25130         * doc/posix-functions/fwprintf.texi: Likewise.
25131         * doc/posix-functions/fwscanf.texi: Likewise.
25132         * doc/posix-functions/getwchar.texi: Likewise.
25133         * doc/posix-functions/getwc.texi: Likewise.
25134         * doc/posix-functions/iswalnum.texi: Likewise.
25135         * doc/posix-functions/iswalpha.texi: Likewise.
25136         * doc/posix-functions/iswblank.texi: Likewise.
25137         * doc/posix-functions/iswcntrl.texi: Likewise.
25138         * doc/posix-functions/iswctype.texi: Likewise.
25139         * doc/posix-functions/iswdigit.texi: Likewise.
25140         * doc/posix-functions/iswgraph.texi: Likewise.
25141         * doc/posix-functions/iswlower.texi: Likewise.
25142         * doc/posix-functions/iswprint.texi: Likewise.
25143         * doc/posix-functions/iswpunct.texi: Likewise.
25144         * doc/posix-functions/iswspace.texi: Likewise.
25145         * doc/posix-functions/iswupper.texi: Likewise.
25146         * doc/posix-functions/iswxdigit.texi: Likewise.
25147         * doc/posix-functions/mbrtowc.texi: Likewise.
25148         * doc/posix-functions/mbsrtowcs.texi: Likewise.
25149         * doc/posix-functions/mbstowcs.texi: Likewise.
25150         * doc/posix-functions/mbtowc.texi: Likewise.
25151         * doc/posix-functions/putwchar.texi: Likewise.
25152         * doc/posix-functions/putwc.texi: Likewise.
25153         * doc/posix-functions/swprintf.texi: Likewise.
25154         * doc/posix-functions/tolower.texi: Likewise.
25155         * doc/posix-functions/toupper.texi: Likewise.
25156         * doc/posix-functions/towctrans.texi: Likewise.
25157         * doc/posix-functions/ungetwc.texi: Likewise.
25158         * doc/posix-functions/vswprintf.texi: Likewise.
25159         * doc/posix-functions/wcrtomb.texi: Likewise.
25160         * doc/posix-functions/wcscat.texi: Likewise.
25161         * doc/posix-functions/wcschr.texi: Likewise.
25162         * doc/posix-functions/wcscmp.texi: Likewise.
25163         * doc/posix-functions/wcscoll.texi: Likewise.
25164         * doc/posix-functions/wcscpy.texi: Likewise.
25165         * doc/posix-functions/wcscspn.texi: Likewise.
25166         * doc/posix-functions/wcsftime.texi: Likewise.
25167         * doc/posix-functions/wcslen.texi: Likewise.
25168         * doc/posix-functions/wcsncat.texi: Likewise.
25169         * doc/posix-functions/wcsncmp.texi: Likewise.
25170         * doc/posix-functions/wcsncpy.texi: Likewise.
25171         * doc/posix-functions/wcspbrk.texi: Likewise.
25172         * doc/posix-functions/wcsrchr.texi: Likewise.
25173         * doc/posix-functions/wcsrtombs.texi: Likewise.
25174         * doc/posix-functions/wcsspn.texi: Likewise.
25175         * doc/posix-functions/wcsstr.texi: Likewise.
25176         * doc/posix-functions/wcstod.texi: Likewise.
25177         * doc/posix-functions/wcstof.texi: Likewise.
25178         * doc/posix-functions/wcstoimax.texi: Likewise.
25179         * doc/posix-functions/wcstok.texi: Likewise.
25180         * doc/posix-functions/wcstold.texi: Likewise.
25181         * doc/posix-functions/wcstoll.texi: Likewise.
25182         * doc/posix-functions/wcstol.texi: Likewise.
25183         * doc/posix-functions/wcstombs.texi: Likewise.
25184         * doc/posix-functions/wcstoull.texi: Likewise.
25185         * doc/posix-functions/wcstoul.texi: Likewise.
25186         * doc/posix-functions/wcstoumax.texi: Likewise.
25187         * doc/posix-functions/wcswidth.texi: Likewise.
25188         * doc/posix-functions/wcsxfrm.texi: Likewise.
25189         * doc/posix-functions/wctob.texi: Likewise.
25190         * doc/posix-functions/wctomb.texi: Likewise.
25191         * doc/posix-functions/wctrans.texi: Likewise.
25192         * doc/posix-functions/wctype.texi: Likewise.
25193         * doc/posix-functions/wcwidth.texi: Likewise.
25194         * doc/posix-functions/wmemchr.texi: Likewise.
25195         * doc/posix-functions/wmemcmp.texi: Likewise.
25196         * doc/posix-functions/wmemcpy.texi: Likewise.
25197         * doc/posix-functions/wmemmove.texi: Likewise.
25198         * doc/posix-functions/wmemset.texi: Likewise.
25199         * doc/posix-functions/wprintf.texi: Likewise.
25200         * doc/posix-functions/wscanf.texi: Likewise.
25201
25202 2008-12-21  Bruno Haible  <bruno@clisp.org>
25203
25204         Update doc for HP-UX 11.11.
25205         * doc/posix-functions/btowc.texi: Clarify that the function is missing
25206         in HP-UX version 11.00, not in all versions of HP-UX 11.
25207         * doc/posix-functions/fwide.texi: Likewise.
25208         * doc/posix-functions/fwprintf.texi: Likewise.
25209         * doc/posix-functions/fwscanf.texi: Likewise.
25210         * doc/posix-functions/inet_ntop.texi: Likewise.
25211         * doc/posix-functions/inet_pton.texi: Likewise.
25212         * doc/posix-functions/mbrlen.texi: Likewise.
25213         * doc/posix-functions/mbrtowc.texi: Likewise.
25214         * doc/posix-functions/mbsinit.texi: Likewise.
25215         * doc/posix-functions/mbsrtowcs.texi: Likewise.
25216         * doc/posix-functions/swprintf.texi: Likewise.
25217         * doc/posix-functions/swscanf.texi: Likewise.
25218         * doc/posix-functions/towctrans.texi: Likewise.
25219         * doc/posix-functions/vfwprintf.texi: Likewise.
25220         * doc/posix-functions/vswprintf.texi: Likewise.
25221         * doc/posix-functions/vwprintf.texi: Likewise.
25222         * doc/posix-functions/wcrtomb.texi: Likewise.
25223         * doc/posix-functions/wcsrtombs.texi: Likewise.
25224         * doc/posix-functions/wcsstr.texi: Likewise.
25225         * doc/posix-functions/wctob.texi: Likewise.
25226         * doc/posix-functions/wctrans.texi: Likewise.
25227         * doc/posix-functions/wmemchr.texi: Likewise.
25228         * doc/posix-functions/wmemcmp.texi: Likewise.
25229         * doc/posix-functions/wmemcpy.texi: Likewise.
25230         * doc/posix-functions/wmemmove.texi: Likewise.
25231         * doc/posix-functions/wmemset.texi: Likewise.
25232         * doc/posix-functions/wprintf.texi: Likewise.
25233         * doc/posix-functions/wscanf.texi: Likewise.
25234
25235 2008-12-21  Bruno Haible  <bruno@clisp.org>
25236
25237         Work around a portability problem.
25238         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
25239         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
25240
25241 2008-12-20  Bruno Haible  <bruno@clisp.org>
25242
25243         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
25244         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
25245         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
25246         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
25247         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
25248
25249         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
25250         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
25251         set.
25252         (GNULIB_defined_mbstate_t): New macro.
25253         (mbsinit): Redefine if REPLACE_MBSINIT is set.
25254         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
25255         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
25256         reuses the system's mbrtowc function but works around the bugs.
25257         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
25258         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
25259         macros.
25260         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
25261         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
25262         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
25263         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
25264         REPLACE_MBSINIT if mbsinit needs to be overridden.
25265         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
25266         REPLACE_MBSINIT, REPLACE_MBRTOWC.
25267         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
25268         REPLACE_MBSINIT, REPLACE_MBRTOWC.
25269         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25270         m4/locale-zh.m4.
25271         (Depends): Add mbsinit.
25272         * modules/mbsinit (Depends): Add mbrtowc.
25273         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
25274
25275 2008-12-20  Bruno Haible  <bruno@clisp.org>
25276
25277         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
25278         so that there are no conversion errors on AIX.
25279         * tests/test-mbsrtowcs.c (main): LIkewise.
25280
25281 2008-12-20  Bruno Haible  <bruno@clisp.org>
25282
25283         Work around wctob bug on Solaris <= 9.
25284         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
25285         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
25286         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
25287         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
25288         * modules/wctob (Files): Add m4/locale-fr.m4.
25289         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
25290
25291 2008-12-20  Bruno Haible  <bruno@clisp.org>
25292
25293         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
25294         /dev/null.
25295         * tests/test-select-in.sh: Likewise.
25296         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25297
25298 2008-12-20  Bruno Haible  <bruno@clisp.org>
25299
25300         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
25301         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
25302         Cygwin 1.5.x.
25303
25304 2008-12-20  Bruno Haible  <bruno@clisp.org>
25305
25306         Ensure mbstate_t is defined on HP-UX 11.11.
25307         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
25308         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
25309         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
25310         AC_USE_SYSTEM_EXTENSIONS.
25311         * modules/fnmatch (Depends-on): Add extensions.
25312         * modules/mbrlen (Depends-on): Likewise.
25313         * modules/mbrtowc (Depends-on): Likewise.
25314         * modules/mbsinit (Depends-on): Likewise.
25315         * modules/mbsrtowcs (Depends-on): Likewise.
25316         * modules/mbswidth (Depends-on): Likewise.
25317         * modules/quotearg (Depends-on): Likewise.
25318         * modules/strftime (Depends-on): Likewise.
25319
25320 2008-12-20  Bruno Haible  <bruno@clisp.org>
25321
25322         Ensure wctob is declared on IRIX 6.5.
25323         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
25324         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
25325         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
25326         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
25327         of HAVE_WCTOB.
25328         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
25329         HAVE_WCTOB.
25330         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
25331
25332 2008-12-19  Bruno Haible  <bruno@clisp.org>
25333
25334         * modules/mbsrtowcs-tests: New file.
25335         * tests/test-mbsrtowcs1.sh: New file.
25336         * tests/test-mbsrtowcs2.sh: New file.
25337         * tests/test-mbsrtowcs3.sh: New file.
25338         * tests/test-mbsrtowcs4.sh: New file.
25339         * tests/test-mbsrtowcs.c: New file.
25340
25341         New module 'mbsrtowcs'.
25342         * lib/wchar.in.h (mbsrtowcs): New declaration.
25343         * lib/mbsrtowcs.c: New file.
25344         * m4/mbsrtowcs.m4: New file.
25345         * modules/mbsrtowcs: New file.
25346         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
25347         HAVE_MBSRTOWCS.
25348         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
25349         HAVE_MBSRTOWCS.
25350         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
25351
25352 2008-12-19  Bruno Haible  <bruno@clisp.org>
25353
25354         New module 'mbrlen'.
25355         * lib/wchar.in.h (mbrlen): New declaration.
25356         * lib/mbrlen.c: New file.
25357         * m4/mbrlen.m4: New file.
25358         * modules/mbrlen: New file.
25359         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
25360         HAVE_MBRLEN.
25361         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
25362         HAVE_MBRLEN.
25363         * doc/posix-functions/mbrlen.texi: Document the new module.
25364
25365 2008-12-19  Bruno Haible  <bruno@clisp.org>
25366
25367         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
25368         * modules/mbrtowc (Depends-on): Add verify.
25369         Suggested by Paul Eggert.
25370
25371 2008-12-18  Bruno Haible  <bruno@clisp.org>
25372
25373         * modules/mbsinit-tests: New file.
25374         * tests/test-mbsinit.sh: New file.
25375         * tests/test-mbsinit.c: New file.
25376
25377 2008-12-18  Bruno Haible  <bruno@clisp.org>
25378
25379         * modules/mbrtowc-tests: New file.
25380         * tests/test-mbrtowc1.sh: New file.
25381         * tests/test-mbrtowc2.sh: New file.
25382         * tests/test-mbrtowc3.sh: New file.
25383         * tests/test-mbrtowc4.sh: New file.
25384         * tests/test-mbrtowc.c: New file.
25385
25386         New module 'mbrtowc'.
25387         * lib/wchar.in.h (mbstate_t): Override when the system does not have
25388         mbsinit and mbrtowc.
25389         (mbrtowc): New declaration.
25390         * lib/mbrtowc.c: New file.
25391         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
25392         * modules/mbrtowc: New file.
25393         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
25394         HAVE_MBRTOWC.
25395         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
25396         HAVE_MBRTOWC.
25397         * doc/posix-functions/mbrtowc.texi: Document the new module.
25398
25399 2008-12-18  Bruno Haible  <bruno@clisp.org>
25400
25401         New module 'wctob'.
25402         * lib/wchar.in.h (wctob): New declaration.
25403         * lib/wctob.c: New file.
25404         * m4/wctob.m4: New file.
25405         * modules/wctob: New file.
25406         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
25407         HAVE_WCTOB.
25408         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
25409         * doc/posix-functions/wctob.texi: Document the new module.
25410
25411 2008-12-18  Bruno Haible  <bruno@clisp.org>
25412
25413         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
25414         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
25415
25416 2008-12-18  Simon Josefsson  <simon@josefsson.org>
25417
25418         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
25419         G. Christensen" <tgc@jupiterrise.com>.
25420
25421         * lib/flock.c: Need to include errno.h.  Reported by "Tom
25422         G. Christensen" <tgc@jupiterrise.com>.
25423
25424         * lib/flock.c: Need to include string.h.  Reported by "Tom
25425         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
25426         <ebb9@byu.net>.
25427
25428 2008-12-18  Bruno Haible  <bruno@clisp.org>
25429
25430         * m4/locale-ja.m4: New file, from GNU gettext.
25431
25432 2008-12-17  Bruno Haible  <bruno@clisp.org>
25433
25434         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
25435         Suggested by Eric Blake.
25436
25437 2008-12-17  Bruno Haible  <bruno@clisp.org>
25438
25439         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
25440
25441 2008-12-17  Bruno Haible  <bruno@clisp.org>
25442
25443         * lib/mbsinit.c: Include verify.h. Verify an assumption.
25444         * modules/mbsinit (Depends-on): Add verify.
25445         Suggested by Paul Eggert.
25446
25447 2008-12-17  Bruno Haible  <bruno@clisp.org>
25448
25449         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
25450         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
25451         gl_FUNC_MBRTOWC.
25452         * m4/mbiter.m4 (gl_MBITER): LIkewise.
25453         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
25454         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
25455         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
25456         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
25457         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
25458         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
25459         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
25460         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
25461         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
25462         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
25463         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
25464         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
25465         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
25466         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
25467         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25468         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
25469         * modules/trim (configure.ac): Likewise.
25470
25471 2008-12-17  Bruno Haible  <bruno@clisp.org>
25472
25473         * modules/btowc-tests: New file.
25474         * tests/test-btowc1.sh: New file.
25475         * tests/test-btowc2.sh: New file.
25476         * tests/test-btowc.c: New file.
25477
25478         New module 'btowc'.
25479         * lib/wchar.in.h (btowc): New declaration.
25480         * lib/btowc.c: New file.
25481         * m4/btowc.m4: New file.
25482         * modules/btowc: New file.
25483         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
25484         HAVE_BTOWC.
25485         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
25486         * doc/posix-functions/btowc.texi: Document the new module.
25487
25488 2008-12-17  Bruno Haible  <bruno@clisp.org>
25489
25490         New module 'mbsinit'.
25491         * lib/wchar.in.h (mbsinit): New declaration.
25492         * lib/mbsinit.c: New file.
25493         * m4/mbsinit.m4: New file.
25494         * modules/mbsinit: New file.
25495         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
25496         HAVE_MBSINIT.
25497         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
25498         HAVE_MBSINIT.
25499         * doc/posix-functions/mbsinit.texi: Document the new module.
25500
25501 2008-12-16  Bruno Haible  <bruno@clisp.org>
25502
25503         * lib/unistd.in.h: Add comment.
25504         * tests/test-environ.c: Don't include <stdlib.h>.
25505
25506 2008-12-16  Bruno Haible  <bruno@clisp.org>
25507
25508         * lib/parse-duration.h (parse_duration): Document return value
25509         convention.
25510         * lib/parse-duration.c: Include specification header first. Add
25511         comments.
25512         (_): Remove macro.
25513         (parse_year_month_day, parse_hour_minute_second): Move side effects
25514         outside of strchr call.
25515         (parse_non_iso8601): Move side effects outside of isspace call.
25516         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
25517         call.
25518
25519 2008-12-16  Bruno Haible  <bruno@clisp.org>
25520
25521         * tests/test-parse-duration.sh: Produce no output when the test
25522         succeeds.
25523
25524 2008-12-16  Bruno Haible  <bruno@clisp.org>
25525
25526         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
25527         expressions.
25528
25529 2008-12-15  Bruno Haible  <bruno@clisp.org>
25530
25531         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
25532         * doc/glibc-functions/flistxattr.texi: Likewise.
25533         * doc/glibc-functions/fopencookie.texi: Likewise.
25534         * doc/glibc-functions/fremovexattr.texi: Likewise.
25535         * doc/glibc-functions/fsetxattr.texi: Likewise.
25536         * doc/glibc-functions/getxattr.texi: Likewise.
25537         * doc/glibc-functions/lgetxattr.texi: Likewise.
25538         * doc/glibc-functions/listxattr.texi: Likewise.
25539         * doc/glibc-functions/llistxattr.texi: Likewise.
25540         * doc/glibc-functions/lremovexattr.texi: Likewise.
25541         * doc/glibc-functions/lsetxattr.texi: Likewise.
25542         * doc/glibc-functions/removexattr.texi: Likewise.
25543         * doc/glibc-functions/setxattr.texi: Likewise.
25544         * doc/posix-functions/open_memstream.texi: Likewise.
25545
25546 2008-12-15  Eric Blake  <ebb9@byu.net>
25547
25548         Update doc for cygwin 1.7.
25549         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
25550         functions.
25551         * doc/posix-functions/fchmodat.texi: Likewise.
25552         * doc/posix-functions/fchownat.texi: Likewise.
25553         * doc/posix-functions/fdopendir.texi: Likewise.
25554         * doc/posix-functions/fmemopen.texi: Likewise.
25555         * doc/posix-functions/freeaddrinfo.texi: Likewise.
25556         * doc/posix-functions/fstatat.texi: Likewise.
25557         * doc/posix-functions/futimens.texi: Likewise.
25558         * doc/posix-functions/gai_strerror.texi: Likewise.
25559         * doc/posix-functions/getaddrinfo.texi: Likewise.
25560         * doc/posix-functions/getnameinfo.texi: Likewise.
25561         * doc/posix-functions/if_freenameindex.texi: Likewise.
25562         * doc/posix-functions/if_indextoname.texi: Likewise.
25563         * doc/posix-functions/if_nameindex.texi: Likewise.
25564         * doc/posix-functions/if_nametoindex.texi: Likewise.
25565         * doc/posix-functions/insque.texi: Likewise.
25566         * doc/posix-functions/linkat.texi: Likewise.
25567         * doc/posix-functions/llrint.texi: Likewise.
25568         * doc/posix-functions/llrintf.texi: Likewise.
25569         * doc/posix-functions/llrintl.texi: Likewise.
25570         * doc/posix-functions/lockf.texi: Likewise.
25571         * doc/posix-functions/lrintl.texi: Likewise.
25572         * doc/posix-functions/mkdirat.texi: Likewise.
25573         * doc/posix-functions/mkfifoat.texi: Likewise.
25574         * doc/posix-functions/mknodat.texi: Likewise.
25575         * doc/posix-functions/mq_close.texi: Likewise.
25576         * doc/posix-functions/mq_getattr.texi: Likewise.
25577         * doc/posix-functions/mq_notify.texi: Likewise.
25578         * doc/posix-functions/mq_open.texi: Likewise.
25579         * doc/posix-functions/mq_receive.texi: Likewise.
25580         * doc/posix-functions/mq_send.texi: Likewise.
25581         * doc/posix-functions/mq_setattr.texi: Likewise.
25582         * doc/posix-functions/mq_timedreceive.texi: Likewise.
25583         * doc/posix-functions/mq_timedsend.texi: Likewise.
25584         * doc/posix-functions/mq_unlink.texi: Likewise.
25585         * doc/posix-functions/open_memstream.texi: Likewise.
25586         * doc/posix-functions/openat.texi: Likewise.
25587         * doc/posix-functions/posix_fadvise.texi: Likewise.
25588         * doc/posix-functions/posix_fallocate.texi: Likewise.
25589         * doc/posix-functions/posix_madvise.texi: Likewise.
25590         * doc/posix-functions/posix_memalign.texi: Likewise.
25591         * doc/posix-functions/posix_openpt.texi: Likewise.
25592         * doc/posix-functions/readlinkat.texi: Likewise.
25593         * doc/posix-functions/remque.texi: Likewise.
25594         * doc/posix-functions/renameat.texi: Likewise.
25595         * doc/posix-functions/rintl.texi: Likewise.
25596         * doc/posix-functions/sem_unlink.texi: Likewise.
25597         * doc/posix-functions/shm_open.texi: Likewise.
25598         * doc/posix-functions/shm_unlink.texi: Likewise.
25599         * doc/posix-functions/signgam.texi: Likewise.
25600         * doc/posix-functions/sigset.texi: Likewise.
25601         * doc/posix-functions/stpcpy.texi: Likewise.
25602         * doc/posix-functions/stpncpy.texi: Likewise.
25603         * doc/posix-functions/strerror.texi: Likewise.
25604         * doc/posix-functions/strtod.texi: Likewise.
25605         * doc/posix-functions/symlinkat.texi: Likewise.
25606         * doc/posix-functions/unlinkat.texi: Likewise.
25607         * doc/posix-functions/utimensat.texi: Likewise.
25608         * doc/glibc-functions/bindresvport.texi: Likewise.
25609         * doc/glibc-functions/dn_expand.texi: Likewise.
25610         * doc/glibc-functions/exp10.texi: Likewise.
25611         * doc/glibc-functions/exp10f.texi: Likewise.
25612         * doc/glibc-functions/fgetxattr.texi: Likewise.
25613         * doc/glibc-functions/flistxattr.texi: Likewise.
25614         * doc/glibc-functions/fopencookie.texi: Likewise.
25615         * doc/glibc-functions/freeifaddrs.texi: Likewise.
25616         * doc/glibc-functions/fremovexattr.texi: Likewise.
25617         * doc/glibc-functions/fsetxattr.texi: Likewise.
25618         * doc/glibc-functions/getifaddrs.texi: Likewise.
25619         * doc/glibc-functions/getxattr.texi: Likewise.
25620         * doc/glibc-functions/lgetxattr.texi: Likewise.
25621         * doc/glibc-functions/listxattr.texi: Likewise.
25622         * doc/glibc-functions/llistxattr.texi: Likewise.
25623         * doc/glibc-functions/lremovexattr.texi: Likewise.
25624         * doc/glibc-functions/lsetxattr.texi: Likewise.
25625         * doc/glibc-functions/pow10.texi: Likewise.
25626         * doc/glibc-functions/pow10f.texi: Likewise.
25627         * doc/glibc-functions/rcmd_af.texi: Likewise.
25628         * doc/glibc-functions/removexattr.texi: Likewise.
25629         * doc/glibc-functions/res_init.texi: Likewise.
25630         * doc/glibc-functions/res_mkquery.texi: Likewise.
25631         * doc/glibc-functions/res_query.texi: Likewise.
25632         * doc/glibc-functions/res_querydomain.texi: Likewise.
25633         * doc/glibc-functions/res_send.texi: Likewise.
25634         * doc/glibc-functions/rresvport_af.texi: Likewise.
25635         * doc/glibc-functions/setxattr.texi: Likewise.
25636         * doc/glibc-functions/strcasestr.texi: Likewise.
25637
25638 2008-12-15  Bruno Haible  <bruno@clisp.org>
25639
25640         Fix compilation error on OSF/1 4.0.
25641         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
25642         <sys/time.h>, simply delegate to the system header.
25643         Reported by Daniel Richard G. <oss@teragram.com>.
25644
25645 2008-12-15  Bruno Haible  <bruno@clisp.org>
25646
25647         * doc/posix-functions/openat.texi: Mention the 'openat' module.
25648         * doc/posix-functions/fchmodat.texi: Likewise.
25649         * doc/posix-functions/fchownat.texi: Likewise.
25650         * doc/posix-functions/fdopendir.texi: Likewise.
25651         * doc/posix-functions/fstatat.texi: Likewise.
25652         * doc/posix-functions/mkdirat.texi: Likewise.
25653         * doc/posix-functions/unlinkat.texi: Likewise.
25654
25655 2008-12-14  Bruno Haible  <bruno@clisp.org>
25656
25657         Update doc for POSIX:2008.
25658         * doc/posix-functions/faccessat.texi: New file.
25659         * doc/posix-functions/fchmodat.texi: New file.
25660         * doc/posix-functions/fchownat.texi: New file.
25661         * doc/posix-functions/fdopendir.texi: New file.
25662         * doc/posix-functions/fstatat.texi: New file.
25663         * doc/posix-functions/futimens.texi: New file.
25664         * doc/posix-functions/linkat.texi: New file.
25665         * doc/posix-functions/mkdirat.texi: New file.
25666         * doc/posix-functions/mkfifoat.texi: New file.
25667         * doc/posix-functions/mknodat.texi: New file.
25668         * doc/posix-functions/open_wmemstream.texi: New file.
25669         * doc/posix-functions/openat.texi: New file.
25670         * doc/posix-functions/psiginfo.texi: New file.
25671         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
25672         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
25673         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
25674         * doc/posix-functions/readlinkat.texi: New file.
25675         * doc/posix-functions/renameat.texi: New file.
25676         * doc/posix-functions/strerror_l.texi: New file.
25677         * doc/posix-functions/symlinkat.texi: New file.
25678         * doc/posix-functions/unlinkat.texi: New file.
25679         * doc/posix-functions/utimensat.texi: New file.
25680         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25681
25682 2008-12-14  Bruno Haible  <bruno@clisp.org>
25683
25684         Update doc for POSIX:2008.
25685         * doc/posix-functions/alphasort.texi: Renamed from
25686         doc/glibc-functions/alphasort.texi.
25687         * doc/posix-functions/dirfd.texi: Renamed from
25688         doc/glibc-functions/dirfd.texi.
25689         * doc/posix-functions/dprintf.texi: Renamed from
25690         doc/glibc-functions/dprintf.texi.
25691         * doc/posix-functions/duplocale.texi: Renamed from
25692         doc/glibc-functions/duplocale.texi.
25693         * doc/posix-functions/fexecve.texi: Renamed from
25694         doc/glibc-functions/fexecve.texi.
25695         * doc/posix-functions/fmemopen.texi: Renamed from
25696         doc/glibc-functions/fmemopen.texi.
25697         * doc/posix-functions/freelocale.texi: Renamed from
25698         doc/glibc-functions/freelocale.texi.
25699         * doc/posix-functions/getdate_err.texi: Renamed from
25700         doc/glibc-functions/getdate_err.texi.
25701         * doc/posix-functions/isalnum_l.texi: Renamed from
25702         doc/glibc-functions/isalnum_l.texi.
25703         * doc/posix-functions/isalpha_l.texi: Renamed from
25704         doc/glibc-functions/isalpha_l.texi.
25705         * doc/posix-functions/isblank_l.texi: Renamed from
25706         doc/glibc-functions/isblank_l.texi.
25707         * doc/posix-functions/iscntrl_l.texi: Renamed from
25708         doc/glibc-functions/iscntrl_l.texi.
25709         * doc/posix-functions/isdigit_l.texi: Renamed from
25710         doc/glibc-functions/isdigit_l.texi.
25711         * doc/posix-functions/isgraph_l.texi: Renamed from
25712         doc/glibc-functions/isgraph_l.texi.
25713         * doc/posix-functions/islower_l.texi: Renamed from
25714         doc/glibc-functions/islower_l.texi.
25715         * doc/posix-functions/isprint_l.texi: Renamed from
25716         doc/glibc-functions/isprint_l.texi.
25717         * doc/posix-functions/ispunct_l.texi: Renamed from
25718         doc/glibc-functions/ispunct_l.texi.
25719         * doc/posix-functions/isspace_l.texi: Renamed from
25720         doc/glibc-functions/isspace_l.texi.
25721         * doc/posix-functions/isupper_l.texi: Renamed from
25722         doc/glibc-functions/isupper_l.texi.
25723         * doc/posix-functions/iswalnum_l.texi: Renamed from
25724         doc/glibc-functions/iswalnum_l.texi.
25725         * doc/posix-functions/iswalpha_l.texi: Renamed from
25726         doc/glibc-functions/iswalpha_l.texi.
25727         * doc/posix-functions/iswblank_l.texi: Renamed from
25728         doc/glibc-functions/iswblank_l.texi.
25729         * doc/posix-functions/iswcntrl_l.texi: Renamed from
25730         doc/glibc-functions/iswcntrl_l.texi.
25731         * doc/posix-functions/iswctype_l.texi: Renamed from
25732         doc/glibc-functions/iswctype_l.texi.
25733         * doc/posix-functions/iswdigit_l.texi: Renamed from
25734         doc/glibc-functions/iswdigit_l.texi.
25735         * doc/posix-functions/iswgraph_l.texi: Renamed from
25736         doc/glibc-functions/iswgraph_l.texi.
25737         * doc/posix-functions/iswlower_l.texi: Renamed from
25738         doc/glibc-functions/iswlower_l.texi.
25739         * doc/posix-functions/iswprint_l.texi: Renamed from
25740         doc/glibc-functions/iswprint_l.texi.
25741         * doc/posix-functions/iswpunct_l.texi: Renamed from
25742         doc/glibc-functions/iswpunct_l.texi.
25743         * doc/posix-functions/iswspace_l.texi: Renamed from
25744         doc/glibc-functions/iswspace_l.texi.
25745         * doc/posix-functions/iswupper_l.texi: Renamed from
25746         doc/glibc-functions/iswupper_l.texi.
25747         * doc/posix-functions/iswxdigit_l.texi: Renamed from
25748         doc/glibc-functions/iswxdigit_l.texi.
25749         * doc/posix-functions/isxdigit_l.texi: Renamed from
25750         doc/glibc-functions/isxdigit_l.texi.
25751         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
25752         doc/glibc-functions/mbsnrtowcs.texi.
25753         * doc/posix-functions/mkdtemp.texi: Renamed from
25754         doc/glibc-functions/mkdtemp.texi.
25755         * doc/posix-functions/newlocale.texi: Renamed from
25756         doc/glibc-functions/newlocale.texi.
25757         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
25758         doc/glibc-functions/nl_langinfo_l.texi.
25759         * doc/posix-functions/open_memstream.texi: Renamed from
25760         doc/glibc-functions/open_memstream.texi.
25761         * doc/posix-functions/opterr.texi: Renamed from
25762         doc/glibc-functions/opterr.texi.
25763         * doc/posix-functions/optind.texi: Renamed from
25764         doc/glibc-functions/optind.texi.
25765         * doc/posix-functions/optopt.texi: Renamed from
25766         doc/glibc-functions/optopt.texi.
25767         * doc/posix-functions/psignal.texi: Renamed from
25768         doc/glibc-functions/psignal.texi.
25769         * doc/posix-functions/scandir.texi: Renamed from
25770         doc/glibc-functions/scandir.texi.
25771         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
25772         doc/glibc-functions/sched_get_priority_min.texi.
25773         * doc/posix-functions/signgam.texi: Renamed from
25774         doc/glibc-functions/signgam.texi.
25775         * doc/posix-functions/stpcpy.texi: Renamed from
25776         doc/glibc-functions/stpcpy.texi.
25777         * doc/posix-functions/stpncpy.texi: Renamed from
25778         doc/glibc-functions/stpncpy.texi.
25779         * doc/posix-functions/strcasecmp_l.texi: Renamed from
25780         doc/glibc-functions/strcasecmp_l.texi.
25781         * doc/posix-functions/strcoll_l.texi: Renamed from
25782         doc/glibc-functions/strcoll_l.texi.
25783         * doc/posix-functions/strfmon_l.texi: Renamed from
25784         doc/glibc-functions/strfmon_l.texi.
25785         * doc/posix-functions/strftime_l.texi: Renamed from
25786         doc/glibc-functions/strftime_l.texi.
25787         * doc/posix-functions/strncasecmp_l.texi: Renamed from
25788         doc/glibc-functions/strncasecmp_l.texi.
25789         * doc/posix-functions/strndup.texi: Renamed from
25790         doc/glibc-functions/strndup.texi.
25791         * doc/posix-functions/strnlen.texi: Renamed from
25792         doc/glibc-functions/strnlen.texi.
25793         * doc/posix-functions/strsignal.texi: Renamed from
25794         doc/glibc-functions/strsignal.texi.
25795         * doc/posix-functions/strxfrm_l.texi: Renamed from
25796         doc/glibc-functions/strxfrm_l.texi.
25797         * doc/posix-functions/timer_gettime.texi: Renamed from
25798         doc/glibc-functions/timer_gettime.texi.
25799         * doc/posix-functions/tolower_l.texi: Renamed from
25800         doc/glibc-functions/tolower_l.texi.
25801         * doc/posix-functions/toupper_l.texi: Renamed from
25802         doc/glibc-functions/toupper_l.texi.
25803         * doc/posix-functions/towctrans_l.texi: Renamed from
25804         doc/glibc-functions/towctrans_l.texi.
25805         * doc/posix-functions/towlower_l.texi: Renamed from
25806         doc/glibc-functions/towlower_l.texi.
25807         * doc/posix-functions/towupper_l.texi: Renamed from
25808         doc/glibc-functions/towupper_l.texi.
25809         * doc/posix-functions/uselocale.texi: Renamed from
25810         doc/glibc-functions/uselocale.texi.
25811         * doc/posix-functions/vdprintf.texi: Renamed from
25812         doc/glibc-functions/vdprintf.texi.
25813         * doc/posix-functions/wcpcpy.texi:
25814         Renamed from doc/glibc-functions/wcpcpy.texi.
25815         * doc/posix-functions/wcpncpy.texi: Renamed from
25816         doc/glibc-functions/wcpncpy.texi.
25817         * doc/posix-functions/wcscasecmp.texi: Renamed from
25818         doc/glibc-functions/wcscasecmp.texi.
25819         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
25820         doc/glibc-functions/wcscasecmp_l.texi.
25821         * doc/posix-functions/wcscoll_l.texi: Renamed from
25822         doc/glibc-functions/wcscoll_l.texi.
25823         * doc/posix-functions/wcsdup.texi: Renamed from
25824         doc/glibc-functions/wcsdup.texi.
25825         * doc/posix-functions/wcsncasecmp.texi: Renamed from
25826         doc/glibc-functions/wcsncasecmp.texi.
25827         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
25828         doc/glibc-functions/wcsncasecmp_l.texi.
25829         * doc/posix-functions/wcsnlen.texi: Renamed from
25830         doc/glibc-functions/wcsnlen.texi.
25831         * doc/posix-functions/wcsnrtombs.texi: Renamed from
25832         doc/glibc-functions/wcsnrtombs.texi.
25833         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
25834         doc/glibc-functions/wcsxfrm_l.texi.
25835         * doc/posix-functions/wctrans_l.texi: Renamed from
25836         doc/glibc-functions/wctrans_l.texi.
25837         * doc/posix-functions/wctype_l.texi: Renamed from
25838         doc/glibc-functions/wctype_l.texi.
25839         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25840         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
25841         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
25842         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
25843         these subsections.
25844         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
25845         Remove sections.
25846
25847 2008-12-14  Bruno Haible  <bruno@clisp.org>
25848
25849         Update doc for POSIX:2008.
25850         * doc/posix-functions/*.texi: Update URL of POSIX specification.
25851
25852 2008-12-14  Bruno Haible  <bruno@clisp.org>
25853
25854         Update doc for POSIX:2008.
25855         * doc/pastposix-functions/bcmp.texi: Renamed from
25856         doc/posix-functions/bcmp.texi.
25857         * doc/pastposix-functions/bcopy.texi: Renamed from
25858         doc/posix-functions/bcopy.texi.
25859         * doc/pastposix-functions/bsd_signal.texi: Renamed from
25860         doc/posix-functions/bsd_signal.texi.
25861         * doc/pastposix-functions/bzero.texi: Renamed from
25862         doc/posix-functions/bzero.texi.
25863         * doc/pastposix-functions/ecvt.texi: Renamed from
25864         doc/posix-functions/ecvt.texi.
25865         * doc/pastposix-functions/fcvt.texi: Renamed from
25866         doc/posix-functions/fcvt.texi.
25867         * doc/pastposix-functions/ftime.texi: Renamed from
25868         doc/posix-functions/ftime.texi.
25869         * doc/pastposix-functions/gcvt.texi: Renamed from
25870         doc/posix-functions/gcvt.texi.
25871         * doc/pastposix-functions/getcontext.texi: Renamed from
25872         doc/posix-functions/getcontext.texi.
25873         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
25874         doc/posix-functions/gethostbyaddr.texi.
25875         * doc/pastposix-functions/gethostbyname.texi: Renamed from
25876         doc/posix-functions/gethostbyname.texi.
25877         * doc/pastposix-functions/getwd.texi: Renamed from
25878         doc/posix-functions/getwd.texi.
25879         * doc/pastposix-functions/h_errno.texi: Renamed from
25880         doc/posix-functions/h_errno.texi.
25881         * doc/pastposix-functions/index.texi: Renamed from
25882         doc/posix-functions/index.texi.
25883         * doc/pastposix-functions/makecontext.texi: Renamed from
25884         doc/posix-functions/makecontext.texi.
25885         * doc/pastposix-functions/mktemp.texi: Renamed from
25886         doc/posix-functions/mktemp.texi.
25887         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
25888         doc/posix-functions/pthread_attr_getstackaddr.texi.
25889         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
25890         doc/posix-functions/pthread_attr_setstackaddr.texi.
25891         * doc/pastposix-functions/rindex.texi: Renamed from
25892         doc/posix-functions/rindex.texi.
25893         * doc/pastposix-functions/scalb.texi: Renamed from
25894         doc/posix-functions/scalb.texi.
25895         * doc/pastposix-functions/setcontext.texi: Renamed from
25896         doc/posix-functions/setcontext.texi.
25897         * doc/pastposix-functions/swapcontext.texi: Renamed from
25898         doc/posix-functions/swapcontext.texi.
25899         * doc/pastposix-functions/ualarm.texi: Renamed from
25900         doc/posix-functions/ualarm.texi.
25901         * doc/pastposix-functions/usleep.texi: Renamed from
25902         doc/posix-functions/usleep.texi.
25903         * doc/pastposix-functions/vfork.texi: Renamed from
25904         doc/posix-functions/vfork.texi.
25905         * doc/pastposix-functions/wcswcs.texi: Renamed from
25906         doc/posix-functions/wcswcs.texi.
25907         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
25908         (Function Substitutes): Update.
25909
25910 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25911
25912         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
25913         m4/strerror.m4.
25914
25915 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25916             Bruno Haible  <bruno@clisp.org>
25917
25918         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
25919
25920 2008-12-13  Bruno Haible  <bruno@clisp.org>
25921
25922         * modules/strtoull (Depends-on): Remove unistd.
25923
25924 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25925
25926         * modules/strtoull (Depends-on): Add stdlib.
25927
25928 2008-12-11  Simon Josefsson  <simon@josefsson.org>
25929
25930         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
25931
25932 2008-12-10  Jim Meyering  <meyering@redhat.com>
25933
25934         gl_ASSERT: don't say assertions are disabled when they're not
25935         * m4/assert.m4 (gl_ASSERT): Do not make configure report
25936         "checking whether to enable assertions... no", when they are in
25937         fact enabled.  This is solely a bug in the output of configure.
25938         In spite of saying "no", NDEBUG was not defined in that case.
25939         Also, as noted by Eric Blake, leave assertions enabled upon
25940         --enable-assert=INVALID.
25941
25942 2008-12-10  Bruno Haible  <bruno@clisp.org>
25943
25944         Change MODULES.html to refer to POSIX:2008 where possible.
25945         * MODULES.html.sh (POSIX2008_URL): New variable.
25946         (posix_headers): Remove sys/timeb, ucontext.
25947         (posix2001_headers): New variable.
25948         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
25949         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
25950         index, makecontext, mktemp, pthread_attr_getstackaddr,
25951         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
25952         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
25953         (posix2001_functions): New variable.
25954         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
25955         otherwise.
25956
25957 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25958
25959         add missing include to parse-duration.c
25960         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
25961         * modules/parse-duration (Depends-on): Add xalloc.
25962
25963         fix sed script reading maint.mk
25964         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
25965         (syntax-check-rules): Use it.
25966
25967 2008-12-09  Bruno Haible  <bruno@clisp.org>
25968
25969         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
25970         MacOS X 10.4/PowerPC.
25971         Reported by Simon Josefsson.
25972
25973 2008-12-08  Jim Meyering  <meyering@redhat.com>
25974
25975         work around mingw's lack of some S_IF definitions
25976         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
25977         Reported by Simon Josefsson.
25978
25979 2008-12-08  Bruno Haible  <bruno@clisp.org>
25980
25981         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
25982         applied to variables. Needed on MacOS X 10.4/PowerPC.
25983         Reported by Simon Josefsson.
25984
25985 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
25986         and Eric Blake  <ebb9@byu.net>
25987
25988         assert: honor --enable-assert
25989         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
25990         order to honor --enable-assert, rather than treating it as a
25991         synonym for --disable-assert.
25992
25993 2008-12-08  Jim Meyering  <meyering@redhat.com>
25994
25995         * lib/posixtm.c: Remove now-useless declaration of mktime.
25996
25997         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
25998
25999 2008-12-07  Bruno Haible  <bruno@clisp.org>
26000
26001         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
26002         test_once): Mark functions as static.
26003         * tests/test-tls.c (test_tls): Likewise.
26004
26005 2008-12-07  Bruno Haible  <bruno@clisp.org>
26006
26007         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
26008         iconv_register_autodetect.
26009
26010 2008-12-07  Jim Meyering  <meyering@redhat.com>
26011
26012         posixtm.c: avoid a warning
26013         * lib/posixtm.c (posixtime): Don't initialize tm0.
26014         It's no longer needed to placate gcc4's -Wuninitialized,
26015         and the attempt to placate would elicit a new warning.
26016
26017         unicodeio.c: mark unused parameters
26018         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
26019         (fallback_failure_callback): Likewise.
26020
26021 2008-12-07  Bruno Haible  <bruno@clisp.org>
26022
26023         * gnulib-tool (func_create_testdir): When building the tests
26024         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
26025         Reported by Simon Josefsson.
26026
26027 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26028
26029         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
26030
26031 2008-12-06  Bruno Haible  <bruno@clisp.org>
26032
26033         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
26034         Suggested by Eric Blake.
26035
26036 2008-12-06  Bruno Haible  <bruno@clisp.org>
26037
26038         Fix a c-stack test failure on MacOS X.
26039         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
26040         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
26041         handler for SIGBUS as well.
26042         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
26043         install a signal handler for SIGBUS as well.
26044         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
26045
26046 2008-12-06  Bruno Haible  <bruno@clisp.org>
26047
26048         Advocacy documentation.
26049         * doc/gnulib-intro.texi (Benefits): New section.
26050         * doc/gnulib.texi: Update.
26051
26052 2008-12-06  Bruno Haible  <bruno@clisp.org>
26053
26054         Document the 'manywarnings' module.
26055         * doc/manywarnings.texi: New file.
26056         * doc/gnulib.texi: Include it.
26057
26058 2008-12-05  Eric Blake  <ebb9@byu.net>
26059
26060         tests: silence some gcc warnings
26061         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
26062         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
26063         type mismatches.
26064
26065 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26066             Bruno Haible  <bruno@clisp.org>
26067
26068         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
26069
26070 2008-11-29  Jim Meyering  <meyering@redhat.com>
26071
26072         unicodeio.c: mark unused parameters
26073         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
26074         (fallback_failure_callback): Likewise.
26075
26076         fts: fix a thinko
26077         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
26078         (set_stat_type): Return S_IF*-valued "type" directly.
26079         Prompted by James Youngman's spotting a related bug.
26080         Confirmed by further testing through find.
26081
26082         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
26083         * lib/fts.c (D_TYPE): Define.
26084         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
26085         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
26086         (s_ifmt_shift_bits): New function.
26087         (set_stat_type): New function.
26088         (fts_build): When not calling fts_stat, call set_stat_type
26089         to propagate dirent.d_type info to fts_read caller.
26090         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
26091         fts_statp->st_mode type information may be valid.
26092
26093 2008-11-28  Simon Josefsson  <simon@josefsson.org>
26094
26095         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
26096         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
26097         <sds@gnu.org>.
26098
26099 2008-11-20  Bruno Haible  <bruno@clisp.org>
26100
26101         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
26102         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
26103         INCLUDE_NEXT.
26104         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
26105         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
26106         * modules/math (Makefile.am): Substitute
26107         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
26108         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26109
26110 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
26111             Bruno Haible  <bruno@clisp.org>
26112
26113         * lib/stdint.in.h: Define all type macros so that their expansion is
26114         a single typedef'ed token. Fixes a compilation failure in Boost which
26115         does "using ::int8_t;".
26116
26117 2008-11-18  Simon Josefsson  <simon@josefsson.org>
26118
26119         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
26120         gl_MANYWARN_ALL_GCC.
26121         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
26122         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
26123         * modules/manywarnings: New file.
26124         * MODULES.html.sh: Mention manywarnings module.
26125
26126 2008-11-18  Bruno Haible  <bruno@clisp.org>
26127
26128         * doc/gnulib-tool.texi (Unit tests): New section.
26129
26130 2008-11-18  Simon Josefsson  <simon@josefsson.org>
26131
26132         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
26133         paths like 'lib/po/foo.po'.
26134
26135 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26136
26137         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
26138         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
26139
26140 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26141
26142         * m4/warnings.m4: Use CPPFLAGS to really check whether the
26143         parameter works.
26144
26145 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26146
26147         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
26148
26149 2008-11-17  Bruce Korb  <bkorb@gnu.org>
26150
26151         * modules/parse-duration-tests: New file.
26152         * tests/test-parse-duration.sh: New file.
26153         * tests/test-parse-duration.c: New file.
26154
26155         New module 'parse-duration'.
26156         * lib/parse-duration.h: New file.
26157         * lib/parse-duration.c: New file.
26158         * modules/parse-duration: New file.
26159
26160 2008-11-17  Bruno Haible  <bruno@clisp.org>
26161
26162         * tests/test-select-out.sh: Comment out the first pipe test.
26163         Reported by Simon Josefsson.
26164
26165 2008-11-17  Bruno Haible  <bruno@clisp.org>
26166
26167         * modules/getaddrinfo (Depends-on): Add servent, hostent.
26168         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
26169         gl_HOSTENT.
26170
26171 2008-11-17  Bruno Haible  <bruno@clisp.org>
26172
26173         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
26174         -lnetwork and -lnet. Needed for Haiku and BeOS.
26175
26176 2008-11-16  Bruno Haible  <bruno@clisp.org>
26177
26178         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
26179
26180 2008-11-16  Bruno Haible  <bruno@clisp.org>
26181
26182         Avoid test failure on Haiku.
26183         * tests/test-fsync.c: Include <errno.h>.
26184         (main): Don't require that fsync (0) fails.
26185
26186 2008-11-15  Bruno Haible  <bruno@clisp.org>
26187
26188         New module 'hostent'.
26189         * modules/hostent: New file.
26190         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
26191
26192 2008-11-15  Bruno Haible  <bruno@clisp.org>
26193
26194         New module 'servent'.
26195         * modules/servent: New file.
26196         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
26197
26198 2008-11-15  Bruno Haible  <bruno@clisp.org>
26199
26200         Avoid generating same test program with two different rules.
26201         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
26202         test-frexp to test-frexp-nolibm.
26203         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
26204         test-frexpl to test-frexpl-nolibm.
26205
26206 2008-11-15  Bruno Haible  <bruno@clisp.org>
26207
26208         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
26209         $(FREXPL_LIBM).
26210
26211 2008-11-15  Bruno Haible  <bruno@clisp.org>
26212
26213         * lib/netdb.in.h: Activate the definitions also when the system's
26214         <netdb.h> has 'struct addrinfo'.
26215         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
26216         EAI_OVERFLOW or AI_NUMERICSERV.
26217         * doc/posix-headers/netdb.texi: Document the problem.
26218
26219 2008-11-15  Bruno Haible  <bruno@clisp.org>
26220
26221         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
26222
26223         Make the 'sched' module work on platforms where <sched.h> exists but
26224         is incomplete (such as Haiku).
26225         * lib/sched.in.h; Include the system's <sched.h> if it exists.
26226         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
26227         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
26228         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
26229         HAVE_STRUCT_SCHED_PARAM.
26230         * modules/sched (Depends-on): Add include_next.
26231         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
26232         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
26233         * doc/posix-headers/sched.texi: Document the issue.
26234
26235 2008-11-13  Jim Meyering  <meyering@redhat.com>
26236
26237         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
26238         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
26239         test would fail due to the difference in the Report bugs to ...
26240         line.  The expected address is empty, "<>", while the actual
26241         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
26242
26243 2008-11-12  Bruno Haible  <bruno@clisp.org>
26244
26245         lstat: don't compile lstat.c on systems lacking lstat
26246         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
26247         which don't have lstat; this is handled by lib/sys_stat.in.h already.
26248         Reported by Daniel P. Berrange via Jim Meyering.
26249
26250 2008-11-12  Jim Meyering  <meyering@redhat.com>
26251
26252         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
26253
26254 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26255
26256         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
26257         instead.
26258
26259 2008-11-12  Bruno Haible  <bruno@clisp.org>
26260
26261         * lib/unicodeio.c: Include unistr.h.
26262         (utf8_wctomb): Remove function.
26263         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
26264
26265 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26266
26267         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
26268         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
26269         <bruno@clisp.org>.
26270         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
26271
26272 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26273
26274         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
26275         * doc/gnulib.texi: Add section for warnings.
26276
26277 2008-11-11  Bruno Haible  <bruno@clisp.org>
26278
26279         * lib/sockets.h: Add a comment.
26280
26281 2008-11-11  Karl Berry  <karl@gnu.org>
26282
26283         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
26284
26285 2008-11-11  Eric Blake  <ebb9@byu.net>
26286
26287         fdl.texi: avoid git symlinks
26288         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
26289
26290 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26291
26292         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
26293
26294 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26295
26296         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
26297         (gl_WARN_ADD): Substitute $2 if literal.
26298
26299 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26300
26301         * m4/warning.m4: Remove.
26302
26303 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26304
26305         * m4/warnings.m4: Almost complete rewrite. :-)
26306
26307 2008-11-10  Simon Josefsson  <simon@josefsson.org>
26308
26309         * modules/warnings: New module.
26310         * m4/warnings.m4: New file.
26311         * MODULES.html.sh: Mention warnings module.
26312         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
26313         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26314
26315 2008-11-10  Eric Blake  <ebb9@byu.net>
26316
26317         fdl.texi: make a symlink to the latest version
26318         * doc/standards.texi: Revert today's earlier change.
26319         * doc/fdl-1.2.texi: Rename from old fdl.texi...
26320         * doc/fdl.texi: ...and replace this with a symlink to the newer
26321         fdl-1.3.texi.
26322
26323 2008-11-10  Bruno Haible  <bruno@clisp.org>
26324
26325         * tests/test-select-fd.c (main): Accept the result file name as fourth
26326         argument.
26327         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
26328         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
26329
26330 2008-11-10  Bruno Haible  <bruno@clisp.org>
26331
26332         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
26333         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
26334         as autoconf-substituted macros.
26335         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
26336         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
26337         gl_NETDB_H_DEFAULTS. Set these variables.
26338         * modules/netdb (Makefile.am): Substitute these variables.
26339
26340 2008-11-10  Eric Blake  <ebb9@byu.net>
26341
26342         standards.texi: include correct file for FDL 1.3
26343         * doc/standards.texi (GNU Free Documentation License): Change
26344         include file to pull in FDL 1.3, not 1.2.
26345
26346         fdl.texi: revert accidental change to license
26347         * doc/fdl.texi: This is FDL 1.2, not 1.3.
26348
26349 2008-11-10  Bruno Haible  <bruno@clisp.org>
26350
26351         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
26352         cross-compiling guesses also when the native compile gives no result.
26353
26354 2008-11-10  Bruno Haible  <bruno@clisp.org>
26355
26356         * lib/spawni.c (__spawni): Force variable into the stack.
26357
26358 2008-11-10  Bruno Haible  <bruno@clisp.org>
26359
26360         Add support for Haiku.
26361         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
26362         glibc and BeOS, but also on Haiku.
26363         * lib/fpurge.c (fpurge): Likewise.
26364         * lib/freadable.c (freadable): Likewise.
26365         * lib/freadahead.c (freadahead): Likewise.
26366         * lib/freading.c (freading): Likewise.
26367         * lib/freadptr.c (freadptr): Likewise.
26368         * lib/freadseek.c (freadptrinc): Likewise.
26369         * lib/fseeko.c (rpl_fseeko): Likewise.
26370         * lib/fseterr.c (fseterr): Likewise.
26371         * lib/fwritable.c (fwritable): Likewise.
26372         * lib/fwriting.c (fwriting): Likewise.
26373         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
26374
26375 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26376
26377         * lib/config.charset: Treat Haiku like BeOS.
26378
26379 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26380
26381         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
26382         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
26383
26384 2008-11-08  Bruno Haible  <bruno@clisp.org>
26385
26386         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
26387         AC_CACHE_CHECK.
26388
26389 2008-11-08  Bruno Haible  <bruno@clisp.org>
26390
26391         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
26392
26393 2008-11-08  Bruno Haible  <bruno@clisp.org>
26394
26395         * tests/test-select-fd.c: New file.
26396         * tests/test-select-in.sh: New file.
26397         * tests/test-select-out.sh: New file.
26398         * tests/test-select-stdin.c: New file.
26399         * modules/select-tests (Files): Add the new files.
26400         (Depends-on): Add gettimeofday.
26401         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
26402         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
26403         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
26404
26405 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
26406             Bruno Haible  <bruno@clisp.org>
26407
26408         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
26409
26410 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
26411
26412         * build-aux/pmccabe2html: Added support for C++ source files.
26413
26414 2008-11-05  Ben Pfaff  <blp@gnu.org>
26415
26416         Fix lib/close.c build on Windows.
26417         * modules/close (Files): Add lib/w32sock.h.
26418
26419 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
26420
26421         Accept Bison's NEWS format.
26422         * build-aux/announce-gen (print_news_deltas): Tweak
26423         $re_prefix.
26424
26425 2008-11-04  Bruno Haible  <bruno@clisp.org>
26426
26427         * modules/random_r (Maintainer): Add glibc.
26428
26429 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26430
26431         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
26432         by karl@freefriends.org (Karl Berry).
26433         * doc/alloca.texi: Likewise.
26434         * doc/c-ctype.texi: Likewise.
26435         * doc/c-strcase.texi: Likewise.
26436         * doc/c-strcaseeq.texi: Likewise.
26437         * doc/c-strcasestr.texi: Likewise.
26438         * doc/c-strstr.texi: Likewise.
26439         * doc/c-strtod.texi: Likewise.
26440         * doc/c-strtold.texi: Likewise.
26441         * doc/ctime.texi: Likewise.
26442         * doc/error.texi: Likewise.
26443         * doc/fdl.texi: Likewise.
26444         * doc/gcd.texi: Likewise.
26445         * doc/getdate.texi: Likewise.
26446         * doc/gnulib-intro.texi: Likewise.
26447         * doc/gnulib-tool.texi: Likewise.
26448         * doc/gnulib.texi: Likewise.
26449         * doc/inet_ntoa.texi: Likewise.
26450         * doc/maintain.texi: Likewise.
26451         * doc/make-stds.texi: Likewise.
26452         * doc/quote.texi: Likewise.
26453         * doc/regexprops-generic.texi: Likewise.
26454         * doc/standards.texi: Likewise.
26455         * doc/verify.texi: Likewise.
26456         * doc/visibility.texi: Likewise.
26457         * doc/gnulib.texi (GNU Free Documentation License): Include
26458         fdl-1.3.texi instead of fdl.texi.
26459
26460 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26461
26462         * doc/fdl-1.3.texi: New file, from
26463         <http://www.gnu.org/licenses/fdl-1.3.texi>.
26464         * modules/fdl-1.3: Add.
26465         * MODULES.html.sh: Add fdl-1.3.
26466
26467 2008-11-03  Bruno Haible  <bruno@clisp.org>
26468
26469         Make determination of absolute name of header file work with AIX xlc.
26470         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
26471         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
26472         preprocessing.
26473         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26474         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
26475
26476 2008-11-03  Simon Josefsson  <simon@josefsson.org>
26477
26478         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
26479         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
26480         <ludo@gnu.org>.
26481
26482 2008-11-02  Bruno Haible  <bruno@clisp.org>
26483
26484         Mark 'strpbrk' obsolete.
26485         * modules/strpbrk (Status, Notice): New sections.
26486         * modules/strtok_r (Depends-on): Add strpbrk.
26487
26488 2008-11-02  Bruno Haible  <bruno@clisp.org>
26489
26490         Mark 'strdup' obsolete.
26491         * modules/strdup (Status, Notice): New sections.
26492         * modules/findprog (Depends-on): Add strdup.
26493         * modules/getaddrinfo (Depends-on): Likewise.
26494         * modules/localename (Depends-on): Likewise.
26495         * modules/relocatable-lib (Depends-on): Likewise.
26496         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
26497         * modules/relocatable-prog (Depends-on): Likewise.
26498         * modules/trim (Depends-on): Likewise.
26499         * modules/unictype/gen-ctype (Depends-on): Likewise.
26500         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26501
26502 2008-11-02  Bruno Haible  <bruno@clisp.org>
26503
26504         Mark 'strcspn' obsolete.
26505         * modules/strcspn (Status, Notice): New sections.
26506
26507 2008-11-02  Bruno Haible  <bruno@clisp.org>
26508
26509         Mark 'rmdir' obsolete.
26510         * modules/rmdir (Status, Notice): New sections.
26511         * modules/clean-temp (Depends-on): Add rmdir.
26512         * modules/openat (Depends-on): Likewise.
26513
26514 2008-11-02  Bruno Haible  <bruno@clisp.org>
26515
26516         Mark 'raise' obsolete.
26517         * modules/raise (Status, Notice): New sections.
26518         (Include): Specify <signal.h>.
26519         * modules/stdio (Depends-on): Add raise.
26520         * modules/write (Depends-on): Likewise.
26521
26522 2008-11-02  Bruno Haible  <bruno@clisp.org>
26523
26524         Mark 'memset' obsolete.
26525         * modules/memset (Status, Notice): New sections.
26526
26527 2008-11-02  Bruno Haible  <bruno@clisp.org>
26528
26529         Mark 'memmove' obsolete.
26530         * modules/memmove (Status, Notice): New sections.
26531         * modules/argp (Depends-on): Add memmove.
26532         * modules/argz (Depends-on): Likewise.
26533         * modules/canonicalize (Depends-on): Likewise.
26534         * modules/canonicalize-lgpl (Depends-on): Likewise.
26535         * modules/fts (Depends-on): Likewise.
26536         * modules/getcwd (Depends-on): Likewise.
26537         * modules/human (Depends-on): Likewise.
26538         * modules/regex (Depends-on): Likewise.
26539         * modules/striconveh (Depends-on): Likewise.
26540         * modules/trim (Depends-on): Likewise.
26541         * modules/unistr/u8-move (Depends-on): Likewise.
26542         * modules/unistr/u16-move (Depends-on): Likewise.
26543         * modules/unistr/u32-move (Depends-on): Likewise.
26544
26545 2008-11-02  Bruno Haible  <bruno@clisp.org>
26546
26547         Mark 'memcpy' obsolete.
26548         * modules/memcpy (Status, Notice): New sections.
26549
26550 2008-11-02  Bruno Haible  <bruno@clisp.org>
26551
26552         Mark 'memcmp' obsolete.
26553         * modules/memcmp (Status, Notice): New sections.
26554         * modules/argmatch (Depends-on): Add memchr.
26555         * modules/backupfile (Depends-on): Likewise.
26556         * modules/c-strcasestr (Depends-on): Likewise.
26557         * modules/crypto/des (Depends-on): Likewise.
26558         * modules/csharpcomp (Depends-on): Likewise.
26559         * modules/fnmatch (Depends-on): Likewise.
26560         * modules/git-merge-changelog (Depends-on): Likewise.
26561         * modules/isnand (Depends-on): Likewise.
26562         * modules/isnand-nolibm (Depends-on): Likewise.
26563         * modules/isnanf (Depends-on): Likewise.
26564         * modules/isnanf-nolibm (Depends-on): Likewise.
26565         * modules/isnanl (Depends-on): Likewise.
26566         * modules/isnanl-nolibm (Depends-on): Likewise.
26567         * modules/mbchar (Depends-on): Likewise.
26568         * modules/memcoll (Depends-on): Likewise.
26569         * modules/quotearg (Depends-on): Likewise.
26570         * modules/regex (Depends-on): Likewise.
26571         * modules/relocatable-prog (Depends-on): Likewise.
26572         * modules/same (Depends-on): Likewise.
26573         * modules/signbit (Depends-on): Likewise.
26574         * modules/strcasestr-simple (Depends-on): Likewise.
26575         * modules/unictype/gen-ctype (Depends-on): Likewise.
26576         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26577         * modules/uniname/uniname (Depends-on): Likewise.
26578         * modules/unistr/u8-cmp (Depends-on): Likewise.
26579
26580 2008-11-02  Bruno Haible  <bruno@clisp.org>
26581
26582         Mark 'memchr' obsolete.
26583         * modules/memchr (Status, Notice): New sections.
26584         * modules/argp (Depends-on): Add memchr.
26585         * modules/base64 (Depends-on): Likewise.
26586         * modules/c-strcasestr (Depends-on): Likewise.
26587         * modules/chdir-long (Depends-on): Likewise.
26588         * modules/fnmatch (Depends-on): Likewise.
26589         * modules/getsubopt (Depends-on): Likewise.
26590         * modules/git-merge-changelog (Depends-on): Likewise.
26591         * modules/glob (Depends-on): Likewise.
26592         * modules/strcasestr-simple (Depends-on): Likewise.
26593         * modules/strnlen (Depends-on): Likewise.
26594
26595 2008-11-02  Bruno Haible  <bruno@clisp.org>
26596
26597         Mark 'atexit' obsolete.
26598         * modules/atexit (Status, Notice): New sections.
26599         * modules/chdir-long (Depends-on): Add atexit.
26600         * modules/wait-process (Depends-on): Likewise.
26601
26602 2008-11-02  Bruno Haible  <bruno@clisp.org>
26603
26604         * gnulib-tool: New option --with-obsolete.
26605         (func_usage): Document it.
26606         (func_modules_transitive_closure): Drop obsolete dependencies if
26607         incobsolete is not true.
26608         (func_import): Read and save the incobsolete variable to the cache.
26609
26610 2008-11-02  Bruno Haible  <bruno@clisp.org>
26611
26612         * modules/TEMPLATE-EXTENDED: New field 'Status'.
26613         * gnulib-tool: New option --extract-status.
26614         (func_usage): Document it.
26615         (sed_extract_prog): Recognize it.
26616         (func_get_status): New function.
26617
26618 2008-10-30  Simon Josefsson  <simon@josefsson.org>
26619
26620         * modules/sockets (License): Change from LGPL to LGPLv2+.
26621
26622 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26623
26624         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
26625
26626 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26627
26628         * MODULES.html.sh (Support for systems lacking POSIX:2001):
26629         Mention times and sys_times.
26630         * modules/sys_times, modules/sys_times-tests: New modules.
26631         * modules/times, modules/times-tests: Likewise
26632         * m4/sys_times_h.m4: New file.
26633         * lib/sys_times.in.h: Likewise
26634         * lib/times.c: Likewise.
26635         * tests/test-sys_times.c: Likewise.
26636         * tests/test-times.c: Likewise.
26637         * doc/posix-headers/sys_times.texi: Update.
26638         * doc/posix-functions/times.texi: Update.
26639
26640 2008-10-28  Jim Meyering  <meyering@redhat.com>
26641
26642         * modules/tempname (Depends-on): Add lstat.
26643
26644         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
26645
26646 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26647
26648         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
26649         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
26650         using idiom used elsewhere in gnulib.
26651
26652 2008-10-27  Jim Meyering  <meyering@redhat.com>
26653
26654         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
26655
26656 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26657
26658         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
26659         TESTS_ENVIRONMENT, for shell scripts that needs to call built
26660         programs.
26661         * tests/test-argp-2.sh: Use $EXEEXT when needed.
26662
26663 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26664
26665         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
26666
26667 2008-10-27  Bruno Haible  <bruno@clisp.org>
26668
26669         * tests/test-lstat.c: Include <stdio.h>.
26670
26671 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26672
26673         * modules/lstat-tests: New module.
26674         * tests/test-lstat.c: New file.
26675
26676 2008-10-26  Jim Meyering  <meyering@redhat.com>
26677
26678         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
26679
26680 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26681             Bruno Haible  <bruno@clisp.org>
26682
26683         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
26684         * modules/configmake (Include): Add a note that the include must come
26685         after all system headers.
26686         * lib/javaversion.c: Include configmake.h after all other includes.
26687
26688 2008-10-26  Bruno Haible  <bruno@clisp.org>
26689
26690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
26691         HAVE_STRUCT_RANDOM_DATA to 1.
26692         (gl_STDLIB_H): Simplify.
26693
26694 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26695
26696         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
26697         substitute HAVE_STRUCT_RANDOM_DATA.
26698         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
26699         random_data.
26700         * modules/stdlib (Makefile.am): Substitute
26701         HAVE_STRUCT_RANDOM_DATA.
26702
26703 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26704
26705         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
26706         * doc/gnulib-intro.texi (Copyright): Likewise.
26707
26708 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26709
26710         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
26711         findings.
26712
26713 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
26714             Bruno Haible  <bruno@clisp.org>
26715
26716         * lib/unistd.in.h: Include <winsock2.h>.
26717         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
26718         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
26719         Provide dummy declarations.
26720         (gethostname): Override.
26721         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
26722         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
26723         gl_PREREQ_SYS_H_WINSOCK2.
26724         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
26725         * doc/posix-functions/gethostname.texi: More details.
26726
26727 2008-10-25  Bruno Haible  <bruno@clisp.org>
26728
26729         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
26730         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
26731         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
26732
26733         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
26734         here ...
26735         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
26736         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
26737         gl_UNISTD_H_DEFAULTS.
26738
26739 2008-10-25  Eric Blake  <ebb9@byu.net>
26740
26741         signbit: avoid spurious compiler failure
26742         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
26743         declarations inside function.
26744
26745 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26746             Bruno Haible  <bruno@clisp.org>
26747
26748         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
26749         * modules/random_r (Depends-on): Add stdint.
26750
26751 2008-10-24  Bruno Haible  <bruno@clisp.org>
26752
26753         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
26754         Eggert.
26755         * modules/strerror (License): Likewise.
26756
26757 2008-10-24  Jim Meyering  <meyering@redhat.com>
26758
26759         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
26760         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
26761
26762 2008-10-24  Eric Blake  <ebb9@byu.net>
26763
26764         getgroups: fix compilation when getgroups is available
26765         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
26766         but with <config.h> override of getgroups disabled.
26767
26768 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26769
26770         * doc/gnulib.texi (Header files): Add note about C++ problems.
26771         Explained by Bruno Haible <bruno@clisp.org>.
26772
26773 2008-10-23  Bruno Haible  <bruno@clisp.org>
26774
26775         Define a dummy SA_NODEFER macro on Interix.
26776         * lib/signal.in.h (SA_NODEFER): Define fallback.
26777         Reported by Aleksey Cheusov <cheusov@tut.by> via
26778         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
26779
26780 2008-10-23  Bruno Haible  <bruno@clisp.org>
26781
26782         * modules/freadahead (License): Change to LGPLv2+.
26783         Suggested by Simon Josefsson.
26784
26785 2008-10-23  Jim Meyering  <meyering@redhat.com>
26786
26787         random_r: new module
26788         * modules/random_r: New file.
26789         * m4/random_r.m4: New file.
26790         * lib/random_r.c: New file, from glibc.
26791         * modules/random_r-tests: New file.
26792         * tests/test-random_r.c: New file.
26793         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
26794          Declare.
26795         (RAND_MAX): Define.
26796         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
26797         * modules/stdlib: Substitute them, too.
26798         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
26799         * doc/glibc-functions/initstate_r.texi: Mention the new module.
26800         * doc/glibc-functions/random_r.texi: Likewise.
26801         * doc/glibc-functions/setstate_r.texi: Likewise.
26802         * doc/glibc-functions/srandom_r.texi: Likewise.
26803         * config/srclist.txt: Mention it.
26804
26805 2008-10-23  David Lutterkort  <lutter@redhat.com>
26806
26807         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
26808         link requirement
26809
26810 2008-10-23  Jim Meyering  <meyering@redhat.com>
26811
26812         selinux-h: mark parameters of stub functions as intentionally unused
26813         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
26814         * lib/se-context.in.h: Likewise.
26815
26816 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26817
26818         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
26819
26820 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26821
26822         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
26823
26824 2008-10-22  Eric Blake  <ebb9@byu.net>
26825
26826         glthread/thread: avoid compiler warning
26827         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
26828         Add unreachable abort to silence compiler.
26829
26830 2008-10-22  Eric Blake  <ebb9@byu.net>
26831
26832         netdb: also supply struct addrinfo for cygwin 1.5.x
26833         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
26834         older cygwin.
26835         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
26836         cygwin.
26837         * doc/posix-headers/netdb.texi (netdb.h): Document this.
26838
26839 2008-10-22  Bruno Haible  <bruno@clisp.org>
26840
26841         * users.txt: Update entry about pspp.
26842
26843 2008-10-21  Bruno Haible  <bruno@clisp.org>
26844
26845         Simplification.
26846         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
26847         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
26848
26849         Simplification.
26850         * lib/ioctl.c (ioctl): Don't undefine.
26851         * lib/socket.c (socket): Don't undefine.
26852
26853         Remove unused module indicator macros.
26854         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
26855         GNULIB_$1 as a C macro.
26856
26857         * doc/posix-functions/close.texi: Undo last change.
26858         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
26859         Windows platforms.
26860
26861 2008-10-21  Bruno Haible  <bruno@clisp.org>
26862
26863         Add gethostname() declaration to <unistd.h>.
26864         * lib/unistd.in.h (gethostname): New declaration.
26865         * lib/gethostname.c: Include <unistd.h>.
26866         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
26867         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
26868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
26869         and HAVE_GETHOSTNAME.
26870         * modules/gethostname (Depends-on): Add unistd.
26871         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26872         (Include): Specify <unistd.h>.
26873         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
26874         HAVE_GETHOSTNAME.
26875         * tests/test-gethostname.c: Include <unistd.h> first.
26876
26877 2008-10-21  Bruno Haible  <bruno@clisp.org>
26878
26879         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
26880         * modules/select-tests (Depends-on): Likewise.
26881         Reported by Simon Josefsson.
26882
26883 2008-10-21  Simon Josefsson  <simon@josefsson.org>
26884
26885         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
26886         * lib/accept.c: New file, based on winsock.c.
26887         * lib/bind.c: New file, based on winsock.c.
26888         * lib/connect.c: New file, based on winsock.c.
26889         * lib/getpeername.c: New file, based on winsock.c.
26890         * lib/getsockname.c: New file, based on winsock.c.
26891         * lib/getsockopt.c: New file, based on winsock.c.
26892         * lib/ioctl.c: New file, based on winsock.c.
26893         * lib/listen.c: New file, based on winsock.c.
26894         * lib/recv.c: New file, based on winsock.c.
26895         * lib/recvfrom.c: New file, based on winsock.c.
26896         * lib/send.c: New file, based on winsock.c.
26897         * lib/sendto.c: New file, based on winsock.c.
26898         * lib/setsockopt.c: New file, based on winsock.c.
26899         * lib/shutdown.c: New file, based on winsock.c.
26900         * lib/socket.c: New file, based on winsock.c.
26901         * lib/w32sock.h: New file, based on winsock.c.
26902         * lib/winsock.c: Remove file.
26903         * modules/accept: Likewise.
26904         * modules/bind: Likewise.
26905         * modules/connect: Likewise.
26906         * modules/getpeername: Likewise.
26907         * modules/getsockname: Likewise.
26908         * modules/getsockopt: Likewise.
26909         * modules/ioctl: Likewise.
26910         * modules/listen: Likewise.
26911         * modules/recv: Likewise.
26912         * modules/recvfrom: Likewise.
26913         * modules/send: Likewise.
26914         * modules/sendto: Likewise.
26915         * modules/setsockopt: Likewise.
26916         * modules/shutdown: Likewise.
26917         * modules/socket: Use socket.c instead of winsock.c.
26918         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
26919         * doc/posix-functions/accept.texi: Doc fix.
26920         * doc/posix-functions/bind.texi: Doc fix.
26921         * doc/posix-functions/close.texi: Doc fix.
26922         * doc/posix-functions/connect.texi: Doc fix.
26923         * doc/posix-functions/getpeername.texi: Doc fix.
26924         * doc/posix-functions/getsockname.texi: Doc fix.
26925         * doc/posix-functions/getsockopt.texi: Doc fix.
26926         * doc/posix-functions/ioctl.texi: Doc fix.
26927         * doc/posix-functions/listen.texi: Doc fix.
26928         * doc/posix-functions/recv.texi: Doc fix.
26929         * doc/posix-functions/recvfrom.texi: Doc fix.
26930         * doc/posix-functions/send.texi: Doc fix.
26931         * doc/posix-functions/sendto.texi: Doc fix.
26932         * doc/posix-functions/setsockopt.texi: Doc fix.
26933         * doc/posix-functions/shutdown.texi: Doc fix.
26934         * doc/posix-functions/socket.texi: Doc fix.
26935
26936 2008-10-20  Bruno Haible  <bruno@clisp.org>
26937
26938         Take into account the role of SIGABRT_COMPAT on Windows 2008.
26939         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
26940         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
26941         as an alias for SIGABRT.
26942         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
26943         (sigaction): Map it to SIGABRT.
26944         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
26945
26946 2008-10-20  Bruno Haible  <bruno@clisp.org>
26947
26948         * lib/fts.c: Don't include lstat.h.
26949         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
26950
26951         Move the lstat() declaration to <sys/stat.h>.
26952         * lib/lstat.h: Remove file.
26953         * lib/sys_stat.in.h: Add special invocation convention.
26954         (lstat): New declaration.
26955         * lib/lstat.c (orig_lstat): New function.
26956         (rpl_lstat): Use orig_lstat instead of lstat.
26957         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
26958         AC_C_INLINE. Set REPLACE_LSTAT.
26959         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
26960         and REPLACE_LSTAT.
26961         * modules/lstat (Files): Remove lib/lstat.h.
26962         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26963         (Include): Specify <sys/stat.h> instead of lstat.h.
26964         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
26965         REPLACE_LSTAT.
26966         * NEWS: Mention the change.
26967
26968 2008-10-20  Bruno Haible  <bruno@clisp.org>
26969
26970         * modules/posix_spawn-tests: New file.
26971         * tests/test-posix_spawn3.c: New file.
26972
26973 2008-10-20  Bruno Haible  <bruno@clisp.org>
26974
26975         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
26976         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26977         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
26978         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26979         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
26980
26981 2008-10-20  Bruno Haible  <bruno@clisp.org>
26982
26983         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
26984         of posix_spawn on AIX 5.3.
26985
26986 2008-10-20  Bruno Haible  <bruno@clisp.org>
26987
26988         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
26989
26990 2008-10-20  Bruno Haible  <bruno@clisp.org>
26991
26992         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
26993         of AC_LANG_PROGRAM.
26994
26995 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26996
26997         * lib/netdb.in.h: Don't define GNU specific constants until they
26998         are supported or needed.  Reported by Bruno Haible
26999         <bruno@clisp.org>.
27000
27001 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27002
27003         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
27004
27005 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27006
27007         * lib/getaddrinfo.h: Remove file.
27008         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
27009         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
27010         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
27011         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
27012         * modules/netdb: Substitute GNULIB_GETADDRINFO.
27013         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
27014         * tests/test-getaddrinfo.c: Likewise.
27015         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
27016         * NEWS: Mention change.
27017
27018 2008-10-19  Bruno Haible  <bruno@clisp.org>
27019
27020         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
27021
27022 2008-10-19  Bruno Haible  <bruno@clisp.org>
27023
27024         * lib/wait-process.c: Include simply <sys/wait.h>.
27025         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
27026         WIFSTOPPED): Remove fallback definitions.
27027         * modules/wait-process (Depends-on): Add sys_wait.
27028
27029         New module 'sys_wait'.
27030         * modules/sys_wait: New file.
27031         * lib/sys_wait.in.h: New file, partially copied from
27032         lib/wait-process.c.
27033         * m4/sys_wait_h.m4: New file.
27034         * doc/posix-headers/sys_wait.texi: Mention the new module.
27035
27036 2008-10-19  Bruno Haible  <bruno@clisp.org>
27037
27038         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
27039
27040 2008-10-19  Bruno Haible  <bruno@clisp.org>
27041
27042         Assume that waitpid() fills an 'int' status, not a 'union wait'.
27043         * lib/wait-process.c (WAIT_T): Remove type.
27044         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
27045         (wait_subprocess): Update.
27046
27047 2008-10-19  Bruno Haible  <bruno@clisp.org>
27048
27049         New module 'atoll'.
27050         * modules/atoll: New file.
27051         * lib/stdlib.in.h (atoll): New declaration.
27052         * lib/atoll.c: New file, from glibc with modifications.
27053         * m4/atoll.m4: New file.
27054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
27055         HAVE_ATOLL.
27056         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
27057         * doc/posix-functions/atoll.texi: Mention the new module.
27058
27059 2008-10-19  Bruno Haible  <bruno@clisp.org>
27060
27061         Add strtoull() declaration to <stdlib.h>.
27062         * lib/stdlib.in.h (strtoull): New declaration.
27063         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
27064         Set HAVE_STRTOULL.
27065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
27066         HAVE_STRTOULL.
27067         * modules/strtoull (Depends-on): Add stdlib.
27068         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27069         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
27070         HAVE_STRTOULL.
27071
27072 2008-10-19  Bruno Haible  <bruno@clisp.org>
27073
27074         Add strtoll() declaration to <stdlib.h>.
27075         * lib/stdlib.in.h (strtoll): New declaration.
27076         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
27077         Set HAVE_STRTOLL.
27078         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
27079         HAVE_STRTOLL.
27080         * modules/strtoll (Depends-on): Add stdlib.
27081         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27082         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
27083
27084 2008-10-19  Bruno Haible  <bruno@clisp.org>
27085
27086         * modules/bcopy (Depends-on): Add strings.
27087         (Include): Specify <strings.h>.
27088
27089 2008-10-19  Bruno Haible  <bruno@clisp.org>
27090
27091         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
27092
27093 2008-10-19  Bruno Haible  <bruno@clisp.org>
27094
27095         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
27096         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
27097         mingw.
27098
27099 2008-10-19  Bruno Haible  <bruno@clisp.org>
27100
27101         * lib/atanl.c: Don't include isnanl.h.
27102         * lib/cosl.c: Likewise.
27103         * lib/ldexpl.c: Likewise.
27104         * lib/logl.c: Likewise.
27105         * lib/sinl.c: Likewise.
27106         * lib/sqrtl.c: Likewise.
27107         * lib/tanl.c: Likewise.
27108
27109         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
27110         * lib/isnanf.h: Remove file.
27111         * lib/isnand.h: Remove file.
27112         * lib/isnanl.h: Remove file.
27113         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
27114         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
27115         macros.
27116         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
27117         HAVE_ISNANF, don't define it as a C macro.
27118         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
27119         HAVE_ISNAND, don't define it as a C macro.
27120         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
27121         HAVE_ISNANL, don't define it as a C macro.
27122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
27123         HAVE_ISNAN[FDL].
27124         * modules/isnanf (Files): Remove lib/isnanf.h.
27125         (Depends-on): Add math.
27126         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27127         (Include): Specify <math.h> instead of isnanf.h.
27128         * modules/isnand (Files): Remove lib/isnand.h.
27129         (Depends-on): Add math.
27130         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27131         (Include): Specify <math.h> instead of isnand.h.
27132         * modules/isnanl (Files): Remove lib/isnanl.h.
27133         (Depends-on): Add math.
27134         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27135         (Include): Specify <math.h> instead of isnanl.h.
27136         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
27137         HAVE_ISNAN[FDL].
27138         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
27139         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
27140         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
27141         * NEWS: Mention the change.
27142
27143 2008-10-18  Bruno Haible  <bruno@clisp.org>
27144
27145         Add getusershell(), setusershell(), endusershell() declarations to
27146         <unistd.h>.
27147         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
27148         declarations.
27149         * lib/getusershell.c: Include unistd.h.
27150         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
27151         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
27152         HAVE_GETUSERSHELL.
27153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
27154         and HAVE_GETUSERSHELL.
27155         * modules/getusershell (Depends-on): Add unistd, extensions.
27156         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27157         (Include): Specify <unistd.h>.
27158         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
27159         HAVE_GETUSERSHELL.
27160
27161 2008-10-18  Bruno Haible  <bruno@clisp.org>
27162
27163         Add a getloadavg() declaration to <stdlib.h>.
27164         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
27165         getloadavg declaration.
27166         (getloadavg): New declaration.
27167         * lib/getloadavg.c: Include <stdlib.h> first.
27168         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
27169         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
27170         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
27171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
27172         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
27173         * modules/getloadavg (Depends-on): Add stdlib, extensions.
27174         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27175         (Include): Specify <stdlib.h>.
27176         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
27177         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
27178
27179 2008-10-18  Bruno Haible  <bruno@clisp.org>
27180
27181         * lib/dirchownmod.c: Don't include lchmod.h.
27182
27183         Move the lchmod() declaration to <sys/stat.h>.
27184         * lib/lchmod.h: Remove file.
27185         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
27186         (lchmod): New declaration, moved here from lib/lchown.h.
27187         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
27188         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
27189         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
27190         and HAVE_LCHMOD.
27191         * modules/lchmod (Files): Remove lib/lchmod.h.
27192         (Depends-on): Add sys_stat, extensions.
27193         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
27194         (Include): Specify <sys/stat.h> instead of lchmod.h.
27195         * modules/sys_stat (Depends-on): Add link-warning.
27196         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
27197         definition of GL_LINK_WARNING.
27198         * NEWS: Mention the change.
27199
27200 2008-10-18  Bruno Haible  <bruno@clisp.org>
27201
27202         * lib/fchdir.c: Don't include dirfd.h.
27203         * lib/fts.c: Likewise.
27204         * lib/getcwd.c: Likewise.
27205         * lib/glob.c: Likewise.
27206
27207         Move the dirfd() declaration to <dirent.h>.
27208         * lib/dirfd.h: Remove file.
27209         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
27210         (dirfd): New declaration.
27211         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
27212         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
27213         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
27214         HAVE_DECL_DIRFD.
27215         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
27216         HAVE_DECL_DIRFD.
27217         * modules/dirfd (Files): Remove lib/dirfd.h.
27218         (Depends-on): Add dirent, extensions.
27219         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
27220         (Include): Specify <dirent.h> instead of dirfd.h.
27221         * modules/dirent (Depends-on): Add link-warning.
27222         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
27223         definition of GL_LINK_WARNING.
27224         * NEWS: Mention the change.
27225
27226 2008-10-18  Bruno Haible  <bruno@clisp.org>
27227
27228         Move the euidaccess() declaration to <unistd.h>.
27229         * lib/euidaccess.h: Remove file.
27230         * lib/unistd.in.h (euidaccess): New declaration.
27231         * lib/euidaccess.c: Don't include euidaccess.h.
27232         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
27233         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
27234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
27235         and HAVE_EUIDACCESS.
27236         * modules/euidaccess (Files): Remove lib/euidaccess.h.
27237         (Depends-on): Add unistd.
27238         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27239         (Include): Specify <unistd.h> instead of euidaccess.h.
27240         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
27241         HAVE_EUIDACCESS.
27242         * NEWS: Mention the change.
27243
27244 2008-10-18  Bruno Haible  <bruno@clisp.org>
27245
27246         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
27247
27248         Move the getdomainname() declaration to <unistd.h>.
27249         * lib/getdomainname.h: Remove file.
27250         * lib/unistd.in.h (getdomainname): New declaration.
27251         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
27252         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27253         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
27254         HAVE_GETDOMAINNAME.
27255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27256         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
27257         * modules/getdomainname (Files): Remove lib/getdomainname.h.
27258         (Depends-on): Add unistd, extensions.
27259         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27260         (Includes): Specify <unistd.h> instead of getdomainname.h.
27261         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
27262         HAVE_GETDOMAINNAME.
27263         * NEWS: Mention the change.
27264
27265 2008-10-18  Bruno Haible  <bruno@clisp.org>
27266
27267         * modules/dirent: New file.
27268         * m4/dirent_h.m4: New file.
27269         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
27270         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
27271         * modules/fchdir (Files): Remove lib/dirent.in.h.
27272         (Depends-on): Add dirent.
27273         (Makefile.am): Move rules to modules/dirent.
27274         * doc/posix-headers/dirent.texi: Mention the new module.
27275
27276 2008-10-18  Bruno Haible  <bruno@clisp.org>
27277
27278         Avoid -Wunused-parameter warnings in public gnulib header files.
27279         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
27280         macro.
27281         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
27282
27283 2008-10-18  Bruno Haible  <bruno@clisp.org>
27284
27285         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
27286         * doc/glibc-functions/error.texi: Mention the module 'error'.
27287         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
27288         * doc/glibc-functions/getdomainname.texi: Mention the module
27289         'getdomainname'.
27290         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
27291         * doc/glibc-functions/getpagesize.texi: Mention the module
27292         'getpagesize'.
27293         * doc/glibc-functions/getusershell.texi: Mention the module
27294         'getusershell'.
27295         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
27296         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
27297         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
27298         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
27299         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
27300         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
27301         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
27302         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
27303         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
27304         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
27305         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
27306         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
27307         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
27308         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
27309
27310 2008-10-17  Bruno Haible  <bruno@clisp.org>
27311
27312         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
27313         HP-UX and IRIX, use -0.0L.
27314         * tests/test-ceill.c (minus_zero): Likewise.
27315         * tests/test-floorl.c (minus_zero): Likewise.
27316         * tests/test-frexpl.c (minus_zero): Likewise.
27317         * tests/test-isnan.c (minus_zerol): Likewise.
27318         * tests/test-isnanl.h (minus_zero): Likewise.
27319         * tests/test-ldexpl.c (minus_zero): Likewise.
27320         * tests/test-roundl.c (minus_zero): Likewise.
27321         * tests/test-signbit.c (minus_zerol): Likewise.
27322         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27323         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27324         * tests/test-truncl.c (minus_zero): Likewise.
27325         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27326         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27327         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
27328         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27329
27330 2008-10-17  Bruno Haible  <bruno@clisp.org>
27331
27332         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
27333         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
27334         that it gets activated only for gcc >= 3.0.
27335         * lib/dirent.in.h: Likewise.
27336         * lib/errno.in.h: Likewise.
27337         * lib/fcntl.in.h: Likewise.
27338         * lib/float.in.h: Likewise.
27339         * lib/iconv.in.h: Likewise.
27340         * lib/inttypes.in.h: Likewise.
27341         * lib/locale.in.h: Likewise.
27342         * lib/math.in.h: Likewise.
27343         * lib/netdb.in.h: Likewise.
27344         * lib/netinet_in.in.h: Likewise.
27345         * lib/search.in.h: Likewise.
27346         * lib/signal.in.h: Likewise.
27347         * lib/spawn.in.h: Likewise.
27348         * lib/stdarg.in.h: Likewise.
27349         * lib/stdint.in.h: Likewise.
27350         * lib/stdio.in.h: Likewise.
27351         * lib/stdlib.in.h: Likewise.
27352         * lib/string.in.h: Likewise.
27353         * lib/strings.in.h: Likewise.
27354         * lib/sys_file.in.h: Likewise.
27355         * lib/sys_ioctl.in.h: Likewise.
27356         * lib/sys_select.in.h: Likewise.
27357         * lib/sys_socket.in.h: Likewise.
27358         * lib/sys_stat.in.h: Likewise.
27359         * lib/sys_time.in.h: Likewise.
27360         * lib/sysexits.in.h: Likewise.
27361         * lib/time.in.h: Likewise.
27362         * lib/unistd.in.h: Likewise.
27363         * lib/wchar.in.h: Likewise.
27364         * lib/wctype.in.h: Likewise.
27365         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27366
27367 2008-10-17  Jim Meyering  <meyering@redhat.com>
27368
27369         ignore-value: don't depend on inline module
27370         * modules/ignore-value (Depends-on): Remove 'inline'.
27371         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
27372         Suggestion from Bruno Haible.
27373
27374 2008-10-17  Bruno Haible  <bruno@clisp.org>
27375
27376         New implementation of condition variables for Win32.
27377         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
27378         (gl_linked_waitqueue_t): New type.
27379         (gl_cond_t): Use it.
27380         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
27381         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
27382         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
27383         (glthread_cond_init_func, glthread_cond_wait_func,
27384         glthread_cond_timedwait_func, glthread_cond_signal_func,
27385         glthread_cond_broadcast_func, glthread_cond_destroy_func):
27386         Reimplemented on the basis of gl_linked_waitqueue_t.
27387         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
27388         gl_waitqueue_t.
27389         (gl_rwlock_t): Update.
27390         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
27391
27392 2008-10-17  Simon Josefsson  <simon@josefsson.org>
27393
27394         * modules/recvfrom (Depends-on): Add dependency on getpeername.
27395         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27396
27397 2008-10-17  Jim Meyering  <meyering@redhat.com>
27398
27399         ignore-value: new module
27400         * modules/ignore-value: New file.
27401         * lib/ignore-value.h: New file.
27402         * MODULES.html.sh (Compiler warning management): New section,
27403         just for this module.  More to come.
27404
27405 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27406
27407         open-safer.c: avoid 'signed and unsigned in conditional...' warning
27408         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
27409         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
27410
27411 2008-10-16  Jim Meyering  <meyering@redhat.com>
27412
27413         openat-die.c: avoid 'no previous prototype' warning
27414         * lib/openat-die.c: Include "openat.h".
27415         Reported by Reuben Thomas <rrt@sc3d.org>.
27416
27417 2008-10-16  Simon Josefsson  <simon@josefsson.org>
27418
27419         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
27420         * lib/netdb.in.h: Fix typo.
27421         Reported by Bruno Haible  <bruno@clisp.org>
27422
27423         * lib/netdb.in.h: Include sys/socket.h for platforms without
27424         netdb.h, to get structures like hostent on MinGW.
27425         * modules/netdb (Depends-on): Add sys_socket.
27426
27427 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27428
27429         * modules/netdb, modules/netdb-tests: New file.
27430         * m4/netdb_h.m4: New file.
27431         * lib/netdb.in.h: Add, currently just an empty file pending
27432         definitions.
27433         * tests/test-netdb.c: New file.
27434         * doc/posix-headers/netdb.texi: Mention that we replace it if
27435         needed.
27436         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27437         netdb.
27438
27439 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27440
27441         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
27442         with code.
27443
27444 2008-10-13  Bruno Haible  <bruno@clisp.org>
27445
27446         * lib/glthread/cond.c (glthread_cond_wait_func,
27447         glthread_cond_timedwait_func): Add a comment.
27448
27449 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27450
27451         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
27452         * tests/test-select.c: Likewise,
27453
27454 2008-10-13  Bruno Haible  <bruno@clisp.org>
27455
27456         * lib/glthread/cond.c (glthread_cond_wait_func,
27457         glthread_cond_timedwait_func): Fix variable name.
27458         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27459
27460 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
27461
27462         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
27463         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
27464         struct sockaddr.sa_len.
27465         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
27466
27467 2008-10-13  Simon Josefsson  <simon@josefsson.org>
27468
27469         * build-aux/pmccabe2html: Add css and css_url parameters.
27470
27471 2008-10-12  Bruno Haible  <bruno@clisp.org>
27472
27473         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
27474         calling aclx_get.
27475         Reported by Rainer Tammer <tammer@tammer.net>.
27476
27477 2008-10-12  Bruno Haible  <bruno@clisp.org>
27478
27479         Use msvcrt aware primitives for creation/termination of Win32 threads.
27480         * lib/glthread/thread.c: Include <process.h>.
27481         (glthread_create_func): Use _beginthreadex instead of CreateThread.
27482         (wrapper_func): Update signature.
27483         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
27484
27485 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27486             Bruno Haible  <bruno@clisp.org>
27487
27488         Provide a Win32 implementation of the 'cond' module.
27489         * lib/glthread/cond.h [USE_WIN32]: New implementation.
27490         * lib/glthread/cond.c (glthread_cond_init_func,
27491         glthread_cond_wait_func, glthread_cond_timedwait_func,
27492         glthread_cond_signal_func, glthread_cond_broadcast_func,
27493         glthread_cond_destroy_func) [USE_WIN32]: New functions.
27494         * modules/cond (Dependencies): Add gettimeofday.
27495
27496 2008-10-11  Bruno Haible  <bruno@clisp.org>
27497
27498         Make sleep work on older versions of mingw.
27499         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
27500         only whether it exists.
27501         * doc/posix-functions/sleep.texi: Mention the problem with older
27502         versions of mingw.
27503
27504 2008-10-11  Bruno Haible  <bruno@clisp.org>
27505
27506         New module 'shutdown'.
27507         * modules/shutdown: New file.
27508         * lib/sys_socket.in.h (shutdown): New declaration.
27509         * lib/winsock.c (shutdown): New function.
27510         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27511         GNULIB_SHUTDOWN.
27512         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
27513         * doc/posix-functions/shutdown.texi: Document the new module.
27514
27515 2008-10-11  Jim Meyering  <meyering@redhat.com>
27516
27517         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
27518
27519 2008-10-11  Bruno Haible  <bruno@clisp.org>
27520
27521         New module 'fclose'.
27522         * modules/fclose: New file.
27523         * lib/stdio.in.h (fclose): New declaration.
27524         * lib/fclose.c: New file.
27525         * m4/fclose.m4: New file.
27526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
27527         REPLACE_FCLOSE.
27528         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
27529         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
27530         REPLACE_FCLOSE.
27531         * modules/close (Depends-on): fclose.
27532         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
27533
27534 2008-10-11  Bruno Haible  <bruno@clisp.org>
27535
27536         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
27537         set errno and don't call _close.
27538
27539 2008-10-10  Bruno Haible  <bruno@clisp.org>
27540
27541         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
27542         ACL, not afterwards. Fixes test failure on Cygwin.
27543
27544 2008-10-09  Ben Pfaff  <blp@gnu.org>
27545
27546         * build-aux/announce-gen: Fix gnulib version related part of usage
27547         message.  Die with a useful error message if no tarballs are
27548         found.
27549
27550 2008-10-10  Jim Meyering  <meyering@redhat.com>
27551
27552         bootstrap: use git's --depth=N option only if it's supported
27553         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
27554         recognize the --depth option.  Reported by Pádraig Brady.
27555
27556 2008-10-09  Bruno Haible  <bruno@clisp.org>
27557
27558         New module 'ioctl'.
27559         * modules/ioctl: New file.
27560         * lib/sys_socket.in.h (ioctl): Remove declaration.
27561         * lib/winsock.c: Include <sys/ioctl.h>.
27562         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
27563         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27564         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
27565         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
27566         * doc/posix-functions/ioctl.texi: Mention the new module.
27567
27568 2008-10-09  Bruno Haible  <bruno@clisp.org>
27569
27570         New module 'sys_ioctl'.
27571         * lib/sys_ioctl.in.h: New file.
27572         * m4/sys_ioctl_h.m4: New file.
27573         * modules/sys_ioctl: New file.
27574         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
27575
27576 2008-10-09  Bruno Haible  <bruno@clisp.org>
27577
27578         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
27579         * lib/winsock.c: Include <stdarg.h>.
27580         (rpl_ioctl): Change to second argument 'int' and then varargs.
27581
27582 2008-10-09  Bruno Haible  <bruno@clisp.org>
27583
27584         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
27585         when the sys_socket module is present and the system has <winsock2.h>.
27586
27587 2008-10-09  Bruno Haible  <bruno@clisp.org>
27588
27589         * doc/posix-functions/close.texi: Mention module 'close' instead of
27590         module 'sys_socket'.
27591
27592 2008-10-09  Bruno Haible  <bruno@clisp.org>
27593
27594         * doc/glibc-headers/sys_ioctl.texi: New file.
27595         * doc/gnulib.texi: Include it.
27596
27597 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27598             Bruno Haible  <bruno@clisp.org>
27599
27600         Combine the two replacements of 'close'.
27601         * lib/sys_socket.in.h (close): Define to a reminder to include
27602         <unistd.h>.
27603         (_gl_close_fd_maybe_socket): New declaration.
27604         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
27605         * lib/winsock.c (close): Remove undefinition.
27606         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
27607         needed for the gnulib module 'close'.
27608         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
27609         define to an error symbol or to a warning, if suitable.
27610         * lib/close.c: Include <sys/socket.h>.
27611         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
27612         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
27613         UNISTD_H_HAVE_WINSOCK2_H.
27614         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
27615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27616         UNISTD_H_HAVE_WINSOCK2_H.
27617         * modules/sys_socket (Files): Add m4/unistd_h.m4.
27618         (configure.ac): Set a module indicator.
27619         (Makefile.am): Substitute GNULIB_CLOSE.
27620         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
27621         * modules/poll-tests (Depends-on): Add close.
27622         * modules/select-tests (Depends-on): Likewise.
27623
27624 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27625             Bruno Haible  <bruno@clisp.org>
27626
27627         New module 'close'.
27628         * modules/close: New file.
27629         * lib/unistd.in.h (close): Move declaration out of the
27630         FCHDIR_REPLACEMENT scope.
27631         (_gl_unregister_fd): New declaration.
27632         * lib/close.c: New file.
27633         * lib/fchdir.c (rpl_close): Remove function.
27634         * m4/close.m4: New file.
27635         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27636         close.
27637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
27638         REPLACE_CLOSE.
27639         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
27640         REPLACE_CLOSE.
27641         * modules/fchdir (Depends-on): Add close.
27642
27643 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27644             Bruno Haible  <bruno@clisp.org>
27645
27646         * lib/fcntl.in.h (open): Simplify conditionals.
27647         (_gl_register_fd): New declaration.
27648         * lib/fchdir.c (rpl_open): Remove function.
27649         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
27650         also.
27651         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
27652         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27653         open.
27654
27655 2008-10-09  Jim Meyering  <meyering@redhat.com>
27656
27657         GNUmakefile: use the more name-space-friendly "_version"
27658         * top/GNUmakefile (_dummy): Update.
27659         (_version): Rename from "version".
27660
27661 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27662             Bruno Haible  <bruno@clisp.org>
27663
27664         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
27665         rpl_close.
27666         (_gl_register_fd): New function, extracted from rpl_open.
27667         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
27668         (rpl_open, rpl_opendir): Use _gl_register_fd.
27669
27670 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27671
27672         Fix organization of 'open' replacement.
27673         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
27674         (gl_FUNC_OPEN): Use it.
27675         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
27676
27677 2008-10-08  Bruno Haible  <bruno@clisp.org>
27678
27679         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
27680
27681 2008-10-08  Simon Josefsson  <simon@josefsson.org>
27682
27683         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
27684         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
27685         listen).
27686
27687 2008-10-08  Eric Blake  <ebb9@byu.net>
27688
27689         GNUmakefile: add 'make version' target
27690         * top/GNUmakefile (_curr-ver): Split version update rules...
27691         (version): ...into a target.
27692
27693 2008-10-07  Bruno Haible  <bruno@clisp.org>
27694
27695         Use a more portable replacement expression for -0.0L.
27696         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
27697         instead of -0.0L. Fix m4 quotation.
27698
27699         * tests/test-signbit.c: Include <float.h>.
27700         (minus_zero): New variable.
27701         (test_signbitl): Use minus_zero instead of -zero.
27702         * modules/signbit-tests (Depends-on): Add float.
27703
27704         * tests/test-ceill.c: Include <float.h>.
27705         (zero): Remove variable.
27706         (minus_zero): New variable.
27707         (main): Use minus_zero instead of -zero.
27708         * modules/ceill-tests (Depends-on): Add float.
27709
27710         * tests/test-floorl.c: Include <float.h>.
27711         (zero): Remove variable.
27712         (minus_zero): New variable.
27713         (main): Use minus_zero instead of -zero.
27714         * modules/floorl-tests (Depends-on): Add float.
27715
27716         * tests/test-roundl.c: Include <float.h>.
27717         (zero): Remove variable.
27718         (minus_zero): New variable.
27719         (main): Use minus_zero instead of -zero.
27720         * modules/roundl-tests (Depends-on): Add float.
27721
27722         * tests/test-truncl.c: Include <float.h>.
27723         (zero): Remove variable.
27724         (minus_zero): New variable.
27725         (main): Use minus_zero instead of -zero.
27726         * modules/truncl-tests (Depends-on): Add float.
27727
27728         * tests/test-frexpl.c (zero): Remove variable.
27729         (minus_zero): New variable.
27730         (main): Use minus_zero instead of -zero.
27731         * modules/frexpl-tests (Depends-on): Add float.
27732
27733         * tests/test-isnan.c (zerol): Remove variable.
27734         (minus_zerol): New variable.
27735         (test_long_double): Use minus_zerol instead of -zerol.
27736         * modules/isnan-tests (Depends-on): Add float.
27737
27738         * tests/test-isnanl.h (zero): Remove variable.
27739         (minus_zero): New variable.
27740         (main): Use minus_zero instead of -zero.
27741         * modules/isnanl-nolibm-tests (Depends-on): Add float.
27742         * modules/isnanl-tests (Depends-on): Add float.
27743
27744         * tests/test-ldexpl.c (zero): Remove variable.
27745         (minus_zero): New variable.
27746         (main): Use minus_zero instead of -zero.
27747         * modules/ldexpl-tests (Depends-on): Add float.
27748
27749         * tests/test-snprintf-posix.h (zerol): Remove variable.
27750         (minus_zerol): New variable.
27751         (test_function): Use minus_zerol instead of -zerol.
27752         * modules/snprintf-posix-tests (Depends-on): Add float.
27753         * modules/vsnprintf-posix-tests (Depends-on): Add float.
27754
27755         * tests/test-sprintf-posix.h (zerol): Remove variable.
27756         (minus_zerol): New variable.
27757         (test_function): Use minus_zerol instead of -zerol.
27758         * modules/sprintf-posix-tests (Depends-on): Add float.
27759         * modules/vsprintf-posix-tests (Depends-on): Add float.
27760
27761         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
27762         (minus_zerol): New variable.
27763         (test_function): Use minus_zerol instead of -zerol.
27764         * modules/vasnprintf-posix-tests (Depends-on): Add float.
27765
27766         * tests/test-vasprintf-posix.c (zerol): Remove variable.
27767         (minus_zerol): New variable.
27768         (test_function): Use minus_zerol instead of -zerol.
27769         * modules/vasprintf-posix-tests (Depends-on): Add float.
27770
27771 2008-10-07  Simon Josefsson  <simon@josefsson.org>
27772
27773         * MODULES.html.sh (Support for building documentation): Mention
27774         pmccabe2html.  Sort entries.
27775
27776         Add pmccabe2html module, from gnupdf.
27777         * build-aux/pmccabe.css: New file.
27778         * build-aux/pmccabe2html: New file.
27779         * m4/pmccabe2html.m4: New file.
27780         * modules/pmccabe2html: New file.
27781
27782 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
27783
27784         flock: new module
27785         * MODULES.html.sh: Add to list of modules.
27786         * lib/flock.c: flock implementation for Windows and Unix systems
27787         which have fcntl.
27788         * doc/glibc-functions/flock.texi: Update documentation.
27789         * lib/sys_file.in.h: <sys/file.h> header file.
27790         * m4/flock.m4: M4 macros.
27791         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
27792         * modules/flock: flock module.
27793         * modules/flock-tests: flock tests module.
27794         * modules/sys_file: sys/file.h module.
27795         * tests/test-flock.c: test suite for flock.
27796
27797 2008-10-06  Jim Meyering  <meyering@redhat.com>
27798
27799         bootstrap: check for LT_INIT more portably still ;-)
27800         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
27801         Spotted by Bruno Haible.
27802
27803 2008-10-06  Eric Blake  <ebb9@byu.net>
27804
27805         test-signbit: avoid tripping Irix cc bug on -0.0L
27806         * tests/test-signbit.c (minus_zerol): Delete, and replace with
27807         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
27808         entire testsuite consistent and avoids an Irix 6.2 bug.
27809
27810 2008-10-05  Bruno Haible  <bruno@clisp.org>
27811             Jim Meyering  <jim@meyering.net>
27812
27813         Add an option for ignoring EPIPE during close_stdout.
27814         * lib/closeout.h: Include <stdbool.h>.
27815         (close_stdout_set_ignore_EPIPE): New declaration.
27816         * lib/closeout.c: Include <stdbool.h>.
27817         (ignore_EPIPE): New variable.
27818         (close_stdout_set_ignore_EPIPE): New function.
27819         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
27820         * lib/close-stream.c (close_stream): Mention the possible EPIPE
27821         failure.
27822         * modules/closeout (Depends-on): Add stdbool.
27823
27824 2008-10-05  Bruno Haible  <bruno@clisp.org>
27825
27826         * modules/accept: New file.
27827         * modules/bind: New file.
27828         * modules/connect: New file.
27829         * modules/getpeername: New file.
27830         * modules/getsockname: New file.
27831         * modules/getsockopt: New file.
27832         * modules/listen: New file.
27833         * modules/recv: New file.
27834         * modules/recvfrom: New file.
27835         * modules/send: New file.
27836         * modules/sendto: New file.
27837         * modules/setsockopt: New file.
27838         * modules/socket: New file.
27839         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
27840         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27841         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
27842         the particular module is requested. Add a link warning when the
27843         particular module is not requested.
27844         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
27845         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
27846         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
27847         the particular module is requested.
27848         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
27849         gl_SYS_SOCKET_H_DEFAULTS): New macros.
27850         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
27851         * modules/sys_socket (Depends-on): Add link-warning.
27852         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
27853         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
27854         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
27855         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
27856         GL_LINK_WARNING.
27857         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
27858         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
27859         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
27860         * doc/posix-functions/getpeername.texi: Mention the new module
27861         'getpeername'.
27862         * doc/posix-functions/getsockname.texi: Mention the new module
27863         'getsockname'.
27864         * doc/posix-functions/getsockopt.texi: Mention the new module
27865         'getsockopt'.
27866         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
27867         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
27868         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
27869         * doc/posix-functions/send.texi: Mention the new module 'send'.
27870         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
27871         * doc/posix-functions/setsockopt.texi: Mention the new module
27872         'setsockopt'.
27873         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
27874         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
27875         listen, connect, accept.
27876         * modules/select-tests (Depends-on): Likewise.
27877
27878 2008-10-05  Bruno Haible  <bruno@clisp.org>
27879
27880         * lib/winsock.c (strerror): Remove unused #undef.
27881         (rpl_close): Remove unused local variable.
27882
27883         * modules/sys_socket (Depends-on); Add errno.
27884
27885 2008-10-05  Bruno Haible  <bruno@clisp.org>
27886
27887         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
27888         (select): Add a link warning when the 'select' module is not used.
27889         * modules/sys_select (Depends-on): Add link-warning.
27890         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
27891         Suggested by Paolo Bonzini.
27892
27893 2008-10-05  Jim Meyering  <meyering@redhat.com>
27894
27895         bootstrap: check for LT_INIT more portably
27896         * build-aux/bootstrap: Avoid using grep -E, since it's not
27897         portable enough.  Suggestion from Bruno Haible.
27898
27899 2008-10-05  Bruno Haible  <bruno@clisp.org>
27900
27901         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
27902         as being fixed by gnulib.
27903
27904 2008-10-05  Bruno Haible  <bruno@clisp.org>
27905
27906         * modules/select-tests: New file, mostly copied from
27907         modules/sys_select-tests.
27908         * tests/test-select.c: New file, mostly copied from
27909         tests/test-sys_select.c.
27910         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
27911         * modules/sys_select-tests (Depends-on): Remove all dependencies.
27912         (Makefile.am): Remove test_sys_select_LDADD.
27913
27914         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
27915         to an undefined symbol, for an error message.
27916         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
27917         (gl_SYS_SELECT_H_DEFAULTS): New macro.
27918         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
27919         winsock-select.c here.
27920         * modules/sys_select (Files): Remove lib/winsock-select.c.
27921         (Depends-on): Remove alloca.
27922         (Makefile.am): Substitute GNULIB_SELECT.
27923         * modules/select: New file.
27924         * doc/posix-functions/select.texi: Update.
27925
27926 2008-10-05  Bruno Haible  <bruno@clisp.org>
27927
27928         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
27929         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
27930         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
27931         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
27932         getdtablesize.
27933         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
27934         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
27935
27936 2008-10-05  Bruno Haible  <bruno@clisp.org>
27937
27938         * modules/getdtablesize-tests: New file.
27939         * tests/test-getdtablesize.c: New file.
27940
27941         New module 'getdtablesize'.
27942         * lib/unistd.in.h (getdtablesize): New declaration.
27943         * lib/getdtablesize.c: New file.
27944         * m4/getdtablesize.m4: New file.
27945         * modules/getdtablesize: New file.
27946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27947         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
27948         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
27949         HAVE_GETDTABLESIZE.
27950         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
27951
27952 2008-10-05  Bruno Haible  <bruno@clisp.org>
27953
27954         * modules/sched (Makefile.am): Fix typo.
27955         Reported by Simon Josefsson.
27956
27957 2008-10-05  Jim Meyering  <meyering@redhat.com>
27958
27959         bootstrap: check for LT_INIT, too
27960         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
27961         are deprecated.  Suggestion from Ralf Wildenhues.
27962
27963 2008-10-05  Bruno Haible  <bruno@clisp.org>
27964
27965         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
27966         overriding them by ours.
27967         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
27968
27969 2008-10-05  Jim Meyering  <meyering@redhat.com>
27970
27971         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
27972         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
27973         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
27974
27975 2008-10-04  Bruno Haible  <bruno@clisp.org>
27976
27977         * modules/dup2 (License): Change to LGPLv2+.
27978         * modules/sleep (License): Likewise.
27979         * modules/perror (License): Likewise.
27980         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
27981         Blake.
27982         * modules/signal (License): Likewise.
27983         * modules/sigprocmask (License): Likewise.
27984         * modules/raise (License): Change to LGPLv2+, with approval by Jim
27985         Meyering.
27986
27987 2008-10-04  Bruno Haible  <bruno@clisp.org>
27988
27989         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
27990         Reported by Rainer Tammer <tammer@tammer.net>.
27991
27992 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
27993             Bruno Haible  <bruno@clisp.org>
27994
27995         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
27996         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
27997         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
27998
27999 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
28000
28001         filevercmp: new module
28002         * lib/filevercmp.h: New function filevercmp comparing version strings.
28003         * lib/filevercmp.c: Implementation of filevercmp function.
28004         * modules/filevercmp: Module metadata.
28005         * tests/test-filevercmp.c: Unit test for new module.
28006         * modules/filevercmp-tests: Unit test metadata.
28007         * MODULES.html.sh: Add filevercmp module.
28008
28009 2008-10-03  Bruno Haible  <bruno@clisp.org>
28010
28011         * lib/c-ctype.h: Add comment.
28012         Reported by Jim Meyering.
28013
28014 2008-10-02  Bruno Haible  <bruno@clisp.org>
28015
28016         * modules/posix_spawn-internal (Depends-on): Add 'open'.
28017
28018 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28019
28020         * build-aux/bootstrap: Allow renaming bootstrap, and change the
28021         name of bootstrap.conf accordingly.
28022
28023 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28024
28025         * build-aux/bootstrap: Install git-merge-changelog configuration
28026         items into .gitconfig if needed.
28027
28028 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28029
28030         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
28031         git repository, and initialize/update it accordingly.
28032
28033 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
28034
28035         * modules/fsync-tests: New file.
28036         * tests/test-fsync.c: New file.
28037
28038         New module 'fsync'.
28039         * lib/fsync.c: New file.
28040         * m4/fsync.m4: New file.
28041         * modules/fsync: New file.
28042         * lib/unistd.in.h (fsync): New declaration.
28043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
28044         GNULIB_FSYNC and HAVE_FSYNC.
28045         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
28046         * MODULES.html.sh (posix_functions): Add fsync.
28047         * doc/posix-functions/fsync.texi: Mention the new module.
28048
28049 2008-10-02  Jim Meyering  <meyering@redhat.com>
28050
28051         fts.c: sync with similar code from coreutils' remove.c
28052         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
28053         Guard also with "#if defined __linux__", since for now at least,
28054         this code is Linux-kernel-specific.
28055
28056 2008-10-02  Jim Meyering  <meyering@redhat.com>
28057
28058         fts: bug fixes
28059         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
28060         Include <sys/vfs.h>, not <sys/statfs.h>.
28061
28062         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
28063         Include <sys/vfs.h>, not <sys/statfs.h>.
28064
28065 2008-10-01  Bruno Haible  <bruno@clisp.org>
28066
28067         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
28068         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
28069         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
28070         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
28071         * doc/posix-functions/posix_spawnp.texi: Likewise.
28072         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
28073         whether posix_spawn actually works.
28074         * m4/pipe.m4 (gl_PIPE): Likewise.
28075         * modules/execute (Files): Add m4/posix_spawn.m4.
28076         * modules/pipe (Files): Add m4/posix_spawn.m4.
28077         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
28078
28079 2008-10-01  Jim Meyering  <meyering@redhat.com>
28080
28081         remove trailing spaces
28082         * NEWS: Likewise.
28083         * lib/poll.c (poll): Likewise.
28084         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
28085         * lib/winsock.c (rpl_close): Likewise.
28086         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
28087         * modules/yield: Likewise.
28088         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
28089         * tests/test-sys_select.c (connect_to_socket): Likewise.
28090
28091         fts.c: adjust a new interface to be more generally useful
28092         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
28093         (fts_build): Adjust caller.
28094
28095 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28096
28097         * modules/cond-tests: New file.
28098         * tests/test-cond.c: New file.
28099
28100 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28101             Bruno Haible  <bruno@clisp.org>
28102
28103         * modules/cond (Dependencies): Add errno, time.
28104         * lib/glthread/cond.h: Include <time.h>.
28105         (gl_cond_define, gl_cond_define_initialized): Use the same definition
28106         across platforms.
28107
28108 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28109             Bruno Haible  <bruno@clisp.org>
28110
28111         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
28112
28113 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28114             Bruno Haible  <bruno@clisp.org>
28115
28116         * modules/tls-tests (Depends-on): Add thread, yield.
28117         (configure.ac): Remove all checks.
28118         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
28119         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
28120         gl_thread_self): Remove definitions. Include glthread/thread.h and
28121         glthread/yield.h instead.
28122         (test_tls): Pass an additional NULL argument to gl_thread_join.
28123
28124 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28125             Bruno Haible  <bruno@clisp.org>
28126
28127         * modules/lock-tests (Depends-on): Add thread, yield.
28128         (configure.ac): Remove all checks.
28129         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
28130         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
28131         gl_thread_self): Remove definitions. Include glthread/thread.h and
28132         glthread/yield.h instead.
28133         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
28134         additional NULL argument to gl_thread_join.
28135
28136 2008-09-30  Bruno Haible  <bruno@clisp.org>
28137
28138         Fix the Win32 implementation of the 'thread' module.
28139         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
28140         pointer type.
28141         (gl_thread_self): Invoke gl_thread_self_func.
28142         (gl_thread_self_func): New declaration.
28143         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
28144         (do_init_self_key, init_self_key): New functions.
28145         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
28146         Remove some fields.
28147         (running_threads, running_lock): Remove variables.
28148         (get_current_thread_handle): New function.
28149         (gl_thread_self_func, wrapper_func, glthread_create_func,
28150         glthread_join_func, gl_thread_exit_func): Largely rewritten and
28151         simplified.
28152
28153 2008-09-30  Bruno Haible  <bruno@clisp.org>
28154
28155         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
28156         files.
28157
28158 2008-09-30  Jim Meyering  <meyering@redhat.com>
28159
28160         fts.m4: correct the test for statfs.f_type
28161         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
28162         when checking for statfs.f_type.
28163
28164 2008-09-15  Simon Josefsson  <simon@josefsson.org>
28165
28166         tests: avoid some compiler warnings
28167         * tests/test-memchr.c (main): Pass NULL indirectly.
28168         * tests/test-getdate.c (main): Remove unused variable 'ret'.
28169
28170 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
28171
28172         getdate.y: disallow countable dayshifts like "4 yesterday ago"
28173         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
28174         exactly specified dayshifts.
28175         (dayshift): New rule.
28176         (rel): Add dayshift.
28177         (relative_time_table) [tomorrow, yesterday, today, now]:
28178         Use tDAY_SHIFT in place of tDAY_UNIT.
28179         * tests/test-getdate.c: Add tests for now-disallowed countable
28180         dayshifts, e.g., "4 yesterday ago".
28181
28182 2008-09-29  Bruno Haible  <bruno@clisp.org>
28183
28184         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
28185         * tests/test-posix_spawn1.in.sh: Renamed from
28186         tests/test-posix_spawn.in.sh.
28187         * tests/test-posix_spawn2.c: New file.
28188         * tests/test-posix_spawn2.in.sh: New file.
28189         * modules/posix_spawnp-tests (Files): Update.
28190         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
28191
28192 2008-09-29  Bruno Haible  <bruno@clisp.org>
28193
28194         Propagate effects of putenv/setenv/unsetenv to child processes.
28195         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
28196         * lib/pipe.c (create_pipe): Likewise.
28197
28198 2008-09-29  Bruno Haible  <bruno@clisp.org>
28199
28200         Enable use of shell scripts as executables in mingw.
28201         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
28202         run the program as a shell script.
28203         * lib/pipe.c (create_pipe): Likewise.
28204         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
28205         resulting array.
28206
28207 2008-09-29  Eric Blake  <ebb9@byu.net>
28208
28209         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
28210
28211 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
28212
28213         * doc/posix-functions/accept.texi: Update mingw problems.
28214         * doc/posix-functions/bind.texi: Update mingw problems.
28215         * doc/posix-functions/close.texi: Update mingw problems.
28216         * doc/posix-functions/connect.texi: Update mingw problems.
28217         * doc/posix-functions/getpeername.texi: Update mingw problems.
28218         * doc/posix-functions/getsockname.texi: Update mingw problems.
28219         * doc/posix-functions/getsockopt.texi: Update mingw problems.
28220         * doc/posix-functions/ioctl.texi: Update mingw problems.
28221         * doc/posix-functions/listen.texi: Update mingw problems.
28222         * doc/posix-functions/recv.texi: Update mingw problems.
28223         * doc/posix-functions/recvfrom.texi: Update mingw problems.
28224         * doc/posix-functions/select.texi: Update mingw problems.
28225         * doc/posix-functions/send.texi: Update mingw problems.
28226         * doc/posix-functions/sendto.texi: Update mingw problems.
28227         * doc/posix-functions/setsockopt.texi: Update mingw problems.
28228         * doc/posix-functions/socket.texi: Update mingw problems.
28229
28230 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
28231             Bruno Haible  <bruno@clisp.org>
28232
28233         * lib/sys_select.in.h: Include sys/time.h.
28234         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
28235         * modules/sys_select: Depend on sys_time.
28236         * tests/test-sys_select.c: Test that sys/select.h defines struct
28237         timeval fully.
28238
28239 2008-09-29  Bruno Haible  <bruno@clisp.org>
28240
28241         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
28242         * lib/sys_select.in.h: Likewise.
28243
28244 2008-09-29  Bruno Haible  <bruno@clisp.org>
28245
28246         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
28247
28248 2008-09-29  Bruno Haible  <bruno@clisp.org>
28249
28250         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
28251         Set LIBSOCKET instead of augmenting LIBS.
28252         * modules/sockets (Link): New section.
28253         * modules/sockets-tests (test_sockets_LDADD): New variable.
28254         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
28255         * modules/poll-tests (test_poll_LDADD): New variable.
28256         * NEWS: Document the change.
28257
28258 2008-09-29  Bruno Haible  <bruno@clisp.org>
28259
28260         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
28261         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
28262         ARPA_INET_H directly.
28263         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28264
28265 2008-09-28  Bruno Haible  <bruno@clisp.org>
28266
28267         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
28268         from gl_HEADER_SYS_SOCKET.
28269         (gl_HEADER_SYS_SOCKET): Invoke it.
28270         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28271
28272 2008-09-28  Bruno Haible  <bruno@clisp.org>
28273
28274         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
28275         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
28276         Needed on OSF/1 4.0.
28277
28278 2008-09-28  Bruno Haible  <bruno@clisp.org>
28279
28280         Override open more carefully.
28281         * lib/open.c (orig_open): New function.
28282         (rpl_open): Use orig_open instead of open.
28283         * lib/fcntl.in.h: Add special invocation convention.
28284         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
28285         (gl_FUNC_OPEN): Invoke it.
28286
28287         Override freopen more carefully.
28288         * lib/freopen.c (orig_freopen): New function.
28289         (rpl_freopen): Use orig_freopen instead of freopen.
28290         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
28291         (gl_FUNC_FREOPEN): Invoke it.
28292
28293         Override fopen more carefully.
28294         * lib/fopen.c (orig_fopen): New function.
28295         (rpl_fopen): Use orig_fopen instead of fopen.
28296         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
28297         (gl_FUNC_FOPEN): Invoke it.
28298         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
28299
28300 2008-09-28  Bruno Haible  <bruno@clisp.org>
28301
28302         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
28303         SIGPIPE.
28304
28305 2008-09-28  Bruno Haible  <bruno@clisp.org>
28306
28307         * tests/test-sigaction.c (handler, main): Disable the check whether
28308         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
28309         glibc systems with LinuxThreads.
28310
28311 2008-09-28  Bruno Haible  <bruno@clisp.org>
28312
28313         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
28314
28315         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
28316         with AIX xlc.
28317         * lib/fcntl.in.h (open): Likewise.
28318         Reported by Rainer Tammer <tammer@tammer.net>.
28319
28320 2008-09-28  Bruno Haible  <bruno@clisp.org>
28321
28322         * modules/posix_spawnp-tests: New file.
28323         * tests/test-posix_spawn.c: New file.
28324         * tests/test-posix_spawn.in.sh: New file.
28325
28326         New module 'posix_spawnp'.
28327         * modules/posix_spawnp: New file.
28328         * lib/spawnp.c: New file, from GNU libc with modifications.
28329         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
28330
28331         New module 'posix_spawn'.
28332         * modules/posix_spawn: New file.
28333         * lib/spawn.c: New file, from GNU libc with modifications.
28334         * doc/posix-functions/posix_spawn.texi: Mention the new module.
28335
28336         New module 'posix_spawnattr_destroy'.
28337         * modules/posix_spawnattr_destroy: New file.
28338         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
28339         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
28340         module.
28341
28342         New module 'posix_spawnattr_setsigmask'.
28343         * modules/posix_spawnattr_setsigmask: New file.
28344         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
28345         modifications.
28346         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
28347         new module.
28348
28349         New module 'posix_spawnattr_getsigmask'.
28350         * modules/posix_spawnattr_getsigmask: New file.
28351         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
28352         modifications.
28353         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
28354         new module.
28355
28356         New module 'posix_spawnattr_setsigdefault'.
28357         * modules/posix_spawnattr_setsigdefault: New file.
28358         * lib/spawnattr_setdefault.c: New file, from GNU libc with
28359         modifications.
28360         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
28361         new module.
28362
28363         New module 'posix_spawnattr_getsigdefault'.
28364         * modules/posix_spawnattr_getsigdefault: New file.
28365         * lib/spawnattr_getdefault.c: New file, from GNU libc with
28366         modifications.
28367         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
28368         new module.
28369
28370         New module 'posix_spawnattr_setschedpolicy'.
28371         * modules/posix_spawnattr_setschedpolicy: New file.
28372         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
28373         modifications.
28374         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
28375         new module.
28376
28377         New module 'posix_spawnattr_getschedpolicy'.
28378         * modules/posix_spawnattr_getschedpolicy: New file.
28379         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
28380         modifications.
28381         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
28382         new module.
28383
28384         New module 'posix_spawnattr_setschedparam'.
28385         * modules/posix_spawnattr_setschedparam: New file.
28386         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
28387         modifications.
28388         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
28389         new module.
28390
28391         New module 'posix_spawnattr_getschedparam'.
28392         * modules/posix_spawnattr_getschedparam: New file.
28393         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
28394         modifications.
28395         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
28396         new module.
28397
28398         New module 'posix_spawnattr_setpgroup'.
28399         * modules/posix_spawnattr_setpgroup: New file.
28400         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
28401         modifications.
28402         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
28403         module.
28404
28405         New module 'posix_spawnattr_getpgroup'.
28406         * modules/posix_spawnattr_getpgroup: New file.
28407         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
28408         modifications.
28409         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
28410         module.
28411
28412         New module 'posix_spawnattr_setflags'.
28413         * modules/posix_spawnattr_setflags: New file.
28414         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
28415         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
28416         module.
28417
28418         New module 'posix_spawnattr_getflags'.
28419         * modules/posix_spawnattr_getflags: New file.
28420         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
28421         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
28422         module.
28423
28424         New module 'posix_spawnattr_init'.
28425         * modules/posix_spawnattr_init: New file.
28426         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
28427         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
28428         module.
28429
28430         New module 'posix_spawn_file_actions_destroy'.
28431         * modules/posix_spawn_file_actions_destroy: New file.
28432         * lib/spawn_faction_destroy.c: New file, from GNU libc with
28433         modifications.
28434         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
28435         the new module.
28436
28437         New module 'posix_spawn_file_actions_addopen'.
28438         * modules/posix_spawn_file_actions_addopen: New file.
28439         * lib/spawn_faction_addopen.c: New file, from GNU libc with
28440         modifications.
28441         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
28442         the new module.
28443
28444         New module 'posix_spawn_file_actions_adddup2'.
28445         * modules/posix_spawn_file_actions_adddup2: New file.
28446         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
28447         modifications.
28448         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
28449         the new module.
28450
28451         New module 'posix_spawn_file_actions_addclose'.
28452         * modules/posix_spawn_file_actions_addclose: New file.
28453         * lib/spawn_faction_addclose.c: New file, from GNU libc with
28454         modifications.
28455         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
28456         the new module.
28457
28458         New module 'posix_spawn_file_actions_init'.
28459         * modules/posix_spawn_file_actions_init: New file.
28460         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
28461         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
28462         new module.
28463
28464         New module 'posix_spawn-internal'.
28465         * modules/posix_spawn-internal: New file.
28466         * lib/spawn_int.h: New file, from GNU libc with modifications.
28467         * lib/spawni.c: New file, from GNU libc with modifications.
28468         * m4/posix_spawn.m4: New file.
28469
28470         New module 'spawn'.
28471         * modules/spawn: New file.
28472         * lib/spawn.in.h: New file, from GNU libc with modifications.
28473         * m4/spawn_h.m4: New file.
28474         * doc/posix-headers/spawn.texi: Mention the new module.
28475
28476 2008-09-28  Bruno Haible  <bruno@clisp.org>
28477
28478         * modules/sched-tests: New file.
28479         * tests/test-sched.c: New file.
28480
28481         New module 'sched'.
28482         * modules/sched: New file.
28483         * lib/sched.in.h: New file.
28484         * m4/sched_h.m4: New file.
28485         * doc/posix-headers/sched.texi: Mention the new module.
28486
28487 2008-09-27  Eric Blake  <ebb9@byu.net>
28488
28489         Fix previous patch, and tweak references to $0.
28490         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
28491         (func_version, func_gnulib_dir): Don't call this program
28492         gnulib-tool.
28493         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
28494         with using $0 in function.
28495         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
28496         (func_fatal_error): Reuse the name the user invoked us with.
28497
28498 2008-09-27  Bruno Haible  <bruno@clisp.org>
28499
28500         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
28501         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
28502         (gl_ICONV_H): Not here.
28503         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28504         instead of assigning ICONV_H directly.
28505
28506         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
28507         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
28508         WCHAR_H directly.
28509
28510 2008-09-27  Bruno Haible  <bruno@clisp.org>
28511
28512         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
28513         * modules/arpa_inet (Depends-on): Add link-warning.
28514         (Makefile.am): Insert the definition of GL_LINK-WARNING.
28515         * modules/unistd (Makefile.am): Likewise.
28516
28517 2008-09-26  Bruno Haible  <bruno@clisp.org>
28518
28519         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
28520         variables.
28521         (func_version): Essentially copied from gnulib-tool.
28522         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
28523         func_readlink): Copied from gnulib-tool.
28524
28525 2008-09-26  Bruno Haible  <bruno@clisp.org>
28526
28527         * gnulib-tool (func_version): Change directory to $gnulib_dir before
28528         invoking git-version-gen.
28529
28530 2008-09-26  Bruno Haible  <bruno@clisp.org>
28531
28532         * posix-modules: Update to directory names changed on 2008-01-19.
28533         Remove commas in output before splitting into words. No more need to
28534         avoid 'ftruncate' since 2007-02-19.
28535
28536 2008-09-26  Bruno Haible  <bruno@clisp.org>
28537
28538         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
28539
28540 2008-09-26  Bruno Haible  <bruno@clisp.org>
28541
28542         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
28543         * modules/fwriteerror (Depends-on): Add errno.
28544
28545 2008-09-26  Bruno Haible  <bruno@clisp.org>
28546
28547         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
28548         * tests/test-vc-list-files-cvs.sh: Likewise.
28549
28550 2008-09-26  Bruno Haible  <bruno@clisp.org>
28551
28552         * doc/posix-headers/sys_resource.texi: Reorder items.
28553
28554 2008-09-26  Jim Meyering  <meyering@redhat.com>
28555
28556         fts: tweak inode comparison function
28557         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
28558         inode numbers, as documented.
28559
28560         fts: sort dirent entries on inode number before traversing
28561         This avoids a quadratic, seek-related performance penalty when
28562         operating on a directory containing many entries (measurable at 10k;
28563         3.5 hours at 2 million entries with a cold cache) on certain types
28564         of file systems, including ext3 and ext4, but not tmpfs.
28565         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
28566         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
28567         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
28568         (fs_handles_readdir_ordered_dirents_efficiently): New function.
28569         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
28570         (fts_build): Set the stat.st_ino member from D_INO.
28571         If it is likely to be useful, sort dirent entries on inode number.
28572
28573         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
28574         and the struct statfs.f_type member.
28575         * modules/fts (Depends-on): Add d-ino.
28576
28577 2008-09-26  Bruno Haible  <bruno@clisp.org>
28578
28579         * modules/sigpipe-die (Depends-on): Add sigpipe.
28580
28581         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
28582         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
28583         and GNULIB_STDIO_H_SIGPIPE are set.
28584         * lib/stdio-write.c: New file.
28585         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
28586         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28587         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28588         REPLACE_STDIO_WRITE_FUNCS.
28589         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
28590         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28591         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28592         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28593         * modules/stdio (Files): Add lib/stdio-write.c.
28594         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
28595         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28596         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28597         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28598         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
28599         REPLACE_FPRINTF_POSIX.
28600         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
28601         REPLACE_PRINTF_POSIX.
28602         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
28603         REPLACE_VFPRINTF_POSIX.
28604         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
28605         REPLACE_VPRINTF_POSIX.
28606         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
28607         SIGPIPE issue.
28608         * doc/posix-functions/fputc.texi: Likewise.
28609         * doc/posix-functions/fputs.texi: Likewise.
28610         * doc/posix-functions/fwrite.texi: Likewise.
28611         * doc/posix-functions/printf.texi: Likewise.
28612         * doc/posix-functions/putc.texi: Likewise.
28613         * doc/posix-functions/putchar.texi: Likewise.
28614         * doc/posix-functions/puts.texi: Likewise.
28615         * doc/posix-functions/vfprintf.texi: Likewise.
28616         * doc/posix-functions/vprintf.texi: Likewise.
28617
28618         * modules/safe-write (Depends-on): Add write.
28619
28620         * modules/sigpipe-tests: New file.
28621         * tests/test-sigpipe.c: New file.
28622         * tests/test-sigpipe.sh: New file.
28623
28624         * modules/write: New file.
28625         * lib/unistd.in.h: Include <sys/types.h>.
28626         (write): New declaration.
28627         * lib/write.c: New file.
28628         * m4/write.m4: New file.
28629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28630         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
28631         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
28632         GNULIB_WRITE, REPLACE_WRITE.
28633         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
28634         and the SIGPIPE issue.
28635
28636         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
28637         (raise): New declaration.
28638         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
28639         (ext_signal): New function.
28640         (rpl_raise): New function.
28641         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
28642         GNULIB_SIGNAL_H_SIGPIPE.
28643         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
28644         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
28645
28646         * modules/sigpipe: New file.
28647         * m4/sigpipe.m4: New file.
28648
28649 2008-09-25  Derek Price  <derek@ximbiot.com>
28650             Bruno Haible  <bruno@clisp.org>
28651
28652         * gnulib-tool (func_import): Report all license incompatibilities, not
28653         just the first one.
28654
28655 2008-09-25  Bruno Haible  <bruno@clisp.org>
28656
28657         * gnulib-tool (func_import): When computing the edits, consider not
28658         only the Makefile.ams that exist but also those that will be generated.
28659
28660 2008-09-25  Simon Josefsson  <simon@josefsson.org>
28661
28662         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
28663         fixes gnulib-tool --test warning about duplicate dependency.
28664
28665 2008-09-25  Bruno Haible  <bruno@clisp.org>
28666
28667         * gnulib-tool: Don't ask the user to perform edits in the generated
28668         Makefile.ams.
28669         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
28670         apply to the Makefile.am being generated.
28671         (func_emit_tests_Makefile_am): Execute edits that apply to the
28672         Makefile.am being generated.
28673         (func_import): Setup list of Makefile.am edits before emitting the
28674         Makefile.ams, not at the end.
28675         (func_create_testdir): Update.
28676         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28677
28678 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28679
28680         * gnulib-tool (func_import): Store the --tests-base option in the
28681         comment in gnulib-cache.m4.
28682
28683 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
28684
28685         * NEWS: Document increased portability that sys_select now provides.
28686
28687         * lib/sys_select.in.h: Install select wrapper.
28688         * lib/sys_socket.in.h: Use more descriptive name when there is no
28689         select wrapper.
28690         * lib/winsock-select.c: New.
28691         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
28692         Require gl_HEADER_SYS_SOCKET.
28693         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
28694         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
28695         * tests/test-sys_select.c: Add functional tests.
28696
28697 2008-09-24  Eric Blake  <ebb9@byu.net>
28698
28699         open, fopen: close fd leak in last patch
28700         * lib/open.c (rpl_open): Close fd before returning error.
28701         * lib/fopen.c (rpl_fopen): Close fd before returning error.
28702         * doc/posix-functions/open.texi (open): Document that Irix also
28703         has the bug.
28704         * doc/posix-functions/fopen.texi (fopen): Likewise.
28705         Reported by Paolo Bonzini.
28706
28707 2008-09-24  Bruno Haible  <bruno@clisp.org>
28708
28709         Ensure that a filename ending in a slash cannot be used to access a
28710         non-directory.
28711         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
28712         to check whether it's really a directory.
28713         * lib/fopen.c: Include fcntl.h, unistd.h.
28714         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
28715         and fdopen().
28716         * modules/fopen (Depends-on): Add unistd.
28717         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
28718         * tests/test-fopen.c (main): Likewise.
28719         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
28720         * doc/posix-functions/fopen.texi: Likewise.
28721         Reported by Eric Blake.
28722
28723 2008-09-23  Eric Blake  <ebb9@byu.net>
28724
28725         c-stack: avoid compiler optimizations when provoking overflow
28726         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
28727         recursion harder to optimize, to ensure a stack overflow occurs.
28728         * tests/test-c-stack.c (recurse): Likewise.
28729         Borrowed from libsigsegv.
28730
28731         c-stack: work around Irix sigaltstack bug
28732         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
28733         whether sigaltstack uses wrong end of stack_t (copied in part from
28734         libsigsegv).
28735         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
28736         Irix bug, without requiring an over-allocation.
28737         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
28738         bug.
28739
28740         fopen: document mingw bug on directories
28741         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
28742         not allowing a stream visiting a directory, even though reading
28743         from such a stream is not portable.
28744
28745 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28746
28747         * lib/poll.c: Rewrite.
28748         * modules/poll: Depend on alloca.
28749
28750 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28751
28752         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
28753         instead define prototypes for a full set of wrappers.  Ensure
28754         that Cygwin does not use the compatibility code, which is only
28755         for MinGW.
28756         * lib/winsock.c: New.
28757         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
28758         * modules/sys_socket: Add lib/winsock.c.
28759
28760         * modules/poll-tests: Add errno and perror.
28761         * tests/test-poll.c: Use ioctl, not ioctlsocket.
28762
28763 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28764
28765         * tests/test-poll.c: Downgrade minimum needed Winsock version.
28766
28767 2008-09-23  Bruno Haible  <bruno@clisp.org>
28768
28769         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
28770         * doc/glibc-functions/*: Likewise.
28771
28772 2008-09-23  Simon Josefsson  <simon@josefsson.org>
28773
28774         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
28775         success.
28776
28777 2008-09-22  Eric Blake  <ebb9@byu.net>
28778             Bruno Haible  <bruno@clisp.org>
28779
28780         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
28781         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
28782         supply %A but mishandle pseudo-NaN.
28783         Reported by Simon Josefsson.
28784
28785 2008-09-21  Bruno Haible  <bruno@clisp.org>
28786
28787         * tests/test-lock.c (main): Tweak skip message.
28788         * tests/test-tls.c (main): Likewise.
28789
28790 2008-09-21  Bruno Haible  <bruno@clisp.org>
28791
28792         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
28793         whether 'struct sigaction' has sa_sigaction here...
28794         (gl_PREREQ_SIG_HANDLER_H): ... not here.
28795         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
28796
28797 2008-09-21  Bruno Haible  <bruno@clisp.org>
28798
28799         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
28800         section.
28801         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
28802         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
28803         the new section.
28804         (Support for obsolete systems lacking POSIX:2001): New section.
28805         (String handling <string.h>): Move strdup to the new section.
28806         Suggested by Simon Josefsson and Paolo Bonzini.
28807
28808 2008-09-21  Bruno Haible  <bruno@clisp.org>
28809
28810         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
28811         exponents in %e and %g results on 'long double'. Needed for mingw's
28812         improved *printf functions.
28813         * tests/test-vasprintf-posix.c (test_function): Likewise.
28814         * tests/test-snprintf-posix.h (test_function): Likewise.
28815         * tests/test-sprintf-posix.h (test_function): Likewise.
28816         Reported by Eric Blake.
28817
28818 2008-09-21  Bruno Haible  <bruno@clisp.org>
28819
28820         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
28821         * tests/test-sprintf-posix.h (test_function): Likewise.
28822
28823 2008-09-21  Bruno Haible  <bruno@clisp.org>
28824
28825         * modules/getpass (Depends-on): Add strdup-posix.
28826
28827         New module 'strdup-posix'.
28828         * modules/strdup-posix: New file.
28829         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
28830         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
28831         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28832         REPLACE_STRDUP.
28833         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
28834         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
28835         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28836         strdup-posix.
28837
28838         * modules/strdup (Depends-on): Remove malloc-posix.
28839
28840 2008-09-20  Bruno Haible  <bruno@clisp.org>
28841
28842         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
28843         Wildenhues.
28844
28845 2008-09-20  Bruno Haible  <bruno@clisp.org>
28846
28847         Ensure that wint_t gets defined on IRIX 5.3.
28848         * lib/wchar.in.h (wint_t): Define if not defined by the system.
28849         * lib/wctype.in.h (wint_t): Likewise.
28850         (__wctype_wint_t): Remove type.
28851         (isw*): Use wint_t instead of __wctype_wint_t.
28852         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
28853         * modules/wchar (Files): Add m4/wint_t.m4.
28854         (Makefile.am): Substitute HAVE_WINT_T.
28855         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
28856         * tests/test-wctype.c: Check that wint_t is defined.
28857         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
28858         * doc/posix-headers/wctype.texi: Likewise.
28859         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28860
28861 2008-09-18  Bruno Haible  <bruno@clisp.org>
28862
28863         * gnulib-tool (func_exit): Update comment.
28864
28865 2008-09-18  Simon Josefsson  <simon@josefsson.org>
28866
28867         * modules/getaddrinfo (Depends-on): Remove strdup, this module
28868         assumes strdup exists and does not depend on strdup to return
28869         ENOMEM on out of memory conditions.
28870
28871 2008-09-18  Bruno Haible  <bruno@clisp.org>
28872
28873         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
28874         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
28875         digits for the exponent.
28876
28877 2008-09-18  Jim Meyering  <meyering@redhat.com>
28878             Bruno Haible  <bruno@clisp.org>
28879
28880         * lib/vasnprintf.c (decimal_point_char): Define also if
28881         NEED_PRINTF_INFINITE_LONG_DOUBLE.
28882
28883 2008-09-16  Bruno Haible  <bruno@clisp.org>
28884         and Eric Blake  <ebb9@byu.net>
28885
28886         vasnprintf: support Irix 5.3
28887         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
28888         that mishandle long double infinity.
28889         Reported by Tom G. Christensen.
28890
28891 2008-09-16  Bruno Haible  <bruno@clisp.org>
28892
28893         * doc/glibc-functions/scandir.texi: Mention the function is missing on
28894         Solaris 9.
28895         * doc/glibc-functions/alphasort.texi: Likewise.
28896         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
28897
28898 2008-09-16  Jim Meyering  <meyering@redhat.com>
28899
28900         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
28901         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
28902         a umask modification leak out of a subshell.  Otherwise, the
28903         opensolaris /bin/sh would be accepted and thus cause unwarranted
28904         failures in the coreutils test suite.
28905
28906 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
28907
28908         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
28909         to succeed.
28910
28911 2008-09-16  Jim Meyering  <meyering@redhat.com>
28912
28913         avoid spurious test failure when library is built without ACL support
28914         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
28915         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
28916         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
28917         * tests/test-copy-acl.sh: Likewise.
28918
28919 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28920
28921         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
28922         based on character occurrence counts.
28923
28924 2008-09-15  Eric Blake  <ebb9@byu.net>
28925
28926         tests: avoid some compiler warnings
28927         * tests/test-memchr.c (main): Pass NULL indirectly.
28928         * tests/test-closein.c (main): Avoid unused variable.
28929
28930 2008-09-15  Bruno Haible  <bruno@clisp.org>
28931
28932         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
28933         are missing on OpenBSD 4.0 individually.
28934         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28935
28936 2008-09-15  Bruno Haible  <bruno@clisp.org>
28937
28938         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
28939         * doc/posix-functions/strerror.texi: Mention also Cygwin.
28940         * doc/posix-functions/perror.texi: Likewise.
28941         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
28942         is missing.
28943         Reported by Eric Blake.
28944
28945         * lib/errno.in.h: Use replacement values >= 2000.
28946         Reported by Eric Blake.
28947
28948 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28949
28950         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
28951         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
28952         limit.
28953         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
28954         compareseq was aborted.
28955
28956 2008-09-14  Bruno Haible  <bruno@clisp.org>
28957
28958         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
28959         yvec_edit_count.
28960         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
28961         (fstrcmp_bounded): Simplify result computation accordingly.
28962
28963 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28964
28965         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
28966         (fstrcmp): Define in terms of fstrcmp_bounded.
28967         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
28968         lower_bound argument.
28969         Return quickly if the result is certainly < lower_bound.
28970         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
28971
28972 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28973
28974         * lib/diffseq.h (EARLY_ABORT): New macro.
28975         (compareseq): Change return type to bool. Return true when EARLY_ABORT
28976         evaluates to true.
28977
28978 2008-09-14  Bruno Haible  <bruno@clisp.org>
28979
28980         * modules/perror-tests: New file.
28981         * tests/test-perror.sh: New file.
28982         * tests/test-perror.c: New file.
28983
28984         New module 'perror'.
28985         * lib/stdio.in.h (perror): New declaration.
28986         * lib/perror.c: New file.
28987         * m4/perror.m4: New file.
28988         * modules/perror: New file.
28989         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
28990         * doc/posix-functions/perror.texi: Mention the perror module.
28991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
28992         REPLACE_PERROR.
28993         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
28994         REPLACE_PERROR.
28995
28996 2008-09-14  Bruno Haible  <bruno@clisp.org>
28997
28998         * modules/stdio (Makefile.am): Reorder to match the order in
28999         lib/stdio.in.h.
29000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29001
29002 2008-09-13  Bruno Haible  <bruno@clisp.org>
29003
29004         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
29005
29006 2008-09-13  Bruno Haible  <bruno@clisp.org>
29007
29008         Extend strerror to cover the added errno values.
29009         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
29010         (rpl_strerror): Provide error messages for the added errno values and
29011         for the WSA* values.
29012         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
29013         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
29014         strerror.
29015         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
29016         * modules/strerror (Depends-on): Add errno.
29017         * doc/posix-functions/strerror.texi: Document the change.
29018         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
29019         and EOVERFLOW.
29020
29021 2008-09-13  Bruno Haible  <bruno@clisp.org>
29022
29023         * modules/EOVERFLOW: Remove file.
29024         * m4/eoverflow.m4: Remove file.
29025         * modules/EOVERFLOW-tests: Remove file.
29026         * tests/test-EOVERFLOW.c: Remove file.
29027         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
29028         * modules/ftell (Depends-on): Likewise.
29029         * modules/getdelim (Depends-on): Likewise.
29030         * modules/getugroups (Depends-on): Likewise.
29031         * modules/poll (Depends-on): Likewise.
29032         * modules/snprintf (Depends-on): Likewise.
29033         * modules/sprintf-posix (Depends-on): Likewise.
29034         * modules/vasnprintf (Depends-on): Likewise.
29035         * modules/vasprintf (Depends-on): Likewise.
29036         * modules/vfprintf-posix (Depends-on): Likewise.
29037         * modules/vsnprintf (Depends-on): Likewise.
29038         * modules/vsprintf-posix (Depends-on): Likewise.
29039         * modules/xvasprintf (Depends-on): Likewise.
29040         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29041         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
29042         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
29043         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
29044         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29045         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
29046         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
29047         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
29048         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29049         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
29050         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
29051         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
29052         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29053         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
29054         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
29055         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
29056         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29057         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
29058         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
29059         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
29060         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29061         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
29062         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
29063         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
29064         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
29065         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29066         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
29067         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
29068         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
29069         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
29070         * MODULES.html.sh: Remove EOVERFLOW.
29071         * NEWS: Mention the change.
29072
29073 2008-09-13  Bruno Haible  <bruno@clisp.org>
29074
29075         * modules/errno-tests: New file.
29076         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
29077
29078         * lib/errno.in.h: New file.
29079         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
29080         * modules/errno: New file.
29081         * doc/posix-headers/errno.texi: Update documentation.
29082         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
29083
29084 2008-09-13  Bruno Haible  <bruno@clisp.org>
29085
29086         * tests/test-poll.c: Use #if for native Windows, rather than testing
29087         __MSVCRT__.
29088
29089 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29090             Bruno Haible  <bruno@clisp.org>
29091
29092         * lib/glob.c: Don't include <pwd.h> on native Windows.
29093         (WINDOWS32): New macro.
29094         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
29095
29096 2008-09-13  Bruno Haible  <bruno@clisp.org>
29097
29098         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
29099         (ETIMEDOUT): Remove macro.
29100         (glthread_cond_timedwait_multithreaded): New declaration.
29101         (glthread_cond_timedwait): Use it.
29102         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
29103         (glthread_cond_timedwait_multithreaded): New function.
29104
29105 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29106
29107         * modules/poll-tests: Do not check for io.h.
29108         * tests/test-poll.c: Check for __MSVCRT__ instead.
29109
29110 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29111
29112         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
29113         * modules/poll-tests: Add inet_pton, stdbool, sockets.
29114         * tests/test-poll.c: Use them.  Use _pipe on Windows.
29115
29116 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29117
29118         * modules/poll-tests: New.
29119         * tests/test-poll.c: New.
29120
29121 2008-09-12  Eric Blake  <ebb9@byu.net>
29122
29123         frexp: test for NetBSD failure on -0.0
29124         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
29125         not all, bugs from NetBSD 3.0 have been fixed.
29126         * doc/posix-functions/frexp.texi (frexp): Document bug.
29127         Reported by Thomas Klausner.
29128
29129         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
29130         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
29131         literal -0.0.
29132         Reported by Jonathan C. Patschke <jp@centtech.com>.
29133
29134 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29135
29136         * lib/glthread/cond.h: Use dummy implementation also if
29137         USE_WIN32_THREADS.
29138
29139 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29140
29141         * modules/fnmatch-posix (License): Change to LGPLv2+.
29142         * modules/fnmatch-gnu (License): Likewise.
29143
29144 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29145
29146         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
29147
29148 2008-09-11  Jim Meyering  <meyering@redhat.com>
29149
29150         * users.txt: Add gtk-vnc.
29151
29152 2008-09-08  Simon Josefsson  <simon@josefsson.org>
29153
29154         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
29155         rotate amounts.
29156
29157         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
29158         required for 16-bit and 8-bit rotates.
29159         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
29160         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
29161         UINT8_MAX instead of hard-coded constants.
29162         Suggested by Paul Eggert.
29163
29164 2008-09-07  Bruno Haible  <bruno@clisp.org>
29165
29166         * tests/test-striconveh.c (main): Check behaviour when converting from
29167         UTF-7.
29168
29169         Make striconveh work better with stateful encodings.
29170         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
29171         that iconv does not increment the inptr when returning -1/EINVAL.
29172
29173 2008-09-07  Bruno Haible  <bruno@clisp.org>
29174
29175         * build-aux/config.rpath: Update according to libtool-2.2.6.
29176         * build-aux/config.libpath: Likewise.
29177
29178 2008-09-06  Bruno Haible  <bruno@clisp.org>
29179
29180         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
29181         * lib/freadptr.c (freadptr): Likewise.
29182         * lib/freadseek.c (freadptrinc): Likewise.
29183         Reported by Simon Josefsson.
29184
29185 2008-09-06  Bruno Haible  <bruno@clisp.org>
29186
29187         * modules/freadptr (License): Change to LGPLv2+.
29188         * modules/freadseek (License): Likewise.
29189         Suggested by Eric Blake.
29190
29191         * modules/memchr2 (License): Change to LGPLv2+.
29192         Approved by Eric Blake.
29193
29194 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29195             Bruno Haible  <bruno@clisp.org>
29196
29197         Make gnulib-tool work with native 'sed' on AIX.
29198         * gnulib-tool (sed_noop): New variable.
29199         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
29200         func_add_or_update, func_create_testdir): Use it to initialize sed
29201         script variables.
29202         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29203
29204 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
29205             Bruno Haible  <bruno@clisp.org>
29206
29207         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
29208         also works after #include directives.
29209
29210 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
29211
29212         getdate.y: reject an out-of-range timezone value
29213         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
29214         the range [-24...+24].  When specified with only one or two digits,
29215         * tests/test-getdate.c: Tests for the fix.
29216         * doc/getdate.texi: Document this change.
29217
29218 2008-09-03  Bruno Haible  <bruno@clisp.org>
29219
29220         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
29221
29222 2008-09-02  Simon Josefsson  <simon@josefsson.org>
29223
29224         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
29225         <bruce.korb@gmail.com> with ideas from Ben Pfaff
29226         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
29227         Blake <ebb9@byu.net>.
29228
29229         * tests/test-bitrotate.c: Add more test vectors.
29230
29231 2008-09-02  Eric Blake  <ebb9@byu.net>
29232
29233         vasnprintf-posix: handle large precision via %.*d
29234         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
29235         when handling it ourselves.
29236         * tests/test-vasnprintf-posix.c (test_function): Add test.
29237         * tests/test-snprintf-posix.h (test_function): Likewise.
29238         * tests/test-sprintf-posix.h (test_function): Likewise.
29239         * tests/test-vasprintf-posix.c (test_function): Likewise.
29240         Reported by Alain Guibert.
29241
29242 2008-09-01  Eric Blake  <ebb9@byu.net>
29243
29244         c-stack: make configure-time check more robust
29245         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
29246         successful sigaction call.
29247         Reported by Tom G. Christensen.
29248
29249 2008-09-01  Bruno Haible  <bruno@clisp.org>
29250
29251         New module 'findprog-lgpl'.
29252         * modules/findprog-lgpl: New file.
29253         * lib/findprog-lgpl.c: New file.
29254         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
29255         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
29256         to decide whether to use strdup or xstrdup, concatenated_filename or
29257         xconcatenated_filename.
29258
29259 2008-09-01  Bruno Haible  <bruno@clisp.org>
29260
29261         Split module 'concat-filename' into 'concat-filename' (LGPL) and
29262         'xconcat-filename' (GPL).
29263         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
29264         (License): Change to LGPLv2+.
29265         * modules/xconcat-filename: New file.
29266         * lib/concat-filename.h (concatenated_filename): Change specification.
29267         (xconcatenated_filename): New declaration.
29268         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
29269         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
29270         memory situations.
29271         * lib/xconcat-filename.c: New file.
29272         * NEWS: Mention the change.
29273         * lib/findprog.c: Include concat-filename.h, not filename.h.
29274         (find_in_path): Use xconcatenated_filename instead of
29275         concatenated_filename.
29276         * lib/javacomp.c: Include concat-filename.h, not filename.h.
29277         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
29278         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
29279         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
29280         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
29281         instead of concatenated_filename.
29282         * lib/javaexec.c: Include concat-filename.h, not filename.h.
29283         (execute_java_class): Use xconcatenated_filename instead of
29284         concatenated_filename.
29285         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
29286         * modules/javacomp (Depends-on): Likewise.
29287         * modules/javaexec (Depends-on): Likewise.
29288
29289 2008-09-01  Bruno Haible  <bruno@clisp.org>
29290
29291         Split module 'filename' into 'filename' and 'concat-filename'.
29292         * modules/filename: Keep only lib/filename.h.
29293         (License): Change to LGPLv2+.
29294         * modules/concat-filename: New file, extracted from modules/filename.
29295         * lib/filename.h (concatenated_filename): Remove declaration.
29296         * lib/concat-filename.h: New file, extracted from lib/filename.h.
29297         * lib/concat-filename.c: Include concat-filename.h.
29298         * NEWS: Mention the change.
29299
29300 2008-09-01  Simon Josefsson  <simon@josefsson.org>
29301
29302         * lib/bitrotate.h (rotl8, rotr8): Add.
29303
29304         * modules/bitrotate (configure.ac): Need
29305         AC_REQUIRE([AC_C_INLINE]).
29306         (Description): Mention stdint.h.  Reported by Bruno Haible
29307         <bruno@clisp.org>.
29308
29309         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
29310         Paolo Bonzini <bonzini@gnu.org>.
29311
29312 2008-08-31  Bruno Haible  <bruno@clisp.org>
29313
29314         Assume Solaris specific bi-arch conventions on Solaris systems.
29315         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
29316         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
29317         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
29318         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
29319         like acl_libdirstem.
29320         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
29321         acl_libdirstem.
29322         * NEWS: Mention the change.
29323         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
29324
29325 2008-08-31  Jim Meyering  <meyering@redhat.com>
29326
29327         * lib/strftime.h: Add comments describing the two added arguments.
29328
29329         remove duplicate #include directives
29330         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
29331         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
29332
29333 2008-08-31  Bruno Haible  <bruno@clisp.org>
29334
29335         New module 'sigpipe-die'.
29336         * modules/sigpipe-die: New file.
29337         * lib/sigpipe-die.h: New file.
29338         * lib/sigpipe-die.c: New file.
29339         * MODULES.html.sh (Signal handling): Add sigpipe-die.
29340
29341 2008-08-31  Bruno Haible  <bruno@clisp.org>
29342
29343         Don't override previously installed signal handlers.
29344         * lib/fatal-signal.c (saved_sigactions): New variable.
29345         (uninstall_handlers): Reset the signal to the saved handler, not
29346         to SIG_DFL (except when ignored).
29347         (install_handlers): Save the previous handlers.
29348
29349 2008-08-30  Bruno Haible  <bruno@clisp.org>
29350
29351         * gnulib-tool (func_reset_sigpipe): New function.
29352         (func_get_automake_snippet, func_modules_transitive_closure,
29353         func_import): Invoke it before a join command that reads from stdin,
29354         to avoid "echo: write error: Broken pipe" error messages on stderr.
29355         Reported by Sam Steingold <sds@gnu.org>.
29356
29357 2008-08-30  Bruno Haible  <bruno@clisp.org>
29358
29359         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
29360         Code copied from m4/open.m4.
29361         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
29362         access and the filename ends in a slash. Code copied from lib/open.c.
29363         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
29364         * tests/test-fopen.c (main): Check against bug with trailing slash.
29365
29366 2008-08-29  Bruno Haible  <bruno@clisp.org>
29367
29368         Avoid some "gcc -pedantic" warnings.
29369         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
29370         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
29371         * lib/dirent.in.h: Likewise.
29372         * lib/fcntl.in.h: Likewise.
29373         * lib/float.in.h: Likewise.
29374         * lib/iconv.in.h: Likewise.
29375         * lib/inttypes.in.h: Likewise.
29376         * lib/locale.in.h: Likewise.
29377         * lib/math.in.h: Likewise.
29378         * lib/netinet_in.in.h: Likewise.
29379         * lib/search.in.h: Likewise.
29380         * lib/signal.in.h: Likewise.
29381         * lib/stdarg.in.h: Likewise.
29382         * lib/stdint.in.h: Likewise.
29383         * lib/stdio.in.h: Likewise.
29384         * lib/stdlib.in.h: Likewise.
29385         * lib/string.in.h: Likewise.
29386         * lib/strings.in.h: Likewise.
29387         * lib/sys_select.in.h: Likewise.
29388         * lib/sys_socket.in.h: Likewise.
29389         * lib/sys_stat.in.h: Likewise.
29390         * lib/sys_time.in.h: Likewise.
29391         * lib/sysexits.in.h: Likewise.
29392         * lib/time.in.h: Likewise.
29393         * lib/unistd.in.h: Likewise.
29394         * lib/wchar.in.h: Likewise.
29395         * lib/wctype.in.h: Likewise.
29396         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
29397         * modules/fchdir (Makefile.am): Likewise.
29398         * modules/fcntl (Makefile.am): Likewise.
29399         * modules/float (Makefile.am): Likewise.
29400         * modules/iconv_open (Makefile.am): Likewise.
29401         * modules/inttypes (Makefile.am): Likewise.
29402         * modules/locale (Makefile.am): Likewise.
29403         * modules/math (Makefile.am): Likewise.
29404         * modules/netinet_in (Makefile.am): Likewise.
29405         * modules/search (Makefile.am): Likewise.
29406         * modules/signal (Makefile.am): Likewise.
29407         * modules/stdarg (Makefile.am): Likewise.
29408         * modules/stdint (Makefile.am): Likewise.
29409         * modules/stdio (Makefile.am): Likewise.
29410         * modules/stdlib (Makefile.am): Likewise.
29411         * modules/string (Makefile.am): Likewise.
29412         * modules/strings (Makefile.am): Likewise.
29413         * modules/sys_select (Makefile.am): Likewise.
29414         * modules/sys_socket (Makefile.am): Likewise.
29415         * modules/sys_stat (Makefile.am): Likewise.
29416         * modules/sys_time (Makefile.am): Likewise.
29417         * modules/sysexits (Makefile.am): Likewise.
29418         * modules/time (Makefile.am): Likewise.
29419         * modules/unistd (Makefile.am): Likewise.
29420         * modules/wchar (Makefile.am): Likewise.
29421         * modules/wctype (Makefile.am): Likewise.
29422         Reported by Reuben Thomas <rrt@sc3d.org>.
29423
29424 2008-08-29  Bruno Haible  <bruno@clisp.org>
29425
29426         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
29427         any more.
29428
29429 2008-08-29  Simon Josefsson  <simon@josefsson.org>
29430
29431         * MODULES.html.sh (Misc): Add bitrotate.
29432
29433         * modules/bitrotate: New file.
29434
29435         * lib/bitrotate.h: New file.
29436
29437         * modules/bitrotate-tests: New file.
29438
29439         * tests/test-bitrotate.c: New file.
29440
29441         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
29442         on the bitrotate module.
29443
29444         * lib/arctwo.c: Use new bitrotate module.
29445
29446 2008-08-29  Jim Meyering  <meyering@redhat.com>
29447
29448         bootstrap: merge changes from coreutils
29449         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
29450         of copied files.  Remove a kludge, now that this is fixed.
29451         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
29452         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
29453         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
29454
29455 2008-08-29  Bruno Haible  <bruno@clisp.org>
29456
29457         * MODULES.html.sh: Remove --cvs-urls option.
29458
29459 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
29460
29461         maint.mk: adjust to file name change
29462         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
29463
29464 2008-08-28  Jim Meyering  <meyering@redhat.com>
29465
29466         * modules/getndelim2 (License): Relicense to LGPLv2+.
29467         Approved by Richard Stallman for the version of 1995, and by
29468         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
29469
29470 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
29471
29472         * lib/getdelim.c (flockfile, funlockfile): Make all of them
29473         dummy if one is not available.  Do not touch them if
29474         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
29475         (getc_maybe_unlocked): New.
29476         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
29477
29478 2008-08-26  Eric Blake  <ebb9@byu.net>
29479
29480         doc/INSTALL: resync from autoconf
29481         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
29482         (INSTALL_PRELUDE): Delete; this is done more efficiently by
29483         moving...
29484         * install.texi [!autoconf]: ...here.  Resync from autoconf.
29485         * INSTALL: Regenerate.
29486         * INSTALL.ISO: New file.
29487         * INSTALL.UTF-8: Likewise.
29488
29489 2008-08-26  Jim Meyering  <meyering@redhat.com>
29490
29491         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
29492         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
29493         these definitions conditional, so that they may be overridden, too.
29494
29495 2008-08-26  Bruno Haible  <bruno@clisp.org>
29496
29497         Generate INSTALL file variants with prettier quotes.
29498         * doc/Makefile (INSTALL_PRELUDE): New macro.
29499         (INSTALL): Use it.
29500         (INSTALL.ISO, INSTALL.UTF-8): New rules.
29501
29502 2008-08-26  Bruno Haible  <bruno@clisp.org>
29503
29504         Run makeinfo in an English locale.
29505         * doc/Makefile (MAKEINFO): New variable.
29506
29507 2008-08-26  Bruno Haible  <bruno@clisp.org>
29508
29509         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
29510         Suggested by Eric Blake.
29511
29512 2008-08-25  Bruno Haible  <bruno@clisp.org>
29513
29514         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
29515
29516 2008-08-25  Eric Blake  <ebb9@byu.net>
29517
29518         c-stack: test that stack overflow can be caught
29519         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
29520         that platform allows handling stack overflow; at least OS/2 EMX
29521         has sigaltstack, but crashes before transferring control to
29522         handler on stack overflow.
29523         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
29524         check for HAVE_STACK_OVERFLOW_HANDLING.
29525         Reported by Elbert Pol.
29526
29527 2008-08-25  Bruno Haible  <bruno@clisp.org>
29528
29529         * doc/posix-functions/strftime.texi: Fix description of strftime
29530         module.
29531
29532 2008-08-24  Bruno Haible  <bruno@clisp.org>
29533
29534         * tests/uniwidth/test-uc_width2.c: New file.
29535         * tests/uniwidth/test-uc_width2.sh: New file.
29536         * modules/uniwidth/width-tests (Files): Add the new files.
29537         (TESTS): Add uniwidth/test-uc_width2.sh.
29538         (TESTS_ENVIRONMENT): New variable.
29539         (check_PROGRAMS): Add test-uc_width2.
29540         (test_uc_width2_SOURCES): New variable.
29541
29542         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
29543         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
29544         not 0x00AB.
29545         Reported by Alexander V. Lukyanov <lav@netis.ru>.
29546
29547 2008-08-22  Eric Blake  <ebb9@byu.net>
29548
29549         test-lock, test-tls: mention why a test is skipped
29550         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
29551         skipped.
29552         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
29553
29554         count-one-bits: relax license
29555         * modules/count-one-bits (License): Relicense to LGPLv2+.
29556         Suggested by Ludovic Courtès, approved by Ben Pfaff.
29557
29558 2008-08-22  Andreas Schwab  <schwab@suse.de>
29559
29560         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29561         Remove spurious space in assignment.
29562
29563 2008-08-21  Simon Josefsson  <simon@josefsson.org>
29564
29565         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
29566         Paul Eggert <eggert@CS.UCLA.EDU>.
29567
29568 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
29569
29570         * modules/gettext: Add m4/threadlib.m4.
29571
29572 2008-08-19  Eric Blake  <ebb9@byu.net>
29573
29574         test-c-stack: fix compilation failure on FreeBSD 5.0
29575         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
29576         headers before <sys/resource.h>.
29577         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
29578         the bug.
29579         Reported by Nelson H. F. Beebe.
29580
29581         strverscmp: migrate from "strverscmp.h" to <string.h>
29582         * modules/string (Makefile.am): Add new hooks.
29583         * modules/strverscmp (Files): Remove strverscmp.h.
29584         (Depends-on): Add string.
29585         (configure.ac): Add indicator.
29586         (Include): Mention new header.
29587         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
29588         defaults.
29589         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
29590         results.
29591         * lib/strverscmp.h: Delete.
29592         * lib/string.in.h (strverscmp): Provide declaration, when needed.
29593         * tests/test-strverscmp.c (includes): Adjust client.
29594         * lib/check-version.c (includes): Likewise.
29595         * NEWS: Document the change.
29596
29597         strverscmp: add unit test
29598         * modules/strverscmp-tests: New file.
29599         * tests/test-strverscmp.c: Likewise.
29600
29601 2008-08-19  Simon Josefsson  <simon@josefsson.org>
29602
29603         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
29604         regarding Windows crypto stuff, from Mono.
29605
29606 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
29607
29608         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
29609         if present, for intel RND.  Return error on failures.
29610
29611 2008-08-18  Ben Pfaff  <blp@gnu.org>
29612
29613         gitlog-to-changelog: give better diagnostic for failed pipe-open
29614         * build-aux/gitlog-to-changelog: Improve error message: suggest
29615         that the version of Git may be too old.
29616
29617 2008-08-18  Simon Josefsson  <simon@josefsson.org>
29618
29619         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
29620         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
29621
29622 2008-08-18  Bruno Haible  <bruno@clisp.org>
29623
29624         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
29625         pthread_in_use().
29626
29627 2008-08-18  Bruno Haible  <bruno@clisp.org>
29628
29629         * lib/glthread/threadlib.c: Include <pthread.h>.
29630
29631 2008-08-18  Bruno Haible  <bruno@clisp.org>
29632
29633         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
29634         glthread_recursive_lock_* macros.
29635         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
29636         Fix syntax error.
29637
29638 2008-08-18  Bruno Haible  <bruno@clisp.org>
29639
29640         * lib/glthread/thread.c: Avoid forcing a context switch right after
29641         thread creation.
29642
29643 2008-08-17  Bruno Haible  <bruno@clisp.org>
29644
29645         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
29646         * lib/glthread/thread.h: Provide Win32 specific implementation.
29647         * modules/thread (Files): Add lib/glthread/thread.c.
29648         (Depends-on): Add lock.
29649         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
29650
29651 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29652
29653         New module 'yield'.
29654         * modules/yield: New file.
29655         * lib/glthread/yield.h: New file.
29656         * m4/yield.m4: New file.
29657         * MODULES.html.sh (Multithreading): Add yield.
29658
29659 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29660
29661         New module 'thread'.
29662         * modules/thread: New file.
29663         * lib/glthread/thread.h: New file.
29664         * m4/thread.m4: New file.
29665         * MODULES.html.sh (Multithreading): Add thread.
29666
29667 2008-08-17  Bruno Haible  <bruno@clisp.org>
29668
29669         * lib/glthread/lock.h: Include <stdlib.h> always.
29670         * lib/glthread/tls.h: Likewise.
29671         * lib/glthread/cond.h: Likewise.
29672
29673 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29674
29675         New module 'cond'.
29676         * modules/cond: New file.
29677         * lib/glthread/cond.h: New file.
29678         * lib/glthread/cond.c: New file.
29679         * m4/cond.m4: New file.
29680         * MODULES.html.sh (Multithreading): Add cond.
29681
29682 2008-08-16  Eric Blake  <ebb9@byu.net>
29683
29684         c-stack: fix regression on Irix 5.3 from 2008-06-21
29685         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
29686         sa_sigaction...
29687         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
29688         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
29689         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
29690         * modules/signal (Makefile.am): Use the value.
29691         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
29692         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
29693         * doc/posix-headers/signal.texi (signal.h): Document this
29694         portability issue.
29695         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
29696         Reported by Tom G. Christensen.
29697
29698 2008-08-17  Bruno Haible  <bruno@clisp.org>
29699
29700         New module 'threadlib'.
29701         * modules/threadlib: New file.
29702         * lib/glthread/threadlib.c: New file, extracted from
29703         lib/glthread/lock.c.
29704         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
29705         functions.
29706         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
29707         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
29708         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
29709         macros.
29710         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
29711         (gl_DISABLE_THREADS): Remove macro.
29712         * modules/lock (Files): Remove build-aux/config.rpath.
29713         (Depends-on): Remove havelib. Add threadlib.
29714         (configure.ac-early): Remove section.
29715         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
29716         * modules/tls (Depends-on): Remove lock. Add threadlib.
29717         (Link): New section, copied from threadlib.
29718         * MODULES.html.sh (Multithreading): Add threadlib.
29719
29720 2008-08-14  Bruno Haible  <bruno@clisp.org>
29721
29722         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
29723         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
29724         glthread_rwlock_unlock, glthread_rwlock_destroy,
29725         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
29726         glthread_recursive_lock_destroy): Define as macros always.
29727         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
29728         glthread_lock_lock.
29729         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
29730         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
29731         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
29732         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
29733         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
29734         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
29735         (glthread_recursive_lock_lock_func): Renamed from
29736         glthread_recursive_lock_lock.
29737         (glthread_recursive_lock_unlock_func): Renamed from
29738         glthread_recursive_lock_unlock.
29739         (glthread_recursive_lock_destroy_func): Renamed from
29740         glthread_recursive_lock_destroy.
29741
29742 2008-08-14  Bruno Haible  <bruno@clisp.org>
29743
29744         * lib/glthread/lock.h: Renamed from lib/lock.h.
29745         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
29746         * lib/glthread/tls.h: Renamed from lib/tls.h.
29747         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
29748         * lib/fstrcmp.c: Update includes.
29749         * lib/strsignal.c: Update includes.
29750         * modules/lock (Files, Makefile.am): Update.
29751         (Include): Change to "glthread/lock.h".
29752         * modules/tls (Files, Makefile.am): Update.
29753         (Include): Change to "glthread/tls.h".
29754         * tests/test-lock.c: Update includes.
29755         * tests/test-tls.c: Update includes.
29756         * NEWS: Mention the renamed header files.
29757
29758 2008-08-11  Jim Meyering  <meyering@redhat.com>
29759
29760         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
29761
29762 2008-08-11  Eric Blake  <ebb9@byu.net>
29763
29764         test-c-stack: avoid C99-ism
29765         * tests/test-c-stack.c (main): Fix whitespace, move declaration
29766         before statement.
29767         Reported by Alain Guibert.
29768
29769 2008-08-10  Jim Meyering  <meyering@redhat.com>
29770
29771         ensure that return value of uinttostr et al are not ignored
29772         * lib/inttostr.h (__GNUC_PREREQ): Define.
29773         (__attribute_warn_unused_result__): Define.
29774         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
29775
29776 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
29777
29778         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
29779         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
29780
29781 2008-08-07  Jim Meyering  <meyering@redhat.com>
29782
29783         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
29784
29785         * modules/mkstemp (License): Relicense under LGPLv2+.
29786         * modules/tempname (License): Likewise.
29787
29788 2008-08-06  Bruno Haible  <bruno@clisp.org>
29789
29790         * lib/poll.c (poll): Further micro-optimization.
29791
29792 2008-08-06  Jim Meyering  <meyering@redhat.com>
29793
29794         inet_pton.c: use locale-independent tolower
29795         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
29796         (inet_pton6): Use c_tolower rather than tolower.
29797         * modules/inet_pton (Depends-on): Add c-ctype.
29798
29799 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
29800
29801         * lib/poll.c (poll): Avoid division when timeout is 0, cache
29802         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
29803
29804 2008-08-06  Jim Meyering  <meyering@redhat.com>
29805
29806         * modules/inet_pton (License): Relicense under LGPLv2+.
29807
29808 2008-08-03  Bruno Haible  <bruno@clisp.org>
29809
29810         Additional non-aborting API for lock and tls.
29811         * lib/lock.h: Include <errno.h>.
29812         (glthread_lock_init): New macro/function.
29813         (gl_lock_init): Define as wrapper around glthread_lock_init.
29814         (glthread_lock_lock): New macro/function.
29815         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
29816         (glthread_lock_unlock): New macro/function.
29817         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
29818         (glthread_lock_destroy): New macro/function.
29819         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
29820         (glthread_rwlock_init): New macro/function.
29821         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
29822         (glthread_rwlock_rdlock): New macro/function.
29823         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
29824         (glthread_rwlock_wrlock): New macro/function.
29825         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
29826         (glthread_rwlock_unlock): New macro/function.
29827         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
29828         (glthread_rwlock_destroy): New macro/function.
29829         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
29830         (glthread_recursive_lock_init): New macro/function.
29831         (gl_recursive_lock_init): Define as wrapper around
29832         glthread_recursive_lock_init.
29833         (glthread_recursive_lock_lock): New macro/function.
29834         (gl_recursive_lock_lock): Define as wrapper around
29835         glthread_recursive_lock_lock.
29836         (glthread_recursive_lock_unlock): New macro/function.
29837         (gl_recursive_lock_unlock): Define as wrapper around
29838         glthread_recursive_lock_unlock.
29839         (glthread_recursive_lock_destroy): New macro/function.
29840         (gl_recursive_lock_destroy): Define as wrapper around
29841         glthread_recursive_lock_destroy.
29842         (glthread_once): New macro/function.
29843         (gl_once): Define as wrapper around glthread_once.
29844         Update function declarations.
29845         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
29846         glthread_rwlock_init. Return error code.
29847         (glthread_rwlock_rdlock_multithreaded): Renamed from
29848         glthread_rwlock_rdlock. Return error code.
29849         (glthread_rwlock_wrlock_multithreaded): Renamed from
29850         glthread_rwlock_wrlock. Return error code.
29851         (glthread_rwlock_unlock_multithreaded): Renamed from
29852         glthread_rwlock_unlock. Return error code.
29853         (glthread_rwlock_destroy_multithreaded): Renamed from
29854         glthread_rwlock_destroy. Return error code.
29855         (glthread_recursive_lock_init_multithreaded): Renamed from
29856         glthread_recursive_lock_init. Return error code.
29857         (glthread_recursive_lock_lock_multithreaded): Renamed from
29858         glthread_recursive_lock_lock. Return error code.
29859         (glthread_recursive_lock_unlock_multithreaded): Renamed from
29860         glthread_recursive_lock_unlock. Return error code.
29861         (glthread_recursive_lock_destroy_multithreaded): Renamed from
29862         glthread_recursive_lock_destroy. Return error code.
29863         (glthread_once_call): Make static.
29864         (glthread_once_multithreaded): Renamed from glthread_once.
29865         * lib/tls.h: Include <errno.h>.
29866         (glthread_tls_key_init): New macro/function.
29867         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
29868         (glthread_tls_set): New macro/function.
29869         (gl_tls_set): Define as wrapper around glthread_tls_set.
29870         (glthread_tls_key_destroy): New macro/function.
29871         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
29872         Update function declarations.
29873         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
29874         glthread_tls_get.
29875         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29876
29877 2008-08-04  Eric Blake  <ebb9@byu.net>
29878
29879         gnumakefile: use space, not TAB, outside of targets
29880         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
29881
29882 2008-08-02  Jim Meyering  <meyering@redhat.com>
29883
29884         getdate.y: avoid locale-dependent date parsing failure
29885         In Turkish locales, getdate would fail to recognize keywords
29886         containing a lowercase "i".  The solution is not to rely on
29887         locale-sensitive case-conversion.
29888         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
29889         (lookup_word): Use c_toupper in place of toupper.
29890         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
29891         Reported by Vefa Bicakci <bicave@superonline.com> in
29892         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
29893         * modules/getdate (Depends-on): Add c-ctype.
29894
29895 2008-08-02  Bruno Haible  <bruno@clisp.org>
29896
29897         * gnulib-tool (func_import): When updating or creating a .gitignore
29898         file, prepend each added line with a slash, and ignore leading slashes
29899         from the existing lines.
29900         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29901
29902 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29903
29904         Portability fix for GNU make 3.79.1.
29905         * top/GNUmakefile: Avoid 'else COND', which older GNU make
29906         versions do not understand.
29907
29908 2008-08-01  Bruno Haible  <bruno@clisp.org>
29909
29910         Work around bug of HP-UX 10.20 cc with -0.0 literal.
29911         * tests/test-isnanf.h (zero): New variable.
29912         (main): Avoid literal -0.0f.
29913         * tests/test-isnand.h (zero): New variable.
29914         (main): Avoid literal -0.0.
29915         * tests/test-isnanl.h (zero): New variable.
29916         (main): Avoid literal -0.0L.
29917         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
29918         (test_float, test_double, test_long_double): Avoid literals -0.0f,
29919         -0.0, -0.0L.
29920         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
29921         (test_signbitd): Avoid literal -0.0.
29922         (test_signbitl): Avoid literal -0.0L.
29923         * tests/test-ceilf1.c (zero): New variable.
29924         (main): Avoid literal -0.0f.
29925         * tests/test-ceill.c (zero): New variable.
29926         (main): Avoid literal -0.0L.
29927         * tests/test-floorf1.c (zero): New variable.
29928         (main): Avoid literal -0.0f.
29929         * tests/test-floorl.c (zero): New variable.
29930         (main): Avoid literal -0.0L.
29931         * tests/test-roundf1.c (zero): New variable.
29932         (main): Avoid literal -0.0f.
29933         * tests/test-round1.c (zero): New variable.
29934         (main): Avoid literal -0.0.
29935         * tests/test-roundl.c (zero): New variable.
29936         (main): Avoid literal -0.0L.
29937         * tests/test-truncf1.c (zero): New variable.
29938         (main): Avoid literal -0.0f.
29939         * tests/test-trunc1.c (zero): New variable.
29940         (main): Avoid literal -0.0.
29941         * tests/test-truncl.c (zero): New variable.
29942         (main): Avoid literal -0.0L.
29943         * tests/test-frexp.c (zero): New variable.
29944         (main): Avoid literal -0.0.
29945         * tests/test-frexpl.c (zero): New variable.
29946         (main): Avoid literal -0.0L.
29947         * tests/test-ldexpl.c (zero): New variable.
29948         (main): Avoid literal -0.0L.
29949         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29950         (zerod, zerol): New variables.
29951         (test_function): Avoid literals -0.0, -0.0L.
29952         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29953         (zerod, zerol): New variables.
29954         (test_function): Avoid literals -0.0, -0.0L.
29955         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29956         (zerod, zerol): New variables.
29957         (test_function): Avoid literals -0.0, -0.0L.
29958         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29959         (zerod, zerol): New variables.
29960         (test_function): Avoid literals -0.0, -0.0L.
29961         * tests/test-strtod.c (zero): New variable.
29962         (main): Avoid literal -0.0.
29963         Reported by Jonathan C. Patschke <jp@centtech.com>.
29964
29965 2008-07-31  Jim Meyering  <meyering@redhat.com>
29966
29967         sha256.h: correct definition of SHA224_DIGEST_SIZE
29968         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
29969         Reported by Paulie Pena IV <paulie4@gmail.com>.
29970         Define as 224 / 8, rather than as a literal.
29971         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
29972         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
29973         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
29974
29975 2008-07-31  Bruno Haible  <bruno@clisp.org>
29976
29977         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
29978         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
29979         Reported by Jonathan Patschke <jp@centtech.com>.
29980
29981 2008-07-31  Bruno Haible  <bruno@clisp.org>
29982
29983         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
29984         Reported by Paolo Bonzini <bonzini@gnu.org>.
29985
29986 2008-07-30  Eric Blake  <ebb9@byu.net>
29987
29988         test-strtod: allow compilation without -lm
29989         * tests/test-strtod.c (main): Avoid link dependence on fabs.
29990         Reported by Dennis Clarke <blastwave@gmail.com>.
29991
29992 2008-07-28  Jim Meyering  <meyering@redhat.com>
29993
29994         bootstrap: work also when there are no .po files in po/
29995         * build-aux/bootstrap (update_po_files): Complete the change
29996         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
29997
29998 2008-07-27  Jim Meyering  <meyering@redhat.com>
29999
30000         * users.txt: Add zile.
30001
30002 2008-07-26  Ben Pfaff  <blp@gnu.org>
30003
30004         Add missing dependencies on new m4/exponent[fdl].m4 files.
30005         * modules/isnanf-nolibm: Add m4/exponentf.m4.
30006         * modules/isnand-nolibm: Add m4/exponentd.m4.
30007         * modules/isnanl-nolibm: Add m4/exponentl.m4.
30008         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
30009         m4/isnan[fdl].m4, because the macros actually used moved.
30010         Reported by Jim Meyering.
30011
30012 2008-07-14  Ben Pfaff  <blp@gnu.org>
30013
30014         Add isinf module.
30015         * lib/isinf.c: New file.
30016         * lib/math.in.h: Define isinf macro if we have decided to replace
30017         it.
30018         * m4/isinf.m4: New file.
30019         * m4/math_h.m4: Initialize and substitute variables for isinf
30020         module.
30021         * modules/isinf: New file.
30022         * modules/isinf-tests: New file.
30023         * modules/math: Add substitutions for new module.
30024         * tests/test-isinf.c: New file.
30025         * doc/posix-functions/isinf.texi: Mention new module.
30026         * MODULES.html.sh: Mention new module.
30027
30028 2008-07-14  Ben Pfaff  <blp@gnu.org>
30029
30030         Factor out some macros for use by additional modules.
30031         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
30032         exponentf.m4.
30033         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
30034         exponentd.m4.
30035         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
30036         file exponentl.m4.
30037         * m4/exponentf.m4: New file.
30038         * m4/exponentd.m4: New file.
30039         * m4/exponentl.m4: New file.
30040         * modules/isnanf: Use new file m4/exponentf.m4.
30041         * modules/isnand: Use new file m4/exponentd.m4.
30042         * modules/isnanl: Use new file m4/exponentl.m4.
30043
30044 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
30045
30046         mktime.c: normalize tp->tm_isdst value to -1/0/1.
30047         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
30048         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
30049         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
30050
30051         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
30052         readlink on platforms without PATH_MAX.
30053
30054 2008-07-21  Eric Blake  <ebb9@byu.net>
30055
30056         Warn, not fail, on stale version.
30057         * top/GNUmakefile (_curr-ver): Tone down previous patch.
30058
30059         Don't allow installation with stale devel version number.
30060         * top/GNUmakefile (_is-install-target): New macro.
30061         (_curr-ver): Forbid installation with stale version number.
30062
30063 2008-07-20  Bruno Haible  <bruno@clisp.org>
30064
30065         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
30066         TESTS_ENVIRONMENT.
30067         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
30068
30069 2008-07-20  Bruno Haible  <bruno@clisp.org>
30070
30071         * lib/c-stack.h (c_stack_action): Add documentation.
30072         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
30073
30074 2008-07-20  Bruno Haible  <bruno@clisp.org>
30075
30076         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
30077         * modules/readlink (License): Likewise.
30078
30079 2008-07-17  Eric Blake  <ebb9@byu.net>
30080
30081         * modules/c-stack (Link): Fix typo.
30082
30083         Make c-stack use libsigsegv, when available.
30084         * modules/c-stack (Depends-on): Add libsigsegv.
30085         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
30086         needed.
30087         * lib/c-stack.c (SIGSTKSZ): Define fallback.
30088         (segv_handler, overflow_handler, c_stack_action)
30089         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
30090         implementation when libsigsegv is available, but only when using
30091         the library is necessary.
30092         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
30093         comment, explaining why XSI check fails on Linux.
30094         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
30095         * tests/test-c-stack2.sh: Tweak skip message.
30096         * NEWS: Document new link-time requirements.
30097
30098 2008-07-16  Eric Blake  <ebb9@byu.net>
30099
30100         c-stack: Expose false positives when not using libsigsegv.
30101         * modules/c-stack-tests (Files): Expand test.
30102         * tests/test-c-stack.c (main): Add means to conditionally trigger
30103         non-overflow SIGSEGV.
30104         * tests/test-c-stack2.sh: New file.
30105
30106 2008-07-14  Bruno Haible  <bruno@clisp.org>
30107
30108         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
30109         Reported by Eric Blake.
30110
30111 2008-07-14  Sam Steingold  <sds@gnu.org>
30112             Bruno Haible  <bruno@clisp.org>
30113
30114         New module libsigsegv.
30115         * modules/libsigsegv: New file.
30116         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
30117         modifications.
30118         * MODULES.html.sh (Signal handling): New section.
30119
30120 2008-07-14  Bruno Haible  <bruno@clisp.org>
30121
30122         * modules/unictype/ctype-* (Description): Add the word "function".
30123         Improves the resulting doc in MODULES.html.
30124
30125 2008-07-12  Ben Pfaff  <blp@gnu.org>
30126
30127         Add longlong module.
30128         * modules/longlong: New file.
30129
30130 2008-07-12  Bruno Haible  <bruno@clisp.org>
30131
30132         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
30133         to empty.
30134
30135 2008-07-10  Ben Pfaff  <blp@gnu.org>
30136
30137         Add isnan module.
30138         * doc/posix-functions/isnan.texi: Mention new module.
30139         * lib/math.in.h: Define isnan macro if we have decided to replace
30140         it.
30141         * m4/isnan.m4: New file.
30142         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
30143         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
30144         also.
30145         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
30146         redundancy.
30147         * m4/math_h.m4: Initialize and substitute variables for isnan
30148         module.
30149         * modules/isnan: New file.
30150         * modules/isnan-tests: New file.
30151         * modules/math: Add substitutions for new module.
30152         * tests/test-isnan.c: New file.
30153         * MODULES.html.sh: Mention new module.
30154
30155 2008-07-10  Ben Pfaff  <blp@gnu.org>
30156
30157         Add isnanf module.
30158         * lib/isnanf.m4: New file.
30159         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
30160         (gl_HAVE_ISNANF_IN_LIBM): New macro.
30161         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
30162         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
30163         * modules/isnanf: New file.
30164         * modules/isnanf-tests: New file.
30165         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
30166         files.
30167         * tests/test-isnanf-nolibm.c: factored most of its contents into
30168         new file tests/test-isnanf.h.
30169         * tests/test-isnanf.h: New file.
30170         * tests/test-isnanf.c: New file.
30171         * MODULES.html.sh: Mention new module.
30172         * doc/glibc-functions/isnanf.texi: Mention new module.
30173
30174 2008-07-10  Ben Pfaff  <blp@gnu.org>
30175
30176         Add isnand module.
30177         * lib/isnand.h: New file.
30178         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
30179         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
30180         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
30181         functionality also.
30182         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
30183         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
30184         (gl_HAVE_ISNAND_IN_LIBM): New macro.
30185         * modules/isnand: New file.
30186         * modules/isnand-tests: New file.
30187         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
30188         files.
30189         * tests/test-isnand-nolibm.c: factored most of its contents into
30190         new file tests/test-isnand.h.
30191         * tests/test-isnand.h: New file.
30192         * tests/test-isnand.c: New file.
30193         * MODULES.html.sh: Mention new module.
30194
30195 2008-07-10  Ben Pfaff  <blp@gnu.org>
30196
30197         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
30198         * lib/isnand.h: Rename lib/isnand-nolibm.h.
30199         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
30200         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
30201         * modules/isnanf-nolibm: Update references to renamed files.
30202         * modules/isnand-nolibm: Likewise.
30203         * modules/isnanf-nolibm-tests: Likewise.
30204         * modules/isnand-nolibm-tests: Likewise.
30205         * lib/frexp.c: Likewise.
30206         * lib/isfinite.c: Likewise.
30207         * lib/signbitd.c: Likewise.
30208         * lib/signbitf.c: Likewise.
30209         * lib/vasnprintf.c: Likewise.
30210         * tests/test-ceilf1.c: Likewise.
30211         * tests/test-ceilf2.c: Likewise.
30212         * tests/test-floorf1.c: Likewise.
30213         * tests/test-floorf2.c: Likewise.
30214         * tests/test-frexp.c: Likewise.
30215         * tests/test-round1.c: Likewise.
30216         * tests/test-round2.c: Likewise.
30217         * tests/test-roundf1.c: Likewise.
30218         * tests/test-strtod.c: Likewise.
30219         * tests/test-trunc1.c: Likewise.
30220         * tests/test-trunc2.c: Likewise.
30221         * tests/test-truncf1.c: Likewise.
30222         * tests/test-truncf2.c: Likewise.
30223         * NEWS: Mention the renamed header files.
30224
30225 2008-07-11  Jim Meyering  <meyering@redhat.com>
30226
30227         vc-list-files: make the last-resort awk code more portable
30228         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
30229         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
30230         does not support it.
30231
30232 2008-07-10  Eric Blake  <ebb9@byu.net>
30233
30234         Work with tar's bootstrap.
30235         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
30236         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
30237         an m4 comment.
30238
30239 2008-07-09  Jim Meyering  <meyering@redhat.com>
30240
30241         posix-shell.m4: fix typo that made this test malfunction
30242         * m4/posix-shell.m4: Remove capitalization in variable name.
30243
30244 2008-07-08  Bruno Haible  <bruno@clisp.org>
30245
30246         * m4/onceonly.m4: Update comments.
30247         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30248
30249 2008-07-04  Jim Meyering  <meyering@redhat.com>
30250
30251         * users.txt: Add vc-dwim.
30252         (bison, coreutils): Use the gitweb URL.
30253
30254 2008-07-03  Jim Meyering  <meyering@redhat.com>
30255
30256         * users.txt: Add libffcall.  From Sam Steingold.
30257
30258 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
30259
30260         getdate.y: do not ignore TZ with relative day, month or year offset
30261         * lib/getdate.y (get_date): Move the tz-handling block to follow the
30262         relative-date-handling, since otherwise, the latter would clobber the
30263         sole output (an updated Start value) of the tz-handling block.
30264         * tests/test-getdate.c: Tests for the fix
30265
30266 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30267
30268         Recognize 'foo_LIBRARIES += libgnu.a'.
30269         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
30270         makefile snippet has already specified an installation location,
30271         also using '+='.
30272
30273 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
30274
30275         getdate.y: factor out common actions
30276         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
30277         Use them in place of open-coded actions.
30278
30279 2008-07-01  Simon Josefsson  <simon@josefsson.org>
30280
30281         Add self-test for getdate module.
30282         * modules/getdate-tests: New file.
30283         * tests/test-getdate.c: New file.
30284
30285 2008-06-29  Bruno Haible  <bruno@clisp.org>
30286
30287         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
30288         .gitignore.
30289         Reported by Sylvain Beucler <beuc@beuc.net>.
30290
30291 2008-06-29  Bruno Haible  <bruno@clisp.org>
30292
30293         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
30294         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
30295
30296 2008-06-29  Bruno Haible  <bruno@clisp.org>
30297
30298         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
30299         EXTRA_DIST.
30300         Reported by Sylvain Beucler <beuc@beuc.net>.
30301
30302 2008-06-26  Jim Meyering  <meyering@redhat.com>
30303
30304         make several modules depend on the "open" module
30305         This provides slightly increased consistency when opening-for-write
30306         the name of a non-directory spelled with a trailing slash.
30307         * modules/chdir-safer: Likewise.
30308         * modules/chown: Likewise.
30309         * modules/clean-temp: Likewise.
30310         * modules/copy-file: Likewise.
30311         * modules/fchdir: Likewise.
30312         * modules/fcntl-safer: Likewise.
30313         * modules/pipe: Likewise.
30314         * modules/utime: Likewise.
30315         Prompted by Eric Blake and Bruno Haible.
30316
30317 2008-06-24  Andreas Schwab  <schwab@suse.de>
30318
30319         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
30320         literals can be used as initializers for global variables.
30321
30322 2008-06-23  Eric Blake  <ebb9@byu.net>
30323
30324         Make gnulib-cache.m4 easier to diff.
30325         * gnulib-tool (func_import): Allow newlines when reading cached
30326         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
30327
30328 2008-06-23  Bruno Haible  <bruno@clisp.org>
30329
30330         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
30331         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
30332         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
30333         m4/signalblocking.m4.
30334         (gl_PREREQ_SIGACTION): Don't invoke it.
30335         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
30336         gl_PREREQ_SIG_HANDLER_H.
30337         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30338         Don't check for sigaction here.
30339
30340 2008-06-23  Bruno Haible  <bruno@clisp.org>
30341
30342         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
30343         (install_handlers): Don't set the SA_RESETHAND flag.
30344
30345 2008-06-23  Bruno Haible  <bruno@clisp.org>
30346
30347         * m4/sigaction.m4: Comment fixes.
30348         * lib/signal.in.h: Likewise.
30349
30350 2008-06-23  Eric Blake  <ebb9@byu.net>
30351
30352         Fix typo.
30353         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
30354
30355         Avoid SA_ namespace.
30356         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
30357         Reported by Ralf Wildenhues.
30358
30359         Avoid test failure due to SA_RESTORER.
30360         * tests/test-sigaction.c (SA_MASK): New macro.
30361         (main): Avoid failing due to extension flags being set.
30362         Reported by Jim Meyering.
30363
30364         Revert use of sig-handler.h in sigprocmask.c.
30365         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
30366         it requires the existence of struct sigaction.
30367         * lib/sigprocmask.c (handler_t): Restore typedef.
30368         (rpl_signal, old_handlers): Use local type.
30369
30370 2008-06-22  Bruno Haible  <bruno@clisp.org>
30371
30372         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
30373         conditionally.
30374         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30375
30376 2008-06-22  Bruno Haible  <bruno@clisp.org>
30377
30378         * doc/posix-functions/siginterrupt.texi: Move note.
30379
30380         * lib/signal.in.h (SA_RESTART): New macro.
30381         * lib/sigaction.c: Update comment.
30382
30383         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
30384
30385         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
30386         (gl_PREREQ_SIGPROCMASK): Invoke it.
30387         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
30388
30389         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
30390
30391         * lib/sigprocmask.c: Update a comment.
30392
30393 2008-06-21  Eric Blake  <ebb9@byu.net>
30394
30395         Use sigaction module rather than signal().
30396         * modules/c-stack (Depends-on): Add sigaction.
30397         * modules/fatal-signal (Depends-on): Likewise.
30398         * modules/nanosleep (Depends-on): Likewise.
30399         * modules/sigprocmask (Files): Add sig-handler.h.
30400         * modules/sigaction (Files): Likewise.
30401         * lib/sig-handler.h (get_handler): New file, suggested by Paul
30402         Eggert.
30403         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
30404         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
30405         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
30406         (init_fatal_signals): Likewise.
30407         * lib/nanosleep.c (rpl_nanosleep): Likewise.
30408         (siginterrupt): Delete fallback.
30409         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
30410         instead.
30411         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
30412         siginterrupt.
30413
30414         New module sigaction, for mingw.
30415         * modules/sigaction: New module...
30416         * modules/sigaction-tests: ...and its test.
30417         * m4/sigaction.m4: New file.
30418         * lib/sigaction.c: Likewise.
30419         * tests/test-sigaction.c: Likewise.
30420         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
30421         * modules/signal (Makefile.am): Likewise.
30422         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
30423         needed.
30424         * doc/posix-headers/signal.texi (signal.h): Mention provided
30425         types.
30426         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
30427         that sigaction is preferable.
30428         * doc/posix-functions/sigaction.texi (sigaction): Mention new
30429         module.
30430         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30431         sigaction.
30432
30433         Improve robustness of sigprocmask by overriding signal.
30434         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
30435         is in use.
30436         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
30437         (SIGKILL, SIGSTOP): Provide fallbacks.
30438         (rpl_signal): Implement.
30439         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
30440         signal can be called inside handlers.
30441
30442         Fix nanosleep module on mingw.
30443         * modules/nanosleep (Depends-on): Add sys_select.
30444         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
30445
30446         Fix licensing of sigprocmask.
30447         * modules/raise (License): Relicense as LGPL.
30448
30449 2008-06-21  Bruno Haible  <bruno@clisp.org>
30450
30451         * lib/propername.c (proper_name_utf8): Don't use the transliterated
30452         result if it contains question marks.
30453         Reported by Michael Geng <linux@michaelgeng.de>.
30454
30455 2008-06-19  Bruno Haible  <bruno@clisp.org>
30456
30457         Fix CVS-ism.
30458         * doc/gnulib.texi: Include updated-stamp.texi.
30459         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
30460         (updated-stamp.texi): New rule.
30461         (gnulib.info): Depend on it.
30462         * doc/.gitignore: Add updated-stamp.texi.
30463         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
30464
30465 2008-06-19  Bruno Haible  <bruno@clisp.org>
30466
30467         * doc/Makefile (gnulib.info): Update and simplify dependencies.
30468         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30469
30470 2008-06-19  Eric Blake  <ebb9@byu.net>
30471
30472         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
30473         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
30474         Reported by Stepan Kasal.
30475
30476 2008-06-18  Bruno Haible  <bruno@clisp.org>
30477
30478         * lib/fatal-signal.c (init_fatal_signals): Add comment.
30479         Reported by Eric Blake.
30480
30481 2008-06-18  Eric Blake  <ebb9@byu.net>
30482
30483         Work around cygwin 1.5.25 strsignal bug.
30484         * tests/test-strsignal.c: Allow for const char *.
30485         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
30486
30487 2008-06-18  Simon Josefsson  <simon@josefsson.org>
30488
30489         * users.txt: Update URL to article and add author/date
30490         information.
30491
30492 2008-06-17  Bruno Haible  <bruno@clisp.org>
30493
30494         New macro gl_DISABLE_THREADS.
30495         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
30496         if the user did not pass --enable-threads or --disable-threads option.
30497         (gl_DISABLE_THREADS): New macro.
30498         Reported by Eric Blake <ebb9@byu.net>.
30499
30500 2008-06-17  Bruno Haible  <bruno@clisp.org>
30501
30502         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
30503         when the macro ignores it.
30504         Based on a patch by Eric Blake <ebb9@byu.net>.
30505
30506 2008-06-17  Bruno Haible  <bruno@clisp.org>
30507
30508         * modules/tls (License): Change to LGPLv2+.
30509         Reported by Eric Blake.
30510
30511 2008-06-17  Eric Blake  <ebb9@byu.net>
30512
30513         Simplify c-stack prerequisites.
30514         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
30515         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
30516         no longer requires <ucontext.h> to exist.  Optimize setrlimit
30517         check.
30518         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
30519         <sys/resource.h>.
30520
30521         Move c-stack test into testsuite.
30522         * modules/c-stack-tests: New file.
30523         * lib/c-stack.c [DEBUG]: Move test program...
30524         * tests/test-c-stack.c: ...into this new file.  Skip rather than
30525         fail test if sigaltstack is lacking.
30526         * tests/test-c-stack.sh: New driver file.
30527
30528 2008-06-16  Eric Blake  <ebb9@byu.net>
30529
30530         Use raise module consistently.
30531         * modules/fatal-signal (Depends-on): Add raise.
30532         * modules/sigprocmask (Depends-on): Likewise.
30533         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
30534         * lib/sigprocmask.c (sigprocmask): Likewise.
30535         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30536         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
30537
30538         Fix compliance bug in sigpending.
30539         * lib/sigprocmask.c (sigpending): Return pending array via
30540         parameter, not return value.
30541
30542 2008-06-14  Eric Blake  <ebb9@byu.net>
30543
30544         Improve obstack-printf test code.
30545         * tests/test-obstack-printf.c (test_function): Fix comment, and
30546         simplify usage of obstack_* in macros.  Add a test for coverage.
30547         Reported by Bruno Haible.
30548
30549 2008-06-14  Bruno Haible  <bruno@clisp.org>
30550
30551         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
30552         array size as a constant, not as a const variable.
30553         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
30554         AC_USE_SYSTEM_EXTENSIONS.
30555         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30556         Test whether the obstack_printf function actually exists.
30557         * modules/obstack-printf (Depends-on): Add extensions.
30558         (Include): Remove obstack.h.
30559         * modules/obstack-printf-posix (Depends-on): Add extensions.
30560         (Include): Remove obstack.h.
30561
30562 2008-06-13  Eric Blake  <ebb9@byu.net>
30563
30564         Add obstack-printf and obstack-printf-posix modules.
30565         * modules/obstack-printf: New file.
30566         * modules/obstack-printf-posix: Likewise.
30567         * MODULES.html.sh (Misc): Mention them.
30568         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30569         Likewise.
30570         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30571         Likewise.
30572         * modules/stdio (Makefile.am): Accomodate new modules.
30573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30574         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
30575         Declare.
30576         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
30577         functions.
30578         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
30579         (gl_REPLACE_OBSTACK_PRINTF): New macros
30580         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
30581         * tests/test-obstack-printf.c: New file.
30582         * modules/obstack-printf-tests: Likewise.
30583         * modules/obstack-printf-posix-tests: Likewise.
30584
30585 2008-06-11  Bruno Haible  <bruno@clisp.org>
30586
30587         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
30588         * lib/open.c: Include errno.h.
30589         (open): Fail when attempting to write to a file that has a trailing
30590         slash.
30591         * tests/test-open.c (main): Test against trailing slash bug.
30592         * doc/posix-functions/open.texi: Mention the trailing slash bug.
30593
30594 2008-06-10  Bruno Haible  <bruno@clisp.org>
30595
30596         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
30597         for $? to work inside the trap command, with various /bin/sh-s.
30598         * tests/test-vc-list-files-cvs.sh: Likewise.
30599
30600 2008-06-10  Bruno Haible  <bruno@clisp.org>
30601
30602         * lib/acl-internal.h: Don't include gettext.h here.
30603         * lib/set-mode-acl.c: Include gettext.h here.
30604         * lib/copy-acl.c: Likewise.
30605
30606 2008-06-10  Bruno Haible  <bruno@clisp.org>
30607
30608         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
30609         * lib/wait-process.c (wait_subprocess): Likewise.
30610         * lib/execute.h (execute): Add termsigp argument.
30611         * lib/execute.c (execute): Likewise.
30612         * lib/csharpcomp.c (compile_csharp_using_pnet,
30613         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
30614         * lib/csharpexec.c (execute_csharp_using_pnet,
30615         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
30616         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
30617         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
30618         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
30619         is_jikes_present): Update.
30620         * lib/javaexec.c (execute_java_class): Update.
30621         * lib/javaversion.c (execute_and_read_line): Update.
30622         * NEWS: Document the changes.
30623         Reported by Eric Blake.
30624
30625 2008-06-10  Eric Blake  <ebb9@byu.net>
30626
30627         Add missing include.
30628         * tests/test-strstr.c (includes): Add <signal.h>.
30629         * tests/test-strcasestr.c (includes): Likewise.
30630         * tests/test-memmem.c (includes): Likewise.
30631
30632 2008-06-10  Bruno Haible  <bruno@clisp.org>
30633
30634         * lib/wait-process.c (wait_subprocess): Add an assertion.
30635
30636 2008-06-10  Bruno Haible  <bruno@clisp.org>
30637
30638         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
30639
30640 2008-06-10  Bruno Haible  <bruno@clisp.org>
30641
30642         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
30643         using alarm().
30644         * tests/test-strcasestr.c (main): Likewise.
30645         * tests/test-strstr.c (main): Likewise.
30646
30647 2008-06-09  Bruno Haible  <bruno@clisp.org>
30648
30649         Work around the Solaris 10 ACE ACLs ABI change.
30650         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
30651         declare if ACL_NO_TRIVIAL is present.
30652         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
30653         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
30654         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
30655         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
30656         define if ACL_NO_TRIVIAL is present.
30657         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
30658         and use the current ABI.
30659         (file_has_acl): Use same #if condition as elsewhere.
30660         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
30661         in use, and use the current ABI.
30662         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
30663         Reported by Jim Meyering.
30664
30665 2008-06-09  Eric Blake  <ebb9@byu.net>
30666
30667         Work around environments that (stupidly) ignore SIGALRM.
30668         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
30669         before using alarm().
30670         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30671         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30672         Reported by Ian Beckwith <ianb@erislabs.net>.
30673
30674         Produce autobuild blurb earlier in log.
30675         * modules/autobuild (configure.ac-early): Move AB_INIT here.
30676
30677 2008-06-09  Jim Meyering  <meyering@redhat.com>
30678         and Ondřej Vašík  <ovasik@redhat.com>
30679
30680         utimens.c: correct kernel bug work-around
30681         Ondřej Vašík found that the invalid return value of 280 indicates
30682         failure, not success, and the kernel bug we're trying to work
30683         around affects not just the utimensat call, but also the fallback
30684         futimens call.
30685         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
30686         not success.
30687         [HAVE_FUTIMENS]: Use the same work-around, here.
30688
30689 2008-06-09  Jim Meyering  <meyering@redhat.com>
30690
30691         add more guards around definition of ACE_-related code
30692         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
30693         ALLOW and ACE_OWNER are also defined.
30694
30695 2008-06-08  Bruno Haible  <bruno@clisp.org>
30696
30697         * lib/acl-internal.h: Add me as co-author.
30698         * lib/file-has-acl.c: Likewise.
30699         * lib/set-mode-acl.c: Likewise.
30700         * lib/copy-acl.c: Likewise.
30701
30702 2008-06-08  Bruno Haible  <bruno@clisp.org>
30703
30704         Add support for AIX ACLs.
30705         * lib/acl-internal.h (acl_nontrivial): New declaration.
30706         * lib/file-has-acl.c (acl_nontrivial): New function.
30707         (file_has_acl): Add implementation using AIX 4 ACL API.
30708         * lib/set-mode-acl.c (qset_acl): Likewise.
30709         * lib/copy-acl.c (qcopy_acl): Likewise.
30710
30711 2008-06-08  Bruno Haible  <bruno@clisp.org>
30712
30713         Add support for HP-UX ACLs.
30714         * lib/acl-internal.h (acl_nontrivial): New declaration.
30715         * lib/file-has-acl.c (acl_nontrivial): New function.
30716         (file_has_acl): Add implementation using HP-UX 11 ACL API.
30717         * lib/set-mode-acl.c (qset_acl): Likewise.
30718         * lib/copy-acl.c (qcopy_acl): Likewise.
30719
30720 2008-06-08  Bruno Haible  <bruno@clisp.org>
30721
30722         Add support for Cygwin ACLs.
30723         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
30724         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
30725         the chmod_or_fchmod call.
30726         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
30727
30728 2008-06-08  Bruno Haible  <bruno@clisp.org>
30729
30730         Fix bug with setuid modes in Solaris 10+ code.
30731         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
30732         succeeded, when the mode contains some special bits.
30733
30734 2008-06-08  Bruno Haible  <bruno@clisp.org>
30735
30736         Add support for Solaris 7..10 ACLs.
30737         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
30738         declarations.
30739         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
30740         functions.
30741         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
30742         * lib/set-mode-acl.c (qset_acl): Likewise.
30743         * lib/copy-acl.c (qcopy_acl): Likewise.
30744
30745 2008-06-08  Bruno Haible  <bruno@clisp.org>
30746
30747         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
30748         declaration.
30749         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
30750         (acl_access_nontrivial): Remove MacOS X case.
30751         (file_has_acl): Use acl_extended_nontrivial.
30752         * lib/copy-acl.c (qcopy_acl): Likewise.
30753
30754 2008-06-08  Bruno Haible  <bruno@clisp.org>
30755
30756         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
30757
30758 2008-06-08  Jim Meyering  <meyering@redhat.com>
30759
30760         * modules/acl (Maintainer): Add Bruno Haible.
30761
30762 2008-06-07  Bruno Haible  <bruno@clisp.org>
30763
30764         Improve support for Tru64 ACLs.
30765         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
30766         ACL on OSF/1.
30767
30768 2008-06-07  Bruno Haible  <bruno@clisp.org>
30769
30770         Add support for MacOS X ACLs.
30771         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
30772         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
30773         * lib/set-mode-acl.c (qset_acl): Likewise.
30774         * lib/copy-acl.c (qcopy_acl): Likewise.
30775
30776 2008-06-07  Bruno Haible  <bruno@clisp.org>
30777
30778         Fix memory leak introduced on 2008-05-22.
30779         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
30780         use.
30781
30782 2008-06-07  Bruno Haible  <bruno@clisp.org>
30783
30784         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
30785         to construct an empty ACL.
30786
30787 2008-06-07  Bruno Haible  <bruno@clisp.org>
30788
30789         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
30790         precisely.
30791         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
30792
30793 2008-06-07  Bruno Haible  <bruno@clisp.org>
30794
30795         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
30796         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
30797
30798 2008-06-07  Bruno Haible  <bruno@clisp.org>
30799
30800         * doc/posix-functions/_setjmp.texi: Explain the use of this function
30801         regardless of POSIX.
30802         * doc/posix-functions/_longjmp.texi: Likewise.
30803         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
30804         SystemV platform in this case.
30805
30806 2008-06-06  Eric Blake  <ebb9@byu.net>
30807
30808         Document abort() bugs.
30809         * doc/posix-functions/abort.texi (abort): Mention anomalies.
30810
30811         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
30812         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
30813         sigsetjmp.
30814         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
30815         siglongjmp, but only as a macro.
30816         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
30817         is obsolete.
30818         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
30819
30820         Tweak documentation to cover cygwin argz bugs.
30821         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
30822         argz bug fix; no code change needed since no cygwin releases
30823         occurred between the last fix and the bug being tested.
30824         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
30825         module and recently fixed cygwin bugs.
30826         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
30827         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
30828         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
30829         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
30830         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
30831         Likewise.
30832         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
30833         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
30834         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
30835         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
30836         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
30837         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
30838         Likewise.
30839
30840         Avoid gcc warning on cygwin.
30841         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
30842         !ACL_NO_TRIVIAL]: Avoid unused variable.
30843
30844 2008-06-05  Eric Blake  <ebb9@byu.net>
30845
30846         Be tolerant of UNKNOWN version in gnulib-tool test dir.
30847         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
30848         git-version-gen fails to come up with a version.
30849         Reported by Simon Josefsson.
30850
30851 2008-06-05  Jim Meyering  <meyering@redhat.com>
30852             Paul Eggert  <eggert@cs.ucla.edu>
30853
30854         utimens.c: work around a probable Linux kernel bug
30855         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
30856         appears to be a kernel bug that causes utimensat to return 280
30857         instead of 0, indicating success.
30858
30859 2008-06-04  Bruno Haible  <bruno@clisp.org>
30860
30861         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
30862         2008-06-01 commit.
30863
30864 2008-06-04  Bruno Haible  <bruno@clisp.org>
30865
30866         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
30867         * lib/file-has-acl.c (acl_access_nontrivial): New function.
30868         (file_has_acl): Use it. Save errno afterwards.
30869         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
30870
30871 2008-06-03  Bruno Haible  <bruno@clisp.org>
30872
30873         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
30874         draft code. Simplify #ifs.
30875         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
30876         Put Solaris code after POSIX-draft code. Fix comments regarding
30877         Solaris 10, HP-UX. Mention Cygwin.
30878         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
30879
30880 2008-06-03  Eric Blake  <ebb9@byu.net>
30881
30882         Provide fallback for older kernels.
30883         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
30884         Provide runtime fallback if kernel lacks support.
30885         Reported by Mike Frysinger.
30886
30887 2008-06-02  Bruno Haible  <bruno@clisp.org>
30888
30889         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
30890         it exists.
30891
30892 2008-06-02  Bruno Haible  <bruno@clisp.org>
30893
30894         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
30895         * lib/copy-acl.c (qcopy_acl): Update comment.
30896
30897 2008-06-02  Bruno Haible  <bruno@clisp.org>
30898
30899         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
30900         like ACL APIs.
30901
30902 2008-06-02  Bruno Haible  <bruno@clisp.org>
30903
30904         * tests/test-file-has-acl.sh: Use different code for Cygwin.
30905         * tests/test-set-mode-acl.sh: Likewise.
30906         * tests/test-copy-acl.sh: Likewise.
30907         * tests/test-copy-file.sh: Likewise.
30908
30909 2008-06-02  Bruno Haible  <bruno@clisp.org>
30910
30911         * tests/test-file-has-acl.sh: Remove unused code.
30912
30913 2008-06-01  Bruno Haible  <bruno@clisp.org>
30914
30915         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
30916         (copy_acl): Just a wrapper around qcopy_acl that emits the error
30917         messages.
30918         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
30919
30920 2008-06-01  Bruno Haible  <bruno@clisp.org>
30921
30922         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
30923         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
30924         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
30925         APIs.
30926         * modules/acl-tests (configure.ac): Remove tests now contained in
30927         m4/acl.m4.
30928
30929 2008-06-02  Jim Meyering  <meyering@redhat.com>
30930
30931         announce-gen: use a better key-server host name
30932         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
30933         it may be more consistently reliable.  Suggested by Werner Koch
30934         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
30935
30936 2008-06-01  Bruno Haible  <bruno@clisp.org>
30937
30938         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
30939         Reported by Voroskoi Andras <voroskoi@gmail.com>.
30940
30941 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
30942
30943         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
30944
30945 2008-06-01  Bruno Haible  <bruno@clisp.org>
30946
30947         New ACL tests.
30948         * tests/test-file-has-acl.sh: New file.
30949         * tests/test-file-has-acl.c: New file.
30950         * tests/test-set-mode-acl.sh: New file.
30951         * tests/test-set-mode-acl.c: New file.
30952         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
30953         * tests/test-copy-acl.c: New file.
30954         * modules/acl-tests: New file, based on modules/copy-file-tests.
30955         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
30956         (Depends-on): Add acl-tests.
30957         (configure.ac): Remove checks.
30958         (Makefile.am): Don't create test-sameacls program here any more.
30959
30960 2008-06-01  Bruno Haible  <bruno@clisp.org>
30961
30962         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
30963         * tests/test-sameacls.c: Include progname.h.
30964         (main): Invoke set_program_name. Portability fixes for MacOS X,
30965         Solaris, HP-UX.
30966
30967 2008-06-01  Bruno Haible  <bruno@clisp.org>
30968
30969         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
30970         function.
30971         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
30972
30973 2008-06-01  Bruno Haible  <bruno@clisp.org>
30974
30975         * modules/rpmatch (Depends-on): Add strdup.
30976
30977 2008-06-01  Bruno Haible  <bruno@clisp.org>
30978
30979         * lib/pipe.c: Include unistd-safer.h.
30980         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
30981         * modules/pipe (Depends-on): Add unistd-safer.
30982
30983 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30984
30985         * modules/autobuild (configure.ac): Call AB_INIT.
30986
30987 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30988
30989         * tests/test-getaddrinfo.c: Don't print debug messages by default.
30990         Suggested by Bruno Haible <bruno@clisp.org>.
30991
30992 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30993
30994         * tests/test-base64.c: Cast size_t to unsigned long when invoking
30995         printf.  Use %lu instead of %d.  Reported by Bruno Haible
30996         <bruno@clisp.org>.
30997
30998 2008-05-29  Eric Blake  <ebb9@byu.net>
30999
31000         Prefer new POSIX 200x interfaces over futimesat.
31001         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
31002         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
31003         when available.
31004         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
31005
31006 2008-05-28  Bruno Haible  <bruno@clisp.org>
31007
31008         * modules/stpcpy (License): Change to LGPLv2+.
31009         Requested by David Lutterkort <dlutter@redhat.com>.
31010
31011 2008-05-27  Bruno Haible  <bruno@clisp.org>
31012
31013         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
31014         current mingw.
31015         Reported by Jose E. Marchesi <jemarch@gnu.org>.
31016
31017 2008-05-27  Bruno Haible  <bruno@clisp.org>
31018
31019         * modules/iconv_open (Link): New section, from module 'iconv'.
31020         * modules/striconv (Link): Likewise.
31021         * modules/striconveh (Link): Likewise.
31022         * modules/xstriconv (Link): Likewise.
31023         * modules/unicodeio (Link): Likewise.
31024         * modules/propername (Link): Likewise.
31025         Reported by Jim Meyering.
31026
31027 2008-05-26  Jim Meyering  <meyering@redhat.com>
31028
31029         sha256: do not artificially restrict buffer length to be < 2^32
31030         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
31031         uint32_t to size_t.
31032         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
31033         to match.
31034
31035         avoid unaligned access errors, e.g., on sparc
31036         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
31037         direct access through a possibly-unaligned uint64* pointer.
31038         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
31039         direct access through a possibly-unaligned uint32* pointer.
31040         Prompted by this patch from Tom "spot" Callaway:
31041         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
31042
31043         sha512.c: fix typo in comment
31044         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
31045
31046 2008-05-25  Bruno Haible  <bruno@clisp.org>
31047
31048         * lib/set-mode-acl.c: Renamed from lib/acl.c.
31049         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
31050         (Makefile.am): Update lib_SOURCES.
31051
31052 2008-05-25  Bruno Haible  <bruno@clisp.org>
31053
31054         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
31055
31056 2008-05-25  Jim Meyering  <meyering@redhat.com>
31057
31058         useless-if-before-free: freed expr may have white-space differences
31059         * build-aux/useless-if-before-free: Recognize cases in which the
31060         freed expression differs from the tested one in embedded white
31061         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
31062         $1 was used, so we can't make any regexp shy.  Improved tests now
31063         detect this.
31064
31065         useless-if-before-free: accept white space in the expression.
31066         * build-aux/useless-if-before-free: For now, any white space
31067         in the expression must be identical in the free argument.
31068
31069         useless-if-before-free: efficiency tweak
31070         * build-aux/useless-if-before-free: Make the expression-matching
31071         regexp "shy".
31072         Make the *outer* regexp shy, not the expr-matching one.
31073
31074         update code-in-comment to accept cast of free arg
31075         * build-aux/useless-if-before-free: Update regexp.
31076
31077 2008-05-25  Bruno Haible  <bruno@clisp.org>
31078
31079         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
31080         * modules/copy-file-tests (Files, Makefile.am): Update.
31081         * tests/test-copy-file.c (func_test_copy): Update.
31082
31083 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
31084
31085         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
31086
31087 2008-05-23  Bruno Haible  <bruno@clisp.org>
31088
31089         Improve support for ACLs on OSF/1.
31090         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
31091         Remove fallback for unknown flavors of ACLs.
31092
31093 2008-05-22  Bruno Haible  <bruno@clisp.org>
31094
31095         Add support for ACLs on OSF/1.
31096         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
31097         replacements.
31098         (acl_free_text): New macro fallback.
31099         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
31100         acl_free.
31101         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
31102         acl_free_text function. Require AC_C_INLINE.
31103
31104 2008-05-22  Bruno Haible  <bruno@clisp.org>
31105
31106         Make copy_acl work on MacOS X 10.5.
31107         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
31108         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
31109         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
31110         If MODE_INSIDE_ACL, don't assume that every system has the same text
31111         representation for ACLs as FreeBSD.
31112         * lib/copy-acl.c (copy_acl): Add support for platforms with
31113         !MODE_INSIDE_ACL.
31114         * lib/file-has-acl.c (file_has_acl): Likewise.
31115         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
31116         FreeBSD, MacOS X, or IRIX, respectively.
31117
31118 2008-05-22  Bruno Haible  <bruno@clisp.org>
31119
31120         * lib/acl.h: Don't include <sys/acl.h>.
31121         (GETACLCNT): Move fallback to lib/acl-internal.h.
31122         * lib/acl-internal.h: Include <sys/acl.h> here.
31123         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
31124
31125 2008-05-22  Bruno Haible  <bruno@clisp.org>
31126
31127         Split off copy_acl function to separate file.
31128         * lib/copy-acl.c: New file, extracted from lib/acl.c.
31129         * lib/acl.c (copy_acl): Moved function to separate file.
31130         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
31131         * modules/acl (Files): Add lib/copy-acl.c.
31132         (Makefiles.am): Augment lib_SOURCES.
31133
31134 2008-05-22  Bruno Haible  <bruno@clisp.org>
31135
31136         * modules/copy-file-tests: New file.
31137         * tests/test-copy-file.sh: New file.
31138         * tests/test-copy-file.c: New file.
31139         * tests/test-copy-file-sameacls.c: New file.
31140
31141 2008-05-22  Eric Blake  <ebb9@byu.net>
31142
31143         Avoid gcc warning.
31144         * tests/test-memcmp.c (main): Pass NULL indirectly.
31145
31146 2008-05-21  Bruno Haible  <bruno@clisp.org>
31147
31148         Add reference doc about ACLs.
31149         * doc/acl-resources.txt: New file.
31150         * doc/acl-cygwin.txt: New file.
31151
31152 2008-05-21  Bruno Haible  <bruno@clisp.org>
31153
31154         Avoid one more warning from gcc.
31155         * lib/vasnprintf.c (IF_LINT): Update comments.
31156         (VASNPRINTF): Use it also for the 'prefix' array initializer.
31157
31158 2008-05-21  Jim Meyering  <meyering@redhat.com>
31159
31160         avoid a warning from gcc
31161         * lib/vasnprintf.c (IF_LINT): Define.
31162         (scale10_round_decimal_long_double):
31163         Use it to avoid a "may be used uninitialized" warning.
31164         (scale10_round_decimal_double): Likewise.
31165
31166 2008-05-21  Simon Josefsson  <simon@josefsson.org>
31167
31168         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
31169         declared.
31170
31171 2008-05-20  Bruno Haible  <bruno@clisp.org>
31172
31173         * tests/test-memcmp.c (main): Test also the sign of the result. Test
31174         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
31175
31176 2008-05-20  Simon Josefsson  <simon@josefsson.org>
31177
31178         * modules/memcmp-tests: New file.
31179         * tests/test-memcmp.c: New file.
31180
31181 2008-05-19  Bruno Haible  <bruno@clisp.org>
31182
31183         * modules/propername (Notice, configure.ac): Put quoted "..." into
31184         --keyword option.
31185         * lib/propername.h: Update comments accordingly.
31186         Reported by Eric Blake.
31187
31188 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
31189
31190         * modules/getpass-gnu (Depends-on): Add fseeko.
31191
31192 2008-05-19  Simon Josefsson  <simon@josefsson.org>
31193
31194         * modules/base64-tests: New file.
31195
31196 2008-05-19  Bo Borgerson <gigabo@gmail.com>
31197
31198         * lib/base64.c (base64_decode_ctx): If a decode context structure
31199         was passed in use it to ignore newlines.  If a context structure
31200         was _not_ passed in, continue to treat newlines as garbage (this
31201         is the historical behavior).  Formerly base64_decode.
31202         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
31203         takes a decode context structure.
31204         * lib/base64.h (base64_decode): Macro for four-argument calls.
31205         (base64_decode_alloc): Likewise.
31206         * lib/base64.c (base64_decode_ctx): If a decode context structure
31207         was passed in use it to ignore newlines.  If a context structure
31208         was _not_ passed in, continue to treat newlines as garbage (this
31209         is the historical behavior).  Formerly base64_decode.
31210         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
31211         takes a decode context structure.
31212         * lib/base64.h (base64_decode): Macro for four-argument calls.
31213         (base64_decode_alloc): Likewise.
31214
31215 2008-05-19  Jim Meyering  <meyering@redhat.com>
31216
31217         avoid a warning from gcc
31218         * lib/trim.c (IF_LINT): Define.
31219         (trim2): Use it to avoid a "may be used uninitialized" warning.
31220
31221         Fix doc typo.
31222         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
31223
31224 2008-05-19  Bruno Haible  <bruno@clisp.org>
31225
31226         * doc/glibc-functions/getpass.texi: Document limits of other
31227         implementations.
31228
31229 2008-05-19  Simon Josefsson  <simon@josefsson.org>
31230             Bruno Haible <bruno@clisp.org>
31231
31232         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
31233
31234 2008-05-18  Bruno Haible  <bruno@clisp.org>
31235
31236         * modules/propername: New file, from GNU gettext.
31237         * lib/propername.h: New file, from GNU gettext.
31238         * lib/propername.c: New file, from GNU gettext.
31239         * MODULES.html.sh (Internationalization functions): Add propername.
31240
31241 2008-05-16  Jim Meyering  <meyering@redhat.com>
31242             Bruno Haible  <bruno@clisp.org>
31243
31244         Avoid some warnings from "gcc -Wshadow".
31245         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
31246
31247 2008-05-15  Eric Blake  <ebb9@byu.net>
31248
31249         Extend previous patch to cygwin 1.7.0.
31250         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
31251         fast implementation in cygwin >= 1.7.0.
31252         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31253         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31254
31255 2008-05-15  Bruno Haible  <bruno@clisp.org>
31256
31257         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
31258         implementation in glibc >= 2.9.
31259         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31260         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31261
31262 2008-05-15  Bruno Haible  <bruno@clisp.org>
31263
31264         * MODULES.html.sh (Internationalization functions): Remove linebreak.
31265         (Unicode string functions): Add unilbrk/*.
31266         Reported by Karl Berry.
31267
31268 2008-05-15  Eric Blake  <ebb9@byu.net>
31269
31270         Fix violation of <stdbool.h> replacement in regex.
31271         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
31272         * lib/regexec.c (re_search_internal): Likewise.
31273         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
31274
31275 2008-05-15  Jim Meyering  <meyering@redhat.com>
31276
31277         avoid distracting test output when git or cvs is not found
31278         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
31279         * tests/test-vc-list-files-git.sh: Likewise.
31280
31281 2008-05-15  Eric Blake  <ebb9@byu.net>
31282
31283         Glibc finally accepted the memmem speedup code, bugzilla #5514.
31284         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
31285         glibc version.
31286         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31287         * doc/posix-functions/strstr.texi (strstr): Likewise.
31288         * lib/str-two-way.h (MAX): Sychronize with glibc.
31289
31290 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
31291
31292         * lib/regcomp.c (optimize_utf8): Add a note on why we test
31293         opr.ctx_type.
31294         (calc_first): Initialize constraint field.
31295         (duplicate_node_closure): Use it instead of special casing ANCHORS.
31296         Fix grammar.
31297         (duplicate_node): Merge constraint field for all node types.
31298         (calc_eclosure_iter): Look at constraint field for all node types.
31299         * lib/regex_internal.c (create_cd_newstate): Don't look at
31300         opr.ctx_type.
31301
31302 2008-05-14  Bruno Haible  <bruno@clisp.org>
31303
31304         Help GCC to do better code generation.
31305         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
31306         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
31307         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
31308         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
31309         Declare with attribute 'malloc' if supported.
31310
31311 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
31312
31313         use "echo STR|wc -c" rather than unportable "expr length STR"
31314         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
31315         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
31316
31317 2008-05-14  Jim Meyering  <meyering@redhat.com>
31318
31319         use dd ibs=$n count=1 ... rather than less-portable head -c$n
31320         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
31321         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
31322         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
31323         via Collin Lasse.
31324
31325 2008-05-14  Eric Blake  <ebb9@byu.net>
31326
31327         Avoid quadratic growth in gl_LIBSOURCES.
31328         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
31329         Suggested by Bruno Haible.
31330
31331         Test xmemdup0.
31332         * modules/xmemdup0-tests: New file.
31333         * tests/test-xmemdup0.c: Likewise.
31334
31335 2008-05-13  Eric Blake  <ebb9@byu.net>
31336
31337         Split xmemdup0 into its own module.
31338         * modules/xmemdup0: New file.
31339         * lib/xmemdup0.h: Likewise.
31340         * lib/xmemdup0.c: Likewise.
31341         * MODULES.html.sh (Memory management functions): Add xmemdup0.
31342         * lib/xalloc.h (xmemdup0): Remove.
31343         * lib/xmalloc.c (xmemdup0): Likewise.
31344
31345 2008-05-13  Eric Blake  <ebb9@byu.net>
31346             Bruno Haible  <bruno@clisp.org>
31347
31348         Reduce number of forks required during autoconf.
31349         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
31350         and gl_LIBSOURCES_DIR.
31351         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
31352         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
31353         m4_syscmd per file.
31354         <m4_foreach_w>: Move...
31355         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
31356
31357 2008-05-13  Eric Blake  <ebb9@byu.net>
31358
31359         * gnulib-tool: Fix various comment typos.
31360
31361 2008-05-12  Bruno Haible  <bruno@clisp.org>
31362
31363         Tailor the linebreaking algorithm.
31364         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
31365
31366 2008-05-12  Bruno Haible  <bruno@clisp.org>
31367
31368         Update to Unicode 5.0.0.
31369         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31370         LBP_JV, LBP_JT. Redistribute values.
31371         (unilbrk_table): Change size.
31372         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
31373         Unicode TR#14 rev. 22.
31374         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31375         LBP_JV, LBP_JT. Redistribute values.
31376         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
31377         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
31378         Update.
31379         * lib/unilbrk/lbrkprop1.h: Regenerated.
31380         * lib/unilbrk/lbrkprop2.h: Regenerated.
31381         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
31382         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
31383         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
31384         Likewise.
31385         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
31386         Likewise.
31387         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
31388         result.
31389         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
31390         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
31391         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
31392         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
31393         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
31394         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
31395
31396 2008-05-11  Bruno Haible  <bruno@clisp.org>
31397
31398         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
31399
31400 2008-05-11  Bruno Haible  <bruno@clisp.org>
31401
31402         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
31403         * modules/unilbrk/gen-lbrk: New file.
31404
31405 2008-05-11  Bruno Haible  <bruno@clisp.org>
31406
31407         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
31408         * m4/sha512.m4 (gl_SHA512): Likewise.
31409
31410 2008-05-11  Jim Meyering  <meyering@redhat.com>
31411
31412         New modules: crypto/sha256, crypto/sha512 (from coreutils)
31413         * modules/crypto/sha256: New file.
31414         * modules/crypto/sha512: Likewise.
31415         * lib/sha256.c: Likewise.
31416         * lib/sha256.h: Likewise.
31417         * lib/sha512.c: Likewise.
31418         * lib/sha512.h: Likewise.
31419         * lib/u64.h: Likewise.
31420         * m4/sha256.m4: Likewise.
31421         * m4/sha512.m4: Likewise.
31422         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
31423
31424 2008-05-10  Bruno Haible  <bruno@clisp.org>
31425
31426         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
31427         (Input/Output <stdio.h>): Add xprintf.
31428         (Signal handling <signal.h>): Add strsignal.
31429         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
31430         (Core language properties): Add func.
31431         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
31432         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
31433         strings.
31434         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
31435         (Input/output): New section.
31436         (File system functions): Add openat-die, stat-macros.
31437         (Networking functions): Add sockets.
31438         (Unicode string functions): Add unictype/*.
31439         (Support for building libraries and executables): Add gperf.
31440         (Support for building documentation): Add agpl-3.0.
31441         (Misc): Add nocrash.
31442
31443 2008-05-10  Bruno Haible  <bruno@clisp.org>
31444
31445         * modules/unictype/gen-ctype: New file.
31446
31447 2008-05-10  Jim Meyering  <meyering@redhat.com>
31448
31449         Make chdir-safer.c more efficient on a system with no symlinks.
31450         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
31451         also if ELOOP is zero.  Suggested by Bruno Haible.
31452
31453         Make chdir-safer.c slightly safer.
31454         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
31455         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
31456
31457         Avoid compile failure on systems without ELOOP (like mingw).
31458         * lib/chdir-safer.c (ELOOP): Define if not already defined.
31459         Reported by Bruno Haible.
31460
31461 2008-05-10  Bruno Haible  <bruno@clisp.org>
31462
31463         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
31464         (is_utf8_encoding): Use a case-insensitive comparison.
31465         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
31466         streq.
31467
31468 2008-05-10  Bruno Haible  <bruno@clisp.org>
31469
31470         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
31471         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
31472         * lib/unilbrk/ulc-common.h (iconv_string_length,
31473         iconv_string_keeping_offsets): Remove declarations.
31474         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
31475         Don't include <iconv.h>, streq.h, xsize.h.
31476         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
31477         conversion.
31478         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
31479         <iconv.h>, streq.h, xsize.h.
31480         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
31481         conversion.
31482         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
31483         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
31484         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
31485         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
31486
31487 2008-05-10  Bruno Haible  <bruno@clisp.org>
31488
31489         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
31490         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
31491
31492         * modules/unilbrk/u32-width-linebreaks-tests: New file.
31493         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
31494
31495         * modules/unilbrk/u16-width-linebreaks-tests: New file.
31496         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
31497
31498         * modules/unilbrk/u8-width-linebreaks-tests: New file.
31499         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
31500
31501         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
31502         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
31503
31504         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
31505         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
31506
31507         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
31508         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
31509
31510         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
31511         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
31512
31513 2008-05-10  Bruno Haible  <bruno@clisp.org>
31514
31515         Split up 'linebreak' module.
31516         * lib/unilbrk.h: New file, based on lib/linebreak.h.
31517         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
31518         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
31519         modifications.
31520         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
31521         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
31522         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
31523         lib/linebreak.c.
31524         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
31525         lib/linebreak.c.
31526         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
31527         lib/linebreak.c.
31528         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
31529         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
31530         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
31531         lib/linebreak.c.
31532         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
31533         lib/linebreak.c.
31534         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
31535         lib/linebreak.c.
31536         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
31537         lib/linebreak.c.
31538         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
31539         lib/linebreak.c.
31540         * modules/unilbrk/base: New file.
31541         * modules/unilbrk/tables: New file.
31542         * modules/unilbrk/u8-possible-linebreaks: New file.
31543         * modules/unilbrk/u16-possible-linebreaks: New file.
31544         * modules/unilbrk/u32-possible-linebreaks: New file.
31545         * modules/unilbrk/ulc-common: New file.
31546         * modules/unilbrk/ulc-possible-linebreaks: New file.
31547         * modules/unilbrk/u8-width-linebreaks: New file.
31548         * modules/unilbrk/u16-width-linebreaks: New file.
31549         * modules/unilbrk/u32-width-linebreaks: New file.
31550         * modules/unilbrk/ulc-width-linebreaks: New file.
31551         * lib/linebreak.h: Remove file.
31552         * lib/linebreak.c: Remove file.
31553         * m4/linebreak.m4: Remove file.
31554         * modules/linebreak: Remove file.
31555         * NEWS: Mention the changes.
31556
31557 2008-05-09  Eric Blake  <ebb9@byu.net>
31558
31559         Add xmemdup0.
31560         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
31561         implementation.
31562         * lib/xmalloc.c (xmemdup0): New C implementation.
31563
31564 2008-05-08  Bruno Haible  <bruno@clisp.org>
31565
31566         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
31567
31568 2008-05-07  Eric Blake  <ebb9@byu.net>
31569
31570         Support cross-compilation of <wctype.h>.
31571         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
31572         AC_CACHE_CHECK.
31573
31574 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
31575
31576         * build-aux/vc-list-files: Add support for bzr.
31577
31578 2008-05-03  Jim Meyering  <meyering@redhat.com>
31579
31580         avoid failed assertion with tight malloc
31581         * tests/test-getndelim2.c: Correct an off-by-one assertion.
31582
31583 2008-05-03  Simon Josefsson  <simon@josefsson.org>
31584
31585         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
31586         are needed from arpa/inet.h.
31587         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
31588         Reported by Bruno Haible.
31589
31590 2008-05-02  Jim Meyering  <meyering@redhat.com>
31591
31592         avoid compilation error on FreeBSD 6
31593         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
31594
31595 2008-05-01  Jim Meyering  <meyering@redhat.com>
31596
31597         useless-if-before-free: correct --help's exit status description
31598         * build-aux/useless-if-before-free (usage): Like grep, exit 0
31599         for one or more matches, etc.  Reported by Bruno Haible.
31600
31601         vc-list-files: make the stand-alone gnulib test work
31602         * modules/vc-list-files-tests (configure.ac):
31603         Define and AC_SUBST abs_aux_dir.
31604         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
31605         $(abs_top_srcdir) to each script and having each of them
31606         duplicate the work of setting PATH, set PATH here, using
31607         the new variable, abs_aux_dir instead.
31608         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
31609         * tests/test-vc-list-files-git.sh: Likewise.
31610         Reported by Bruno Haible.
31611
31612 2008-05-01  Bruno Haible  <bruno@clisp.org>
31613
31614         * lib/getndelim2.c (getndelim2): Fix newsize computation during
31615         reallocation. Rename 'done' to 'found_delimiter'.
31616
31617 2008-05-01  Jim Meyering  <meyering@redhat.com>
31618
31619         vc-list-files: accommodate /bin/sh like the one from Solaris 10
31620         * build-aux/vc-list-files: Use `...`, not $(...).
31621
31622 2008-04-30  Jim Meyering  <meyering@redhat.com>
31623
31624         add tests for vc-list-files
31625         * modules/vc-list-files-tests: New module.
31626         * tests/test-vc-list-files-cvs.sh: New file.
31627         * tests/test-vc-list-files-git.sh: New file.
31628
31629         avoid a warning from gcc
31630         * lib/getndelim2.c (IF_LINT): Define.
31631         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
31632
31633         vc-list-files: work properly with build-aux/cvsu, too
31634         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
31635         to all cvs-based clauses.
31636
31637         vc-list-files: work properly in the CVS+awk case, too
31638         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
31639
31640         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
31641         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
31642         take more than one file argument, so .  Add quotes, just in case $dir
31643         ever contains a shell meta-character.  Prompted by Soren Hansen in
31644         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
31645
31646 2008-04-29  Eric Blake  <ebb9@byu.net>
31647
31648         Optimize getndelim2 to use block operations when possible.
31649         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
31650         freadseek, and memchr2.
31651         * lib/getndelim2.c (getndelim2): Use them for block reads.
31652
31653 2008-04-29  Bruno Haible  <bruno@clisp.org>
31654
31655         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
31656         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31657         * modules/inet_ntop (Depends-on): Add extensions.
31658         * modules/inet_pton (Depends-on): Likewise.
31659         Reported by Simon Josefsson.
31660
31661 2008-04-29  Jim Meyering  <meyering@redhat.com>
31662
31663         When the is more than one match in a block, match all of them.
31664         * build-aux/useless-if-before-free: Iterate through each block
31665         until there are no more matches.
31666
31667         Fix broken useless-if-before-free script.
31668         * build-aux/useless-if-before-free: Fix typo: missing "?" after
31669         the expression to match cast of argument to free-like function.
31670
31671 2008-04-29  Eric Blake  <ebb9@byu.net>
31672
31673         Use new header.
31674         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
31675
31676 2008-04-29  Jim Meyering  <meyering@redhat.com>
31677
31678         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
31679         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
31680         by gnulib to exist and to declare e.g., inet_ntop.
31681         Don't include "inet_ntop.h", now removed.
31682
31683         * m4/arpa_inet_h.m4: Remove trailing blanks.
31684
31685 2008-04-29  Eric Blake  <ebb9@byu.net>
31686
31687         Silence valgrind on safe reads beyond potential array bounds.
31688         * lib/rawmemchr.valgrind: New file.
31689         * lib/strchrnul.valgrind: Likewise.
31690         * modules/rawmemchr (Files): Distribute new file.
31691         * modules/strchrnul (Files): Likewise.
31692         Suggested by Bruno Haible.
31693
31694 2008-04-29  Bruno Haible  <bruno@clisp.org>
31695
31696         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
31697         (inet_ntop, inet_pton): Change portability warning's wording.
31698         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
31699         Invoke gl_CHECK_NEXT_HEADERS.
31700         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
31701         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
31702         set ARPA_INET_H.
31703         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31704         * modules/arpa_inet (Description): No longer only for systems that
31705         lack it.
31706         (Depends-on): Add include_next.
31707         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
31708         HAVE_ARPA_INET_H.
31709
31710 2008-04-29  Jim Meyering  <meyering@redhat.com>
31711
31712         * modules/mkdir (License): Re-license as LGPLv2+.
31713
31714 2008-04-29  Bruno Haible  <bruno@clisp.org>
31715
31716         * modules/rawmemchr (Maintainer): Set to Eric.
31717         * modules/strchrnul (Maintainer): Likewise.
31718
31719 2008-04-29  Simon Josefsson  <simon@josefsson.org>
31720
31721         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
31722         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
31723
31724         * modules/arpa_inet (arpa/inet.h): Use them.
31725
31726 2008-04-28  Eric Blake  <ebb9@byu.net>
31727
31728         Test getndelim2.
31729         * modules/getndelim2-tests: New file.
31730         * tests/test-getndelim2.c: Likewise.
31731         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
31732         stream.
31733         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
31734
31735         * MODULES.html.sh: Document new module.
31736
31737 2008-04-20  Bruno Haible  <bruno@clisp.org>
31738
31739         * lib/c-stack.c (die): Use raise.
31740         * modules/c-stack (Depends-on): Add raise.
31741
31742 2008-04-28  Bruno Haible  <bruno@clisp.org>
31743
31744         Expect rpmatch to be declared.
31745         * lib/yesno.c (rpmatch): Remove declaration.
31746
31747         Declare rpmatch.
31748         * lib/stdlib.in.h (rpmatch): New declaration.
31749         * lib/rpmatch.c: Include <stdlib.h> first.
31750         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
31751         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
31752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
31753         HAVE_RPMATCH.
31754         * modules/rpmatch (Depends-on): Add stdlib, extensions.
31755         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31756         (Include): Set to <stdlib.h>.
31757         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
31758         HAVE_RPMATCH.
31759         * NEWS: Document the change.
31760
31761 2008-04-28  Bruno Haible  <bruno@clisp.org>
31762
31763         Change rpmatch to use nl_langinfo when appropriate.
31764         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
31765         (N_): New macro.
31766         (localized_pattern): New function/macro.
31767         (try): Remove match, nomatch arguments. Copy the pattern into safe
31768         memory before caching it.
31769         (rpmatch): Use localized_pattern. Add translator comments.
31770         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
31771         Suggested by Eric Blake.
31772         * modules/rpmatch (Depends-on): Add stdbool.
31773
31774 2008-04-28  Eric Blake  <ebb9@byu.net>
31775
31776         Add rawmemchr module, matching glibc.
31777         * modules/string (Makefile.am): New indicator.
31778         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
31779         * lib/string.in.h (rawmemchr): Declare when appropriate.
31780         * modules/rawmemchr: New file.
31781         * m4/rawmemchr.m4: Likewise.
31782         * lib/rawmemchr.c: Likewise.
31783         * modules/rawmemchr-tests: Likewise.
31784         * tests/test-rawmemchr.c: Likewise.
31785         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
31786         module.
31787         * modules/strchrnul (Depends-on): Add rawmemchr.
31788         * lib/strchrnul.c (strchrnul): Optimize a corner case.
31789
31790         Whitespace cleanup.
31791         * tests/test-strchrnul.c: Reindent.
31792         * lib/strchrnul.c: Likewise.
31793
31794         Optimize and test strchrnul.
31795         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
31796         * modules/strchrnul-tests: New file.
31797         * tests/test-strchrnul.c: Likewise.
31798
31799         Remove intprops dependency.
31800         * modules/memchr (Depends-on): Remove intprops.
31801         * modules/memrchr (Depends-on): Likewise.
31802         * modules/memchr2 (Depends-on): Likewise.
31803         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
31804         * lib/memrchr.c (__memrchr): Likewise.
31805         * lib/memrchr2.c (memchr2): Likewise.
31806         Reported by Simon Josefsson.
31807
31808 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31809
31810         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
31811         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31812
31813 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31814
31815         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
31816
31817         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
31818
31819         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
31820
31821         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
31822         declarations.
31823         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
31824
31825         * m4/inet_pton.m4: Don't check for header files.
31826
31827         * m4/inet_ntop.m4: Don't check for header files.
31828
31829 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31830
31831         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
31832         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
31833         trigger for cygwin).
31834         Reported by Bruno Haible  <bruno@clisp.org>.
31835
31836 2008-04-28  Bruno Haible  <bruno@clisp.org>
31837
31838         * doc/posix-functions/strdup.texi: Mention mingw problem.
31839
31840 2008-04-27  Bruno Haible  <bruno@clisp.org>
31841
31842         * modules/stat-time-tests (Depends-on): Add sleep.
31843         * tests/test-stat-time.c (force_unlink): New function.
31844         (cleanup): Use it.
31845         (test_mtime): Remove the ctime related tests.
31846         (test_ctime): New function, containing the ctime related tests.
31847         (main): Call test_ctime, except on native Windows platforms.
31848
31849 2008-04-27  Bruno Haible  <bruno@clisp.org>
31850
31851         * lib/rpmatch.c (rpmatch): Add some comments.
31852         Reported by James Youngman <jay@gnu.org>.
31853
31854 2008-04-27  Bruno Haible  <bruno@clisp.org>
31855
31856         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
31857         quiet NaNs.
31858
31859 2008-04-27  Bruno Haible  <bruno@clisp.org>
31860
31861         Make test-yesno.sh work on mingw.
31862         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
31863         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
31864         (main): Set stdin to binary mode.
31865         * modules/yesno-tests (Depends-on): Add binary-io.
31866
31867 2008-04-27  Bruno Haible  <bruno@clisp.org>
31868
31869         Fix 'isfinite' on x86, x86_64, ia64 platforms.
31870         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
31871         argument that lie outside the IEEE 854 domain.
31872         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
31873         (gl_ISFINITE): Use it.
31874         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
31875
31876 2008-04-27  Bruno Haible  <bruno@clisp.org>
31877
31878         Allow local renaming in config.h.
31879         * lib/memrchr.c (memrchr): Don't undefine outside libc.
31880
31881 2008-04-27  Bruno Haible  <bruno@clisp.org>
31882
31883         * lib/memchr.c (__memchr): Change type of 'i'.
31884         * lib/memchr2.c (memchr2): Likewise.
31885
31886 2008-04-26  Eric Blake  <ebb9@byu.net>
31887         and Bruno Haible  <bruno@clisp.org>
31888
31889         Optimize and test memrchr.
31890         * modules/memrchr (Depends-on): Add intprops.
31891         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
31892         * modules/memrchr-tests: New file.
31893         * tests/test-memrchr.c: New file.
31894
31895 2008-04-26  Bruno Haible  <bruno@clisp.org>
31896
31897         Add tentative support for DragonFly BSD.
31898         * lib/stdio-impl.h: Add macros for DragonFly BSD.
31899         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
31900         fp.
31901         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31902         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
31903         * lib/fpurge.c (fpurge): Likewise.
31904         * lib/freadable.c (freaadable): Likewise.
31905         * lib/freadahead.c (freadahead): Likewise.
31906         * lib/freading.c (freading): Likewise.
31907         * lib/freadptr.c (freadptr): Likewise.
31908         * lib/freadseek.c (freadptrinc): Likewise.
31909         * lib/fseeko.c (fseeko): Likewise.
31910         * lib/fseterr.c (fseterr): Likewise.
31911         * lib/fwritable.c (fwritable): Likewise.
31912         * lib/fwriting.c (fwriting): Likewise.
31913
31914 2008-04-26  Bruno Haible  <bruno@clisp.org>
31915
31916         * lib/stdio-impl.h: New file.
31917         * lib/fbufmode.c: Include stdio-impl.h.
31918         (fbufmode): Use fp_, remove redundant #defines.
31919         * lib/fflush.c: Include stdio-impl.h.
31920         (clear_ungetc_buffer): Remove redundant #defines.
31921         * lib/fpurge.c: Include stdio-impl.h.
31922         (fpurge): Remove redundant #defines.
31923         * lib/freadable.c: Include stdio-impl.h.
31924         (freadable): Remove redundant #defines.
31925         * lib/freadahead.c: Include stdio-impl.h.
31926         (freadahead): Remove redundant #defines.
31927         * lib/freading.c: Include stdio-impl.h.
31928         (freading): Remove redundant #defines.
31929         * lib/freadptr.c: Include stdio-impl.h.
31930         (freadptr): Remove redundant #defines.
31931         * lib/freadseek.c: Include stdio-impl.h.
31932         (freadptrinc): Remove redundant #defines.
31933         * lib/fseeko.c: Include stdio-impl.h.
31934         (rpl_fseeko): Remove redundant #defines.
31935         * lib/fseterr.c: Include stdio-impl.h.
31936         (fseterr): Remove redundant #defines.
31937         * lib/fwritable.c: Include stdio-impl.h.
31938         (fwritable: Remove redundant #defines.
31939         * lib/fwriting.c: Include stdio-impl.h.
31940         (fwriting): Remove redundant #defines.
31941         * modules/fbufmode (Files): Add lib/stdio-impl.h.
31942         * modules/fflush (Files): Likewise.
31943         * modules/fpurge (Files): Likewise.
31944         * modules/freadable (Files): Likewise.
31945         * modules/freadahead (Files): Likewise.
31946         * modules/freading (Files): Likewise.
31947         * modules/freadptr (Files): Likewise.
31948         * modules/freadseek (Files): Likewise.
31949         * modules/fseeko (Files): Likewise.
31950         * modules/fseterr (Files): Likewise.
31951         * modules/fwritable (Files): Likewise.
31952         * modules/fwriting (Files): Likewise.
31953
31954 2008-04-26  Bruno Haible  <bruno@clisp.org>
31955
31956         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31957         restore_seek_optimization, update_fpos_cache): New functions, extracted
31958         from rpl_fflush.
31959         (rpl_fflush): Use them.
31960         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
31961         (gl_REPLACE_FFLUSH): Use it.
31962
31963 2008-04-26  Bruno Haible  <bruno@clisp.org>
31964
31965         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
31966         on Solaris.
31967         * tests/test-xstrtoimax.sh: Likewise.
31968         * tests/test-xstrtoumax.sh: Likewise.
31969         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31970
31971 2008-04-26  Bruno Haible  <bruno@clisp.org>
31972
31973         * modules/memchr-tests: New file.
31974         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
31975
31976 2008-04-26  Eric Blake  <ebb9@byu.net>
31977             Bruno Haible  <bruno@clisp.org>
31978
31979         * lib/memchr.c: Include intprops.h.
31980         (__memchr): Optimize parallel detection of matching bytes. Rename local
31981         variables. Add explanatory comments.
31982
31983 2008-04-26  Bruno Haible  <bruno@clisp.org>
31984
31985         Fix module 'memchr', broken since 2000-10-28.
31986         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
31987
31988 2008-04-26  Bruno Haible  <bruno@clisp.org>
31989
31990         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
31991         comments.
31992
31993 2008-04-25  Eric Blake  <ebb9@byu.net>
31994
31995         Use native fstatat on cygwin 1.7.0.
31996         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
31997         first.
31998
31999 2008-04-23  Eric Blake  <ebb9@byu.net>
32000
32001         Improve memchr2 performance.
32002         * lib/memchr2.c (memchr2): Further optimize parallel detection of
32003         NUL bytes.
32004         * modules/memchr2 (Depends-on): Use intprops.h.
32005
32006 2008-04-23  Simon Josefsson  <simon@josefsson.org>
32007
32008         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
32009         an inline function instead of a CPP macro.  Patch by Ben Pfaff
32010         <blp@cs.stanford.edu>.
32011
32012 2008-04-23  Simon Josefsson  <simon@josefsson.org>
32013
32014         * lib/arpa_inet.in.h: New file.
32015
32016         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
32017         (Makefile.am): Sed in substitute header file.
32018
32019         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
32020         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
32021
32022         * modules/inet_ntop (configure.ac): Use
32023         gl_ARPA_INET_MODULE_INDICATOR.
32024
32025         * modules/inet_pton (configure.ac): Use
32026         gl_ARPA_INET_MODULE_INDICATOR.
32027
32028 2008-04-22  Jim Meyering  <meyering@redhat.com>
32029
32030         * modules/verify (License): Re-license as LGPLv2+.
32031
32032 2008-04-22  Simon Josefsson  <simon@josefsson.org>
32033
32034         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
32035         parameter to void* as per POSIX standard (MinGW uses char*).
32036
32037 2008-04-21  Bruno Haible  <bruno@clisp.org>
32038
32039         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
32040         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
32041         Define to replacements if REPLACE_ISWCNTRL is 1.
32042         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
32043         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
32044         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
32045         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
32046         what it fixes.
32047         * doc/posix-functions/iswalpha.texi: Likewise.
32048         * doc/posix-functions/iswblank.texi: Likewise.
32049         * doc/posix-functions/iswcntrl.texi: Likewise.
32050         * doc/posix-functions/iswdigit.texi: Likewise.
32051         * doc/posix-functions/iswgraph.texi: Likewise.
32052         * doc/posix-functions/iswlower.texi: Likewise.
32053         * doc/posix-functions/iswprint.texi: Likewise.
32054         * doc/posix-functions/iswpunct.texi: Likewise.
32055         * doc/posix-functions/iswspace.texi: Likewise.
32056         * doc/posix-functions/iswupper.texi: Likewise.
32057         * doc/posix-functions/iswxdigit.texi: Likewise.
32058         Reported by Alain Guibert.
32059
32060 2008-04-21  Bruno Haible  <bruno@clisp.org>
32061
32062         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
32063         Patch by Alain Guibert.
32064
32065 2008-04-21  Bruno Haible  <bruno@clisp.org>
32066
32067         Fix test failures on mingw.
32068         * tests/test-xstrtol.c (print_no_progname): New function.
32069         (main): Install it in error_print_progname hook.
32070         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
32071         * tests/test-xstrtoimax.sh: Likewise.
32072         * tests/test-xstrtoumax.sh: Likewise.
32073
32074 2008-04-21  Bruno Haible  <bruno@clisp.org>
32075
32076         Fix test failure on mingw.
32077         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
32078
32079 2008-04-21  Bruno Haible  <bruno@clisp.org>
32080
32081         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
32082         Actually assign a value.
32083
32084 2008-04-20  Bruno Haible  <bruno@clisp.org>
32085
32086         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
32087         take 2.
32088         * lib/canonicalize.c (canonicalize_file_name): Elide if the
32089         'canonicalize-lgpl' module is also used.
32090         * lib/canonicalize-lgpl.c: Undo last change.
32091         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
32092
32093 2008-04-20  Bruno Haible  <bruno@clisp.org>
32094
32095         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
32096         config.h. Provide _mkdir based fallback for mingw.
32097         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
32098         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
32099         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
32100         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
32101         rather than defining mkdir in config.h.
32102         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
32103         (gl_SYS_STAT_H_DEFAULTS): New macro.
32104         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
32105         HAVE_IO_H any more.
32106         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
32107         HAVE_DECL_MKDIR and HAVE_IO_H.
32108
32109 2008-04-20  Bruno Haible  <bruno@clisp.org>
32110
32111         * lib/isapipe.c: Port to native Windows platforms.
32112
32113 2008-04-20  Bruno Haible  <bruno@clisp.org>
32114
32115         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
32116
32117 2008-04-21  Eric Blake  <ebb9@byu.net>
32118
32119         Work around preprocessors that don't handle UINTMAX_MAX.
32120         * lib/memchr2.c (memchr2): Avoid embedded #if.
32121         Reported by Alain Guibert, fix suggested by Bruno Haible.
32122
32123 2008-04-21  Simon Josefsson  <simon@josefsson.org>
32124
32125         * doc/posix-functions/strftime.texi (strftime): Explain better
32126         Windows incompatibility.  Suggested by Micah Cowan
32127         <micah@cowan.name>.
32128
32129 2008-04-20  Bruno Haible  <bruno@clisp.org>
32130
32131         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
32132         unistr/u8-mblen.
32133
32134 2008-04-20  Bruno Haible  <bruno@clisp.org>
32135
32136         Fix test failure on platforms with non-GNU iconv.
32137         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
32138         (U_TO_U8): Use it, rather than u16_to_u8.
32139         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
32140         units at the end of the input string.
32141         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
32142
32143 2008-04-20  Bruno Haible  <bruno@clisp.org>
32144
32145         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
32146         when the resulting length is 0.
32147         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
32148
32149 2008-04-20  Bruno Haible  <bruno@clisp.org>
32150
32151         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
32152         works.
32153         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
32154
32155 2008-04-20  Bruno Haible  <bruno@clisp.org>
32156
32157         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
32158         * modules/tsearch-tests (configure.ac): Test for initstate function.
32159
32160 2008-04-20  Bruno Haible  <bruno@clisp.org>
32161
32162         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
32163         for nlink_t if missing.
32164         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
32165
32166 2008-04-19  Bruno Haible  <bruno@clisp.org>
32167
32168         Work around snprintf bug on Linux libc5.
32169         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
32170         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32171         gl_SNPRINTF_SIZE1.
32172         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32173         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
32174         that test failed.
32175         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
32176         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
32177         * modules/snprintf (Files): Add m4/printf.m4.
32178         * modules/vsnprintf (Files): Likewise.
32179         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
32180         * doc/posix-functions/vsnprintf.texi: Likewise.
32181
32182 2008-04-19  Bruno Haible  <bruno@clisp.org>
32183
32184         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
32185         from 0.0058 to less than 10^-7.
32186
32187 2008-04-19  Bruno Haible  <bruno@clisp.org>
32188
32189         Fix rounding when a precision is given.
32190         * lib/vasnprintf.c (is_borderline): New function.
32191         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
32192         9...9x.
32193         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
32194         %e, %g.
32195         * tests/test-vasprintf-posix.c (test_function): Likewise.
32196         * tests/test-snprintf-posix.h (test_function): Likewise.
32197         * tests/test-sprintf-posix.h (test_function): Likewise.
32198         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
32199         * tests/test-printf-posix.h (test_function): Likewise.
32200         * tests/test-printf-posix.output: Update.
32201         Reported by John Darrington <john@darrington.wattle.id.au> via
32202         Ben Pfaff <blp@cs.stanford.edu>.
32203
32204 2008-04-18  Simon Josefsson  <simon@josefsson.org>
32205
32206         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
32207         Suggested by Bruno Haible <bruno@clisp.org>.
32208
32209 2008-04-17  Bruno Haible  <bruno@clisp.org>
32210
32211         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
32212         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
32213         implementation.
32214         Patch by Bruce Merry <bmerry@gmail.com>.
32215
32216 2008-04-17  Simon Josefsson  <simon@josefsson.org>
32217
32218         * doc/posix-functions/strftime.texi (strftime): Mention that %e
32219         doesn't work under Windows.
32220
32221 2008-04-16  Bruno Haible  <bruno@clisp.org>
32222
32223         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
32224         New macros.
32225         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
32226         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
32227         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
32228         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
32229         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
32230         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
32231         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
32232         macros.
32233         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
32234         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
32235         Northern Sotho, Uighur.
32236
32237 2008-04-16  Bruno Haible  <bruno@clisp.org>
32238
32239         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
32240         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
32241         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
32242         Reported by Daniel Bergström <daniel@octocode.com>.
32243
32244 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
32245             Bruno Haible  <bruno@clisp.org>
32246
32247         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
32248         function.
32249         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
32250         New functions, mostly extracted from gl_locale_name_default.
32251         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
32252
32253 2008-04-16  Eric Blake  <ebb9@byu.net>
32254
32255         Adjust strtod detection to catch glibc 2.7 bug.
32256         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
32257         Reported by John Gatewood Ham.
32258
32259 2008-04-16  Bruno Haible  <bruno@clisp.org>
32260
32261         Add tentative support for Linux libc5.
32262         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
32263         * lib/fpurge.c (fpurge): Likewise.
32264         * lib/freadable.c (freadable): Likewise.
32265         * lib/freadahead.c (freadahead): Likewise.
32266         * lib/freading.c (freading): Likewise.
32267         * lib/freadptr.c (freadptr): Likewise.
32268         * lib/freadseek.c (freadptrinc): Likewise.
32269         * lib/fseeko.c (rpl_fseeko): Likewise.
32270         * lib/fseterr.c (fseterr): Likewise.
32271         * lib/fwritable.c (fwritable): Likewise.
32272         * lib/fwriting.c (fwriting): Likewise.
32273         Reported by Alain Guibert <alguibert+bts@free.fr>.
32274
32275 2008-04-15  Bruno Haible  <bruno@clisp.org>
32276
32277         * modules/mathl (configure.ac): Define module indicator.
32278
32279 2008-04-15  Bruno Haible  <bruno@clisp.org>
32280
32281         * lib/logl.c (logl): Remove unused variables.
32282
32283 2008-04-15  Bruno Haible  <bruno@clisp.org>
32284
32285         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
32286         fails.
32287
32288 2008-04-15  Bruno Haible  <bruno@clisp.org>
32289
32290         * lib/trim.c (trim2): Fix argument of isspace() macro.
32291
32292 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
32293
32294         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
32295         to 0.
32296         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
32297
32298 2008-04-14  Bruno Haible  <bruno@clisp.org>
32299
32300         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
32301         AC_LANG_PROGRAM argument.
32302         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
32303         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
32304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32305         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32306         * m4/math_h.m4 (gl_MATH_H): Likewise.
32307         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
32308         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32309         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32310         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
32311         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
32312         * m4/regex.m4 (gl_REGEX): Likewise.
32313         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
32314         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
32315         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32316         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
32317         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32318         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32319         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32320         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32321
32322 2008-04-14  Jim Meyering  <meyering@redhat.com>
32323
32324         test-strtod: fix typos: s/abs/fabs/
32325         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
32326
32327 2008-04-13  Bruno Haible  <bruno@clisp.org>
32328
32329         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
32330         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
32331         module is also used and while not building the reloc-wrapper.
32332
32333 2008-04-13  Bruno Haible  <bruno@clisp.org>
32334
32335         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
32336
32337 2008-04-13  Bruno Haible  <bruno@clisp.org>
32338
32339         Fix AIX compilation failure introduced on 2008-04-02.
32340         * tests/test-frexp.c (exp): Undefine before redefining.
32341         * tests/test-frexpl.c (exp): Likewise.
32342
32343 2008-04-13  Bruno Haible  <bruno@clisp.org>
32344
32345         Work around a HP-UX stdio bug.
32346         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
32347         * tests/test-ftello.c (main): Likewise.
32348         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
32349         * doc/posix-functions/ftello.texi: Likewise.
32350
32351 2008-04-13  Bruno Haible  <bruno@clisp.org>
32352
32353         Make test-signbit pass on HP-UX/hppa.
32354         * tests/test-signbit.c (minus_zerol): New variable.
32355         (test_signbitl): Use it.
32356
32357 2008-04-13  Bruno Haible  <bruno@clisp.org>
32358
32359         Make truncl work on OSF/1 4.0.
32360         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
32361         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32362         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
32364         HAVE_DECL_TRUNCL.
32365         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
32366         HAVE_DECL_TRUNCL.
32367         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
32368
32369 2008-04-13  Bruno Haible  <bruno@clisp.org>
32370
32371         * lib/unictype.h: Remove trailing comma from enumeration definitions.
32372
32373 2008-04-13  Bruno Haible  <bruno@clisp.org>
32374
32375         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
32376         expression, so as to avoid HP-UX 11 cc compiler bug.
32377
32378 2008-04-13  Bruno Haible  <bruno@clisp.org>
32379
32380         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
32381
32382 2008-04-13  Bruno Haible  <bruno@clisp.org>
32383
32384         * lib/git-merge-changelog.c: Remove empty declaration outside of
32385         functions.
32386
32387 2008-04-13  Bruno Haible  <bruno@clisp.org>
32388
32389         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
32390
32391 2008-04-13  Bruno Haible  <bruno@clisp.org>
32392
32393         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
32394         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
32395         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
32396         also if it exists but lacks definitions of the SHUT_* macros.
32397         * modules/sys_socket (Description): Update.
32398         Reported by Elbert Pol <e.pol@chello.nl>.
32399
32400 2008-04-13  Bruno Haible  <bruno@clisp.org>
32401
32402         * lib/localcharset.c (OS2): Don't redefine if already defined.
32403         Reported by Elbert Pol <e.pol@chello.nl>.
32404
32405 2008-04-13  Bruno Haible  <bruno@clisp.org>
32406
32407         * lib/binary-io.h [__EMX__]: Include <io.h>.
32408         Reported by Elbert Pol <e.pol@chello.nl>.
32409
32410 2008-04-12  Bruno Haible  <bruno@clisp.org>
32411
32412         * lib/fpucw.h: Enable the definitions also for x86_64.
32413         Needed for NetBSD/x86_64.
32414         Reported by Thomas Klausner <tk@giga.or.at>.
32415
32416 2008-04-12  Bruno Haible  <bruno@clisp.org>
32417
32418         * tests/test-strtod.c: Include isnand.h.
32419         (main): Use isnand instead of isnan.
32420         Reported by Jim Meyering.
32421
32422 2008-04-12  Bruno Haible  <bruno@clisp.org>
32423
32424         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
32425         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32426
32427 2008-04-12  Jim Meyering  <meyering@redhat.com>
32428
32429         * m4/math_h.m4 (gl_MATH_H): Fix typos.
32430
32431 2008-04-12  Bruno Haible  <bruno@clisp.org>
32432
32433         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
32434         Reported by Elbert Pol <e.pol@chello.nl>.
32435
32436 2008-04-12  Eric Blake  <ebb9@byu.net>
32437
32438         Work around Solaris 10 math.h bug.
32439         * m4/math_h.m4 (gl_MATH_H): Check for bug.
32440         (gl_MATH_H_DEFAULTS): Set up default.
32441         * modules/math (Makefile.am): Replace new indicators.
32442         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
32443         * tests/test-math.c (main): Test this.
32444         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
32445         * doc/posix-headers/math.texi (math.h): Mention bug.
32446         Reported by Nelson H. F. Beebe and Jim Meyering.
32447
32448 2008-04-11  Bruno Haible  <bruno@clisp.org>
32449
32450         Adapt to future versions of Apple GCC.
32451         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
32452         Reported by Peter O'Gorman <peter@pogma.com>.
32453
32454 2008-04-11  Bruno Haible  <bruno@clisp.org>
32455
32456         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
32457
32458 2008-04-11  Bruno Haible  <bruno@clisp.org>
32459
32460         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
32461
32462         * modules/getaddrinfo-tests (Makefile.am): Define
32463         test_getaddrinfo_LDADD.
32464
32465 2008-04-11  Bruno Haible  <bruno@clisp.org>
32466
32467         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
32468         (init): Fix syntax error.
32469         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
32470         is declared.
32471
32472 2008-04-11  Bruno Haible  <bruno@clisp.org>
32473
32474         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
32475         * modules/glob (Depends-on): Add stdbool.
32476
32477 2008-04-11  Bruno Haible  <bruno@clisp.org>
32478
32479         * lib/trim.c: Include <string.h>.
32480
32481 2008-04-11  Eric Blake  <ebb9@byu.net>
32482
32483         Avoid compile failure on OS/2.
32484         * lib/regex_internal.h (internal_function): Disable optimization
32485         on OS/2 (__EMX__), where it caused compiler error.
32486         Reported by Elbert Pol.
32487
32488 2008-04-11  Bruno Haible  <bruno@clisp.org>
32489
32490         Flush the standard error stream before aborting. Needed on mingw.
32491         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
32492         * tests/test-array_list.c (ASSERT): Likewise.
32493         * tests/test-array_oset.c (ASSERT): Likewise.
32494         * tests/test-avltree_list.c (ASSERT): Likewise.
32495         * tests/test-avltree_oset.c (ASSERT): Likewise.
32496         * tests/test-avltreehash_list.c (ASSERT): Likewise.
32497         * tests/test-binary-io.c (ASSERT): Likewise.
32498         * tests/test-byteswap.c (ASSERT): Likewise.
32499         * tests/test-c-ctype.c (ASSERT): Likewise.
32500         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
32501         * tests/test-c-strcasestr.c (ASSERT): Likewise.
32502         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
32503         * tests/test-c-strstr.c (ASSERT): Likewise.
32504         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
32505         * tests/test-canonicalize.c (ASSERT): Likewise.
32506         * tests/test-carray_list.c (ASSERT): Likewise.
32507         * tests/test-ceilf1.c (ASSERT): Likewise.
32508         * tests/test-ceilf2.c (ASSERT): Likewise.
32509         * tests/test-ceill.c (ASSERT): Likewise.
32510         * tests/test-count-one-bits.c (ASSERT): Likewise.
32511         * tests/test-fbufmode.c (ASSERT): Likewise.
32512         * tests/test-fflush2.c (ASSERT): Likewise.
32513         * tests/test-floorf1.c (ASSERT): Likewise.
32514         * tests/test-floorf2.c (ASSERT): Likewise.
32515         * tests/test-floorl.c (ASSERT): Likewise.
32516         * tests/test-fopen.c (ASSERT): Likewise.
32517         * tests/test-fpending.c (ASSERT): Likewise.
32518         * tests/test-fprintf-posix.c (ASSERT): Likewise.
32519         * tests/test-fpurge.c (ASSERT): Likewise.
32520         * tests/test-freadable.c (ASSERT): Likewise.
32521         * tests/test-freadahead.c (ASSERT): Likewise.
32522         * tests/test-freading.c (ASSERT): Likewise.
32523         * tests/test-freadptr.c (ASSERT): Likewise.
32524         * tests/test-freadptr2.c (ASSERT): Likewise.
32525         * tests/test-freadseek.c (ASSERT): Likewise.
32526         * tests/test-freopen.c (ASSERT): Likewise.
32527         * tests/test-frexp.c (ASSERT): Likewise.
32528         * tests/test-frexpl.c (ASSERT): Likewise.
32529         * tests/test-fseek.c (ASSERT): Likewise.
32530         * tests/test-fseeko.c (ASSERT): Likewise.
32531         * tests/test-fstrcmp.c (ASSERT): Likewise.
32532         * tests/test-ftell.c (ASSERT): Likewise.
32533         * tests/test-ftello.c (ASSERT): Likewise.
32534         * tests/test-func.c (ASSERT): Likewise.
32535         * tests/test-fwritable.c (ASSERT): Likewise.
32536         * tests/test-fwriting.c (ASSERT): Likewise.
32537         * tests/test-getdelim.c (ASSERT): Likewise.
32538         * tests/test-getline.c (ASSERT): Likewise.
32539         * tests/test-i-ring.c (ASSERT): Likewise.
32540         * tests/test-iconv-utf.c (ASSERT): Likewise.
32541         * tests/test-iconv.c (ASSERT): Likewise.
32542         * tests/test-isfinite.c (ASSERT): Likewise.
32543         * tests/test-isnand.c (ASSERT): Likewise.
32544         * tests/test-isnanf.c (ASSERT): Likewise.
32545         * tests/test-isnanl.h (ASSERT): Likewise.
32546         * tests/test-ldexpl.c (ASSERT): Likewise.
32547         * tests/test-linked_list.c (ASSERT): Likewise.
32548         * tests/test-linkedhash_list.c (ASSERT): Likewise.
32549         * tests/test-localename.c (ASSERT): Likewise.
32550         * tests/test-lseek.c (ASSERT): Likewise.
32551         * tests/test-mbscasecmp.c (ASSERT): Likewise.
32552         * tests/test-mbscasestr1.c (ASSERT): Likewise.
32553         * tests/test-mbscasestr2.c (ASSERT): Likewise.
32554         * tests/test-mbscasestr3.c (ASSERT): Likewise.
32555         * tests/test-mbscasestr4.c (ASSERT): Likewise.
32556         * tests/test-mbschr.c (ASSERT): Likewise.
32557         * tests/test-mbscspn.c (ASSERT): Likewise.
32558         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
32559         * tests/test-mbspbrk.c (ASSERT): Likewise.
32560         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
32561         * tests/test-mbsrchr.c (ASSERT): Likewise.
32562         * tests/test-mbsspn.c (ASSERT): Likewise.
32563         * tests/test-mbsstr1.c (ASSERT): Likewise.
32564         * tests/test-mbsstr2.c (ASSERT): Likewise.
32565         * tests/test-mbsstr3.c (ASSERT): Likewise.
32566         * tests/test-memchr2.c (ASSERT): Likewise.
32567         * tests/test-memmem.c (ASSERT): Likewise.
32568         * tests/test-open.c (ASSERT): Likewise.
32569         * tests/test-printf-frexp.c (ASSERT): Likewise.
32570         * tests/test-printf-frexpl.c (ASSERT): Likewise.
32571         * tests/test-printf-posix.c (ASSERT): Likewise.
32572         * tests/test-quotearg.c (ASSERT): Likewise.
32573         * tests/test-rbtree_list.c (ASSERT): Likewise.
32574         * tests/test-rbtree_oset.c (ASSERT): Likewise.
32575         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
32576         * tests/test-round1.c (ASSERT): Likewise.
32577         * tests/test-roundf1.c (ASSERT): Likewise.
32578         * tests/test-roundl.c (ASSERT): Likewise.
32579         * tests/test-signbit.c (ASSERT): Likewise.
32580         * tests/test-sleep.c (ASSERT): Likewise.
32581         * tests/test-snprintf-posix.c (ASSERT): Likewise.
32582         * tests/test-snprintf.c (ASSERT): Likewise.
32583         * tests/test-sprintf-posix.c (ASSERT): Likewise.
32584         * tests/test-stat-time.c (ASSERT): Likewise.
32585         * tests/test-strcasestr.c (ASSERT): Likewise.
32586         * tests/test-strerror.c (ASSERT): Likewise.
32587         * tests/test-striconv.c (ASSERT): Likewise.
32588         * tests/test-striconveh.c (ASSERT): Likewise.
32589         * tests/test-striconveha.c (ASSERT): Likewise.
32590         * tests/test-strsignal.c (ASSERT): Likewise.
32591         * tests/test-strstr.c (ASSERT): Likewise.
32592         * tests/test-strtod.c (ASSERT): Likewise.
32593         * tests/test-trunc1.c (ASSERT): Likewise.
32594         * tests/test-trunc2.c (ASSERT): Likewise.
32595         * tests/test-truncf1.c (ASSERT): Likewise.
32596         * tests/test-truncf2.c (ASSERT): Likewise.
32597         * tests/test-truncl.c (ASSERT): Likewise.
32598         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
32599         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
32600         * tests/test-vasnprintf.c (ASSERT): Likewise.
32601         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
32602         * tests/test-vasprintf.c (ASSERT): Likewise.
32603         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
32604         * tests/test-vprintf-posix.c (ASSERT): Likewise.
32605         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
32606         * tests/test-vsnprintf.c (ASSERT): Likewise.
32607         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
32608         * tests/test-wcwidth.c (ASSERT): Likewise.
32609         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
32610         * tests/test-xprintf-posix.c (ASSERT): Likewise.
32611         * tests/test-xvasprintf.c (ASSERT): Likewise.
32612         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
32613         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
32614         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
32615         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
32616         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
32617         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
32618         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
32619         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
32620         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
32621         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
32622         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
32623         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
32624         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
32625         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
32626         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
32627         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
32628         * tests/unictype/test-block_list.c (ASSERT): Likewise.
32629         * tests/unictype/test-block_of.c (ASSERT): Likewise.
32630         * tests/unictype/test-block_test.c (ASSERT): Likewise.
32631         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
32632         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
32633         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
32634         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
32635         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
32636         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
32637         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
32638         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
32639         * tests/unictype/test-combining.c (ASSERT): Likewise.
32640         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
32641         * tests/unictype/test-digit.c (ASSERT): Likewise.
32642         * tests/unictype/test-mirror.c (ASSERT): Likewise.
32643         * tests/unictype/test-numeric.c (ASSERT): Likewise.
32644         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
32645         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
32646         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
32647         * tests/unictype/test-scripts.c (ASSERT): Likewise.
32648         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
32649         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
32650         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
32651         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
32652         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
32653         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
32654         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
32655         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
32656         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
32657         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
32658         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
32659         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
32660         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
32661         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
32662         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
32663         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
32664         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
32665         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
32666         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
32667         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
32668         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
32669         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
32670         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
32671         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
32672         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
32673         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
32674         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
32675         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
32676         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
32677         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
32678         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
32679         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
32680         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
32681         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
32682         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
32683         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
32684         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
32685         Reported by Eric Blake.
32686
32687 2008-04-11  Bruno Haible  <bruno@clisp.org>
32688
32689         * lib/wchar.in.h: Tweak comment.
32690
32691 2008-04-11  Bruno Haible  <bruno@clisp.org>
32692
32693         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
32694         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
32695         gl_COMMON.
32696         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
32697
32698 2008-04-11  Bruno Haible  <bruno@clisp.org>
32699
32700         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
32701
32702 2008-04-11  Simon Josefsson  <simon@josefsson.org>
32703
32704         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
32705         of attempting to use non-existing /dev/*random.  Based on patch
32706         from Adam Strzelecki <ono@java.pl> in
32707         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
32708
32709 2008-04-08  Bruno Haible  <bruno@clisp.org>
32710
32711         Add tentative support for emx+gcc.
32712         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
32713         * lib/fpurge.c (fpurge): Likewise.
32714         * lib/freadable.c (freadable): Likewise.
32715         * lib/freadahead.c (freadahead): Likewise.
32716         * lib/freading.c (freading): Likewise.
32717         * lib/freadptr.c (freadptr): Likewise.
32718         * lib/freadseek.c (freadptrinc): Likewise.
32719         * lib/fseeko.c (rpl_fseeko): Likewise.
32720         * lib/fseterr.c (fseterr): Likewise.
32721         * lib/fwritable.c (fwritable): Likewise.
32722         * lib/fwriting.c (fwriting): Likewise.
32723         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
32724
32725 2008-04-09  Eric Blake  <ebb9@byu.net>
32726
32727         Avoid some autoconf warnings.
32728         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
32729         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
32730         * m4/afs.m4 (gl_AFS): Likewise.
32731         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
32732         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
32733         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32734         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
32735         (gl_INTEGER_TYPE_SUFFIX): Likewise.
32736         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
32737         (AC_CHECK_DECLS_ONCE): Likewise.
32738         Rename file...
32739         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
32740         gnulib-tool requires autoconf 2.59 or better.
32741         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
32742
32743 2008-04-08  Eric Blake  <ebb9@byu.net>
32744
32745         Use 'git describe --match' if present (added in git 1.5.5).
32746         * build-aux/git-version-gen: Limit result to tags that match 'v*'
32747         if possible.
32748
32749 2008-04-08  Bruno Haible  <bruno@clisp.org>
32750
32751         Add tentative support for OpenServer.
32752         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
32753         _ptr, _cnt.
32754         * lib/fpurge.c (fpurge): Likewise.
32755         * lib/freadable.c (freadable): Likewise.
32756         * lib/freadahead.c (freadahead): Likewise.
32757         * lib/freading.c (freading): Likewise.
32758         * lib/freadptr.c (freadptr): Likewise.
32759         * lib/freadseek.c (freadptrinc): Likewise.
32760         * lib/fseeko.c (rpl_fseeko): Likewise.
32761         * lib/fseterr.c (fseterr): Likewise.
32762         * lib/fwritable.c (fwritable): Likewise.
32763         * lib/fwriting.c (fwriting): Likewise.
32764         Reported by Roger Cornelius <rac@tenzing.org> and
32765         Brian K. White <brian@aljex.com>.
32766
32767 2008-04-06  Jim Meyering  <meyering@redhat.com>
32768
32769         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
32770
32771 2008-04-06  Bruno Haible  <bruno@clisp.org>
32772
32773         Avoid possible error with non-ASCII bytes in UTF-8 locales.
32774         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
32775         * tests/test-printf-posix.sh: Likewise.
32776         * tests/test-vfprintf-posix.sh: Likewise.
32777         * tests/test-vprintf-posix.sh: Likewise.
32778         * tests/test-xprintf-posix.sh: Likewise.
32779
32780 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32781
32782         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
32783         hide error from 'ls', needed on OS/2.
32784         Report by Elbert Pol <elbert.pol@gmail.com>.
32785
32786 2008-04-04  Eric Blake  <ebb9@byu.net>
32787
32788         Make test-fseeko.c failures meaningful.
32789         * tests/test-fseeko.c: Print line number on failure.
32790         * tests/test-fseek.c: Likewise.
32791         Reported by Nelson H. F. Beebe.
32792
32793         Improve strtod bug detection check.
32794         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
32795         required for Solaris 10.
32796         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
32797
32798 2008-04-04  Bruno Haible  <bruno@clisp.org>
32799
32800         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
32801         by m4/setenv.m4.
32802
32803 2008-04-03  Eric Blake  <ebb9@byu.net>
32804
32805         Ensure sane .version contents.
32806         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
32807         version string.
32808         * build-aux/git-version-gen: Improve documentation.
32809
32810         Make GNU make output nicer.
32811         * top/GNUmakefile [!_have-Makefile]: Add dependency on
32812         MAKECMDGOALS to enforce message for all command line targets.  Set
32813         srcdir for use in maint.mk.
32814
32815         Another maintainer tweak.
32816         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
32817         a target that regenerates version.
32818
32819 2008-04-03  Jim Meyering  <meyering@redhat.com>
32820
32821         vc-list-files: don't cause coreutils "make po-check" failure
32822         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
32823
32824 2008-04-03  Eric Blake  <ebb9@byu.net>
32825
32826         Allow VPATH usage of vc-list-files.
32827         * build-aux/vc-list-files (scriptversion): Add timestamp.
32828         (options): Add --help, --version, -C.
32829         (CVS): Support installed cvsu.
32830
32831 2008-04-02  Bruno Haible  <bruno@clisp.org>
32832
32833         Avoid some "statement with no effect" warnings from gcc.
32834         * tests/test-wctype.c (main): Explicitly ignore unused values.
32835         Reported by Jim Meyering.
32836
32837 2008-04-02  Jim Meyering  <meyering@redhat.com>
32838
32839         Avoid some warnings from "gcc -Wshadow".
32840         * tests/test-frexp.c (exp): Define to a different identifier.
32841         * tests/test-frexpl.c (exp): Likewise.
32842
32843 2008-04-03  Jim Meyering  <meyering@redhat.com>
32844
32845         bootstrap: remove dangling *.[ch] symlinks from lib
32846         * build-aux/bootstrap [dangling symlink removal]: Move find's
32847         -depth option to precede all others, to avoid a warning.
32848         Remove *.[ch] files too, and from "$source_base" (usually lib/).
32849
32850 2008-04-02  Bruno Haible  <bruno@clisp.org>
32851
32852         Avoid some warnings from "gcc -Wshadow".
32853         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
32854         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
32855         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
32856         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
32857         Reported by Jim Meyering.
32858
32859 2008-04-01  Bruno Haible  <bruno@clisp.org>
32860
32861         Fix test to work on IRIX 6.5 with cc.
32862         * tests/test-math.c (numeric_equal): New function.
32863         (main): Use it.
32864
32865 2008-04-01  Bruno Haible  <bruno@clisp.org>
32866
32867         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
32868
32869 2008-04-01  Bruno Haible  <bruno@clisp.org>
32870
32871         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
32872         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32873         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
32874         (Depends-on): Remove math.
32875
32876         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
32877         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32878         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
32879         (Depends-on): Remove math.
32880
32881         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
32882         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32883         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
32884         (Depends-on): Remove math.
32885         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
32886         (Depends-on): Remove math.
32887
32888         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
32889         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32890         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
32891         (Depends-on): Remove math.
32892         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
32893         (Depends-on): Remove math.
32894
32895         * tests/test-round1.c: Include nan.h.
32896         (main): Use NaNd instead of NAN.
32897         * modules/round-tests (Files): Add tests/nan.h.
32898
32899         * tests/test-trunc1.c: Include nan.h.
32900         (main): Use NaNd instead of NAN.
32901         * modules/trunc-tests (Files): Add tests/nan.h.
32902
32903         * tests/test-roundf1.c: Include nan.h.
32904         (main): Use NaNf instead of NAN.
32905         * modules/roundf-tests (Files): Add tests/nan.h.
32906
32907         * tests/test-truncf1.c: Include nan.h.
32908         (main): Use NaNf instead of NAN.
32909         * modules/truncf-tests (Files): Add tests/nan.h.
32910
32911         * tests/test-ceilf1.c: Include nan.h.
32912         (main): Use NaNf instead of NAN.
32913         * modules/ceilf-tests (Files): Add tests/nan.h.
32914
32915         * tests/test-floorf1.c: Include nan.h.
32916         (main): Use NaNf instead of NAN.
32917         * modules/floorf-tests (Files): Add tests/nan.h.
32918
32919         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
32920         (main): Use NaNf instead of NAN.
32921         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
32922
32923         * tests/test-isnand.c: Include nan.h instead of <math.h>.
32924         (main): Use NaNd instead of NAN.
32925         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
32926
32927         * tests/test-frexp.c: Include nan.h.
32928         (main): Use NaNd instead of NAN.
32929         * modules/frexp-tests (Files): Add tests/nan.h.
32930
32931         * lib/isnan.c: Don't include <math.h>.
32932         (FUNC): Don't use NAN macro.
32933         * modules/isnand-nolibm (Depends-on): Remove math.
32934         * modules/isnanf-nolibm (Depends-on): Remove math.
32935         * modules/isnanl (Depends-on): Remove math.
32936         * modules/isnanl-nolibm (Depends-on): Remove math.
32937
32938         * tests/nan.h: New file.
32939
32940 2008-04-01  Eric Blake  <ebb9@byu.net>
32941
32942         Fix typos.
32943         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
32944         values to be the right type.
32945
32946         For now, cater to gnulib strtod inaccuracies.
32947         * tests/test-strtod.c (main): Allow 1-ulp error on expected
32948         fractional results.  While not as nice from a QoI perspective, it
32949         is a quicker patch than correctly implementing decimal to binary
32950         rounding.
32951
32952 2008-03-31  Eric Blake  <ebb9@byu.net>
32953
32954         Guarantee a definition of NAN.
32955         * lib/math.in.h (NAN): Define if missing.
32956         * tests/test-math.c (main): Test it.
32957         * doc/posix-headers/math.texi (math.h): Document this.
32958         * lib/isnan.c (rpl_isnand): Use it.
32959         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
32960         * tests/test-floorf1.c (NaN): Likewise.
32961         * tests/test-frexp.c (NaN): Likewise.
32962         * tests/test-isnand.c (NaN): Likewise.
32963         * tests/test-isnanf.c (NaN): Likewise.
32964         * tests/test-round1.c (NaN): Likewise.
32965         * tests/test-roundf1.c (NaN): Likewise.
32966         * tests/test-snprintf-posix.h (NaN): Likewise.
32967         * tests/test-sprintf-posix.h (NaN): Likewise.
32968         * tests/test-trunc1.c (NaN): Likewise.
32969         * tests/test-truncf1.c (NaN): Likewise.
32970         * tests/test-vasnprintf-posix.c (NaN): Likewise.
32971         * tests/test-vasprintf-posix.c (NaN): Likewise.
32972         * modules/isnand-nolibm (Depends-on): Add math.
32973         * modules/isnanf-nolibm (Depends-on): Likewise.
32974         * modules/isnanl (Depends-on): Likewise.
32975         * modules/isnanl-nolibm (Depends-on): Likewise.
32976         * modules/snprintf-posix-tests (Depends-on): Likewise.
32977         * modules/sprintf-posix-tests (Depends-on): Likewise.
32978         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
32979         * modules/vsprintf-posix-tests (Depends-on): Likewise.
32980         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
32981         * modules/vasprintf-posix-tests (Depends-on): Likewise.
32982
32983 2008-03-31  Bruno Haible  <bruno@clisp.org>
32984
32985         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
32986         * doc/posix-functions/strtod.texi: Likewise.
32987
32988 2008-03-31  Bruno Haible  <bruno@clisp.org>
32989
32990         * tests/test-strtod.c (main): Don't use C99 syntax.
32991
32992 2008-03-31  Bruno Haible  <bruno@clisp.org>
32993
32994         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
32995         Reported by Eric Blake.
32996
32997 2008-03-31  Jim Meyering  <meyering@redhat.com>
32998
32999         Don't compare actual signbit return values.
33000         * tests/test-strtod.c (main): Rather, compare only their
33001         zero/non-zero nature.
33002
33003 2008-03-31  Eric Blake  <ebb9@byu.net>
33004
33005         More strtod documentation.
33006         * doc/posix-functions/strtod.texi (strtod): Interpret more test
33007         failures as distinct bugs.
33008
33009 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
33010
33011         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
33012         Problem reported by Erik Benada in
33013         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
33014
33015 2008-03-30  Bruno Haible  <bruno@clisp.org>
33016
33017         * tests/test-strtod.c: Add comments about which assertion fails on which
33018         platform.
33019         * doc/posix-functions/strtod.texi: Add info about many more platforms.
33020
33021 2008-03-30  Eric Blake  <ebb9@byu.net>
33022
33023         Test signbit behavior on zeros.
33024         * tests/test-signbit.c (test_signbitf): Add tests for zero.
33025         (test_signbitd, test_signbitl): Likewise.
33026
33027         More strtod touchups.
33028         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
33029         sign of negative underflow, for now.  Use .5, not .1.
33030         * doc/posix-functions/strtod.texi (strtod): Mention these
33031         limitations.
33032         Reported by Jim Meyering.
33033
33034 2008-03-30  Bruno Haible  <bruno@clisp.org>
33035
33036         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
33037         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
33038
33039 2008-03-30  Bruno Haible  <bruno@clisp.org>
33040
33041         Avoid failure when attempting to return empty iconv results on some
33042         platforms.
33043         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
33044         allocation, don't report ENOMEM when the resulting string is empty.
33045
33046 2008-03-30  Bruno Haible  <bruno@clisp.org>
33047
33048         Fix buffer overrun.
33049         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
33050         Don't consider the width for tmp_length. Check count against tmp_length
33051         before doing the padding. Ensure enough allocation during padding.
33052
33053 2008-03-30  Eric Blake  <ebb9@byu.net>
33054
33055         strtod touchups.
33056         * lib/strtod.c (strtod): Avoid compiler warnings.
33057         Reported by Jim Meyering.
33058
33059 2008-03-30  Bruno Haible  <bruno@clisp.org>
33060
33061         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
33062         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
33063         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
33064         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
33065         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
33066         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
33067         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
33068         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
33069
33070         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
33071         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
33072         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
33073         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
33074         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
33075         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
33076         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
33077         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
33078
33079         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
33080         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
33081         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
33082         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
33083         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
33084         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
33085         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
33086         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
33087
33088         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
33089         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
33090
33091         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
33092         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
33093
33094         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
33095         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
33096
33097         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
33098         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
33099         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
33100
33101         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
33102         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
33103         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
33104
33105         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
33106         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
33107         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
33108
33109         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
33110         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
33111         * modules/vasprintf (Depends-on): Add EOVERFLOW.
33112
33113         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
33114         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
33115         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
33116         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
33117         (Depends-on): Add EOVERFLOW.
33118         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
33119         (Depends-on): Add EOVERFLOW.
33120         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
33121         (Depends-on): Add EOVERFLOW.
33122         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
33123         (Depends-on): Add EOVERFLOW.
33124         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
33125         (Depends-on): Add EOVERFLOW.
33126         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
33127         (Depends-on): Add EOVERFLOW.
33128         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
33129         (Depends-on): Add EOVERFLOW.
33130         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
33131         (Depends-on): Add EOVERFLOW.
33132
33133         * lib/sprintf.c (EOVERFLOW): Remove fallback.
33134         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
33135         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
33136
33137         * lib/snprintf.c (EOVERFLOW): Remove fallback.
33138         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
33139         * modules/snprintf (Depends-on): Add EOVERFLOW.
33140
33141         * lib/poll.c (EOVERFLOW): Remove fallback.
33142         * modules/poll (Depends-on): Add EOVERFLOW.
33143
33144         * lib/getugroups.c (EOVERFLOW): Remove fallback.
33145         * modules/getugroups (Depends-on): Add EOVERFLOW.
33146
33147         * lib/getdelim.c (EOVERFLOW): Remove fallback.
33148         * modules/getdelim (Depends-on): Add EOVERFLOW.
33149
33150         * lib/ftell.c (EOVERFLOW): Remove fallback.
33151         * modules/ftell (Depends-on): Add EOVERFLOW.
33152
33153         * lib/fprintf.c (EOVERFLOW): Remove fallback.
33154         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
33155         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
33156
33157         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
33158
33159         * modules/EOVERFLOW-tests: New file.
33160         * tests/test-EOVERFLOW.c: New file.
33161
33162         * modules/EOVERFLOW: New file.
33163         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
33164
33165 2008-03-30  Bruno Haible  <bruno@clisp.org>
33166
33167         Fix bug introduced on 2007-06-10.
33168         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
33169         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
33170
33171 2008-03-30  Bruno Haible  <bruno@clisp.org>
33172
33173         Improve freadseek's efficiency after ungetc.
33174         * lib/freadseek.c: Include freadahead.h.
33175         (freadptrinc): New function, extracted from freadseek.
33176         (freadseek): Use it in a loop. Use freadahead to determine the number
33177         of loop iterations.
33178         * modules/freadseek (Depends-on): Add freadahead.
33179         (configure.ac): Require AC_C_INLINE.
33180
33181 2008-03-30  Bruno Haible  <bruno@clisp.org>
33182
33183         * lib/freadseek.c (freadseek): Don't ignore the return value of
33184         freadptr.
33185
33186 2008-03-29  Eric Blake  <ebb9@byu.net>
33187
33188         Add hex float support.
33189         * modules/strtod (Depends-on): Add c-ctype.
33190         (Link): Mention POW_LIB.
33191         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
33192         whitespace between 'e' and exponent.
33193         * tests/test-strtod.c (main): Enable hex float tests.
33194         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
33195         now provides.
33196
33197         Document various strtod bugs, with some fixes.
33198         * doc/posix-functions/strtod.texi (strtod): Document bugs with
33199         "-0x", "inf", "nan", and hex constants.
33200         * doc/posix-functions/atof.texi (atof): Likewise.
33201         * modules/stdlib (Makefile.am): Support strtod.
33202         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
33203         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
33204         detect additional strtod bugs.
33205         * lib/stdlib.in.h (rpl_strtod): Add declarations.
33206         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
33207         bool where appropriate.  Parse 'inf' and 'nan'.
33208         * tests/test-strtod.c: New file.
33209         * modules/strtod (Depends-on): Add stdbool, stdlib.
33210         (configure.ac): Turn on module indicator.
33211         * modules/strtod-tests: New module.
33212
33213 2008-03-29  Eric Blake  <ebb9@byu.net>
33214
33215         Fix ftell on mingw.
33216         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
33217         * modules/ftell-tests (Depends-on): Add binary-io.
33218         * modules/ftello-tests (Depends-on): Likewise.
33219         * tests/test-ftell.c (main): Enhance test to cover behavior after
33220         ungetc.  Enforce binary mode.
33221         * tests/test-ftello.c (main): Likewise.
33222
33223         Pass test-freadseek on cygwin.
33224         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
33225         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
33226         ungetc buffer.
33227
33228         * tests/test-fflush2.c (main): Fix typo.
33229
33230 2008-03-29  Bruno Haible  <bruno@clisp.org>
33231
33232         * tests/test-fflush2.c (main): Temporarily disable the contents of
33233         this test.
33234         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
33235         Reported by Eric Blake.
33236
33237 2008-03-28  Simon Josefsson  <simon@josefsson.org>
33238
33239         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
33240         (GC_SHA224_DIGEST_SIZE): Add.
33241
33242         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
33243         (gc_hash_digest_length): Likewise.
33244         (gc_hash_buffer): Likewise.
33245
33246 2008-03-25  Bruno Haible  <bruno@clisp.org>
33247
33248         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
33249         detail which gettext release to use.
33250         Reported by Simon Josefsson.
33251
33252 2008-03-26  Jim Meyering  <meyering@redhat.com>
33253
33254         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
33255         * modules/gnumakefile (clean-GNUmakefile): Also, use
33256         test ... && ... || : syntax rather than if-then ... fi.
33257
33258         gnumakefile: Don't double-quote-expand $(VPATH) value.
33259         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
33260
33261 2008-03-24  Eric Blake  <ebb9@byu.net>
33262
33263         Alter GNUmakefile to install into top directory.
33264         * modules/maintainer-makefile: Split, and add dependency...
33265         * modules/gnumakefile: to this new module.
33266         * build-aux/GNUmakefile: Move...
33267         * top/GNUmakefile: ...here.
33268         * build-aux/maint.mk: Move...
33269         * top/maint.mk: ...here.
33270         * MODULES.html.sh (Support for maintaining...): Document new
33271         module.
33272
33273 2008-03-23  Bruno Haible  <bruno@clisp.org>
33274
33275         * gnulib-tool: New options --vc-files, --no-vc-files.
33276         (func_usage): Document them.
33277         (vc_files): New variable.
33278         (func_import): Consider vc_files.
33279         (func_create_testdir): Set vc_files to empty.
33280         Suggested by Jim Meyering and Karl Berry.
33281
33282 2008-03-23  Bruno Haible  <bruno@clisp.org>
33283
33284         Fix regex compilation error on HP-UX 11.
33285         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
33286         * modules/regex (Files): Add m4/mbstate_t.m4.
33287         Reported by Ton Voon <ton.voon@altinity.com>.
33288
33289 2008-03-23  Bruno Haible  <bruno@clisp.org>
33290
33291         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
33292
33293 2008-03-23  Eric Blake  <ebb9@byu.net>
33294             Bruno Haible  <bruno@clisp.org>
33295
33296         Install files from top/ in the destination directory.
33297         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
33298         augmentation also for the files from top/.
33299         (func_import, func_create_testdir): Rewrite file names:
33300         top/filename -> filename.
33301
33302 2008-03-23  Bruno Haible  <bruno@clisp.org>
33303
33304         Tweak "gnulib --version" output.
33305         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
33306
33307 2008-03-23  Bruno Haible  <bruno@clisp.org>
33308
33309         Tweak "gnulib --version" output.
33310         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
33311         rather than contents of ChangeLog, when possible.
33312
33313 2008-03-21  Eric Blake  <ebb9@byu.net>
33314
33315         More --version tweaks.
33316         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
33317         date of last ChangeLog entry.
33318
33319 2008-03-21  Jim Meyering  <meyering@redhat.com>
33320
33321         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
33322
33323 2008-03-20  Eric Blake  <ebb9@byu.net>
33324
33325         VPATH fix.
33326         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
33327
33328 2008-03-20  Simon Josefsson  <simon@josefsson.org>
33329
33330         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
33331         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
33332
33333 2008-03-20  Eric Blake  <ebb9@byu.net>
33334
33335         Sync GNUmakefile with coreutils.
33336         * build-aux/GNUmakefile (have-Makefile): Rename...
33337         (_have-Makefile): ...to this, for namespace consideration.
33338         (GNUmakefile.cfg): Include, if present.
33339         (_autoreconf): Define a default.
33340         (_is-dist-target): New rule for rebuilds to pick up intra-release
33341         version.
33342         (maint-cfg.mk): Rename...
33343         (cfg.mk): ...to this.
33344
33345 2008-03-18  Jim Meyering  <meyering@redhat.com>
33346
33347         New script and module: mktempd
33348         * MODULES.html.sh (maint+release support): Add mktempd.
33349         * build-aux/mktempd: New file.
33350         * modules/mktempd: New file.
33351
33352 2008-03-15  Jim Meyering  <meyering@redhat.com>
33353
33354         Undo last change.
33355         * lib/sha1.c, lib/md5.c: 63 != ~63.
33356         Reported by Andreas Schwab.
33357
33358         sha1.c, md5.c: Hoist a redundant expression.
33359         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
33360         "ctx->buflen" only once, before calling *_process_block.
33361         * lib/md5.c (md5_process_bytes): Likewise.
33362
33363 2008-03-14  Eric Blake  <ebb9@byu.net>
33364
33365         Bump copyright year in files generated by gnulib-tool.
33366         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
33367         gnulib-tool, rather than hard-coding it.
33368
33369         Fix 'gnulib-tool --version' output to work with git.
33370         * gnulib-tool (func_gnulib_dir): New function, extracted from...
33371         (startup): ...here.
33372         (func_version): Use it to invoke git-version-gen, rather than
33373         relying on CVS keyword expansion.  Modernize wording.
33374         (cvsdatestamp, last_checkin_date, version): Kill unused
33375         variables.
33376
33377 2008-03-12  Jim Meyering  <meyering@redhat.com>
33378
33379         Recognize optional cast of the argument to free.
33380         * build-aux/useless-if-before-free: Update regexps.
33381
33382         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
33383
33384 2008-03-11  Bruno Haible  <bruno@clisp.org>
33385
33386         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
33387         by a single package.
33388         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
33389         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
33390         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
33391         Reported by Sam Steingold <sds@gnu.org>.
33392
33393 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33394
33395         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
33396         repositories.
33397
33398 2008-03-11  Bruno Haible  <bruno@clisp.org>
33399
33400         Avoid conflicts between local macro definitions.
33401         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33402         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
33403
33404 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
33405             Bruno Haible  <bruno@clisp.org>
33406
33407         Make va_copy work with some version of xlc on AIX 5.1.
33408         * lib/stdarg.in.h: New file.
33409         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
33410         On AIX, use a <stdarg.h> file substitute.
33411         * modules/stdarg (Files): Add lib/stdarg.in.h.
33412         (Depends-on): Add include_next.
33413         (Makefile.am): Build a stdarg.h substitute if requested.
33414         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
33415
33416 2008-03-10  Bruno Haible  <bruno@clisp.org>
33417
33418         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
33419         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33420         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33421
33422 2008-03-10  Bruno Haible  <bruno@clisp.org>
33423
33424         * modules/stdlib (Depends-on): Add include_next, remove
33425         absolute-header.
33426
33427 2008-03-09  Bruno Haible  <bruno@clisp.org>
33428
33429         * lib/freadahead.h (freadahead): Document more precisely.
33430         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
33431         the sum of both buffer sizes.
33432         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
33433         * NEWS: Document the change.
33434
33435 2008-03-09  Bruno Haible  <bruno@clisp.org>
33436
33437         Extend freadptr to return also the buffer size.
33438         * lib/freadptr.h (freadptr): Add sizep argument.
33439         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
33440         (freadptr): Add sizep argument. Determine buffer size like freadahead
33441         does.
33442         * tests/test-freadptr.c: Don't include freadahead.h.
33443         (main): Adapt for new calling convention of freadptr.
33444         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
33445         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
33446         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
33447         tests/test-freadptr2.sh.
33448         (Depends): Remove freadahead.
33449         (TESTS): Add test-freadptr2.sh.
33450         (check_PROGRAMS): Add test-freadptr2.
33451
33452 2008-03-09  Bruno Haible  <bruno@clisp.org>
33453
33454         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
33455         Report and solution by Simon Josefsson.
33456
33457 2008-03-06  Bruno Haible  <bruno@clisp.org>
33458
33459         Make fflush after ungetc work on BSD platforms.
33460         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
33461         * tests/test-fflush2.c: New file.
33462         * tests/test-fflush2.sh: New file.
33463         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
33464         tests/test-fflush2.c.
33465         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
33466         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
33467
33468 2008-03-06  Eric Blake  <ebb9@byu.net>
33469
33470         Likewise for ftello.
33471         * modules/ftello (Dependencies): Add extensions.
33472         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
33473
33474 2008-03-06  Bruno Haible  <bruno@clisp.org>
33475
33476         * modules/fseeko (Dependencies): Add extensions.
33477         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
33478         Needed on glibc systems.
33479
33480 2008-03-06  Bruno Haible  <bruno@clisp.org>
33481
33482         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
33483         email address.
33484         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33485
33486 2008-03-06  Bruno Haible  <bruno@clisp.org>
33487
33488         * users.txt: Add libgnupdf.
33489
33490 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33491
33492         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
33493         (Header File Substitutes, Function Substitutes,
33494         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
33495         (Build robot for gnulib): Fix typo.
33496
33497 2008-03-06  Bruno Haible  <bruno@clisp.org>
33498
33499         * doc/gnulib-tool.texi (VCS Issues): Small updates.
33500         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33501
33502 2008-03-06  Bruno Haible  <bruno@clisp.org>
33503
33504         * doc/func.texi: New file, extracted from doc/gnulib.texi.
33505         * doc/gnulib.texi: Include it.
33506
33507 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33508
33509         * modules/func (License): Change license to unlimited; there was
33510         no LGPL parts in the module anyway.
33511
33512 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33513
33514         * modules/__func__: Renamed to modules/func.
33515         * modules/__func__-tests: Renamed to modules/func-tests.
33516         * tests/test-__func__.c: Renamed to tests/test-func.c.
33517         * m4/__func__.m4: Renamed to m4/func.m4.
33518         * doc/gnulib.texi (__func__): Section renamed to func.
33519         Suggested by Eric Blake <ebb9@byu.net>.
33520
33521 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33522
33523         * doc/gnulib.texi (__func__): Use C99 terminology when talking
33524         about __func__.  Make example self-contained.  Suggested by Eric
33525         Blake <ebb9@byu.net>.
33526
33527         * tests/test-__func__.c (main): Avoid extraneous () around __func.
33528         Suggested by Eric Blake <ebb9@byu.net>.
33529
33530 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33531
33532         * modules/__func__: New file.
33533         * modules/__func__-tests: New file.
33534         * tests/test-__func__.c: New file.
33535         * m4/__func__.m4: New file.
33536         * doc/gnulib.texi (__func__): Document __func__ module.
33537
33538 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33539
33540         * modules/byteswap (License): Re-license as LGPLv2+.
33541
33542 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33543
33544         * doc/Makefile: Add pdf target.
33545
33546 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33547
33548         * modules/inline (License): Use 'unlimited', since there are only
33549         *.m4 files in this module.
33550
33551 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33552             Bruno Haible  <bruno@clisp.org>
33553
33554         Add support for HP C 7.1 on OpenVMS 8.3.
33555         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
33556
33557 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33558
33559         Update VMS specifics.
33560         * lib/getopt.c [VMS]: Remove include of unixlib.h.
33561
33562 2008-03-02  Jim Meyering  <meyering@redhat.com>
33563
33564         Remove the last dependency on the "free" module.
33565         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
33566         Reported by Bob Proulx.
33567
33568         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
33569
33570         Remove useless "if" tests before free.  Deprecate "free" module.
33571         * doc/posix-functions/free.texi: Mention that this
33572         module is no longer useful.
33573         * modules/free (Notice): Say this module is obsolete.
33574         * modules/readutmp (Depends-on): Remove free.
33575         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
33576         * lib/putenv.c (putenv): Likewise.
33577         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
33578         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
33579         * tests/test-c-strcasestr.c (main): Likewise.
33580         * tests/test-c-strstr.c (main): Likewise.
33581         * tests/test-mbscasestr1.c (main): Likewise.
33582         * tests/test-mbscasestr2.c (main): Likewise.
33583         * tests/test-mbsstr1.c (main): Likewise.
33584         * tests/test-mbsstr2.c (main): Likewise.
33585         * tests/test-memmem.c (main): Likewise.
33586         * tests/test-strcasestr.c (main): Likewise.
33587         * tests/test-striconv.c (main): Likewise.
33588         * tests/test-striconveh.c (main): Likewise.
33589         * tests/test-striconveha.c (main): Likewise.
33590         * tests/test-strstr.c (main): Likewise.
33591
33592         * build-aux/git-version-gen: Adjust a comment and the Usage string.
33593
33594         bootstrap: sync from coreutils again
33595         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
33596
33597 2008-03-01  Jim Meyering  <meyering@redhat.com>
33598
33599         bootstrap: sync from coreutils
33600         * build-aux/bootstrap (update_po_files): Copy a .po file into place
33601         also when the target doesn't exist.
33602
33603 2008-03-01  Eric Blake  <ebb9@byu.net>
33604
33605         Fix bugs in last patch.
33606         * lib/memchr2.c (memchr2): Fix typo.
33607         * tests/test-memchr2.c: Test previous bug, and don't use GNU
33608         extension.
33609         Reported by Bruce Korb.
33610
33611         New module 'memchr2'.
33612         * modules/memchr2: New file.
33613         * modules/memchr2-tests: Likewise.
33614         * lib/memchr2.h: Likewise.
33615         * lib/memchr2.c: Likewise, based on memchr.c.
33616         * tests/test-memchr2.c: New test.
33617         * MODULES.html.sh (String handling): Add memchr2.
33618
33619 2008-02-29  Bruno Haible  <bruno@clisp.org>
33620
33621         * modules/freadseek-tests: New file.
33622         * tests/test-freadseek.sh: New file.
33623         * tests/test-freadseek.c: New file.
33624
33625         New module 'freadseek'.
33626         * modules/freadseek: New file.
33627         * lib/freadseek.h: New file.
33628         * lib/freadseek.c: New file.
33629         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
33630
33631 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33632
33633         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
33634         wydawca.
33635
33636         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
33637         program_invocation_name and program_invocation_short_name are
33638         present.
33639
33640 2008-02-28  Bruno Haible  <bruno@clisp.org>
33641
33642         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
33643         * tests/test-freadptr.sh: Also test non-seekable stdin.
33644
33645 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
33646
33647         * build-aux/bootstrap (source_base, m4_base)
33648         (doc_base, tests_base): New variables.
33649         (gnulib_tool_options): Do not hardcode base directories, use
33650         the above variables instead.
33651
33652 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
33653
33654         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
33655
33656 2008-02-28  Bruno Haible  <bruno@clisp.org>
33657
33658         * modules/freadptr-tests: New file.
33659         * tests/test-freadptr.sh: New file.
33660         * tests/test-freadptr.c: New file.
33661
33662         New module 'freadptr'.
33663         * modules/freadptr: New file.
33664         * lib/freadptr.h: New file.
33665         * lib/freadptr.c: New file.
33666         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
33667
33668 2008-02-26  Karl Berry  <karl@freefriends.org>
33669
33670         Sync from Libtool:
33671         * libltdl/argz.c (argz_add, argz_count): New functions.
33672         * libltdl/argz.in.h: Declare them.
33673         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
33674
33675 2008-02-22  Bruno Haible  <bruno@clisp.org>
33676
33677         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
33678         is a pointer type.  Needed for HP-UX 10.
33679         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
33680         * doc/posix-functions/gmtime_r.texi: Likewise.
33681         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33682
33683 2008-02-24  Bruno Haible  <bruno@clisp.org>
33684
33685         * modules/environ-tests: New file.
33686         * tests/test-environ.c: New file.
33687
33688         New module 'environ'.
33689         * modules/environ: New file.
33690         * lib/unistd.in.h (environ): New declaration.
33691         * m4/environ.m4: New file.
33692         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
33693         after use.
33694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
33695         HAVE_DECL_ENVIRON.
33696         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
33697         HAVE_DECL_ENVIRON.
33698         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
33699         wrong claim that 'environ' is missing on some systems.
33700         * modules/execute (Depends-on): Add environ.
33701         * lib/execute.c (environ): Remove fallback declaration.
33702         * modules/pipe (Depends-on): Add environ.
33703         * lib/pipe.c (environ): Remove fallback declaration.
33704         * modules/setenv (Depends-on): Add environ.
33705         * lib/setenv.c (environ): Remove fallback declaration.
33706         * modules/unsetenv (Depends-on): Add environ.
33707         * lib/unsetenv.c (environ): Remove fallback declaration.
33708         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
33709         m4/environ.m4.
33710         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
33711         (gl_PREREQ_UNSETENV): Likewise.
33712
33713 2008-02-24  Bruno Haible  <bruno@clisp.org>
33714
33715         * doc/posix-functions/environ.texi: Document the MacOS X problem.
33716
33717 2008-02-20  Bob Proulx  <bob@proulx.com>
33718
33719         Enable use of older two part flavor 'git describe'.
33720         * build-aux/git-version-gen: If using the older two part flavor of
33721         git version then recreate the third part now present in the
33722         newer three part flavor of git describe.
33723
33724 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
33725
33726         * lib/fts.c (fts_build): Typo correction to comment.
33727
33728 2008-02-17  Bruno Haible  <bruno@clisp.org>
33729
33730         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
33731         generating no-op conflicts.
33732
33733 2008-02-17  Bruno Haible  <bruno@clisp.org>
33734
33735         Speed up by 10%.
33736         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
33737         result_entries, rather than an index-based loop.
33738
33739 2008-02-17  Bruno Haible  <bruno@clisp.org>
33740
33741         Speed up by 25%.
33742         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
33743         'hashcode_cached'.
33744         (entry_create): New function.
33745         (entry_hashcode): Use the cached hashcode if possible.
33746         (read_changelog_file, try_split_merged_entry): Use entry_create.
33747
33748 2008-02-17  Bruno Haible  <bruno@clisp.org>
33749
33750         Speed up from O(n^2) to O(n) for long ChangeLog files.
33751         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
33752         (read_changelog_file): Change implementation of entries_reversed list
33753         to rbtreehash.
33754         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
33755
33756 2008-02-17  Bruno Haible  <bruno@clisp.org>
33757
33758         New option --split-merged-entry.
33759         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
33760         (find_paragraph_end, try_split_merged_entry): New functions.
33761         (long_options): Add option --split-merged-entry.
33762         (usage): Document option --split-merged-entry.
33763         (main): Implement option --split-merged-entry.
33764         Reported by Eric Blake.
33765
33766 2008-02-17  Bruno Haible  <bruno@clisp.org>
33767
33768         * lib/git-merge-changelog.c: Include c-strstr.h.
33769         (main): Support the "git pull --rebase" situation.
33770         * modules/git-merge-changelog (Depends-on): Add c-strstr.
33771         Reported by Eric Blake.
33772
33773 2008-02-16  Eric Blake  <ebb9@byu.net>
33774
33775         Avoid doubling \ in common case of "c-maybe" quoting style.
33776         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
33777         eliding outer quotes.
33778         * lib/quotearg.h: Document this.
33779         * tests/test-quotearg.c (result_strings, inputs, results_g)
33780         (flag_results, locale_results): Test it by adding a new string to
33781         each test group.
33782         (compare_strings): Test new string.
33783
33784 2008-02-13  Eric Blake  <ebb9@byu.net>
33785
33786         Avoid trigraph quoting in default output.
33787         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
33788         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
33789         unless explicitly requested.
33790         * tests/test-quotearg.c (flag_results, main): Add additional tests.
33791
33792 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
33793
33794         Don't rely on signed integer overflowing to negative value.
33795         * lib/getugroups.c (getugroups): Include <limits.h>.
33796         Instead, compare against INT_MAX, and increment only if the test passes.
33797
33798 2008-02-13  Jim Meyering  <meyering@redhat.com>
33799         and Eric Blake  <ebb9@byu.net>
33800
33801         Avoid shadowing warning and compile errors on Linux.
33802         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
33803         forwarding macros on Linux.
33804         (dcgettext): Define a stub, for Linux.
33805         (results_g, main): Avoid warnings.
33806
33807 2008-02-12  Eric Blake  <ebb9@byu.net>
33808
33809         Silence warning in last patch.
33810         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
33811
33812         Quotearg part 4: add tests, fix c-maybe colon quoting.
33813         * lib/quotearg.h: Improve documentation.
33814         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
33815         escapes when adding outer quotes.  When quoting trigraphs, use
33816         valid C notation.  When quoting NUL, omit extra characters if next
33817         character is not digit.  Alter prototype.
33818         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
33819         callers.
33820         * modules/quotearg-tests: New module.
33821         * tests/test-quotearg.c: New test.
33822
33823 2008-02-07  Eric Blake  <ebb9@byu.net>
33824
33825         Quotearg part 3: add flag to control outer quote elision.
33826         * lib/quotearg.h (c_maybe_quoting_style): New style.
33827         (enum quoting_flags): Better documentation of flags.
33828         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
33829         c-maybe style.
33830         (quotearg_buffer_restyled): Handle new flag to elide outer
33831         quotes.
33832
33833         Quotearg part 2: add flag that can control NUL elision.
33834         * lib/quotearg.h (set_quoting_flags): New prototype.
33835         * lib/quotearg.c (struct quoting_options): Add flag field.
33836         (set_quoting_flags): New function.
33837         (quotearg_buffer_restyled): Add flags parameter.
33838         (quotearg_alloc_mem): Set the flag if length cannot be returned.
33839         (quotearg_n_options): Set the flag, since length cannot be
33840         returned.
33841         (quoting_options_from_style): Default flags correctly.
33842
33843         Quotearg part 1: more wrappers, restore quotearg_char state.
33844         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
33845         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
33846         (quotearg_colon_mem): New wrappers.
33847         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
33848         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
33849         functions.
33850         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
33851         (quotearg_colon_mem): New functions.
33852
33853 2008-02-11  Bruno Haible  <bruno@clisp.org>
33854
33855         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
33856         library in the current directory: it does not work with parallel make.
33857         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33858
33859 2008-02-11  Bruno Haible  <bruno@clisp.org>
33860
33861         * .gitattributes: New file.
33862
33863 2008-02-11  Jim Meyering  <meyering@redhat.com>
33864
33865         useless-if-before-free: Fix reversed exit values.
33866         * build-aux/useless-if-before-free: Use correct values
33867         for EXIT_MATCH and EXIT_NO_MATCH.
33868
33869         * build-aux/useless-if-before-free: Close stdout carefully.
33870
33871 2008-02-10  Bruno Haible  <bruno@clisp.org>
33872
33873         New module 'git-merge-changelog'.
33874         * modules/git-merge-changelog: New file.
33875         * lib/git-merge-changelog.c: New file.
33876
33877 2008-02-10  Jim Meyering  <meyering@redhat.com>
33878
33879         useless-if-before-free: New option: --list (-l).
33880
33881         useless-if-before-free: Don't exit immediately upon open failure.
33882         * build-aux/useless-if-before-free: Exit 2 for errors.
33883         Upon failure to open a file, don't exit immediately.
33884         Rather, just warn and continue with any remaining files.
33885
33886 2008-02-10  Bruno Haible  <bruno@clisp.org>
33887
33888         New abstract list operation 'node_set_value'.
33889         * lib/gl_list.h (gl_list_node_set_value): New function.
33890         (struct gl_list_implementation): New field node_set_value.
33891         * lib/gl_list.c (gl_list_node_set_value): New function.
33892         * lib/gl_array_list.c (gl_array_node_set_value): New function.
33893         (gl_array_list_implementation): Update.
33894         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
33895         (gl_carray_list_implementation): Update.
33896         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
33897         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33898         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33899         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
33900         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33901         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33902         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33903         Update.
33904         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
33905         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
33906         (gl_sublist_list_implementation): Update.
33907
33908 2008-02-10  Bruno Haible  <bruno@clisp.org>
33909
33910         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
33911         Needed when ELEMENT is #defined to 'some_type *'.
33912
33913 2008-02-10  Jim Meyering  <meyering@redhat.com>
33914
33915         New script and module: useless-if-before-free
33916         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
33917         * build-aux/useless-if-before-free: New file.
33918         * modules/useless-if-before-free: New file.
33919
33920         * build-aux/gitlog-to-changelog: Use committer date, not author date.
33921
33922         xstrtol_error: Fix typo.
33923         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
33924         s/exit_failure/exit_status/.
33925
33926 2008-02-09  Jim Meyering  <meyering@redhat.com>
33927
33928         New script and module: gitlog-to-changelog
33929         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
33930         * modules/gitlog-to-changelog: New file.
33931         * build-aux/gitlog-to-changelog: New file.
33932
33933 2008-02-08  Jim Meyering  <meyering@redhat.com>
33934
33935         Avoid two "parameter unused" warnings.
33936         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
33937         Mark "st" as used.
33938
33939         Use "git COMMAND", not "git-COMMAND".
33940         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
33941         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
33942         * build-aux/git-version-gen: Use "git status", not "git-status".
33943
33944 2008-02-07  Bruno Haible  <bruno@clisp.org>
33945
33946         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
33947         Avoids a crash on Windows Vista.
33948         Reported by Adam Strzelecki <ono@java.pl> via
33949         Simon Josefsson <simon@josefsson.org>.
33950
33951 2008-02-06  Bruno Haible  <bruno@clisp.org>
33952
33953         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
33954         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
33955         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
33956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
33957         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33958         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33959         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
33960         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
33961         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33962         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33963         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33964         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33965         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33966         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33967         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33968         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
33969         left-adjust flag.
33970         * tests/test-snprintf-posix.h (test_function): Likewise.
33971         * tests/test-sprintf-posix.h (test_function): Likewise.
33972         * tests/test-vasprintf-posix.c (test_function): Likewise.
33973         * doc/posix-functions/fprintf.texi: Update.
33974         * doc/posix-functions/printf.texi: Update.
33975         * doc/posix-functions/snprintf.texi: Update.
33976         * doc/posix-functions/sprintf.texi: Update.
33977         * doc/posix-functions/vfprintf.texi: Update.
33978         * doc/posix-functions/vprintf.texi: Update.
33979         * doc/posix-functions/vsnprintf.texi: Update.
33980         * doc/posix-functions/vsprintf.texi: Update.
33981         Reported by Peter Fales <psfales@alcatel-lucent.com>.
33982
33983 2008-02-06  Bruno Haible  <bruno@clisp.org>
33984
33985         Fix bug introduced on 2008-01-26.
33986         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
33987
33988 2008-02-06  Bruno Haible  <bruno@clisp.org>
33989
33990         Fix bug introduced on 2007-06-10.
33991         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
33992         !NEED_PRINTF_FLAG_ZERO.
33993
33994 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
33995
33996         getloadavg: use libperfstat on AIX5
33997         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
33998
33999 2008-02-03  Bruno Haible  <bruno@clisp.org>
34000
34001         * lib/diffseq.h: Add comments about required #includes.
34002         Reported by Michael Biggs <gnulib@doubleplum.net>.
34003
34004 2008-02-01  Bruno Haible  <bruno@clisp.org>
34005
34006         * users.txt: Add gnuit.
34007
34008 2008-01-31  Bruno Haible  <bruno@clisp.org>
34009
34010         * lib/md4.c (set_uint32): Mark as inline.
34011         * lib/md5.c (set_uint32): Likewise.
34012         * lib/sha1.c (set_uint32): Likewise.
34013         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
34014         * m4/md5.m4 (gl_MD5): Likewise.
34015         * m4/sha1.m4 (gl_SHA1): Likewise.
34016
34017 2008-01-31  Jim Meyering  <meyering@redhat.com>
34018
34019         Use "sizeof VAR", rather than a literal "4".
34020         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
34021         * lib/md4.c (md4_read_ctx): Likewise.
34022         * lib/sha1.c (sha1_read_ctx): Likewise.
34023
34024 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34025
34026         * tests/test-sha1.c: New file, based on test-md5.c.
34027
34028         * modules/crypto/sha1-tests: New file.
34029
34030 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34031
34032         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
34033
34034 2008-01-31  Jim Meyering  <meyering@redhat.com>
34035
34036         Prefer "sizeof v" over the equivalent "4".
34037         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
34038         * lib/md5.c (set_uint32): Likewise.
34039         * lib/sha1.c (set_uint32): Likewise.
34040
34041 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34042
34043         * lib/sha1.c (set_uint32): Mark function as static.
34044
34045 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34046
34047         md2: clarify comments to say that alignment is not required.
34048         * lib/md2.h: Remove warning about alignment in comment.
34049         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
34050         never been required.
34051
34052 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34053
34054         md4: adapt alignment constraint fix from sha1.
34055         * lib/md4.c (set_uint32): New function, from sha1.c
34056         (md4_read_ctx): Use it.
34057         (md4_finish_ctx): Doc fix.
34058         * lib/md4.h: Doc fix.
34059
34060 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34061
34062         md5: adapt alignment constraint fix from sha1.
34063         * lib/md5.c (set_uint32): New function, from sha1.c
34064         (md5_read_ctx): Use it.
34065         (md5_finish_ctx): Doc fix.
34066         * lib/md5.h: Doc fix.
34067
34068 2008-01-30  Peter Palfrader  <weasel@debian.org>
34069
34070         sha1: remove the result buffer alignment constraint
34071         * lib/sha1.c (set_uint32): New function.
34072         (sha1_read_ctx): Rewrite to remove the result buffer alignment
34073         constraint.
34074         (sha1_finish_ctx): Remove comment warning about alignment constraint.
34075         * lib/sha1.h: Likewise.
34076
34077 2008-01-30  Andreas Schwab  <schwab@suse.de>
34078             Bruno Haible  <bruno@clisp.org>
34079
34080         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
34081         correct definition of LDBL_MIN_EXP.
34082
34083 2008-01-30  Karl Berry  <karl@gnu.org>
34084
34085         * config/srclist-update: try to preserve x bit on updates.
34086         * config/srclistvars.sh: update for karl.
34087
34088 2008-01-29  Jim Meyering  <meyering@redhat.com>
34089
34090         vasnprintf.c: Avoid warning about unused label
34091         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
34092         "overflow" label definition and associated code with the
34093         same cpp condition that guards the sole use of that label.
34094
34095 2008-01-26  Bruno Haible  <bruno@clisp.org>
34096
34097         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
34098         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
34099         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
34100         * lib/isnanl-nolibm.h (isnanl): Likewise.
34101         Reported by Paul Eggert <eggert@cs.ucla.edu>.
34102
34103 2008-01-26  Bruno Haible  <bruno@clisp.org>
34104
34105         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
34106         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
34107
34108 2008-01-26  Bruno Haible  <bruno@clisp.org>
34109
34110         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
34111         GCC >= 4.0 built-in.
34112         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
34113
34114 2008-01-26  Bruno Haible  <bruno@clisp.org>
34115
34116         Rename isnan, applicable to 'double' only, to isnand.
34117         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
34118         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
34119         (configure.ac): Update.
34120         (Include): Replace "isnan.h" with "isnand.h".
34121         * m4/isnand.m4: Renamed from m4/isnan.m4.
34122         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
34123         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
34124         instead of isnan.c.
34125         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
34126         instead of HAVE_ISNAN_IN_LIBC.
34127         (isnand): Renamed from isnan.
34128         * lib/isnand.c: New file.
34129         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
34130         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
34131         (Makefile.am): Update.
34132         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
34133         Include isnand.h instead of isnan.h.
34134         (main): Test isnand instead of isnan.
34135         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
34136         isnan-nolibm.
34137         * modules/frexp (Depends-on): Likewise.
34138         * modules/frexp-tests (Depends-on): Likewise.
34139         * modules/frexp-nolibm (Depends-on): Likewise.
34140         * modules/frexp-nolibm-tests (Depends-on): Likewise.
34141         * modules/isfinite (Depends-on): Likewise.
34142         * modules/round-tests (Depends-on): Likewise.
34143         * modules/signbit (Depends-on): Likewise.
34144         * modules/signbit-tests (Depends-on): Likewise.
34145         * modules/snprintf-posix (Depends-on): Likewise.
34146         * modules/sprintf-posix (Depends-on): Likewise.
34147         * modules/trunc-tests (Depends-on): Likewise.
34148         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34149         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34150         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34151         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34152         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34153         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34154         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34155         * modules/vasnprintf-posix (Depends-on): Likewise.
34156         * modules/vasprintf-posix (Depends-on): Likewise.
34157         * modules/vfprintf-posix (Depends-on): Likewise.
34158         * modules/vsnprintf-posix (Depends-on): Likewise.
34159         * modules/vsprintf-posix (Depends-on): Likewise.
34160         * lib/frexp.c: Include isnand.h instead of isnan.h.
34161         (ISNAN): Set to isnand instead of isnan.
34162         * lib/isfinite.c: Include isnand.h instead of isnan.h.
34163         (gl_isfinited): Use isnand instead of isnan.
34164         * lib/signbitd.c: Include isnand.h instead of isnan.h.
34165         (gl_signbitd): Use isnand instead of isnan.
34166         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
34167         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
34168         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
34169         (main): Use isnand instead of isnan.
34170         * tests/test-round1.c: Include isnand.h.
34171         (main): Use isnand instead of isnan.
34172         * tests/test-round2.c: Include isnand.h instead of isnan.h.
34173         (ISNAN): Set to isnand instead of isnan.
34174         * tests/test-trunc1.c: Include isnand.h.
34175         (main): Use isnand instead of isnan.
34176         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
34177         (equal): Use isnand instead of isnan.
34178         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
34179         isnand-nolibm.
34180         * NEWS: Mention the change.
34181
34182 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
34183             Bruno Haible  <bruno@clisp.org>
34184
34185         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
34186         the GCC builtins for signbits are present and set
34187         REPLACE_SIGNBIT_USING_GCC if so.
34188         * lib/math.in.h (signbit): Define using GCC builtins if
34189         REPLACE_SIGNBIT_USING_GCC is set.
34190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
34191         REPLACE_SIGNBIT_USING_GCC.
34192         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
34193
34194 2008-01-25  Jim Meyering  <meyering@redhat.com>
34195
34196         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
34197         * lib/poll.c: Include <config.h>, not "config.h".
34198         * tests/test-getaddrinfo.c: Likewise.
34199
34200 2008-01-25  Simon Josefsson  <simon@josefsson.org>
34201
34202         * modules/sockets-tests: New file.
34203
34204 2008-01-24  Simon Josefsson  <simon@josefsson.org>
34205
34206         * modules/sockets: New module, can be used to call WSA_Startup and
34207         WSA_Cleanup when needed.
34208
34209         * lib/sockets.h, lib/sockets.c: New files.
34210
34211         * m4/sockets.m4: New file.
34212
34213         * tests/test-sockets.c: New file.
34214
34215 2008-01-19  Bruno Haible  <bruno@clisp.org>
34216
34217         * doc/posix-headers: Renamed from doc/headers.
34218         * doc/posix-functions: Renamed from doc/functions.
34219         * doc/gnulib.texi: Update.
34220
34221 2008-01-19  Bruno Haible  <bruno@clisp.org>
34222
34223         * doc/glibc-functions/strcasestr.texi: Include contents of
34224         doc/functions/strcasestr.texi, fixing the list of platforms.
34225         * doc/functions/strcasestr.texi: Remove file.
34226
34227 2008-01-19  Bruno Haible  <bruno@clisp.org>
34228
34229         * doc/glibc-functions/memmem.texi: Include contents of
34230         doc/functions/memmem.texi.
34231         * doc/functions/memmem.texi: Remove file.
34232
34233 2008-01-18  Bruno Haible  <bruno@clisp.org>
34234
34235         * doc/glibc-functions/*.texi: New files.
34236         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
34237         to use the new files.
34238
34239 2008-01-17  Bruno Haible  <bruno@clisp.org>
34240
34241         * tests/test-gethostname.c (main): Fix printf statement.
34242
34243 2008-01-17  Simon Josefsson  <simon@josefsson.org>
34244
34245         * modules/gethostname-tests: New file.
34246
34247         * tests/test-gethostname.c: New file.
34248
34249 2008-01-17  Simon Josefsson  <simon@josefsson.org>
34250
34251         * lib/gethostname.c: Include string.h unconditionally, strncpy is
34252         used by the UNAME case.  Reported by Bruno Haible
34253         <bruno@clisp.org>.
34254
34255 2008-01-17  Eric Blake  <ebb9@byu.net>
34256
34257         Convert c-strcasestr to be more efficient.
34258         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
34259         (Depends-on): Add c-strcase, remove malloca, strnlen.
34260         * tests/test-c-strcasestr.c (main): Enhance test.
34261         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
34262
34263 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
34264
34265         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
34266         Use it in creating po/Makevars.
34267
34268 2008-01-15  Simon Josefsson  <simon@josefsson.org>
34269
34270         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
34271         Applications that requires it should initialize libgcrypt
34272         manually.
34273
34274 2008-01-16  Simon Josefsson  <simon@josefsson.org>
34275
34276         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
34277
34278 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
34279
34280         Fix problem with getdate on mingw32 reported by Simon Josefsson
34281         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
34282         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
34283         tzname", when deciding whether to declare tzname.
34284         * lib/strftime.c (tzname): Likewise.
34285
34286 2008-01-15  Bruno Haible  <bruno@clisp.org>
34287
34288         Work around a MacOS X 10.5 bug in frexpl().
34289         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
34290         * doc/functions/frexpl.texi: Document the bug.
34291         Reported by Elias Pipping <pipping@gentoo.org>.
34292
34293 2008-01-14  Eric Blake  <ebb9@byu.net>
34294
34295         Touch up previous patch.
34296         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
34297         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
34298
34299         Convert strcasestr module to use Two-Way algorithm.
34300         * modules/strcasestr-simple: New module, based on the old
34301         strcasestr, but with Two-Way rather than KMP.
34302         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
34303         * lib/string.in.h (rpl_strcasestr): Declare.
34304         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
34305         performance.
34306         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
34307         * modules/string (Makefile.am): Support strcasestr.
34308         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34309         * modules/strcasestr-tests (Depends-on): Check for alarm.
34310         * tests/test-strcasestr.c: Augment test.
34311         * lib/str-two-way.h: Clean up stray macro.
34312         * NEWS: Document new module.
34313         * MODULES.html.sh (string handling): Likewise.
34314         * doc/functions/strcasestr.texi: New file.
34315         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
34316         here, since it is not a POSIX function.
34317
34318 2008-01-14  Colin Watson  <cjwatson@debian.org>
34319             Bruno Haible  <bruno@clisp.org>
34320
34321         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
34322         works fine; if not, set REPLACE_STRSIGNAL.
34323         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
34324         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34325         REPLACE_STRSIGNAL.
34326         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
34327         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
34328         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
34329
34330 2008-01-14  Bruno Haible  <bruno@clisp.org>
34331
34332         * modules/strsignal (Include): Change to <string.h>.
34333
34334 2008-01-14  Colin Watson  <cjwatson@debian.org>
34335
34336         * modules/argp (Notice): Add a notice recommending to change
34337         XGETTEXT_OPTIONS.
34338         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
34339
34340 2008-01-13  Colin Watson  <cjwatson@debian.org>
34341
34342         * modules/strsignal-tests: New file.
34343         * tests/test-strsignal.c: New file.
34344
34345         * lib/strsignal.c: New file, from glibc with modifications.
34346         * lib/siglist.h: New file, from glibc with modifications.
34347         * lib/string.in.h (strsignal): New declaration.
34348         * m4/strsignal.m4: New file.
34349         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34350         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
34351         * modules/strsignal: New file.
34352         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
34353         HAVE_DECL_STRSIGNAL.
34354
34355 2008-01-13  Bruno Haible  <bruno@clisp.org>
34356
34357         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
34358         locale encoding is not ASCII. Needed for OpenBSD 4.0.
34359         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
34360         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34361
34362 2008-01-13  Bruno Haible  <bruno@clisp.org>
34363
34364         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
34365         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
34366         * lib/argp.h (__attribute__): Likewise.
34367         * lib/c-stack.c (__attribute__): Likewise.
34368         * lib/error.h (__attribute__): Likewise.
34369         * lib/fts.c (__attribute__): Likewise.
34370         * lib/openat.h (__attribute__): Likewise.
34371         * lib/stdio.in.h (__attribute__): Likewise.
34372         * lib/string.in.h (__attribute__): Likewise.
34373         * lib/utimens.c (__attribute__): Likewise.
34374         * lib/vasnprintf.h (__attribute__): Likewise.
34375         * lib/xalloc.h (__attribute__): Likewise.
34376         * lib/xprintf.h (__attribute__): Likewise.
34377         * lib/xstrtol.h (__attribute__): Likewise.
34378         * lib/xvasprintf.h (__attribute__): Likewise.
34379
34380 2008-01-12  Bruno Haible  <bruno@clisp.org>
34381
34382         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
34383         * doc/glibc-headers/a.out.texi: New file.
34384         * doc/glibc-headers/aliases.texi: New file.
34385         * doc/glibc-headers/alloca.texi: New file.
34386         * doc/glibc-headers/ar.texi: New file.
34387         * doc/glibc-headers/argp.texi: New file.
34388         * doc/glibc-headers/argz.texi: New file.
34389         * doc/glibc-headers/byteswap.texi: New file.
34390         * doc/glibc-headers/crypt.texi: New file.
34391         * doc/glibc-headers/endian.texi: New file.
34392         * doc/glibc-headers/envz.texi: New file.
34393         * doc/glibc-headers/err.texi: New file.
34394         * doc/glibc-headers/error.texi: New file.
34395         * doc/glibc-headers/execinfo.texi: New file.
34396         * doc/glibc-headers/fpu_control.texi: New file.
34397         * doc/glibc-headers/fstab.texi: New file.
34398         * doc/glibc-headers/fts.texi: New file.
34399         * doc/glibc-headers/getopt.texi: New file.
34400         * doc/glibc-headers/ieee754.texi: New file.
34401         * doc/glibc-headers/ifaddrs.texi: New file.
34402         * doc/glibc-headers/libintl.texi: New file.
34403         * doc/glibc-headers/mcheck.texi: New file.
34404         * doc/glibc-headers/mntent.texi: New file.
34405         * doc/glibc-headers/obstack.texi: New file.
34406         * doc/glibc-headers/paths.texi: New file.
34407         * doc/glibc-headers/printf.texi: New file.
34408         * doc/glibc-headers/pty.texi: New file.
34409         * doc/glibc-headers/resolv.texi: New file.
34410         * doc/glibc-headers/shadow.texi: New file.
34411         * doc/glibc-headers/sysexits.texi: New file.
34412         * doc/glibc-headers/ttyent.texi: New file.
34413
34414 2008-01-12  Jim Meyering  <meyering@redhat.com>
34415
34416         announce-gen: emit Gnulib's git-based version string.
34417         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
34418         New option --gnulib-version=V, where V is expected to be
34419         the output of running git describe in the gnulib directory.
34420         (get_tool_versions): Request feedback on xdelta.  I suspect it's
34421         not useful, and plan to stop publishing an xdelta file with each
34422         coreutils release.
34423
34424         * build-aux/announce-gen: Also check for lzma-compressed files.
34425
34426 2008-01-11  Bruno Haible  <bruno@clisp.org>
34427
34428         * tests/test-memmem.c (main): Increase maximum allowed time.
34429         * tests/test-strstr.c (main): Likewise.
34430
34431 2008-01-11  Bruno Haible  <bruno@clisp.org>
34432
34433         * doc/functions/memmem.texi: Add more precisions about platforms.
34434         * doc/functions/strstr.texi: Likewise.
34435
34436 2008-01-10  Eric Blake  <ebb9@byu.net>
34437
34438         * m4/strstr.m4: Delete cruft from copy-n-paste.
34439         Reported by Bruno Haible.
34440
34441 2008-01-10  Bruno Haible  <bruno@clisp.org>
34442
34443         Make c-strstr rely on strstr.
34444         * lib/c-strstr.c: Don't include str-kmp.h.
34445         (c_strstr): Define in terms of strstr.
34446         * modules/c-strstr (Files): Remove lib/str-kmp.h.
34447         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
34448
34449 2008-01-10  Bruno Haible  <bruno@clisp.org>
34450
34451         * doc/gnulib.texi (String Functions in C Locale): New section.
34452         * doc/c-ctype.texi: New file.
34453         * doc/c-strcase.texi: New file.
34454         * doc/c-strcaseeq.texi: New file.
34455         * doc/c-strcasestr.texi: New file.
34456         * doc/c-strstr.texi: New file.
34457         * doc/c-strtod.texi: New file.
34458         * doc/c-strtold.texi: New file.
34459
34460 2008-01-10  Eric Blake  <ebb9@byu.net>
34461
34462         * lib/relocatable.h: Fix a comment.
34463
34464 2008-01-10  Eric Blake  <ebb9@byu.net>
34465
34466         Share two-way algorithm.
34467         * lib/str-two-way.h: New file, merged from...
34468         * lib/memmem.c: ...here...
34469         * lib/strstr.c: ...and here.
34470         * modules/memmem (Files): Use it.
34471         * modules/strstr (Files): Likewise.
34472
34473         Avoid quadratic strstr implementations.
34474         * lib/strstr.c: New file.
34475         * m4/strstr.m4: Likewise.
34476         * modules/strstr: Likewise.
34477         * modules/strstr-tests: Likewise.
34478         * tests/test-strstr.c: Likewise.
34479         * lib/string.in.h (rpl_strstr): Declare.
34480         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
34481         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
34482         * modules/string (Makefile.am): Likewise.
34483         * MODULES.html.sh (string handling): Mention new module.
34484         * doc/functions/strstr.texi (strstr): Document the bug.
34485
34486 2008-01-10  Bruno Haible  <bruno@clisp.org>
34487
34488         * lib/relocatable.h (relocate): State whether result is freshly
34489         allocated or not.
34490         * lib/relocatable.c (relocate): Return a freshly allocated string
34491         instead of a pointer to a privately held string.
34492         Reported by Sylvain Beucler <beuc@gnu.org>.
34493
34494 2008-01-10  Colin Watson  <cjwatson@debian.org>
34495
34496         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
34497         s/S_ISNLK/S_ISLNK/.
34498
34499 2008-01-09  Bruno Haible  <bruno@clisp.org>
34500
34501         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
34502         and other files.
34503         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
34504         if it's only a guess.
34505         * modules/memmem: Simplify by depending on memmem-simple.
34506
34507 2008-01-09  Bruno Haible  <bruno@clisp.org>
34508
34509         Work around OpenBSD 4.0 tdelete() bug.
34510         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
34511         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
34512         macros and don't redefine the enum values.
34513         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
34514         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
34515         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
34516
34517 2008-01-09  Bruno Haible  <bruno@clisp.org>
34518
34519         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
34520         (main): Don't perform the tests if setlocale did not install a UTF-8
34521         locale. Needed on OpenBSD 4.0.
34522         * modules/wcwidth-tests (Depends-on): Add localcharset.
34523
34524 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34525
34526         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
34527         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
34528         * NEWS: announce this.
34529         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
34530
34531 2008-01-09  Simon Josefsson  <simon@josefsson.org>
34532         and Eric Blake  <ebb9@byu.net>
34533
34534         Add memmem-simple module.
34535         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
34536         (gl_FUNC_MEMMEM): Separate performance from presence checks.
34537         * modules/memmem-simple: New file.
34538         * modules/memmem (Description): Tweak.
34539         * MODULES.html.sh (string handling): Mention new module.
34540         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
34541         addressed by memmem-simple.
34542         * NEWS: Document the difference.
34543
34544 2008-01-09  Eric Blake  <ebb9@byu.net>
34545
34546         Give gcc some memmem optimization hints.
34547         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
34548         (strcasestr): Declare as pure.
34549         * modules/memmem (Maintainer): Claim my implementation.
34550
34551 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34552
34553         Support AIX 6.1 and higher.
34554         * build-aux/config.libpath: Likewise.
34555         * build-aux/config.rpath: Likewise.
34556
34557 2008-01-08  Jim Meyering  <meyering@redhat.com>
34558             Bruno Haible  <bruno@clisp.org>
34559
34560         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
34561         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
34562         Reported by Peter Fales in
34563         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
34564
34565 2008-01-08  Bruno Haible  <bruno@clisp.org>
34566
34567         * modules/unictype/category-of (Depends-on): Add
34568         unictype/category-none.
34569         * modules/unictype/category-and-tests (Depends-on): Add
34570         unictype/category-{L,N,Lu,Nd}.
34571         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
34572         * modules/unictype/category-or-tests (Depends-on): Add
34573         unictype/category-{L,N}.
34574         * modules/unictype/category-name-tests (Depends-on): Add
34575         unictype/category-{Z,Nl}.
34576         Reported by Simon Josefsson.
34577
34578 2008-01-08  Bruno Haible  <bruno@clisp.org>
34579
34580         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
34581         convention better.
34582         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
34583         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
34584         Reported by Peter Miller <millerp@canb.auug.org.au>.
34585
34586 2008-01-08  Eric Blake  <ebb9@byu.net>
34587
34588         Rewrite memmem to guarantee linear complexity without malloc.
34589         * lib/memmem.c (memmem): Use Two-Way rather than
34590         Knuth-Morris-Pratt, to allow O(1) space usage.
34591         (critical_factorization, two_way_short_needle)
34592         (two_way_long_needle): New functions.
34593         (knuth_morris_pratt): Delete.
34594         * modules/memmem (Depends-on): No longer need malloca or stdbool.
34595         Add stdint.
34596         * tests/test-memmem.c (main): Add tests for periodic needle and
34597         sublinear performance.
34598         * doc/functions/memmem.texi (memmem): Document other deficiencies
34599         in cygwin and older glibc.
34600
34601 2008-01-08  Bruno Haible  <bruno@clisp.org>
34602
34603         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
34604         augmentation.
34605
34606 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
34607
34608         Add a configure time option: --disable-acl.
34609         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
34610         AC_ARG_ENABLE(acl).
34611
34612 2008-01-06  Simon Josefsson  <simon@josefsson.org>
34613
34614         * tests/test-localename.c: Don't include obsolete "setenv.h".
34615
34616         * modules/localename-tests (Depends-on): Need unsetenv.
34617
34618 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34619
34620         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
34621
34622 2008-01-06  Colin Watson  <cjwatson@debian.org>
34623
34624         * users.txt: Add man-db.
34625
34626 2008-01-07  Bruno Haible  <bruno@clisp.org>
34627
34628         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
34629         previous section name.
34630
34631 2008-01-07  Bruno Haible  <bruno@clisp.org>
34632
34633         * lib/progname.c (set_program_name): Don't strip off a leading
34634         "lt-" prefix outside a .libs directory.
34635         Suggested by Paul Eggert.
34636
34637 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
34638             Bruno Haible  <bruno@clisp.org>
34639
34640         Improve memory cleanup in 'relocatable' module.
34641         * lib/relocatable.h (compute_curr_prefix): Change return type to
34642         'char *'.
34643         * lib/relocatable.c (compute_curr_prefix): Change return type to
34644         'char *'. Free curr_installdir after use.
34645         (relocate): Free curr_prefix_better after use.
34646         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
34647
34648 2008-01-01  Bruno Haible  <bruno@clisp.org>
34649
34650         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
34651         failure on older glibc systems.
34652         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34653
34654 2008-01-05  Eric Blake  <ebb9@byu.net>
34655
34656         Avoid quadratic system memmem.
34657         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
34658         Reported by Ralf Wildenhues.
34659
34660         Fix memmem test for mingw.
34661         * modules/memmem-tests (configure.ac): Check for alarm.
34662         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
34663         it.
34664         * doc/functions/memmem.texi: New file.
34665         * doc/gnulib.texi (Function Substitutes): Add memmem.
34666         Reported by Bruno Haible.
34667
34668 2008-01-04  Bruno Haible  <bruno@clisp.org>
34669
34670         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
34671         Require gl_HEADER_STRINGS_H_DEFAULTS, not
34672         gl_HEADER_STRING_H_DEFAULTS.
34673
34674 2008-01-04  Eric Blake  <ebb9@byu.net>
34675
34676         Shorten duration of memmem test.
34677         * tests/test-memmem.c (main): Use alarm to declare failure if test
34678         is taking too long.
34679         Reported by Ralf Wildenhues.
34680
34681 2007-12-21  Simon Josefsson  <simon@josefsson.org>
34682
34683         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
34684         string, needed by strerror.
34685
34686 2008-01-03  Colin Watson  <cjwatson@debian.org>
34687             Bruno Haible  <bruno@clisp.org>
34688
34689         * doc/gnulib-tool.texi (Localization): New section.
34690
34691 2008-01-02  Bruno Haible  <bruno@clisp.org>
34692
34693         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
34694         variables to 'unsigned char *' type.
34695         Reported by Paul Eggert.
34696
34697 2008-01-02  Jim Meyering  <jim@meyering.net>
34698
34699         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
34700
34701 2007-12-31  Jim Meyering  <jim@meyering.net>
34702
34703         Avoid use of private FTS type name.
34704         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
34705
34706 2007-12-30  Karl Berry  <karl@gnu.org>
34707
34708         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
34709         work around defect in Texinfo and/or the standalone Info browser.
34710
34711 2007-12-30  Bruno Haible  <bruno@clisp.org>
34712
34713         Unify 5 copies of the KMP code.
34714         * lib/str-kmp.h: New file.
34715         * lib/c-strcasestr.c: Include str-kmp.h.
34716         (knuth_morris_pratt): Remove function.
34717         (c_strcasestr): Update.
34718         * lib/c-strstr.c: Include str-kmp.h.
34719         (knuth_morris_pratt): Remove function.
34720         (c_strcasestr): Update.
34721         * lib/mbscasestr.c: Include str-kmp.h.
34722         (knuth_morris_pratt_unibyte): Remove function.
34723         * lib/mbsstr.c: Include str-kmp.h.
34724         (knuth_morris_pratt_unibyte): Remove function.
34725         * lib/strcasestr.c: Include str-kmp.h.
34726         (knuth_morris_pratt): Remove function.
34727         (strcasestr): Update.
34728         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
34729         * modules/c-strstr (Files): Likewise.
34730         * modules/mbscasestr (Files): Likewise.
34731         * modules/mbsstr (Files): Likewise.
34732         * modules/strcasestr (Files): Likewise.
34733         Suggested by Paul Eggert.
34734
34735 2007-12-30  Bruno Haible  <bruno@clisp.org>
34736
34737         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
34738         defined.
34739
34740 2007-12-30  Bruno Haible  <bruno@clisp.org>
34741
34742         * lib/xmalloca.h: Include xalloc.h.
34743         (xnmalloca): New macro.
34744
34745 2007-12-30  Bruno Haible  <bruno@clisp.org>
34746
34747         * lib/malloca.h (nmalloca): New macro.
34748         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
34749         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
34750         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
34751         knuth_morris_pratt_multibyte): Likewise.
34752         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
34753         knuth_morris_pratt_multibyte): Likewise.
34754         * lib/memmem.c (knuth_morris_pratt): Likewise.
34755         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
34756
34757 2007-12-25  Bruno Haible  <bruno@clisp.org>
34758
34759         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
34760         * lib/glob.c: Don't include openat.h.
34761         (link_exists2_p): Add back the code that deals with the
34762         !GLOB_ALTDIRFUNC case.
34763         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
34764         let it do the filename concatenation.
34765         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
34766         * modules/glob (Depends-on): Remove openat.
34767
34768 2007-12-31  Bruno Haible  <bruno@clisp.org>
34769
34770         * modules/dirfd (License): Change to LGPLv2+.
34771         Approved by Jim Meyering.
34772
34773 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
34774
34775         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
34776         when multiplying M by sizeof (size_t).
34777
34778 2007-12-10  Martin Lambers  <marlam@marlam.de>
34779
34780         Override getpagesize on mingw.
34781         * lib/getpagesize.c: New file.
34782         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
34783         * modules/getpagesize (Files): Add lib/getpagesize.c.
34784         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
34785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34786         REPLACE_GETPAGESIZE.
34787         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
34788
34789 2007-12-25  Bruno Haible  <bruno@clisp.org>
34790
34791         * modules/localcharset (Notice): New field.
34792         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
34793         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
34794
34795 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
34796             Bruno Haible  <bruno@clisp.org>
34797
34798         Avoid using the syntax symbol() in formatted documentation.
34799         * MODULES.html.sh (func_module): When replacing symbol() with a
34800         hyperlink, remove the parentheses. Show an error if some remain.
34801         Recognize and render the '...' syntax.
34802         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
34803         Rework. Add paragraph about GCC's inlining.
34804         * doc/alloca.texi: Likewise.
34805         * doc/error.texi: Remove parentheses from symbol reference.
34806         * doc/gnulib-intro.texi: Likewise.
34807         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
34808         * modules/fnmatch (Description): Reword to say "the ... function".
34809         * modules/full-read (Description): Likewise.
34810         * modules/full-write (Description): Likewise.
34811         * modules/safe-read (Description): Likewise.
34812         * modules/safe-write (Description): Likewise.
34813         * modules/strchrnul (Description): Likewise.
34814         * modules/trim (Description): Likewise.
34815         * modules/error (Description): Remove parentheses from symbol
34816         references.
34817         * modules/verror (Description): Likewise.
34818         Reported by Karl Berry.
34819
34820 2007-12-25  Bruno Haible  <bruno@clisp.org>
34821
34822         Fixup after 2007-10-16 commit.
34823         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
34824
34825 2007-12-24  Bruno Haible  <bruno@clisp.org>
34826
34827         Make --enable-relocatable work with DESTDIR.
34828         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
34829         to compute installdir from destprog.
34830         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
34831         also set the RELOC_DESTDIR variable.
34832         Reported by Левашев Иван <octagram@bluebottle.com>.
34833
34834 2007-12-24  Bruno Haible  <bruno@clisp.org>
34835
34836         Fix link error due to xalloc_die().
34837         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
34838         of xreadlink.
34839         * lib/relocwrapper.c: Update comments.
34840         * build-aux/install-reloc: Remove xreadlink.c from file list.
34841         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
34842         xreadlink.c.
34843         Reported by Левашев Иван <octagram@bluebottle.com>.
34844
34845 2007-12-24  Bruno Haible  <bruno@clisp.org>
34846
34847         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
34848         * lib/setenv.h: Remove file.
34849         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
34850         lib/setenv.h.
34851         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
34852         (Depends-on): Add stdlib.
34853         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
34854         gl_FUNC_UNSETENV.
34855         (Include): Replace setenv.h with <stdlib.h>.
34856         * modules/unsetenv: New file.
34857         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
34858         * lib/unsetenv.c: Include <stdlib.h> first.
34859         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
34860         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
34861         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
34862         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
34863         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
34864         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
34866         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34867         * doc/functions/unsetenv.texi: Update.
34868         * modules/xsetenv (Depends-on): Add unsetenv.
34869         * modules/getdate (Depends-on): Likewise.
34870         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
34871         * lib/xsetenv.c: Don't include setenv.h.
34872         * lib/getdate.y: Likewise.
34873         * lib/relocwrapper.c: Likewise.
34874         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
34875         (Depends-on): Add stdlib.
34876         * NEWS: Mention the changes.
34877         Reported by Левашев Иван <octagram@bluebottle.com>.
34878
34879 2007-12-23  Bruno Haible  <bruno@clisp.org>
34880
34881         * lib/memmem.c (memmem): Use lowercase variable names. Tab
34882         indentation.
34883
34884 2007-12-23  Bruno Haible  <bruno@clisp.org>
34885
34886         * lib/c-strcasestr.c: Add more comments.
34887         * lib/c-strstr.c: Likewise.
34888         * lib/mbscasestr.c: Likewise.
34889         * lib/mbsstr.c: Likewise.
34890         * lib/strcasestr.c: Likewise.
34891         * lib/memmem.c: Likewise.
34892
34893 2007-12-23  Bruno Haible  <bruno@clisp.org>
34894
34895         * tests/test-memmem.c: Include <string.h> first.
34896
34897 2007-12-22  Bruno Haible  <bruno@clisp.org>
34898
34899         * gnulib-tool (func_create_testdir): Change $auxdir while generating
34900         the contents of $testsbase.
34901         Reported by Ralf Wildenhues.
34902
34903 2007-12-22  Bruno Haible  <bruno@clisp.org>
34904
34905         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
34906         two variables local_ldadd_before, local_ldadd_last.
34907
34908 2007-12-20  Eric Blake  <ebb9@byu.net>
34909
34910         Work around circular library issue when cross-compiling.
34911         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
34912         that progname.o does not need to pull in rpl_memcmp.
34913
34914 2007-12-19  Eric Blake  <ebb9@byu.net>
34915
34916         Fix memmem to avoid O(n^2) worst-case complexity.
34917         * lib/memmem.c (knuth_morris_pratt): New function.
34918         (memmem): Use it if first few naive iterations fail.
34919         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
34920         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
34921         * modules/memchr (License): Likewise.
34922         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
34923         malloca.
34924         * tests/test-memmem.c: Rewrite, borrowing ideas from
34925         test-mbsstr1.c; the old version wouldn't even compile!
34926         * modules/memmem-tests: New file.
34927         * lib/string.in.h (rpl_memmem): Add declaration.
34928         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
34929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
34930         REPLACE_MEMMEM.
34931
34932 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34933
34934         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
34935         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
34936         before any system include files, and undef after them all.  This
34937         should fix a problem on VMS reported by John E. Malmberg in
34938         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
34939
34940 2007-12-17  Eric Blake  <ebb9@byu.net>
34941
34942         Revert addition of verify, for BSD/OS.
34943         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
34944         can't handle large files, for the sake of obsolete platforms.
34945         * modules/fseeko (Depends-on): Remove verify.
34946         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
34947         * doc/functions/ftello.texi (ftello): Likewise.
34948         * doc/functions/fgetpos.texi (fgetpos): Likewise.
34949         Reported by Larry Jones.
34950
34951 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
34952
34953         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
34954         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
34955
34956 2007-12-17  Jim Meyering  <meyering@redhat.com>
34957
34958         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
34959         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
34960         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
34961         * modules/getcwd (Depends-on): Add openat.
34962         Reported by Petr Salinger.
34963
34964 2007-12-17  Bruno Haible  <bruno@clisp.org>
34965
34966         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
34967         avoid a segmentation fault of the configure test on x86_64 systems.
34968
34969 2007-12-15  Jim Meyering  <meyering@redhat.com>
34970
34971         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
34972
34973 2007-12-13  Eric Blake  <ebb9@byu.net>
34974
34975         Another fseek test.
34976         * tests/test-fseek.c (main): Also test ungetc handling.
34977         * tests/test-fseeko.c (main): Likewise.
34978         * modules/fseeko (Depends-on): Add verify.
34979         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
34980         large.
34981         Reported by Larry Jones.
34982
34983         Fix fseeko on mingw.
34984         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
34985         seek.
34986
34987         Beef up fseek tests.
34988         * tests/test-fseek.c (main): Also test eof handling.
34989         * tests/test-fseeko.c (main): Likewise.
34990         Reported by Larry Jones.
34991
34992 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
34993
34994         Fix fseeko on BSD-based platforms.
34995         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
34996         successful seek.
34997
34998 2007-12-12  Eric Blake  <ebb9@byu.net>
34999
35000         Allow circular dependency of separate libtests.a
35001         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
35002         when use_libtests.
35003
35004 2007-12-11  Eric Blake  <ebb9@byu.net>
35005
35006         Fix bug with -0.0L in previous patch.
35007         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
35008         * tests/test-isnan.c (main): Also test on zeroes.
35009         * tests/test-isnanf.c (main): Likewise.
35010         * tests/test-isnanl.h (main): Likewise.
35011
35012         Detect pseudo-denormals on x86 even when cross-compiling.
35013         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
35014         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
35015         invalid bit patterns that happen to satisfy ==.
35016
35017         Avoid link failures with separate libtests.a.
35018         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
35019         last, to satisfy circular dependencies.
35020
35021 2007-12-11  Eric Blake  <ebb9@byu.net>
35022         and Bruno Haible  <bruno@clisp.org>
35023
35024         Fix OpenBSD 4.0 <float.h> handling of long double.
35025         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
35026         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
35027         * doc/headers/float.texi (float.h): Document OpenBSD bug.
35028
35029 2007-12-11  Jim Meyering  <meyering@redhat.com>
35030
35031         * users.txt: Add libvirt.
35032
35033         Support versions of autoconf prior to 2.59c.
35034         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
35035         if it is not already defined.
35036
35037 2007-12-09  Bruno Haible  <bruno@clisp.org>
35038
35039         Let 'gnulib-tool --import' collect sources needed for the tests in
35040         tests/ rather than in lib/.
35041         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
35042         argument. If true, add rules to generate libtests.a, and put libtests.a
35043         into $(LDADD). Consider source files in subdirectories and set
35044         uses_subdirs.
35045         (func_emit_initmacro_start, func_emit_initmacro_end,
35046         func_emit_initmacro_done): Pass all arguments explicitly.
35047         (func_import): Determine two module lists main_modules,
35048         testsrelated_modules. Determine use_libtests. Determine two variables
35049         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
35050         instead of just sed_transform_lib_file. Determine two variables
35051         main_files and testsrelated_files. Compute 'files' as the union of
35052         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
35053         func_add_or_update. In the generated gnulib-comp.m4, collect the
35054         object files for tests/ in different variables than those for lib/.
35055         Substitute LIBTESTS_LIBDEPS.
35056         (func_create_testdir): Combine the uses_subdirs results from
35057         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
35058
35059 2007-12-09  Bruno Haible  <bruno@clisp.org>
35060
35061         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
35062         the build-aux directory.
35063
35064 2007-12-09  Bruno Haible  <bruno@clisp.org>
35065
35066         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
35067         introduced on 2006-09-09.
35068
35069 2007-12-07  Jim Meyering  <meyering@redhat.com>
35070
35071         Let these macros work also with autoconf-2.59.
35072         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
35073         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
35074         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
35075
35076 2007-12-06  Jim Meyering  <meyering@redhat.com>
35077
35078         Avoid a configure-time syntax error in gl_FUNC_ACL.
35079         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
35080         function in each branch, before testing the cache variable.
35081
35082 2007-12-04  Eric Blake  <ebb9@byu.net>
35083
35084         Make scripts executable.
35085         * build-aux/config.guess: Add execute permissions.
35086         * build-aux/config.sub: Likewise.
35087         * build-aux/gendocs.sh: Likewise.
35088
35089         Fix frexp on mingw.
35090         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
35091         cross-compiling.
35092         * doc/functions/frexp.texi (frexp): Document the bug.
35093
35094         Make cygwin fseeko check more reliable.
35095         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
35096         version numbers, rather than unrelated feature check.
35097         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
35098         * doc/functions/ftello.texi (ftello): Likewise.
35099         Reported by Bruno Haible.
35100
35101         * m4/strerror.m4: Bump version number.
35102
35103 2007-12-03  Bruno Haible  <bruno@clisp.org>
35104
35105         * doc/functions/mprotect.texi: Mention the mingw problem.
35106
35107 2007-12-03  Eric Blake  <ebb9@byu.net>
35108
35109         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
35110         REPLACE_STRERROR is initialized before this macro.
35111
35112 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
35113
35114         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
35115         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
35116         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
35117         put -lsec in even for programs other than 'ls'.  This fixes a problem
35118         for gettext reported by Bruno Haible in
35119         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
35120         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
35121         Add support for Solaris 10.  This isn't efficient, but should get the
35122         job done for now.
35123
35124 2007-12-03  James Youngman  <jay@gnu.org>
35125
35126         * doc/regexprops-generic.texi: change "an close-group" to "a
35127         close-group" and "illegal" to "not allowed".
35128
35129 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35130
35131         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
35132         pr_byname.h. Needed for the rare case when the maintainer has done
35133         "make maintainer-clean" in the source directory and then attempts a
35134         build outside the source directory.
35135         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
35136         scripts_byname.h.
35137
35138 2007-12-02  Martin Lambers <marlam@marlam.de>
35139             Bruno Haible  <bruno@clisp.org>
35140
35141         * lib/getpagesize.h: Remove file.
35142         * lib/unistd.in.h: Include declaration of getpagesize here.
35143         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
35144         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
35145         HAVE_SYS_PARAM_H.
35146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
35147         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
35148         * modules/getpagesize (Files): Remove lib/getpagesize.h.
35149         (Depends-on): Add unistd.
35150         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35151         (Include): Use <unistd.h> instead of getpagesize.h.
35152         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
35153         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
35154         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
35155         gl_GETPAGESIZE invocation, already handled by module dependency.
35156         * lib/pagealign_alloc.c: Don't include getpagesize.h.
35157
35158 2007-12-02  Bruno Haible  <bruno@clisp.org>
35159
35160         * modules/strings-tests: New file.
35161         * tests/test-strings.c: New file.
35162
35163         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
35164         * lib/strings.in.h: New file.
35165         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
35166         * m4/strings_h.m4: New file.
35167         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
35168         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
35169         * modules/strings: New file.
35170         * modules/string (Makefile.am): Update.
35171         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
35172         Reported by Karl Berry.
35173
35174 2007-12-01  Eric Blake  <ebb9@byu.net>
35175
35176         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
35177         accomodate fix in cygwin 1.5.25.
35178
35179 2007-12-01  Jim Meyering  <meyering@redhat.com>
35180
35181         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
35182         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
35183         that would inhibit utf8-optimization of a regexp containing line-
35184         or buffer-anchors, e.g., `^', `$'.
35185
35186 2007-11-30  Bruno Haible  <bruno@clisp.org>
35187
35188         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
35189         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
35190         glthread_recursive_lock_init.
35191         * lib/lock.c (glthread_recursive_lock_init)
35192         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
35193         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35194
35195 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
35196
35197         New function qset_acl, like set_acl but with syscall semantics.
35198         * lib/acl.h (qset_acl): New decl.
35199         * lib/acl.c (qset_acl): New function.
35200         (set_acl): Use new function.  Use more-consistent diagnostics.
35201
35202 2007-11-28  Jim Meyering  <meyering@redhat.com>
35203
35204         * modules/physmem (License): Change from GPL to LGPLv2+.
35205
35206 2007-11-26  Bruno Haible  <bruno@clisp.org>
35207
35208         * lib/vasnprintf.c (decode_long_double): Don't abort if the
35209         'long double' type has excess precision.
35210         Reported by Jim Meyering in
35211         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
35212
35213 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35214
35215         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
35216         Sync from <http://gnu.org/licenses>.
35217         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
35218         with license text from same location.
35219         * doc/maintain.texi, doc/standards.texi:  Sync from
35220         <http://savannah.gnu.org/projects/gnustandards>.
35221
35222 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
35223         and Jim Meyering  <meyering@redhat.com>
35224
35225         Adjust getdate' grammar to accept a slightly more regular language.
35226         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
35227         Before, the former was rejected.
35228         * lib/getdate.y (digits_to_date_time): New function, factored
35229         out of ...
35230         (number): ...here.  Just call digits_to_date_time.
35231         (hybrid): New non-terminal to handle an <unsigned number,
35232         signed relative offset> sequence consistently.
35233
35234 2007-11-18  Jim Meyering  <meyering@redhat.com>
35235
35236         Pull my changes from coreutils:
35237         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
35238         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
35239         use of $gnulib_tool_option_extras, so that it's separated from the
35240         preceding argument.
35241
35242         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
35243         * build-aux/bootstrap (cp_mark_as_generated): Create any required
35244         parent destination directories before copying a file into place.
35245
35246 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
35247
35248         bootstrap: work also with 4-argument variant of AC_INIT
35249         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
35250
35251 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
35252
35253         Port test-getaddrinfo to Solaris.
35254         Problem reported by Bruno Haible in
35255         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
35256         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
35257         explanation of setting 'hints'.
35258         Don't reject an implementation merely because it returns EAI_SERVICE.
35259         (EAI_SERVICE): Define to 0 if not defined.
35260
35261 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
35262
35263         The license of gnu-make and posix-shell is now "GPLed build tool".
35264         * modules/gnu-make (License): Likewise.
35265         * modules/posix-shell (License): Likewise.
35266
35267         New module posix-shell, for determining a POSIX shell
35268         or perhaps something that is close enough to a POSIX shell.
35269         * m4/posix-shell.m4: New file.
35270         * modules/posix-shell: New file.
35271
35272         * MODULES.html.sh: Mention new module.
35273
35274         New module gnu-make, for determining whether we're using GNU Make.
35275         * m4/gnu-make.m4: New file.
35276         * modules/gnu-make: New file.
35277         * MODULES.html.sh: Mention new module.
35278
35279 2007-11-14  Jim Meyering  <meyering@redhat.com>
35280
35281         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
35282         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
35283         use this macro to create a function _definition_.
35284         Remove useless "#undef ARGMATCH_DIE".
35285
35286 2007-11-14  Bruno Haible  <bruno@clisp.org>
35287
35288         * lib/config.charset: Update for OpenBSD 4.1.
35289         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
35290
35291 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
35292
35293         Document 64-bit #if problems in stdint.texi.
35294         * doc/headers/stdint.texi (stdint.h): Mention problems with
35295         64-bit-#if, and how to work around them.
35296
35297         Don't insist on 'long long int' support in the preprocessor.  It
35298         breaks too many things.  For example, PRIdMAX still uses a 'long
35299         long int' format with the latest Sun compiler, even though
35300         HAVE_LONG_LONG_INT isn't defined due to that compiler's
35301         preprocessor problem.  This causes the latest coreutils to dump
35302         core on Solaris 10 sparc with the Sun C compiler.
35303         Instead, fix the 2007-10-16 problem in a different way, by evaluating
35304         the troublesome expressions at configure-time, not at #if-time.
35305         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
35306         preprocessor.
35307         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
35308         compile-time C checks, done at 'configure'-time.
35309         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
35310         * modules/inttypes (Makefile): Substitute the new symbols that
35311         gl_INTTYPES_H now generates.
35312         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
35313
35314 2007-11-12  Bruno Haible  <bruno@clisp.org>
35315
35316         Tests for Unicode character classification functions.
35317
35318         * modules/unictype/bidicategory-byname-tests: New file.
35319         * modules/unictype/bidicategory-name-tests: New file.
35320         * modules/unictype/bidicategory-of-tests: New file.
35321         * modules/unictype/bidicategory-test-tests: New file.
35322         * modules/unictype/block-list-tests: New file.
35323         * modules/unictype/block-of-tests: New file.
35324         * modules/unictype/block-test-tests: New file.
35325         * modules/unictype/category-C-tests: New file.
35326         * modules/unictype/category-Cc-tests: New file.
35327         * modules/unictype/category-Cf-tests: New file.
35328         * modules/unictype/category-Cn-tests: New file.
35329         * modules/unictype/category-Co-tests: New file.
35330         * modules/unictype/category-Cs-tests: New file.
35331         * modules/unictype/category-L-tests: New file.
35332         * modules/unictype/category-Ll-tests: New file.
35333         * modules/unictype/category-Lm-tests: New file.
35334         * modules/unictype/category-Lo-tests: New file.
35335         * modules/unictype/category-Lt-tests: New file.
35336         * modules/unictype/category-Lu-tests: New file.
35337         * modules/unictype/category-M-tests: New file.
35338         * modules/unictype/category-Mc-tests: New file.
35339         * modules/unictype/category-Me-tests: New file.
35340         * modules/unictype/category-Mn-tests: New file.
35341         * modules/unictype/category-N-tests: New file.
35342         * modules/unictype/category-Nd-tests: New file.
35343         * modules/unictype/category-Nl-tests: New file.
35344         * modules/unictype/category-No-tests: New file.
35345         * modules/unictype/category-P-tests: New file.
35346         * modules/unictype/category-Pc-tests: New file.
35347         * modules/unictype/category-Pd-tests: New file.
35348         * modules/unictype/category-Pe-tests: New file.
35349         * modules/unictype/category-Pf-tests: New file.
35350         * modules/unictype/category-Pi-tests: New file.
35351         * modules/unictype/category-Po-tests: New file.
35352         * modules/unictype/category-Ps-tests: New file.
35353         * modules/unictype/category-S-tests: New file.
35354         * modules/unictype/category-Sc-tests: New file.
35355         * modules/unictype/category-Sk-tests: New file.
35356         * modules/unictype/category-Sm-tests: New file.
35357         * modules/unictype/category-So-tests: New file.
35358         * modules/unictype/category-Z-tests: New file.
35359         * modules/unictype/category-Zl-tests: New file.
35360         * modules/unictype/category-Zp-tests: New file.
35361         * modules/unictype/category-Zs-tests: New file.
35362         * modules/unictype/category-and-not-tests: New file.
35363         * modules/unictype/category-and-tests: New file.
35364         * modules/unictype/category-byname-tests: New file.
35365         * modules/unictype/category-name-tests: New file.
35366         * modules/unictype/category-none-tests: New file.
35367         * modules/unictype/category-of-tests: New file.
35368         * modules/unictype/category-or-tests: New file.
35369         * modules/unictype/category-test-withtable-tests: New file.
35370         * modules/unictype/combining-class-tests: New file.
35371         * modules/unictype/ctype-alnum-tests: New file.
35372         * modules/unictype/ctype-alpha-tests: New file.
35373         * modules/unictype/ctype-blank-tests: New file.
35374         * modules/unictype/ctype-cntrl-tests: New file.
35375         * modules/unictype/ctype-digit-tests: New file.
35376         * modules/unictype/ctype-graph-tests: New file.
35377         * modules/unictype/ctype-lower-tests: New file.
35378         * modules/unictype/ctype-print-tests: New file.
35379         * modules/unictype/ctype-punct-tests: New file.
35380         * modules/unictype/ctype-space-tests: New file.
35381         * modules/unictype/ctype-upper-tests: New file.
35382         * modules/unictype/ctype-xdigit-tests: New file.
35383         * modules/unictype/decimal-digit-tests: New file.
35384         * modules/unictype/digit-tests: New file.
35385         * modules/unictype/mirror-tests: New file.
35386         * modules/unictype/numeric-tests: New file.
35387         * modules/unictype/property-alphabetic-tests: New file.
35388         * modules/unictype/property-ascii-hex-digit-tests: New file.
35389         * modules/unictype/property-bidi-arabic-digit-tests: New file.
35390         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
35391         * modules/unictype/property-bidi-block-separator-tests: New file.
35392         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
35393         * modules/unictype/property-bidi-common-separator-tests: New file.
35394         * modules/unictype/property-bidi-control-tests: New file.
35395         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
35396         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
35397         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
35398         * modules/unictype/property-bidi-european-digit-tests: New file.
35399         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
35400         * modules/unictype/property-bidi-left-to-right-tests: New file.
35401         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
35402         * modules/unictype/property-bidi-other-neutral-tests: New file.
35403         * modules/unictype/property-bidi-pdf-tests: New file.
35404         * modules/unictype/property-bidi-segment-separator-tests: New file.
35405         * modules/unictype/property-bidi-whitespace-tests: New file.
35406         * modules/unictype/property-byname-tests: New file.
35407         * modules/unictype/property-combining-tests: New file.
35408         * modules/unictype/property-composite-tests: New file.
35409         * modules/unictype/property-currency-symbol-tests: New file.
35410         * modules/unictype/property-dash-tests: New file.
35411         * modules/unictype/property-decimal-digit-tests: New file.
35412         * modules/unictype/property-default-ignorable-code-point-tests: New file.
35413         * modules/unictype/property-deprecated-tests: New file.
35414         * modules/unictype/property-diacritic-tests: New file.
35415         * modules/unictype/property-extender-tests: New file.
35416         * modules/unictype/property-format-control-tests: New file.
35417         * modules/unictype/property-grapheme-base-tests: New file.
35418         * modules/unictype/property-grapheme-extend-tests: New file.
35419         * modules/unictype/property-grapheme-link-tests: New file.
35420         * modules/unictype/property-hex-digit-tests: New file.
35421         * modules/unictype/property-hyphen-tests: New file.
35422         * modules/unictype/property-id-continue-tests: New file.
35423         * modules/unictype/property-id-start-tests: New file.
35424         * modules/unictype/property-ideographic-tests: New file.
35425         * modules/unictype/property-ids-binary-operator-tests: New file.
35426         * modules/unictype/property-ids-trinary-operator-tests: New file.
35427         * modules/unictype/property-ignorable-control-tests: New file.
35428         * modules/unictype/property-iso-control-tests: New file.
35429         * modules/unictype/property-join-control-tests: New file.
35430         * modules/unictype/property-left-of-pair-tests: New file.
35431         * modules/unictype/property-line-separator-tests: New file.
35432         * modules/unictype/property-logical-order-exception-tests: New file.
35433         * modules/unictype/property-lowercase-tests: New file.
35434         * modules/unictype/property-math-tests: New file.
35435         * modules/unictype/property-non-break-tests: New file.
35436         * modules/unictype/property-not-a-character-tests: New file.
35437         * modules/unictype/property-numeric-tests: New file.
35438         * modules/unictype/property-other-alphabetic-tests: New file.
35439         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
35440         * modules/unictype/property-other-grapheme-extend-tests: New file.
35441         * modules/unictype/property-other-id-continue-tests: New file.
35442         * modules/unictype/property-other-id-start-tests: New file.
35443         * modules/unictype/property-other-lowercase-tests: New file.
35444         * modules/unictype/property-other-math-tests: New file.
35445         * modules/unictype/property-other-uppercase-tests: New file.
35446         * modules/unictype/property-paired-punctuation-tests: New file.
35447         * modules/unictype/property-paragraph-separator-tests: New file.
35448         * modules/unictype/property-pattern-syntax-tests: New file.
35449         * modules/unictype/property-pattern-white-space-tests: New file.
35450         * modules/unictype/property-private-use-tests: New file.
35451         * modules/unictype/property-punctuation-tests: New file.
35452         * modules/unictype/property-quotation-mark-tests: New file.
35453         * modules/unictype/property-radical-tests: New file.
35454         * modules/unictype/property-sentence-terminal-tests: New file.
35455         * modules/unictype/property-soft-dotted-tests: New file.
35456         * modules/unictype/property-space-tests: New file.
35457         * modules/unictype/property-terminal-punctuation-tests: New file.
35458         * modules/unictype/property-test-tests: New file.
35459         * modules/unictype/property-titlecase-tests: New file.
35460         * modules/unictype/property-unassigned-code-value-tests: New file.
35461         * modules/unictype/property-unified-ideograph-tests: New file.
35462         * modules/unictype/property-uppercase-tests: New file.
35463         * modules/unictype/property-variation-selector-tests: New file.
35464         * modules/unictype/property-white-space-tests: New file.
35465         * modules/unictype/property-xid-continue-tests: New file.
35466         * modules/unictype/property-xid-start-tests: New file.
35467         * modules/unictype/property-zero-width-tests: New file.
35468         * modules/unictype/scripts-tests: New file.
35469         * modules/unictype/syntax-c-ident-tests: New file.
35470         * modules/unictype/syntax-c-whitespace-tests: New file.
35471         * modules/unictype/syntax-java-ident-tests: New file.
35472         * modules/unictype/syntax-java-whitespace-tests: New file.
35473         * tests/unictype/test-bidi_byname.c: New file.
35474         * tests/unictype/test-bidi_name.c: New file.
35475         * tests/unictype/test-bidi_of.c: New file.
35476         * tests/unictype/test-bidi_test.c: New file.
35477         * tests/unictype/test-block_list.c: New file.
35478         * tests/unictype/test-block_of.c: New file.
35479         * tests/unictype/test-block_test.c: New file.
35480         * tests/unictype/test-categ_and.c: New file.
35481         * tests/unictype/test-categ_and_not.c: New file.
35482         * tests/unictype/test-categ_byname.c: New file.
35483         * tests/unictype/test-categ_name.c: New file.
35484         * tests/unictype/test-categ_none.c: New file.
35485         * tests/unictype/test-categ_of.c: New file.
35486         * tests/unictype/test-categ_or.c: New file.
35487         * tests/unictype/test-categ_test_withtable.c: New file.
35488         * tests/unictype/test-combining.c: New file.
35489         * tests/unictype/test-decdigit.c: New file.
35490         * tests/unictype/test-digit.c: New file.
35491         * tests/unictype/test-mirror.c: New file.
35492         * tests/unictype/test-numeric.c: New file.
35493         * tests/unictype/test-pr_byname.c: New file.
35494         * tests/unictype/test-pr_test.c: New file.
35495         * tests/unictype/test-predicate-part1.h: New file.
35496         * tests/unictype/test-predicate-part2.h: New file.
35497         * tests/unictype/test-scripts.c: New file.
35498         * tests/unictype/test-sy_c_ident.c: New file.
35499         * tests/unictype/test-sy_java_ident.c: New file.
35500
35501         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
35502         for Unicode 5.0.0.
35503         * tests/unictype/test-categ_Cc.c: Likewise.
35504         * tests/unictype/test-categ_Cf.c: Likewise.
35505         * tests/unictype/test-categ_Cn.c: Likewise.
35506         * tests/unictype/test-categ_Co.c: Likewise.
35507         * tests/unictype/test-categ_Cs.c: Likewise.
35508         * tests/unictype/test-categ_L.c: Likewise.
35509         * tests/unictype/test-categ_Ll.c: Likewise.
35510         * tests/unictype/test-categ_Lm.c: Likewise.
35511         * tests/unictype/test-categ_Lo.c: Likewise.
35512         * tests/unictype/test-categ_Lt.c: Likewise.
35513         * tests/unictype/test-categ_Lu.c: Likewise.
35514         * tests/unictype/test-categ_M.c: Likewise.
35515         * tests/unictype/test-categ_Mc.c: Likewise.
35516         * tests/unictype/test-categ_Me.c: Likewise.
35517         * tests/unictype/test-categ_Mn.c: Likewise.
35518         * tests/unictype/test-categ_N.c: Likewise.
35519         * tests/unictype/test-categ_Nd.c: Likewise.
35520         * tests/unictype/test-categ_Nl.c: Likewise.
35521         * tests/unictype/test-categ_No.c: Likewise.
35522         * tests/unictype/test-categ_P.c: Likewise.
35523         * tests/unictype/test-categ_Pc.c: Likewise.
35524         * tests/unictype/test-categ_Pd.c: Likewise.
35525         * tests/unictype/test-categ_Pe.c: Likewise.
35526         * tests/unictype/test-categ_Pf.c: Likewise.
35527         * tests/unictype/test-categ_Pi.c: Likewise.
35528         * tests/unictype/test-categ_Po.c: Likewise.
35529         * tests/unictype/test-categ_Ps.c: Likewise.
35530         * tests/unictype/test-categ_S.c: Likewise.
35531         * tests/unictype/test-categ_Sc.c: Likewise.
35532         * tests/unictype/test-categ_Sk.c: Likewise.
35533         * tests/unictype/test-categ_Sm.c: Likewise.
35534         * tests/unictype/test-categ_So.c: Likewise.
35535         * tests/unictype/test-categ_Z.c: Likewise.
35536         * tests/unictype/test-categ_Zl.c: Likewise.
35537         * tests/unictype/test-categ_Zp.c: Likewise.
35538         * tests/unictype/test-categ_Zs.c: Likewise.
35539         * tests/unictype/test-ctype_alnum.c: Likewise.
35540         * tests/unictype/test-ctype_alpha.c: Likewise.
35541         * tests/unictype/test-ctype_blank.c: Likewise.
35542         * tests/unictype/test-ctype_cntrl.c: Likewise.
35543         * tests/unictype/test-ctype_digit.c: Likewise.
35544         * tests/unictype/test-ctype_graph.c: Likewise.
35545         * tests/unictype/test-ctype_lower.c: Likewise.
35546         * tests/unictype/test-ctype_print.c: Likewise.
35547         * tests/unictype/test-ctype_punct.c: Likewise.
35548         * tests/unictype/test-ctype_space.c: Likewise.
35549         * tests/unictype/test-ctype_upper.c: Likewise.
35550         * tests/unictype/test-ctype_xdigit.c: Likewise.
35551         * tests/unictype/test-decdigit.h: Likewise.
35552         * tests/unictype/test-digit.h: Likewise.
35553         * tests/unictype/test-numeric.h: Likewise.
35554         * tests/unictype/test-pr_alphabetic.c: Likewise.
35555         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
35556         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
35557         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
35558         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
35559         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
35560         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
35561         * tests/unictype/test-pr_bidi_control.c: Likewise.
35562         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
35563         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
35564         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
35565         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
35566         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
35567         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
35568         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
35569         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
35570         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
35571         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
35572         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
35573         * tests/unictype/test-pr_combining.c: Likewise.
35574         * tests/unictype/test-pr_composite.c: Likewise.
35575         * tests/unictype/test-pr_currency_symbol.c: Likewise.
35576         * tests/unictype/test-pr_dash.c: Likewise.
35577         * tests/unictype/test-pr_decimal_digit.c: Likewise.
35578         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
35579         * tests/unictype/test-pr_deprecated.c: Likewise.
35580         * tests/unictype/test-pr_diacritic.c: Likewise.
35581         * tests/unictype/test-pr_extender.c: Likewise.
35582         * tests/unictype/test-pr_format_control.c: Likewise.
35583         * tests/unictype/test-pr_grapheme_base.c: Likewise.
35584         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
35585         * tests/unictype/test-pr_grapheme_link.c: Likewise.
35586         * tests/unictype/test-pr_hex_digit.c: Likewise.
35587         * tests/unictype/test-pr_hyphen.c: Likewise.
35588         * tests/unictype/test-pr_id_continue.c: Likewise.
35589         * tests/unictype/test-pr_id_start.c: Likewise.
35590         * tests/unictype/test-pr_ideographic.c: Likewise.
35591         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
35592         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
35593         * tests/unictype/test-pr_ignorable_control.c: Likewise.
35594         * tests/unictype/test-pr_iso_control.c: Likewise.
35595         * tests/unictype/test-pr_join_control.c: Likewise.
35596         * tests/unictype/test-pr_left_of_pair.c: Likewise.
35597         * tests/unictype/test-pr_line_separator.c: Likewise.
35598         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
35599         * tests/unictype/test-pr_lowercase.c: Likewise.
35600         * tests/unictype/test-pr_math.c: Likewise.
35601         * tests/unictype/test-pr_non_break.c: Likewise.
35602         * tests/unictype/test-pr_not_a_character.c: Likewise.
35603         * tests/unictype/test-pr_numeric.c: Likewise.
35604         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
35605         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
35606         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
35607         * tests/unictype/test-pr_other_id_continue.c: Likewise.
35608         * tests/unictype/test-pr_other_id_start.c: Likewise.
35609         * tests/unictype/test-pr_other_lowercase.c: Likewise.
35610         * tests/unictype/test-pr_other_math.c: Likewise.
35611         * tests/unictype/test-pr_other_uppercase.c: Likewise.
35612         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
35613         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
35614         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
35615         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
35616         * tests/unictype/test-pr_private_use.c: Likewise.
35617         * tests/unictype/test-pr_punctuation.c: Likewise.
35618         * tests/unictype/test-pr_quotation_mark.c: Likewise.
35619         * tests/unictype/test-pr_radical.c: Likewise.
35620         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
35621         * tests/unictype/test-pr_soft_dotted.c: Likewise.
35622         * tests/unictype/test-pr_space.c: Likewise.
35623         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
35624         * tests/unictype/test-pr_titlecase.c: Likewise.
35625         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
35626         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
35627         * tests/unictype/test-pr_uppercase.c: Likewise.
35628         * tests/unictype/test-pr_variation_selector.c: Likewise.
35629         * tests/unictype/test-pr_white_space.c: Likewise.
35630         * tests/unictype/test-pr_xid_continue.c: Likewise.
35631         * tests/unictype/test-pr_xid_start.c: Likewise.
35632         * tests/unictype/test-pr_zero_width.c: Likewise.
35633         * tests/unictype/test-sy_c_whitespace.c: Likewise.
35634         * tests/unictype/test-sy_java_whitespace.c: Likewise.
35635
35636 2007-11-12  Bruno Haible  <bruno@clisp.org>
35637
35638         Unicode character classification functions.
35639         * lib/unictype.h: New file.
35640         * modules/unictype/base: New file.
35641         * modules/unictype/category-L: New file.
35642         * modules/unictype/category-Lu: New file.
35643         * modules/unictype/category-Ll: New file.
35644         * modules/unictype/category-Lt: New file.
35645         * modules/unictype/category-Lm: New file.
35646         * modules/unictype/category-Lo: New file.
35647         * modules/unictype/category-M: New file.
35648         * modules/unictype/category-Mn: New file.
35649         * modules/unictype/category-Mc: New file.
35650         * modules/unictype/category-Me: New file.
35651         * modules/unictype/category-N: New file.
35652         * modules/unictype/category-Nd: New file.
35653         * modules/unictype/category-Nl: New file.
35654         * modules/unictype/category-No: New file.
35655         * modules/unictype/category-P: New file.
35656         * modules/unictype/category-Pc: New file.
35657         * modules/unictype/category-Pd: New file.
35658         * modules/unictype/category-Ps: New file.
35659         * modules/unictype/category-Pe: New file.
35660         * modules/unictype/category-Pi: New file.
35661         * modules/unictype/category-Pf: New file.
35662         * modules/unictype/category-Po: New file.
35663         * modules/unictype/category-S: New file.
35664         * modules/unictype/category-Sm: New file.
35665         * modules/unictype/category-Sc: New file.
35666         * modules/unictype/category-Sk: New file.
35667         * modules/unictype/category-So: New file.
35668         * modules/unictype/category-Z: New file.
35669         * modules/unictype/category-Zs: New file.
35670         * modules/unictype/category-Zl: New file.
35671         * modules/unictype/category-Zp: New file.
35672         * modules/unictype/category-C: New file.
35673         * modules/unictype/category-Cc: New file.
35674         * modules/unictype/category-Cf: New file.
35675         * modules/unictype/category-Cs: New file.
35676         * modules/unictype/category-Co: New file.
35677         * modules/unictype/category-Cn: New file.
35678         * modules/unictype/category-or: New file.
35679         * modules/unictype/category-of: New file.
35680         * modules/unictype/category-test: New file.
35681         * modules/unictype/category-test-withtable: New file.
35682         * modules/unictype/category-byname: New file.
35683         * modules/unictype/category-none: New file.
35684         * modules/unictype/category-and: New file.
35685         * modules/unictype/category-and-not: New file.
35686         * modules/unictype/category-name: New file.
35687         * modules/unictype/combining-class: New file.
35688         * modules/unictype/category-all: New file.
35689         * modules/unictype/bidicategory-all: New file.
35690         * modules/unictype/bidicategory-byname: New file.
35691         * modules/unictype/bidicategory-name: New file.
35692         * modules/unictype/bidicategory-of: New file.
35693         * modules/unictype/bidicategory-test: New file.
35694         * modules/unictype/decimal-digit: New file.
35695         * modules/unictype/digit: New file.
35696         * modules/unictype/numeric: New file.
35697         * modules/unictype/mirror: New file.
35698         * modules/unictype/property-white-space: New file.
35699         * modules/unictype/property-alphabetic: New file.
35700         * modules/unictype/property-other-alphabetic: New file.
35701         * modules/unictype/property-not-a-character: New file.
35702         * modules/unictype/property-default-ignorable-code-point: New file.
35703         * modules/unictype/property-other-default-ignorable-code-point: New
35704         file.
35705         * modules/unictype/property-deprecated: New file.
35706         * modules/unictype/property-logical-order-exception: New file.
35707         * modules/unictype/property-variation-selector: New file.
35708         * modules/unictype/property-private-use: New file.
35709         * modules/unictype/property-unassigned-code-value: New file.
35710         * modules/unictype/property-uppercase: New file.
35711         * modules/unictype/property-other-uppercase: New file.
35712         * modules/unictype/property-lowercase: New file.
35713         * modules/unictype/property-other-lowercase: New file.
35714         * modules/unictype/property-titlecase: New file.
35715         * modules/unictype/property-soft-dotted: New file.
35716         * modules/unictype/property-id-start: New file.
35717         * modules/unictype/property-other-id-start: New file.
35718         * modules/unictype/property-id-continue: New file.
35719         * modules/unictype/property-other-id-continue: New file.
35720         * modules/unictype/property-xid-start: New file.
35721         * modules/unictype/property-xid-continue: New file.
35722         * modules/unictype/property-pattern-white-space: New file.
35723         * modules/unictype/property-pattern-syntax: New file.
35724         * modules/unictype/property-join-control: New file.
35725         * modules/unictype/property-grapheme-base: New file.
35726         * modules/unictype/property-grapheme-extend: New file.
35727         * modules/unictype/property-other-grapheme-extend: New file.
35728         * modules/unictype/property-grapheme-link: New file.
35729         * modules/unictype/property-bidi-control: New file.
35730         * modules/unictype/property-bidi-left-to-right: New file.
35731         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
35732         * modules/unictype/property-bidi-arabic-right-to-left: New file.
35733         * modules/unictype/property-bidi-european-digit: New file.
35734         * modules/unictype/property-bidi-eur-num-separator: New file.
35735         * modules/unictype/property-bidi-eur-num-terminator: New file.
35736         * modules/unictype/property-bidi-arabic-digit: New file.
35737         * modules/unictype/property-bidi-common-separator: New file.
35738         * modules/unictype/property-bidi-block-separator: New file.
35739         * modules/unictype/property-bidi-segment-separator: New file.
35740         * modules/unictype/property-bidi-whitespace: New file.
35741         * modules/unictype/property-bidi-non-spacing-mark: New file.
35742         * modules/unictype/property-bidi-boundary-neutral: New file.
35743         * modules/unictype/property-bidi-pdf: New file.
35744         * modules/unictype/property-bidi-embedding-or-override: New file.
35745         * modules/unictype/property-bidi-other-neutral: New file.
35746         * modules/unictype/property-hex-digit: New file.
35747         * modules/unictype/property-ascii-hex-digit: New file.
35748         * modules/unictype/property-ideographic: New file.
35749         * modules/unictype/property-unified-ideograph: New file.
35750         * modules/unictype/property-radical: New file.
35751         * modules/unictype/property-ids-binary-operator: New file.
35752         * modules/unictype/property-ids-trinary-operator: New file.
35753         * modules/unictype/property-zero-width: New file.
35754         * modules/unictype/property-space: New file.
35755         * modules/unictype/property-non-break: New file.
35756         * modules/unictype/property-iso-control: New file.
35757         * modules/unictype/property-format-control: New file.
35758         * modules/unictype/property-dash: New file.
35759         * modules/unictype/property-hyphen: New file.
35760         * modules/unictype/property-punctuation: New file.
35761         * modules/unictype/property-line-separator: New file.
35762         * modules/unictype/property-paragraph-separator: New file.
35763         * modules/unictype/property-quotation-mark: New file.
35764         * modules/unictype/property-sentence-terminal: New file.
35765         * modules/unictype/property-terminal-punctuation: New file.
35766         * modules/unictype/property-currency-symbol: New file.
35767         * modules/unictype/property-math: New file.
35768         * modules/unictype/property-other-math: New file.
35769         * modules/unictype/property-paired-punctuation: New file.
35770         * modules/unictype/property-left-of-pair: New file.
35771         * modules/unictype/property-combining: New file.
35772         * modules/unictype/property-composite: New file.
35773         * modules/unictype/property-decimal-digit: New file.
35774         * modules/unictype/property-numeric: New file.
35775         * modules/unictype/property-diacritic: New file.
35776         * modules/unictype/property-extender: New file.
35777         * modules/unictype/property-ignorable-control: New file.
35778         * modules/unictype/property-test: New file.
35779         * modules/unictype/property-byname: New file.
35780         * modules/unictype/property-all: New file.
35781         * modules/unictype/scripts: New file.
35782         * modules/unictype/scripts-all: New file.
35783         * modules/unictype/block-of: New file.
35784         * modules/unictype/block-test: New file.
35785         * modules/unictype/block-list: New file.
35786         * modules/unictype/block-all: New file.
35787         * modules/unictype/syntax-c-whitespace: New file.
35788         * modules/unictype/syntax-java-whitespace: New file.
35789         * modules/unictype/syntax-c-ident: New file.
35790         * modules/unictype/syntax-java-ident: New file.
35791         * modules/unictype/ctype-alnum: New file.
35792         * modules/unictype/ctype-alpha: New file.
35793         * modules/unictype/ctype-cntrl: New file.
35794         * modules/unictype/ctype-digit: New file.
35795         * modules/unictype/ctype-graph: New file.
35796         * modules/unictype/ctype-lower: New file.
35797         * modules/unictype/ctype-print: New file.
35798         * modules/unictype/ctype-punct: New file.
35799         * modules/unictype/ctype-space: New file.
35800         * modules/unictype/ctype-upper: New file.
35801         * modules/unictype/ctype-xdigit: New file.
35802         * modules/unictype/ctype-blank: New file.
35803         * lib/unictype/bidi_byname.c: New file.
35804         * lib/unictype/bidi_name.c: New file.
35805         * lib/unictype/bidi_of.c: New file.
35806         * lib/unictype/bidi_test.c: New file.
35807         * lib/unictype/bitmap.h: New file.
35808         * lib/unictype/block_test.c: New file.
35809         * lib/unictype/blocks.c: New file.
35810         * lib/unictype/categ_C.c: New file.
35811         * lib/unictype/categ_Cc.c: New file.
35812         * lib/unictype/categ_Cf.c: New file.
35813         * lib/unictype/categ_Cn.c: New file.
35814         * lib/unictype/categ_Co.c: New file.
35815         * lib/unictype/categ_Cs.c: New file.
35816         * lib/unictype/categ_L.c: New file.
35817         * lib/unictype/categ_Ll.c: New file.
35818         * lib/unictype/categ_Lm.c: New file.
35819         * lib/unictype/categ_Lo.c: New file.
35820         * lib/unictype/categ_Lt.c: New file.
35821         * lib/unictype/categ_Lu.c: New file.
35822         * lib/unictype/categ_M.c: New file.
35823         * lib/unictype/categ_Mc.c: New file.
35824         * lib/unictype/categ_Me.c: New file.
35825         * lib/unictype/categ_Mn.c: New file.
35826         * lib/unictype/categ_N.c: New file.
35827         * lib/unictype/categ_Nd.c: New file.
35828         * lib/unictype/categ_Nl.c: New file.
35829         * lib/unictype/categ_No.c: New file.
35830         * lib/unictype/categ_P.c: New file.
35831         * lib/unictype/categ_Pc.c: New file.
35832         * lib/unictype/categ_Pd.c: New file.
35833         * lib/unictype/categ_Pe.c: New file.
35834         * lib/unictype/categ_Pf.c: New file.
35835         * lib/unictype/categ_Pi.c: New file.
35836         * lib/unictype/categ_Po.c: New file.
35837         * lib/unictype/categ_Ps.c: New file.
35838         * lib/unictype/categ_S.c: New file.
35839         * lib/unictype/categ_Sc.c: New file.
35840         * lib/unictype/categ_Sk.c: New file.
35841         * lib/unictype/categ_Sm.c: New file.
35842         * lib/unictype/categ_So.c: New file.
35843         * lib/unictype/categ_Z.c: New file.
35844         * lib/unictype/categ_Zl.c: New file.
35845         * lib/unictype/categ_Zp.c: New file.
35846         * lib/unictype/categ_Zs.c: New file.
35847         * lib/unictype/categ_and.c: New file.
35848         * lib/unictype/categ_and_not.c: New file.
35849         * lib/unictype/categ_byname.c: New file.
35850         * lib/unictype/categ_name.c: New file.
35851         * lib/unictype/categ_none.c: New file.
35852         * lib/unictype/categ_of.c: New file.
35853         * lib/unictype/categ_or.c: New file.
35854         * lib/unictype/categ_test.c: New file.
35855         * lib/unictype/combining.c: New file.
35856         * lib/unictype/ctype_alnum.c: New file.
35857         * lib/unictype/ctype_alpha.c: New file.
35858         * lib/unictype/ctype_blank.c: New file.
35859         * lib/unictype/ctype_cntrl.c: New file.
35860         * lib/unictype/ctype_digit.c: New file.
35861         * lib/unictype/ctype_graph.c: New file.
35862         * lib/unictype/ctype_lower.c: New file.
35863         * lib/unictype/ctype_print.c: New file.
35864         * lib/unictype/ctype_punct.c: New file.
35865         * lib/unictype/ctype_space.c: New file.
35866         * lib/unictype/ctype_upper.c: New file.
35867         * lib/unictype/ctype_xdigit.c: New file.
35868         * lib/unictype/decdigit.c: New file.
35869         * lib/unictype/digit.c: New file.
35870         * lib/unictype/identsyntaxmap.h: New file.
35871         * lib/unictype/mirror.c: New file.
35872         * lib/unictype/numeric.c: New file.
35873         * lib/unictype/pr_alphabetic.c: New file.
35874         * lib/unictype/pr_ascii_hex_digit.c: New file.
35875         * lib/unictype/pr_bidi_arabic_digit.c: New file.
35876         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
35877         * lib/unictype/pr_bidi_block_separator.c: New file.
35878         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
35879         * lib/unictype/pr_bidi_common_separator.c: New file.
35880         * lib/unictype/pr_bidi_control.c: New file.
35881         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
35882         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
35883         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
35884         * lib/unictype/pr_bidi_european_digit.c: New file.
35885         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
35886         * lib/unictype/pr_bidi_left_to_right.c: New file.
35887         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
35888         * lib/unictype/pr_bidi_other_neutral.c: New file.
35889         * lib/unictype/pr_bidi_pdf.c: New file.
35890         * lib/unictype/pr_bidi_segment_separator.c: New file.
35891         * lib/unictype/pr_bidi_whitespace.c: New file.
35892         * lib/unictype/pr_byname.c: New file.
35893         * lib/unictype/pr_byname.gperf: New file.
35894         * lib/unictype/pr_combining.c: New file.
35895         * lib/unictype/pr_composite.c: New file.
35896         * lib/unictype/pr_currency_symbol.c: New file.
35897         * lib/unictype/pr_dash.c: New file.
35898         * lib/unictype/pr_decimal_digit.c: New file.
35899         * lib/unictype/pr_default_ignorable_code_point.c: New file.
35900         * lib/unictype/pr_deprecated.c: New file.
35901         * lib/unictype/pr_diacritic.c: New file.
35902         * lib/unictype/pr_extender.c: New file.
35903         * lib/unictype/pr_format_control.c: New file.
35904         * lib/unictype/pr_grapheme_base.c: New file.
35905         * lib/unictype/pr_grapheme_extend.c: New file.
35906         * lib/unictype/pr_grapheme_link.c: New file.
35907         * lib/unictype/pr_hex_digit.c: New file.
35908         * lib/unictype/pr_hyphen.c: New file.
35909         * lib/unictype/pr_id_continue.c: New file.
35910         * lib/unictype/pr_id_start.c: New file.
35911         * lib/unictype/pr_ideographic.c: New file.
35912         * lib/unictype/pr_ids_binary_operator.c: New file.
35913         * lib/unictype/pr_ids_trinary_operator.c: New file.
35914         * lib/unictype/pr_ignorable_control.c: New file.
35915         * lib/unictype/pr_iso_control.c: New file.
35916         * lib/unictype/pr_join_control.c: New file.
35917         * lib/unictype/pr_left_of_pair.c: New file.
35918         * lib/unictype/pr_line_separator.c: New file.
35919         * lib/unictype/pr_logical_order_exception.c: New file.
35920         * lib/unictype/pr_lowercase.c: New file.
35921         * lib/unictype/pr_math.c: New file.
35922         * lib/unictype/pr_non_break.c: New file.
35923         * lib/unictype/pr_not_a_character.c: New file.
35924         * lib/unictype/pr_numeric.c: New file.
35925         * lib/unictype/pr_other_alphabetic.c: New file.
35926         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
35927         * lib/unictype/pr_other_grapheme_extend.c: New file.
35928         * lib/unictype/pr_other_id_continue.c: New file.
35929         * lib/unictype/pr_other_id_start.c: New file.
35930         * lib/unictype/pr_other_lowercase.c: New file.
35931         * lib/unictype/pr_other_math.c: New file.
35932         * lib/unictype/pr_other_uppercase.c: New file.
35933         * lib/unictype/pr_paired_punctuation.c: New file.
35934         * lib/unictype/pr_paragraph_separator.c: New file.
35935         * lib/unictype/pr_pattern_syntax.c: New file.
35936         * lib/unictype/pr_pattern_white_space.c: New file.
35937         * lib/unictype/pr_private_use.c: New file.
35938         * lib/unictype/pr_punctuation.c: New file.
35939         * lib/unictype/pr_quotation_mark.c: New file.
35940         * lib/unictype/pr_radical.c: New file.
35941         * lib/unictype/pr_sentence_terminal.c: New file.
35942         * lib/unictype/pr_soft_dotted.c: New file.
35943         * lib/unictype/pr_space.c: New file.
35944         * lib/unictype/pr_terminal_punctuation.c: New file.
35945         * lib/unictype/pr_test.c: New file.
35946         * lib/unictype/pr_titlecase.c: New file.
35947         * lib/unictype/pr_unassigned_code_value.c: New file.
35948         * lib/unictype/pr_unified_ideograph.c: New file.
35949         * lib/unictype/pr_uppercase.c: New file.
35950         * lib/unictype/pr_variation_selector.c: New file.
35951         * lib/unictype/pr_white_space.c: New file.
35952         * lib/unictype/pr_xid_continue.c: New file.
35953         * lib/unictype/pr_xid_start.c: New file.
35954         * lib/unictype/pr_zero_width.c: New file.
35955         * lib/unictype/scripts.c: New file.
35956         * lib/unictype/sy_c_ident.c: New file.
35957         * lib/unictype/sy_c_whitespace.c: New file.
35958         * lib/unictype/sy_java_ident.c: New file.
35959         * lib/unictype/sy_java_whitespace.c: New file.
35960
35961         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
35962         Unicode 5.0.0.
35963         * lib/unictype/blocks.h: Likewise.
35964         * lib/unictype/categ_C.h: Likewise.
35965         * lib/unictype/categ_Cc.h: Likewise.
35966         * lib/unictype/categ_Cf.h: Likewise.
35967         * lib/unictype/categ_Cn.h: Likewise.
35968         * lib/unictype/categ_Co.h: Likewise.
35969         * lib/unictype/categ_Cs.h: Likewise.
35970         * lib/unictype/categ_L.h: Likewise.
35971         * lib/unictype/categ_Ll.h: Likewise.
35972         * lib/unictype/categ_Lm.h: Likewise.
35973         * lib/unictype/categ_Lo.h: Likewise.
35974         * lib/unictype/categ_Lt.h: Likewise.
35975         * lib/unictype/categ_Lu.h: Likewise.
35976         * lib/unictype/categ_M.h: Likewise.
35977         * lib/unictype/categ_Mc.h: Likewise.
35978         * lib/unictype/categ_Me.h: Likewise.
35979         * lib/unictype/categ_Mn.h: Likewise.
35980         * lib/unictype/categ_N.h: Likewise.
35981         * lib/unictype/categ_Nd.h: Likewise.
35982         * lib/unictype/categ_Nl.h: Likewise.
35983         * lib/unictype/categ_No.h: Likewise.
35984         * lib/unictype/categ_P.h: Likewise.
35985         * lib/unictype/categ_Pc.h: Likewise.
35986         * lib/unictype/categ_Pd.h: Likewise.
35987         * lib/unictype/categ_Pe.h: Likewise.
35988         * lib/unictype/categ_Pf.h: Likewise.
35989         * lib/unictype/categ_Pi.h: Likewise.
35990         * lib/unictype/categ_Po.h: Likewise.
35991         * lib/unictype/categ_Ps.h: Likewise.
35992         * lib/unictype/categ_S.h: Likewise.
35993         * lib/unictype/categ_Sc.h: Likewise.
35994         * lib/unictype/categ_Sk.h: Likewise.
35995         * lib/unictype/categ_Sm.h: Likewise.
35996         * lib/unictype/categ_So.h: Likewise.
35997         * lib/unictype/categ_Z.h: Likewise.
35998         * lib/unictype/categ_Zl.h: Likewise.
35999         * lib/unictype/categ_Zp.h: Likewise.
36000         * lib/unictype/categ_Zs.h: Likewise.
36001         * lib/unictype/categ_of.h: Likewise.
36002         * lib/unictype/combining.h: Likewise.
36003         * lib/unictype/ctype_alnum.h: Likewise.
36004         * lib/unictype/ctype_alpha.h: Likewise.
36005         * lib/unictype/ctype_blank.h: Likewise.
36006         * lib/unictype/ctype_cntrl.h: Likewise.
36007         * lib/unictype/ctype_digit.h: Likewise.
36008         * lib/unictype/ctype_graph.h: Likewise.
36009         * lib/unictype/ctype_lower.h: Likewise.
36010         * lib/unictype/ctype_print.h: Likewise.
36011         * lib/unictype/ctype_punct.h: Likewise.
36012         * lib/unictype/ctype_space.h: Likewise.
36013         * lib/unictype/ctype_upper.h: Likewise.
36014         * lib/unictype/ctype_xdigit.h: Likewise.
36015         * lib/unictype/decdigit.h: Likewise.
36016         * lib/unictype/digit.h: Likewise.
36017         * lib/unictype/mirror.h: Likewise.
36018         * lib/unictype/numeric.h: Likewise.
36019         * lib/unictype/pr_alphabetic.h: Likewise.
36020         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
36021         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
36022         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
36023         * lib/unictype/pr_bidi_block_separator.h: Likewise.
36024         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
36025         * lib/unictype/pr_bidi_common_separator.h: Likewise.
36026         * lib/unictype/pr_bidi_control.h: Likewise.
36027         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
36028         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
36029         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
36030         * lib/unictype/pr_bidi_european_digit.h: Likewise.
36031         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
36032         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
36033         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
36034         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
36035         * lib/unictype/pr_bidi_pdf.h: Likewise.
36036         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
36037         * lib/unictype/pr_bidi_whitespace.h: Likewise.
36038         * lib/unictype/pr_combining.h: Likewise.
36039         * lib/unictype/pr_composite.h: Likewise.
36040         * lib/unictype/pr_currency_symbol.h: Likewise.
36041         * lib/unictype/pr_dash.h: Likewise.
36042         * lib/unictype/pr_decimal_digit.h: Likewise.
36043         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
36044         * lib/unictype/pr_deprecated.h: Likewise.
36045         * lib/unictype/pr_diacritic.h: Likewise.
36046         * lib/unictype/pr_extender.h: Likewise.
36047         * lib/unictype/pr_format_control.h: Likewise.
36048         * lib/unictype/pr_grapheme_base.h: Likewise.
36049         * lib/unictype/pr_grapheme_extend.h: Likewise.
36050         * lib/unictype/pr_grapheme_link.h: Likewise.
36051         * lib/unictype/pr_hex_digit.h: Likewise.
36052         * lib/unictype/pr_hyphen.h: Likewise.
36053         * lib/unictype/pr_id_continue.h: Likewise.
36054         * lib/unictype/pr_id_start.h: Likewise.
36055         * lib/unictype/pr_ideographic.h: Likewise.
36056         * lib/unictype/pr_ids_binary_operator.h: Likewise.
36057         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
36058         * lib/unictype/pr_ignorable_control.h: Likewise.
36059         * lib/unictype/pr_iso_control.h: Likewise.
36060         * lib/unictype/pr_join_control.h: Likewise.
36061         * lib/unictype/pr_left_of_pair.h: Likewise.
36062         * lib/unictype/pr_line_separator.h: Likewise.
36063         * lib/unictype/pr_logical_order_exception.h: Likewise.
36064         * lib/unictype/pr_lowercase.h: Likewise.
36065         * lib/unictype/pr_math.h: Likewise.
36066         * lib/unictype/pr_non_break.h: Likewise.
36067         * lib/unictype/pr_not_a_character.h: Likewise.
36068         * lib/unictype/pr_numeric.h: Likewise.
36069         * lib/unictype/pr_other_alphabetic.h: Likewise.
36070         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
36071         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
36072         * lib/unictype/pr_other_id_continue.h: Likewise.
36073         * lib/unictype/pr_other_id_start.h: Likewise.
36074         * lib/unictype/pr_other_lowercase.h: Likewise.
36075         * lib/unictype/pr_other_math.h: Likewise.
36076         * lib/unictype/pr_other_uppercase.h: Likewise.
36077         * lib/unictype/pr_paired_punctuation.h: Likewise.
36078         * lib/unictype/pr_paragraph_separator.h: Likewise.
36079         * lib/unictype/pr_pattern_syntax.h: Likewise.
36080         * lib/unictype/pr_pattern_white_space.h: Likewise.
36081         * lib/unictype/pr_private_use.h: Likewise.
36082         * lib/unictype/pr_punctuation.h: Likewise.
36083         * lib/unictype/pr_quotation_mark.h: Likewise.
36084         * lib/unictype/pr_radical.h: Likewise.
36085         * lib/unictype/pr_sentence_terminal.h: Likewise.
36086         * lib/unictype/pr_soft_dotted.h: Likewise.
36087         * lib/unictype/pr_space.h: Likewise.
36088         * lib/unictype/pr_terminal_punctuation.h: Likewise.
36089         * lib/unictype/pr_titlecase.h: Likewise.
36090         * lib/unictype/pr_unassigned_code_value.h: Likewise.
36091         * lib/unictype/pr_unified_ideograph.h: Likewise.
36092         * lib/unictype/pr_uppercase.h: Likewise.
36093         * lib/unictype/pr_variation_selector.h: Likewise.
36094         * lib/unictype/pr_white_space.h: Likewise.
36095         * lib/unictype/pr_xid_continue.h: Likewise.
36096         * lib/unictype/pr_xid_start.h: Likewise.
36097         * lib/unictype/pr_zero_width.h: Likewise.
36098         * lib/unictype/scripts.h: Likewise.
36099         * lib/unictype/scripts_byname.gperf: Likewise.
36100         * lib/unictype/sy_c_ident.h: Likewise.
36101         * lib/unictype/sy_c_whitespace.h: Likewise.
36102         * lib/unictype/sy_java_ident.h: Likewise.
36103         * lib/unictype/sy_java_whitespace.h: Likewise.
36104
36105         * lib/unictype/Makefile: New file.
36106         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
36107         glibc.
36108         * lib/unictype/3level.h: New file, copied from glibc.
36109         * lib/unictype/3levelbit.h: New file.
36110
36111 2007-11-11  Bruno Haible  <bruno@clisp.org>
36112
36113         * modules/gperf: New file.
36114         * modules/iconv_open (Depends-on): Add it.
36115         (Makefile.am): Remove the GPERF definition.
36116
36117 2007-11-11  Bruno Haible  <bruno@clisp.org>
36118
36119         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
36120         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
36121
36122 2007-11-11  Bruno Haible  <bruno@clisp.org>
36123
36124         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
36125         (usage): Remove function.
36126
36127 2007-11-11  Bruno Haible  <bruno@clisp.org>
36128
36129         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
36130         gl_FUNC_CEILF_LIBS.
36131         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
36132         gl_FUNC_CEIL_LIBS.
36133         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
36134         gl_FUNC_CEILL_LIBS.
36135         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
36136         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
36137         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
36138
36139 2007-11-11  Bruno Haible  <bruno@clisp.org>
36140
36141         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
36142         roundf were declared but do not exist on functions.
36143         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
36144         roundl were declared but do not exist on functions.
36145         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
36146         HAVE_FLOORL_AND_CEILL, respectively.
36147         Needed for Sun C on Solaris 10.
36148
36149 2007-11-11  Bruno Haible  <bruno@clisp.org>
36150
36151         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
36152         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
36153         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
36154         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
36155         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
36156         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
36157         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
36158         HAVE_DECL_ROUNDF.
36159         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
36160         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
36161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
36162         of HAVE_DECL_ROUND*.
36163         * modules/math (Makefile.am): Update.
36164
36165 2007-11-10  Bruno Haible  <bruno@clisp.org>
36166
36167         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
36168         ptrdiff_t as m4/intl.m4.
36169
36170 2007-11-10  Jim Meyering  <meyering@redhat.com>
36171
36172         Avoid link failure for the argmatch test.
36173         * tests/test-argmatch.c (usage): Define function to avoid a link
36174         failure: argmatch_die requires a usage function.
36175
36176 2007-11-09  Bruno Haible  <bruno@clisp.org>
36177
36178         * doc/functions/snprintf.texi: Mention BeOS deficiency.
36179         * doc/functions/vsnprintf.texi: Likewise.
36180         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
36181         with a size argument < 2.
36182
36183 2007-11-09  Bruno Haible  <bruno@clisp.org>
36184
36185         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
36186         buffer. Fixes an inefficiency introduced on 2007-11-03.
36187
36188 2007-11-09  Bruno Haible  <bruno@clisp.org>
36189
36190         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
36191         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
36192
36193 2007-11-08  Jim Meyering  <meyering@redhat.com>
36194
36195         Change cache variable name prefix "jm_" to "gl_" everywhere.
36196         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
36197         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
36198         * m4/uptime.m4: s/gl_/jm_/
36199
36200 2007-11-07  Bruno Haible  <bruno@clisp.org>
36201
36202         Update to GNU gettext 0.17.
36203         * m4/intl.m4: Update to GNU gettext 0.17.
36204         * m4/po.m4: Likewise.
36205         * modules/gettext (Files): Remove m4/ulonglong.m4.
36206         (configure.ac): Require gettext infrastructure from version 0.17.
36207
36208 2007-11-06  Bruno Haible  <bruno@clisp.org>
36209
36210         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
36211         symbolic values are not defined in a public header.
36212         * lib/freadable.c (freadable) [QNX]: Likewise.
36213         * lib/freadahead.c (freadahead) [QNX]: Likewise.
36214         * lib/freading.c (freading) [QNX]: Likewise.
36215         * lib/fseterr.c (fseterr) [QNX]: Likewise.
36216         * lib/fwritable.c (fwritable) [QNX]: Likewise.
36217         * lib/fwriting.c (fwriting) [QNX]: Likewise.
36218         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
36219         Reported by Alain Magloire.
36220
36221         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
36222
36223 2007-11-05  Bruno Haible  <bruno@clisp.org>
36224
36225         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
36226         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
36227         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
36228         Reported by Eric Blake.
36229
36230 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36231             Bruno Haible  <bruno@clisp.org>
36232
36233         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
36234         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
36235         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
36236         (malloc): Undefine also before including <stdlib.h>.
36237         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
36238         Needed on OSF/1 4.0.
36239
36240 2007-11-05  Jim Meyering  <meyering@redhat.com>
36241
36242         git-version-gen: sync from coreutils.
36243         * build-aux/git-version-gen: Add comments.
36244         Change the first '-' to '.' in the snapshot version string,
36245         e.g., 6.9-377-08144 -> 6.9.377-08144
36246         Remove first parameter.
36247         Don't declare a version "-dirty" merely because a time
36248         stamp has changed.
36249
36250 2007-11-04  Bruno Haible  <bruno@clisp.org>
36251
36252         * lib/lock.h: Protect all macro definitions containing an 'if'
36253         statement through a "do { ... } while (0)".
36254         * lib/tls.h: Likewise.
36255
36256 2007-11-04  Bruno Haible  <bruno@clisp.org>
36257
36258         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
36259
36260 2007-11-04  Bruno Haible  <bruno@clisp.org>
36261
36262         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
36263         * modules/fprintf-posix (Depends-on): Add nocrash.
36264         * modules/snprintf-posix (Depends-on): Likewise.
36265         * modules/sprintf-posix (Depends-on): Likewise.
36266         * modules/vasnprintf-posix (Depends-on): Likewise.
36267         * modules/vasprintf-posix (Depends-on): Likewise.
36268         * modules/vfprintf-posix (Depends-on): Likewise.
36269         * modules/vsnprintf-posix (Depends-on): Likewise.
36270         * modules/vsprintf-posix (Depends-on): Likewise.
36271         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36272         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36273         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36274         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36275         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36276         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36277         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36278
36279 2007-11-04  Bruno Haible  <bruno@clisp.org>
36280
36281         * modules/nocrash: New file.
36282         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
36283         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
36284
36285 2007-11-04  Bruno Haible  <bruno@clisp.org>
36286
36287         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
36288         precision handling.
36289         * tests/test-vasprintf-posix.c (test_function): Likewise.
36290         * tests/test-snprintf-posix.h (test_function): Likewise.
36291         * tests/test-sprintf-posix.h (test_function): Likewise.
36292
36293         Fix *printf behaviour for large precisions on mingw and BeOS.
36294         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
36295         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
36296         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
36297         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36298         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36299         gl_PRINTF_PRECISION and test its result. Invoke
36300         gl_PREREQ_VASNPRINTF_PRECISION.
36301         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36302         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36303         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36304         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36305         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36306         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36307         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36308         * doc/functions/fprintf.texi: Update.
36309         * doc/functions/printf.texi: Update.
36310         * doc/functions/snprintf.texi: Update.
36311         * doc/functions/sprintf.texi: Update.
36312         * doc/functions/vfprintf.texi: Update.
36313         * doc/functions/vprintf.texi: Update.
36314         * doc/functions/vsnprintf.texi: Update.
36315         * doc/functions/vsprintf.texi: Update.
36316
36317 2007-11-04  Bruno Haible  <bruno@clisp.org>
36318
36319         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
36320
36321 2007-11-04  Bruno Haible  <bruno@clisp.org>
36322
36323         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
36324         Reported by Sylvain Beucler <beuc@gnu.org>.
36325
36326 2007-11-03  Bruno Haible  <bruno@clisp.org>
36327
36328         * tests/test-fprintf-posix2.sh: New file.
36329         * tests/test-fprintf-posix2.c: New file.
36330         * modules/fprintf-posix-tests (Files): Add them.
36331         (TESTS): Add test-fprintf-posix2.sh.
36332         (configure.ac): Check for getrlimit and setrlimit.
36333         (check_PROGRAMS): Add test-fprintf-posix2.
36334
36335         * tests/test-printf-posix2.sh: New file.
36336         * tests/test-printf-posix2.c: New file.
36337         * modules/printf-posix-tests (Files): Add them.
36338         (TESTS): Add test-printf-posix2.sh.
36339         (configure.ac): Check for getrlimit and setrlimit.
36340         (check_PROGRAMS): Add test-printf-posix2.
36341
36342         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
36343         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
36344         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
36345         (decode_double): New function, copied from decode_long_double.
36346         (scale10_round_decimal_decoded): New function, extracted from
36347         scale10_round_decimal_long_double.
36348         (scale10_round_decimal_long_double): Use it.
36349         (scale10_round_decimal_double): New function.
36350         (floorlog10): New function.
36351         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
36352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
36353         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36354         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36355         gl_PRINTF_ENOMEM and test its result. Invoke
36356         gl_PREREQ_VASNPRINTF_ENOMEM.
36357         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36358         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36359         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36360         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36361         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36362         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36363         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36364         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
36365         * modules/snprintf-posix (Depends-on): Likewise.
36366         * modules/sprintf-posix (Depends-on): Likewise.
36367         * modules/vasnprintf-posix (Depends-on): Likewise.
36368         * modules/vasprintf-posix (Depends-on): Likewise.
36369         * modules/vfprintf-posix (Depends-on): Likewise.
36370         * modules/vsnprintf-posix (Depends-on): Likewise.
36371         * modules/vsprintf-posix (Depends-on): Likewise.
36372         * doc/functions/fprintf.texi: Update.
36373         * doc/functions/printf.texi: Update.
36374         * doc/functions/snprintf.texi: Update.
36375         * doc/functions/sprintf.texi: Update.
36376         * doc/functions/vfprintf.texi: Update.
36377         * doc/functions/vprintf.texi: Update.
36378         * doc/functions/vsnprintf.texi: Update.
36379         * doc/functions/vsprintf.texi: Update.
36380
36381 2007-11-03  Bruno Haible  <bruno@clisp.org>
36382
36383         * modules/frexp-nolibm-tests: New file.
36384
36385         * modules/frexp-nolibm: New file.
36386         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
36387
36388 2007-11-03  Bruno Haible  <bruno@clisp.org>
36389
36390         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
36391         value is C99 compliant.
36392         Needed for OSF/1 5.1.
36393
36394 2007-11-03  Bruno Haible  <bruno@clisp.org>
36395
36396         Fix out-of-memory handling of vasnprintf.
36397         * lib/printf-parse.c: Include <errno.h>.
36398         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
36399         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
36400         is already set.
36401
36402 2007-11-02  Eric Blake  <ebb9@byu.net>
36403
36404         Fix tests on cygwin.
36405         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
36406
36407 2007-11-01  Bruno Haible  <bruno@clisp.org>
36408
36409         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
36410         warning.
36411         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
36412         needed for POSIX compatibility.
36413
36414 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
36415
36416         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
36417         for compatibility with GNU.
36418
36419 2007-11-01  Bruno Haible  <bruno@clisp.org>
36420
36421         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
36422         (putenv): Renamed from rpl_putenv. Change argument type from
36423         'const char *' to 'char *'.
36424         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
36425         of defining putenv in config.h, just set REPLACE_PUTENV.
36426         * modules/putenv (Depends-on): Add stdlib.
36427         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36428         (Include): Use <stdlib.h>.
36429         * lib/stdlib.in.h (putenv): New declaration.
36430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
36431         REPLACE_PUTENV.
36432         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
36433         REPLACE_PUTENV.
36434         Needed for MacOS X 10.5.0.
36435         Reported by Peter O'Gorman <peter@pogma.com>.
36436
36437 2007-11-01  Jim Meyering  <meyering@redhat.com>
36438
36439         Treat an empty date string exactly like "0".
36440         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
36441         if the remaining date string (to be parsed) is empty, use "0".
36442         Reported by Mischa Molhoek and discussed in this thread:
36443         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
36444
36445 2007-10-31  Bruno Haible  <bruno@clisp.org>
36446
36447         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
36448         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
36449         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
36450         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
36451         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
36452         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
36453
36454 2007-10-31  Bruno Haible  <bruno@clisp.org>
36455
36456         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
36457         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
36458         (AC_TYPE_LONG_LONG_INT): Use it.
36459         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
36460         it as well.
36461         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
36462         to m4/longlong.m4.
36463         * modules/stdint (Files): Remove m4/ulonglong.m4.
36464         * modules/strtoull (Files): Use m4/longlong.m4 instead of
36465         m4/ulonglong.m4.
36466         * modules/strtoumax (Files): Likewise.
36467
36468 2007-10-30  Bruno Haible  <bruno@clisp.org>
36469
36470         * modules/xvasprintf-posix: New file.
36471         Suggested by Eric Blake.
36472
36473 2007-10-30  Bruno Haible  <bruno@clisp.org>
36474
36475         * modules/xprintf-posix-tests: New file.
36476         * tests/test-xprintf-posix.sh: New file.
36477         * tests/test-xprintf-posix.c: New file.
36478         * tests/test-xfprintf-posix.c: New file.
36479
36480         * modules/xprintf-posix: New file.
36481
36482 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36483
36484         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
36485         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
36486         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
36487
36488 2007-10-29  Bruno Haible  <bruno@clisp.org>
36489
36490         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
36491         contain the special marker '_cv_'.
36492         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36493         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36494         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36495         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
36496         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36497         Reported by Ralf Wildenhues.
36498
36499 2007-10-29  Bruno Haible  <bruno@clisp.org>
36500
36501         * gnulib-tool (func_import): When --lgpl is not specified, set
36502         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
36503         GPLv3.
36504         Reported by Simon Josefsson.
36505
36506 2007-10-28  Bruno Haible  <bruno@clisp.org>
36507
36508         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
36509         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
36510         HAVE_DECL_ISFINITE.
36511         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36512         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
36513         HAVE_DECL_ISFINITE.
36514
36515 2007-10-28  Bruno Haible  <bruno@clisp.org>
36516
36517         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
36518         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
36519
36520 2007-10-28  Bruno Haible  <bruno@clisp.org>
36521
36522         Fix link errors with Sun C 5.0 on Solaris 10.
36523         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
36524         function is declared but not present in the compiler's libm.
36525         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
36526         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
36527         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
36528         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
36529         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
36530         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
36531         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
36532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36533         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
36534         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
36535         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
36536         HAVE_DECL_FLOORL.
36537
36538 2007-10-28  Bruno Haible  <bruno@clisp.org>
36539
36540         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
36541         gl_FUNC_FLOORL. Cache the result.
36542         (gl_FUNC_FLOORL): Use it.
36543         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
36544         gl_FUNC_CEILL. Cache the result.
36545         (gl_FUNC_CEILL): Use it.
36546
36547         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
36548         gl_FUNC_FLOOR. Cache the result.
36549         (gl_FUNC_FLOOR): Use it.
36550         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
36551         gl_FUNC_CEIL. Cache the result.
36552         (gl_FUNC_CEIL): Use it.
36553
36554         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
36555         gl_FUNC_FLOORF. Cache the result.
36556         (gl_FUNC_FLOORF): Use it.
36557         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
36558         gl_FUNC_CEILF. Cache the result.
36559         (gl_FUNC_CEILF): Use it.
36560
36561 2007-10-28  Bruno Haible  <bruno@clisp.org>
36562
36563         * gnulib-tool: Allow specifying the LGPL version number through
36564         --lgpl=2 or --lgpl=3.
36565         (func_usage): Document --lgpl with argument.
36566         Handle --lgpl=... arguments.
36567         (func_import): Recognize also gl_LGPL calls with an argument. When
36568         --lgpl=2 is used and the module's license is just LGPL, report an
36569         error. Set sed_transform_lib_file according to the lgpl variable. In
36570         the generated files, use --lgpl or gl_LGPL invocations with argument,
36571         if necessary.
36572         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
36573         an LGPv2+ license.
36574         * doc/gnulib-tool.texi (Modified imports): Update explanation of
36575         gl_LGPL macro.
36576
36577 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36578             Bruno Haible  <bruno@clisp.org>
36579
36580         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
36581         (u16_uctomb_aux): Likewise.
36582         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
36583         !HAVE_INLINE.
36584         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
36585
36586 2007-10-28  Bruno Haible  <bruno@clisp.org>
36587
36588         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
36589         Invoke AM_GETTEXT_OPTION if it exists.
36590         * modules/vasprintf: Likewise.
36591         * modules/verror: Likewise.
36592         * modules/xprintf: Likewise.
36593         * modules/xvasprintf: Likewise.
36594
36595 2007-10-27  Ben Pfaff  <blp@gnu.org>
36596
36597         * lib/math.in.h: Define isfinite macro and prototypes for
36598         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
36599         implementations.
36600         * m4/math_h.m4: New substitutions for isfinite module.
36601         * lib/isfinite.c: New file.
36602         * m4/isfinite.m4: New file.
36603         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
36604         * modules/isfinite: New file.
36605         * modules/isfinite-tests: New file.
36606         * tests/tests-isfinite.c: New file.
36607         * doc/functions/isfinite.texi: Mention isfinite module.
36608         * MODULES.html.sh: Mention new module.
36609
36610 2007-10-27  Ben Pfaff  <blp@gnu.org>
36611
36612         Ralf Wildenhues reported that Tru64 4.0D declares the round
36613         functions but does not have definitions.
36614         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
36615         cannot be found in any library, set the output variable to
36616         "missing" instead of "".
36617         * m4/round.m4: Also use our substitute if we cannot find round in
36618         any library, even if it is declared.
36619         * m4/roundf.m4: Likewise for roundf.
36620         * m4/roundl.m4: Likewise for roundl.
36621         * lib/math.in.h: Undefine roundf, round, roundl before defining
36622         their replacements, to allow for hypothetical systems where these
36623         may be defined as macros but not available in libraries.
36624
36625 2007-10-27  Bruno Haible  <bruno@clisp.org>
36626
36627         * doc/gnulib.texi: Invoke @firstparagraphindent.
36628         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
36629         changes in gnulib.
36630         (Source changes): New section.
36631
36632 2007-10-26  Bruno Haible  <bruno@clisp.org>
36633
36634         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
36635         borrowed from autoconf.
36636
36637 2007-10-26  Bruno Haible  <bruno@clisp.org>
36638
36639         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
36640         strerror returned the empty string. Needed on HP-UX 11.00.
36641
36642 2007-10-24  Micah Cowan  <micah@cowan.name>
36643
36644         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
36645         * build-aux/bootstrap: Remove support for now-unnecessary option,
36646         --cvs-user, and envvars CVS_USER, CVS_RSH.
36647
36648 2007-10-24  Jim Meyering  <meyering@redhat.com>
36649
36650         Avoid diagnostics from sha1sum when there is no cached checksum.
36651         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
36652         if the po.s1 file hasn't been created yet.
36653
36654         * build-aux/bootstrap: Sync from coreutils:
36655         2007-10-24  Jim Meyering  <meyering@redhat.com>
36656         Get gnulib from the git repository, not from an obsolete cvs one.
36657         * build-aux/bootstrap: Suggestion from Micah Cowan.
36658         2007-10-04  Jim Meyering  <jim@meyering.net>
36659         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
36660         (update_po_files): Work also when there are no .po files in po/.
36661
36662 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
36663
36664         * README: Append ".git" to git and cg examples.
36665         Problem reported by Benoit Sigoure.
36666
36667 2007-10-23  Micah Cowan  <micah@cowan.name>
36668
36669         * users.txt: Add wget.
36670
36671 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36672
36673         Fix linking of some unistdio tests on FreeBSD.
36674         * modules/unistdio/u16-vsnprintf-tests
36675         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
36676         * modules/unistdio/u16-vsprintf-tests
36677         (test_u16_vsnprintf1_LDADD): Likewise.
36678         * modules/unistdio/u32-vsnprintf-tests
36679         (test_u32_vsnprintf1_LDADD): Likewise.
36680         * modules/unistdio/u32-vsprintf-tests
36681         (test_u32_vsprintf1_LDADD): Likewise.
36682         * modules/unistdio/u8-vsnprintf-tests
36683         (test_u8_vsnprintf1_LDADD): Likewise.
36684         * modules/unistdio/u8-vsprintf-tests
36685         (test_u8_vsprintf1_LDADD): Likewise.
36686         * modules/unistdio/ulc-vsnprintf-tests
36687         (test_ulc_vsnprintf1_LDADD): Likewise.
36688         * modules/unistdio/ulc-vsprintf-tests
36689         (test_ulc_vsprintf1_LDADD): Likewise.
36690
36691         Fix linking of some uniconv tests on FreeBSD.
36692         * modules/uniconv/u16-conv-from-enc-tests
36693         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
36694         * modules/uniconv/u16-conv-to-enc-tests
36695         (test_u16_conv_to_enc_LDADD): Likewise.
36696         * modules/uniconv/u16-strconv-from-enc-tests
36697         (test_u16_strconv_from_enc_LDADD): Likewise.
36698         * modules/uniconv/u16-strconv-to-enc-tests
36699         (test_u16_strconv_to_enc_LDADD): Likewise.
36700         * modules/uniconv/u32-conv-from-enc-tests
36701         (test_u32_conv_from_enc_LDADD): Likewise.
36702         * modules/uniconv/u32-conv-to-enc-tests
36703         (test_u32_conv_to_enc_LDADD): Likewise.
36704         * modules/uniconv/u32-strconv-from-enc-tests
36705         (test_u32_strconv_from_enc_LDADD): Likewise.
36706         * modules/uniconv/u32-strconv-to-enc-tests
36707         (test_u32_strconv_to_enc_LDADD): Likewise.
36708         * modules/uniconv/u8-conv-from-enc-tests
36709         (test_u8_conv_from_enc_LDADD): Likewise.
36710         * modules/uniconv/u8-conv-to-enc-tests
36711         (test_u8_conv_to_enc_LDADD): Likewise.
36712         * modules/uniconv/u8-strconv-from-enc-tests
36713         (test_u8_strconv_from_enc_LDADD): Likewise.
36714         * modules/uniconv/u8-strconv-to-enc-tests
36715         (test_u8_strconv_to_enc_LDADD): Likewise.
36716
36717 2007-10-22  Bruno Haible  <bruno@clisp.org>
36718
36719         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
36720         size.
36721
36722 2007-10-22  Eric Blake  <ebb9@byu.net>
36723
36724         Tweak x*printf documentation.
36725         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
36726         variable name and comments.
36727         Suggested by Bruno Haible.
36728
36729 2007-10-22  Bruno Haible  <bruno@clisp.org>
36730
36731         * lib/acl.c (copy_acl): Fix file name in comment.
36732
36733 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36734
36735         Fix Tru64 problem with stdbool.h.
36736         * lib/stdbool.in.h (false, true):
36737         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
36738         Don't declare as an enum in this situation; it runs afoul of Tru64.
36739         Problem reported by Steven M. Schweda in
36740         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
36741
36742 2007-10-22  Eric Blake  <ebb9@byu.net>
36743
36744         Also wrap vf?printf.
36745         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
36746         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
36747         (xvprintf, xvfprintf): New functions.
36748
36749 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36750
36751         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
36752         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
36753
36754         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
36755         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
36756
36757 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36758
36759         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
36760         by Bruno Haible.
36761
36762 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36763
36764         * lib/getloadavg.c
36765         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
36766         Undef `sys' after including sys/table.h, for Tru64 4.0D.
36767
36768         * tests/test-i-ring.c: Work for C89.
36769
36770 2007-10-22  Bruno Haible  <bruno@clisp.org>
36771
36772         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
36773         -1u, in preprocessor expression, so that we don't test for the bug
36774         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
36775         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
36776
36777 2007-10-22  Eric Blake  <ebb9@byu.net>
36778
36779         * tests/test-yesno.sh: Silence stderr during test.
36780
36781 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36782
36783         * modules/crypto/gc-camellia: New file.
36784
36785         * m4/gc-camellia.m4: New file.
36786
36787         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
36788
36789         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
36790
36791 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36792
36793         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
36794         --help to stdout.  Reported by sms@antinode.org (Steven
36795         M. Schweda).
36796
36797 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36798
36799         * users.txt: Fix link to libksba.
36800
36801 2007-10-21  Ben Pfaff  <blp@gnu.org>
36802
36803         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
36804         round.c roundf implementation that depends on floorf and ceilf to
36805         be tested unconditionally.
36806
36807 2007-10-21  Ben Pfaff  <blp@gnu.org>
36808
36809         * m4/check-libm-func.m4: Removed.
36810         * m4/check-math-lib.m4: New file.
36811         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
36812         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
36813         definition and lack of AC_LIBOBJ([roundf]).
36814         * m4/roundl.m4: Ditto, and similarly for roundl.
36815         * modules/round: Reference new m4 file.
36816         * modules/roundf: Ditto.
36817         * modules/roundl: Ditto.
36818         * tests/test-round2.c (main): Use ROUND instead of round.
36819         Bug report from Bruno Haible.
36820
36821 2007-10-21  Bruno Haible  <bruno@clisp.org>
36822
36823         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
36824         context.
36825
36826 2007-10-21  Bruno Haible  <bruno@clisp.org>
36827
36828         * tests/test-wcwidth.c (main): Allow negative result for some control
36829         characters.
36830
36831         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
36832         Needed on OSF/1 5.1.
36833
36834 2007-10-21  Bruno Haible  <bruno@clisp.org>
36835
36836         * tests/test-floorf1.c: Include isnanf.h.
36837         (main): Use isnanf() instead of isnan().
36838         * tests/test-ceilf1.c: Include isnanf.h.
36839         (main): Use isnanf() instead of isnan().
36840         * tests/test-truncf1.c: Include isnanf.h.
36841         (main): Use isnanf() instead of isnan().
36842         * tests/test-roundf1.c: Include isnanf.h.
36843         (main): Use isnanf() instead of isnan().
36844
36845 2007-10-21  Eric Blake  <ebb9@byu.net>
36846
36847         * users.txt: Update URL for m4.
36848
36849 2007-10-21  Bruno Haible  <bruno@clisp.org>
36850
36851         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
36852
36853 2007-10-21  Bruno Haible  <bruno@clisp.org>
36854
36855         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
36856         Git's management files if the CVS files are not present.
36857
36858 2007-10-20  Bruno Haible  <bruno@clisp.org>
36859
36860         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
36861         gcc-3.4.x.
36862
36863 2007-10-20  Ben Pfaff  <blp@gnu.org>
36864
36865         * lib/math.in.h: Declare round, roundf, roundl if we are providing
36866         implementations.
36867         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
36868         * lib/round.c: New file.
36869         * lib/roundf.c: New file.
36870         * lib/roundl.c: New file.
36871         * m4/round.m4: New file.
36872         * m4/roundf.m4: New file.
36873         * m4/roundl.m4: New file.
36874         * m4/check-libm-func-m4: New file.
36875         * modules/math: Replace round, roundf, roundl related @VARS@ in
36876         math.in.h.
36877         * modules/round: New file.
36878         * modules/round-tests: New file.
36879         * modules/roundf: New file.
36880         * modules/roundf-tests: New file.
36881         * modules/roundl: New file.
36882         * modules/roundl-tests: New file.
36883         * tests/test-round1.c: New file.
36884         * tests/test-round2.c: New file.
36885         * tests/test-roundf1.c: New file.
36886         * tests/test-roundf2.c: New file.
36887         * tests/test-roundl.c: New file.
36888         * doc/functions/round.texi: Mention round module.
36889         * doc/functions/roundf.texi: Mention roundf module.
36890         * doc/functions/roundl.texi: Mention roundl module.
36891         * MODULES.html.sh: Mention new modules.
36892         Thanks to Bruno Haible for suggestions.
36893
36894 2007-10-20  Jim Meyering  <meyering@redhat.com>
36895
36896         * lib/xprintf.c: Include <config.h> unconditionally.
36897
36898         Change xprintf's license to GPL.
36899         * modules/xprintf (License): s/LGPL/GPL/, since this module
36900         depends on modules (exit and exitfail) which are GPL.
36901         Suggestion from Bruno Haible.
36902
36903         xprintf fixes.
36904         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
36905         Use a clearer diagnostic.
36906         Patch from Bruno Haible.
36907
36908 2007-10-20  Bruno Haible  <bruno@clisp.org>
36909
36910         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
36911         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
36912         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36913
36914 2007-10-20  Bruno Haible  <bruno@clisp.org>
36915
36916         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
36917         precision in the comparison result > x - 1 or similar.
36918         * tests/test-ceilf2.c (correct_result_p): Likewise.
36919         * tests/test-truncf2.c (correct_result_p): Likewise.
36920         * tests/test-trunc2.c (correct_result_p): Likewise.
36921         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36922
36923 2007-10-20  Bruno Haible  <bruno@clisp.org>
36924
36925         * modules/ceil: New file.
36926         * m4/ceil.m4: New file.
36927         * doc/functions/ceil.texi: Mention the 'ceil' module.
36928
36929 2007-10-20  Bruno Haible  <bruno@clisp.org>
36930
36931         * modules/floor: New file.
36932         * m4/floor.m4: New file.
36933         * doc/functions/floor.texi: Mention the 'floor' module.
36934
36935 2007-10-20  Bruno Haible  <bruno@clisp.org>
36936
36937         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
36938         of %a.
36939         * modules/floorf-tests (Depends-on): Likewise.
36940         * modules/truncf-tests (Depends-on): Likewise.
36941         * modules/trunc-tests (Depends-on): Likewise.
36942         Reported by Ben Pfaff.
36943
36944 2007-10-19  Jim Meyering  <meyering@redhat.com>
36945
36946         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
36947         Don't bother testing specific errno values.  Just test ferror.
36948
36949         New module: xprintf
36950         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
36951
36952 2007-10-19  Bruno Haible  <bruno@clisp.org>
36953
36954         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
36955         syntax.
36956         * modules/javaexec (Makefile.am): Likewise.
36957         * modules/relocatable-prog (Makefile.am): Likewise.
36958         Suggested by Jim Meyering.
36959
36960 2007-10-18  Bruno Haible  <bruno@clisp.org>
36961
36962         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
36963         Reported by Jim Meyering.
36964
36965 2007-10-18  Eric Blake  <ebb9@byu.net>
36966
36967         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
36968
36969 2007-10-18  Bruno Haible  <bruno@clisp.org>
36970
36971         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
36972         the format string into writable memory. Needed in Fortify conditions.
36973
36974 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
36975             Bruno Haible  <bruno@clisp.org>
36976
36977         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
36978         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
36979         * modules/trim (Depends-on): Add mbchar.
36980         (configure.ac): Add gl_FUNC_MBRTOWC.
36981         (Makefile.am): Augment lib_SOURCES.
36982
36983 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
36984
36985         Modify glob.c to use fstatat and dirfd, to simplify it.
36986         Suggested by Eric Blake.
36987         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
36988         Don't include <stdbool.h>; not used.
36989         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
36990         (link_exists_p): Simplify implementation, since we can now assume
36991         dirfd and fstatat.
36992         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
36993
36994 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36995
36996         * gnulib-tool (func_get_dependencies): Fix sed script to
36997         match only tests.
36998
36999 2007-10-17  Bruno Haible  <bruno@clisp.org>
37000
37001         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
37002         allow locale names without encoding suffix.
37003         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37004         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37005
37006 2007-10-16  Bruno Haible  <bruno@clisp.org>
37007
37008         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
37009         * lib/getgroups.c (getgroups): Likewise.
37010         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
37011
37012 2007-10-16  Bruno Haible  <bruno@clisp.org>
37013
37014         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
37015         * modules/malloc-posix (License): Likewise.
37016         * modules/realloc-posix (License): Likewise.
37017         * modules/calloc-posix (License): Likewise.
37018         * modules/intprops (License): Change from GPL to LGPL, with
37019         Paul Eggert's approval.
37020
37021 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37022
37023         Merge glibc changes into lib/glob.c.
37024
37025         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
37026         2007-10-15 04:59:03 UTC.  Here are the changes:
37027
37028         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
37029
37030         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
37031
37032         * lib/glob.c: Add some branch prediction throughout.
37033
37034         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
37035
37036         [BZ #5103]
37037         * lib/glob.c (glob): Recognize patterns starting \/.
37038
37039         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
37040
37041         [BZ #3996]
37042         * lib/glob.c (attribute_hidden): Define if not defined.
37043         (glob): Unescape dirname, filename or username when needed and not
37044         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
37045         is NULL.  Handle unescaped [ in pattern without closing ].
37046         Don't pass GLOB_CHECK down to recursive glob for directories.
37047         (__glob_pattern_type): New function.
37048         (__glob_pattern_p): Implement using __glob_pattern_type.
37049         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
37050         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
37051         Remove unreachable code.
37052
37053         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
37054
37055         * lib/glob.c (glob_in_dir): Add some comments and asserts to
37056         explain why there are no leaks.
37057
37058         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
37059
37060         [BZ #3253]
37061         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
37062         time, rather allocate increasingly bigger arrays of pointers, if
37063         possible with alloca, if too large with malloc.
37064
37065 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37066
37067         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
37068         Problem reported by H.Merijn Brand in
37069         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
37070         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
37071         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
37072
37073 2007-10-15  Bruno Haible  <bruno@clisp.org>
37074
37075         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
37076         with explicit rpl_ prefix.
37077         * lib/fopen.c (fopen): Likewise.
37078         * lib/freopen.c (freopen): Likewise.
37079         * lib/iconv.c (iconv): Likewise.
37080         * lib/iconv_close.c (iconv_close): Likewise.
37081
37082 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37083
37084         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
37085
37086 2007-10-15  Bruno Haible  <bruno@clisp.org>
37087
37088         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
37089         <stddef.h> instead of <stdlib.h> since we only need NULL.
37090         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37091
37092 2007-10-15  Bruno Haible  <bruno@clisp.org>
37093
37094         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
37095         Replace paragraph talking about LIBOBJS.
37096         Reported by Colin Watson <cjwatson@debian.org>.
37097
37098 2007-10-15  Bruno Haible  <bruno@clisp.org>
37099
37100         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
37101         <stdlib.h> before using NULL.
37102
37103 2007-10-15  Simon Josefsson  <simon@josefsson.org>
37104
37105         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
37106         Reported by Albert Chin <china@thewrittenword.com>.
37107
37108 2007-10-14  Bruno Haible  <bruno@clisp.org>
37109
37110         * modules/iconv_open-utf-tests: New file.
37111         * tests/test-iconv-utf.c: New file.
37112
37113         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
37114         * modules/iconv_open-utf: New file.
37115         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
37116         (iconv, iconv_close): New declarations.
37117         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
37118         be defined.
37119         (iconv_open): Add special handling of conversion between UTF-8 and
37120         UTF-{16,32}{BE,LE}.
37121         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
37122         * lib/iconv_close.c: New file.
37123         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
37124         gl_FUNC_ICONV_OPEN.
37125         (gl_FUNC_ICONV_OPEN): Use it.
37126         (gl_FUNC_ICONV_OPEN_UTF): New macro.
37127         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
37128         and REPLACE_ICONV_UTF.
37129         * modules/iconv_open (Depends-on): Add c-strcase.
37130         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
37131         ICONV_CONST.
37132         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
37133
37134 2007-10-13  Albert Chin  <china@thewrittenword.com>
37135             Bruno Haible  <bruno@clisp.org>
37136
37137         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
37138         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
37139
37140 2007-10-13  Bruno Haible  <bruno@clisp.org>
37141
37142         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
37143         defined, use the ISO C99 inline semantics.
37144         * lib/argp.h (ARGP_EI): Likewise.
37145
37146 2007-10-13  Bruno Haible  <bruno@clisp.org>
37147
37148         Handle 'inline' change in gcc 4.3.0.
37149         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
37150         argp_fmtstream_write, argp_fmtstream_set_lmargin,
37151         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
37152         argp_fmtstream_point): Disable 'extern' declaration if the function
37153         definition is going to be provided inline.
37154         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
37155         semantics, not the ISO C99 inline semantics.
37156         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
37157         'extern' declaration if the function definition is going to be provided
37158         inline.
37159         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
37160         the GNU C inline semantics, not the ISO C99 inline semantics. With
37161         GCC 4.2, avoid a warning.
37162
37163 2007-10-13  Bruno Haible  <bruno@clisp.org>
37164
37165         * lib/freading.h (freading): Enable the use of __freading for
37166         glibc >= 2.7.
37167         * lib/freading.c (freading): Likewise.
37168
37169 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
37170
37171         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
37172         "warning: C99 inline functions are not supported; using GNU89".
37173
37174 2007-10-12  Bruno Haible  <bruno@clisp.org>
37175
37176         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
37177         of 2.
37178         * tests/test-ceilf2.c: New file.
37179         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
37180
37181         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
37182         * modules/ceilf-tests: Update.
37183
37184 2007-10-12  Bruno Haible  <bruno@clisp.org>
37185
37186         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
37187         of 2.
37188         * tests/test-floorf2.c: New file.
37189         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
37190
37191         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
37192         * modules/floorf-tests: Update.
37193
37194 2007-10-12  Bruno Haible  <bruno@clisp.org>
37195
37196         * tests/test-trunc2.c: New file.
37197         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
37198
37199         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
37200         * modules/trunc-tests: Update.
37201
37202 2007-10-12  Bruno Haible  <bruno@clisp.org>
37203
37204         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
37205         of 2.
37206         * tests/test-truncf2.c: New file.
37207         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
37208
37209         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
37210         * modules/truncf-tests: Update.
37211
37212 2007-10-11  Eric Blake  <ebb9@byu.net>
37213
37214         Don't claim strerror is broken on Interix.
37215         * doc/functions/strerror.texi (strerror): Known broken systems are
37216         now Solaris 8, and not Interix.
37217         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
37218         Interix on cross-compile.
37219         Reported by Martin Koeppe in
37220         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
37221
37222 2007-10-11  Bruno Haible  <bruno@clisp.org>
37223
37224         * modules/i-ring-tests: New file.
37225         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
37226         instead of assert.
37227
37228 2007-10-11  Bruno Haible  <bruno@clisp.org>
37229
37230         * modules/filenamecat-tests: New file.
37231         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
37232         * lib/filenamecat.c: Remove test code.
37233
37234 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
37235
37236         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
37237
37238         * lib/strerror.c: Include <string.h> always, to test interface,
37239         and to remove the need for the dummy.
37240         Include intprops.h to compute width instead of doing it ourselves
37241         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
37242         (strerror): Define it to return NULL if there's no system strerror.
37243         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
37244         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
37245         ancient pre-strerror Unix systems well any more.  Saying "unknown
37246         system error" is enough.
37247         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
37248         simpler strerror.c implementation.
37249         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
37250         Simplify the tests to reflect the simpler strerror implementation.
37251         * modules/strerror (Depends-on): Add intprops.
37252
37253 2007-10-09  Eric Blake  <ebb9@byu.net>
37254
37255         Silence test-fpending.
37256         * modules/fpending-tests (Files): Add wrapper script.
37257         * tests/test-fpending.sh: New file.
37258
37259 2007-10-09  Bruno Haible  <bruno@clisp.org>
37260
37261         * MODULES.html.sh (func_module): Don't create a hyperlink for
37262         function names like 'printf_frexp'.
37263         (Misc): Add crc, memxor.
37264         (Characteristics of floating types): New section.
37265         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
37266         isnanf-nolibm, signbit, trunc, truncf, truncl.
37267         (Enhancements for ISO C 99 functions): New subsection Input/output.
37268         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
37269         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
37270         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
37271         (Compatibility checks for POSIX:2001 functions): Add clock-time.
37272         (Enhancements for POSIX:2001 functions): Add chdir-long.
37273         (File system functions): Add areadlink, chdir-safer, read-file.
37274         Remove cycle-check.
37275         (File system as inode set): New section.
37276         (Date and time): Add gethrxtime.
37277         (Multithreading): Add openmp.
37278         (Internationalization functions): Add localename.
37279         (Unicode string functions): Add unistr/u*-mbsnlen.
37280         (Support for maintaining and releasing projects): Add git-version-gen.
37281         (Lone files): Remove directories.
37282
37283 2007-10-08  Ben Pfaff  <blp@gnu.org>
37284
37285         * lib/xmalloca.h: Fix typo in comment.
37286
37287 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
37288
37289         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
37290         when avoiding problems with integer overflow.  Use a portable test
37291         instead.
37292
37293 2007-10-08  Simon Josefsson  <simon@josefsson.org>
37294
37295         * modules/dummy (License): Change to LGPLv2+.
37296         * modules/float (License): Likewise
37297         * modules/realloc (License): Likewise
37298         * modules/stdlib (License): Likewise
37299
37300 2007-10-07  Bruno Haible  <bruno@clisp.org>
37301
37302         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
37303         * floor.c (TWO_MANT_DIG): Likewise.
37304         * ceil.c (TWO_MANT_DIG): Likewise.
37305         Reported by Ben Pfaff.
37306
37307 2007-10-07  Bruno Haible  <bruno@clisp.org>
37308
37309         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
37310         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
37311         * lib/frexp.c (FUNC): Likewise.
37312         * lib/printf-frexp.h (printf_frexp): Likewise.
37313         * lib/printf-frexpl.h (printf_frexpl): Likewise.
37314         * lib/printf-frexp.c (FUNC): Likewise.
37315         Suggested by Jim Meyering.
37316
37317 2007-10-07  Jim Meyering  <meyering@redhat.com>
37318
37319         Make xnanosleep's integer overflow test more robust.
37320         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
37321         so that gcc-4.3.0 doesn't optimize away this test for overflow.
37322
37323 2007-10-07  Bruno Haible  <bruno@clisp.org>
37324
37325         * NEWS: Mention the license change.
37326
37327         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
37328         abbreviations in the modules files.
37329
37330         Change copyright notice from GPLv2+ to GPLv3+.
37331         * README: Change copyright notice.
37332         * MODULES.html.sh: Likewise.
37333         * build-aux/bootstrap.conf: Likewise.
37334         * build-aux/config.libpath: Likewise.
37335         * build-aux/csharpcomp.sh.in: Likewise.
37336         * build-aux/csharpexec.sh.in: Likewise.
37337         * build-aux/install-reloc: Likewise.
37338         * build-aux/javacomp.sh.in: Likewise.
37339         * build-aux/javaexec.sh.in: Likewise.
37340         * build-aux/ldd.sh.in: Likewise.
37341         * build-aux/reloc-ldflags: Likewise.
37342         * build-aux/relocatable.sh.in: Likewise.
37343         * build-aux/x-to-1.in: Likewise.
37344         * check-module: Likewise.
37345         * config/srclistvars.sh: Likewise.
37346         * gnulib-tool: Likewise.
37347         * lib/acl-internal.h: Likewise.
37348         * lib/acl.c: Likewise.
37349         * lib/acl.h: Likewise.
37350         * lib/acl_entries.c: Likewise.
37351         * lib/areadlink-with-size.c: Likewise.
37352         * lib/areadlink.c: Likewise.
37353         * lib/areadlink.h: Likewise.
37354         * lib/argmatch.c: Likewise.
37355         * lib/argmatch.h: Likewise.
37356         * lib/argp-ba.c: Likewise.
37357         * lib/argp-eexst.c: Likewise.
37358         * lib/argp-fmtstream.c: Likewise.
37359         * lib/argp-fmtstream.h: Likewise.
37360         * lib/argp-fs-xinl.c: Likewise.
37361         * lib/argp-help.c: Likewise.
37362         * lib/argp-namefrob.h: Likewise.
37363         * lib/argp-parse.c: Likewise.
37364         * lib/argp-pin.c: Likewise.
37365         * lib/argp-pv.c: Likewise.
37366         * lib/argp-pvh.c: Likewise.
37367         * lib/argp-xinl.c: Likewise.
37368         * lib/argp.h: Likewise.
37369         * lib/at-func.c: Likewise.
37370         * lib/atanl.c: Likewise.
37371         * lib/backupfile.c: Likewise.
37372         * lib/backupfile.h: Likewise.
37373         * lib/basename.c: Likewise.
37374         * lib/binary-io.h: Likewise.
37375         * lib/byteswap.in.h: Likewise.
37376         * lib/c-stack.c: Likewise.
37377         * lib/c-stack.h: Likewise.
37378         * lib/c-strcasestr.c: Likewise.
37379         * lib/c-strcasestr.h: Likewise.
37380         * lib/c-strstr.c: Likewise.
37381         * lib/c-strstr.h: Likewise.
37382         * lib/c-strtod.c: Likewise.
37383         * lib/calloc.c: Likewise.
37384         * lib/canon-host.c: Likewise.
37385         * lib/canon-host.h: Likewise.
37386         * lib/canonicalize-lgpl.c: Likewise.
37387         * lib/canonicalize.c: Likewise.
37388         * lib/canonicalize.h: Likewise.
37389         * lib/ceil.c: Likewise.
37390         * lib/ceilf.c: Likewise.
37391         * lib/ceill.c: Likewise.
37392         * lib/chdir-long.c: Likewise.
37393         * lib/chdir-long.h: Likewise.
37394         * lib/chdir-safer.c: Likewise.
37395         * lib/chdir-safer.h: Likewise.
37396         * lib/chown.c: Likewise.
37397         * lib/classpath.c: Likewise.
37398         * lib/classpath.h: Likewise.
37399         * lib/clean-temp.c: Likewise.
37400         * lib/clean-temp.h: Likewise.
37401         * lib/cloexec.c: Likewise.
37402         * lib/close-stream.c: Likewise.
37403         * lib/closein.c: Likewise.
37404         * lib/closein.h: Likewise.
37405         * lib/closeout.c: Likewise.
37406         * lib/closeout.h: Likewise.
37407         * lib/concat-filename.c: Likewise.
37408         * lib/copy-file.c: Likewise.
37409         * lib/copy-file.h: Likewise.
37410         * lib/count-one-bits.h: Likewise.
37411         * lib/crc.c: Likewise.
37412         * lib/crc.h: Likewise.
37413         * lib/creat-safer.c: Likewise.
37414         * lib/csharpcomp.c: Likewise.
37415         * lib/csharpcomp.h: Likewise.
37416         * lib/csharpexec.c: Likewise.
37417         * lib/csharpexec.h: Likewise.
37418         * lib/cycle-check.c: Likewise.
37419         * lib/cycle-check.h: Likewise.
37420         * lib/diacrit.c: Likewise.
37421         * lib/diacrit.h: Likewise.
37422         * lib/diffseq.h: Likewise.
37423         * lib/dirchownmod.c: Likewise.
37424         * lib/dirent.in.h: Likewise.
37425         * lib/dirfd.c: Likewise.
37426         * lib/dirfd.h: Likewise.
37427         * lib/dirname.c: Likewise.
37428         * lib/dirname.h: Likewise.
37429         * lib/dummy.c: Likewise.
37430         * lib/dup-safer.c: Likewise.
37431         * lib/dup2.c: Likewise.
37432         * lib/eealloc.h: Likewise.
37433         * lib/error.c: Likewise.
37434         * lib/error.h: Likewise.
37435         * lib/euidaccess.c: Likewise.
37436         * lib/exclude.c: Likewise.
37437         * lib/exclude.h: Likewise.
37438         * lib/execute.c: Likewise.
37439         * lib/execute.h: Likewise.
37440         * lib/exitfail.c: Likewise.
37441         * lib/exitfail.h: Likewise.
37442         * lib/expl.c: Likewise.
37443         * lib/fatal-signal.c: Likewise.
37444         * lib/fatal-signal.h: Likewise.
37445         * lib/fbufmode.c: Likewise.
37446         * lib/fbufmode.h: Likewise.
37447         * lib/fchdir.c: Likewise.
37448         * lib/fchmodat.c: Likewise.
37449         * lib/fchownat.c: Likewise.
37450         * lib/fcntl--.h: Likewise.
37451         * lib/fcntl-safer.h: Likewise.
37452         * lib/fcntl.in.h: Likewise.
37453         * lib/fd-safer.c: Likewise.
37454         * lib/fflush.c: Likewise.
37455         * lib/file-has-acl.c: Likewise.
37456         * lib/file-set.c: Likewise.
37457         * lib/file-type.c: Likewise.
37458         * lib/file-type.h: Likewise.
37459         * lib/fileblocks.c: Likewise.
37460         * lib/filemode.c: Likewise.
37461         * lib/filemode.h: Likewise.
37462         * lib/filename.h: Likewise.
37463         * lib/filenamecat.c: Likewise.
37464         * lib/filenamecat.h: Likewise.
37465         * lib/findprog.c: Likewise.
37466         * lib/findprog.h: Likewise.
37467         * lib/float.in.h: Likewise.
37468         * lib/floor.c: Likewise.
37469         * lib/floorf.c: Likewise.
37470         * lib/floorl.c: Likewise.
37471         * lib/fopen-safer.c: Likewise.
37472         * lib/fopen.c: Likewise.
37473         * lib/fpending.c: Likewise.
37474         * lib/fpending.h: Likewise.
37475         * lib/fprintf.c: Likewise.
37476         * lib/fprintftime.h: Likewise.
37477         * lib/fpucw.h: Likewise.
37478         * lib/fpurge.c: Likewise.
37479         * lib/fpurge.h: Likewise.
37480         * lib/freadable.c: Likewise.
37481         * lib/freadable.h: Likewise.
37482         * lib/freadahead.c: Likewise.
37483         * lib/freadahead.h: Likewise.
37484         * lib/freading.c: Likewise.
37485         * lib/freading.h: Likewise.
37486         * lib/free.c: Likewise.
37487         * lib/freopen.c: Likewise.
37488         * lib/frexp.c: Likewise.
37489         * lib/frexpl.c: Likewise.
37490         * lib/fseek.c: Likewise.
37491         * lib/fseterr.c: Likewise.
37492         * lib/fseterr.h: Likewise.
37493         * lib/fstatat.c: Likewise.
37494         * lib/fstrcmp.c: Likewise.
37495         * lib/fstrcmp.h: Likewise.
37496         * lib/fsusage.c: Likewise.
37497         * lib/fsusage.h: Likewise.
37498         * lib/ftell.c: Likewise.
37499         * lib/ftello.c: Likewise.
37500         * lib/fts-cycle.c: Likewise.
37501         * lib/fts.c: Likewise.
37502         * lib/fts_.h: Likewise.
37503         * lib/full-read.c: Likewise.
37504         * lib/full-read.h: Likewise.
37505         * lib/full-write.c: Likewise.
37506         * lib/full-write.h: Likewise.
37507         * lib/fwritable.c: Likewise.
37508         * lib/fwritable.h: Likewise.
37509         * lib/fwriteerror.c: Likewise.
37510         * lib/fwriteerror.h: Likewise.
37511         * lib/fwriting.c: Likewise.
37512         * lib/fwriting.h: Likewise.
37513         * lib/gcd.c: Likewise.
37514         * lib/gcd.h: Likewise.
37515         * lib/getcwd.c: Likewise.
37516         * lib/getdate.h: Likewise.
37517         * lib/getdate.y: Likewise.
37518         * lib/getdomainname.c: Likewise.
37519         * lib/getdomainname.h: Likewise.
37520         * lib/getgroups.c: Likewise.
37521         * lib/gethostname.c: Likewise.
37522         * lib/gethrxtime.c: Likewise.
37523         * lib/gethrxtime.h: Likewise.
37524         * lib/getloadavg.c: Likewise.
37525         * lib/getndelim2.c: Likewise.
37526         * lib/getndelim2.h: Likewise.
37527         * lib/getnline.c: Likewise.
37528         * lib/getnline.h: Likewise.
37529         * lib/getopt.c: Likewise.
37530         * lib/getopt.in.h: Likewise.
37531         * lib/getopt1.c: Likewise.
37532         * lib/getopt_int.h: Likewise.
37533         * lib/getpagesize.h: Likewise.
37534         * lib/getsubopt.c: Likewise.
37535         * lib/gettime.c: Likewise.
37536         * lib/getugroups.c: Likewise.
37537         * lib/getugroups.h: Likewise.
37538         * lib/getusershell.c: Likewise.
37539         * lib/gl_anyavltree_list1.h: Likewise.
37540         * lib/gl_anyavltree_list2.h: Likewise.
37541         * lib/gl_anyhash_list1.h: Likewise.
37542         * lib/gl_anyhash_list2.h: Likewise.
37543         * lib/gl_anylinked_list1.h: Likewise.
37544         * lib/gl_anylinked_list2.h: Likewise.
37545         * lib/gl_anyrbtree_list1.h: Likewise.
37546         * lib/gl_anyrbtree_list2.h: Likewise.
37547         * lib/gl_anytree_list1.h: Likewise.
37548         * lib/gl_anytree_list2.h: Likewise.
37549         * lib/gl_anytree_oset.h: Likewise.
37550         * lib/gl_anytreehash_list1.h: Likewise.
37551         * lib/gl_anytreehash_list2.h: Likewise.
37552         * lib/gl_array_list.c: Likewise.
37553         * lib/gl_array_list.h: Likewise.
37554         * lib/gl_array_oset.c: Likewise.
37555         * lib/gl_array_oset.h: Likewise.
37556         * lib/gl_avltree_list.c: Likewise.
37557         * lib/gl_avltree_list.h: Likewise.
37558         * lib/gl_avltree_oset.c: Likewise.
37559         * lib/gl_avltree_oset.h: Likewise.
37560         * lib/gl_avltreehash_list.c: Likewise.
37561         * lib/gl_avltreehash_list.h: Likewise.
37562         * lib/gl_carray_list.c: Likewise.
37563         * lib/gl_carray_list.h: Likewise.
37564         * lib/gl_linked_list.c: Likewise.
37565         * lib/gl_linked_list.h: Likewise.
37566         * lib/gl_linkedhash_list.c: Likewise.
37567         * lib/gl_linkedhash_list.h: Likewise.
37568         * lib/gl_list.c: Likewise.
37569         * lib/gl_list.h: Likewise.
37570         * lib/gl_oset.c: Likewise.
37571         * lib/gl_oset.h: Likewise.
37572         * lib/gl_rbtree_list.c: Likewise.
37573         * lib/gl_rbtree_list.h: Likewise.
37574         * lib/gl_rbtree_oset.c: Likewise.
37575         * lib/gl_rbtree_oset.h: Likewise.
37576         * lib/gl_rbtreehash_list.c: Likewise.
37577         * lib/gl_rbtreehash_list.h: Likewise.
37578         * lib/gl_sublist.c: Likewise.
37579         * lib/gl_sublist.h: Likewise.
37580         * lib/group-member.c: Likewise.
37581         * lib/group-member.h: Likewise.
37582         * lib/hard-locale.c: Likewise.
37583         * lib/hard-locale.h: Likewise.
37584         * lib/hash-pjw.c: Likewise.
37585         * lib/hash-pjw.h: Likewise.
37586         * lib/hash-triple.c: Likewise.
37587         * lib/hash.c: Likewise.
37588         * lib/hash.h: Likewise.
37589         * lib/human.c: Likewise.
37590         * lib/human.h: Likewise.
37591         * lib/i-ring.c: Likewise.
37592         * lib/i-ring.h: Likewise.
37593         * lib/idcache.c: Likewise.
37594         * lib/imaxabs.c: Likewise.
37595         * lib/imaxdiv.c: Likewise.
37596         * lib/inet_pton.c: Likewise.
37597         * lib/inet_pton.h: Likewise.
37598         * lib/intprops.h: Likewise.
37599         * lib/inttostr.c: Likewise.
37600         * lib/inttostr.h: Likewise.
37601         * lib/inttypes.in.h: Likewise.
37602         * lib/isapipe.c: Likewise.
37603         * lib/isdir.c: Likewise.
37604         * lib/isnan.c: Likewise.
37605         * lib/isnan.h: Likewise.
37606         * lib/isnanf.c: Likewise.
37607         * lib/isnanf.h: Likewise.
37608         * lib/isnanl-nolibm.h: Likewise.
37609         * lib/isnanl.c: Likewise.
37610         * lib/isnanl.h: Likewise.
37611         * lib/javacomp.c: Likewise.
37612         * lib/javacomp.h: Likewise.
37613         * lib/javaexec.c: Likewise.
37614         * lib/javaexec.h: Likewise.
37615         * lib/javaversion.c: Likewise.
37616         * lib/javaversion.h: Likewise.
37617         * lib/javaversion.java: Likewise.
37618         * lib/lbrkprop.h: Likewise.
37619         * lib/lchmod.h: Likewise.
37620         * lib/lchown.c: Likewise.
37621         * lib/ldexpl.c: Likewise.
37622         * lib/linebreak.c: Likewise.
37623         * lib/linebreak.h: Likewise.
37624         * lib/linebuffer.c: Likewise.
37625         * lib/linebuffer.h: Likewise.
37626         * lib/locale.in.h: Likewise.
37627         * lib/logl.c: Likewise.
37628         * lib/long-options.c: Likewise.
37629         * lib/long-options.h: Likewise.
37630         * lib/lstat.c: Likewise.
37631         * lib/lstat.h: Likewise.
37632         * lib/math.in.h: Likewise.
37633         * lib/mbchar.c: Likewise.
37634         * lib/mbchar.h: Likewise.
37635         * lib/mbfile.h: Likewise.
37636         * lib/mbiter.h: Likewise.
37637         * lib/mbscasecmp.c: Likewise.
37638         * lib/mbscasestr.c: Likewise.
37639         * lib/mbschr.c: Likewise.
37640         * lib/mbscspn.c: Likewise.
37641         * lib/mbslen.c: Likewise.
37642         * lib/mbsncasecmp.c: Likewise.
37643         * lib/mbsnlen.c: Likewise.
37644         * lib/mbspbrk.c: Likewise.
37645         * lib/mbspcasecmp.c: Likewise.
37646         * lib/mbsrchr.c: Likewise.
37647         * lib/mbssep.c: Likewise.
37648         * lib/mbsspn.c: Likewise.
37649         * lib/mbsstr.c: Likewise.
37650         * lib/mbstok_r.c: Likewise.
37651         * lib/mbswidth.c: Likewise.
37652         * lib/mbswidth.h: Likewise.
37653         * lib/mbuiter.h: Likewise.
37654         * lib/memcasecmp.c: Likewise.
37655         * lib/memcasecmp.h: Likewise.
37656         * lib/memchr.c: Likewise.
37657         * lib/memcmp.c: Likewise.
37658         * lib/memcoll.c: Likewise.
37659         * lib/memcoll.h: Likewise.
37660         * lib/memcpy.c: Likewise.
37661         * lib/memrchr.c: Likewise.
37662         * lib/mkancesdirs.c: Likewise.
37663         * lib/mkdir-p.c: Likewise.
37664         * lib/mkdir-p.h: Likewise.
37665         * lib/mkdir.c: Likewise.
37666         * lib/mkdirat.c: Likewise.
37667         * lib/mkdtemp.c: Likewise.
37668         * lib/mkstemp-safer.c: Likewise.
37669         * lib/mkstemp.c: Likewise.
37670         * lib/modechange.c: Likewise.
37671         * lib/modechange.h: Likewise.
37672         * lib/mountlist.c: Likewise.
37673         * lib/mountlist.h: Likewise.
37674         * lib/mpsort.c: Likewise.
37675         * lib/nanosleep.c: Likewise.
37676         * lib/obstack.c: Likewise.
37677         * lib/obstack.h: Likewise.
37678         * lib/open-safer.c: Likewise.
37679         * lib/open.c: Likewise.
37680         * lib/openat-die.c: Likewise.
37681         * lib/openat-priv.h: Likewise.
37682         * lib/openat-proc.c: Likewise.
37683         * lib/openat.c: Likewise.
37684         * lib/openat.h: Likewise.
37685         * lib/pagealign_alloc.c: Likewise.
37686         * lib/pagealign_alloc.h: Likewise.
37687         * lib/physmem.c: Likewise.
37688         * lib/physmem.h: Likewise.
37689         * lib/pipe-safer.c: Likewise.
37690         * lib/pipe.c: Likewise.
37691         * lib/pipe.h: Likewise.
37692         * lib/posixtm.c: Likewise.
37693         * lib/posixtm.h: Likewise.
37694         * lib/posixver.c: Likewise.
37695         * lib/printf-frexp.c: Likewise.
37696         * lib/printf-frexp.h: Likewise.
37697         * lib/printf-frexpl.c: Likewise.
37698         * lib/printf-frexpl.h: Likewise.
37699         * lib/printf.c: Likewise.
37700         * lib/progname.c: Likewise.
37701         * lib/progname.h: Likewise.
37702         * lib/progreloc.c: Likewise.
37703         * lib/putenv.c: Likewise.
37704         * lib/quote.c: Likewise.
37705         * lib/quote.h: Likewise.
37706         * lib/quotearg.c: Likewise.
37707         * lib/quotearg.h: Likewise.
37708         * lib/raise.c: Likewise.
37709         * lib/readline.c: Likewise.
37710         * lib/readline.h: Likewise.
37711         * lib/readlink.c: Likewise.
37712         * lib/readtokens.c: Likewise.
37713         * lib/readtokens.h: Likewise.
37714         * lib/readtokens0.c: Likewise.
37715         * lib/readtokens0.h: Likewise.
37716         * lib/readutmp.c: Likewise.
37717         * lib/readutmp.h: Likewise.
37718         * lib/realloc.c: Likewise.
37719         * lib/relocwrapper.c: Likewise.
37720         * lib/rename-dest-slash.c: Likewise.
37721         * lib/rename.c: Likewise.
37722         * lib/rmdir.c: Likewise.
37723         * lib/rpmatch.c: Likewise.
37724         * lib/safe-read.c: Likewise.
37725         * lib/safe-read.h: Likewise.
37726         * lib/safe-write.c: Likewise.
37727         * lib/safe-write.h: Likewise.
37728         * lib/same-inode.h: Likewise.
37729         * lib/same.c: Likewise.
37730         * lib/same.h: Likewise.
37731         * lib/save-cwd.c: Likewise.
37732         * lib/save-cwd.h: Likewise.
37733         * lib/savedir.c: Likewise.
37734         * lib/savedir.h: Likewise.
37735         * lib/savewd.c: Likewise.
37736         * lib/savewd.h: Likewise.
37737         * lib/search.in.h: Likewise.
37738         * lib/setenv.c: Likewise.
37739         * lib/setenv.h: Likewise.
37740         * lib/settime.c: Likewise.
37741         * lib/sh-quote.c: Likewise.
37742         * lib/sh-quote.h: Likewise.
37743         * lib/sig2str.c: Likewise.
37744         * lib/sig2str.h: Likewise.
37745         * lib/signal.in.h: Likewise.
37746         * lib/signbitd.c: Likewise.
37747         * lib/signbitf.c: Likewise.
37748         * lib/signbitl.c: Likewise.
37749         * lib/sigprocmask.c: Likewise.
37750         * lib/sincosl.c: Likewise.
37751         * lib/sleep.c: Likewise.
37752         * lib/sprintf.c: Likewise.
37753         * lib/sqrtl.c: Likewise.
37754         * lib/stat-time.h: Likewise.
37755         * lib/stdio--.h: Likewise.
37756         * lib/stdio-safer.h: Likewise.
37757         * lib/stdlib--.h: Likewise.
37758         * lib/stdlib-safer.h: Likewise.
37759         * lib/stdlib.in.h: Likewise.
37760         * lib/stpcpy.c: Likewise.
37761         * lib/stpncpy.c: Likewise.
37762         * lib/strchrnul.c: Likewise.
37763         * lib/strcspn.c: Likewise.
37764         * lib/strerror.c: Likewise.
37765         * lib/strftime.c: Likewise.
37766         * lib/strftime.h: Likewise.
37767         * lib/striconveh.c: Likewise.
37768         * lib/striconveh.h: Likewise.
37769         * lib/striconveha.c: Likewise.
37770         * lib/striconveha.h: Likewise.
37771         * lib/stripslash.c: Likewise.
37772         * lib/strnlen1.c: Likewise.
37773         * lib/strnlen1.h: Likewise.
37774         * lib/strtod.c: Likewise.
37775         * lib/strtoimax.c: Likewise.
37776         * lib/strtok_r.c: Likewise.
37777         * lib/strtol.c: Likewise.
37778         * lib/strtoll.c: Likewise.
37779         * lib/strtoul.c: Likewise.
37780         * lib/strtoull.c: Likewise.
37781         * lib/sysexits.in.h: Likewise.
37782         * lib/tempname.c: Likewise.
37783         * lib/tempname.h: Likewise.
37784         * lib/timespec.h: Likewise.
37785         * lib/tls.c: Likewise.
37786         * lib/tls.h: Likewise.
37787         * lib/tmpdir.c: Likewise.
37788         * lib/tmpdir.h: Likewise.
37789         * lib/tmpfile-safer.c: Likewise.
37790         * lib/tmpfile.c: Likewise.
37791         * lib/trigl.c: Likewise.
37792         * lib/trigl.h: Likewise.
37793         * lib/trim.c: Likewise.
37794         * lib/trim.h: Likewise.
37795         * lib/trunc.c: Likewise.
37796         * lib/truncf.c: Likewise.
37797         * lib/truncl.c: Likewise.
37798         * lib/tsearch.c: Likewise.
37799         * lib/unicodeio.c: Likewise.
37800         * lib/unicodeio.h: Likewise.
37801         * lib/unistd--.h: Likewise.
37802         * lib/unistd-safer.h: Likewise.
37803         * lib/unistdio/ulc-fprintf.c: Likewise.
37804         * lib/unistdio/ulc-vfprintf.c: Likewise.
37805         * lib/unlinkdir.c: Likewise.
37806         * lib/unlinkdir.h: Likewise.
37807         * lib/unlocked-io.h: Likewise.
37808         * lib/unsetenv.c: Likewise.
37809         * lib/userspec.c: Likewise.
37810         * lib/utime.c: Likewise.
37811         * lib/utimecmp.c: Likewise.
37812         * lib/utimecmp.h: Likewise.
37813         * lib/utimens.c: Likewise.
37814         * lib/verify.h: Likewise.
37815         * lib/verror.c: Likewise.
37816         * lib/verror.h: Likewise.
37817         * lib/version-etc-fsf.c: Likewise.
37818         * lib/version-etc.c: Likewise.
37819         * lib/version-etc.h: Likewise.
37820         * lib/vfprintf.c: Likewise.
37821         * lib/vprintf.c: Likewise.
37822         * lib/vsprintf.c: Likewise.
37823         * lib/w32spawn.h: Likewise.
37824         * lib/wait-process.c: Likewise.
37825         * lib/wait-process.h: Likewise.
37826         * lib/wcwidth.c: Likewise.
37827         * lib/write-any-file.c: Likewise.
37828         * lib/xalloc-die.c: Likewise.
37829         * lib/xalloc.h: Likewise.
37830         * lib/xasprintf.c: Likewise.
37831         * lib/xgetcwd.c: Likewise.
37832         * lib/xgetcwd.h: Likewise.
37833         * lib/xgetdomainname.c: Likewise.
37834         * lib/xgetdomainname.h: Likewise.
37835         * lib/xgethostname.c: Likewise.
37836         * lib/xmalloc.c: Likewise.
37837         * lib/xmalloca.c: Likewise.
37838         * lib/xmalloca.h: Likewise.
37839         * lib/xmemcoll.c: Likewise.
37840         * lib/xnanosleep.c: Likewise.
37841         * lib/xreadlink.c: Likewise.
37842         * lib/xreadlink.h: Likewise.
37843         * lib/xsetenv.c: Likewise.
37844         * lib/xsetenv.h: Likewise.
37845         * lib/xstriconv.c: Likewise.
37846         * lib/xstriconv.h: Likewise.
37847         * lib/xstrndup.c: Likewise.
37848         * lib/xstrndup.h: Likewise.
37849         * lib/xstrtod.c: Likewise.
37850         * lib/xstrtod.h: Likewise.
37851         * lib/xstrtol-error.c: Likewise.
37852         * lib/xstrtol.c: Likewise.
37853         * lib/xstrtol.h: Likewise.
37854         * lib/xtime.h: Likewise.
37855         * lib/xvasprintf.c: Likewise.
37856         * lib/xvasprintf.h: Likewise.
37857         * lib/yesno.c: Likewise.
37858         * lib/yesno.h: Likewise.
37859         * posix-modules: Likewise.
37860         * tests/test-alloca-opt.c: Likewise.
37861         * tests/test-arcfour.c: Likewise.
37862         * tests/test-arctwo.c: Likewise.
37863         * tests/test-argmatch.c: Likewise.
37864         * tests/test-argp-2.sh: Likewise.
37865         * tests/test-argp.c: Likewise.
37866         * tests/test-arpa_inet.c: Likewise.
37867         * tests/test-array_list.c: Likewise.
37868         * tests/test-array_oset.c: Likewise.
37869         * tests/test-atexit.c: Likewise.
37870         * tests/test-avltree_list.c: Likewise.
37871         * tests/test-avltree_oset.c: Likewise.
37872         * tests/test-avltreehash_list.c: Likewise.
37873         * tests/test-base64.c: Likewise.
37874         * tests/test-binary-io.c: Likewise.
37875         * tests/test-byteswap.c: Likewise.
37876         * tests/test-c-ctype.c: Likewise.
37877         * tests/test-c-strcasecmp.c: Likewise.
37878         * tests/test-c-strcasestr.c: Likewise.
37879         * tests/test-c-strncasecmp.c: Likewise.
37880         * tests/test-c-strstr.c: Likewise.
37881         * tests/test-canonicalize-lgpl.c: Likewise.
37882         * tests/test-canonicalize.c: Likewise.
37883         * tests/test-carray_list.c: Likewise.
37884         * tests/test-ceilf.c: Likewise.
37885         * tests/test-ceill.c: Likewise.
37886         * tests/test-count-one-bits.c: Likewise.
37887         * tests/test-crc.c: Likewise.
37888         * tests/test-dirname.c: Likewise.
37889         * tests/test-fbufmode.c: Likewise.
37890         * tests/test-fcntl.c: Likewise.
37891         * tests/test-fflush.c: Likewise.
37892         * tests/test-floorf.c: Likewise.
37893         * tests/test-floorl.c: Likewise.
37894         * tests/test-fopen.c: Likewise.
37895         * tests/test-fprintf-posix.c: Likewise.
37896         * tests/test-fprintf-posix.h: Likewise.
37897         * tests/test-fpurge.c: Likewise.
37898         * tests/test-freadable.c: Likewise.
37899         * tests/test-freadahead.c: Likewise.
37900         * tests/test-freading.c: Likewise.
37901         * tests/test-freopen.c: Likewise.
37902         * tests/test-frexp.c: Likewise.
37903         * tests/test-frexpl.c: Likewise.
37904         * tests/test-fseek.c: Likewise.
37905         * tests/test-fseeko.c: Likewise.
37906         * tests/test-fseterr.c: Likewise.
37907         * tests/test-fstrcmp.c: Likewise.
37908         * tests/test-ftell.c: Likewise.
37909         * tests/test-ftello.c: Likewise.
37910         * tests/test-fwritable.c: Likewise.
37911         * tests/test-fwriting.c: Likewise.
37912         * tests/test-getaddrinfo.c: Likewise.
37913         * tests/test-getpass.c: Likewise.
37914         * tests/test-gettimeofday.c: Likewise.
37915         * tests/test-hmac-md5.c: Likewise.
37916         * tests/test-hmac-sha1.c: Likewise.
37917         * tests/test-iconv.c: Likewise.
37918         * tests/test-iconvme.c: Likewise.
37919         * tests/test-inttypes.c: Likewise.
37920         * tests/test-isnan.c: Likewise.
37921         * tests/test-isnanf.c: Likewise.
37922         * tests/test-isnanl-nolibm.c: Likewise.
37923         * tests/test-isnanl.c: Likewise.
37924         * tests/test-isnanl.h: Likewise.
37925         * tests/test-ldexpl.c: Likewise.
37926         * tests/test-linked_list.c: Likewise.
37927         * tests/test-linkedhash_list.c: Likewise.
37928         * tests/test-locale.c: Likewise.
37929         * tests/test-localename.c: Likewise.
37930         * tests/test-lock.c: Likewise.
37931         * tests/test-lseek.c: Likewise.
37932         * tests/test-malloca.c: Likewise.
37933         * tests/test-math.c: Likewise.
37934         * tests/test-mbscasecmp.c: Likewise.
37935         * tests/test-mbscasestr1.c: Likewise.
37936         * tests/test-mbscasestr2.c: Likewise.
37937         * tests/test-mbscasestr3.c: Likewise.
37938         * tests/test-mbscasestr4.c: Likewise.
37939         * tests/test-mbschr.c: Likewise.
37940         * tests/test-mbscspn.c: Likewise.
37941         * tests/test-mbsncasecmp.c: Likewise.
37942         * tests/test-mbspbrk.c: Likewise.
37943         * tests/test-mbspcasecmp.c: Likewise.
37944         * tests/test-mbsrchr.c: Likewise.
37945         * tests/test-mbsspn.c: Likewise.
37946         * tests/test-mbsstr1.c: Likewise.
37947         * tests/test-mbsstr2.c: Likewise.
37948         * tests/test-mbsstr3.c: Likewise.
37949         * tests/test-md5.c: Likewise.
37950         * tests/test-memmem.c: Likewise.
37951         * tests/test-netinet_in.c: Likewise.
37952         * tests/test-open.c: Likewise.
37953         * tests/test-printf-frexp.c: Likewise.
37954         * tests/test-printf-frexpl.c: Likewise.
37955         * tests/test-printf-posix.c: Likewise.
37956         * tests/test-printf-posix.h: Likewise.
37957         * tests/test-rbtree_list.c: Likewise.
37958         * tests/test-rbtree_oset.c: Likewise.
37959         * tests/test-rbtreehash_list.c: Likewise.
37960         * tests/test-read-file.c: Likewise.
37961         * tests/test-rijndael.c: Likewise.
37962         * tests/test-search.c: Likewise.
37963         * tests/test-signbit.c: Likewise.
37964         * tests/test-sleep.c: Likewise.
37965         * tests/test-snprintf-posix.c: Likewise.
37966         * tests/test-snprintf-posix.h: Likewise.
37967         * tests/test-snprintf.c: Likewise.
37968         * tests/test-sprintf-posix.c: Likewise.
37969         * tests/test-sprintf-posix.h: Likewise.
37970         * tests/test-stat-time.c: Likewise.
37971         * tests/test-stdbool.c: Likewise.
37972         * tests/test-stdint.c: Likewise.
37973         * tests/test-stdio.c: Likewise.
37974         * tests/test-stdlib.c: Likewise.
37975         * tests/test-stpncpy.c: Likewise.
37976         * tests/test-strcasestr.c: Likewise.
37977         * tests/test-striconv.c: Likewise.
37978         * tests/test-striconveh.c: Likewise.
37979         * tests/test-striconveha.c: Likewise.
37980         * tests/test-string.c: Likewise.
37981         * tests/test-sys_select.c: Likewise.
37982         * tests/test-sys_socket.c: Likewise.
37983         * tests/test-sys_stat.c: Likewise.
37984         * tests/test-sys_time.c: Likewise.
37985         * tests/test-sysexits.c: Likewise.
37986         * tests/test-time.c: Likewise.
37987         * tests/test-tls.c: Likewise.
37988         * tests/test-trunc.c: Likewise.
37989         * tests/test-truncf.c: Likewise.
37990         * tests/test-truncl.c: Likewise.
37991         * tests/test-unistd.c: Likewise.
37992         * tests/test-vasnprintf-posix.c: Likewise.
37993         * tests/test-vasnprintf-posix2.c: Likewise.
37994         * tests/test-vasnprintf.c: Likewise.
37995         * tests/test-vasprintf-posix.c: Likewise.
37996         * tests/test-vasprintf.c: Likewise.
37997         * tests/test-verify.c: Likewise.
37998         * tests/test-vfprintf-posix.c: Likewise.
37999         * tests/test-vprintf-posix.c: Likewise.
38000         * tests/test-vsnprintf-posix.c: Likewise.
38001         * tests/test-vsnprintf.c: Likewise.
38002         * tests/test-vsprintf-posix.c: Likewise.
38003         * tests/test-wchar.c: Likewise.
38004         * tests/test-wctype.c: Likewise.
38005         * tests/test-wcwidth.c: Likewise.
38006         * tests/test-xstrtol.c: Likewise.
38007         * tests/test-xvasprintf.c: Likewise.
38008         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38009         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38010         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38011         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38012         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38013         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38014         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38015         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38016         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38017         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38018         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38019         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38020         * tests/uniname/test-uninames.c: Likewise.
38021         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38022         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
38023         * tests/unistdio/test-u16-printf1.h: Likewise.
38024         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38025         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38026         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38027         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38028         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38029         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38030         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38031         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
38032         * tests/unistdio/test-u32-printf1.h: Likewise.
38033         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38034         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38035         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38036         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38037         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38038         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38039         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38040         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
38041         * tests/unistdio/test-u8-printf1.h: Likewise.
38042         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38043         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38044         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38045         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38046         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38047         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38048         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38049         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
38050         * tests/unistdio/test-ulc-printf1.h: Likewise.
38051         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38052         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38053         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38054         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38055         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38056         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38057         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38058         * tests/uniwidth/test-u16-width.c: Likewise.
38059         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38060         * tests/uniwidth/test-u32-width.c: Likewise.
38061         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38062         * tests/uniwidth/test-u8-width.c: Likewise.
38063         * tests/uniwidth/test-uc_width.c: Likewise.
38064         * config/srclist-update: Likewise.
38065         (fixlicense): Update to GPLv3+.
38066
38067         Change copyright notice from LGPLv2.1+ to LGPLv3+.
38068         * tests/test-tsearch.c: Change copyright notice.
38069
38070         Change copyright notice from LGPLv2.0+ to LGPLv3+.
38071         * lib/c-strcaseeq.h: Change copyright notice.
38072         * lib/streq.h: Likewise.
38073         * lib/uniconv.h: Likewise.
38074         * lib/uniconv/u-conv-from-enc.h: Likewise.
38075         * lib/uniconv/u-conv-to-enc.h: Likewise.
38076         * lib/uniconv/u-strconv-from-enc.h: Likewise.
38077         * lib/uniconv/u-strconv-to-enc.h: Likewise.
38078         * lib/uniconv/u16-conv-from-enc.c: Likewise.
38079         * lib/uniconv/u16-conv-to-enc.c: Likewise.
38080         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
38081         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
38082         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
38083         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
38084         * lib/uniconv/u32-conv-from-enc.c: Likewise.
38085         * lib/uniconv/u32-conv-to-enc.c: Likewise.
38086         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
38087         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
38088         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
38089         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
38090         * lib/uniconv/u8-conv-from-enc.c: Likewise.
38091         * lib/uniconv/u8-conv-to-enc.c: Likewise.
38092         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
38093         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
38094         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
38095         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
38096         * lib/uniname.h: Likewise.
38097         * lib/uniname/uniname.c: Likewise.
38098         * lib/unistdio.h: Likewise.
38099         * lib/unistdio/u-asnprintf.h: Likewise.
38100         * lib/unistdio/u-asprintf.h: Likewise.
38101         * lib/unistdio/u-printf-args.c: Likewise.
38102         * lib/unistdio/u-printf-args.h: Likewise.
38103         * lib/unistdio/u-printf-parse.h: Likewise.
38104         * lib/unistdio/u-snprintf.h: Likewise.
38105         * lib/unistdio/u-sprintf.h: Likewise.
38106         * lib/unistdio/u-vasprintf.h: Likewise.
38107         * lib/unistdio/u-vsnprintf.h: Likewise.
38108         * lib/unistdio/u-vsprintf.h: Likewise.
38109         * lib/unistdio/u16-asnprintf.c: Likewise.
38110         * lib/unistdio/u16-asprintf.c: Likewise.
38111         * lib/unistdio/u16-printf-parse.c: Likewise.
38112         * lib/unistdio/u16-snprintf.c: Likewise.
38113         * lib/unistdio/u16-sprintf.c: Likewise.
38114         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
38115         * lib/unistdio/u16-u16-asprintf.c: Likewise.
38116         * lib/unistdio/u16-u16-snprintf.c: Likewise.
38117         * lib/unistdio/u16-u16-sprintf.c: Likewise.
38118         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
38119         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
38120         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
38121         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
38122         * lib/unistdio/u16-vasnprintf.c: Likewise.
38123         * lib/unistdio/u16-vasprintf.c: Likewise.
38124         * lib/unistdio/u16-vsnprintf.c: Likewise.
38125         * lib/unistdio/u16-vsprintf.c: Likewise.
38126         * lib/unistdio/u32-asnprintf.c: Likewise.
38127         * lib/unistdio/u32-asprintf.c: Likewise.
38128         * lib/unistdio/u32-printf-parse.c: Likewise.
38129         * lib/unistdio/u32-snprintf.c: Likewise.
38130         * lib/unistdio/u32-sprintf.c: Likewise.
38131         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
38132         * lib/unistdio/u32-u32-asprintf.c: Likewise.
38133         * lib/unistdio/u32-u32-snprintf.c: Likewise.
38134         * lib/unistdio/u32-u32-sprintf.c: Likewise.
38135         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
38136         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
38137         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
38138         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
38139         * lib/unistdio/u32-vasnprintf.c: Likewise.
38140         * lib/unistdio/u32-vasprintf.c: Likewise.
38141         * lib/unistdio/u32-vsnprintf.c: Likewise.
38142         * lib/unistdio/u32-vsprintf.c: Likewise.
38143         * lib/unistdio/u8-asnprintf.c: Likewise.
38144         * lib/unistdio/u8-asprintf.c: Likewise.
38145         * lib/unistdio/u8-printf-parse.c: Likewise.
38146         * lib/unistdio/u8-snprintf.c: Likewise.
38147         * lib/unistdio/u8-sprintf.c: Likewise.
38148         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
38149         * lib/unistdio/u8-u8-asprintf.c: Likewise.
38150         * lib/unistdio/u8-u8-snprintf.c: Likewise.
38151         * lib/unistdio/u8-u8-sprintf.c: Likewise.
38152         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
38153         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
38154         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
38155         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
38156         * lib/unistdio/u8-vasnprintf.c: Likewise.
38157         * lib/unistdio/u8-vasprintf.c: Likewise.
38158         * lib/unistdio/u8-vsnprintf.c: Likewise.
38159         * lib/unistdio/u8-vsprintf.c: Likewise.
38160         * lib/unistdio/ulc-asnprintf.c: Likewise.
38161         * lib/unistdio/ulc-asprintf.c: Likewise.
38162         * lib/unistdio/ulc-printf-parse.c: Likewise.
38163         * lib/unistdio/ulc-snprintf.c: Likewise.
38164         * lib/unistdio/ulc-sprintf.c: Likewise.
38165         * lib/unistdio/ulc-vasnprintf.c: Likewise.
38166         * lib/unistdio/ulc-vasprintf.c: Likewise.
38167         * lib/unistdio/ulc-vsnprintf.c: Likewise.
38168         * lib/unistdio/ulc-vsprintf.c: Likewise.
38169         * lib/unistr.h: Likewise.
38170         * lib/unistr/u-cpy-alloc.h: Likewise.
38171         * lib/unistr/u-cpy.h: Likewise.
38172         * lib/unistr/u-endswith.h: Likewise.
38173         * lib/unistr/u-move.h: Likewise.
38174         * lib/unistr/u-set.h: Likewise.
38175         * lib/unistr/u-startswith.h: Likewise.
38176         * lib/unistr/u-stpcpy.h: Likewise.
38177         * lib/unistr/u-stpncpy.h: Likewise.
38178         * lib/unistr/u-strcat.h: Likewise.
38179         * lib/unistr/u-strcpy.h: Likewise.
38180         * lib/unistr/u-strcspn.h: Likewise.
38181         * lib/unistr/u-strdup.h: Likewise.
38182         * lib/unistr/u-strlen.h: Likewise.
38183         * lib/unistr/u-strncat.h: Likewise.
38184         * lib/unistr/u-strncpy.h: Likewise.
38185         * lib/unistr/u-strnlen.h: Likewise.
38186         * lib/unistr/u-strpbrk.h: Likewise.
38187         * lib/unistr/u-strspn.h: Likewise.
38188         * lib/unistr/u-strstr.h: Likewise.
38189         * lib/unistr/u-strtok.h: Likewise.
38190         * lib/unistr/u16-check.c: Likewise.
38191         * lib/unistr/u16-chr.c: Likewise.
38192         * lib/unistr/u16-cmp.c: Likewise.
38193         * lib/unistr/u16-cpy-alloc.c: Likewise.
38194         * lib/unistr/u16-cpy.c: Likewise.
38195         * lib/unistr/u16-endswith.c: Likewise.
38196         * lib/unistr/u16-mblen.c: Likewise.
38197         * lib/unistr/u16-mbsnlen.c: Likewise.
38198         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38199         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38200         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38201         * lib/unistr/u16-mbtouc.c: Likewise.
38202         * lib/unistr/u16-mbtoucr.c: Likewise.
38203         * lib/unistr/u16-move.c: Likewise.
38204         * lib/unistr/u16-next.c: Likewise.
38205         * lib/unistr/u16-prev.c: Likewise.
38206         * lib/unistr/u16-set.c: Likewise.
38207         * lib/unistr/u16-startswith.c: Likewise.
38208         * lib/unistr/u16-stpcpy.c: Likewise.
38209         * lib/unistr/u16-stpncpy.c: Likewise.
38210         * lib/unistr/u16-strcat.c: Likewise.
38211         * lib/unistr/u16-strchr.c: Likewise.
38212         * lib/unistr/u16-strcmp.c: Likewise.
38213         * lib/unistr/u16-strcpy.c: Likewise.
38214         * lib/unistr/u16-strcspn.c: Likewise.
38215         * lib/unistr/u16-strdup.c: Likewise.
38216         * lib/unistr/u16-strlen.c: Likewise.
38217         * lib/unistr/u16-strmblen.c: Likewise.
38218         * lib/unistr/u16-strmbtouc.c: Likewise.
38219         * lib/unistr/u16-strncat.c: Likewise.
38220         * lib/unistr/u16-strncmp.c: Likewise.
38221         * lib/unistr/u16-strncpy.c: Likewise.
38222         * lib/unistr/u16-strnlen.c: Likewise.
38223         * lib/unistr/u16-strpbrk.c: Likewise.
38224         * lib/unistr/u16-strrchr.c: Likewise.
38225         * lib/unistr/u16-strspn.c: Likewise.
38226         * lib/unistr/u16-strstr.c: Likewise.
38227         * lib/unistr/u16-strtok.c: Likewise.
38228         * lib/unistr/u16-to-u32.c: Likewise.
38229         * lib/unistr/u16-to-u8.c: Likewise.
38230         * lib/unistr/u16-uctomb-aux.c: Likewise.
38231         * lib/unistr/u16-uctomb.c: Likewise.
38232         * lib/unistr/u32-check.c: Likewise.
38233         * lib/unistr/u32-chr.c: Likewise.
38234         * lib/unistr/u32-cmp.c: Likewise.
38235         * lib/unistr/u32-cpy-alloc.c: Likewise.
38236         * lib/unistr/u32-cpy.c: Likewise.
38237         * lib/unistr/u32-endswith.c: Likewise.
38238         * lib/unistr/u32-mblen.c: Likewise.
38239         * lib/unistr/u32-mbsnlen.c: Likewise.
38240         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38241         * lib/unistr/u32-mbtouc.c: Likewise.
38242         * lib/unistr/u32-mbtoucr.c: Likewise.
38243         * lib/unistr/u32-move.c: Likewise.
38244         * lib/unistr/u32-next.c: Likewise.
38245         * lib/unistr/u32-prev.c: Likewise.
38246         * lib/unistr/u32-set.c: Likewise.
38247         * lib/unistr/u32-startswith.c: Likewise.
38248         * lib/unistr/u32-stpcpy.c: Likewise.
38249         * lib/unistr/u32-stpncpy.c: Likewise.
38250         * lib/unistr/u32-strcat.c: Likewise.
38251         * lib/unistr/u32-strchr.c: Likewise.
38252         * lib/unistr/u32-strcmp.c: Likewise.
38253         * lib/unistr/u32-strcpy.c: Likewise.
38254         * lib/unistr/u32-strcspn.c: Likewise.
38255         * lib/unistr/u32-strdup.c: Likewise.
38256         * lib/unistr/u32-strlen.c: Likewise.
38257         * lib/unistr/u32-strmblen.c: Likewise.
38258         * lib/unistr/u32-strmbtouc.c: Likewise.
38259         * lib/unistr/u32-strncat.c: Likewise.
38260         * lib/unistr/u32-strncmp.c: Likewise.
38261         * lib/unistr/u32-strncpy.c: Likewise.
38262         * lib/unistr/u32-strnlen.c: Likewise.
38263         * lib/unistr/u32-strpbrk.c: Likewise.
38264         * lib/unistr/u32-strrchr.c: Likewise.
38265         * lib/unistr/u32-strspn.c: Likewise.
38266         * lib/unistr/u32-strstr.c: Likewise.
38267         * lib/unistr/u32-strtok.c: Likewise.
38268         * lib/unistr/u32-to-u16.c: Likewise.
38269         * lib/unistr/u32-to-u8.c: Likewise.
38270         * lib/unistr/u32-uctomb.c: Likewise.
38271         * lib/unistr/u8-check.c: Likewise.
38272         * lib/unistr/u8-chr.c: Likewise.
38273         * lib/unistr/u8-cmp.c: Likewise.
38274         * lib/unistr/u8-cpy-alloc.c: Likewise.
38275         * lib/unistr/u8-cpy.c: Likewise.
38276         * lib/unistr/u8-endswith.c: Likewise.
38277         * lib/unistr/u8-mblen.c: Likewise.
38278         * lib/unistr/u8-mbsnlen.c: Likewise.
38279         * lib/unistr/u8-mbtouc-aux.c: Likewise.
38280         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38281         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38282         * lib/unistr/u8-mbtouc.c: Likewise.
38283         * lib/unistr/u8-mbtoucr.c: Likewise.
38284         * lib/unistr/u8-move.c: Likewise.
38285         * lib/unistr/u8-next.c: Likewise.
38286         * lib/unistr/u8-prev.c: Likewise.
38287         * lib/unistr/u8-set.c: Likewise.
38288         * lib/unistr/u8-startswith.c: Likewise.
38289         * lib/unistr/u8-stpcpy.c: Likewise.
38290         * lib/unistr/u8-stpncpy.c: Likewise.
38291         * lib/unistr/u8-strcat.c: Likewise.
38292         * lib/unistr/u8-strchr.c: Likewise.
38293         * lib/unistr/u8-strcmp.c: Likewise.
38294         * lib/unistr/u8-strcpy.c: Likewise.
38295         * lib/unistr/u8-strcspn.c: Likewise.
38296         * lib/unistr/u8-strdup.c: Likewise.
38297         * lib/unistr/u8-strlen.c: Likewise.
38298         * lib/unistr/u8-strmblen.c: Likewise.
38299         * lib/unistr/u8-strmbtouc.c: Likewise.
38300         * lib/unistr/u8-strncat.c: Likewise.
38301         * lib/unistr/u8-strncmp.c: Likewise.
38302         * lib/unistr/u8-strncpy.c: Likewise.
38303         * lib/unistr/u8-strnlen.c: Likewise.
38304         * lib/unistr/u8-strpbrk.c: Likewise.
38305         * lib/unistr/u8-strrchr.c: Likewise.
38306         * lib/unistr/u8-strspn.c: Likewise.
38307         * lib/unistr/u8-strstr.c: Likewise.
38308         * lib/unistr/u8-strtok.c: Likewise.
38309         * lib/unistr/u8-to-u16.c: Likewise.
38310         * lib/unistr/u8-to-u32.c: Likewise.
38311         * lib/unistr/u8-uctomb-aux.c: Likewise.
38312         * lib/unistr/u8-uctomb.c: Likewise.
38313         * lib/unitypes.h: Likewise.
38314         * lib/uniwidth.h: Likewise.
38315         * lib/uniwidth/cjk.h: Likewise.
38316         * lib/uniwidth/u16-strwidth.c: Likewise.
38317         * lib/uniwidth/u16-width.c: Likewise.
38318         * lib/uniwidth/u32-strwidth.c: Likewise.
38319         * lib/uniwidth/u32-width.c: Likewise.
38320         * lib/uniwidth/u8-strwidth.c: Likewise.
38321         * lib/uniwidth/u8-width.c: Likewise.
38322         * lib/uniwidth/width.c: Likewise.
38323
38324 2007-10-07  Bruno Haible  <bruno@clisp.org>
38325
38326         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
38327         The file is still under LGPL (see modules/inttypes).
38328
38329 2007-10-06  Bruno Haible  <bruno@clisp.org>
38330
38331         * modules/trunc (Dependencies): Add 'extensions'.
38332         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
38333         Reported by Ben Pfaff <blp@gnu.org>.
38334
38335 2007-10-06  Bruno Haible  <bruno@clisp.org>
38336
38337         * modules/freopen-tests: New file.
38338         * tests/test-freopen.c: New file.
38339
38340         * modules/fopen-tests: New file.
38341         * tests/test-fopen.c: New file.
38342
38343         * modules/fopen: New file.
38344         * lib/fopen.c: New file.
38345         * m4/fopen.m4: New file.
38346         * modules/freopen: New file.
38347         * lib/freopen.c: New file.
38348         * m4/freopen.m4: New file.
38349         * lib/stdio.in.h (fopen, freopen): New declarations.
38350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
38351         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38352         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
38353         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38354         * doc/functions/fopen.texi: Mention the 'fopen' module.
38355         * doc/functions/freopen.texi: Mention the 'freopen' module.
38356
38357 2007-10-06  Bruno Haible  <bruno@clisp.org>
38358
38359         * modules/open-tests: New file.
38360         * tests/test-open.c: New file.
38361
38362         * modules/open: New file.
38363         * lib/open.c: New file.
38364         * m4/open.m4: New file.
38365         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
38366         lib/open.c does.
38367         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
38368         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
38369         macros.
38370         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
38371         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
38372         REPLACE_OPEN.
38373         * doc/functions/open.texi: Mention the 'open' module.
38374
38375 2007-10-04  Bruno Haible  <bruno@clisp.org>
38376
38377         * modules/ceill-tests: New file.
38378         * tests/test-ceill.c: New file.
38379
38380         * modules/ceill: New file.
38381         * lib/ceill.c: Replace entire file.
38382         * m4/ceill.m4: New file.
38383         * lib/math.in.h (ceill): Replace declaration.
38384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
38385         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
38386         * doc/functions/ceill.texi: Mention the 'ceill' module.
38387         * modules/mathl (Files): Remove lib/ceill.c.
38388         (Depends-on): Add ceill.
38389
38390 2007-10-04  Bruno Haible  <bruno@clisp.org>
38391
38392         * modules/ceilf-tests: New file.
38393         * tests/test-ceilf.c: New file.
38394
38395         * modules/ceilf: New file.
38396         * lib/ceil.c: New file.
38397         * lib/ceilf.c: New file.
38398         * m4/ceilf.m4: New file.
38399         * lib/math.in.h (ceilf): New declaration.
38400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
38401         HAVE_DECL_CEILF.
38402         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
38403         HAVE_DECL_CEILF.
38404         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
38405
38406 2007-10-04  Bruno Haible  <bruno@clisp.org>
38407
38408         * modules/floorl-tests: New file.
38409         * tests/test-floorl.c: New file.
38410
38411         * modules/floorl: New file.
38412         * lib/floorl.c: Replace entire file.
38413         * m4/floorl.m4: New file.
38414         * lib/math.in.h (floorl): Replace declaration.
38415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
38416         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
38417         * doc/functions/floorl.texi: Mention the 'floorl' module.
38418         * modules/mathl (Files): Remove lib/floorl.c.
38419         (Depends-on): Add floorl.
38420
38421 2007-10-04  Bruno Haible  <bruno@clisp.org>
38422
38423         * modules/floorf-tests: New file.
38424         * tests/test-floorf.c: New file.
38425
38426         * modules/floorf: New file.
38427         * lib/floor.c: New file.
38428         * lib/floorf.c: New file.
38429         * m4/floorf.m4: New file.
38430         * lib/math.in.h (floorf): New declaration.
38431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
38432         HAVE_DECL_FLOORF.
38433         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
38434         HAVE_DECL_FLOORF.
38435         * doc/functions/floorf.texi: Mention the 'floorf' module.
38436
38437 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
38438             Bruno Haible  <bruno@clisp.org>
38439
38440         Advertise for the Git server instead of the CVS server.
38441         * doc/gnulib-intro.texi (Steady Development): Mention the Git
38442         repository instead of the CVS one.
38443         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
38444         about all VCS systems generically.
38445         * doc/gnulib.texi (Introduction): Capitalize `Git'.
38446
38447 2007-10-04  Bruno Haible  <bruno@clisp.org>
38448
38449         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
38450         means.
38451         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
38452
38453 2007-10-04  Bruno Haible  <bruno@clisp.org>
38454
38455         * modules/truncl-tests: New file.
38456         * tests/test-truncl.c: New file.
38457
38458         * modules/truncl: New file.
38459         * lib/truncl.c: New file.
38460         * m4/truncl.m4: New file.
38461         * lib/math.in.h (truncl): New declaration.
38462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
38463         HAVE_DECL_TRUNCL.
38464         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
38465         HAVE_DECL_TRUNCL.
38466         * doc/functions/truncl.texi: Mention the 'truncl' module.
38467
38468 2007-10-04  Bruno Haible  <bruno@clisp.org>
38469
38470         * modules/truncf-tests: New file.
38471         * tests/test-truncf.c: New file.
38472
38473         * modules/truncf: New file.
38474         * lib/trunc.c: Make paramerizable through USE_* macros.
38475         * lib/truncf.c: New file.
38476         * m4/truncf.m4: New file.
38477         * lib/math.in.h (truncf): New declaration.
38478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
38479         HAVE_DECL_TRUNCF.
38480         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
38481         HAVE_DECL_TRUNCF.
38482         * doc/functions/truncf.texi: Mention the 'truncf' module.
38483
38484 2007-10-03  Bruno Haible  <bruno@clisp.org>
38485
38486         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38487         augmentation also for tests modules.
38488         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
38489         * modules/atexit-tests (Makefile.am): Likewise.
38490         * modules/binary-io-tests (Makefile.am): Likewise.
38491         * modules/c-strcase-tests (Makefile.am): Likewise.
38492         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
38493         * modules/canonicalize-tests (Makefile.am): Likewise.
38494         * modules/closein-tests (Makefile.am): Likewise.
38495         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38496         * modules/freadahead-tests (Makefile.am): Likewise.
38497         * modules/fseek-tests (Makefile.am): Likewise.
38498         * modules/fseeko-tests (Makefile.am): Likewise.
38499         * modules/ftell-tests (Makefile.am): Likewise.
38500         * modules/ftello-tests (Makefile.am): Likewise.
38501         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
38502         * modules/isnanl-tests (Makefile.am): Likewise.
38503         * modules/lseek-tests (Makefile.am): Likewise.
38504         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38505         * modules/mbscasestr-tests (Makefile.am): Likewise.
38506         * modules/mbschr-tests (Makefile.am): Likewise.
38507         * modules/mbscspn-tests (Makefile.am): Likewise.
38508         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38509         * modules/mbspbrk-tests (Makefile.am): Likewise.
38510         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38511         * modules/mbsrchr-tests (Makefile.am): Likewise.
38512         * modules/mbsspn-tests (Makefile.am): Likewise.
38513         * modules/mbsstr-tests (Makefile.am): Likewise.
38514         * modules/printf-posix-tests (Makefile.am): Likewise.
38515         * modules/snprintf-posix-tests (Makefile.am): Likewise.
38516         * modules/sprintf-posix-tests (Makefile.am): Likewise.
38517         * modules/tsearch-tests (Makefile.am): Likewise.
38518         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38519         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38520         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38521         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38522         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38523         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38524         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38525         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38526         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
38527         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
38528         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38529         * modules/xstrtol-tests (Makefile.am): Likewise.
38530         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38531         * modules/yesno-tests (Makefile.am): Likewise.
38532
38533 2007-10-03  Bruno Haible  <bruno@clisp.org>
38534
38535         * modules/trunc-tests: New file.
38536         * tests/test-trunc.c: New file.
38537
38538         * modules/trunc: New file.
38539         * lib/trunc.c: New file.
38540         * m4/trunc.m4: New file.
38541         * lib/math.in.h (trunc): New declaration.
38542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
38543         HAVE_DECL_TRUNC.
38544         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
38545         HAVE_DECL_TRUNC.
38546         * doc/functions/trunc.texi: Mention the 'trunc' module.
38547
38548 2007-10-03  Bruno Haible  <bruno@clisp.org>
38549
38550         * tests/test-fpending.c: New file, mostly copied
38551         from coreutils/lib/t-fpending.c.
38552         * modules/fpending-tests: New file.
38553
38554 2007-10-03  Bruno Haible  <bruno@clisp.org>
38555
38556         Port the stdio extensions to QNX (untested).
38557         * lib/fseterr.c (fseterr): Add support for QNX.
38558         * lib/fbufmode.c (fbufmode): Likewise.
38559         * lib/freadable.c (freadable): Likewise.
38560         * lib/fwritable.c (fwritable): Likewise.
38561         * lib/freading.c (freading): Likewise.
38562         * lib/fwriting.c (fwriting): Likewise.
38563         * lib/freadahead.c (freadahed): Likewise.
38564         * lib/fpurge.c (fpurge): Likewise.
38565         * lib/fseeko.c (rpl_fseeko): Likewise.
38566
38567 2007-10-03  Bruno Haible  <bruno@clisp.org>
38568             Jim Meyering  <jim@meyering.net>
38569             Eric Blake  <ebb9@byu.net>
38570
38571         * doc/relocatable.texi: Use @command instead of @program.
38572
38573 2007-10-02  Jim Meyering  <jim@meyering.net>
38574
38575         Perform one more "_.h" -> ".in.h" substitution.
38576         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
38577         instead of unistd_.h here, too.
38578
38579 2007-10-01  Bruno Haible  <bruno@clisp.org>
38580
38581         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
38582         Needed for the alloca-opt module.
38583
38584 2007-09-30  Bruno Haible  <bruno@clisp.org>
38585
38586         * lib/alloca.in.h: Renamed from lib/alloca_.h.
38587         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
38588         alloca_.h.
38589         * lib/argz.in.h: Renamed from lib/argz_.h.
38590         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
38591         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
38592         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
38593         byteswap_.h.
38594         * lib/dirent.in.h: Renamed from lib/dirent_.h.
38595         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
38596         dirent_.h.
38597         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
38598         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
38599         fcntl_.h.
38600         * lib/float.in.h: Renamed from lib/float_.h.
38601         * modules/float (Files, Makefile.am): Use float.in.h instead of
38602         float_.h.
38603         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
38604         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
38605         fnmatch_.h.
38606         * lib/getopt.in.h: Renamed from lib/getopt_.h.
38607         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
38608         getopt_.h.
38609         * lib/glob.in.h: Renamed from lib/glob_.h.
38610         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
38611         * lib/iconv.in.h: Renamed from lib/iconv_.h.
38612         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
38613         iconv_.h.
38614         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
38615         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
38616         inttypes_.h.
38617         * lib/locale.in.h: Renamed from lib/locale_.h.
38618         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
38619         locale_.h.
38620         * lib/math.in.h: Renamed from lib/math_.h.
38621         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
38622         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
38623         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
38624         of netinet_in_.h. Add dependency.
38625         * lib/poll.in.h: Renamed from lib/poll_.h.
38626         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
38627         * lib/search.in.h: Renamed from lib/search_.h.
38628         * modules/search (Files, Makefile.am): Use search.in.h instead of
38629         search_.h.
38630         * lib/signal.in.h: Renamed from lib/signal_.h.
38631         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
38632         _signal.h.
38633         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
38634         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
38635         stdbool_.h.
38636         * lib/stdint.in.h: Renamed from lib/stdint_.h.
38637         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
38638         stdint_.h.
38639         * lib/stdio.in.h: Renamed from lib/stdio_.h.
38640         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
38641         stdio_.h.
38642         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
38643         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
38644         stdlib_.h.
38645         * lib/string.in.h: Renamed from lib/string_.h.
38646         * modules/string (Files, Makefile.am): Use string.in.h instead of
38647         string_.h.
38648         * doc/gnulib-tool.texi (Initial import): Update.
38649         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
38650         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
38651         of sys_select_.h. Add dependency.
38652         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
38653         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
38654         of sys_socket_.h.
38655         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
38656         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
38657         sys_stat_.h.
38658         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
38659         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
38660         sys_time_.h.
38661         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
38662         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
38663         sysexits_.h.
38664         * lib/time.in.h: Renamed from lib/time_.h.
38665         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
38666         * lib/unistd.in.h: Renamed from lib/unistd_.h.
38667         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
38668         unistd_.h.
38669         * lib/wchar.in.h: Renamed from lib/wchar_.h.
38670         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
38671         wchar_.h.
38672         * lib/wctype.in.h: Renamed from lib/wctype_.h.
38673         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
38674         wctype_.h.
38675         * build-aux/bootstrap (slurp): Update.
38676         * lib/.cppi-disable: Update.
38677
38678 2007-09-30  Bruno Haible  <bruno@clisp.org>
38679
38680         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
38681         Needed on BeOS.
38682
38683 2007-09-30  Bruno Haible  <bruno@clisp.org>
38684
38685         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
38686
38687 2007-09-29  Bruno Haible  <bruno@clisp.org>
38688
38689         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
38690
38691 2007-09-29  Bruno Haible  <bruno@clisp.org>
38692
38693         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
38694         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
38695         * build-aux/install-reloc: Compile also areadlink.c.
38696         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
38697
38698 2007-09-29  Bruno Haible  <bruno@clisp.org>
38699
38700         * gnulib-tool (func_emit_initmacro_done): Indentation.
38701
38702 2007-09-29  Bruno Haible  <bruno@clisp.org>
38703
38704         * README: Add CVS checkout update instructions.
38705         Info from Bob Proulx <bob@proulx.com>.
38706
38707 2007-09-28  Eric Blake  <ebb9@byu.net>
38708
38709         Provide move-if-change.
38710         * build-aux/move-if-change: New file, based on best practice
38711         rather than any canonical upstream location.
38712
38713 2007-09-28  Jim Meyering  <jim@meyering.net>
38714
38715         Fix canonicalize loop-detection corner case.
38716         Do not attempt to stat the symlink values stored via seen_triple.
38717         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
38718         on linux-2.6.18, (but not 2.6.22).
38719         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
38720         triple_compare.  The former compares dev,ino,filename, while the latter
38721         would actually stat dirname(filename) when dev and ino were equal.
38722         * lib/hash-triple.c: Install <string.h>.
38723         (STREQ): Define.
38724         (triple_compare_ino_str): New function.
38725         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
38726
38727 2007-09-28  Eric Blake  <ebb9@byu.net>
38728
38729         Enforce that AC_REPLACE_FUNCS files exist.
38730         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
38731         override check for typos.
38732
38733         Fix test-closein on Solaris 10.
38734         * tests/test-closein.c (main): Don't assume stdin can be inherited
38735         closed on all systems.
38736         * tests/test-closein.sh: Likewise.
38737         Reported by Piotr Tarnowski.
38738
38739 2007-09-28  Jim Meyering  <jim@meyering.net>
38740
38741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
38742
38743 2007-09-27  Jim Meyering  <jim@meyering.net>
38744
38745         canonicalize: Avoid a false-positive cycle failure.
38746         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
38747         Sort.  Remove cycle-check.
38748         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
38749         not cycle-check.h.
38750         (seen_triple): New function.
38751         (canonicalize_filename_mode): Use it instead of cycle-check.
38752         * tests/test-canonicalize.c: Add a test for this bug.
38753         * tests/test-canonicalize.sh: Set up and run the test.
38754
38755         New module, file-set, from coreutils.
38756         * modules/file-set: Define it.
38757         * lib/file-set.c, lib/file-set.h: Implement.
38758
38759         New module, hash-triple, from coreutils.
38760         * modules/hash-triple: Define it.
38761         * lib/hash-triple.c, lib/hash-triple.h: Implement.
38762
38763 2007-09-25  Eric Blake  <ebb9@byu.net>
38764
38765         Fix strerror on Interix.
38766         * lib/string_.h (strerror): Declare replacement.
38767         * doc/functions/strerror.texi (strerror): Document the Interix
38768         shortcoming.
38769         * modules/string (Makefile.am): Support new hooks.
38770         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
38771         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
38772         gl_FUNC_STRERROR_SEPARATE.
38773         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
38774         * lib/strerror.c (rpl_strerror): Provide replacement.
38775         * modules/strerror (Depends-on): Add string.
38776         (configure.ac): Detect use of module.
38777         * tests/test-strerror.c: New file.
38778         * modules/strerror-tests: New test module.
38779         * modules/argp (Depends-on): Add strerror.
38780         * modules/error (Depends-on): Likewise.
38781         Reported by Martin Koeppe.
38782
38783 2007-09-24  Bruno Haible  <bruno@clisp.org>
38784
38785         * README: Update git instructions.
38786
38787 2007-09-24  Eric Blake  <ebb9@byu.net>
38788
38789         Revert fpending breakage from 2007-09-08.
38790         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
38791         __fpending.c.
38792
38793 2007-09-24  Jim Meyering  <jim@meyering.net>
38794
38795         filenamecat.c: Add a test.
38796         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
38797         showing how the function works when DIR is the empty string.
38798
38799 2007-09-21  Simon Josefsson  <simon@josefsson.org>
38800
38801         * tests/test-canonicalize.sh: Turn on executable bit.
38802
38803 2007-09-19  Eric Blake  <ebb9@byu.net>
38804
38805         * README: Update CVS instructions.
38806
38807 2007-09-18  Bruno Haible  <bruno@clisp.org>
38808
38809         * modules/areadlink: New file.
38810         * lib/areadlink.h (areadlink): New declaration.
38811         * lib/areadlink.c: New file, based on lib/xreadlink.c.
38812
38813 2007-09-17  Jim Meyering  <jim@meyering.net>
38814
38815         * lib/savewd.c (ESTALE) [!defined]: Define.
38816         Reported to be required on Interix by Martin Koeppe.
38817
38818 2007-09-17  Bruno Haible  <bruno@clisp.org>
38819
38820         * gnulib-tool (func_version): Use $version.
38821
38822 2007-09-16  Bruno Haible  <bruno@clisp.org>
38823
38824         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
38825         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
38826         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
38827         Reported by Greg Schafer <gschafer@zip.com.au>.
38828
38829 2007-09-15  Bruno Haible  <bruno@clisp.org>
38830
38831         * gnulib-tool (sed): Try a little harder to make bash understand the
38832         alias.
38833         Reported by Bruce Korb <bruce.korb@gmail.com>.
38834
38835 2007-09-13  Eric Blake  <ebb9@byu.net>
38836
38837         * ChangeLog: Remove conflict markers.
38838
38839 2007-09-13  Simon Josefsson  <simon@josefsson.org>
38840
38841         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
38842         Reported by Bruno Haible <bruno@clisp.org>.
38843
38844 2007-09-12  Bruno Haible  <bruno@clisp.org>
38845
38846         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
38847         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
38848         is not defined.
38849
38850 2007-09-12  Eric Blake  <ebb9@byu.net>
38851
38852         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
38853         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
38854         Autoconf definition.
38855         * modules/euidaccess (Depends-on): Add extensions, for
38856         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
38857         * modules/fnmatch (Depends-on): Likewise.
38858         * modules/getaddrinfo (Depends-on): Likewise.
38859         * modules/getdelim (Depends-on): Likewise.
38860         * modules/getline (Depends-on): Likewise.
38861         * modules/getsubopt (Depends-on): Likewise.
38862         * modules/gettext (Depends-on): Likewise.
38863         * modules/group-member (Depends-on): Likewise.
38864         * modules/mbchar (Depends-on): Likewise.
38865         * modules/memmem (Depends-on): Likewise.
38866         * modules/mempcpy (Depends-on): Likewise.
38867         * modules/memrchr (Depends-on): Likewise.
38868         * modules/pagealign_alloc (Depends-on): Likewise.
38869         * modules/readutmp (Depends-on): Likewise.
38870         * modules/stpcpy (Depends-on): Likewise.
38871         * modules/stpncpy (Depends-on): Likewise.
38872         * modules/strchrnul (Depends-on): Likewise.
38873         * modules/strndup (Depends-on): Likewise.
38874         * modules/strsep (Depends-on): Likewise.
38875         * modules/strverscmp (Depends-on): Likewise.
38876         * modules/vasprintf (Depends-on): Likewise.
38877         * modules/wcwidth (Depends-on): Likewise.
38878         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
38879         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
38880         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
38881         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
38882         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38883         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38884         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
38885         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
38886         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
38887         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38888         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38889         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38890         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38891         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38892         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
38893         * m4/readutmp.m4 (gl_READUTMP): Likewise.
38894         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38895         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38896         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38897         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38898         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38899         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38900         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38901         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
38902         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
38903         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38904         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
38905         so that lock.m4 can be used in gettext without extensions module.
38906
38907 2007-09-11  Bruno Haible  <bruno@clisp.org>
38908
38909         * m4/isc-posix.m4: Remove file.
38910         Suggested by Eric Blake.
38911
38912 2007-09-11  Eric Blake  <ebb9@byu.net>
38913
38914         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
38915
38916 2007-09-10  Bruno Haible  <bruno@clisp.org>
38917
38918         * posix-modules: Fix typo in error message.
38919         Reported by Matt <mkraai@beckman.com>.
38920
38921 2007-09-09  Bruno Haible  <bruno@clisp.org>
38922
38923         * doc/functions/getdelim.texi: Update list of platforms lacking the
38924         function.
38925         * doc/functions/getline.texi: Likewise.
38926
38927 2007-09-09  Jim Meyering  <jim@meyering.net>
38928
38929         * lib/hash.c (hash_initialize): Detect calloc failure.
38930         Reported by Bruno Haible.
38931
38932 2007-09-09  Bruno Haible  <bruno@clisp.org>
38933
38934         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
38935         malloc or realloc fails.
38936
38937 2007-09-09  Bruno Haible  <bruno@clisp.org>
38938
38939         * modules/getcwd (Depends-on): Add malloc-posix.
38940         * modules/glob (Depends-on): Likewise.
38941         * modules/putenv (Depends-on): Likewise.
38942         * modules/strdup (Depends-on): Likewise.
38943         * modules/getdelim (Depends-on): Add realloc-posix.
38944         * modules/read-file (Depends-on): Likewise.
38945
38946 2007-09-09  Bruno Haible  <bruno@clisp.org>
38947
38948         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
38949         (gl_FUNC_MALLOC_POSIX): Require it.
38950         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
38951         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
38952         * modules/realloc (Files): Add m4/malloc.m4.
38953         * modules/calloc (Files): Likewise.
38954
38955 2007-09-09  Bruno Haible  <bruno@clisp.org>
38956
38957         * modules/malloc-posix: New file.
38958         * modules/malloc (Depends-on): Add malloc-posix.
38959         * lib/malloc.c: Include errno.h.
38960         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
38961         and a POSIX-compatible malloc into a single function. Set ENOMEM
38962         when returning NULL.
38963         * m4/malloc.m4: New file.
38964         * doc/functions/malloc.texi: Mention the malloc-posix module.
38965         * lib/stdlib_.h (malloc): New declaration.
38966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38967         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
38968         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
38969         and HAVE_MALLOC_POSIX.
38970
38971 2007-09-09  Bruno Haible  <bruno@clisp.org>
38972
38973         * modules/realloc-posix: New file.
38974         * modules/realloc (Depends-on): Add realloc-posix.
38975         * lib/realloc.c: Include errno.h.
38976         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
38977         and a POSIX-compatible realloc into a single function. Set ENOMEM
38978         when returning NULL.
38979         * m4/realloc.m4: New file.
38980         * doc/functions/realloc.texi: Mention the realloc-posix module.
38981         * lib/stdlib_.h (realloc): New declaration.
38982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38983         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
38984         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
38985         and HAVE_REALLOC_POSIX.
38986
38987 2007-09-09  Bruno Haible  <bruno@clisp.org>
38988
38989         * modules/calloc-posix: New file.
38990         * modules/calloc (Depends-on): Add calloc-posix.
38991         * lib/calloc.c: Include errno.h.
38992         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
38993         and a POSIX-compatible calloc into a single function. Set ENOMEM
38994         when returning NULL.
38995         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
38996         * doc/functions/calloc.texi: Mention the calloc-posix module.
38997         * lib/stdlib_.h (calloc): New declaration.
38998         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38999         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
39000         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
39001         and HAVE_CALLOC_POSIX.
39002
39003 2007-09-09  Bruno Haible  <bruno@clisp.org>
39004
39005         Allow for modules to show an arbitrary notice.
39006         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
39007         * gnulib-tool: New option --extract-notice.
39008         (func_usage): Document it.
39009         (sed_extract_prog): Update.
39010         (func_get_notice): New function.
39011         (func_modules_notice): New function.
39012         (func_import, func_create_testdir): Invoke it.
39013         Suggested by Jim Meyering.
39014
39015 2007-09-09  Bruno Haible  <bruno@clisp.org>
39016
39017         * gnulib-tool: New options --verbose, --quiet.
39018         (func_usage): Document them.
39019         (verbose): New variable.
39020         (func_execute_command): New function.
39021         (func_import): Don't show the module list and the file list if
39022         $verbose < 0.
39023         (func_create_testdir): Likewise. Use func_execute_command.
39024         (func_create_megatestdir): Use func_execute_command.
39025
39026 2007-09-08  Bruno Haible  <bruno@clisp.org>
39027
39028         * gnulib-tool (func_import): Prefer rsync over wget when available,
39029         for fetching the PO files.
39030
39031 2007-09-08  Bruno Haible  <bruno@clisp.org>
39032
39033         * posix-modules: New file. Portions copied from gnulib-tool.
39034         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
39035
39036 2007-09-08  Jim Meyering  <jim@meyering.net>
39037
39038         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
39039         * lib/fpending.h: Rename from __fpending.h.
39040         * lib/fpending.c: Rename from __fpending.c.
39041         Include "fpending.h", not "__fpending.h".
39042         * lib/__fpending.h, lib/__fpending.c: Remove files.
39043         * modules/fpending (Files): Reflect new file names.
39044         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
39045
39046 2007-09-08  Bruno Haible  <bruno@clisp.org>
39047
39048         * m4/inttypes-h.m4: Remove stub file.
39049
39050 2007-09-07  Simon Josefsson  <simon@josefsson.org>
39051
39052         * doc/headers/stdint.texi: Discuss #include_next issue.
39053
39054 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
39055
39056         * build-aux/bootstrap: Remove obsolete comment about wget --help.
39057
39058 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39059
39060         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
39061         in variable name.
39062
39063 2007-09-03  Jim Meyering  <jim@meyering.net>
39064
39065         New module: git-version-gen.
39066         * modules/git-version-gen: New file.
39067
39068         Import changes from coreutils for bootstrap script.
39069
39070         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
39071
39072         bootstrap: uses rsync to download the .po files
39073         * build-aux/bootstrap (po_download_command_format): New global.
39074         (download_po_files): Use rsync.
39075         (update_po_files): Don't remove .po files after download,
39076         so future rsync runs can take advantage of the copies.
39077
39078         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
39079
39080         Solve the unnecessary-.po-file-regeneration problem once and for all.
39081         * build-aux/bootstrap (download_po_files): New function, renamed from
39082         get_translations.  Now, downloads, but doesn't update LINGUAS.
39083         (update_po_files): New function.
39084
39085         bootstrap: Ignore more.
39086         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
39087         uniwidth to e.g., lib/.gitignore.
39088         (slurp): Handle the sys_stat_.h -> sys mapping, too.
39089
39090         * build-aux/bootstrap: New setting: vc_ignore.
39091         (insert_sorted_if_absent): Create $file if absent.
39092         Adapt to new, possibly empty, list: $vc_ignore.
39093
39094         bootstrap: generate more ignorable names
39095         * build-aux/bootstrap (slurp): When generating ignorable names,
39096         also map .sin to .sed, .gperf to .c, and .y to .c.
39097
39098 2007-09-03  Jim Meyering  <jim@meyering.net>
39099
39100         * build-aux/git-version-gen: New file, from coreutils.  For details, see
39101         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
39102
39103 2007-09-02  Bruno Haible  <bruno@clisp.org>
39104
39105         Fix mis-recognition of 'mcs' on QNX 6.
39106         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
39107         output contains the string "Mono".
39108         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
39109         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
39110
39111 2007-09-01  Bruno Haible  <bruno@clisp.org>
39112
39113         Fix collision between uniwidth/* and linebreak modules.
39114         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
39115         u32_width): Remove declarations.
39116         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
39117         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
39118         streq3, streq2, streq1, streq0): Remove functions.
39119         (STREQ): Remove macro.
39120         (is_cjk_encoding): Remove function.
39121         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
39122         (uc_width, u8_width, u16_width, u32_width): Remove functions.
39123         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
39124         * NEWS: Document the change.
39125
39126 2007-09-01  Bruno Haible  <bruno@clisp.org>
39127
39128         * lib/streq.h: Add double-inclusion guard.
39129
39130 2007-09-01  Karl Berry  <karl@gnu.org>
39131
39132         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
39133
39134 2007-08-28  Jim Meyering  <jim@meyering.net>
39135
39136         Rename mreadlink_with_size to areadlink_with_size.
39137         * NEWS: Document the change.
39138         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
39139         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
39140         * lib/mreadlink.h: Rename this to...
39141         * lib/areadlink.h: ...this.
39142         * modules/mreadlink-with-size: Rename this to...
39143         * modules/areadlink-with-size: ...this.
39144         * lib/canonicalize.c: Reflect the renaming.
39145         * modules/canonicalize: Likewise.
39146
39147 2007-08-26  Bruno Haible  <bruno@clisp.org>
39148
39149         * gnulib-tool (func_import): When deciding which files to remove,
39150         consider also dangling symbolic links.
39151         Reported by Eric Blake.
39152
39153 2007-08-26  Bruno Haible  <bruno@clisp.org>
39154
39155         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
39156
39157 2007-08-23  Simon Josefsson  <simon@josefsson.org>
39158
39159         * lib/readline.c: Don't include getline.h, the prototype is now
39160         found in stdio.h.
39161
39162 2007-08-23  Jim Meyering  <jim@meyering.net>
39163
39164         Getdelim touchup.
39165         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
39166         around the funlockfile call, since funlockfile never sets errno.
39167         Don't set errno upon failed realloc.
39168
39169 2007-08-22  Eric Blake  <ebb9@byu.net>
39170
39171         Getline touchups.
39172         * lib/getdelim.c (getdelim): Revert regression that required *n to
39173         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
39174         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
39175         getdelim, rather than whether implementation is missing.
39176         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
39177         * lib/stdio_.h (getline): Also declare if replacement is
39178         required.
39179         * doc/functions/getdelim.texi: New file.
39180         * doc/functions/getline.texi: Likewise.
39181         * doc/gnulib.texi (Function Substitutes): Add new files.
39182         Reported by Bruno Haible.
39183
39184 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
39185
39186         * users.txt: Add Guile.
39187
39188 2007-08-22  Eric Blake  <ebb9@byu.net>
39189
39190         * tests/test-getdelim.c (main): Use remove, not unlink.
39191         * tests/test-getline.c (main): Likewise.
39192
39193         Move getline and getdelim into stdio.h, per POSIX 200x.
39194         * modules/getline (Files): Remove getline.h.
39195         (Depends-on): Add stdio.
39196         (configure.ac): Add module indicator.
39197         * modules/getdelim (Files): Remove getdelim.h.
39198         (Depends-on): Add stdio.
39199         (configure.ac): Add module indicator.
39200         * modules/stdio (Makefile.am): Work with new indicators.
39201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
39202         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
39203         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39204         * lib/getdelim.h: Delete.
39205         * lib/getline.h: Delete.
39206         * lib/stdio_.h (getdelim, getline): Declare.
39207         * modules/getdelim-tests: New module.
39208         * modules/getline-tests: Likewise.
39209         * tests/test-getdelim.c: New file.
39210         * tests/test-getline.c: Likewise.
39211         * NEWS: Document the change.
39212         * lib/getline.c: Update choice of header.
39213         * lib/csharpcomp.c: Likewise.
39214         * lib/getpass.c: Likewise.
39215         * lib/javacomp.c: Likewise.
39216         * lib/javaversion.c: Likewise.
39217         * lib/yesno.c: Likewise.
39218         * lib/getdelim.c: Likewise.
39219         (getdelim): Set errno on failure, and avoid memory leak.
39220
39221 2007-08-19  Bruno Haible  <bruno@clisp.org>
39222
39223         * modules/closein (Depends-on): Add freadahead.
39224         * lib/closein.c: Include freadahead.h.
39225         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
39226         is zero.
39227
39228 2007-08-19  Bruno Haible  <bruno@clisp.org>
39229
39230         * modules/freadahead-tests: New file.
39231         * tests/test-freadahead.sh: New file.
39232         * tests/test-freadahead.c: New file.
39233
39234         * modules/freadahead: New file.
39235         * lib/freadahead.h: New file.
39236         * lib/freadahead.c: New file.
39237         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
39238         fbufmode, fpurge, freadable, fwritable.
39239
39240 2007-08-19  Eric Blake  <ebb9@byu.net>
39241
39242         Test yesno in combination with closein.
39243         * lib/yesno.c (yesno): Document use of stdin.
39244         * modules/yesno-tests (Files): New module.
39245         * tests/test-yesno.c (main): New file.
39246         * tests/test-yesno.sh: Likewise.
39247
39248 2007-08-19  Bruno Haible  <bruno@clisp.org>
39249
39250         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
39251         * lib/fseeko.c (rpl_fseeko): Likewise.
39252         * lib/fseterr.c (fseterr): Likewise.
39253
39254 2007-08-19  Bruno Haible  <bruno@clisp.org>
39255
39256         * tests/test-lseek.c (main): Disable a test for BeOS.
39257         * doc/functions/lseek.texi: Document the BeOS bug.
39258
39259 2007-08-19  Bruno Haible  <bruno@clisp.org>
39260             Eric Blake  <ebb9@byu.net>
39261
39262         * lib/lseek.c: Include <sys/stat.h>.
39263         (rpl_lseek): Add workaround code also for Unix platforms.
39264         Needed for BeOS.
39265         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
39266         * doc/functions/lseek.texi: Document BeOS definiency.
39267
39268 2007-08-18  Bruno Haible  <bruno@clisp.org>
39269
39270         * modules/fstrcmp-tests: New file.
39271         * tests/test-fstrcmp.c: New file.
39272
39273 2007-08-18  Bruno Haible  <bruno@clisp.org>
39274
39275         * modules/fstrcmp: New file, from GNU gettext with modifications.
39276         * lib/fstrcmp.h: New file, from GNU gettext.
39277         * lib/fstrcmp.c: New file, from GNU gettext.
39278         * MODULES.html.sh (String handling): Add fstrcmp.
39279
39280 2007-08-18  Bruno Haible  <bruno@clisp.org>
39281
39282         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
39283         'bool'.
39284         (diag, compareseq): Remove const from the ctxt argument.
39285         (USE_HEURISTIC): Undefine at the end.
39286
39287 2007-08-18  Jim Meyering  <jim@meyering.net>
39288
39289         New file: lib/idcache.h
39290         * NEWS: Mention the addition.
39291         * modules/idcache (Files): Add lib/idcache.h
39292         * lib/idcache.c: Include "idcache.h".
39293         Don't include <sys/types.h>.
39294         Add a FIXME comment.
39295         Move file-scoped "static" declarations to the top.
39296         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
39297
39298 2007-08-17  Bruno Haible  <bruno@clisp.org>
39299         and Paul Eggert  <eggert@cs.ucla.edu>
39300
39301         * MODULES.html.sh: Add diffseq.
39302         * modules/diffseq: New file.
39303         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
39304         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
39305
39306 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
39307
39308         Import changes from coreutils for bootstrap script.
39309
39310         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
39311
39312         * build-aux/bootstrap (slurp): Work even in environments where
39313         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
39314         current code does not slurp files whose names start with ".", and
39315         this looks like it might be a troublesome area.
39316
39317         2007-07-11  Jim Meyering  <jim@meyering.net>
39318
39319         If there's a GPL vN copyright comment, require that N == 3.
39320
39321         2007-07-08  Jim Meyering  <jim@meyering.net>
39322
39323         Run the coreutils-specific code only if tests/Makefile.am.in exists.
39324         * build-aux/bootstrap (mam_template): Move definition out of loop.
39325
39326         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
39327
39328         * build-aux/bootstrap (symlink_to_dir): Rename function from
39329         symlink_to_gnulib.  Add a directory parameter.  Update all
39330         callers.
39331         (cp_mark_as_generated): Also check for -- and link to -- files in
39332         gl/.
39333
39334         2007-07-08  Jim Meyering  <jim@meyering.net>
39335
39336         Adapt to deeper hierarchy in gnulib.
39337         * build-aux/bootstrap (symlink_to_dir): If the destination
39338         directory doesn't exist, create it. This is required at least for
39339         "lib/uniwidth/cjk.h".
39340
39341         2007-05-15  Jim Meyering  <jim@meyering.net>
39342
39343         * build-aux/bootstrap: Now that generated Makefile.am files
39344         are no longer under version control, they must be created at
39345         bootstrap time.
39346
39347 2007-08-14  Ben Pfaff  <blp@gnu.org>
39348
39349         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
39350
39351 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
39352
39353         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
39354         given the changes below.
39355         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
39356         even on hosts that have padding bits beyond the supported 64.
39357
39358 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
39359
39360         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
39361         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
39362         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
39363         depends on it.
39364         (xstrtol_error): Remove.
39365         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
39366         but with a different signature.
39367         (ATTRIBUTE_NORETURN, __attribute__): New macros.
39368         * lib/xstrtol-error.c: Include exitfail.h.
39369         (xstrtol_fatal): New function, with a different signature from the
39370         old xstrtol_error, so that the caller need not worry about passing
39371         in an exit status, or about storage management of the option argument.
39372         (xstrtol_error): Now a static function.  Redo signature to
39373         implement xstrtol_fatal.  Output the correct number of hyphens in
39374         front of the option so that the caller need not worry about
39375         storage management.
39376         (N_): New macro.
39377         (_): Remove; not used now.
39378         * modules/xstrtol: Depend on getopt.
39379         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
39380         of old STRTOL_FATAL_ERROR macro.
39381         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
39382         of test program.
39383         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
39384         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
39385
39386 2007-08-08  Eric Blake  <ebb9@byu.net>
39387
39388         * lib/xstrtol-error.c: Add missing include.
39389
39390         Move xstrtol messages into gnulib domain, when --pobase is used.
39391         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
39392         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
39393         * modules/xstrtol (Files): Distribute new file.
39394         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
39395         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
39396         * tests/test-xstrtol.c: ...into new file.
39397         * tests/test-xstrtoul.c: Also test xstrtoul.
39398         * tests/test-xstrtoimax.c: Also test xstrtoimax.
39399         * tests/test-xstrtoumax.c: Also test xstrtoumax.
39400         * tests/test-xstrtol.sh: Drive the tests.
39401         * tests/test-xstrtoimax.sh: Likewise.
39402         * tests/test-xstrtoumax.sh: Likewise.
39403         * modules/xstrtol-tests: New module.
39404         * modules/xstrtoimax-tests: Likewise.
39405         * modules/xstrtoumax-tests: Likewise.
39406
39407 2007-08-08  Jim Meyering  <jim@meyering.net>
39408
39409         New function: mfile_name_concat.
39410         * lib/filenamecat.c (mfile_name_concat): New function, just like
39411         file_name_concat, but return NULL upon failure rather than exiting
39412         with a diagnostic.
39413         * lib/filenamecat.h: Declare it.
39414
39415 2007-08-07  Bruno Haible  <bruno@clisp.org>
39416
39417         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
39418         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
39419         warning from gcc.
39420         Reported by Eric Blake.
39421
39422 2007-08-07  Simon Josefsson  <simon@josefsson.org>
39423
39424         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
39425         * modules/crypto/arcfour (License): Likewise.
39426         * modules/crypto/des-tests (License): Likewise.
39427         * modules/crypto/gc-arctwo-tests (License): Likewise.
39428         * modules/crypto/gc-des-tests (License): Likewise.
39429         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
39430         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
39431         * modules/crypto/gc-md2-tests (License): Likewise.
39432         * modules/crypto/gc-md4-tests (License): Likewise.
39433         * modules/crypto/gc-md5-tests (License): Likewise.
39434         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
39435         * modules/crypto/gc-rijndael-tests (License): Likewise.
39436         * modules/crypto/gc-sha1-tests (License): Likewise.
39437         * modules/crypto/gc-tests (License): Likewise.
39438         * modules/crypto/hmac-md5 (License): Likewise.
39439         * modules/crypto/hmac-sha1 (License): Likewise.
39440         * modules/crypto/md2-tests (License): Likewise.
39441         * modules/crypto/md4-tests (License): Likewise.
39442         * modules/crypto/md5 (License): Likewise.
39443         * modules/crypto/rijndael (License): Likewise.
39444         * modules/crypto/sha1 (License): Likewise.
39445         * modules/memxor (License): Likewise.
39446
39447 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
39448         and Bruno Haible  <bruno@clisp.org>
39449
39450         * NEWS: Describe interface changes to human, xstrtol.
39451         * lib/human.h: Include <xstrtol.h>.
39452         (human_options): Return enum strtol_error, not int.  Remove
39453         bool arg; take int * instead.
39454         * lib/human.c: Don't include "gettext.h".
39455         (_): Remove; no longer used.
39456         Don't include <xstrtol.h>, since human.h does it.
39457         (human_options): Adjust to abovementioned interface changes.
39458         Do not report error to stderr; that's now the caller's
39459         responsibility.
39460         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
39461         interface change.
39462         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
39463         Str, Argument_type_string.  All uses changed.  Put " argument"
39464         in diagnostics to make them clearer.  Change wording of suffix
39465         message for clarity.
39466         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
39467         Argument_type_string.
39468         (STRTOL_FATAL_WARN): Remove; no longer used.
39469         * modules/human (Depends-on): Remove gettext-h.
39470
39471 2007-08-06  Simon Josefsson  <simon@josefsson.org>
39472
39473         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
39474
39475 2007-07-31  Bruno Haible  <bruno@clisp.org>
39476
39477         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
39478         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
39479         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
39480
39481 2007-07-31  Bruno Haible  <bruno@clisp.org>
39482
39483         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
39484         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
39485
39486 2007-07-30  Bruno Haible  <bruno@clisp.org>
39487
39488         * modules/base64 (License): Use the synonymous term "LGPLv2+".
39489         * modules/c-ctype (License): Likewise.
39490         * modules/c-strcase (License): Likewise.
39491         * modules/check-version (License): Likewise.
39492         * modules/iconv (License): Likewise.
39493         * modules/iconv_open (License): Likewise.
39494         * modules/read-file (License): Likewise.
39495         * modules/striconv (License): Likewise.
39496         * modules/strverscmp (License): Likewise.
39497         * modules/vasprintf (License): Likewise.
39498         * modules/crypto/des (License): Likewise.
39499         * modules/crypto/gc (License): Likewise.
39500         * modules/crypto/gc-arcfour (License): Likewise.
39501         * modules/crypto/gc-arctwo (License): Likewise.
39502         * modules/crypto/gc-des (License): Likewise.
39503         * modules/crypto/gc-hmac-md5 (License): Likewise.
39504         * modules/crypto/gc-hmac-sha1 (License): Likewise.
39505         * modules/crypto/gc-md2 (License): Likewise.
39506         * modules/crypto/gc-md4 (License): Likewise.
39507         * modules/crypto/gc-md5 (License): Likewise.
39508         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
39509         * modules/crypto/gc-random (License): Likewise.
39510         * modules/crypto/gc-rijndael (License): Likewise.
39511         * modules/crypto/gc-sha1 (License): Likewise.
39512         * modules/crypto/md2 (License): Likewise.
39513         * modules/crypto/md4 (License): Likewise.
39514
39515 2007-07-30  Jim Meyering  <jim@meyering.net>
39516
39517         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
39518         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
39519         it has valid stat data.  This bug would cause du not to count the
39520         sizes of inaccessible directories.
39521         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
39522         in <http://bugzilla.redhat.com/250077>.
39523
39524 2007-07-25  Peter O'Gorman  <peter@pogma.com>
39525             Bruno Haible  <bruno@clisp.org>
39526
39527         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
39528         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
39529         #include_next, gives a diagnostic about it, but reports no error in
39530         the exit code.
39531         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39532
39533 2007-07-24  Ben Pfaff  <blp@gnu.org>
39534
39535         Improve name: "count-one-bits" is better than "popcount".
39536         * MODULES.html.sh: Update name.
39537         * lib/popcount.h: Renamed lib/count-one-bits.h.
39538         (popcount): Renamed count_one_bits.
39539         (popcountl): Renamed count_one_bits_l.
39540         (popcountll): Renamed count_one_bits_ll.
39541         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
39542         * modules/popcount: Renamed module/count-one-bits.
39543         * modules/popcount-tests: Renamed module/count-one-bits-tests.
39544         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
39545
39546 2007-07-23  Ben Pfaff  <blp@gnu.org>
39547
39548         * lib/popcount.h (popcount32): Reduce size of constants, to allow
39549         better code generation, and add U to large constants to avoid
39550         warnings, in non-GCC case.
39551         Suggested by Bruno Haible.
39552
39553 2007-07-23  Ben Pfaff  <blp@gnu.org>
39554
39555         * lib/popcount.h: Use verify_true instead of if...abort.
39556         * modules/popcount: Depend on verify module.
39557         Suggested by Jim Meyering.
39558
39559 2007-07-23  Bruno Haible  <bruno@clisp.org>
39560
39561         * gnulib-tool (func_import): Create a .cvsignore file also when the
39562         directory is not yet in CVS but the toplevel directory is. When
39563         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
39564         Reported by Karl Berry.
39565
39566 2007-07-22  Ben Pfaff  <blp@gnu.org>
39567
39568         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
39569         case.
39570         Suggested by Eric Blake.
39571
39572 2007-07-22  Ben Pfaff  <blp@gnu.org>
39573
39574         New module: popcount.
39575         * MODULES.html.sh: Add popcount.
39576         * modules/popcount: New file.
39577         * modules/popcount-tests: New file.
39578         * tests/test-popcount.c: New file.
39579         * lib/popcount.h: New file.
39580         * m4/popcount.m4: New file.
39581
39582 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
39583
39584         * build-aux/announce-gen: Update to GPLv3.
39585
39586         * build-aux/config.guess: Update from config.
39587
39588 2007-07-21  Bruno Haible  <bruno@clisp.org>
39589
39590         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
39591         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
39592
39593 2007-07-20  Jim Meyering  <jim@meyering.net>
39594
39595         * check-module: Diagnose a self-dependency.
39596
39597 2007-07-19  Bruno Haible  <bruno@clisp.org>
39598
39599         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
39600         empty.
39601         Reported by Eric Blake.
39602
39603 2007-07-18  Bruno Haible  <bruno@clisp.org>
39604
39605         * gnulib-tool: New options --po-base, --po-domain.
39606         (func_usage): Document them.
39607         (pobase, po_domain): New variables.
39608         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
39609         DEFAULT_TEXT_DOMAIN.
39610         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
39611         (func_import): Consider pobase and po_domain. Create a po/ directory.
39612         (func_create_testdir): Set pobase and po_domain to empty.
39613         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
39614         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
39615
39616 2007-07-18  Bruno Haible  <bruno@clisp.org>
39617
39618         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39619         EXTRA_DIST augmentation for files in build-aux/.
39620
39621 2007-07-16  Bruno Haible  <bruno@clisp.org>
39622
39623         * modules/lseek (License): Use the synonymous term "LGPLv2+".
39624         * modules/getdelim (License): Likewise.
39625
39626 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39627
39628         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
39629         * modules/d-type (License): Likewise.
39630         * modules/extensions (License): Likewise.
39631         * modules/fnmatch (License): Likewise.
39632         * modules/fseeko (License): Likewise.
39633         * modules/getaddrinfo (License): Likewise.
39634         * modules/getline (License): Likewise.
39635         * modules/getlogin_r (License): Likewise.
39636         * modules/getpass (License): Likewise.
39637         * modules/gettimeofday (License): Likewise.
39638         * modules/glob (License): Likewise.
39639         * modules/inet_ntop (License): Likewise.
39640         * modules/malloc (License): Likewise.
39641         * modules/malloca (License): Likewise.
39642         * modules/memmem (License): Likewise.
39643         * modules/mempcpy (License): Likewise.
39644         * modules/memset (License): Likewise.
39645         * modules/minmax (License): Likewise.
39646         * modules/mktime (License): Likewise.
39647         * modules/netinet_in (License): Likewise.
39648         * modules/pathmax (License): Likewise.
39649         * modules/poll (License): Likewise.
39650         * modules/regex (License): Likewise.
39651         * modules/snprintf (License): Likewise.
39652         * modules/stdbool (License): Likewise.
39653         * modules/stdint (License): Likewise.
39654         * modules/stdio (License): Likewise.
39655         * modules/strcase (License): Likewise.
39656         * modules/strcasestr (License): Likewise.
39657         * modules/strdup (License): Likewise.
39658         * modules/string (License): Likewise.
39659         * modules/strndup (License): Likewise.
39660         * modules/strnlen (License): Likewise.
39661         * modules/strpbrk (License): Likewise.
39662         * modules/strptime (License): Likewise.
39663         * modules/strsep (License): Likewise.
39664         * modules/sys_select (License): Likewise.
39665         * modules/sys_socket (License): Likewise.
39666         * modules/sys_stat (License): Likewise.
39667         * modules/sys_time (License): Likewise.
39668         * modules/time (License): Likewise.
39669         * modules/time_r (License): Likewise.
39670         * modules/timegm (License): Likewise.
39671         * modules/unistd (License): Likewise.
39672         * modules/vsnprintf (License): Likewise.
39673         * modules/wctype (License): Likewise.
39674
39675 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39676
39677         * modules/argz (License): LGPLv2+.
39678
39679 2007-07-15  Karl Berry  <karl@gnu.org>
39680
39681         * doc/gnulib.texi: revise node structure per new fdl.texi.
39682
39683 2007-07-14  Bruno Haible  <bruno@clisp.org>
39684
39685         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
39686         the output file.
39687         * lib/uniname/uninames.h: Regenerated.
39688
39689 2007-07-14  Karl Berry  <karl@gnu.org>
39690
39691         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
39692         omitting sectioning and index commands.
39693
39694 2007-07-13  Bruno Haible  <bruno@clisp.org>
39695
39696         New gnulib-tool option --more-symlinks.
39697         * gnulib-tool (func_usage): Document --more-symlinks.
39698         (do_copyrights): New variable.
39699         Recognize option --more-symlinks.
39700         (func_import): Don't add a copyright notice transform to
39701         sed_transform_lib_file if do_copyrights is empty.
39702
39703 2007-07-13  Bruno Haible  <bruno@clisp.org>
39704
39705         * lib/vasnprintf.c (decimal_point_char): Define also if
39706         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
39707         && !NEED_PRINTF_DIRECTIVE_A.
39708         Reported by Clemens Koller <clemens.koller@anagramm.de> via
39709         Gary V. Vaughan <gary@gnu.org>.
39710
39711 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
39712
39713         * lib/inttypes_.h: Undo previous change, since it was fixed
39714         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
39715
39716 2007-07-13  Bruno Haible  <bruno@clisp.org>
39717
39718         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
39719         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
39720
39721 2007-07-13  Jim Meyering  <jim@meyering.net>
39722
39723         df: Don't fail for Tru64's "file-on-file mount".
39724         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
39725         so we fall through and use statfs instead.  Details here:
39726         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
39727         Reported by Albert Chin.
39728
39729 2007-07-13  Bruno Haible  <bruno@clisp.org>
39730
39731         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
39732         * modules/configmake (License): Likewise.
39733         * modules/gettext (License): Likewise.
39734         * modules/gettext-h (License): Likewise.
39735         * modules/include_next (License): Likewise.
39736         * modules/link-warning (License): Likewise.
39737         * modules/localcharset (License): Likewise.
39738         * modules/localename (License): Likewise.
39739         * modules/lock (License): Likewise.
39740         * modules/relocatable-lib-lgpl (License): Likewise.
39741         * modules/size_max (License): Likewise.
39742         * modules/vasnprintf (License): Likewise.
39743         * modules/wchar (License): Likewise.
39744         * modules/xsize (License): Likewise.
39745
39746 2007-07-13  Bruno Haible  <bruno@clisp.org>
39747
39748         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
39749         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
39750
39751 2007-07-12  Bruno Haible  <bruno@clisp.org>
39752
39753         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
39754         in the modules files.
39755
39756 2007-07-11  Karl Berry  <karl@gnu.org>
39757
39758         * MODULES.html.sh (func_module): use
39759          sed -e '\|^'"${includefile}"'$|d'
39760          instead of /.../d, to avoid errors on $includefile's containing /.
39761
39762 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39763
39764         * gnulib-tool (func_import): Avoid duplication of --avoid
39765         statements
39766         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
39767         names to `_' in variable names.
39768
39769 2007-07-10  Eric Blake  <ebb9@byu.net>
39770
39771         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
39772         * NEWS: Document this change.
39773
39774 2007-07-08  Bruno Haible  <bruno@clisp.org>
39775
39776         Update to Unicode 5.0.
39777         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
39778         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
39779         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
39780         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
39781         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
39782         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
39783         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
39784         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
39785         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
39786         U+10A3F, U+1D242..U+1D244.
39787         (nonspacing_table_ind): Update.
39788         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
39789         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
39790
39791 2007-07-08  Bruno Haible  <bruno@clisp.org>
39792
39793         Update to Unicode 5.0.
39794         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
39795         code transform. Extend the name index field of unicode_name_to_code and
39796         unicode_code_to_name from 16 to 24 bits.
39797         * lib/uniname/uniname.c (unicode_character_name,
39798         unicode_name_character): Add the range 0x12xxx to the code transform.
39799         * lib/uniname/uninames.h: Regenerated.
39800         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
39801
39802 2007-07-07  Bruno Haible  <bruno@clisp.org>
39803
39804         * modules/wcwidth-tests: New file.
39805         * tests/test-wcwidth.c: New file.
39806
39807         Work around MacOS X wcwidth() bug.
39808         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
39809         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
39810         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
39811         original wcwidth in non-UTF-8 locales.
39812         * modules/wcwidth (Depends-on): Add localcharset, streq,
39813         uniwidth/width.
39814         * doc/functions/wcwidth.texi: Update.
39815
39816 2007-07-07  Bruno Haible  <bruno@clisp.org>
39817
39818         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
39819         (wcwidth): New declaration.
39820         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
39821         macros.
39822         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
39823         here. Prepare for creating <wchar.h> unconditionally.
39824         * modules/wchar (Depends-on): Add link-warning.
39825         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
39826         REPLACE_WCWIDTH, and GL_LINK_WARNING.
39827         * lib/wcwidth.h: Remove file.
39828         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
39829         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
39830         * modules/wcwidth (Files): Remove lib/wcwidth.h.
39831         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
39832         (Include): Replace wcwidth.h with <wchar.h>.
39833         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
39834         * lib/mbchar.h: Don't include wcwidth.h.
39835         * lib/mbswidth.c: Likewise.
39836         * NEWS: Mention the change.
39837
39838 2007-07-07  Bruno Haible  <bruno@clisp.org>
39839
39840         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
39841         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
39842         definition with an external declaration.
39843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
39844         defined as a function. Remove AC_C_INLINE requirement.
39845         * modules/wcwidth (Files): Add lib/wcwidth.c.
39846         (Makefile.am): Remove redundant statement.
39847
39848 2007-07-07  Bruno Haible  <bruno@clisp.org>
39849
39850         * MODULES.html.sh (Unicode string functions): Add the new modules.
39851
39852         * tests/uniwidth/test-u32-strwidth.c: New file.
39853         * modules/uniwidth/u32-strwidth-tests: New file.
39854
39855         * lib/uniwidth/u32-strwidth.c: New file.
39856         * modules/uniwidth/u32-strwidth: New file.
39857
39858         * tests/uniwidth/test-u16-strwidth.c: New file.
39859         * modules/uniwidth/u16-strwidth-tests: New file.
39860
39861         * lib/uniwidth/u16-strwidth.c: New file.
39862         * modules/uniwidth/u16-strwidth: New file.
39863
39864         * tests/uniwidth/test-u8-strwidth.c: New file.
39865         * modules/uniwidth/u8-strwidth-tests: New file.
39866
39867         * lib/uniwidth/u8-strwidth.c: New file.
39868         * modules/uniwidth/u8-strwidth: New file.
39869
39870         * tests/uniwidth/test-u32-width.c: New file.
39871         * modules/uniwidth/u32-width-tests: New file.
39872
39873         * lib/uniwidth/u32-width.c: New file.
39874         * modules/uniwidth/u32-width: New file.
39875
39876         * tests/uniwidth/test-u16-width.c: New file.
39877         * modules/uniwidth/u16-width-tests: New file.
39878
39879         * lib/uniwidth/u16-width.c: New file.
39880         * modules/uniwidth/u16-width: New file.
39881
39882         * tests/uniwidth/test-u8-width.c: New file.
39883         * modules/uniwidth/u8-width-tests: New file.
39884
39885         * lib/uniwidth/u8-width.c: New file.
39886         * modules/uniwidth/u8-width: New file.
39887
39888         * tests/uniwidth/test-uc_width.c: New file.
39889         * modules/uniwidth/width-tests: New file.
39890
39891         * lib/uniwidth/width.c: New file, from GNU libiconv.
39892         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
39893         * modules/uniwidth/width: New file.
39894
39895         * lib/uniwidth.h: New file, from GNU libiconv.
39896         * modules/uniwidth/base: New file.
39897
39898 2007-07-07  Bruno Haible  <bruno@clisp.org>
39899
39900         * lib/uniname.h: New file, from GNU gettext.
39901         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
39902         * lib/uniname/uninames.h: New file, from GNU gettext.
39903         * lib/uniname/uniname.c: New file, from GNU gettext.
39904         * tests/uniname/test-uninames.sh: New file.
39905         * tests/uniname/test-uninames.c: New file, from GNU gettext.
39906         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
39907         * modules/uniname/base: New file.
39908         * modules/uniname/uniname: New file.
39909         * modules/uniname/uniname-tests: New file.
39910         * MODULES.html.sh (Unicode string functions): Add the new modules.
39911
39912 2007-07-06  Bruno Haible  <bruno@clisp.org>
39913
39914         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
39915
39916 2007-07-06  Bruno Haible  <bruno@clisp.org>
39917
39918         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
39919         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
39920         includes <cygwin/sys_time.h> which includes <sys/select.h> which
39921         include <sys/time.h>.
39922         Reported by Eric Blake.
39923
39924 2007-07-06  Eric Blake  <ebb9@byu.net>
39925
39926         Fix testing canonicalize on cygwin.
39927         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
39928         Revert patch from 2007-06-19.
39929         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
39930         canonicalize module is also in use.
39931         * tests/test-canonicalize.c: New file.
39932         * tests/test-canonicalize.sh: Likewise.
39933         * modules/canonicalize-tests: Likewise.
39934
39935 2007-07-06  Jim Meyering  <jim@meyering.net>
39936
39937         * lib/getugroups.c (getugroups): Detect getgrent failure.
39938         Adjust comment to reflect reality: this function may return -1.
39939
39940 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
39941
39942         * build-aux/bootstrap (TP_URL,get_translations): Update to use
39943         the new TP address.
39944         (usage): Fix typo
39945         (gnulib_mk): New variable.
39946
39947 2007-07-05  Jim Meyering  <jim@meyering.net>
39948
39949         Don't let endgrent clobber errno, no matter how improbable.
39950         * lib/getugroups.c (getugroups): Save and restore errno around
39951         endgrent call.
39952
39953         Close the group DB even when failing with 2^31 or more members.
39954         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
39955
39956 2007-07-04  Jim Meyering  <jim@meyering.net>
39957
39958         * lib/getugroups.h: New file.
39959         * lib/getugroups.c: Include "getugroups.h".
39960         Remove uses of "register" keyword.
39961         Move local variable, "cp", down into scope where used.
39962         Give "username" parameter the "const" attribute.
39963         * modules/getugroups (Files): Add lib/getugroups.h
39964
39965 2007-07-04  Karl Berry  <karl@gnu.org>
39966
39967         * MODULES.html.sh (func_all_modules): Complete rename of
39968         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
39969
39970 2007-07-02  Bruno Haible  <bruno@clisp.org>
39971
39972         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
39973         mode, when inttypes.h comes from gnulib.
39974         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39975
39976 2007-07-02  Simon Josefsson  <simon@josefsson.org>
39977
39978         * NEWS: Mention lgpl module name change.
39979
39980         * modules/lgpl-2.1: Renamed from lgpl.
39981
39982         * NEWS: Mention gpl module name change.
39983
39984         * modules/gpl-3.0: New file, based on gpl-2.0.
39985
39986         * modules/gpl-2.0: Renamed from gpl.
39987
39988         * modules/gpl: Fix filename, doc/gpl.texi is now found at
39989         doc/gpl-2.0.texi.
39990
39991 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39992
39993         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
39994         #define __STDC_LIMIT_MACROS temporarily while including
39995         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
39996         Problem reported by Joel E. Denny in
39997         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
39998
39999 2007-07-01  Bruno Haible  <bruno@clisp.org>
40000
40001         * lib/unistdio.h: New file.
40002         * lib/unistdio/u-asnprintf.h: New file.
40003         * lib/unistdio/u-asprintf.h: New file.
40004         * lib/unistdio/u-printf-args.c: New file.
40005         * lib/unistdio/u-printf-args.h: New file.
40006         * lib/unistdio/u-printf-parse.h: New file.
40007         * lib/unistdio/u-snprintf.h: New file.
40008         * lib/unistdio/u-sprintf.h: New file.
40009         * lib/unistdio/u-vasprintf.h: New file.
40010         * lib/unistdio/u-vsnprintf.h: New file.
40011         * lib/unistdio/u-vsprintf.h: New file.
40012         * lib/unistdio/ulc-asnprintf.c: New file.
40013         * lib/unistdio/ulc-asprintf.c: New file.
40014         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
40015         * lib/unistdio/ulc-printf-parse.c: New file.
40016         * lib/unistdio/ulc-snprintf.c: New file.
40017         * lib/unistdio/ulc-sprintf.c: New file.
40018         * lib/unistdio/ulc-vasnprintf.c: New file.
40019         * lib/unistdio/ulc-vasprintf.c: New file.
40020         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
40021         * lib/unistdio/ulc-vsnprintf.c: New file.
40022         * lib/unistdio/ulc-vsprintf.c: New file.
40023         * lib/unistdio/u8-asnprintf.c: New file.
40024         * lib/unistdio/u8-asprintf.c: New file.
40025         * lib/unistdio/u8-printf-parse.c: New file.
40026         * lib/unistdio/u8-snprintf.c: New file.
40027         * lib/unistdio/u8-sprintf.c: New file.
40028         * lib/unistdio/u8-vasnprintf.c: New file.
40029         * lib/unistdio/u8-vasprintf.c: New file.
40030         * lib/unistdio/u8-vsnprintf.c: New file.
40031         * lib/unistdio/u8-vsprintf.c: New file.
40032         * lib/unistdio/u8-u8-asnprintf.c: New file.
40033         * lib/unistdio/u8-u8-asprintf.c: New file.
40034         * lib/unistdio/u8-u8-snprintf.c: New file.
40035         * lib/unistdio/u8-u8-sprintf.c: New file.
40036         * lib/unistdio/u8-u8-vasnprintf.c: New file.
40037         * lib/unistdio/u8-u8-vasprintf.c: New file.
40038         * lib/unistdio/u8-u8-vsnprintf.c: New file.
40039         * lib/unistdio/u8-u8-vsprintf.c: New file.
40040         * lib/unistdio/u16-asnprintf.c: New file.
40041         * lib/unistdio/u16-asprintf.c: New file.
40042         * lib/unistdio/u16-printf-parse.c: New file.
40043         * lib/unistdio/u16-snprintf.c: New file.
40044         * lib/unistdio/u16-sprintf.c: New file.
40045         * lib/unistdio/u16-vasnprintf.c: New file.
40046         * lib/unistdio/u16-vasprintf.c: New file.
40047         * lib/unistdio/u16-vsnprintf.c: New file.
40048         * lib/unistdio/u16-vsprintf.c: New file.
40049         * lib/unistdio/u16-u16-asnprintf.c: New file.
40050         * lib/unistdio/u16-u16-asprintf.c: New file.
40051         * lib/unistdio/u16-u16-snprintf.c: New file.
40052         * lib/unistdio/u16-u16-sprintf.c: New file.
40053         * lib/unistdio/u16-u16-vasnprintf.c: New file.
40054         * lib/unistdio/u16-u16-vasprintf.c: New file.
40055         * lib/unistdio/u16-u16-vsnprintf.c: New file.
40056         * lib/unistdio/u16-u16-vsprintf.c: New file.
40057         * lib/unistdio/u32-asnprintf.c: New file.
40058         * lib/unistdio/u32-asprintf.c: New file.
40059         * lib/unistdio/u32-printf-parse.c: New file.
40060         * lib/unistdio/u32-snprintf.c: New file.
40061         * lib/unistdio/u32-sprintf.c: New file.
40062         * lib/unistdio/u32-vasnprintf.c: New file.
40063         * lib/unistdio/u32-vasprintf.c: New file.
40064         * lib/unistdio/u32-vsnprintf.c: New file.
40065         * lib/unistdio/u32-vsprintf.c: New file.
40066         * lib/unistdio/u32-u32-asnprintf.c: New file.
40067         * lib/unistdio/u32-u32-asprintf.c: New file.
40068         * lib/unistdio/u32-u32-snprintf.c: New file.
40069         * lib/unistdio/u32-u32-sprintf.c: New file.
40070         * lib/unistdio/u32-u32-vasnprintf.c: New file.
40071         * lib/unistdio/u32-u32-vasprintf.c: New file.
40072         * lib/unistdio/u32-u32-vsnprintf.c: New file.
40073         * lib/unistdio/u32-u32-vsprintf.c: New file.
40074         * tests/unistdio/test-ulc-asnprintf1.c: New file.
40075         * tests/unistdio/test-ulc-asnprintf1.h: New file.
40076         * tests/unistdio/test-ulc-printf1.h: New file.
40077         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
40078         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
40079         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
40080         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
40081         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
40082         * tests/unistdio/test-ulc-vasprintf1.c: New file.
40083         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
40084         * tests/unistdio/test-ulc-vsprintf1.c: New file.
40085         * tests/unistdio/test-u8-asnprintf1.c: New file.
40086         * tests/unistdio/test-u8-asnprintf1.h: New file.
40087         * tests/unistdio/test-u8-printf1.h: New file.
40088         * tests/unistdio/test-u8-vasnprintf1.c: New file.
40089         * tests/unistdio/test-u8-vasnprintf2.c: New file.
40090         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
40091         * tests/unistdio/test-u8-vasnprintf3.c: New file.
40092         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
40093         * tests/unistdio/test-u8-vasprintf1.c: New file.
40094         * tests/unistdio/test-u8-vsnprintf1.c: New file.
40095         * tests/unistdio/test-u8-vsprintf1.c: New file.
40096         * tests/unistdio/test-u16-asnprintf1.c: New file.
40097         * tests/unistdio/test-u16-asnprintf1.h: New file.
40098         * tests/unistdio/test-u16-printf1.h: New file.
40099         * tests/unistdio/test-u16-vasnprintf1.c: New file.
40100         * tests/unistdio/test-u16-vasnprintf2.c: New file.
40101         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
40102         * tests/unistdio/test-u16-vasnprintf3.c: New file.
40103         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
40104         * tests/unistdio/test-u16-vasprintf1.c: New file.
40105         * tests/unistdio/test-u16-vsnprintf1.c: New file.
40106         * tests/unistdio/test-u16-vsprintf1.c: New file.
40107         * tests/unistdio/test-u32-asnprintf1.c: New file.
40108         * tests/unistdio/test-u32-asnprintf1.h: New file.
40109         * tests/unistdio/test-u32-printf1.h: New file.
40110         * tests/unistdio/test-u32-vasnprintf1.c: New file.
40111         * tests/unistdio/test-u32-vasnprintf2.c: New file.
40112         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
40113         * tests/unistdio/test-u32-vasnprintf3.c: New file.
40114         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
40115         * tests/unistdio/test-u32-vasprintf1.c: New file.
40116         * tests/unistdio/test-u32-vsnprintf1.c: New file.
40117         * tests/unistdio/test-u32-vsprintf1.c: New file.
40118         * modules/unistdio/base: New file.
40119         * modules/unistdio/u-printf-args: New file.
40120         * modules/unistdio/ulc-asnprintf: New file.
40121         * modules/unistdio/ulc-asprintf: New file.
40122         * modules/unistdio/ulc-fprintf: New file.
40123         * modules/unistdio/ulc-printf-parse: New file.
40124         * modules/unistdio/ulc-snprintf: New file.
40125         * modules/unistdio/ulc-sprintf: New file.
40126         * modules/unistdio/ulc-vasnprintf: New file.
40127         * modules/unistdio/ulc-vasprintf: New file.
40128         * modules/unistdio/ulc-vfprintf: New file.
40129         * modules/unistdio/ulc-vsnprintf: New file.
40130         * modules/unistdio/ulc-vsprintf: New file.
40131         * modules/unistdio/u8-asnprintf: New file.
40132         * modules/unistdio/u8-asprintf: New file.
40133         * modules/unistdio/u8-printf-parse: New file.
40134         * modules/unistdio/u8-snprintf: New file.
40135         * modules/unistdio/u8-sprintf: New file.
40136         * modules/unistdio/u8-vasnprintf: New file.
40137         * modules/unistdio/u8-vasprintf: New file.
40138         * modules/unistdio/u8-vsnprintf: New file.
40139         * modules/unistdio/u8-vsprintf: New file.
40140         * modules/unistdio/u8-u8-asnprintf: New file.
40141         * modules/unistdio/u8-u8-asprintf: New file.
40142         * modules/unistdio/u8-u8-snprintf: New file.
40143         * modules/unistdio/u8-u8-sprintf: New file.
40144         * modules/unistdio/u8-u8-vasnprintf: New file.
40145         * modules/unistdio/u8-u8-vasprintf: New file.
40146         * modules/unistdio/u8-u8-vsnprintf: New file.
40147         * modules/unistdio/u8-u8-vsprintf: New file.
40148         * modules/unistdio/u16-asnprintf: New file.
40149         * modules/unistdio/u16-asprintf: New file.
40150         * modules/unistdio/u16-printf-parse: New file.
40151         * modules/unistdio/u16-snprintf: New file.
40152         * modules/unistdio/u16-sprintf: New file.
40153         * modules/unistdio/u16-vasnprintf: New file.
40154         * modules/unistdio/u16-vasprintf: New file.
40155         * modules/unistdio/u16-vsnprintf: New file.
40156         * modules/unistdio/u16-vsprintf: New file.
40157         * modules/unistdio/u16-u16-asnprintf: New file.
40158         * modules/unistdio/u16-u16-asprintf: New file.
40159         * modules/unistdio/u16-u16-snprintf: New file.
40160         * modules/unistdio/u16-u16-sprintf: New file.
40161         * modules/unistdio/u16-u16-vasnprintf: New file.
40162         * modules/unistdio/u16-u16-vasprintf: New file.
40163         * modules/unistdio/u16-u16-vsnprintf: New file.
40164         * modules/unistdio/u16-u16-vsprintf: New file.
40165         * modules/unistdio/u32-asnprintf: New file.
40166         * modules/unistdio/u32-asprintf: New file.
40167         * modules/unistdio/u32-printf-parse: New file.
40168         * modules/unistdio/u32-snprintf: New file.
40169         * modules/unistdio/u32-sprintf: New file.
40170         * modules/unistdio/u32-vasnprintf: New file.
40171         * modules/unistdio/u32-vasprintf: New file.
40172         * modules/unistdio/u32-vsnprintf: New file.
40173         * modules/unistdio/u32-vsprintf: New file.
40174         * modules/unistdio/u32-u32-asnprintf: New file.
40175         * modules/unistdio/u32-u32-asprintf: New file.
40176         * modules/unistdio/u32-u32-snprintf: New file.
40177         * modules/unistdio/u32-u32-sprintf: New file.
40178         * modules/unistdio/u32-u32-vasnprintf: New file.
40179         * modules/unistdio/u32-u32-vasprintf: New file.
40180         * modules/unistdio/u32-u32-vsnprintf: New file.
40181         * modules/unistdio/u32-u32-vsprintf: New file.
40182         * modules/unistdio/ulc-asnprintf-tests: New file.
40183         * modules/unistdio/ulc-vasnprintf-tests: New file.
40184         * modules/unistdio/ulc-vasprintf-tests: New file.
40185         * modules/unistdio/ulc-vsnprintf-tests: New file.
40186         * modules/unistdio/ulc-vsprintf-tests: New file.
40187         * modules/unistdio/u8-asnprintf-tests: New file.
40188         * modules/unistdio/u8-vasnprintf-tests: New file.
40189         * modules/unistdio/u8-vasprintf-tests: New file.
40190         * modules/unistdio/u8-vsnprintf-tests: New file.
40191         * modules/unistdio/u8-vsprintf-tests: New file.
40192         * modules/unistdio/u16-asnprintf-tests: New file.
40193         * modules/unistdio/u16-vasnprintf-tests: New file.
40194         * modules/unistdio/u16-vasprintf-tests: New file.
40195         * modules/unistdio/u16-vsnprintf-tests: New file.
40196         * modules/unistdio/u16-vsprintf-tests: New file.
40197         * modules/unistdio/u32-asnprintf-tests: New file.
40198         * modules/unistdio/u32-vasnprintf-tests: New file.
40199         * modules/unistdio/u32-vasprintf-tests: New file.
40200         * modules/unistdio/u32-vsnprintf-tests: New file.
40201         * modules/unistdio/u32-vsprintf-tests: New file.
40202         * MODULES.html.sh (Unicode string functions): Add the new modules.
40203
40204 2007-07-01  Bruno Haible  <bruno@clisp.org>
40205
40206         * lib/sprintf.c (sprintf): Limit the available length estimation,
40207         to avoid address wraparound.
40208         * lib/vsprintf.c (vsprintf): Likewise.
40209         * modules/sprintf-posix (Dependencies): Add stdint.
40210         * modules/vsprintf-posix (Dependencies): Likewise.
40211
40212 2007-07-01  Bruno Haible  <bruno@clisp.org>
40213
40214         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
40215         Windows PATH as well. Conservative double-quoting. Comments.
40216
40217 2007-07-01  Bruno Haible  <bruno@clisp.org>
40218             Eric Blake  <ebb9@byu.net>
40219             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40220
40221         * gnulib-tool (self_abspathname): Fix algorithm to cope with
40222         empty components in $PATH, denoting '.'.
40223
40224 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40225
40226         * gnulib-tool: Fix indentation.
40227         (func_create_megatestdir): Likewise.
40228         Report by Bruno Haible.
40229
40230 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40231
40232         Sync from Automake.
40233         * build-aux/gnupload: Fix shell portability issues with for loops.
40234         Report by Karl Berry.
40235
40236 2007-06-29  Simon Josefsson  <simon@josefsson.org>
40237
40238         * build-aux/maint.mk (POURL): Use translationproject.org.
40239
40240 2007-06-27  Simon Josefsson  <simon@josefsson.org>
40241             Bruno Haible  <bruno@clisp.org>
40242
40243         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
40244         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
40245         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
40246         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
40247         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
40248
40249 2007-06-27  Bruno Haible  <bruno@clisp.org>
40250
40251         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
40252         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
40253
40254 2007-06-26  Karl Berry  <karl@gnu.org>
40255
40256         * MODULES.html.sh: remove xreadlink-with-size.
40257
40258 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40259
40260         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
40261         method that I hope also handles the double-include problem noted
40262         by Bruno Haible in
40263         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
40264
40265 2007-06-23  Bruno Haible  <bruno@clisp.org>
40266
40267         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40268         Don't let the 'mostlyclean' target fail if the last subdirectory could
40269         not be removed.
40270         Reported by Karl Berry.
40271
40272 2007-06-23  Bruno Haible  <bruno@clisp.org>
40273
40274         * gnulib-tool (echo): Add a speedier workaround for ksh.
40275         * tests/test-echo.sh: Likewise.
40276
40277 2007-06-23  Bruno Haible  <bruno@clisp.org>
40278
40279         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
40280         * tests/test-echo.sh: Likewise.
40281
40282 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40283
40284         * gnulib-tool (IFS): Initialize early, so we don't set it to
40285         empty later.
40286         (self_abspathname): Rewrite algorithm to set it, reindent.
40287         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
40288         (func_create_megatestdir): Merge some sed scripts.
40289
40290 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40291
40292         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
40293         exposed by Sun Studio 11 cc on Solaris 8.
40294
40295 2007-06-22  Bruno Haible  <bruno@clisp.org>
40296
40297         * gnulib-tool (echo): Ensure the echo primitive does not interpret
40298         backslashes.
40299         * tests/test-echo.sh: New file.
40300
40301 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40302
40303         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
40304         simplify `sed_replace_build_aux' scripts, they are portable but
40305         echoing them with `echo' is not.
40306         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
40307
40308 2007-06-21  Karl Berry  <karl@gnu.org>
40309
40310         * config/srclist.txt: guess we can't handle the licenses via
40311         srclist at the moment.
40312
40313 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
40314
40315         * MODULES.html.sh: Add include_next.
40316         * modules/include_next: New file.
40317
40318 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
40319
40320         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
40321         INCLUDE_NEXT.
40322         (gl_CHECK_NEXT_HEADERS): New macro.
40323         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
40324         the obsolescent gl_ABSOLUTE_HEADER.
40325         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
40326         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
40327         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
40328         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40329         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
40330         * m4/math_h.m4 (gl_MATH_H): Likewise.
40331         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40332         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40333         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
40334         * m4/stdint.m4 (gl_STDINT_H): Likewise.
40335         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
40336         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
40337         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
40338         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40339         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40340         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
40341         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40342         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40343         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
40344         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
40345         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40346         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40347         * m4/inttypes.m4 (gl_INTTYPES_H): Define
40348         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
40349         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
40350         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
40351         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
40352         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
40353         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
40354         * lib/float_.h: Likewise.
40355         * lib/inttypes_.h: Likewise.
40356         * lib/math_.h: Likewise.
40357         * lib/search_.h: Likewise.
40358         * lib/signal_.h: Likewise.
40359         * lib/stdint_.h: Likewise.
40360         * lib/stdio_.h: Likewise.
40361         * lib/stdlib_.h: Likewise.
40362         * lib/string_.h: Likewise.
40363         * lib/sys_stat_.h: Likewise.
40364         * lib/sys_time_.h: Likewise.
40365         * lib/time_.h: Likewise.
40366         * lib/unistd_.h: Likewise.
40367         * lib/wchar_.h: Likewise.
40368         * lib/wctype_.h: Likewise.
40369         * lib/dirent_.h: Likewise.
40370         * lib/iconv_.h: Likewise.
40371         * lib/locale_.h: Likewise.
40372         * lib/netinet_in_.h: Likewise.
40373         * lib/sys_select_.h: Likewise.
40374         * lib/sys_socket_.h: Likewise.
40375         * lib/sysexits_.h: Likewise.
40376         * modules/fcntl (Depends-on): Depend on include_next, not
40377         absolute_header.
40378         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
40379         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
40380         * modules/fchdir: Likewise.
40381         * modules/float: Likewise.
40382         * modules/iconv_open: Likewise.
40383         * modules/inttypes: Likewise.
40384         * modules/locale: Likewise.
40385         * modules/math: Likewise.
40386         * modules/netinet_in: Likewise.
40387         * modules/search: Likewise.
40388         * modules/signal: Likewise.
40389         * modules/stdint: Likewise.
40390         * modules/stdio: Likewise.
40391         * modules/stdlib: Likewise.
40392         * modules/string: Likewise.
40393         * modules/sys_select: Likewise.
40394         * modules/sys_socket: Likewise.
40395         * modules/sys_stat: Likewise.
40396         * modules/sys_time: Likewise.
40397         * modules/sysexits: Likewise.
40398         * modules/time: Likewise.
40399         * modules/unistd: Likewise.
40400         * modules/wchar: Likewise.
40401         * modules/wctype: Likewise.
40402         * modules/sys_stat: Change maintainer to "all".
40403         * modules/unistd: Likewise.
40404
40405 2007-06-20  Karl Berry  <karl@gnu.org>
40406
40407         * config/srclist.txt: track www changes in license files.
40408
40409 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
40410
40411         * build-aux/bootstrap: Remove stray dot.
40412         Make sure build_aux settings are honored when linking
40413         gnulib_extra_files.
40414
40415 2007-06-19  Eric Blake  <ebb9@byu.net>
40416
40417         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40418         Allow compilation on cygwin.
40419
40420 2007-06-19  Jim Meyering  <jim@meyering.net>
40421
40422         xreadlink-with-size: Remove module.  No longer used.
40423         Ex-callers now use xreadlink or mreadlink-with-size.
40424         * modules/xreadlink-with-size: Remove module.
40425         * lib/xreadlink-with-size.c: Remove file.
40426         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
40427         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
40428         just before the function definition *is* accurate.
40429
40430         Eliminate one way canonicalize_filename_mode could exit.
40431         * lib/canonicalize.c (canonicalize_filename_mode):
40432         Use mreadlink_with_size, not xreadlink_with_size.
40433
40434 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
40435
40436         Detect porting problems to FreeBSD/arm, which has time_t wider than
40437         long int.  Original problem reported for GNU diff by Xin Li in
40438         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
40439         * modules/getdate (Depends-on): Add intprops, verify.
40440         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
40441         is an integer type no wider than long int.
40442
40443 2007-06-18  Jim Meyering  <jim@meyering.net>
40444
40445         New module: mreadlink-with-size.
40446         * MODULES.html.sh: Add mreadlink-with-size.
40447         * modules/mreadlink-with-size: New module
40448         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
40449         not xreadlink-with-size.
40450         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
40451
40452 2007-06-16  Bruno Haible  <bruno@clisp.org>
40453
40454         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
40455         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
40456         Reported by Gary V. Vaughan <gary@gnu.org>.
40457
40458 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
40459
40460         Revamp lchown so that it lives in unistd.h where it belongs.
40461         * lib/lchown.h: Remove.
40462         * lib/dirchownmod.c: Don't include lib/lchown.h.
40463         * lib/fchownat.c: Likewise.
40464         * lib/openat.c: Likewise.
40465         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
40466         does not follow symlinks.
40467         (EOPNOTSUPP): Define if not defined.
40468         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
40469         is defined to 0.
40470         (lchown): New decl.
40471         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
40472         Do not check for lchown decl.
40473         Set REPLACE_LCHOWN.
40474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
40475         REPLACE_LCHOWN.
40476         * modules/chown: Make it clear it follows symlinks.
40477         * modules/lchown: Make it clear it doesn't follow symlinks.
40478         (Files): Remove lib/lchown.h
40479         (Depends-on): Add unistd.
40480         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
40481         (Include): Include <unistd.h>, not "lchown.h".
40482         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
40483         REPLACE_LCHOWN.
40484
40485 2007-06-15  Jim Meyering  <jim@meyering.net>
40486
40487         Change license (GPL to LGPL) of fsusage and dependents.
40488         * modules/fsusage (License): Change to LGPL.
40489         * modules/full-read (License): Likewise.
40490         * modules/full-write (License): Likewise.
40491         * modules/safe-read (License): Likewise.
40492         * modules/safe-write (License): Likewise.
40493
40494 2007-06-14  Ben Pfaff  <blp@gnu.org>
40495
40496         Missing part of allocsa -> malloca transition.
40497         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
40498         gl_MALLOCA.
40499
40500 2007-06-12  Bruno Haible  <bruno@clisp.org>
40501
40502         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
40503         to ia64, x86_64, i386.
40504         Reported by Eric Blake.
40505
40506 2007-06-12  Bruno Haible  <bruno@clisp.org>
40507
40508         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
40509         cross-compiling to x86_64.
40510
40511 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
40512
40513         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
40514         glitch reported by Ralf Wildenhues in
40515         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
40516
40517         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
40518         Vin Shelton.
40519
40520 2007-06-11  Bruno Haible  <bruno@clisp.org>
40521
40522         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
40523         replacement string.
40524         Reported by Eric Blake.
40525
40526 2007-06-10  Bruno Haible  <bruno@clisp.org>
40527
40528         Prepare vasnprintf code for use with Unicode strings.
40529         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
40530         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
40531         TYPE_U32_STRING.
40532         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
40533         a_u32_string variants.
40534         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40535         * lib/printf-args.c: Don't include config.h and the specification
40536         header if PRINTF_FETCHARGS is already defined.
40537         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40538         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
40539         TYPE_U16_STRING, TYPE_U32_STRING.
40540         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
40541         u16_directive, u16_directives, u32_directive, u32_directives): New
40542         types.
40543         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
40544         New declarations.
40545         * lib/printf-parse.c: Don't include config.h and the specification
40546         header if PRINTF_PARSE is already defined. Eliminate the set of
40547         parameters for WIDE_CHAR_VERSION; the user of this file must provide
40548         them now. Include c-ctype.h.
40549         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
40550         directive and CHAR_T_ONLY_ASCII.
40551         * lib/vasnprintf.c: Don't include config.h and the specification header
40552         if VASNPRINTF is already defined.
40553         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
40554         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
40555         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
40556         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
40557         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
40558         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
40559         code accordingly.
40560         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
40561         pad_ourselves also in this case, with the 'c' and 's' directives, and
40562         with a different notion of "width".
40563         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
40564
40565 2007-06-10  Bruno Haible  <bruno@clisp.org>
40566
40567         * modules/unistr/u32-mbsnlen: New file.
40568         * lib/unistr/u32-mbsnlen.c: New file.
40569
40570         * modules/unistr/u16-mbsnlen: New file.
40571         * lib/unistr/u16-mbsnlen.c: New file.
40572
40573         * modules/unistr/u8-mbsnlen: New file.
40574         * lib/unistr/u8-mbsnlen.c: New file.
40575
40576         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
40577         declarations.
40578
40579 2007-06-10  Bruno Haible  <bruno@clisp.org>
40580
40581         * lib/string_.h (mbsnlen): New declaration.
40582         * lib/mbsnlen.c: New file.
40583         * m4/mbsnlen.m4: New file.
40584         * modules/mbsnlen: New file.
40585         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
40586         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
40587         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
40588
40589 2007-06-10  Bruno Haible  <bruno@clisp.org>
40590
40591         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
40592
40593 2007-06-10  Bruno Haible  <bruno@clisp.org>
40594
40595         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
40596         * lib/mbuiter.h: Likewise.
40597
40598 2007-06-10  Bruno Haible  <bruno@clisp.org>
40599
40600         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
40601         declaration.
40602
40603 2007-06-10  Karl Berry  <karl@gnu.org>
40604
40605         * config/srclist.txt: remove gettext entries, Bruno prefers
40606         to update individually.
40607
40608 2007-06-10  Bruno Haible  <bruno@clisp.org>
40609
40610         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
40611         'maxlen'. Ensure only length + width bytes are allocated, not
40612         length + 1 + width.
40613
40614 2007-06-09  Bruno Haible  <bruno@clisp.org>
40615
40616         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
40617         (CHAR_T): Remove macro.
40618         (VASNPRINTF): Update.
40619
40620 2007-06-09  Bruno Haible  <bruno@clisp.org>
40621
40622         * MODULES.html.sh (Unicode string functions): Add the new modules.
40623
40624         * modules/uniconv/u32-conv-to-enc: New file.
40625         * lib/uniconv/u32-conv-to-enc.c: New file.
40626         * modules/uniconv/u32-conv-to-enc-tests: New file.
40627         * tests/uniconv/test-u32-conv-to-enc.c: New file.
40628
40629         * modules/uniconv/u16-conv-to-enc: New file.
40630         * lib/uniconv/u16-conv-to-enc.c: New file.
40631         * lib/uniconv/u-conv-to-enc.h: New file.
40632         * modules/uniconv/u16-conv-to-enc-tests: New file.
40633         * tests/uniconv/test-u16-conv-to-enc.c: New file.
40634
40635         * modules/uniconv/u8-conv-to-enc: New file.
40636         * lib/uniconv/u8-conv-to-enc.c: New file.
40637         * modules/uniconv/u8-conv-to-enc-tests: New file.
40638         * tests/uniconv/test-u8-conv-to-enc.c: New file.
40639
40640         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40641         u32_conv_to_encoding): New declarations.
40642
40643 2007-06-09  Bruno Haible  <bruno@clisp.org>
40644
40645         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
40646
40647 2007-06-09  Bruno Haible  <bruno@clisp.org>
40648
40649         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
40650         * modules/malloca: Renamed from modules/allocsa, updated.
40651         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
40652         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
40653         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
40654         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
40655         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
40656         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
40657         * modules/xmalloca: Renamed from modules/xallocsa, updated.
40658         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
40659         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
40660         * modules/c-strcasestr (Depends-on): Update.
40661         * lib/c-strcasestr.c: Update.
40662         * modules/c-strstr (Depends-on): Update.
40663         * lib/c-strstr.c: Update.
40664         * modules/canonicalize-lgpl (Depends-on): Update.
40665         * lib/canonicalize-lgpl.c: Update.
40666         * modules/clean-temp (Depends-on): Update.
40667         * lib/clean-temp.c: Update.
40668         * modules/csharpcomp (Depends-on): Update.
40669         * lib/csharpcomp.c: Update.
40670         * modules/csharpexec (Depends-on): Update.
40671         * lib/csharpexec.c: Update.
40672         * modules/javacomp (Depends-on): Update.
40673         * lib/javacomp.c: Update.
40674         * modules/javaexec (Depends-on): Update.
40675         * lib/javaexec.c: Update.
40676         * modules/mbscasestr (Depends-on): Update.
40677         * lib/mbscasestr.c: Update.
40678         * modules/mbsstr (Depends-on): Update.
40679         * lib/mbsstr.c: Update.
40680         * modules/setenv (Depends-on): Update.
40681         * lib/setenv.c: Update.
40682         * modules/strcasestr (Depends-on): Update.
40683         * lib/strcasestr.c: Update.
40684         * modules/striconveha (Depends-on): Update.
40685         * lib/striconveha.c: Update.
40686         * modules/relocatable-prog-wrapper (Files): Update.
40687         * lib/relocwrapper.c: Update.
40688         * build-aux/install-reloc: Update.
40689         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
40690
40691 2007-06-08  Bruno Haible  <bruno@clisp.org>
40692
40693         Port to uClibc.
40694         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
40695         * lib/fpurge.c (fpurge): Likewise.
40696         * lib/freading.c (freading): Likewise.
40697         * lib/fseeko.c (rpl_fseeko): Likewise.
40698         * lib/fseterr.c (fseterr): Likewise.
40699         * lib/fwriting.c (fwriting): Likewise.
40700         * tests/test-fflush.c (main): Avoid a failure on uClibc.
40701
40702 2007-06-08  Bruno Haible  <bruno@clisp.org>
40703
40704         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
40705         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
40706         * modules/gettext (Files): Add m4/intlmacosx.m4.
40707
40708 2007-06-07  Bruno Haible  <bruno@clisp.org>
40709
40710         * modules/localename-tests: New file.
40711         * tests/test-localename.c: New file.
40712
40713         New module 'localename'.
40714         * lib/localename.h: New file.
40715         * lib/localename.c: New file, from GNU gettext.
40716         * m4/localename.m4: New file.
40717         * modules/localename: New file.
40718
40719 2007-06-07  Bruno Haible  <bruno@clisp.org>
40720
40721         Work around the lack of <wchar.h> on some builds of uClibc.
40722         * doc/headers/wchar.texi: Update.
40723         * lib/wchar_.h: Include <wchar.h> only if it exists.
40724         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
40725         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
40726         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
40727         doesn't exist.
40728         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
40729         * modules/mbfile (Depends-on): Add wchar.
40730         * modules/mbiter (Depends-on): Likewise.
40731         * modules/mbuiter (Depends-on): Likewise.
40732         Reported by Simon Josefsson.
40733
40734 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
40735
40736         Work around problem reported by Steven M. Schweda in
40737         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
40738         Tru64 5.1B with the Compaq compiler environment installed declares
40739         an 'isblank' function but does not define it in the C library.
40740         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
40741         * lib/regex_internal.h (isblank): Likewise.
40742         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
40743         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40744
40745 2007-06-05  Bruno Haible  <bruno@clisp.org>
40746
40747         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
40748         ia64.
40749         * modules/printf-safe: New file.
40750         * modules/fprintf-posix (Depends-on): Add printf-safe.
40751         * modules/printf-posix (Depends-on): Likewise.
40752         * modules/snprintf-posix (Depends-on): Likewise.
40753         * modules/sprintf-posix (Depends-on): Likewise.
40754         * modules/vasnprintf-posix (Depends-on): Likewise.
40755         * modules/vasprintf-posix (Depends-on): Likewise.
40756         * modules/vfprintf-posix (Depends-on): Likewise.
40757         * modules/vprintf-posix (Depends-on): Likewise.
40758         * modules/vsnprintf-posix (Depends-on): Likewise.
40759         * modules/vsprintf-posix (Depends-on): Likewise.
40760         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
40761         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
40762         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
40763         "no" on i386, x86_64, ia64.
40764         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
40765         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40766         on i386, x86_64, ia64.
40767         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
40768         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40769         on i386, x86_64, ia64.
40770         * tests/test-vasnprintf-posix.c: Include float.h.
40771         (LDBL80_WORDS): New macro.
40772         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40773         on i386, x86_64, ia64.
40774         * tests/test-vasprintf-posix.c: Include float.h.
40775         (LDBL80_WORDS): New macro.
40776         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40777         on i386, x86_64, ia64.
40778         * tests/test-snprintf-posix.c: Include float.h.
40779         * tests/test-sprintf-posix.c: Likewise.
40780         * tests/test-vsnprintf-posix.c: Likewise.
40781         * tests/test-vsprintf-posix.c: Likewise.
40782
40783 2007-06-05  Bruno Haible  <bruno@clisp.org>
40784
40785         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
40786         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
40787         non-IEEE numbers on i386, x86_64, ia64.
40788         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
40789         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
40790         * tests/test-isnanl.h: Include float.h.
40791         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
40792
40793 2007-06-05  Bruno Haible  <bruno@clisp.org>
40794
40795         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
40796         also the %a / %A. Handle the %a / %A code before this extra handling.
40797
40798 2007-06-05  Bruno Haible  <bruno@clisp.org>
40799
40800         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
40801         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
40802
40803 2007-06-05  Bruno Haible  <bruno@clisp.org>
40804
40805         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
40806         typo in variable name.
40807
40808 2007-06-05  Eric Blake  <ebb9@byu.net>
40809
40810         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
40811         Reported by Simon Josefsson.
40812
40813 2007-06-04  Bruno Haible  <bruno@clisp.org>
40814
40815         Avoid test failures on some PowerPC platforms.
40816         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
40817         Define differently for PowerPC.
40818         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
40819         Reported by Gary V. Vaughan <gary@gnu.org>.
40820
40821 2007-06-02  Bruno Haible  <bruno@clisp.org>
40822
40823         Fix test-stdint failure on FreeBSD/ia64.
40824         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
40825         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
40826         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
40827         * doc/headers/stdint.texi: Update.
40828
40829 2007-06-01  Bruno Haible  <bruno@clisp.org>
40830
40831         * tests/test-binary-io.c (main): Pass a third argument to open().
40832         Reported by Gary V. Vaughan <gary@gnu.org>.
40833
40834 2007-06-01  Bruno Haible  <bruno@clisp.org>
40835
40836         * doc/functions/frexpl.texi: Update for mingw.
40837
40838 2007-06-01  Bruno Haible  <bruno@clisp.org>
40839
40840         * tests/test-lseek.c (main): Disable test of errno for invalid third
40841         argument.
40842         * doc/functions/lseek.texi: Update.
40843         Reported by Gary V. Vaughan <gary@gnu.org>.
40844
40845 2007-05-28  Bruno Haible  <bruno@clisp.org>
40846
40847         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
40848
40849 2007-05-31  Eric Blake  <ebb9@byu.net>
40850
40851         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
40852         cross compiling.
40853
40854 2007-05-30  Eric Blake  <ebb9@byu.net>
40855         and Bruno Haible  <bruno@clisp.org>
40856
40857         Work around mingw test failures exposed by m4-1.4.9b.
40858         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
40859         * tests/test-unistd.c: Disable uid_t and git_t tests for the
40860         moment.
40861
40862 2007-05-30  Bruno Haible  <bruno@clisp.org>
40863
40864         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
40865         assuming that they are closed. Needed on HP-UX 11.
40866
40867 2007-05-29  Bruno Haible  <bruno@clisp.org>
40868
40869         Fix a problem with #include_next.
40870         * lib/dirent_.h: Split the double-inclusion guard.
40871         * lib/fcntl_.h: Likewise.
40872         * lib/float_.h: Likewise.
40873         * lib/iconv_.h: Likewise.
40874         * lib/inttypes_.h: Likewise.
40875         * lib/locale_.h: Likewise.
40876         * lib/math_.h: Likewise.
40877         * lib/netinet_in_.h: Likewise.
40878         * lib/search_.h: Likewise.
40879         * lib/signal_.h: Likewise.
40880         * lib/stdint_.h: Likewise.
40881         * lib/stdio_.h: Likewise.
40882         * lib/stdlib_.h: Likewise.
40883         * lib/string_.h: Likewise.
40884         * lib/sys_select_.h: Likewise.
40885         * lib/sys_socket_.h: Likewise.
40886         * lib/sys_stat_.h: Likewise.
40887         * lib/sys_time_.h: Likewise.
40888         * lib/sysexits_.h: Likewise.
40889         * lib/time_.h: Likewise.
40890         * lib/unistd_.h: Likewise.
40891         * lib/wchar_.h: Likewise.
40892         * lib/wctype_.h: Likewise.
40893
40894 2007-05-29  Bruno Haible  <bruno@clisp.org>
40895
40896         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
40897         for the moment.
40898
40899 2007-05-29  Bruno Haible  <bruno@clisp.org>
40900
40901         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
40902         invocation.
40903         Reported by Eric Blake.
40904
40905 2007-05-29  Bruno Haible  <bruno@clisp.org>
40906
40907         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
40908         compiling case.
40909
40910 2007-05-29  Eric Blake  <ebb9@byu.net>
40911             Bruno Haible  <bruno@clisp.org>
40912
40913         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
40914         cross compiles.
40915
40916 2007-05-28  Eric Blake  <ebb9@byu.net>
40917
40918         * modules/closein-tests (test_closein_LDADD): Support test on
40919         cygwin with libtool.
40920
40921 2007-05-28  Bruno Haible  <bruno@clisp.org>
40922
40923         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
40924         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40925         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40926         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40927         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40928         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40929         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40930         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40931         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40932
40933 2007-05-28  Eric Blake  <ebb9@byu.net>
40934
40935         Unconditionally include <config.h> in unit tests.
40936         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
40937         * tests/test-allocsa.c, tests/test-arcfour.c,
40938         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
40939         tests/test-array_list.c, tests/test-array_oset.c,
40940         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
40941         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
40942         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
40943         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
40944         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
40945         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
40946         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
40947         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
40948         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
40949         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
40950         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
40951         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
40952         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
40953         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
40954         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
40955         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
40956         test-md5.c, test-memmem.c, test-printf-posix.c,
40957         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
40958         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
40959         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
40960         test-strcasestr.c, test-striconv.c, test-striconveh.c,
40961         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
40962         test-vasnprintf-posix2.c, test-vasnprintf.c,
40963         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
40964         test-vfprintf-posix.c, test-vprintf-posix.c,
40965         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
40966         test-xvasprintf.c: Likewise.
40967
40968 2007-05-28  Bruno Haible  <bruno@clisp.org>
40969
40970         * gnulib-tool (func_import): Remember the --with-tests command-line
40971         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
40972         Reported by Eric Blake.
40973
40974 2007-05-28  Bruno Haible  <bruno@clisp.org>
40975
40976         * modules/ftell-tests: New file.
40977         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
40978         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
40979
40980         * lib/ftell.c: New file.
40981         * modules/ftell: New file.
40982         * m4/ftell.m4: New file.
40983         * doc/functions/ftell.texi: Update.
40984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
40985         REPLACE_FTELL.
40986         * lib/stdio_.h (rpl_ftell): New declaration.
40987         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
40988         REPLACE_FTELL.
40989
40990 2007-05-28  Eric Blake  <ebb9@byu.net>
40991
40992         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
40993
40994 2007-05-28  Bruno Haible  <bruno@clisp.org>
40995
40996         * modules/fseek-tests: New file.
40997         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
40998         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
40999
41000         * lib/fseek.c: New file.
41001         * modules/fseek: New file.
41002         * m4/fseek.m4: New file.
41003         * doc/functions/fseek.texi: Update.
41004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
41005         REPLACE_FSEEK.
41006         * lib/stdio_.h (rpl_fseek): New declaration.
41007         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
41008         REPLACE_FSEEK.
41009
41010 2007-05-28  Bruno Haible  <bruno@clisp.org>
41011
41012         * lib/stdio_.h (fflush): More comments.
41013
41014 2007-05-28  Bruno Haible  <bruno@clisp.org>
41015
41016         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
41017         runtime test.
41018
41019 2007-05-28  Eric Blake  <ebb9@byu.net>
41020
41021         Improve lseek module.
41022         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
41023         * lib/unistd_.h (lseek): Scale back link warning message.
41024         * tests/test-lseek.c: Beef up test.
41025         * tests/test-lseek.sh: Exercise more facets of lseek.
41026         Reported by Bruno Haible.
41027
41028 2007-05-28  Bruno Haible  <bruno@clisp.org>
41029
41030         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
41031         to define.
41032
41033 2007-05-27  Bruno Haible  <bruno@clisp.org>
41034
41035         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
41036
41037 2007-05-27  Bruno Haible  <bruno@clisp.org>
41038
41039         * modules/openmp: New file.
41040         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
41041         Noah Misch.
41042
41043 2007-05-26  Bruno Haible  <bruno@clisp.org>
41044
41045         * modules/chdir-long (Depends-on): Add fchdir.
41046         * modules/chdir-safer (Depends-on): Likewise.
41047         * modules/fts (Depends-on): Likewise.
41048         * modules/fts-lgpl (Depends-on): Likewise.
41049         * modules/openat (Depends-on): Likewise.
41050         * modules/savewd (Depends-on): Likewise.
41051
41052 2007-05-24  Eric Blake  <ebb9@byu.net>
41053
41054         Fix lseek on mingw.
41055         * modules/lseek: New module.
41056         * m4/lseek.m4: New file.
41057         * lib/lseek.c: New file.
41058         * modules/lseek-tests: New file.
41059         * tests/test-lseek.c: New file.
41060         * tests/test-lseek.sh: New file.
41061         * MODULES.html.sh: Document lseek module.
41062         * modules/fflush (Depends-on): Add lseek, fseeko.
41063         * modules/fseeko (Depends-on): Likewise.
41064         * modules/ftello (Depends-on): Likewise.
41065         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
41066         broken.
41067         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
41068         broken.
41069         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
41070         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
41071         * lib/ftello.c (rpl_ftello): Likewise.
41072         * tests/test-fseeko.c (main): Test this.
41073         * tests/test-fseeko.sh: Likewise.
41074         * tests/test-ftello.c (main): Likewise.
41075         * tests/test-ftello.sh: Likewise.
41076         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
41077         implies replacing fseek.
41078         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
41079         HAVE_FTELLO.
41080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
41081         * modules/unistd (Makefile.am): Likewise.
41082         * lib/unistd_.h (lseek): Declare a replacement.
41083         * doc/functions/lseek.texi (lseek): Document this fix.
41084         * doc/functions/fseek.texi (fseek): Likewise.
41085         * doc/functions/ftell.texi (ftell): Likewise.
41086
41087 2007-05-24  Bruno Haible  <bruno@clisp.org>
41088
41089         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
41090         in the printed representation of a NaN.
41091         * tests/test-vasprintf-posix.c (test_function): Likewise.
41092         * tests/test-snprintf-posix.h (test_function): Likewise.
41093         * tests/test-sprintf-posix.h (test_function): Likewise.
41094         Reported by Eric Blake.
41095
41096 2007-05-23  Eric Blake  <ebb9@byu.net>
41097
41098         Fix fseeko/ftello on cygwin 1.5.24.
41099         * doc/functions/fseeko.texi (fseeko): Document the fix.
41100         * doc/functions/ftello.texi (ftello): Document the fix.
41101         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
41102         * doc/functions/stdout.text (stdout): New file.
41103         * doc/functions/stderr.text (stderr): New file.
41104         * doc/gnulib.texi (Function Substitutes): Use new files.
41105         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
41106         prior to 1.7.0.
41107         * tests/test-ftello.c (main): Likewise for ftello.
41108         * tests/test-fseeko.sh: New file.
41109         * tests/test-ftello.sh: New file.
41110         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
41111         with seekable stdin.
41112         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
41113         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
41114         (gl_REPLACE_FSEEKO): New macro.
41115         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
41116         * modules/fseeko (Files): Distribute fseeko.c.
41117         * modules/ftello (Files): Distribute ftello.c.
41118         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
41119         mode.
41120         * lib/ftello.c (rpl_ftello): New file.
41121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
41122         fseeko, ftello.
41123         (gl_STDIN_LARGE_OFFSET): New macro.
41124         * modules/stdio (Makefile.am): Perform the replacement.
41125         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
41126
41127 2007-05-23  Bruno Haible  <bruno@clisp.org>
41128
41129         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
41130         GNULIB_POSIXCHECK is defined.
41131
41132 2007-05-21  Bruno Haible  <bruno@clisp.org>
41133
41134         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
41135         Check also the output for NaN arguments. When cross-compiling, guess
41136         no on IRIX.
41137         * lib/vasnprintf.c: Update comments.
41138         * tests/test-vasnprintf-posix.c (strisnan): New function.
41139         (test_function): Use it.
41140         * tests/test-vasprintf-posix.c (strisnan): New function.
41141         (test_function): Use it.
41142         * tests/test-snprintf-posix.h (strisnan): New function.
41143         (test_function): Use it.
41144         * tests/test-sprintf-posix.h (strisnan): New function.
41145         (test_function): Use it.
41146         Reported by Eric Blake.
41147
41148 2007-05-20  Bruno Haible  <bruno@clisp.org>
41149
41150         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
41151         numbers that fails on BeOS.
41152         * doc/functions/frexpl.texi: Update.
41153
41154 2007-05-20  Jim Meyering  <jim@meyering.net>
41155
41156         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
41157         forced upon us by glibc-2.6.
41158
41159 2007-05-20  Bruno Haible  <bruno@clisp.org>
41160
41161         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
41162         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
41163         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
41164         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
41165         NEED_PRINTF_INFINITE.
41166         (is_infinitel): New function.
41167         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
41168         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
41169         gl_PREREQ_VASNPRINTF_INFINITE.
41170         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
41171         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41172         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
41173         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
41174         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
41175         gl_PREREQ_VASNPRINTF_INFINITE.
41176         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41177         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41178         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41179         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41180         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41182         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41183         * doc/functions/fprintf.texi: Update.
41184         * doc/functions/printf.texi: Update.
41185         * doc/functions/snprintf.texi: Update.
41186         * doc/functions/sprintf.texi: Update.
41187         * doc/functions/vfprintf.texi: Update.
41188         * doc/functions/vprintf.texi: Update.
41189         * doc/functions/vsnprintf.texi: Update.
41190         * doc/functions/vsprintf.texi: Update.
41191
41192 2007-05-20  Bruno Haible  <bruno@clisp.org>
41193
41194         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
41195         was not found in libc.
41196         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
41197
41198 2007-05-20  Bruno Haible  <bruno@clisp.org>
41199
41200         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
41201         printed as "-nan" instead of "nan".
41202         * tests/test-vasprintf-posix.c (test_function): Likewise.
41203         * tests/test-snprintf-posix.h (test_function): Likewise.
41204         * tests/test-sprintf-posix.h (test_function): Likewise.
41205         Needed for HP-UX 11.
41206
41207 2007-05-20  Jim Meyering  <jim@meyering.net>
41208
41209         Fix buggy test for the fchownat-deref bug.
41210         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
41211         symlink required for the run-test.  Without it, this test would
41212         always declare that fchownat doesn't work, and client code would
41213         unnecessarily use the replacement function with fixed libc.
41214         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
41215         Reported by Greg Schafer.
41216
41217 2007-05-19  Bruno Haible  <bruno@clisp.org>
41218
41219         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
41220         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
41221         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
41222         Needed for IRIX 6.5 and Solaris 2.5.1.
41223
41224 2007-05-19  Bruno Haible  <bruno@clisp.org>
41225
41226         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
41227         (test_function): Skip tests involving -0.0 on platforms where
41228         -0.0 = 0.0.
41229         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
41230         (test_function): Skip tests involving -0.0 on platforms where
41231         -0.0 = 0.0.
41232         * tests/test-snprintf-posix.h (have_minus_zero): New function.
41233         (test_function): Skip tests involving -0.0 on platforms where
41234         -0.0 = 0.0.
41235         * tests/test-sprintf-posix.h (have_minus_zero): New function.
41236         (test_function): Skip tests involving -0.0 on platforms where
41237         -0.0 = 0.0.
41238         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
41239         tests.
41240         * tests/test-printf-posix.h (test_function): Likewise.
41241         * tests/test-printf-posix.output: Remove all -0.0 related results.
41242         Needed for IRIX 6.5.
41243
41244 2007-05-19  Bruno Haible  <bruno@clisp.org>
41245
41246         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
41247         printed as "nan0x7fffffff" instead of "nan".
41248         * tests/test-vasprintf-posix.c (test_function): Likewise.
41249         * tests/test-snprintf-posix.h (test_function): Likewise.
41250         * tests/test-sprintf-posix.h (test_function): Likewise.
41251         * tests/test-fprintf-posix.h (NaN): Remove macro.
41252         (test_function): Remove all NaN related tests.
41253         * tests/test-printf-posix.h (NaN): Remove macro.
41254         (test_function): Remove all NaN related tests.
41255         * tests/test-printf-posix.output: Remove all NaN related results.
41256         Needed for IRIX 6.5.
41257
41258 2007-05-19  Bruno Haible  <bruno@clisp.org>
41259
41260         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
41261         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
41262
41263 2007-05-19  Bruno Haible  <bruno@clisp.org>
41264
41265         * lib/float_.h: New file.
41266         * m4/float_h.m4: New file.
41267         * modules/float: New file.
41268         * modules/isnanl (Dependencies): Add float.
41269         * modules/isnanl-nolibm (Dependencies): Likewise.
41270         * modules/mathl (Dependencies): Likewise.
41271         * modules/printf-frexpl (Dependencies): Likewise.
41272         * modules/signbit (Dependencies): Likewise.
41273         * modules/vasnprintf (Dependencies): Likewise.
41274         * doc/headers/float.texi: Update.
41275
41276 2007-05-19  Jim Meyering  <jim@meyering.net>
41277
41278         * lib/utimens.c (gl_futimens): Rename from futimens,
41279         now that glibc-2.6 declares futimens.
41280         * lib/utimens.h: Likewise.
41281
41282 2007-05-19  Bruno Haible  <bruno@clisp.org>
41283
41284         Avoid test failures on mingw.
41285         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
41286         * tests/test-printf-posix.sh: Likewise.
41287         * tests/test-vfprintf-posix.sh: Likewise.
41288         * tests/test-vprintf-posix.sh: Likewise.
41289
41290 2007-05-19  Bruno Haible  <bruno@clisp.org>
41291
41292         Fix *printf result for NaN, Inf, -0.0 on mingw.
41293         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
41294         * lib/vasnprintf.c: Include math.h and isnan.h.
41295         (is_infinite_or_zero): New function.
41296         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
41297         values in the %f, %F, %e, %E, %g, %G directives.
41298         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
41299         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41300         gl_PRINTF_INFINITE and test its result. Invoke
41301         gl_PREREQ_VASNPRINTF_INFINITE.
41302         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41303         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41304         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41305         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41306         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41307         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41308         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41309         * doc/functions/fprintf.texi: Update.
41310         * doc/functions/printf.texi: Update.
41311         * doc/functions/snprintf.texi: Update.
41312         * doc/functions/sprintf.texi: Update.
41313         * doc/functions/vfprintf.texi: Update.
41314         * doc/functions/vprintf.texi: Update.
41315         * doc/functions/vsnprintf.texi: Update.
41316         * doc/functions/vsprintf.texi: Update.
41317
41318 2007-05-19  Bruno Haible  <bruno@clisp.org>
41319
41320         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
41321         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
41322         Instead of multiplying with 10^k, set extra_zeroes to k.
41323         (scale10_round_long_double): Remove function.
41324
41325 2007-05-18  Bruno Haible  <bruno@clisp.org>
41326
41327         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
41328         introduced on 2007-05-06.
41329
41330 2007-05-18  Bruno Haible  <bruno@clisp.org>
41331
41332         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
41333         %g directives.
41334         * tests/test-vasprintf-posix.c (test_function): Likewise.
41335         * tests/test-snprintf-posix.h (test_function): Likewise.
41336         * tests/test-sprintf-posix.h (test_function): Likewise.
41337
41338 2007-05-18  Bruno Haible  <bruno@clisp.org>
41339
41340         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
41341         (strmatch): New function.
41342         (test_function): Test the %f directive on numbers of various exponents.
41343         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
41344         (strmatch): New function.
41345         (test_function): Test the %f directive on numbers of various exponents.
41346         * tests/test-snprintf-posix.h (strmatch): New function.
41347         (test_function): Test the %f directive on numbers of various exponents.
41348         * tests/test-sprintf-posix.h (strmatch): New function.
41349         (test_function): Test the %f directive on numbers of various exponents.
41350         * tests/test-snprintf-posix.c (SIZEOF): New macro.
41351         * tests/test-sprintf-posix.c (SIZEOF): New macro.
41352         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
41353         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
41354
41355 2007-05-18  Bruno Haible  <bruno@clisp.org>
41356
41357         Add support for 'long double' number output.
41358         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
41359         * lib/vasnprintf.c: Include math.h and float+.h.
41360         (mp_limb_t): New type.
41361         (GMP_LIMB_BITS): New macro.
41362         (mp_twolimb_t): New type.
41363         (GMP_TWOLIMB_BITS): New macro.
41364         (mpn_t): New type.
41365         (multiply, divide, convert_to_decimal, decode_long_double,
41366         scale10_round_long_double, scale10_round_decimal_long_double,
41367         floorlog10l): New functions.
41368         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
41369         for the %f, %F, %e, %E, %g, %G directives.
41370         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
41371         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41372         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
41373         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
41374         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41375         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41376         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41377         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41378         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41379         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41380         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41381         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
41382         * modules/snprintf-posix (Depends-on): Likewise.
41383         * modules/sprintf-posix (Depends-on): Likewise.
41384         * modules/vasnprintf-posix (Depends-on): Likewise.
41385         * modules/vasprintf-posix (Depends-on): Likewise.
41386         * modules/vfprintf-posix (Depends-on): Likewise.
41387         * modules/vsnprintf-posix (Depends-on): Likewise.
41388         * modules/vsprintf-posix (Depends-on): Likewise.
41389         * modules/vasnprintf (Files): Add lib/float+.h.
41390         * doc/functions/fprintf.texi: Update.
41391         * doc/functions/printf.texi: Update.
41392         * doc/functions/snprintf.texi: Update.
41393         * doc/functions/sprintf.texi: Update.
41394         * doc/functions/vfprintf.texi: Update.
41395         * doc/functions/vprintf.texi: Update.
41396         * doc/functions/vsnprintf.texi: Update.
41397         * doc/functions/vsprintf.texi: Update.
41398
41399 2007-05-18  Bruno Haible  <bruno@clisp.org>
41400
41401         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
41402
41403 2007-05-18  Bruno Haible  <bruno@clisp.org>
41404
41405         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
41406         for printing 64-bit integers. Needed for mingw.
41407
41408 2007-05-18  Bruno Haible  <bruno@clisp.org>
41409
41410         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41411         gl_FUNC_FREXPL_WORKS.
41412         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
41413
41414 2007-05-18  Bruno Haible  <bruno@clisp.org>
41415
41416         * modules/frexpl-nolibm-tests: New file.
41417
41418         * modules/frexpl-nolibm: New file.
41419         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
41420
41421 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41422
41423         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
41424         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41425         GCC 4.2, which otherwise issues a lot of warnings.
41426         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
41427         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
41428         Likewise.
41429         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
41430         * modules/iconv_open (iconv.h): Likewise.
41431         * modules/locale (locale.h): Likewise.
41432         * modules/netinet_in (netinet/in.h): Likewise.
41433         * modules/sys_select (sys_select.h): Likewise.
41434         * modules/sys_socket (sys/socket.h): Likewise.
41435         * modules/sys_stat (sys/stat.h): Likewise.
41436         * modules/sysexits (sysexits.h): Likewise.
41437         * modules/unistd (unistd.h): Likewise.
41438
41439 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41440
41441         * modules/closein-tests (Makefile.am): Distribute
41442         `test-closein.sh'.
41443
41444 2007-05-17  Bruno Haible  <bruno@clisp.org>
41445
41446         * tests/test-printf-posix.output: Renamed from
41447         tests/test-fprintf-posix.out.
41448         * modules/fprintf-posix-tests: Update.
41449         * modules/printf-posix-tests: Update.
41450         * modules/vfprintf-posix-tests: Update.
41451         * modules/vprintf-posix-tests: Update.
41452         * tests/test-fprintf-posix.sh: Update.
41453         * tests/test-printf-posix.sh: Update.
41454         * tests/test-vfprintf-posix.sh: Update.
41455         * tests/test-vprintf-posix.sh: Update.
41456         Reported by Ralf Wildenhues.
41457
41458 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41459
41460         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
41461         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41462         GCC 4.2, which otherwise issues a lot of warnings.
41463         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
41464         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
41465         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
41466         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
41467         it should no longer be needed.
41468         * lib/string_.h: Likewise.
41469         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
41470         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
41471         * modules/inttypes (inttypes.h): Likewise.
41472         * modules/math (math.h): Likewise.
41473         * modules/search (search.h): Likewise.
41474         * modules/signal (signal.h): Likewise.
41475         * modules/stdint (stdint.h): Likewise.
41476         * modules/stdio (stdio.h): Likewise.
41477         * modules/stdlib (stdlib.h): Likewise.
41478         * modules/string (string.h): Likewise.
41479         * modules/sys_time (sys/time.h): Likewise.
41480         * modules/time (time.h): Likewise.
41481         * modules/wchar (wchar.h): Likewise.
41482         * modules/wctype (wtype.h): Likewise.
41483
41484 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41485
41486         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
41487
41488 2007-05-13  Bruno Haible  <bruno@clisp.org>
41489
41490         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
41491         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41492         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
41493         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41494         (gl_PREREQ_STRTOK_R): Don't require it here.
41495
41496 2007-05-13  Bruno Haible  <bruno@clisp.org>
41497
41498         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
41499         when used in C++ mode.
41500
41501 2007-05-12  Bruno Haible  <bruno@clisp.org>
41502
41503         * lib/linebuffer.h: Tweak doc.
41504         * lib/linebuffer.c: Likewise.
41505
41506 2007-05-12  James Youngman  <jay@gnu.org>
41507
41508         * lib/linebuffer.c (readlinebuffer_delim): New function,
41509         like readlinebuffer, but use a caller-specified delimiter.
41510         (readlinebuffer): Just call readlinebuffer_delim with '\n'
41511         as the delimiter.
41512         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
41513
41514 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41515
41516         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
41517         * modules/openat (Files): Remove openat-die.c.
41518         (Depends-on): Add openat-die.
41519         * modules/openat-die: New module.
41520
41521 2007-05-06  Bruno Haible  <bruno@clisp.org>
41522
41523         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
41524         Update with info about Cygwin.
41525         * doc/functions/fprintf.texi: Update.
41526         * doc/functions/printf.texi: Update.
41527         * doc/functions/snprintf.texi: Update.
41528         * doc/functions/sprintf.texi: Update.
41529         * doc/functions/vfprintf.texi: Update.
41530         * doc/functions/vprintf.texi: Update.
41531         * doc/functions/vsnprintf.texi: Update.
41532         * doc/functions/vsprintf.texi: Update.
41533         Reported by Eric Blake.
41534
41535 2007-05-06  Bruno Haible  <bruno@clisp.org>
41536
41537         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
41538         padding ourselves for the floating-point directives.
41539         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
41540         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
41541         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41542         gl_PRINTF_FLAG_ZERO and test its result. Invoke
41543         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
41544         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41545         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41546         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41547         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41548         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41549         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41550         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41551         * tests/test-snprintf-posix.h (test_function): Also check the width
41552         and some flags in the %f directive.
41553         * tests/test-sprintf-posix.h (test_function): Likewise.
41554         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41555         * tests/test-vasprintf-posix.c (test_function): Likewise.
41556         * doc/functions/fprintf.texi: Update.
41557         * doc/functions/printf.texi: Update.
41558         * doc/functions/snprintf.texi: Update.
41559         * doc/functions/sprintf.texi: Update.
41560         * doc/functions/vfprintf.texi: Update.
41561         * doc/functions/vprintf.texi: Update.
41562         * doc/functions/vsnprintf.texi: Update.
41563         * doc/functions/vsprintf.texi: Update.
41564
41565 2007-05-06  Bruno Haible  <bruno@clisp.org>
41566
41567         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
41568         pass the ' flag character to sprintf or snprintf.
41569         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
41570         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
41571         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41572         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
41573         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
41574         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41575         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41576         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41577         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41578         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41579         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41580         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41581         * tests/test-snprintf-posix.h (test_function): Also check the grouping
41582         flag.
41583         * tests/test-sprintf-posix.h (test_function): Likewise.
41584         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41585         * tests/test-vasprintf-posix.c (test_function): Likewise.
41586         * doc/functions/fprintf.texi: Update.
41587         * doc/functions/printf.texi: Update.
41588         * doc/functions/snprintf.texi: Update.
41589         * doc/functions/sprintf.texi: Update.
41590         * doc/functions/vfprintf.texi: Update.
41591         * doc/functions/vprintf.texi: Update.
41592         * doc/functions/vsnprintf.texi: Update.
41593         * doc/functions/vsprintf.texi: Update.
41594
41595 2007-05-01  Bruno Haible  <bruno@clisp.org>
41596
41597         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
41598
41599 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
41600
41601         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
41602         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
41603
41604 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
41605
41606         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
41607         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
41608         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
41609
41610 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
41611
41612         * lib/argp-help.c (struct hol_entry): New member `ord'.
41613         (HOL_ENTRY_PTRCMP): Use ord for comparison
41614         (hol_sort): Initialize ord.
41615
41616 2007-05-01  Bruno Haible  <bruno@clisp.org>
41617
41618         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
41619         Reported by Eric Blake.
41620         * doc/gnulib.texi (Function Substitutes): Update.
41621
41622 2007-05-01  Bruno Haible  <bruno@clisp.org>
41623
41624         * doc/functions.texi: Remove file, now redundant through
41625         doc/functions/*.texi.
41626
41627 2007-05-01  Bruno Haible  <bruno@clisp.org>
41628
41629         * modules/argp (Depends-on): Add sleep.
41630
41631 2007-05-01  Bruno Haible  <bruno@clisp.org>
41632
41633         * modules/sleep-tests: New file.
41634         * tests/test-sleep.c: New file.
41635
41636         * modules/sleep: New file.
41637         * lib/sleep.c: New file.
41638         * m4/sleep.m4: New file.
41639         * lib/unistd_.h (sleep): New declaration.
41640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
41641         HAVE_SLEEP.
41642         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
41643         * doc/functions/sleep.texi: Document the sleep module.
41644
41645 2007-05-01  Bruno Haible  <bruno@clisp.org>
41646
41647         * lib/sigprocmask.h: Remove file.
41648         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
41649         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
41650         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
41651         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
41652         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
41653         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
41654         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
41655         HAVE_SIGSET_T as a shell variable.
41656         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
41657         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
41658         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
41659         (Depends-on): Add signal. Remove verify.
41660         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
41661         (Include): Mention <signal.h> instead of sigprocmask.h.
41662         * NEWS: Mention the change.
41663         * lib/fatal-signal.c: Don't include sigprocmask.h.
41664
41665 2007-05-01  Bruno Haible  <bruno@clisp.org>
41666
41667         * modules/signal: New file.
41668         * lib/signal_.h: New file.
41669         * m4/signal_h.m4: New file.
41670
41671 2007-05-01  Bruno Haible  <bruno@clisp.org>
41672
41673         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
41674         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
41675         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
41676         HAVE_WCTYPE_CTMP_BUG into wctype.h.
41677
41678 2007-05-01  Bruno Haible  <bruno@clisp.org>
41679
41680         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
41681         configure time.
41682         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
41683         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
41684         * modules/sys_stat (Makefile.am): Substitute their values into
41685         sys/stat.h.
41686
41687 2007-05-01  Bruno Haible  <bruno@clisp.org>
41688
41689         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
41690         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
41691         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
41692
41693 2007-05-01  Bruno Haible  <bruno@clisp.org>
41694
41695         * doc/header/assert.texi: Undo last change: don't mention the gnulib
41696         'assert' module here.
41697
41698 2007-05-01  Bruno Haible  <bruno@clisp.org>
41699
41700         * doc/functions/*.texi: New files.
41701         * doc/functions/google-ranking.txt: New file.
41702         * doc/gnulib.texi (Function Substitutes): New chapter.
41703         (ctime, inet_ntoa): Remove sections.
41704         * doc/ctime.texi: Remove file.
41705         * doc/inet_ntoa.texi: Remove file.
41706         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
41707         dependencies.
41708         (%.info): New rule, specifying a --reference-limit.
41709
41710 2007-05-01  Bruno Haible  <bruno@clisp.org>
41711
41712         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
41713
41714 2007-05-01  Bruno Haible  <bruno@clisp.org>
41715
41716         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
41717         the portability of 'mkdir' to mingw systems.
41718
41719 2007-05-01  Bruno Haible  <bruno@clisp.org>
41720
41721         * doc/headers/google-ranking.txt: New file.
41722
41723 2007-04-30  Eric Blake  <ebb9@byu.net>
41724
41725         Prefer fseeko to fseek.
41726         * modules/getpass (Depends-on): Add fseeko.
41727         * lib/getpass.c (getpass): Use fseeko, not fseek.
41728
41729 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
41730
41731         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
41732         assumes the sorting is stable, while most qsort implementations
41733         are not.  Use argument addresses to ensure they never compare as
41734         equal.
41735
41736         * tests/test-argp-2.sh (usage-indent test): Fix output
41737         (func_compare): Restore diff options
41738         * tests/test-argp.c: Restore #include "progname.h"
41739
41740 2007-04-29  Bruno Haible  <bruno@clisp.org>
41741
41742         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
41743         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41744         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
41745         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41746         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
41747         (configure.ac): Define CHECK_SNPRINTF_POSIX.
41748         (TESTS, check_PROGRAMS): Add test-snprintf.
41749         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
41750         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
41751         (TESTS, check_PROGRAMS): Add test-vsnprintf.
41752         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
41753         assertions that fail on HP-UX, OSF/1, or IRIX.
41754         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
41755
41756 2007-04-29  Bruno Haible  <bruno@clisp.org>
41757
41758         * MODULES.html.sh (posix_functions): Remove 'contents'.
41759
41760 2007-04-29  Karl Berry  <karl@gnu.org>
41761
41762         * config/srclist.txt (gendocs_template_min): new entry.
41763
41764 2007-04-29  Bruno Haible  <bruno@clisp.org>
41765
41766         Work around fpurge bug on BSD systems.
41767         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
41768         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
41769         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
41770         fpurge to rpl_fpurge if the system already has this function.
41771         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
41772         the case where the system already has this function. Correct invariants
41773         on BSD systems.
41774         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
41775         BSD systems.
41776
41777 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41778
41779         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
41780         proposed by Sven Verdoolaege.
41781
41782         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
41783         options.
41784         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
41785         (usage and help tests): Update
41786
41787 2007-04-29  Bruno Haible  <bruno@clisp.org>
41788
41789         * tests/test-fflush.c (main): Use a file of size 17, not 10.
41790         Print more information in case of failure. Disable a test on BeOS.
41791
41792 2007-04-29  Bruno Haible  <bruno@clisp.org>
41793
41794         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
41795         This helps debugging on systems on which no gdb is available.
41796
41797 2007-04-29  Bruno Haible  <bruno@clisp.org>
41798
41799         * lib/freading.h: Improve comments.
41800         * lib/fwriting.h: Likewise.
41801         * tests/test-freading.c (main): Don't check freading immediately after
41802         repositioning. Needed for glibc.
41803
41804 2007-04-29  Bruno Haible  <bruno@clisp.org>
41805
41806         * lib/freading.c (freading): Trivial simplification.
41807
41808 2007-04-28  Bruno Haible  <bruno@clisp.org>
41809
41810         * tests/test-fwriting.c (main): Also test the interaction between
41811         fflush and fwriting.
41812         * modules/fwriting-tests (Depends-on): Add fflush.
41813
41814         * tests/test-freading.c (main): Also test the interaction between
41815         fflush and freading.
41816         * modules/freading-tests (Depends-on): Add fflush.
41817
41818 2007-04-28  Bruno Haible  <bruno@clisp.org>
41819
41820         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
41821         fseeko and ftello.
41822         Suggested by Eric Blake.
41823
41824 2007-04-28  Jim Meyering  <jim@meyering.net>
41825
41826         Avoid false-negative in gl_STDINT_H's C99 conformance test.
41827         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
41828         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
41829
41830 2007-04-27  Eric Blake  <ebb9@byu.net>
41831
41832         * doc/headers/assert.texi (assert.h): Document assert module use.
41833
41834 2007-04-27  Bruno Haible  <bruno@clisp.org>
41835
41836         * doc/headers/*.texi: New files.
41837         * doc/gnulib.texi (Header File Substitutes): New chapter.
41838         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
41839         dependencies.
41840         (standards.info ,standards.html, standards.dvi): Update dependencies.
41841         (mostlyclean, clean): New targets.
41842
41843 2007-04-27  Bruno Haible  <bruno@clisp.org>
41844
41845         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
41846         * modules/sysexits (Files, Makefile.am): Update.
41847
41848         * lib/sys_socket_.h: Renamed from lib/socket_.h.
41849         * modules/sys_socket (Files, Makefile.am): Update.
41850
41851         * lib/sys_stat_.h: Renamed from lib/stat_.h.
41852         * modules/sys_stat (Files, Makefile.am): Update.
41853
41854 2007-04-27  Eric Blake  <ebb9@byu.net>
41855
41856         * lib/freading.h: Improve comments.
41857         * lib/fwriting.h: Likewise.
41858         * lib/fflush.c: Likewise.
41859
41860         Fix closein for mingw.
41861         * modules/closein-tests: Add tests for closein.
41862         * tests/test-closein.c: New file.
41863         * tests/test-closein.sh: Likewise.
41864         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
41865         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
41866
41867 2007-04-27  Bruno Haible  <bruno@clisp.org>
41868
41869         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
41870         version is < 6.
41871         * lib/math_.h [__DECC]: Likewise.
41872         * lib/stdio_.h [__DECC]: Likewise.
41873         * lib/stdlib_.h [__DECC]: Likewise.
41874         * lib/string_.h [__DECC]: Likewise.
41875         * lib/time_.h [__DECC]: Likewise.
41876         * lib/wchar_.h [__DECC]: Likewise.
41877         * lib/wctype_.h [__DECC]: Likewise.
41878
41879 2007-04-27  Bruno Haible  <bruno@clisp.org>
41880
41881         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
41882
41883 2007-04-27  Bruno Haible  <bruno@clisp.org>
41884
41885         * lib/fflush.c: Add comments.
41886         * modules/fpurge-tests (Depends-on): Add fflush.
41887         * modules/freadable-tests (Depends-on): Likewise.
41888         * modules/fwritable-tests (Depends-on): Likewise.
41889
41890 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
41891
41892         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
41893         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
41894         Report by Bruno Haible <bruno@clisp.org>.
41895
41896 2007-04-26  Eric Blake  <ebb9@byu.net>
41897
41898         Fix fflush on mingw.
41899         * modules/fflush (Depends-on): Add freading.
41900         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
41901         but unread data.
41902
41903 2007-04-26  Eric Blake  <ebb9@byu.net>
41904         and Bruno Haible  <bruno@clisp.org>
41905
41906         Implement freading and fwriting.
41907         * lib/freading.c: New file.
41908         * lib/freading.h: Likewise.
41909         * m4/freading.m4: Likewise.
41910         * modules/freading: Likewise.
41911         * modules/freading-tests: Likewise.
41912         * tests/test-freading.c: Likewise.
41913         * lib/fwriting.c: New file.
41914         * lib/fwriting.h: Likewise.
41915         * m4/fwriting.m4: Likewise.
41916         * modules/fwriting: Likewise.
41917         * modules/fwriting-tests: Likewise.
41918         * tests/test-fwriting.c: Likewise.
41919         * MODULES.html.sh (File stream based Input/Output): Mention them.
41920
41921 2007-04-26  Bruno Haible  <bruno@clisp.org>
41922
41923         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
41924         'long' when we assume it.
41925         Suggested by Eric Blake.
41926
41927 2007-04-26  Bruno Haible  <bruno@clisp.org>
41928
41929         Ensure fseeko, ftello are declared on glibc systems.
41930         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
41931         * modules/fseeko (configure.ac-early): Likewise.
41932         * modules/ftello (configure.ac-early): Likewise.
41933         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
41934         AC_FUNC_FSEEKO for this.
41935         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
41936         (gl_CHECK_FSEEKO): Remove macro.
41937
41938 2007-04-26  Bruno Haible  <bruno@clisp.org>
41939
41940         * tests/test-fflush.c (main): Also check the ftell result after
41941         fflush and fseek/fseeko.
41942         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
41943         file descriptor position cache in the stream.
41944         * lib/fseeko.c (rpl_fseeko): Likewise.
41945
41946 2007-04-26  Bruno Haible  <bruno@clisp.org>
41947
41948         * modules/fflush-tests (Depends-on): Add fseeko.
41949
41950 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
41951             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41952
41953         * lib/argz_.h: ensure error_t definition is obtained in same
41954         mechanism system argz.h would have.
41955         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
41956         argz facilities are known bad.  Err on the side of caution if
41957         cross-compiling.
41958
41959 2007-04-25  Eric Blake  <ebb9@byu.net>
41960
41961         * lib/fpurge.c (includes): Use stdlib.h for free.
41962         * tests/test-fflush.c (main): Also test fflush-fseeko.
41963
41964 2007-04-25  Bruno Haible  <bruno@clisp.org>
41965
41966         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
41967         * lib/fseeko.c: New file.
41968         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
41969         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
41970         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
41971         gl_FUNC_FSEEKO.
41972         (gl_FUNC_FSEEKO): Invoke it.
41973         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
41974         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
41975         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
41976
41977 2007-04-25  Bruno Haible  <bruno@clisp.org>
41978
41979         * modules/fflush (Depends-on): Add ftello.
41980
41981 2007-04-25  Bruno Haible  <bruno@clisp.org>
41982
41983         * modules/ftello-tests: New file.
41984         * tests/test-ftello.c: New file.
41985
41986         * modules/ftello: New file.
41987         * m4/ftello.m4: New file.
41988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
41989         HAVE_FTELLO.
41990         * lib/stdio_.h (ftello): New declaration.
41991         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
41992         HAVE_FTELLO.
41993
41994 2007-04-25  Bruno Haible  <bruno@clisp.org>
41995
41996         * modules/fseeko-tests: New file.
41997         * tests/test-fseeko.c: New file.
41998
41999         * modules/fseeko: New file.
42000         * m4/fseeko.m4: New file.
42001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
42002         HAVE_FSEEKO.
42003         * lib/stdio_.h (fseeko): New declaration.
42004         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
42005         HAVE_FSEEKO.
42006
42007 2007-04-25  Bruno Haible  <bruno@clisp.org>
42008
42009         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
42010
42011 2007-04-25  Bruno Haible  <bruno@clisp.org>
42012
42013         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
42014         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
42015         * tests/test-unistd.c: Likewise.
42016         * tests/test-fcntl.c: Likewise.
42017
42018 2007-04-23  Eric Blake  <ebb9@byu.net>
42019
42020         * lib/fflush.c: Fix missing include.
42021         Reported by Bruno Haible.
42022
42023 2007-04-23  Bruno Haible  <bruno@clisp.org>
42024
42025         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
42026         Reported by Eric Blake.
42027
42028 2007-04-23  Bruno Haible  <bruno@clisp.org>
42029
42030         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
42031
42032 2007-04-23  Bruno Haible  <bruno@clisp.org>
42033
42034         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
42035
42036 2007-04-23  Bruno Haible  <bruno@clisp.org>
42037
42038         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
42039         Needed on HP-UX 11.
42040
42041 2007-04-16  Eric Blake  <ebb9@byu.net>
42042
42043         Make fflush rely on fpurge.
42044         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
42045         open coding all variants.
42046         * modules/fflush (Depends-on): Add fpurge and unistd.
42047         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
42048         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
42049
42050         Fix --with-tests compilation on cygwin.
42051         * modules/argmatch-tests (Makefile.am): List gnulib library first
42052         in LDADD.
42053         * modules/argp-tests (Makefile.am): Likewise.
42054         * modules/array-list-tests (Makefile.am): Likewise.
42055         * modules/array-oset-tests (Makefile.am): Likewise.
42056         * modules/avltree-list-tests (Makefile.am): Likewise.
42057         * modules/avltree-oset-tests (Makefile.am): Likewise.
42058         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42059         * modules/carray-list-tests (Makefile.am): Likewise.
42060         * modules/dirname-tests (Makefile.am): Likewise.
42061         * modules/frexp-tests (Makefile.am): Likewise.
42062         * modules/isnanl-tests (Makefile.am): Likewise.
42063         * modules/linked-list-tests (Makefile.am): Likewise.
42064         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42065         * modules/lock-tests (Makefile.am): Likewise.
42066         * modules/rbtree-list-tests (Makefile.am): Likewise.
42067         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42068         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42069         * modules/tls-tests (Makefile.am): Likewise.
42070         * modules/tsearch-tests (Makefile.am): Likewise.
42071         * modules/xvasprintf-tests (Makefile.am): Likewise.
42072
42073         Fix fpurge for cygwin.
42074         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
42075         value.
42076         * modules/fpurge-tests (Depends-on): Clean up trash.
42077
42078 2007-04-16  Simon Josefsson  <simon@josefsson.org>
42079
42080         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
42081
42082         * m4/autobuild.m4: Re-indent.
42083
42084 2007-04-13  Bruno Haible  <bruno@clisp.org>
42085
42086         * modules/fpurge-tests: New file.
42087         * tests/test-fpurge.c: New file.
42088
42089         * modules/fpurge: New file.
42090         * lib/fpurge.h: New file.
42091         * lib/fpurge.c: New file.
42092         * m4/fpurge.m4: New file.
42093
42094 2007-04-13  Bruno Haible  <bruno@clisp.org>
42095
42096         * modules/fbufmode-tests: New file.
42097         * tests/test-fbufmode.c: New file.
42098
42099         * modules/fbufmode: New file.
42100         * lib/fbufmode.h: New file.
42101         * lib/fbufmode.c: New file.
42102         * m4/fbufmode.m4: New file.
42103
42104 2007-04-13  Bruno Haible  <bruno@clisp.org>
42105
42106         * modules/fwritable-tests: New file.
42107         * tests/test-fwritable.c: New file.
42108
42109         * modules/fwritable: New file.
42110         * lib/fwritable.h: New file.
42111         * lib/fwritable.c: New file.
42112         * m4/fwritable.m4: New file.
42113
42114 2007-04-13  Bruno Haible  <bruno@clisp.org>
42115
42116         * modules/freadable-tests: New file.
42117         * tests/test-freadable.c: New file.
42118
42119         * modules/freadable: New file.
42120         * lib/freadable.h: New file.
42121         * lib/freadable.c: New file.
42122         * m4/freadable.m4: New file.
42123
42124 2007-04-13  Bruno Haible  <bruno@clisp.org>
42125
42126         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
42127         MOSTLYCLEANFILES.
42128
42129 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
42130
42131         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
42132         gzip bootstrap.conf to avoid dragging in i18n machinery.
42133         (gnulib_tool_option): Use it.
42134
42135 2007-04-13  Bruno Haible  <bruno@clisp.org>
42136
42137         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
42138         %F directives.
42139         * tests/test-vasprintf-posix.c (test_function): Likewise.
42140         * tests/test-snprintf-posix.h (test_function): Likewise.
42141         * tests/test-sprintf-posix.h (test_function): Likewise.
42142         * tests/test-fprintf-posix.h (test_function): Likewise.
42143         * tests/test-printf-posix.h (test_function): Likewise.
42144         * tests/test-fprintf-posix.out: Likewise.
42145
42146 2007-04-13  Bruno Haible  <bruno@clisp.org>
42147
42148         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
42149         * modules/tls-tests (configure.ac): Likewise.
42150         Reported by Arto C. Nirkko <anirkko@insel.ch>.
42151
42152 2007-04-13  Bruno Haible  <bruno@clisp.org>
42153
42154         * lib/tls.c (glthread_tls_get): Fix return type.
42155         Patch by Arto C. Nirkko <anirkko@insel.ch>.
42156
42157 2007-04-12  Eric Blake  <ebb9@byu.net>
42158
42159         * modules/gettime (Depends-on): Remove gettime.
42160         Reported by Dmitry V. Levin.
42161
42162 2007-04-12  Bruno Haible  <bruno@clisp.org>
42163
42164         * modules/fflush (Include): Mention <stdio.h>.
42165         * modules/strtoimax (Include): Mention <inttypes.h>.
42166         * modules/strtoumax (Include): Likewise.
42167
42168 2007-04-12  Eric Blake  <ebb9@byu.net>
42169
42170         * .cvsignore: New file.
42171         * .gitignore: Likewise.
42172
42173 2007-04-12  Bruno Haible  <bruno@clisp.org>
42174
42175         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
42176         not before, since $(LDADD) often contains libgnu.a.
42177         * modules/striconv-tests (test_striconv_LDADD): Likewise.
42178         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
42179         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
42180         Needed on Cygwin.
42181
42182 2007-04-12  Eric Blake  <ebb9@byu.net>
42183
42184         Work around glibc's failure to flush stdin on fclose.
42185         * lib/closein.c (close_stdin): Flush stdin before closing.
42186
42187         Work around glibc's failure to reset seekable stdin on exit.
42188         * modules/closein: New module.
42189         * lib/closein.c: New file.
42190         * lib/closein.h: Likewise.
42191         * m4/closein.m4: Likewise.
42192         * MODULES.html.sh (File stream based Input/Output): Document it.
42193
42194 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42195
42196         * gnulib-tool: Rename generated 'autobuild' script to
42197         'do-autobuild' in --create-megatestdir output.
42198
42199         * doc/gnulib.texi (Build robot for gnulib): Fix.
42200
42201 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42202
42203         * modules/sysexits (Depends-on): Add absolute-header.
42204
42205 2007-04-12  Eric Blake  <ebb9@byu.net>
42206
42207         No need to preserve errno on success.
42208         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
42209         Reported by Bruno Haible.
42210
42211 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42212
42213         * MODULES.html.sh (Support for maintaining and releasing
42214         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
42215
42216 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42217
42218         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
42219
42220 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42221
42222         * modules/autobuild: New module.
42223
42224         * m4/autobuild.m4: New file.
42225
42226 2007-04-11  Bruno Haible  <bruno@clisp.org>
42227
42228         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
42229         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
42230         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
42231         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
42232         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42233         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42234         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42235         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42236         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42237         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42238         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
42239         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42240         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42241         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
42242         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42243         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42244         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
42245         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42246         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42247         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
42248         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42249         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42250         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
42251         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42252         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42253         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
42254         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42255         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42256         Reported by Eric Blake.
42257
42258 2007-04-11  Bruno Haible  <bruno@clisp.org>
42259
42260         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
42261
42262 2007-04-10  Bruno Haible  <bruno@clisp.org>
42263
42264         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
42265         for NaN and Infinity. Needed on FreeBSD 6.1.
42266         * tests/test-vasnprintf-posix.c (test_function): Undo last change
42267         regarding results for "%010a" of Infinity and NaN.
42268         * tests/test-vasprintf-posix.c (test_function): Likewise.
42269         * tests/test-snprintf-posix.h (test_function): Likewise.
42270         * tests/test-sprintf-posix.h (test_function): Likewise.
42271         * tests/test-fprintf-posix.h (test_function): Likewise.
42272         * tests/test-printf-posix.h (test_function): Likewise.
42273         * tests/test-fprintf-posix.out: Likewise.
42274
42275 2007-04-10  Bruno Haible  <bruno@clisp.org>
42276
42277         * modules/locale-tests: New file.
42278         * tests/test-locale.c: New file.
42279
42280         * modules/locale: New file.
42281         * lib/locale_.h: New file.
42282         * m4/locale_h.m4: New file.
42283
42284 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
42285             Bruno Haible  <bruno@clisp.org>
42286
42287         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
42288         be determined, test for availability of the copysignf, copysign,
42289         copysignl functions.
42290         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
42291         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
42292         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
42293
42294 2007-04-09  Eric Blake  <ebb9@byu.net>
42295
42296         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
42297         * modules/stdio (Makefile.am): Support fflush.
42298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42299         * modules/fflush: New file.
42300         * lib/fflush.c: Likewise.
42301         * m4/fflush.m4: Likewise.
42302         * modules/fflush-tests: New test.
42303         * tests/test-fflush.c: Likewise.
42304         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
42305
42306 2007-04-06  Bruno Haible  <bruno@clisp.org>
42307
42308         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
42309         (VASNPRINTF): Use signbit for faster determination whether to print a
42310         minus sign.
42311         * modules/vasnprintf (Files): Remove lib/float+.h.
42312         * modules/fprintf-posix (Depends-on): Add signbit.
42313         * modules/snprintf-posix (Depends-on): Likewise.
42314         * modules/sprintf-posix (Depends-on): Likewise.
42315         * modules/vasnprintf-posix (Depends-on): Likewise.
42316         * modules/vasprintf-posix (Depends-on): Likewise.
42317         * modules/vfprintf-posix (Depends-on): Likewise.
42318         * modules/vsnprintf-posix (Depends-on): Likewise.
42319         * modules/vsprintf-posix (Depends-on): Likewise.
42320
42321 2007-04-06  Bruno Haible  <bruno@clisp.org>
42322
42323         * tests/test-frexp.c (main): Test also the sign bit of zero results.
42324         * tests/test-frexpl.c (main): Likewise.
42325         * tests/test-ldexpl.c (main): Likewise.
42326         * modules/frexp-tests (Depends-on): Add signbit.
42327         * modules/frexpl-tests (Depdends-on): Likewise.
42328         * modules/ldexpl-tests (Depdends-on): Likewise.
42329
42330 2007-04-06  Bruno Haible  <bruno@clisp.org>
42331
42332         * modules/signbit-tests: New file.
42333         * tests/test-signbit.c: New file.
42334
42335         * modules/signbit: New file.
42336         * lib/signbitf.c: New file.
42337         * lib/signbitd.c: New file.
42338         * lib/signbitl.c: New file.
42339         * m4/signbit.m4: New file.
42340         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
42341         (signbit): New macro.
42342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
42343         REPLACE_SIGNBIT.
42344         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
42345         REPLACE_FREXPL into math.h.
42346
42347 2007-04-06  Bruno Haible  <bruno@clisp.org>
42348
42349         * modules/isnanf-nolibm-tests: New file.
42350         * tests/test-isnanf.c: New file.
42351
42352         * modules/isnanf-nolibm: New file.
42353         * lib/isnanf.h: New file.
42354         * lib/isnanf.c: New file.
42355         * lib/isnan.c: Consider the USE_FLOAT macro.
42356         * m4/isnanf.m4: New file.
42357
42358 2007-04-06  Bruno Haible  <bruno@clisp.org>
42359
42360         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
42361         (Link): New section.
42362
42363         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
42364
42365 2007-04-06  Bruno Haible  <bruno@clisp.org>
42366
42367         Assume the 'long double' type.
42368         * m4/longdouble.m4: Remove file.
42369         * config/srclist.txt: Don't mention longdouble.m4.
42370         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
42371         * lib/float+.h: Likewise.
42372         * lib/frexp.c: Likewise.
42373         * lib/printf-args.h: Likewise.
42374         * lib/printf-args.c: Likewise.
42375         * lib/printf-frexp.c: Likewise.
42376         * lib/printf-parse.c: Likewise.
42377         * lib/vasnprintf.c: Likewise.
42378         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
42379         * m4/intl.m4: Likewise.
42380         * m4/isnanl.m4: Likewise.
42381         * m4/printf.m4: Likewise.
42382         * m4/printf-frexpl.m4: Likewise.
42383         * m4/vasnprintf.m4: Likewise.
42384         * modules/allocsa (Files): Remove m4/longdouble.m4.
42385         * modules/gettext (Files): Likewise.
42386         * modules/relocatable-prog-wrapper (Files): Likewise.
42387         * modules/vasnprintf (Files): Likewise.
42388         * modules/isnanl (Files): Likewise.
42389         (Include): Simplify.
42390         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
42391         (Include): Simplify.
42392         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
42393         (Include): Simplify.
42394         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
42395         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42396         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
42397         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42398         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42399         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42400         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
42401         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42402         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42403         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42404         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
42405         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42406         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
42407         * tests/test-isnanl.c: Likewise.
42408         * tests/test-snprintf-posix.h: Likewise.
42409         * tests/test-sprintf-posix.h: Likewise.
42410         * tests/test-vasnprintf-posix.c: Likewise.
42411         * tests/test-vasnprintf-posix2.c: Likewise.
42412         * tests/test-vasprintf-posix.c: Likewise.
42413
42414 2007-04-06  Bruno Haible  <bruno@clisp.org>
42415
42416         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
42417         * lib/math_.h [__DECC]: Include the overridden include file through
42418         #include_next, outside the double-inclusion guard.
42419         * lib/stdio_.h [__DECC]: Likewise.
42420         * lib/stdlib_.h [__DECC]: Likewise.
42421         * lib/string_.h [__DECC]: Likewise.
42422         * lib/time_.h [__DECC]: Likewise.
42423         * lib/wchar_.h [__DECC]: Likewise.
42424         * lib/wctype_.h [__DECC]: Likewise.
42425         * lib/inttypes_.h [__DECC]: Likewise.
42426         Reported by Albert Chin <china@thewrittenword.com> in
42427         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
42428
42429 2007-04-04  Eric Blake  <ebb9@byu.net>
42430
42431         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
42432         1.5.x.
42433
42434 2007-04-04  Bruno Haible  <bruno@clisp.org>
42435
42436         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
42437         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
42438
42439 2007-04-04  Bruno Haible  <bruno@clisp.org>
42440
42441         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
42442         results for "%010a" of Infinity and NaN.
42443         * tests/test-vasprintf-posix.c (test_function): Likewise.
42444         * tests/test-snprintf-posix.h (test_function): Likewise.
42445         * tests/test-sprintf-posix.h (test_function): Likewise.
42446         * tests/test-fprintf-posix.h (test_function): Remove these tests.
42447         * tests/test-printf-posix.h (test_function): Likewise.
42448         * tests/test-fprintf-posix.out: Update.
42449         Needed for FreeBSD 6.1.
42450
42451 2007-04-04  Bruno Haible  <bruno@clisp.org>
42452
42453         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
42454         directly used by the gnulib modules nor by gnulib-tool.
42455
42456 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
42457
42458         * DEPENDENCIES: Give overall description of version dependency
42459         desirability.  Use more-typical names for apps.
42460         Add shell, coreutils, diffutils, grep, tar, gzip.
42461
42462 2007-04-04  Simon Josefsson  <simon@josefsson.org>
42463
42464         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
42465
42466 2007-04-04  Karl Berry  <karl@gnu.org>
42467
42468         * MODULES.html.sh (func_module): missing '.
42469
42470 2007-04-03  Bruno Haible  <bruno@clisp.org>
42471
42472         * modules/argmatch-tests (Makefile.am): New variable
42473         test_argmatch_LDADD.
42474         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
42475         * modules/array-list-tests (Makefile.am): New variable
42476         test_array_list_LDADD.
42477         * modules/array-oset-tests (Makefile.am): New variable
42478         test_array_oset_LDADD.
42479         * modules/avltree-list-tests (Makefile.am): New variable
42480         test_avltree_list_LDADD.
42481         * modules/avltree-oset-tests (Makefile.am): New variable
42482         test_avltree_oset_LDADD.
42483         * modules/avltreehash-list-tests (Makefile.am): New variable
42484         test_avltreehash_list_LDADD.
42485         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
42486         test_canonicalize_lgpl_LDADD.
42487         * modules/carray-list-tests (Makefile.am): New variable
42488         test_carray_list_LDADD.
42489         * modules/dirname-tests (Makefile.am): New variable
42490         test_dirname_LDADD.
42491         * modules/linked-list-tests (Makefile.am): New variable
42492         test_linked_list_LDADD.
42493         * modules/linkedhash-list-tests (Makefile.am): New variable
42494         test_linkedhash_list_LDADD.
42495         * modules/rbtree-list-tests (Makefile.am): New variable
42496         test_rbtree_list_LDADD.
42497         * modules/rbtree-oset-tests (Makefile.am): New variable
42498         test_rbtree_oset_LDADD.
42499         * modules/rbtreehash-list-tests (Makefile.am): New variable
42500         test_rbtreehash_list_LDADD.
42501         * modules/xvasprintf-tests (Makefile.am): New variable
42502         test_xvasprintf_LDADD.
42503         Reported by Eric Blake.
42504
42505 2007-04-03  Eric Blake  <ebb9@byu.net>
42506
42507         * DEPENDENCIES: Weaken m4 requirements.
42508
42509 2007-04-03  Bruno Haible  <bruno@clisp.org>
42510
42511         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
42512         * modules/isnanl-tests (configure.ac): Likewise.
42513
42514 2007-04-03  Ben Pfaff  <blp@gnu.org>
42515
42516         * modules/iconv_open: Add $(srcdir)/ to source directory
42517         references in Makefile fragments that call gperf, to fix VPATH
42518         builds.
42519
42520 2007-04-03  Bruno Haible  <bruno@clisp.org>
42521
42522         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
42523         * lib/ldexpl.c: Undo last change.
42524
42525 2007-04-03  Bruno Haible  <bruno@clisp.org>
42526
42527         * modules/printf-frexpl (Depends-on): Undo last change.
42528         (Files): Add m4/ldexpl.m4.
42529
42530 2007-04-03  Bruno Haible  <bruno@clisp.org>
42531
42532         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
42533         * modules/isnanl (Link): New section.
42534
42535         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
42536         * modules/frexp (Link): New section.
42537
42538         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
42539         * modules/frexpl (Link): New section.
42540
42541         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
42542         * modules/ldexpl (Link): New section.
42543
42544 2007-04-03  Bruno Haible  <bruno@clisp.org>
42545
42546         * modules/TEMPLATE-EXTENDED: New file.
42547         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
42548
42549 2007-04-03  Bruno Haible  <bruno@clisp.org>
42550
42551         * DEPENDENCIES: New file.
42552         Suggested by Simon Josefsson.
42553
42554 2007-04-03  Bruno Haible  <bruno@clisp.org>
42555
42556         * doc/gnulib.texi: Escape @.
42557
42558 2007-04-03  James Youngman  <jay@gnu.org>
42559         and Paul Eggert  <eggert@cs.ucla.edu>
42560
42561         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
42562         birthtime on all systems that have birthtime, not just those which
42563         use st_birthtimensec rather than st_birthtim.  Putting zero in
42564         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
42565         that the birth time is not available for files on an NFS mount.
42566
42567 2007-04-03  Simon Josefsson  <simon@josefsson.org>
42568
42569         * modules/memxor: Move back from crypto/, suggested by Bruno.
42570         * modules/crypto/hmac-sha1: Fix memxor dependency.
42571
42572         * modules/crypto/gc: Moved from ../.
42573
42574 2007-04-02  Eric Blake  <ebb9@byu.net>
42575
42576         * lib/ldexpl.c (includes): Avoid libm.
42577
42578         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
42579
42580 2007-04-02  Bruno Haible  <bruno@clisp.org>
42581
42582         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
42583         on IRIX.
42584
42585 2007-04-02  Bruno Haible  <bruno@clisp.org>
42586
42587         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
42588         x86 or x86_64 platforms running MacOS X.
42589         Reported by Ryan Schmidt <@ryandesign.com>.
42590
42591 2007-04-02  Bruno Haible  <bruno@clisp.org>
42592
42593         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
42594         i386.
42595
42596 2007-04-01  Simon Josefsson  <simon@josefsson.org>
42597
42598         * modules/crypto/arcfour: Moved from ../.
42599         * modules/crypto/arcfour-tests: Moved from ../.
42600         * modules/crypto/arctwo: Moved from ../.
42601         * modules/crypto/arctwo-tests: Moved from ../.
42602         * modules/crypto/des: Moved from ../.
42603         * modules/crypto/des-tests: Moved from ../.
42604         * modules/crypto/gc-arcfour: Moved from ../.
42605         * modules/crypto/gc-arcfour-tests: Moved from ../.
42606         * modules/crypto/gc-arctwo: Moved from ../.
42607         * modules/crypto/gc-arctwo-tests: Moved from ../.
42608         * modules/crypto/gc-des: Moved from ../.
42609         * modules/crypto/gc-des-tests: Moved from ../.
42610         * modules/crypto/gc-hmac-md5: Moved from ../.
42611         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
42612         * modules/crypto/gc-hmac-sha1: Moved from ../.
42613         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
42614         * modules/crypto/gc-md2: Moved from ../.
42615         * modules/crypto/gc-md2-tests: Moved from ../.
42616         * modules/crypto/gc-md4: Moved from ../.
42617         * modules/crypto/gc-md4-tests: Moved from ../.
42618         * modules/crypto/gc-md5: Moved from ../.
42619         * modules/crypto/gc-md5-tests: Moved from ../.
42620         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
42621         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
42622         * modules/crypto/gc-random: Moved from ../.
42623         * modules/crypto/gc-rijndael: Moved from ../.
42624         * modules/crypto/gc-rijndael-tests: Moved from ../.
42625         * modules/crypto/gc-sha1: Moved from ../.
42626         * modules/crypto/gc-sha1-tests: Moved from ../.
42627         * modules/crypto/gc-tests: Moved from ../.
42628         * modules/crypto/hmac-md5: Moved from ../.
42629         * modules/crypto/hmac-md5-tests: Moved from ../.
42630         * modules/crypto/hmac-sha1: Moved from ../.
42631         * modules/crypto/hmac-sha1-tests: Moved from ../.
42632         * modules/crypto/md2: Moved from ../.
42633         * modules/crypto/md2-tests: Moved from ../.
42634         * modules/crypto/md4: Moved from ../.
42635         * modules/crypto/md4-tests: Moved from ../.
42636         * modules/crypto/md5: Moved from ../.
42637         * modules/crypto/md5-tests: Moved from ../.
42638         * modules/crypto/memxor: Moved from ../.
42639         * modules/crypto/rijndael: Moved from ../.
42640         * modules/crypto/rijndael-tests: Moved from ../.
42641         * modules/crypto/sha1: Moved from ../.
42642
42643 2007-03-30  James Youngman  <jay@gnu.org>
42644
42645         * tests/test-stat-time.c (prepare_test): use chmod() rather than
42646         rename() to change the ctime of a file (because ctime is unaffected
42647         by rename on jfs2 on AIX 5.1).
42648         (main): Start by doing cleanup, in case a previous run failed leaving
42649         test files behind.
42650
42651 2007-03-31  Bruno Haible  <bruno@clisp.org>
42652
42653         Support old proprietary implementations of iconv.
42654         * modules/iconv_open: New file.
42655         * lib/iconv_.h: New file.
42656         * m4/iconv_h.m4: New file.
42657         * lib/iconv_open.c: New file.
42658         * lib/iconv_open-aix.gperf: New file.
42659         * lib/iconv_open-hpux.gperf: New file.
42660         * lib/iconv_open-irix.gperf: New file.
42661         * lib/iconv_open-osf.gperf: New file.
42662         * m4/iconv_open.m4: New file.
42663         * modules/linebreak (Depends-on): Add iconv_open.
42664         * modules/striconv (Depends-on): Likewise.
42665         * modules/striconveh (Depends-on): Likewise.
42666         * modules/unicodeio (Depends-on): Likewise.
42667         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
42668         (iconv_t)(-1).
42669         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
42670         conversion if cd is (iconv_t)(-1).
42671         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
42672         is not possible.
42673
42674 2007-03-31  Bruno Haible  <bruno@clisp.org>
42675
42676         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42677         work on Solaris either. Protect also second use of "autodetect_jp".
42678
42679 2007-03-31  Bruno Haible  <bruno@clisp.org>
42680
42681         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
42682         the function is not present.
42683
42684 2007-03-31  Bruno Haible  <bruno@clisp.org>
42685
42686         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
42687         the function is not present.
42688
42689 2007-03-31  Bruno Haible  <bruno@clisp.org>
42690
42691         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
42692         a bug in HP-UX iconv_open().
42693
42694 2007-03-31  Bruno Haible  <bruno@clisp.org>
42695
42696         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
42697         (Mathematics <math.h>): New section, add fpieee.
42698         (Input/output <stdio.h>): Add fseterr.
42699         (Mathematics <math.h>): New section, add printf-frexp.
42700         (Container data structures): Add sublist.
42701         (Core language properties): Add fpucw, inline.
42702         (Functions for greatest-width integer types <inttypes.h>): Add
42703         imaxabs, imaxdiv, inttypes.
42704         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
42705         isnanl-nolibm, ldexp.
42706         (Mathematics <math.h>): New section, add printf-frexpl.
42707         (Support for systems lacking POSIX:2001): Add fprintf-posix,
42708         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
42709         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
42710         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
42711         (Unicode string functions): Add unistr/u*-mbtoucr.
42712         (Java): Add javacomp-script, javaexec-script.
42713         (C#): Add csharpcomp-script, csharpexec-script.
42714         (Support for building libraries and executables): Add havelib,
42715         relocatable-*.
42716         (Support for maintaining and releasing projects): Renamed from
42717         'Support for maintaining and release projects'. Add announce-gen.
42718
42719 2007-03-31  Bruno Haible  <bruno@clisp.org>
42720
42721         * README: Talk primarily about git.
42722         (git and CVS): Renamed from CVS.
42723         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
42724         gnulib is available through git.
42725         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
42726
42727 2007-03-30  Bruno Haible  <bruno@clisp.org>
42728
42729         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
42730         * lib/poll_.h: Likewise.
42731         * lib/stat_.h: Likewise.
42732         * lib/sys_time_.h: Likewise.
42733         * lib/sysexit_.h: Likewise.
42734         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
42735         * lib/stdbool_.h: Likewise.
42736         * lib/byteswap_.h: Add double-inclusion guard.
42737
42738 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
42739
42740         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
42741
42742 2007-03-30  Karl Berry  <karl@gnu.org>
42743
42744         * config/srclist-update: double space after USA in the license
42745         substitution, since that's how it's usually (?) written.
42746
42747 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42748
42749         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
42750         reported by Bruno Haible.
42751
42752 2007-03-29  Bruno Haible  <bruno@clisp.org>
42753
42754         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
42755         a bug in AIX iconv().
42756
42757 2007-03-29  Bruno Haible  <bruno@clisp.org>
42758
42759         * modules/ldexpl-tests: New file.
42760         * tests/test-ldexpl.c: New file.
42761
42762 2007-03-29  Bruno Haible  <bruno@clisp.org>
42763
42764         * lib/ldexpl.c: Include fpucw.h.
42765         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
42766         multiplication.
42767         * modules/ldexpl (Depends-on): Add fpucw.
42768
42769 2007-03-29  Bruno Haible  <bruno@clisp.org>
42770
42771         * modules/ldexpl: New file.
42772         * m4/ldexpl.m4: New file.
42773         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
42774         set.
42775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
42776         REPLACE_LDEXPL.
42777         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
42778         REPLACE_LDEXPL.
42779         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42780         gl_FUNC_LDEXPL_WORKS.
42781         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
42782         * modules/mathl (Files): Remove lib/ldexpl.c.
42783         (Depends-on): Add ldexpl.
42784
42785 2007-03-29  Bruno Haible  <bruno@clisp.org>
42786
42787         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
42788
42789 2007-03-29  Bruno Haible  <bruno@clisp.org>
42790
42791         * tests/test-striconveh.c (main): Don't assume that a direct conversion
42792         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
42793         and possibly also HP-UX.
42794         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42795         work on AIX, IRIX, HP-UX, OSF/1.
42796         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42797         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42798         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42799         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42800         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
42801         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42802
42803 2007-03-29  Bruno Haible  <bruno@clisp.org>
42804
42805         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
42806
42807 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42808
42809         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
42810         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
42811
42812 2007-03-29  Eric Blake  <ebb9@byu.net>
42813
42814         * lib/acl-internal.h: Remove redundant include.
42815         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
42816         Cygwin when a file is locked.
42817
42818 2007-03-29  Bruno Haible  <bruno@clisp.org>
42819
42820         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
42821         file.
42822         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
42823
42824 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42825
42826         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
42827         try to remove a parent directory if the child couldn't be removed
42828         (except for the first rmdir, which could fail because the child
42829         doesn't exist).  Problem reported by Jeff Blaine in
42830         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
42831
42832 2007-03-28  Bruno Haible  <bruno@clisp.org>
42833
42834         * lib/striconveh.c (utf8conv_carefully): New function.
42835         (mem_cd_iconveh_internal): Invoke it.
42836
42837 2007-03-28  Bruno Haible  <bruno@clisp.org>
42838
42839         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
42840         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
42841         input.
42842         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
42843         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
42844         unistr/u8-uctomb.
42845
42846 2007-03-28  Bruno Haible  <bruno@clisp.org>
42847
42848         * modules/unistr/u8-mbtoucr: New file.
42849         * lib/unistr/u8-mbtoucr.c: New file.
42850         * modules/unistr/u16-mbtoucr: New file.
42851         * lib/unistr/u16-mbtoucr.c: New file.
42852         * modules/unistr/u16-mbtoucr: New file.
42853         * lib/unistr/u16-mbtoucr.c: New file.
42854         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
42855
42856 2007-03-27  Simon Josefsson  <simon@josefsson.org>
42857             Bruno Haible  <bruno@clisp.org>
42858
42859         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
42860         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
42861         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
42862
42863         * m4/stdio_h.m4: Add stubs for vasprintf too.
42864
42865         * modules/stdio: Support vasprintf in sed command.
42866
42867         * modules/vasprintf: Depend on stdio for prototypes.  Remove
42868         vasprintf.h.  Add stdio module indicator.
42869
42870         * lib/stdio_.h: Declare asprintf and vasprintf, based on
42871         vasprintf.h.
42872
42873         * lib/vasprintf.h: File removed.
42874
42875         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
42876         * lib/vasprintf.c: Ditto.
42877         * lib/xvasprintf.c: Ditto.
42878         * tests/test-vasprintf-posix.c: Ditto.
42879         * tests/test-vasprintf.c: Ditto.
42880
42881 2007-03-27  Bruno Haible  <bruno@clisp.org>
42882
42883         Make vasnprintf multithread-safe.
42884         * lib/vasnprintf.c (decimal_point_char): New function.
42885         (VASNPRINTF): Use it.
42886         Suggested by Simon Josefsson.
42887
42888 2007-03-27  Eric Blake  <ebb9@byu.net>
42889
42890         Support sub-second birthtime on cygwin.
42891         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
42892         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
42893         (get_stat_birthtime): Also work with st_birthtim.
42894
42895 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
42896
42897         * lib/stat-time.h (USE_BIRTHTIME): Remove.
42898         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
42899         (get_stat_birthtime_ns): Do not try to use "spare" fields.
42900         (get_stat_birthtime_ns): Simplify compile-time tests.
42901         (get_stat_birthtime): Change the API to look like
42902         get_stat_mtime etc., except return a negative tv_nsec on error.
42903         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
42904         Don't check for "spare" fields.
42905         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
42906         or for struct stat.st_birthtime, as these tests aren't used.
42907         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
42908
42909 2007-03-27  Bruno Haible  <bruno@clisp.org>
42910
42911         * lib/stat-time.h: Include <sys/stat.h>.
42912
42913 2007-03-27  James Youngman  <jay@gnu.org>
42914
42915         * lib/stat-time.h (get_stat_birthtime): New function for
42916           retrieving st_birthtime as provided by UFS2 (hence *BSD).
42917         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
42918           and its variants.
42919         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
42920         * modules/stat-time-test: New file.
42921         * tests/test-stat-time.c: New test, devised by Bruno Haible.
42922
42923 2007-03-26  Bruno Haible  <bruno@clisp.org>
42924
42925         Better support of signalling NaNs.
42926         * lib/atanl.c: Include isnanl.h.
42927         (atanl): Perform test for NaN at the beginning of the function and
42928         through a call to isnanl.
42929         * lib/cosl.c: Include isnanl.h.
42930         (cosl): Perform test for NaN at the beginning of the function and
42931         through a call to isnanl.
42932         * lib/ldexpl.c: Include isnanl.h.
42933         (ldexpl): Perform test for NaN through a call to isnanl.
42934         * lib/logl.c: Include isnanl.h.
42935         (logl): Perform test for NaN at the beginning of the function and
42936         through a call to isnanl.
42937         * lib/sinl.c: Include isnanl.h.
42938         (sinl): Perform test for NaN at the beginning of the function and
42939         through a call to isnanl.
42940         * lib/sqrtl.c: Include isnanl.h.
42941         (sqrtl): Perform test for NaN at the beginning of the function and
42942         through a call to isnanl.
42943         * lib/tanl.c: Include isnanl.h.
42944         (tanl): Perform test for NaN at the beginning of the function and
42945         through a call to isnanl.
42946         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
42947         * modules/mathl (Depends-on): Add isnanl.
42948
42949 2007-03-26  Eric Blake  <ebb9@byu.net>
42950
42951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
42952         regression in logic sense of previous patch.
42953
42954 2007-03-26  Bruno Haible  <bruno@clisp.org>
42955
42956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
42957         unportable shell command "if ! ...".
42958         Reported by Ralf Wildenhues.
42959
42960 2007-03-25  Bruno Haible  <bruno@clisp.org>
42961
42962         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
42963         <sysexits.h> file, and only add EX_CONFIG.
42964         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
42965         absolute file name and whether it is sufficient. Substitute also
42966         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
42967         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
42968         ABSOLUTE_SYSEXITS_H into sysexits.h.
42969
42970 2007-03-25  Bruno Haible  <bruno@clisp.org>
42971
42972         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
42973         hints is NULL.
42974
42975 2007-03-25  Bruno Haible  <bruno@clisp.org>
42976
42977         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
42978         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
42979
42980 2007-03-25  Bruno Haible  <bruno@clisp.org>
42981
42982         * lib/vasnprintf.c: Include langinfo.h.
42983         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
42984         multithread-safe.
42985         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
42986         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
42987         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42988         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42989         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42990         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42991         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42992         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
42993         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42994         Reported by Simon Josefsson.
42995
42996 2007-03-25  Bruno Haible  <bruno@clisp.org>
42997
42998         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
42999         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
43000         * modules/vasnprintf (Depends-on): Add stdint.
43001
43002 2007-03-25  Bruno Haible  <bruno@clisp.org>
43003
43004         * modules/fpieee: New file.
43005         * m4/fpieee.m4: New file.
43006         * modules/isnan-nolibm (Depends-on): Add fpieee.
43007         * modules/isnanl-nolibm (Depends-on): Add fpieee.
43008         * modules/isnanl (Depends-on): Add fpieee.
43009
43010 2007-03-25  Bruno Haible  <bruno@clisp.org>
43011
43012         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
43013
43014 2007-03-25  Bruno Haible  <bruno@clisp.org>
43015
43016         Avoid test failures on IRIX 6.5.
43017         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
43018         (main): Use it.
43019         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
43020         macros.
43021         (main): Use them.
43022
43023 2007-03-25  Bruno Haible  <bruno@clisp.org>
43024
43025         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
43026         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
43027         exists but doesn't work.
43028         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
43029         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
43030         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
43031         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
43032
43033 2007-03-25  Bruno Haible  <bruno@clisp.org>
43034
43035         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
43036         returns inf. Needed on IRIX 6.5.
43037
43038 2007-03-25  Bruno Haible  <bruno@clisp.org>
43039
43040         * tests/test-frexpl.c: Include isnanl-nolibm.h.
43041         (main): Use isnanl instead of x != x idiom.
43042         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
43043
43044         * tests/test-frexp.c: Include isnan.h.
43045         (main): Use isnan instead of x != x idiom.
43046         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
43047
43048 2007-03-25  Bruno Haible  <bruno@clisp.org>
43049
43050         * tests/test-frexp.c (NaN): New function/macro.
43051         (main): Use it instead of 0.0 / 0.0.
43052         * tests/test-isnan.c (NaN): New function/macro.
43053         (main): Use it instead of 0.0 / 0.0.
43054         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
43055         (test_function): Use it instead of 0.0 / 0.0.
43056         * tests/test-vasprintf-posix.c (NaN): New function/macro.
43057         (test_function): Use it instead of 0.0 / 0.0.
43058         * tests/test-snprintf-posix.h (NaN): New function/macro.
43059         (test_function): Use it instead of 0.0 / 0.0.
43060         * tests/test-sprintf-posix.h (NaN): New function/macro.
43061         (test_function): Use it instead of 0.0 / 0.0.
43062         * tests/test-fprintf-posix.h (NaN): New function/macro.
43063         (test_function): Use it instead of 0.0 / 0.0.
43064         * tests/test-printf-posix.h (NaN): New function/macro.
43065         (test_function): Use it instead of 0.0 / 0.0.
43066
43067         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
43068
43069 2007-03-25  Bruno Haible  <bruno@clisp.org>
43070
43071         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
43072
43073 2007-03-25  Bruno Haible  <bruno@clisp.org>
43074
43075         * lib/regexec.c (merge_state_with_log): Make static.
43076
43077 2007-03-25  Bruno Haible  <bruno@clisp.org>
43078
43079         * lib/trigl.c (kernel_rem_pio2): Make static.
43080
43081 2007-03-25  Bruno Haible  <bruno@clisp.org>
43082
43083         * lib/sincosl.c (sincosl_table): Make static.
43084
43085 2007-03-25  Bruno Haible  <bruno@clisp.org>
43086
43087         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
43088         if the compiler does not support C99.
43089
43090 2007-03-25  Bruno Haible  <bruno@clisp.org>
43091
43092         * modules/time (Makefile.am): Ensure all rule action lines start with a
43093         tab.
43094
43095 2007-03-24  Bruno Haible  <bruno@clisp.org>
43096
43097         * modules/tsearch-tests: New file.
43098         * tests/test-tsearch.sh: New file.
43099         * tests/test-tsearch.c: New file, mostly copied from glibc.
43100
43101         * modules/search-tests: New file.
43102         * tests/test-search.c: New file.
43103
43104         * modules/search: New file.
43105         * lib/search_.h: New file, incorporating lib/tsearch.h.
43106         * m4/search_h.m4: New file.
43107         * lib/tsearch.h: Remove file.
43108         * lib/tsearch.c: Include search.h instead of tsearch.h.
43109         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
43110         HAVE_TSEARCH.
43111         * modules/tsearch (Files): Remove lib/tsearch.h.
43112         (Depends-on): Add search.
43113         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
43114         (Include): Change tsearch.h into search.h.
43115
43116 2007-03-24  Bruno Haible  <bruno@clisp.org>
43117
43118         * modules/fpucw: New file.
43119         * lib/fpucw.h: New file.
43120         * lib/frexp.c: Include fpucw.h.
43121         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
43122         (FUNC): Use them.
43123         * lib/printf-frexp.c: Include fpucw.h.
43124         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
43125         (FUNC): Use them.
43126         * lib/vasnprintf.c: Include fpucw.h.
43127         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
43128         'long double' calculations.
43129         * tests/test-frexpl.c: Include fpucw.h.
43130         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
43131         * tests/test-printf-frexpl.c: Include fpucw.h.
43132         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
43133         * modules/frexpl (Depends-on): Add fpucw.
43134         * modules/printf-frexpl (Depends-on): Likewise.
43135         * modules/fprintf-posix (Depends-on): Likewise.
43136         * modules/snprintf-posix (Depends-on): Likewise.
43137         * modules/sprintf-posix (Depends-on): Likewise.
43138         * modules/vasnprintf-posix (Depends-on): Likewise.
43139         * modules/vasprintf-posix (Depends-on): Likewise.
43140         * modules/vfprintf-posix (Depends-on): Likewise.
43141         * modules/vsnprintf-posix (Depends-on): Likewise.
43142         * modules/vsprintf-posix (Depends-on): Likewise.
43143         * modules/frexpl-tests (Depends-on): Likewise.
43144         * modules/printf-frexpl-tests (Depends-on): Likewise.
43145
43146 2007-03-24  Bruno Haible  <bruno@clisp.org>
43147
43148         * lib/float+.h: New file.
43149         * lib/isnan.c: Include float+.h.
43150         (SIZE): New macro.
43151         (FUNC): Compare only SIZE bytes of the value.
43152         * lib/vasnprintf.c: Include float+.h.
43153         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
43154         SIZEOF_LDBL or SIZEOF_DBL bytes.
43155         * modules/isnan-nolibm (Files): Add lib/float+.h.
43156         * modules/isnanl-nolibm (Files): Add lib/float+.h.
43157         * modules/isnanl (Files): Add lib/float+.h.
43158         * modules/vasnprintf (Files): Add lib/float+.h.
43159
43160 2007-03-24  Bruno Haible  <bruno@clisp.org>
43161
43162         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
43163         include isnanl-nolibm.h.
43164
43165 2007-03-24  Bruno Haible  <bruno@clisp.org>
43166
43167         * tests/test-read-file.c (main): Don't produce spurious output for
43168         expected situations. Make the test fail if it encountered unexpected
43169         results.
43170
43171 2007-03-24  Bruno Haible  <bruno@clisp.org>
43172
43173         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
43174         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
43175
43176 2007-03-24  Bruno Haible  <bruno@clisp.org>
43177
43178         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
43179
43180 2007-03-24  Bruno Haible  <bruno@clisp.org>
43181
43182         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
43183         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
43184
43185         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
43186         * modules/utf8-ucs4: Turn into a symbolic link to module
43187         unistr/u8-mbtouc.
43188
43189         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
43190         utf8-ucs4-unsafe.
43191         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
43192         unistr/u8-mbtouc-unsafe.
43193
43194         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
43195         * modules/utf16-ucs4: Turn into a symbolic link to module
43196         unistr/u16-mbtouc.
43197
43198         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
43199         utf16-ucs4-unsafe.
43200         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
43201         unistr/u16-mbtouc-unsafe.
43202
43203         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
43204         * modules/ucs4-utf8: Turn into a symbolic link to module
43205         unistr/u8-ubtomb.
43206
43207         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
43208         * modules/ucs4-utf16: Turn into a symbolic link to module
43209         unistr/u16-ubtomb.
43210
43211 2007-03-24  Bruno Haible  <bruno@clisp.org>
43212
43213         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
43214         Enable the function only if HAVE_INLINE.
43215         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
43216         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
43217         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
43218         Enable the function only if HAVE_INLINE.
43219         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
43220         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
43221         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
43222         Enable the function only if HAVE_INLINE.
43223         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
43224         Enable the function only if HAVE_INLINE.
43225         * modules/utf8-ucs4: Update.
43226         * modules/utf8-ucs4-unsafe: Update.
43227         * modules/utf16-ucs4: Update.
43228         * modules/utf16-ucs4-unsafe: Update.
43229         * modules/ucs4-utf8: Update.
43230         * modules/ucs4-utf16: Update.
43231
43232 2007-03-24  Bruno Haible  <bruno@clisp.org>
43233
43234         * lib/utf8-ucs4.h: Remove file.
43235         * lib/utf8-ucs4-unsafe.h: Remove file.
43236         * lib/utf16-ucs4.h: Remove file.
43237         * lib/utf16-ucs4-unsafe.h: Remove file.
43238         * lib/ucs4-utf8.h: Remove file.
43239         * lib/ucs4-utf16.h: Remove file.
43240         * lib/unistr.h: Include their previous contents.
43241         * m4/utf-ucs4.m4: Remove file.
43242         * m4/ucs4-utf.m4: Remove file.
43243         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
43244         (Depends-on): Add unistr/base.
43245         (configure.ac): Remove gl_UTF_UCS4.
43246         (Makefile.am): Update.
43247         (Include): Change to unistr.h.
43248         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
43249         (Depends-on): Add unistr/base.
43250         (configure.ac): Remove gl_UTF_UCS4.
43251         (Makefile.am): Update.
43252         (Include): Change to unistr.h.
43253         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
43254         (Depends-on): Add unistr/base.
43255         (configure.ac): Remove gl_UTF_UCS4.
43256         (Makefile.am): Update.
43257         (Include): Change to unistr.h.
43258         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
43259         (Depends-on): Add unistr/base.
43260         (configure.ac): Remove gl_UTF_UCS4.
43261         (Makefile.am): Update.
43262         (Include): Change to unistr.h.
43263         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
43264         (Depends-on): Add unistr/base.
43265         (configure.ac): Remove gl_UCS4_UTF.
43266         (Makefile.am): Update.
43267         (Include): Change to unistr.h.
43268         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
43269         (Depends-on): Add unistr/base.
43270         (configure.ac): Remove gl_UCS4_UTF.
43271         (Makefile.am): Update.
43272         (Include): Change to unistr.h.
43273         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
43274         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
43275         utf8-ucs4-unsafe.h.
43276         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
43277         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
43278         utf16-ucs4-unsafe.h.
43279         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
43280         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
43281         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
43282         * lib/unistr/u8-strchr.c: Likewise.
43283         * lib/unistr/u8-strrchr.c: Likewise.
43284         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
43285         * lib/unistr/u16-strchr.c: Likewise.
43286         * lib/unistr/u16-strrchr.c: Likewise.
43287         * lib/striconveh.c: Update.
43288         * lib/linebreak.c: Update.
43289
43290 2007-03-24  Bruno Haible  <bruno@clisp.org>
43291
43292         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
43293         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
43294
43295 2007-03-22  Bruno Haible  <bruno@clisp.org>
43296
43297         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
43298
43299 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
43300
43301         * MODULES.html.sh (File system functions): New module write-any-file.
43302         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
43303         * m4/write-any-file.m4: New files.
43304
43305 2007-03-23  Eric Blake  <ebb9@byu.net>
43306
43307         * gnulib-tool: Rearrange space-tab sequences, since some editors
43308         like to eat them.
43309
43310 2007-03-23  Eric Blake  <ebb9@byu.net>
43311
43312         * lib/version-etc.c (version_etc_va): Update license wording to
43313         be more concise.  Recommended by Richard Stallman.
43314
43315 2007-03-22  Bruno Haible  <bruno@clisp.org>
43316
43317         * lib/poll.c (MSG_PEEK): New fallback definition.
43318
43319 2007-03-22  Bruno Haible  <bruno@clisp.org>
43320
43321         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
43322         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
43323         (main): Update.
43324         Fixes a compilation error on BeOS.
43325
43326 2007-03-22  Bruno Haible  <bruno@clisp.org>
43327
43328         * modules/frexpl-tests: New file.
43329         * tests/test-frexpl.c: New file.
43330
43331         * modules/frexpl: New file.
43332         * m4/frexpl.m4: New file.
43333         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
43334         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
43335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
43336         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
43337         (Depends-on): Add frexpl. Remove isnanl-nolibm.
43338         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
43339
43340 2007-03-22  Bruno Haible  <bruno@clisp.org>
43341
43342         * lib/frexpl.c: Share code with lib/frexp.c.
43343         * modules/mathl (Files): Add lib/frexp.c.
43344         (Depends-on): Add isnanl-nolibm.
43345
43346 2007-03-22  Bruno Haible  <bruno@clisp.org>
43347
43348         * modules/printf-frexp (Files): Add m4/frexp.m4.
43349         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
43350         only if the found frexp function actually works.
43351
43352 2007-03-22  Bruno Haible  <bruno@clisp.org>
43353
43354         * lib/frexp.c: Remove older implementation that uses divisions.
43355
43356 2007-03-21  Bruno Haible  <bruno@clisp.org>
43357
43358         * modules/frexp-tests: New file.
43359         * tests/test-frexp.c: New file.
43360
43361         * modules/frexp: New file.
43362         * lib/frexp.c: New file.
43363         * m4/frexp.m4: New file.
43364         * lib/math_.h (frexp): New declaration.
43365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
43366         REPLACE_FREXP.
43367         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
43368
43369 2007-03-21  Bruno Haible  <bruno@clisp.org>
43370
43371         * modules/isnanl-tests: New file.
43372         * tests/test-isnanl.c: New file.
43373
43374         * modules/isnanl: New file.
43375         * lib/isnanl.h: New file.
43376         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
43377         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
43378         gl_FUNC_ISNANL_WORKS.
43379         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
43380         New macros.
43381
43382 2007-03-21  Bruno Haible  <bruno@clisp.org>
43383
43384         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
43385         lib/isnanl.h.
43386         (Include): Update.
43387         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
43388         * lib/vasnprintf.c: Update.
43389         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
43390         tests/test-isnanl.h, remove tests/test-isnanl.c.
43391         (Makefile.am): Update.
43392         * tests/test-isnanl-nolibm.c: New file.
43393         * tests/test-isnanl.h: New file.
43394         * tests/test-isnanl.c: Remove file.
43395
43396 2007-03-21  Jim Meyering  <jim@meyering.net>
43397
43398         When trying to open ".", treat ESTALE like EACCES.
43399         * lib/savewd.c (savewd_save): Resort to forking not just upon
43400         failure with EACCES, but also when errno is ESTALE.
43401
43402 2007-03-20  Bruno Haible  <bruno@clisp.org>
43403
43404         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
43405         Needed on AIX 5.1. Reported by Matthew Woehlke.
43406
43407 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43408
43409         Suggestions by Bruno Haible:
43410         * lib/acl-internal.h: Include "gettext.h" rather than rolling
43411         our own.
43412         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
43413         * modules/acl (Depends-on): Add gettext.
43414
43415 2007-03-19  Bruno Haible  <bruno@clisp.org>
43416
43417         * modules/iconvme: Remove file.
43418         * lib/iconvme.h: Remove file.
43419         * lib/iconvme.c: Remove file.
43420         * m4/iconvme.m4: Remove file.
43421
43422 2007-03-19  Bruno Haible  <bruno@clisp.org>
43423
43424         * doc/relocatable-maint.texi: Break long shell script line.
43425         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43426
43427 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43428
43429         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
43430         handle file_has_acl.
43431         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
43432         * lib/acl.c: Move header inclusions and related macro defns into
43433         lib/acl-internal.h.
43434         (S_ISLNK): Remove defn, since that's now done for us.
43435         (file_has_acl): Move to lib/file-has-acl.c.
43436         Call acl_trivial if available.  This is the crucial part of the fix.
43437         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
43438         shared within the library.  Rewrite a bit, partly to make it compatible
43439         with the GNU coding style.
43440         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
43441         Remove unnecessary double-quotes.
43442         Don't test for acl_to_text; the build will catch that.
43443         Replace acl_entries if it doesn't exist and it is needed.
43444         Check for -lsec and acl_trivial (as used on Solaris 10).
43445         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
43446         lib/file-has-acl.c.
43447         (Depends-on): Add sys_stat, for S_ISLNK.
43448
43449 2007-03-19  Ben Pfaff  <blp@gnu.org>
43450
43451         * doc/gnulib.texi: Fix typos.
43452         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43453
43454 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43455
43456         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
43457         If size is zero here, buf must be zero.
43458
43459 2007-03-19  Simon Josefsson  <simon@josefsson.org>
43460
43461         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
43462         <bruno@clisp.org>.
43463
43464 2007-03-18  Bruno Haible  <bruno@clisp.org>
43465
43466         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
43467         Suggested by Eric Blake.
43468
43469 2007-03-18  Ben Pfaff  <blp@gnu.org>
43470
43471         * doc/relocatable.texi: Recommend using as prefix a directory
43472         that does not exist and will never be created.  Based on
43473         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
43474         and others.
43475
43476 2007-03-17  Bruno Haible  <bruno@clisp.org>
43477
43478         * lib/fchownat.c: Include lchown.h.
43479
43480 2007-03-17  Bruno Haible  <bruno@clisp.org>
43481
43482         Fix endless loop when the given allocated size was > INT_MAX.
43483         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
43484         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
43485         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
43486         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
43487         * lib/sprintf.c (sprintf): Likewise.
43488
43489 2007-03-17  Bruno Haible  <bruno@clisp.org>
43490
43491         * tests/test-argp-2.sh (func_compare): Output a context diff.
43492
43493 2007-03-17  Bruno Haible  <bruno@clisp.org>
43494
43495         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
43496         locale's decimal-point character.
43497
43498 2007-03-17  Bruno Haible  <bruno@clisp.org>
43499
43500         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
43501         before comparing it. Needed because on some platforms (e.g. x86) a
43502         'long double' occupies less bytes than sizeof (long double).
43503
43504 2007-03-17  Bruno Haible  <bruno@clisp.org>
43505
43506         * tests/test-crc.c (main): Make printf statements 64-bit clean.
43507         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
43508         * tests/test-getaddrinfo.c (simple): Likewise.
43509         * tests/test-read-file.c (main): Likewise.
43510
43511 2007-03-17  Bruno Haible  <bruno@clisp.org>
43512
43513         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
43514
43515 2007-03-17  Bruno Haible  <bruno@clisp.org>
43516
43517         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
43518         unused variable.
43519
43520 2007-03-17  Bruno Haible  <bruno@clisp.org>
43521
43522         * tests/test-c-strcasecmp.c: Include c-strcase.h.
43523         * tests/test-c-strncasecmp.c: Likewise.
43524
43525 2007-03-17  Bruno Haible  <bruno@clisp.org>
43526
43527         * modules/stdlib (Depends-on): Add unistd.
43528         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
43529         Needed for MacOS X 10.3.
43530
43531 2007-03-17  Bruno Haible  <bruno@clisp.org>
43532
43533         * lib/unistr/u-strdup.h: Include <stdlib.h>.
43534
43535 2007-03-17  Bruno Haible  <bruno@clisp.org>
43536
43537         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
43538
43539 2007-03-17  Bruno Haible  <bruno@clisp.org>
43540
43541         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
43542         to reflect files copied from gnulib (with or without modifications).
43543         Suggested by Jim Meyering.
43544
43545 2007-03-17  Eric Blake  <ebb9@byu.net>
43546
43547         * NEWS: Document stdlib change from 2007-02-18.
43548
43549 2007-03-17  Jim Meyering  <jim@meyering.net>
43550
43551         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
43552         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
43553         someone uses a name containing shell meta-characters.
43554         Reported by Alfred M. Szmidt.
43555
43556         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
43557
43558 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43559
43560         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
43561         and copy gettext configuration files only if configure.ac contains
43562         a use of AM_GNU_GETTEXT_VERSION.
43563
43564 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43565
43566         * build-aux/bootstrap (gnulib_name): New variable.
43567         (gnulib_tool_options): Use it.
43568
43569 2007-03-13  Simon Josefsson  <simon@josefsson.org>
43570
43571         * tests/test-des.c: Use new namespace.
43572
43573 2007-03-15  Bruno Haible  <bruno@clisp.org>
43574
43575         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
43576         Reported by James Youngman <jay@gnu.org>.
43577
43578 2007-03-15  Bruno Haible  <bruno@clisp.org>
43579
43580         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
43581         declared prototype. Needed with cc on OSF/1 5.1.
43582
43583 2007-03-15  Bruno Haible  <bruno@clisp.org>
43584
43585         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
43586         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
43587         (struct gl_list_implementation): Add dispose_fn argument to the
43588         'create_empty', 'create' methods.
43589         (struct gl_list_impl_base): Add field 'dispose_fn'.
43590         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
43591         argument.
43592         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
43593         dispose_fn argument.
43594         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
43595         dispose_fn on the dropped values.
43596         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
43597         dispose_fn argument.
43598         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
43599         dropped values.
43600         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
43601         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43602         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
43603         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43604         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
43605         argument.
43606         (gl_tree_list_free): Call dispose_fn on the dropped values.
43607         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
43608         the dropped values.
43609         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
43610         Add dispose_fn argument.
43611         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
43612         Call dispose_fn on the dropped values.
43613         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
43614         Add dispose_fn argument.
43615         (gl_sublist_create): Initialize the 'dispose_fn' field.
43616         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
43617         * tests/test-array_list.c (main): Update.
43618         * tests/test-carray_list.c (main): Update.
43619         * tests/test-avltree_list.c (main): Update.
43620         * tests/test-rbtree_list.c (main): Update.
43621         * tests/test-avltreehash_list.c (main): Update.
43622         * tests/test-rbtreehash_list.c (main): Update.
43623         * tests/test-linked_list.c (main): Update.
43624         * tests/test-linkedhash_list.c (main): Update.
43625         * tests/test-array_oset.c (main): Update.
43626
43627 2007-03-15  Bruno Haible  <bruno@clisp.org>
43628
43629         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
43630         (gl_oset_create_empty): Add dispose_fn argument.
43631         (struct gl_oset_implementation): Add dispose_fn argument to
43632         'create_empty' method.
43633         (struct gl_oset_impl_base): Add dispose_fn field.
43634         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
43635         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
43636         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
43637         values.
43638         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
43639         (gl_tree_oset_free): Call dispose_fn on the dropped values.
43640         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43641         dropped value.
43642         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43643         dropped value.
43644         * tests/test-array_oset.c (main): Update.
43645         * tests/test-avltree_oset.c (main): Update.
43646         * tests/test-rbtree_oset.c (main): Update.
43647         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
43648
43649 2007-03-13  Bruno Haible  <bruno@clisp.org>
43650
43651         * tests/test-stdbool.c (i): Update after last patch.
43652
43653 2007-03-12  Bruno Haible  <bruno@clisp.org>
43654
43655         * lib/quotearg.c: Include <wctype.h> early, before the definition of
43656         the iswprint macro. Needed on Solaris 2.5.1.
43657
43658 2007-03-12  Bruno Haible  <bruno@clisp.org>
43659
43660         * tests/test-printf-frexp.c (main): Declare x as volatile.
43661
43662 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43663
43664         * doc/gnulib.texi (Build robot for gnulib): New section.
43665
43666 2007-03-12  Jim Meyering  <jim@meyering.net>
43667
43668         * build-aux/bootstrap: New file.
43669         * build-aux/bootstrap.conf: New file, from coreutils.
43670
43671 2007-03-11  Bruno Haible  <bruno@clisp.org>
43672
43673         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
43674
43675 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43676
43677         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
43678         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
43679         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
43680
43681 2007-03-11  Bruno Haible  <bruno@clisp.org>
43682
43683         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
43684         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
43685
43686 2007-03-11  Bruno Haible  <bruno@clisp.org>
43687
43688         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
43689         formula. Needed for SunPRO C 5.0.
43690
43691 2007-03-11  Bruno Haible  <bruno@clisp.org>
43692
43693         * modules/long-options (Depends-on): Add getopt.
43694
43695 2007-03-11  Bruno Haible  <bruno@clisp.org>
43696
43697         * modules/modechange (Depends-on): Add stdbool.
43698
43699 2007-03-11  Bruno Haible  <bruno@clisp.org>
43700
43701         * modules/i-ring (Depends-on): Add stdbool.
43702
43703 2007-03-11  Bruno Haible  <bruno@clisp.org>
43704
43705         * modules/gc-des (Depends-on): Add stdbool.
43706
43707 2007-03-11  Bruno Haible  <bruno@clisp.org>
43708
43709         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
43710
43711 2007-03-11  Bruno Haible  <bruno@clisp.org>
43712
43713         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
43714
43715 2007-03-11  Bruno Haible  <bruno@clisp.org>
43716
43717         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
43718
43719 2007-03-11  Bruno Haible  <bruno@clisp.org>
43720
43721         * lib/vasnprintf.c (sprintf): Undefine.
43722
43723 2007-03-11  Bruno Haible  <bruno@clisp.org>
43724
43725         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
43726         initializers in SunPRO C and Compaq C compilers.
43727
43728 2007-03-11  Bruno Haible  <bruno@clisp.org>
43729
43730         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
43731         decrementing code ANSI C compliant.
43732
43733 2007-03-11  Bruno Haible  <bruno@clisp.org>
43734
43735         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
43736         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
43737
43738 2007-03-11  Bruno Haible  <bruno@clisp.org>
43739
43740         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
43741         <stdbool.h> substitute doesn't pass.
43742
43743 2007-03-11  Bruno Haible  <bruno@clisp.org>
43744
43745         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
43746
43747 2007-03-11  Bruno Haible  <bruno@clisp.org>
43748
43749         * gnulib-tool (func_create_megatestdir): Create also an autobuild
43750         script, for submission to autobuild.josefsson.org.
43751
43752 2007-03-10  Bruno Haible  <bruno@clisp.org>
43753
43754         * modules/canonicalize-lgpl-tests: New file.
43755         * tests/test-canonicalize-lgpl.sh: New file.
43756         * tests/test-canonicalize-lgpl.c: New file.
43757
43758         * modules/c-strcase-tests: New file.
43759         * tests/test-c-strcase.sh: New file.
43760         * tests/test-c-strcasecmp.c: New file.
43761         * tests/test-c-strncasecmp.c: New file.
43762
43763         * modules/atexit-tests: New file.
43764         * tests/test-atexit.sh: New file.
43765         * tests/test-atexit.c: New file.
43766
43767 2007-03-10  Bruno Haible  <bruno@clisp.org>
43768
43769         * tests/test-binary-io.sh: Use temporary filenames that are not so
43770         likely to clash with those of other tests (in a parallel make).
43771         * tests/test-binary-io.c: Likewise.
43772
43773 2007-03-10  Bruno Haible  <bruno@clisp.org>
43774
43775         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
43776         fallback; use #error instead.
43777         Suggested by Simon Josefsson.
43778
43779 2007-03-10  Bruno Haible  <bruno@clisp.org>
43780
43781         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
43782         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
43783         first and the last.
43784
43785 2007-03-10  Bruno Haible  <bruno@clisp.org>
43786
43787         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
43788
43789 2007-03-10  Bruno Haible  <bruno@clisp.org>
43790
43791         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
43792         "make distcheck".
43793         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
43794         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
43795         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
43796
43797 2007-03-10  Bruno Haible  <bruno@clisp.org>
43798
43799         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
43800         variable.
43801         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
43802         variable.
43803
43804 2007-03-09  Eric Blake  <ebb9@byu.net>
43805         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
43806
43807         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
43808         types are not being provided by gnulib.
43809         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
43810         types are supported.
43811
43812 2007-03-10  Bruno Haible  <bruno@clisp.org>
43813
43814         * lib/stdio_.h (__attribute__): New macro.
43815         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
43816         vsprintf): Specify __attribute__ __format__ for GCC.
43817         Suggested by Eric Blake.
43818
43819 2007-03-09  Bruno Haible  <bruno@clisp.org>
43820
43821         * modules/printf-posix-tests: New file.
43822         * tests/test-printf-posix.sh: New file.
43823         * tests/test-printf-posix.c: New file.
43824
43825         * modules/printf-posix: New file.
43826         * lib/printf.c: New file.
43827         * m4/printf-posix-rpl.m4: New file.
43828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
43829         REPLACE_PRINTF.
43830         * lib/stdio_.h (printf): New declaration.
43831         (format, __format__, ____printf____, ____scanf____, ____strftime____,
43832         ____strfmon____): New macros.
43833         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
43834         REPLACE_PRINTF.
43835
43836 2007-03-09  Bruno Haible  <bruno@clisp.org>
43837
43838         * tests/test-vasnprintf-posix2.sh: New file.
43839         * tests/test-vasnprintf-posix2.c: New file.
43840         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
43841         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43842         (Makefile.am): Activate test-vasnprintf-posix2.sh.
43843
43844         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
43845         a locale dependent decimal point, rather than always '.'.
43846
43847 2007-03-09  Eric Blake  <ebb9@byu.net>
43848
43849         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
43850         spite of platforms like Tandem/NSK that define it to -1.
43851
43852 2007-03-08  Bruno Haible  <bruno@clisp.org>
43853
43854         * modules/vprintf-posix-tests: New file.
43855         * tests/test-vprintf-posix.sh: New file.
43856         * tests/test-vprintf-posix.c: New file.
43857         * tests/test-printf-posix.h: New file.
43858
43859         * modules/vprintf-posix: New file.
43860         * lib/vprintf.c: New file.
43861         * m4/vprintf-posix.m4: New file.
43862         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
43863         REPLACE_VPRINTF.
43864         * lib/stdio_.h (vprintf): New declaration.
43865         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
43866         REPLACE_VPRINTF.
43867
43868 2007-03-08  Bruno Haible  <bruno@clisp.org>
43869
43870         * modules/fprintf-posix-tests: New file.
43871         * tests/test-fprintf-posix.sh: New file.
43872         * tests/test-fprintf-posix.c: New file.
43873
43874         * modules/fprintf-posix: New file.
43875         * lib/fprintf.c: New file.
43876         * m4/fprintf-posix.m4: New file.
43877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
43878         REPLACE_FPRINTF.
43879         * lib/stdio_.h (fprintf): New declaration.
43880         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
43881         REPLACE_FPRINTF.
43882
43883 2007-03-08  Bruno Haible  <bruno@clisp.org>
43884
43885         * modules/vfprintf-posix-tests: New file.
43886         * tests/test-vfprintf-posix.sh: New file.
43887         * tests/test-vfprintf-posix.c: New file.
43888         * tests/test-fprintf-posix.h: New file.
43889         * tests/test-fprintf-posix.out: New file.
43890
43891         * modules/vfprintf-posix: New file.
43892         * lib/vfprintf.c: New file.
43893         * m4/vfprintf-posix.m4: New file.
43894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
43895         REPLACE_VFPRINTF.
43896         * lib/stdio_.h (vfprintf): New declaration.
43897         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
43898         REPLACE_VFPRINTF.
43899
43900 2007-03-08  Bruno Haible  <bruno@clisp.org>
43901
43902         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
43903
43904 2007-03-08  Bruno Haible  <bruno@clisp.org>
43905
43906         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
43907         instead of 'expr' invocations.
43908         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43909         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43910         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43911         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43912         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43913         Suggested by Paul Eggert.
43914
43915 2007-03-08  Bruno Haible  <bruno@clisp.org>
43916
43917         * modules/fseterr-tests: New file.
43918         * tests/test-fseterr.c: New file.
43919
43920         * modules/fseterr: New file.
43921         * lib/fseterr.h: New file.
43922         * lib/fseterr.c: New file.
43923
43924 2007-03-08  Bruno Haible  <bruno@clisp.org>
43925
43926         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
43927         * lib/getopt_.h: Likewise.
43928         * lib/mbswidth.h: Likewise.
43929         * lib/setenv.h: Likewise.
43930         * lib/vasnprintf.h: Likewise.
43931         * lib/vasprintf.h: Likewise.
43932         * lib/verror.h: Likewise.
43933         * lib/xsetenv.h: Likewise.
43934         * lib/xvasprintf.h: Likewise.
43935
43936 2007-03-08  Jim Meyering  <jim@meyering.net>
43937
43938         * users.txt: Add parted.
43939
43940         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
43941
43942 2007-03-07  Bruno Haible  <bruno@clisp.org>
43943
43944         * m4/printf.m4: Make the shell script snippets copy&pastable.
43945
43946 2007-03-02  Bruno Haible  <bruno@clisp.org>
43947
43948         * lib/netinet_in_.h: New file.
43949         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
43950         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
43951         * modules/netinet_in (Files): Add lib/netinet_in_.h.
43952         (Depends-on): Add absolute-header.
43953         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
43954         into netinet/in.h.
43955
43956 2007-03-03  Bruno Haible  <bruno@clisp.org>
43957
43958         * lib/sys_select_.h: New file.
43959         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
43960         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
43961         * modules/sys_select (Files): Add lib/sys_select_.h.
43962         (Depends-on): Add absolute-header.
43963         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
43964         into sys/select.h.
43965
43966 2007-03-02  Bruno Haible  <bruno@clisp.org>
43967
43968         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
43969         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
43970         values.
43971         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
43972         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
43973         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
43974         * modules/sys_socket (Depends-on): Add absolute-header.
43975         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
43976         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
43977         (Include): Remove requirement of inclusion of <sys/types.h>.
43978
43979 2007-03-02  Bruno Haible  <bruno@clisp.org>
43980
43981         * lib/byteswap_.h (bswap_32): Fix formula.
43982
43983 2007-03-06  Bruno Haible  <bruno@clisp.org>
43984
43985         * modules/sprintf-posix-tests: New file.
43986         * tests/test-sprintf-posix.c: New file.
43987
43988         * modules/sprintf-posix: New file.
43989         * lib/sprintf.c: New file.
43990         * m4/sprintf-posix.m4: New file.
43991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
43992         REPLACE_SPRINTF.
43993         * lib/stdio_.h (sprintf): New declaration.
43994         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
43995         REPLACE_SPRINTF.
43996
43997 2007-03-06  Bruno Haible  <bruno@clisp.org>
43998
43999         * modules/vsprintf-posix-tests: New file.
44000         * tests/test-vsprintf-posix.c: New file.
44001         * tests/test-sprintf-posix.h: New file.
44002
44003         * modules/vsprintf-posix: New file.
44004         * lib/vsprintf.c: New file.
44005         * m4/vsprintf-posix.m4: New file.
44006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
44007         REPLACE_VSPRINTF.
44008         * lib/stdio_.h (vsprintf): New declaration.
44009         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
44010         REPLACE_VSPRINTF.
44011
44012 2007-03-06  Bruno Haible  <bruno@clisp.org>
44013
44014         * modules/vsnprintf (Depend-on): Remove minmax.
44015
44016 2007-03-06  Bruno Haible  <bruno@clisp.org>
44017
44018         * modules/snprintf-posix-tests: New file.
44019         * tests/test-snprintf-posix.c: New file.
44020
44021         * modules/snprintf-posix: New file.
44022         * m4/snprintf-posix.m4: New file.
44023         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
44024         gl_FUNC_SNPRINTF.
44025         (gl_FUNC_SNPRINTF): Invoke it.
44026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
44027         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
44028         is set.
44029         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
44030
44031 2007-03-06  Bruno Haible  <bruno@clisp.org>
44032
44033         * modules/vsnprintf-posix-tests: New file.
44034         * tests/test-vsnprintf-posix.c: New file.
44035         * tests/test-snprintf-posix.h: New file.
44036
44037         * modules/vsnprintf-posix: New file.
44038         * m4/vsnprintf-posix.m4: New file.
44039         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
44040         gl_FUNC_VSNPRINTF.
44041         (gl_FUNC_VSNPRINTF): Invoke it.
44042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
44043         * lib/stdio_.h (vsnprintf): Define as a replacement if
44044         REPLACE_VSNPRINTF is set.
44045         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
44046
44047 2007-03-06  Bruno Haible  <bruno@clisp.org>
44048
44049         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
44050         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
44051
44052 2007-03-06  Bruno Haible  <bruno@clisp.org>
44053
44054         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
44055         (asinl): Declare also if HAVE_DECL_ASINL is set.
44056         (atanl): Declare also if HAVE_DECL_ATANL is set.
44057         (ceill): Declare also if HAVE_DECL_CEILL is set.
44058         (cosl): Declare also if HAVE_DECL_COSL is set.
44059         (expl): Declare also if HAVE_DECL_EXPL is set.
44060         (floorl): Declare also if HAVE_DECL_FLOORL is set.
44061         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
44062         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
44063         (logl): Declare also if HAVE_DECL_LOGL is set.
44064         (sinl): Declare also if HAVE_DECL_SINL is set.
44065         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
44066         (tanl): Declare also if HAVE_DECL_TANL is set.
44067         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
44068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
44069         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
44070         declaration of frexpl, ldexpl.
44071         * modules/printf-frexpl (Depends-on): Add math.
44072         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
44073
44074 2007-03-05  Bruno Haible  <bruno@clisp.org>
44075
44076         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
44077         frexpl and ldexpl are declared.
44078         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
44079
44080 2007-03-05  Bruno Haible  <bruno@clisp.org>
44081
44082         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
44083         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
44084
44085 2007-03-05  Bruno Haible  <bruno@clisp.org>
44086
44087         * lib/stdio_.h: Include <stddef.h>.
44088
44089 2007-03-05  Bruno Haible  <bruno@clisp.org>
44090
44091         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
44092
44093 2007-03-05  Bruno Haible  <bruno@clisp.org>
44094
44095         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
44096         NetBSD 4, from Ralf Wildenhues.
44097
44098 2007-03-04  Bruno Haible  <bruno@clisp.org>
44099
44100         * lib/vasprintf.h: Update #if logic for the case when the functions
44101         exist but are overridden.
44102
44103 2007-03-04  Bruno Haible  <bruno@clisp.org>
44104
44105         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
44106         implementations: glibc-2.4 and MacOS X 10.3.
44107         * tests/test-vasnprintf-posix.c (test_function): Test also the case
44108         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
44109         * tests/test-vasprintf-posix.c (test_function): Likewise.
44110
44111 2007-03-04  Bruno Haible  <bruno@clisp.org>
44112
44113         * modules/vasprintf-posix-tests: New file.
44114         * tests/test-vasprintf-posix.c: New file.
44115
44116         * modules/vasprintf-posix: New file.
44117         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
44118         defined.
44119         * m4/vasprintf-posix.m4: New file.
44120         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
44121         gl_FUNC_VASPRINTF.
44122         (gl_FUNC_VASPRINTF): Invoke it.
44123         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
44124         here.
44125         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
44126
44127 2007-03-04  Bruno Haible  <bruno@clisp.org>
44128
44129         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
44130         REPLACE_GETTIMEOFDAY.
44131         * modules/sys_time (Makefile.am): Likewise.
44132         * m4/sys_time_h.m4: Likewise.
44133         * m4/gettimeofday.m4: Likewise.
44134
44135 2007-03-04  Bruno Haible  <bruno@clisp.org>
44136
44137         * modules/vasnprintf-posix-tests: New file.
44138         * tests/test-vasnprintf-posix.c: New file.
44139
44140         * modules/vasnprintf-posix: New file.
44141         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
44142         printf-frexpl.h.
44143         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
44144         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
44145         REPLACE_VASNPRINTF is defined.
44146         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
44147         gl_FUNC_VASNPRINTF.
44148         (gl_FUNC_VASNPRINTF): Invoke it.
44149         * m4/vasnprintf-posix.m4: New file.
44150         * m4/printf.m4: New file.
44151
44152 2007-03-04  Bruno Haible  <bruno@clisp.org>
44153
44154         Compile progreloc.c only if --enable-relocatable is specified.
44155         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
44156         if --enable-relocatable was specified.
44157         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
44158         lib_SOURCES.
44159
44160 2007-03-04  Jim Meyering  <jim@meyering.net>
44161
44162         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
44163         Use it consistently, rather than enumerating errno constants.
44164
44165 2007-03-04  Bruno Haible  <bruno@clisp.org>
44166
44167         * modules/xvasprintf-tests: New file.
44168         * tests/test-xvasprintf.c: New file.
44169
44170         * modules/vasprintf-tests: New file.
44171         * tests/test-vasprintf.c: New file.
44172
44173         * modules/vasnprintf-tests: New file.
44174         * tests/test-vasnprintf.c: New file.
44175
44176         * modules/vsnprintf-tests: New file.
44177         * tests/test-vsnprintf.c: New file.
44178
44179         * modules/snprintf-tests: New file.
44180         * tests/test-snprintf.c: New file.
44181
44182 2007-03-04  Bruno Haible  <bruno@clisp.org>
44183
44184         Compile relocatable.c only if --enable-relocatable is specified.
44185         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
44186         gl_RELOCATABLE_LIBRARY.
44187         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
44188         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
44189         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
44190         gl_RELOCATABLE_LIBRARY.
44191         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
44192         (Makefile.am): Remove lib_SOURCES.
44193         * modules/relocatable-lib-lgpl (configure.ac): Invoke
44194         gl_RELOCATABLE_LIBRARY.
44195         (Makefile.am): Remove lib_SOURCES.
44196         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
44197         always.
44198         * modules/relocatable-prog-wrapper (configure.ac): Invoke
44199         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
44200
44201 2007-03-04  Bruno Haible  <bruno@clisp.org>
44202
44203         * modules/argmatch-tests: New file.
44204         * tests/test-argmatch.c: New file.
44205
44206         * tests/test-allocsa.c (main): Halve the number of loop runs.
44207
44208         * modules/alloca-opt-tests: New file.
44209         * tests/test-alloca-opt.c: New file.
44210
44211 2007-03-04  Jim Meyering  <jim@meyering.net>
44212
44213         Work around difference between Linux ACLs and Solaris 10 ZFS.
44214         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
44215         for EINVAL.
44216
44217 2007-03-03  Bruno Haible  <bruno@clisp.org>
44218
44219         * modules/relocatable-prog (Depends-on): Add back progreloc's
44220         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
44221
44222 2007-03-03  Bruno Haible  <bruno@clisp.org>
44223
44224         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
44225         * modules/relocatable-lib: New file.
44226
44227 2007-03-03  Bruno Haible  <bruno@clisp.org>
44228
44229         * modules/relocatable-prog: Renamed from modules/relocatable.
44230         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
44231
44232 2007-03-03  Bruno Haible  <bruno@clisp.org>
44233
44234         * modules/relocatable-script (Files): Add doc/relocatable.texi,
44235         m4/relocatable-lib.m4.
44236         (Depends-on): Remove 'relocatable'.
44237         (configure.ac): Add gl_RELOCATABLE_NOP.
44238
44239 2007-03-03  Bruno Haible  <bruno@clisp.org>
44240
44241         * modules/relocatable-prog-wrapper: New file.
44242         * modules/relocatable (Depends-on): Add it. Remove all other
44243         dependencies except progname.
44244         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
44245
44246         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
44247         (gl_FUNC_STRERROR): Nop.
44248         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
44249
44250         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
44251         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
44252
44253         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
44254         (gl_FUNC_READLINK): Update.
44255
44256         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
44257
44258 2007-03-03  Bruno Haible  <bruno@clisp.org>
44259
44260         * lib/xreadlink.c: Include <unistd.h> unconditionally.
44261         * modules/xreadlink (Depends-on): Add unistd.
44262         * modules/xreadlink-with-size (Depends-on): Likewise.
44263
44264 2007-03-03  Bruno Haible  <bruno@clisp.org>
44265
44266         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
44267         extracted from gt_FUNC_SETENV.
44268         (gt_FUNC_SETENV): Remove macro.
44269         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
44270         remove gt_FUNC_SETENV.
44271
44272 2007-03-03  Bruno Haible  <bruno@clisp.org>
44273
44274         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
44275         ENABLE_RELOCATABLE here.
44276         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
44277
44278 2007-03-03  Bruno Haible  <bruno@clisp.org>
44279
44280         * modules/rbtreehash-list-tests (Depends-on): Add progname.
44281         * tests/test-rbtreehash_list.c: Include progname.h.
44282         (main): Call set_program_name.
44283
44284         * modules/rbtree-oset-tests (Depends-on): Add progname.
44285         * tests/test-rbtree_oset.c: Include progname.h.
44286         (main): Call set_program_name.
44287
44288         * modules/rbtree-list-tests (Depends-on): Add progname.
44289         * tests/test-rbtree_list.c: Include progname.h.
44290         (main): Call set_program_name.
44291
44292         * modules/linked-list-tests (Depends-on): Add progname.
44293         * tests/test-linked_list.c: Include progname.h.
44294         (main): Call set_program_name.
44295
44296 2007-03-03  Bruno Haible  <bruno@clisp.org>
44297
44298         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
44299         All uses of __restrict changed to _Restrict_.
44300         * lib/glob_.h (__restrict): Remove macro.
44301
44302 2007-03-02  Bruno Haible  <bruno@clisp.org>
44303
44304         * modules/gettext (configure.ac): Require gettext infrastructure
44305         from version 0.16.1.
44306
44307 2007-03-02  Bruno Haible  <bruno@clisp.org>
44308
44309         * modules/linkedhash-list-tests (Depends-on): Add progname.
44310         * tests/test-linkedhash_list.c: Include progname.h.
44311         (main): Call set_program_name.
44312
44313         * modules/carray-list-tests (Depends-on): Add progname.
44314         * tests/test-carray_list.c: Include progname.h.
44315         (main): Call set_program_name.
44316
44317         * modules/avltreehash-list-tests (Depends-on): Add progname.
44318         * tests/test-avltreehash_list.c: Include progname.h.
44319         (main): Call set_program_name.
44320
44321         * modules/avltree-oset-tests (Depends-on): Add progname.
44322         * tests/test-avltree_oset.c: Include progname.h.
44323         (main): Call set_program_name.
44324
44325         * modules/avltree-list-tests (Depends-on): Add progname.
44326         * tests/test-avltree_list.c: Include progname.h.
44327         (main): Call set_program_name.
44328
44329         * modules/array-oset-tests (Depends-on): Add progname.
44330         * tests/test-array_oset.c: Include progname.h.
44331         (main): Call set_program_name.
44332
44333         * modules/array-list-tests (Depends-on): Add progname.
44334         * tests/test-array_list.c: Include progname.h.
44335         (main): Call set_program_name.
44336
44337         * modules/argp-tests (Depends-on): Add progname.
44338         * tests/test-argp.c: Include argp.h first. Include progname.h.
44339         (main): Call set_program_name.
44340
44341 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
44342
44343         * doc/gnulib-tool.texi (Initial import): Reword description of
44344         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
44345         limited effect even if defined after the first system include.
44346
44347 2007-03-01  Bruno Haible  <bruno@clisp.org>
44348
44349         * build-aux/config.libpath: Update to libtool-1.5.22.
44350         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44351
44352 2007-03-01  Bruno Haible  <bruno@clisp.org>
44353
44354         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
44355         foo_CFLAGS.
44356         Reported by Ralf Wildenhues.
44357
44358 2007-03-01  Bruno Haible  <bruno@clisp.org>
44359
44360         * build-aux/install-reloc: Remove object files left over by some
44361         compilers.
44362         Reported by Ralf Wildenhues.
44363
44364 2007-03-01  Bruno Haible  <bruno@clisp.org>
44365
44366         * build-aux/install-reloc: Break long lines.
44367
44368 2007-03-01  Bruno Haible  <bruno@clisp.org>
44369
44370         * doc/relocatable.texi: Document that it may not work on OpenBSD.
44371         Reported by Ralf Wildenhues.
44372
44373 2007-03-01  Bruno Haible  <bruno@clisp.org>
44374
44375         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
44376         include ordering constraints.
44377
44378 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44379
44380         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
44381         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
44382         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
44383         as another example.
44384         * lib/time_.h: Fix misspelling.
44385         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44386         Require gl_HEADER_TIME_H_DEFAULTS.
44387         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
44388         * m4/time_r.m4 (gl_TIME_R): Likewise.
44389         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
44390
44391 2007-03-01  Bruno Haible  <bruno@clisp.org>
44392
44393         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
44394         * m4/utimens.m4 (gl_UTIMENS): Likewise.
44395
44396 2007-03-01  Jim Meyering  <jim@meyering.net>
44397
44398         * modules/xreadlink (Maintainer): Add my name.
44399         * modules/xreadlink-with-size (Depends-on): Alphabetize.
44400
44401 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
44402             Bruno Haible  <bruno@clisp.org>
44403
44404         * build-aux/install-reloc: Compile also c-ctype.c.
44405         * build-aux/relocatable.sh.in: New file.
44406         * doc/relocatable.texi: New file.
44407         * doc/relocatable-maint.texi: New file.
44408         * doc/gnulib.texi: Include relocatable-maint.texi.
44409         * lib/progreloc.c: Include unistd.h unconditionally.
44410         * lib/relocwrapper.c: Include unistd.h unconditionally.
44411         Include c-ctype.h.
44412         (add_dotbin): Use c_tolower.
44413         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
44414         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
44415         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
44416         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
44417         to m4/relocatable-lib.m4.
44418         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
44419         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
44420         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
44421         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
44422         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
44423         * modules/relocatable: New file.
44424         * modules/relocatable-lib: New file.
44425         * modules/relocatable-script: New file.
44426
44427 2007-02-28  Bruno Haible  <bruno@clisp.org>
44428
44429         Import --enable-relocatable infrastructure.
44430         * build-aux/config.libpath: New file, from GNU gettext.
44431         * build-aux/install-reloc: New file, from GNU gettext.
44432         * build-aux/reloc-ldflags: New file, from GNU gettext.
44433         * lib/relocatable.h: New file, from GNU gettext.
44434         * lib/relocatable.c: New file, from GNU gettext.
44435         * lib/relocwrapper.c: New file, from GNU gettext.
44436         * m4/relocatable.m4: New file, from GNU gettext.
44437
44438 2007-02-28  Bruno Haible  <bruno@clisp.org>
44439
44440         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
44441
44442         * modules/xreadlink: New file, from GNU gettext with modifications.
44443         * lib/xreadlink.c: New file, from GNU gettext.
44444         * lib/xreadlink.h: Add comments.
44445         (xreadlink): New declaration.
44446
44447         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
44448         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
44449         lib/xreadlink-with-size.c.
44450         (configure.ac): Remove gl_XREADLINK invocation.
44451         (Makefile.am): Augment lib_SOURCES.
44452         * m4/xreadlink.m4: Remove file.
44453         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
44454         (xreadlink_with_size): Renamed from xreadink.
44455         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
44456         * modules/canonicalize (Depends-on): Replace xreadlink with
44457         xreadlink-with-size.
44458         * lib/canonicalize.c (canonicalize_filename_mode): Update.
44459
44460 2007-02-25  Jim Meyering  <jim@meyering.net>
44461
44462         * build-aux/announce-gen: When complaining about excess arguments,
44463         list them.
44464
44465 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
44466
44467         * README: Document signed integer overflow situation more
44468         accurately.
44469
44470 2007-02-25  Bruno Haible  <bruno@clisp.org>
44471
44472         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
44473         'a' or 'A' conversion.
44474
44475 2007-02-25  Bruno Haible  <bruno@clisp.org>
44476
44477         * modules/filename: Renamed from modules/pathname.
44478         (Files): Replace lib/pathname.h with lib/filename.h. Replace
44479         lib/concatpath.c with lib/concat-filename.c.
44480         (Makefile.am): Update.
44481         (Include): Replace pathname.h with filename.h.
44482         * lib/filename.h: Renamed from lib/pathname.h.
44483         (concatenated_filename): Renamed from concatenated_pathname.
44484         * lib/concat-filename.c: Renamed from lib/concatpath.c.
44485         (concatenated_filename): Renamed from concatenated_pathname.
44486         * lib/findprog.c: Include filename.h instead of pathname.h.
44487         (find_in_path): Update.
44488         * lib/javacomp.c: Include filename.h instead of pathname.h.
44489         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44490         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44491         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44492         is_oldgcj_14_13_usable, is_javac_usable): Update.
44493         * lib/javaexec.c: Include filename.h instead of pathname.h.
44494         (execute_java_class): Update.
44495         * modules/findprog: Update.
44496         * modules/javacomp: Update.
44497         * modules/javaexec: Update.
44498         * MODULES.html.sh (File system functions): Add 'filename', remove
44499         'pathname'.
44500
44501 2007-02-25  Bruno Haible  <bruno@clisp.org>
44502
44503         * modules/printf-frexpl-tests: New file.
44504         * tests/test-printf-frexpl.c: New file.
44505
44506         * modules/printf-frexpl: New file.
44507         * lib/printf-frexpl.h: New file.
44508         * lib/printf-frexpl.c: New file.
44509         * m4/printf-frexpl.m4: New file.
44510
44511 2007-02-25  Bruno Haible  <bruno@clisp.org>
44512
44513         * modules/printf-frexp-tests: New file.
44514         * tests/test-printf-frexp.c: New file.
44515
44516         * modules/printf-frexp: New file.
44517         * lib/printf-frexp.h: New file.
44518         * lib/printf-frexp.c: New file.
44519         * m4/printf-frexp.m4: New file.
44520
44521 2007-02-25  Bruno Haible  <bruno@clisp.org>
44522
44523         Assume automake >= 1.10 for the tests.
44524         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
44525         * modules/arctwo-tests: Likewise.
44526         * modules/argp-tests: Likewise.
44527         * modules/avltree-list-tests: Likewise.
44528         * modules/avltree-oset-tests: Likewise.
44529         * modules/avltreehash-list-tests: Likewise.
44530         * modules/carray-list-tests: Likewise.
44531         * modules/crc-tests: Likewise.
44532         * modules/des-tests: Likewise.
44533         * modules/gc-arcfour-tests: Likewise.
44534         * modules/gc-arctwo-tests: Likewise.
44535         * modules/gc-des-tests: Likewise.
44536         * modules/gc-hmac-md5-tests: Likewise.
44537         * modules/gc-hmac-sha1-tests: Likewise.
44538         * modules/gc-md2-tests: Likewise.
44539         * modules/gc-md4-tests: Likewise.
44540         * modules/gc-md5-tests: Likewise.
44541         * modules/gc-pbkdf2-sha1-tests: Likewise.
44542         * modules/gc-rijndael-tests: Likewise.
44543         * modules/gc-sha1-tests: Likewise.
44544         * modules/gc-tests: Likewise.
44545         * modules/getaddrinfo-tests: Likewise.
44546         * modules/hmac-md5-tests: Likewise.
44547         * modules/hmac-sha1-tests: Likewise.
44548         * modules/linked-list-tests: Likewise.
44549         * modules/linkedhash-list-tests: Likewise.
44550         * modules/lock-tests: Likewise.
44551         * modules/md2-tests: Likewise.
44552         * modules/md4-tests: Likewise.
44553         * modules/md5-tests: Likewise.
44554         * modules/rbtree-list-tests: Likewise.
44555         * modules/rbtree-oset-tests: Likewise.
44556         * modules/rbtreehash-list-tests: Likewise.
44557         * modules/read-file-tests: Likewise.
44558         * modules/rijndael-tests: Likewise.
44559         * modules/stdint-tests: Likewise.
44560         * modules/tls-tests: Likewise.
44561
44562 2007-02-24  Bruno Haible  <bruno@clisp.org>
44563
44564         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
44565         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
44566         function; instead check whether isnan with a double argument links.
44567         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
44568         function; instead check whether isnan with a 'long double' argument
44569         links.
44570         Reported by Eric Blake <ebb9@byu.net>.
44571
44572 2007-02-24  Bruno Haible  <bruno@clisp.org>
44573
44574         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
44575         defined.
44576         * lib/isnanl.c: Remove all code. Just include isnan.c.
44577         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
44578
44579 2007-02-25  Jim Meyering  <jim@meyering.net>
44580
44581         Avoid conflicting types for 'unsetenv' on FreeBSD.
44582         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
44583         conflicting with FreeBSD's (5.0 and 6.1) function declaration
44584         in stdlib.h.
44585
44586 2007-02-24  Bruno Haible  <bruno@clisp.org>
44587
44588         * modules/isnanl-nolibm-tests: New file.
44589         * tests/test-isnanl.c: New file.
44590
44591         * modules/isnanl-nolibm: New file.
44592         * lib/isnanl.h: New file.
44593         * lib/isnanl.c: New file.
44594         * m4/isnanl.m4: New file.
44595
44596 2007-02-24  Bruno Haible  <bruno@clisp.org>
44597
44598         * modules/isnan-nolibm-tests: New file.
44599         * tests/test-isnan.c: New file.
44600
44601         * modules/isnan-nolibm: New file.
44602         * lib/isnan.h: New file.
44603         * lib/isnan.c: New file.
44604         * m4/isnan.m4: New file.
44605
44606 2007-02-24  Bruno Haible  <bruno@clisp.org>
44607
44608         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
44609         assume that an exponent fits in 20 bits.
44610
44611 2007-02-24  Jim Meyering  <jim@meyering.net>
44612
44613         * m4/regex.m4: Update the description of the configure-time option,
44614         --without-included-regex, to state accurately what the defaults are,
44615         and perhaps to give people an idea why using this option is risky.
44616
44617 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44618
44619         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
44620         loops on small arguments.  This attempts to avoid the problem
44621         Bruno Haible reported for AIX 4.3.2 in
44622         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
44623
44624 2007-02-23  Bruno Haible  <bruno@clisp.org>
44625
44626         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
44627         Needed for help2man.
44628
44629 2007-02-23  Karl Berry  <karl@gnu.org>
44630
44631         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
44632         exists, foo.h should be cvs-ignored, not committed.
44633
44634 2007-02-23  Eric Blake  <ebb9@byu.net>
44635
44636         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
44637         * lib/stat-time.h (includes): Likewise.
44638         * lib/utimecmp.c (includes): Likewise.
44639         * lib/utimens.h (includes): Likewise.
44640         * lib/getdate.y (includes): Also include "timespec.h" for use
44641         internal to the module.
44642         * modules/utimens (Depends-on): Revert yesterday's patch.
44643         * modules/nanosleep (Depends-on): Add missing dependency.
44644
44645 2007-02-22  Bruno Haible  <bruno@clisp.org>
44646
44647         * lib/glob.c: Don't include getlogin_r.h.
44648
44649 2007-02-22  Jim Meyering  <jim@meyering.net>
44650
44651         * modules/utimens (Depends-on): Add timespec, required for
44652         utimens.h's inclusion of timespec.h.
44653
44654 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
44655
44656         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
44657         long unreadable paths in GNU/Linux.  Problem reported by Andreas
44658         Schwab in
44659         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
44660         I'll try to think of a better way to fix the Solaris problem.
44661
44662         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
44663         like glibc; on Solaris 10, it fails with errno == EINVAL.
44664         POSIX says the behavior is unspecified if the first argument is NULL,
44665         so play it safe and never pass NULL to the system getcwd.
44666
44667 2007-02-21  Jim Meyering  <jim@meyering.net>
44668
44669         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
44670         of gettimeofday.  It would conflict with the one now always
44671         provided via sys_time_.h.  Reported by Matthew Woehlke, as
44672         an IRIX 6.5 build failure.
44673
44674 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
44675
44676         Minor fixups to port to Solaris 10 with Sun C 5.8.
44677         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
44678         * modules/getcwd (Depends-on): Add dirfd.
44679         * lib/putenv.c (putenv): #undef it.
44680         (rpl_putenv): New decl.
44681         (malloc, free): Include <stdlib.h> rather than prototyping separately.
44682
44683 2007-02-20  Bruno Haible  <bruno@clisp.org>
44684
44685         * modules/stdio-tests: New file.
44686         * tests/test-stdio.c: New file.
44687
44688         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
44689         (Depends-on): Add stdio.
44690         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44691         (Include): Use <stdio.h> instead of vsnprintf.h.
44692         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44693         HAVE_DECL_VSNPRINTF.
44694         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
44695
44696         * modules/snprintf (Files): Remove lib/snprintf.h.
44697         (Depends-on): Add stdio.
44698         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44699         (Include): Use <stdio.h> instead of snprintf.h.
44700         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44701         HAVE_DECL_SNPRINTF.
44702         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
44703         * lib/getaddrinfo.c: Likewise.
44704
44705         * modules/stdio: New file.
44706         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
44707         * lib/snprintf.h: Remove file.
44708         * lib/vsnprintf.h: Remove file.
44709         * lib/.cppi-disable: Remove snprintf.h.
44710         * m4/stdio_h.m4: New file.
44711         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
44712
44713 2007-02-20  Jim Meyering  <jim@meyering.net>
44714
44715         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
44716         used by e.g., mingw.  From Bruno Haible.
44717
44718 2007-02-19  Bruno Haible  <bruno@clisp.org>
44719
44720         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
44721         warnings.
44722         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44723
44724 2007-02-19  Bruno Haible  <bruno@clisp.org>
44725
44726         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
44727         from mingw users.
44728
44729 2007-02-19  Bruno Haible  <bruno@clisp.org>
44730
44731         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
44732         warnings.
44733         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
44734
44735 2007-02-19  Jim Meyering  <jim@meyering.net>
44736
44737         Don't use FD after a successful "fdopendir (fd)".
44738         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
44739         Reset it by calling dirfd on the just-obtained DIR*.
44740
44741         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
44742         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
44743
44744 2007-02-18  Bruno Haible  <bruno@clisp.org>
44745
44746         * lib/readlink.c: Include <unistd.h>.
44747         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
44748         HAVE_READLINK.
44749         * modules/readlink (Depends-on): Add unistd.
44750         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44751         (Include): Add <unistd.h>.
44752
44753         * lib/getlogin_r.h: Remove file.
44754         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
44755         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
44756         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
44757         HAVE_DECL_GETLOGIN_R.
44758         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
44759         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44760         (Include): Use <unistd.h> instead of getlogin_r.h.
44761
44762         * lib/getcwd.h: Remove file.
44763         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
44764         * lib/xgetcwd.c: Likewise.
44765         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
44766         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
44767         * modules/getcwd (Files): Remove lib/getcwd.h.
44768         (Depends-on): Add unistd.
44769         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44770         (Include): Use <unistd.h> instad of getcwd.h.
44771
44772         * lib/ftruncate.c: Include <unistd.h> first.
44773         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
44774         Set HAVE_FTRUNCATE.
44775         * modules/ftruncate (Depends-on): Add unistd.
44776         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44777
44778         * lib/fchdir.c: Include <unistd.h> first.
44779         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
44780         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
44781         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
44782         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44783         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
44784
44785         * lib/dup2.c: Include <unistd.h> first.
44786         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
44787         HAVE_DUP2.
44788         * modules/dup2 (Depends-on): Add unistd.
44789         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44790
44791         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
44792         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
44793         REPLACE_CHOWN. Don't define chown as a macro here.
44794         * modules/chown (Depends-on): Add unistd.
44795         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44796
44797         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
44798         Add definition for GL_LINK_WARNING.
44799         (chown, dup2): New declarations.
44800         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
44801         link warning.
44802         (ftruncate): New declaration.
44803         (getcwd): New declaration, taken from old getcwd.h.
44804         (getlogin_r): New declaration, taken from old getlogin_r.h.
44805         (readlink): New declaration.
44806         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
44807         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
44808         (gl_PREREQ_UNISTD): Remove macro.
44809         (gl_UNISTD_MODULE_INDICATOR): New macro.
44810         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
44811         many new variables. Don't set UNISTD_H.
44812         * modules/unistd (Description): Change.
44813         (Depends-on): Add link-warning.
44814         (configure.ac): Update.
44815         (Makefile.am): Create unistd.h always. Substitute many new variables
44816         into it.
44817
44818 2007-02-18  Bruno Haible  <bruno@clisp.org>
44819
44820         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
44821         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
44822         HAVE_GETSUBOPT.
44823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
44824         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
44825         * lib/getsubopt.h: Remove file.
44826         * modules/getsubopt (Files): Remove lib/getsubopt.h.
44827         (Depends-on): Add stdlib.
44828         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44829         (Includes): Use <stdlib.h> instead of getsubopt.h.
44830         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
44831         Set HAVE_GETSUBOPT.
44832         * lib/getsubopt.c: Don't include getsubopt.h.
44833
44834 2007-02-18  Bruno Haible  <bruno@clisp.org>
44835
44836         * modules/fchdir (Depends-on): Add dup2.
44837
44838 2007-02-18  Bruno Haible  <bruno@clisp.org>
44839
44840         * lib/stdlib_.h: Handle glibc's special invocation convention
44841         specially.
44842
44843 2007-02-18  Bruno Haible  <bruno@clisp.org>
44844
44845         * modules/stdlib-tests: New file.
44846         * tests/test-stdlib.c: New file.
44847
44848         * modules/mkstemp (Files): Remove lib/mkstemp.h.
44849         (Depends-on): Add stdlib.
44850         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44851         (Includes): Use <stdlib.h> instead of mkstemp.h.
44852         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44853         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
44854         * lib/mkstemp.c: Don't include mkstemp.h.
44855         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
44856         * lib/stdlib--.h: Don't include mkstemp.h.
44857
44858         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
44859         (Depends-on): Add stdlib.
44860         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44861         (Includes): Use <stdlib.h> instead of mkdtemp.h.
44862         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44863         HAVE_MKDTEMP.
44864         * lib/mkdtemp.c: Don't include mkdtemp.h.
44865         * lib/clean-temp.c: Don't include mkdtemp.h.
44866
44867         * modules/exit (Files): Remove lib/exit.h.
44868         (Depends-on): Add stdlib.
44869         (Makefile.am): Remove lib_SOURCES.
44870         (Include): Use <stdlib.h> instead of exit.h.
44871         * lib/argmatch.c: Don't include exit.h.
44872         * lib/execute.c: Likewise.
44873         * lib/pagealign_alloc.c: Likewise.
44874         * lib/pipe.c: Likewise.
44875         * lib/wait-process.c: Likewise.
44876         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
44877         * lib/exitfail.c: Likewise.
44878         * lib/savewd.c: Likewise.
44879         * lib/xsetenv.c: Likewise.
44880
44881         * modules/stdlib: New file.
44882         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
44883         and extra comments about mkstemp().
44884         * lib/exit.h: Remove file.
44885         * lib/mkdtemp.h: Remove file.
44886         * lib/mkstemp.h: Remove file.
44887         * m4/stdlib_h.m4: New file.
44888         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
44889
44890 2007-02-18  Bruno Haible  <bruno@clisp.org>
44891
44892         * modules/math-tests: New file.
44893         * tests/test-math.c: New file.
44894
44895         * modules/math: New file.
44896         * modules/mathl (Files): Remove lib/mathl.h.
44897         (Depends-on): Add math.
44898         (Makefile.am): Don't mention mathl.h.
44899         (Include): Use <math.h> instead of mathl.h.
44900         * lib/math_.h: New file.
44901         * lib/mathl.h: Remove file.
44902         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
44903         mathl.h.
44904         * lib/asinl.c: Likewise.
44905         * lib/atanl.c: Likewise.
44906         * lib/ceill.c: Likewise.
44907         * lib/cosl.c: Likewise.
44908         * lib/expl.c: Likewise.
44909         * lib/floorl.c: Likewise.
44910         * lib/frexpl.c: Likewise.
44911         * lib/ldexpl.c: Likewise.
44912         * lib/logl.c: Likewise.
44913         * lib/sincosl.c: Likewise.
44914         * lib/sinl.c: Likewise.
44915         * lib/sqrtl.c: Likewise.
44916         * lib/tanl.c: Likewise.
44917         * lib/trigl.c: Likewise.
44918         * m4/math_h.m4: New file.
44919         * MODULES.html.sh (Mathematics): Add math.
44920
44921 2007-02-17  Bruno Haible  <bruno@clisp.org>
44922
44923         * modules/wctype-tests: New file.
44924         * tests/test-wctype.c: New file.
44925
44926         * modules/wchar-tests: New file.
44927         * tests/test-wchar.c: New file.
44928
44929         * modules/unistd-tests: New file.
44930         * tests/test-unistd.c: New file.
44931
44932         * modules/time-tests: New file.
44933         * tests/test-time.c: New file.
44934
44935         * modules/sysexits-tests: New file.
44936         * tests/test-sysexits.c: New file.
44937
44938         * modules/sys_time-tests: New file.
44939         * tests/test-sys_time.c: New file.
44940
44941         * modules/sys_stat-tests: New file.
44942         * tests/test-sys_stat.c: New file.
44943
44944         * modules/sys_socket-tests: New file.
44945         * tests/test-sys_socket.c: New file.
44946
44947         * modules/sys_select-tests: New file.
44948         * tests/test-sys_select.c: New file.
44949
44950         * modules/string-tests: New file.
44951         * tests/test-string.c: New file.
44952
44953         * modules/stdbool-tests: New file.
44954         * tests/test-stdbool.c: New file.
44955
44956         * modules/netinet_in-tests: New file.
44957         * tests/test-netinet_in.c: New file.
44958
44959         * modules/inttypes-tests: New file.
44960         * tests/test-inttypes.c: New file.
44961
44962         * modules/fcntl-tests: New file.
44963         * tests/test-fcntl.c: New file.
44964
44965         * modules/byteswap-tests: New file.
44966         * tests/test-byteswap.c: New file.
44967
44968         * modules/arpa_inet-tests: New file.
44969         * tests/test-arpa_inet.c: New file.
44970
44971 2007-02-17  Bruno Haible  <bruno@clisp.org>
44972
44973         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
44974         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
44975         if the corresponding module is not enabled. Emit link warnings if
44976         the function is used nevertheless.
44977         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
44978         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
44979         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
44980         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
44981         * modules/inttypes (Depends-on): Add link-warning.
44982         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44983         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
44984         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
44985         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
44986         * modules/imaxdiv (configure.ac): Likewise.
44987         * modules/strtoimax (configure.ac): Likewise.
44988         * modules/strtoumax (configure.ac): Likewise.
44989
44990 2007-02-17  Bruno Haible  <bruno@clisp.org>
44991
44992         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
44993         gl_STRING_MODULE_INDICATOR_DEFAULTS.
44994         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
44995         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
44996
44997 2007-02-17  Bruno Haible  <bruno@clisp.org>
44998
44999         * modules/link-warning: New file.
45000         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
45001         * lib/string_.h (GL_LINK_WARNING): Remove definition.
45002         * modules/string (Depends-on): Add link-warning.
45003         (Makefile.am): Copy the contents of build-aux/link-warning.h into
45004         string.h.
45005         * MODULES.html.sh (Support for building libraries and executables): Add
45006         link-warning.
45007
45008 2007-02-17  Bruno Haible  <bruno@clisp.org>
45009
45010         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
45011         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
45012         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
45013         long lines.
45014
45015 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
45016             Bruno Haible  <bruno@clisp.org>
45017
45018         * modules/tmpfile: New file.
45019         * lib/tmpfile.c: New file.
45020         * m4/tmpfile.m4: New file.
45021         * MODULES.html.sh (func_all_modules): New section "Input/output".
45022
45023 2007-02-15  Bruno Haible  <bruno@clisp.org>
45024
45025         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
45026         (supports_delete_on_close): New function.
45027         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
45028
45029 2007-02-14  Bruno Haible  <bruno@clisp.org>
45030
45031         * modules/mbspcasecmp-tests: New file.
45032         * tests/test-mbspcasecmp.sh: New file.
45033         * tests/test-mbspcasecmp.c: New file.
45034
45035         New module mbspcasecmp.
45036         * modules/mbspcasecmp: New file.
45037         * lib/mbspcasecmp.c: New file.
45038         * lib/string_.h (strncasecmp): Change warning message.
45039         (mbspcasecmp): New declaration.
45040         * m4/mbspcasecmp.m4: New file.
45041         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45042         GNULIB_MBSPCASECMP.
45043         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
45044         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
45045
45046 2007-02-14  Bruno Haible  <bruno@clisp.org>
45047
45048         * modules/mbsncasecmp-tests: New file.
45049         * tests/test-mbsncasecmp.sh: New file.
45050         * tests/test-mbsncasecmp.c: New file.
45051
45052         New module mbsncasecmp.
45053         * modules/mbsncasecmp: New file.
45054         * lib/mbsncasecmp.c: New file.
45055         * lib/string_.h (mbsncasecmp): New declaration.
45056         * m4/mbsncasecmp.m4: New file.
45057         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45058         GNULIB_MBSNCASECMP.
45059         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
45060         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
45061
45062 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
45063
45064         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
45065         Verify that it doesn't overlap with our flags.
45066         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
45067         do not have the desired effect in multibyte locales; instead, use
45068         mbscasecmp.
45069         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
45070         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
45071         we don't require GNU fnmatch ourselves (if our users require it, they
45072         should do so explicitly).
45073
45074         Fix regex code so it doesn't rely on strcasecmp.
45075         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
45076         Otherwise, include gnulib's langinfo.h.
45077         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
45078         undesirable behavior in non-C locales.  Instead, rely on localecharset.
45079         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
45080         * modules/regex (FILES): Remove m4/codeset.m4.
45081         (Depends-on): Add localcharset.  Remove strcase.
45082
45083 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45084
45085         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
45086         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
45087
45088 2007-02-13  Bruno Haible  <bruno@clisp.org>
45089
45090         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
45091         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45092
45093 2007-02-12  Bruno Haible  <bruno@clisp.org>
45094
45095         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45096         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
45097         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
45098         time warning rather than a link error.
45099
45100 2007-02-12  Bruno Haible  <bruno@clisp.org>
45101
45102         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
45103         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45104         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45105
45106 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
45107
45108         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
45109         args, not 2.
45110
45111 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
45112
45113         New module 'time', so that apps can include <time.h> as per
45114         POSIX and GNU instead of separate include files like time_r.h
45115         and timegm.h.  This implementation tries out a simpler approach
45116         for replacing decls in standard include files (as compared to
45117         the string module), somewhat as an experiment.
45118
45119         * config/srclist.txt: Comment out mktime.c for now.
45120         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
45121         since it doesn't apply any more.  Use generic wording instead.
45122         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
45123         'time'.
45124         * lib/time_.h, m4/time_h.m4, modules/time: New files.
45125         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
45126         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
45127         Don't include <sys/types.h>; no longer needed since we assume C89.
45128         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
45129         * lib/strftime.c: Likewise.
45130         * lib/time_r.c: Likewise.
45131         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
45132         * lib/nanosleep.c: Include <time.h> first, to check interface.
45133         * lib/strptime.c: Likewise.
45134         * lib/time_r.c: Likewise.
45135         * lib/timegm.c: Likewise.
45136         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
45137         needed.
45138         * lib/timegm.c: Don't include timegm.h; no longer needed.
45139         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
45140         time.h now handles any problems in that area.
45141         (struct timespec, nanosleep): Remove; time.h now arranges for these.
45142         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
45143         that time.h defines struct timespec.
45144         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
45145         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
45146         handles that.
45147         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
45148         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
45149         needed.  Set REPLACE_LOCALTIME.
45150         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
45151         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
45152         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
45153         nanosleep; time_h.m4 now does that.  Don't require
45154         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
45155         module handles this now.
45156         * modules/getdate (Depends-on): Remove timespec.  Add time.
45157         * modules/nanosleep (Depends-on): Likewise.
45158         * modules/stat-time (Depends-on): Likewise.
45159         * modules/nanosleep (Include): Include time.h, not timespec.h.
45160         * modules/strptime (Files): Remove lib/strptime.h.
45161         (Depends-on): Add extensions, time.
45162         (Include): Include time.h, not strptime.h.
45163         * modules/time_r (Files): Remove lib/time_r.h.
45164         (Depends-on): Add time.
45165         (Include): Include time.h, not time_r.h.
45166         * modules/timegm: Likewise.
45167         * modules/timespec (Description): Now does timespec-related decls
45168         of our own, instead of struct timespec itself.
45169         (Depends-on): Add time; remove extensions.
45170         (Maintainer): Add self.
45171         * modules/utimecmp (Depends-on): Add time; remove timespec.
45172         * modules/utimens (Depends-on): Likewise.
45173         * modules/xnanosleep (Depends-on): Likewise.
45174
45175 2007-02-11  Bruno Haible  <bruno@clisp.org>
45176
45177         * lib/c-strstr.c: Include allocsa.h.
45178         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45179         * lib/c-strcasestr.c: Include allocsa.h.
45180         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45181         * lib/strcasestr.c: Include allocsa.h.
45182         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45183         * lib/mbsstr.c: Include allocsa.h.
45184         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
45185         allocsa/freesa instead of malloc/free.
45186         * lib/mbscasestr.c: Include allocsa.h.
45187         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
45188         allocsa/freesa instead of malloc/free.
45189         * modules/c-strstr (Depends-on): Add allocsa.
45190         * modules/c-strcasestr (Depends-on): Likewise.
45191         * modules/strcasestr (Depends-on): Likewise.
45192         * modules/mbsstr (Depends-on): Likewise.
45193         * modules/mbscasestr (Depends-on): Likewise.
45194
45195 2007-02-11  Bruno Haible  <bruno@clisp.org>
45196
45197         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
45198
45199         * modules/mbsspn-tests: New file.
45200         * tests/test-mbsspn.sh: New file.
45201         * tests/test-mbsspn.c: New file.
45202
45203 2007-02-11  Bruno Haible  <bruno@clisp.org>
45204
45205         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
45206
45207         * modules/mbspbrk-tests: New file.
45208         * tests/test-mbspbrk.sh: New file.
45209         * tests/test-mbspbrk.c: New file.
45210
45211 2007-02-11  Bruno Haible  <bruno@clisp.org>
45212
45213         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
45214         unneeded cast.
45215
45216         * modules/mbscspn-tests: New file.
45217         * tests/test-mbscspn.sh: New file.
45218         * tests/test-mbscspn.c: New file.
45219
45220 2007-02-11  Bruno Haible  <bruno@clisp.org>
45221
45222         * modules/mbscasecmp-tests: New file.
45223         * tests/test-mbscasecmp.sh: New file.
45224         * tests/test-mbscasecmp.c: New file.
45225
45226 2007-02-11  Bruno Haible  <bruno@clisp.org>
45227
45228         Ensure O(n) worst-case complexity of mbscasestr.
45229         * lib/mbscasestr.c: Include stdbool.h.
45230         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
45231         functions.
45232         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
45233         the bookkeeping indicates that it's worth it.
45234         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
45235
45236         * modules/mbscasestr-tests: New file.
45237         * tests/test-mbscasestr1.c: New file.
45238         * tests/test-mbscasestr2.sh: New file.
45239         * tests/test-mbscasestr2.c: New file.
45240         * tests/test-mbscasestr3.sh: New file.
45241         * tests/test-mbscasestr3.c: New file.
45242         * tests/test-mbscasestr4.sh: New file.
45243         * tests/test-mbscasestr4.c: New file.
45244         * m4/locale-tr.m4: New file.
45245
45246 2007-02-11  Bruno Haible  <bruno@clisp.org>
45247
45248         Ensure O(n) worst-case complexity of mbsstr.
45249         * lib/mbsstr.c: Include stdbool.h.
45250         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
45251         functions.
45252         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
45253         bookkeeping indicates that it's worth it.
45254         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
45255
45256         * modules/mbsstr-tests: New file.
45257         * tests/test-mbsstr1.c: New file.
45258         * tests/test-mbsstr2.sh: New file.
45259         * tests/test-mbsstr2.c: New file.
45260         * tests/test-mbsstr3.sh: New file.
45261         * tests/test-mbsstr3.c: New file.
45262         * m4/locale-fr.m4: New file.
45263
45264 2007-02-11  Bruno Haible  <bruno@clisp.org>
45265
45266         * lib/mbsrchr.c (mbsrchr): Fix bug.
45267
45268         * modules/mbsrchr-tests: New file.
45269         * tests/test-mbsrchr.sh: New file.
45270         * tests/test-mbsrchr.c: New file.
45271
45272 2007-02-11  Bruno Haible  <bruno@clisp.org>
45273
45274         * lib/mbschr.c (mbschr): Fix bug.
45275
45276         * modules/mbschr-tests: New file.
45277         * tests/test-mbschr.sh: New file.
45278         * tests/test-mbschr.c: New file.
45279         * m4/locale-zh.m4: New file.
45280
45281 2007-02-11  Bruno Haible  <bruno@clisp.org>
45282
45283         Support for copying multibyte string iterators.
45284         * lib/mbiter.h: Include <string.h>.
45285         (mbiter_multi_copy): New function.
45286         (mbi_copy): New macro.
45287         * lib/mbuiter.h: Include <string.h>.
45288         (mbuiter_multi_copy): New function.
45289         (mbui_copy): New macro.
45290
45291 2007-02-11  Bruno Haible  <bruno@clisp.org>
45292
45293         New module mbslen.
45294         * modules/mbslen: New file.
45295         * lib/mbslen.c: New file.
45296         * lib/string_.h (mbslen): New declaration.
45297         * m4/mbslen.m4: New file.
45298         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45299         GNULIB_MBSLEN.
45300         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
45301         * MODULES.html.sh (Internationalization functions): Add mbslen.
45302
45303 2007-02-11  Bruno Haible  <bruno@clisp.org>
45304
45305         Ensure O(n) worst-case complexity of strcasestr substitute.
45306         * lib/strcasestr.c: Include stdbool.h.
45307         (knuth_morris_pratt): New function.
45308         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
45309         bookkeeping indicates that it's worth it.
45310         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
45311
45312         * modules/strcasestr-tests: New file.
45313         * tests/test-strcasestr.c: New file.
45314
45315 2007-02-11  Bruno Haible  <bruno@clisp.org>
45316
45317         Ensure O(n) worst-case complexity of c_strcasestr.
45318         * lib/c-strcasestr.c: Include stdbool.h, string.h.
45319         (knuth_morris_pratt): New function.
45320         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
45321         the bookkeeping indicates that it's worth it.
45322         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
45323
45324         * modules/c-strcasestr-tests: New file.
45325         * tests/test-c-strcasestr.c: New file.
45326
45327 2007-02-11  Bruno Haible  <bruno@clisp.org>
45328
45329         Ensure O(n) worst-case complexity of c_strstr.
45330         * lib/c-strstr.c: Include stdbool.h, string.h.
45331         (knuth_morris_pratt): New function.
45332         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
45333         bookkeeping indicates that it's worth it.
45334         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
45335
45336         * lib/c-strstr.c: Complete rewrite for maintainability.
45337
45338         * modules/c-strstr-tests: New file.
45339         * tests/test-c-strstr.c: New file.
45340
45341 2007-02-11  Bruno Haible  <bruno@clisp.org>
45342
45343         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
45344         5.2.1 and earlier, whereby \055 was treated just like the range
45345         delimiter '-'.
45346         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45347
45348 2007-02-08  Bruno Haible  <bruno@clisp.org>
45349
45350         * modules/regex (Depends-on): Add stdbool.
45351         Reported by Dalibor Topic <robilad@kaffe.org>.
45352
45353 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
45354
45355         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
45356         Prefer returning from main to exiting from it.
45357         Remove unnecessary parens after sizeof.
45358
45359 2007-02-05  Bruno Haible  <bruno@clisp.org>
45360
45361         New module mbssep.
45362         * modules/mbssep: New file.
45363         * lib/mbssep.c: New file.
45364         * lib/string_.h (strsep): Add a conditional link warning.
45365         (mbssep): New declaration.
45366         * m4/mbssep.m4: New file.
45367         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45368         GNULIB_MBSSEP.
45369         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
45370         * MODULES.html.sh (Internationalization functions): Add mbssep.
45371
45372 2007-02-05  Bruno Haible  <bruno@clisp.org>
45373
45374         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
45375         Optimize search in case of 1 delimiter.
45376
45377 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45378
45379         * lib/acl.h: Include sys/types.h before sys/acl.h.
45380
45381 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45382
45383         Merge upstream fix for glibc bugzilla #3957:
45384
45385         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
45386
45387         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
45388         bit for RE_HAT_LISTS_NOT_NEWLINE.
45389         (build_charclass_op): Remove bogus comment.
45390
45391 2007-02-05  Simon Josefsson  <simon@josefsson.org>
45392
45393         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
45394
45395 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45396
45397         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
45398         * lib/memmem.c [!defined _LIBC]: Include config.h.
45399
45400 2007-02-04  Bruno Haible  <bruno@clisp.org>
45401
45402         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
45403         warning message.
45404
45405 2007-02-04  Bruno Haible  <bruno@clisp.org>
45406
45407         New module mbstok_r.
45408         * modules/mbstok_r: New file.
45409         * lib/mbstok_r.c: New file.
45410         * lib/string_.h (strtok_r): Change argument names to match the
45411         comments. Add a conditional link warning.
45412         (mbstok_r): New declaration.
45413         * m4/mbstok_r.m4: New file.
45414         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45415         GNULIB_MBSTOK_R.
45416         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
45417         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
45418
45419 2007-02-04  Bruno Haible  <bruno@clisp.org>
45420
45421         New module mbsspn.
45422         * modules/mbsspn: New file.
45423         * lib/mbsspn.c: New file.
45424         * lib/string_.h (strspn): Add a conditional link warning.
45425         (mbsspn): New declaration.
45426         * m4/mbsspn.m4: New file.
45427         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45428         GNULIB_MBSSPN.
45429         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
45430         * MODULES.html.sh (Internationalization functions): Add mbsspn.
45431
45432 2007-02-04  Bruno Haible  <bruno@clisp.org>
45433
45434         New module mbspbrk.
45435         * modules/mbspbrk: New file.
45436         * lib/mbspbrk.c: New file.
45437         * lib/string_.h (strpbrk): Add a conditional link warning.
45438         (mbspbrk): New declaration.
45439         * m4/mbspbrk.m4: New file.
45440         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45441         GNULIB_MBSPBRK.
45442         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
45443         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
45444
45445 2007-02-04  Bruno Haible  <bruno@clisp.org>
45446
45447         New module mbscspn.
45448         * modules/mbscspn: New file.
45449         * lib/mbscspn.c: New file.
45450         * lib/string_.h (strcspn): Add a conditional link warning.
45451         (mbscspn): New declaration.
45452         * m4/mbscspn.m4: New file.
45453         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45454         GNULIB_MBSCSPN.
45455         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
45456         * MODULES.html.sh (Internationalization functions): Add mbscspn.
45457
45458 2007-02-04  Bruno Haible  <bruno@clisp.org>
45459
45460         New module mbscasestr, reduced goal of strcasestr.
45461         * modules/mbscasestr: New file.
45462         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
45463         (mbscasestr): Renamed from strcasestr.
45464         * lib/strcasestr.c: Don't include mbuiter.h.
45465         (strcasestr): Remove support for multibyte locales.
45466         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
45467         Change the conditional link warning.
45468         (mbscasestr): New declaration.
45469         * m4/mbscasestr.m4: New file.
45470         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
45471         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
45472         REPLACE_STRCASESTR.
45473         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
45474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45475         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45476         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
45477         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
45478         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45479         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
45480         (Depends-on): Remove mbuiter.
45481         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
45482
45483 2007-02-04  Bruno Haible  <bruno@clisp.org>
45484
45485         Simplify handling of strncasecmp.
45486         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
45487         the conditional link warning.
45488         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45489         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
45490         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
45491         * modules/strcase (configure.ac): Don't invoke
45492         gl_STRING_MODULE_INDICATOR.
45493         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
45494
45495 2007-02-04  Bruno Haible  <bruno@clisp.org>
45496
45497         New module mbscasecmp, reduced goal of strcasecmp.
45498         * modules/mbscasecmp: New file.
45499         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
45500         (mbscasecmp): Renamed from strcasecmp.
45501         * lib/strcasecmp.c: Don't include mbuiter.h.
45502         (strcasecmp): Remove support for multibyte locales.
45503         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
45504         Change the conditional link warning.
45505         (mbscasecmp): New declaration.
45506         * m4/mbscasecmp.m4: New file.
45507         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
45508         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
45509         REPLACE_STRCASECMP.
45510         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
45511         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45512         GNULIB_MBSCASECMP.
45513         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
45514         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
45515         * modules/strcase (Files): Remove m4/mbrtowc.m4.
45516         (Depends-on): Remove mbuiter.
45517         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
45518
45519 2007-02-04  Bruno Haible  <bruno@clisp.org>
45520
45521         New module mbsstr. Remove module strstr.
45522         * modules/mbsstr: New file.
45523         * modules/strstr: Remove file.
45524         * lib/mbsstr.c: Renamed from lib/strstr.c.
45525         (mbsstr): Renamed from strstr.
45526         * lib/string_.h (strstr): Remove declaration. Change the conditional
45527         link warning.
45528         (mbsstr): New declaration.
45529         * m4/mbsstr.m4: New file.
45530         * m4/strstr.m4: Remove file.
45531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
45532         REPLACE_STRSTR.
45533         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
45534         Don't initialize GNULIB_STRSTR.
45535         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
45536         substitute GNULIB_STRSTR and REPLACE_STRSTR.
45537         * MODULES.html.sh (Internationalization functions): Add mbsstr.
45538         (Support for systems lacking ANSI C 89): Remove strstr.
45539
45540 2007-02-04  Bruno Haible  <bruno@clisp.org>
45541
45542         New module mbsrchr.
45543         * modules/mbsrchr: New file.
45544         * lib/mbsrchr.c: New file.
45545         * lib/string_.h (strrchr): Add a conditional link warning.
45546         (mbsrchr): New declaration.
45547         * m4/mbsrchr.m4: New file.
45548         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45549         GNULIB_MBSRCHR.
45550         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
45551         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
45552
45553 2007-02-04  Bruno Haible  <bruno@clisp.org>
45554
45555         New module mbschr.
45556         * modules/mbschr: New file.
45557         * lib/mbschr.c: New file.
45558         * lib/string_.h (strchr): Add a conditional link warning.
45559         (mbschr): New declaration.
45560         * m4/mbschr.m4: New file.
45561         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45562         GNULIB_MBSCHR.
45563         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
45564         * MODULES.html.sh (Internationalization functions): Add mbschr.
45565
45566 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45567
45568         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
45569
45570         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
45571
45572 2007-02-04  Bruno Haible  <bruno@clisp.org>
45573
45574         New module description section 'configure.ac-early'.
45575         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
45576         (func_get_autoconf_early_snippet): New function.
45577         (func_import, func_create_testdir): Use it. Remove special cases for
45578         modules 'extensions' and 'lock'.
45579         * modules/extensions (configure.ac-early): Require
45580         gl_USE_SYSTEM_EXTENSIONS.
45581         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
45582
45583 2007-02-04  Bruno Haible  <bruno@clisp.org>
45584
45585         Make use of gcj-4.3's -fsource and -ftarget option.
45586         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
45587         and if so try the options -fsource and -ftarget.
45588         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
45589         source_version, ftarget_option, target_version arguments.
45590         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
45591         (is_envjavac_oldgcj_14_14_usable): Renamed from
45592         is_envjavac_gcj_14_14_usable.
45593         (is_envjavac_oldgcj_14_13_usable): Renamed from
45594         is_envjavac_gcj_14_13_usable.
45595         (is_gcj_present): Update.
45596         (is_gcj_43, is_gcj43_usable): New functions.
45597         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
45598         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
45599         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
45600         try the options -fsource and -ftarget.
45601
45602 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
45603
45604         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
45605         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
45606         larger value.
45607
45608 2007-02-03  Jim Meyering  <jim@meyering.net>
45609
45610         Give tools a better chance to allocate space for very large buffers.
45611         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
45612
45613         Make pwd and readlink work also when run with an unreadable parent dir
45614         on systems with openat support.
45615         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
45616         provided getcwd function, even when we have openat support.
45617         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
45618
45619 2007-02-02  Bruno Haible  <bruno@clisp.org>
45620
45621         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45622         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
45623         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
45624         portability problems if one of these functions is only used on specific
45625         platforms.
45626         Reported by Paul Eggert.
45627
45628 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
45629
45630         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
45631         is causing more trouble than it's curing.
45632         * lib/regex_internal.h (__mempcpy): Remove.
45633         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
45634         (and make the code a tad smaller to boot).
45635         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
45636
45637 2007-02-02  Jim Meyering  <jim@meyering.net>
45638
45639         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
45640         section, not in the Makefile.am: one.
45641
45642 2007-02-02  Eric Blake  <ebb9@byu.net>
45643
45644         * lib/strchrnul.c: Always include config.h first.
45645
45646         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
45647         gnulib strstr is not necessary here.
45648
45649 2007-02-02  Simon Josefsson  <simon@josefsson.org>
45650
45651         * m4/socklen.m4: Fix typo.
45652
45653 2007-02-02  Eric Blake  <ebb9@byu.net>
45654
45655         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
45656         * modules/netinet_in (Makefile.am): Likewise.
45657
45658 2007-02-01  Bruno Haible  <bruno@clisp.org>
45659
45660         * lib/string_.h (GL_LINK_WARNING): New macro.
45661         (strcasecmp, strstr, strcasestr): If provided by the system,
45662         conditionally define as a macro that leads to a warning instead of to
45663         an error.
45664         (strncasecmp): Conditionally define as a macro that leads to a warning.
45665
45666 2007-02-01  Karl Berry  <karl@gnu.org>
45667
45668         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
45669
45670 2007-02-01  Bruno Haible  <bruno@clisp.org>
45671
45672         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
45673         renamings.
45674
45675 2007-02-01  Eric Blake  <ebb9@byu.net>
45676
45677         * modules/regex (Depends-on): Revert dependence on mempcpy.
45678         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
45679         module's definition of mempcpy.
45680         Reported by Paul Eggert.
45681
45682 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
45683
45684         * lib/string_.h: If the gnulib module XYZ is not present, undefine
45685         the symbol XYZ before redefining it.  This fixes a problem with
45686         programs that don't use XYZ, when compiled on systems that define
45687         XYZ to something else.
45688
45689 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
45690
45691         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
45692         occurs when "mkdir -m foo" creates a setgid directory that is (1)
45693         writeable to group or other and (2) is intended to have a special
45694         mode bit that is set or cleared.  In such a case, the directory
45695         should be neither group- nor other-writeable until the special
45696         mode bits are right.
45697
45698 2007-01-31  Eric Blake  <ebb9@byu.net>
45699
45700         * modules/mountlist (Depends-on): Add strstr.
45701
45702         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
45703         bug.
45704         * modules/string (Makefile.am): Remove redundant replacement.
45705         * modules/regex (Depends-on): Add mempcpy.
45706
45707 2007-01-31  Bruno Haible  <bruno@clisp.org>
45708
45709         New module description field 'Link'.
45710         * gnulib-tool (func_usage): Document --extract-link-directive.
45711         (sed_extract_prog): Recognize 'Link' directive.
45712         (func_get_link_directive): New function.
45713         (func_import): Show summary of link directives.
45714         Handle --extract-link-directive option.
45715         * modules/acl (Link): New section.
45716         * modules/clock-time (Link): New section.
45717         * modules/euidaccess (Link): New section.
45718         * modules/gettext (Link): New section.
45719         * modules/iconv (Link): New section.
45720         * modules/lock (Link): New section.
45721         * modules/nanosleep (Link): New section.
45722         * modules/readline (Link): New section.
45723
45724 2007-01-27  Bruno Haible  <bruno@clisp.org>
45725
45726         Enforce the use of gnulib modules for unportable <string.h> functions.
45727         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
45728         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
45729         (gl_HEADER_STRING_H_BODY): Require it.
45730         * lib/string_.h: If the gnulib module XYZ is not present, redefine
45731         the symbol XYZ to one that gives a link error.
45732         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
45733         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
45734         * modules/mempcpy (configure.ac): Likewise.
45735         * modules/memrchr (configure.ac): Likewise.
45736         * modules/stpcpy (configure.ac): Likewise.
45737         * modules/stpncpy (configure.ac): Likewise.
45738         * modules/strcase (configure.ac): Likewise.
45739         * modules/strcasestr (configure.ac): Likewise.
45740         * modules/strchrnul (configure.ac): Likewise.
45741         * modules/strdup (configure.ac): Likewise.
45742         * modules/strndup (configure.ac): Likewise.
45743         * modules/strnlen (configure.ac): Likewise.
45744         * modules/strpbrk (configure.ac): Likewise.
45745         * modules/strsep (configure.ac): Likewise.
45746         * modules/strstr (configure.ac): Likewise.
45747         * modules/strtok_r (configure.ac): Likewise.
45748
45749 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
45750
45751         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
45752
45753 2007-01-30  Jim Meyering  <jim@meyering.net>
45754
45755         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
45756
45757 2007-01-29  Bruno Haible  <bruno@clisp.org>
45758
45759         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
45760         * lib/execute.c: Likewise.
45761         * lib/pipe.c: Likewise.
45762         * lib/printf-args.h: Likewise.
45763         * lib/printf-args.c: Likewise.
45764         * lib/printf-parse.c: Likewise.
45765         * lib/vasnprintf.c: Likewise.
45766
45767 2007-01-29  Eric Blake  <ebb9@byu.net>
45768
45769         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
45770         declaration.
45771
45772 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
45773
45774         * lib/strptime.h (strptime): Use 'restrict' for args where
45775         POSIX requires this.
45776         * lib/strptime.c (strptime): Likewise.
45777         Change license notice from LGPL to GPL, since gnulib-tool will
45778         change this as needed.
45779         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
45780         defined.
45781         Include "strptime.h" first, to check interface.
45782         Do not #undef _LIBC and _NL_CURRENT.
45783         Do not include <stdlib.h>; no longer needed.
45784         Include "time_r.h" and declare ptime_locale_status
45785         only if _LIBC is not defined.
45786         (__P): Remove unused macro.
45787         (match_string): Bring back glibc version, but use it only if _LIBC
45788         is defined.
45789         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
45790         Remove unnecessary assertion and abort() call.
45791         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
45792         * m4/strptime.m4: Fix serial number comment.
45793         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
45794         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
45795         (Depends-on): Add time_r.
45796
45797 2007-01-29  Bruno Haible  <bruno@clisp.org>
45798
45799         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45800         strptime.
45801         * modules/strptime (Depends-on): Add stdbool.
45802         * lib/strptime.h: Include <time.h> always. Add comments.
45803
45804 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45805
45806         * modules/strptime: New file.
45807         * lib/strptime.h: New file.
45808         * lib/strptime.c: New file.
45809         * m4/strptime.m4: New file.
45810
45811 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
45812
45813         * MODULES.html.sh: New module mpsort.
45814         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
45815
45816         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
45817         a circularity problem with HP-UX ia64 reported by Bob Proulx in
45818         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
45819         All uses changed.
45820         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
45821         All uses changed.
45822         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
45823         to _Restrict_.
45824         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
45825         the parameter matches the prototype.
45826
45827 2007-01-28  Jim Meyering  <jim@meyering.net>
45828
45829         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
45830         sys/time.h here, reverting that part of the previous patch:
45831         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
45832
45833 2007-01-28  Bruno Haible  <bruno@clisp.org>
45834
45835         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
45836         value of $(SYS_TIME_H).
45837         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
45838         remove it conditionally, too. [added by Jim Meyering]
45839         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
45840         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
45841         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
45842         GETTIMEOFDAY_REPLACEMENT to 1.
45843
45844 2007-01-28  Bruno Haible  <bruno@clisp.org>
45845
45846         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
45847         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
45848         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
45849         Set UNISTD_H instead of UNISTD_H2.
45850         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
45851
45852 2007-01-28  Bruno Haible  <bruno@clisp.org>
45853
45854         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
45855         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
45856
45857 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45858
45859         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
45860         (func_create_testdir): Ensure C locale for `grep' and `tr'
45861         character ranges.
45862         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
45863         ACLOCAL_AMFLAGS parsing state machine.
45864
45865 2007-01-27  Bruno Haible  <bruno@clisp.org>
45866
45867         * modules/unistr/base: Update.
45868
45869 2007-01-27  Bruno Haible  <bruno@clisp.org>
45870
45871         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
45872         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
45873         * modules/unistr/u32-mbtouc-unsafe: Renamed from
45874         modules/unistr/u32-mbtouc.
45875         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
45876         * lib/unistr.h: Update.
45877         * lib/linebreak.c: Update.
45878         * modules/unistr/u32-mbtouc: Renamed from
45879         modules/unistr/u32-mbtouc-safe.
45880         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
45881         * lib/unistr.h: Update.
45882         * lib/unistr/u32-to-u8.c: Update.
45883         * lib/unistr/u32-to-u16.c: Update.
45884
45885 2007-01-27  Bruno Haible  <bruno@clisp.org>
45886
45887         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
45888         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
45889         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
45890         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
45891         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
45892         * modules/unistr/u16-mbtouc-unsafe: Renamed from
45893         modules/unistr/u16-mbtouc.
45894         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
45895         * lib/unistr.h: Update.
45896         * lib/linebreak.c: Update.
45897         * modules/linebreak: Update.
45898         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
45899         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
45900         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
45901         * modules/unistr/u16-mbtouc: Renamed from
45902         modules/unistr/u16-mbtouc-safe.
45903         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
45904         * lib/unistr.h: Update.
45905         * lib/unistr/u16-to-u8.c: Update.
45906         * modules/unistr/u16-to-u8: Update.
45907         * lib/unistr/u16-to-u32.c: Update.
45908         * modules/unistr/u16-to-u32: Update.
45909
45910 2007-01-27  Bruno Haible  <bruno@clisp.org>
45911
45912         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
45913         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
45914         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
45915         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
45916         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
45917         * modules/unistr/u8-mbtouc-unsafe: Renamed from
45918         modules/unistr/u8-mbtouc.
45919         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
45920         * lib/unistr.h: Update.
45921         * lib/striconveh.c: Update.
45922         * modules/striconveh: Update.
45923         * lib/linebreak.c: Update.
45924         * modules/linebreak: Update.
45925         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
45926         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
45927         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
45928         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
45929         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
45930         * lib/unistr.h: Update.
45931         * lib/striconveh.c: Update.
45932         * modules/striconveh: Update.
45933         * lib/unistr/u8-to-u16.c: Update.
45934         * modules/unistr/u8-to-u16: Update.
45935         * lib/unistr/u8-to-u32.c: Update.
45936         * modules/unistr/u8-to-u32: Update.
45937
45938 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45939
45940         Sync from Libtool.
45941         * lib/argz.c: Do not include strings.h nor memory.h, include
45942         string.h unconditionally.  Patch by Simon Josefsson.
45943
45944 2007-01-27  Bruno Haible  <bruno@clisp.org>
45945
45946         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
45947         from gl_HEADER_STRING_H_BODY.
45948         (gl_HEADER_STRING_H_BODY): Require it.
45949         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
45950         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45951         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45952         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45953         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45954         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
45955         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45956         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45957         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
45958         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45959         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45960         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
45961         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45962         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45963         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45964
45965 2007-01-27  Bruno Haible  <bruno@clisp.org>
45966
45967         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
45968         check_PROGRAMS into noinst_PROGRAMS.
45969         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
45970         check_PROGRAMS in this case.
45971         (func_import): Set for_test to false.
45972         (func_create_testdir): Set for_test to true.
45973
45974 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45975             Bruno Haible  <bruno@clisp.org>
45976
45977         * modules/strcasestr (Files): Remove lib/strcasestr.h.
45978         (Depends-on): Add string.
45979         (Includes): Use <string.h> instead of strcasestr.h.
45980         * modules/string (Makefile.am): Also substitute the value of
45981         REPLACE_STRCASESTR.
45982         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
45983         assume strcasestr is declared in <string.h> not <strings.h>. Also
45984         set REPLACE_STRCASESTR.
45985         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
45986         REPLACE_STRCASESTR.
45987         * lib/strcasestr.h: Remove file.
45988         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
45989         * lib/string_.h (strcasestr): New declaration.
45990
45991 2007-01-27  Bruno Haible  <bruno@clisp.org>
45992
45993         * lib/string_.h: Use 'extern'.
45994
45995 2007-01-27  Jim Meyering  <jim@meyering.net>
45996
45997         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
45998         of set-but-not-used local, "q".
45999
46000         * lib/mempcpy.c: Include <config.h> before <string.h>.
46001         This fixes a compilation error on HP-UX, due to the system's
46002         "restrict"-using mempcpy prototype.
46003
46004 2007-01-26  Bruno Haible  <bruno@clisp.org>
46005
46006         Small optimization.
46007         * lib/javacomp.c: Include c-strstr.h.
46008          (is_envjavac_gcj): Use c_strstr instead of strstr.
46009         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
46010
46011 2007-01-26  Bruno Haible  <bruno@clisp.org>
46012
46013         * MODULES.html.sh (Unicode string functions): Add the new modules.
46014
46015         * modules/uniconv/u32-strconv-to-locale: New file.
46016         * lib/uniconv/u32-strconv-to-locale.c: New file.
46017
46018         * modules/uniconv/u16-strconv-to-locale: New file.
46019         * lib/uniconv/u16-strconv-to-locale.c: New file.
46020
46021         * modules/uniconv/u8-strconv-to-locale: New file.
46022         * lib/uniconv/u8-strconv-to-locale.c: New file.
46023
46024         * modules/uniconv/u32-strconv-from-locale: New file.
46025         * lib/uniconv/u32-strconv-from-locale.c: New file.
46026
46027         * modules/uniconv/u16-strconv-from-locale: New file.
46028         * lib/uniconv/u16-strconv-from-locale.c: New file.
46029
46030         * modules/uniconv/u8-strconv-from-locale: New file.
46031         * lib/uniconv/u8-strconv-from-locale.c: New file.
46032
46033         * modules/uniconv/u32-strconv-to-enc: New file.
46034         * lib/uniconv/u32-strconv-to-enc.c: New file.
46035         * modules/uniconv/u32-strconv-to-enc-tests: New file.
46036         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
46037
46038         * modules/uniconv/u16-strconv-to-enc: New file.
46039         * lib/uniconv/u16-strconv-to-enc.c: New file.
46040         * lib/uniconv/u-strconv-to-enc.h: New file.
46041         * modules/uniconv/u16-strconv-to-enc-tests: New file.
46042         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
46043
46044         * modules/uniconv/u8-strconv-to-enc: New file.
46045         * lib/uniconv/u8-strconv-to-enc.c: New file.
46046         * modules/uniconv/u8-strconv-to-enc-tests: New file.
46047         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
46048
46049         * modules/uniconv/u32-strconv-from-enc: New file.
46050         * lib/uniconv/u32-strconv-from-enc.c: New file.
46051         * modules/uniconv/u32-strconv-from-enc-tests: New file.
46052         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
46053
46054         * modules/uniconv/u16-strconv-from-enc: New file.
46055         * lib/uniconv/u16-strconv-from-enc.c: New file.
46056         * modules/uniconv/u16-strconv-from-enc-tests: New file.
46057         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
46058
46059         * modules/uniconv/u8-strconv-from-enc: New file.
46060         * lib/uniconv/u8-strconv-from-enc.c: New file.
46061         * lib/uniconv/u-strconv-from-enc.h: New file.
46062         * modules/uniconv/u8-strconv-from-enc-tests: New file.
46063         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
46064
46065         * modules/uniconv/u32-conv-from-enc: New file.
46066         * lib/uniconv/u32-conv-from-enc.c: New file.
46067         * modules/uniconv/u32-conv-from-enc-tests: New file.
46068         * tests/uniconv/test-u32-conv-from-enc.c: New file.
46069
46070         * modules/uniconv/u16-conv-from-enc: New file.
46071         * lib/uniconv/u16-conv-from-enc.c: New file.
46072         * lib/uniconv/u-conv-from-enc.h: New file.
46073         * modules/uniconv/u16-conv-from-enc-tests: New file.
46074         * tests/uniconv/test-u16-conv-from-enc.c: New file.
46075
46076         * modules/uniconv/u8-conv-from-enc: New file.
46077         * lib/uniconv/u8-conv-from-enc.c: New file.
46078         * modules/uniconv/u8-conv-from-enc-tests: New file.
46079         * tests/uniconv/test-u8-conv-from-enc.c: New file.
46080
46081         * modules/uniconv/base: New file.
46082         * lib/uniconv.h: New file.
46083
46084 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
46085
46086         * doc/gnulib-tool.texi (Initial import): Update to match current
46087         behavior with strdup module.
46088         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
46089         * lib/memmem.h: Remove; all uses removed.  This is now done
46090         by <string.h>.
46091         * lib/mempcpy.h: Likewise.
46092         * lib/memrchr.h: Likewise.
46093         * lib/stpcpy.h: Likewise.
46094         * lib/stpncpy.h: Likewise.
46095         * lib/strcase.h: Likewise.
46096         * lib/strchrnul.h: Likewise.
46097         * lib/strdup.h: Likewise.
46098         * lib/strndup.h: Likewise.
46099         * lib/strnlen.h: Likewise.
46100         * lib/strpbrk.h: Likewise.
46101         * lib/strsep.h: Likewise.
46102         * lib/strstr.h: Likewise.
46103         * lib/strtok_r.h: Likewise.
46104         * lib/string_.h: New file.
46105         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
46106         Rely on <string.h> instead.
46107         * lib/canon-host.c: Likewise.
46108         * lib/chdir-long.c: Likewise.
46109         * lib/concatpath.c: Likewise.
46110         * lib/exclude.c: Likewise.
46111         * lib/fchdir.c: Likewise.
46112         * lib/getaddrinfo.c: Likewise.
46113         * lib/getcwd.c: Likewise.
46114         * lib/getsubopt.c: Likewise.
46115         * lib/glob.c: Likewise.
46116         * lib/hard-locale.c: Likewise.
46117         * lib/iconvme.c: Likewise.
46118         * lib/javacomp.c: Likewise.
46119         * lib/mempcpy.c: Likewise.
46120         * lib/memrchr.c: Likewise.
46121         * lib/regex_internal.h: Likewise.
46122         * lib/stpncpy.c: Likewise.
46123         * lib/strcasecmp.c: Likewise.
46124         * lib/strchrnul.c: Likewise.
46125         * lib/strdup.c: Likewise.
46126         * lib/striconv.c: Likewise.
46127         * lib/striconveh.c: Likewise.
46128         * lib/striconveha.c: Likewise.
46129         * lib/strncasecmp.c: Likewise.
46130         * lib/strndup.c: Likewise.
46131         * lib/strnlen.c: Likewise.
46132         * lib/strsep.c: Likewise.
46133         * lib/strstr.c: Likewise.
46134         * lib/strtok_r.c: Likewise.
46135         * lib/userspec.c: Likewise.
46136         * lib/w32spawn.h: Likewise.
46137         * lib/xstrndup.c: Likewise.
46138         * lib/mountlist.c (strstr): Remove decl.
46139         * m4/string_h.m4: New file.
46140         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
46141         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
46142         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
46143         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
46144         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
46145         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
46146         Set REPLACE_STRCASECMP if necessary.
46147         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
46148         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
46149         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
46150         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
46151         HAVE_DECL_STRDUP if necessary.
46152         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
46153         since gl_FUNC_STRNDUP does that now.
46154         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
46155         Check for decl here...
46156         (gl_PREREQ_STRNLEN): ... not here.
46157         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
46158         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
46159         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
46160         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
46161         necessary.
46162         * modules/string: New file.
46163         * modules/memmem (Files): Remove special-purpose include file.
46164         (Depends-on): Add string.
46165         (Include): Include <string.h>, not the removed file.
46166         * modules/mempcpy: Likewise.
46167         * modules/memrchr: Likewise.
46168         * modules/stpcpy: Likewise.
46169         * modules/stpncpy: Likewise.
46170         * modules/strcase: Likewise.
46171         * modules/strchrnul: Likewise.
46172         * modules/strdup: Likewise.
46173         * modules/strndup: Likewise.
46174         * modules/strnlen: Likewise.
46175         * modules/strpbrk: Likewise.
46176         * modules/strsep: Likewise.
46177         * modules/strstr: Likewise.
46178         * modules/strtok_r: Likewise.
46179         * tests/test-dirname.c: Don't include "strdup.h", since
46180         <string.h> now suffices.
46181         * tests/test-memmem.c: Don't include "memmem.h", since
46182         <string.h> now suffices.
46183
46184 2007-01-25  Bruno Haible  <bruno@clisp.org>
46185
46186         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
46187         *resultp is 0.
46188
46189         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
46190         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
46191         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
46192         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
46193
46194         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
46195         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
46196         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
46197         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
46198         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
46199         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
46200
46201 2007-01-24  Bruno Haible  <bruno@clisp.org>
46202
46203         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
46204         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
46205         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
46206         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
46207         gl_FUNC_FTS_CORE.
46208         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
46209         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
46210         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
46211         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
46212         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
46213         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
46214         gl_FUNC_FCHOWNAT.
46215         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
46216         gl_FUNC_STRFTIME.
46217         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
46218         Reported by Ralf Wildenhues.
46219
46220 2007-01-24  Bruno Haible  <bruno@clisp.org>
46221
46222         Drop AC_REQUIRE calls that are redundant with the module dependencies.
46223         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
46224         gl_GETADDRINFO.
46225         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
46226         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
46227         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
46228
46229 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
46230
46231         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
46232         Don't use 'exit'; just return from 'main'.
46233         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
46234
46235         * lib/fnmatch_.h: Readjust white space and comments to match
46236         glibc, to avoid spurious diffs.
46237
46238 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46239
46240         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
46241         2004-12-01 change by Jakub Jelinek, since this code won't compile
46242         if !LIBC.  Problem reported by Bob Proulx.
46243
46244 2007-01-23  Bruno Haible  <bruno@clisp.org>
46245
46246         * lib/striconveh.c: Include c-strcaseeq.h.
46247         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
46248         * modules/striconveh (Depends-on): Add c-strcaseeq.
46249
46250 2007-01-23  Bruno Haible  <bruno@clisp.org>
46251
46252         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
46253
46254         * modules/c-strcaseeq: New file.
46255         * lib/c-strcaseeq.h: New file.
46256
46257         * modules/streq: New file.
46258         * lib/streq.h: New file.
46259
46260 2007-01-23  Bruno Haible  <bruno@clisp.org>
46261
46262         * modules/striconveha-tests: New file.
46263         * tests/test-striconveha.c: New file.
46264
46265         * lib/striconveha.h: Include <stdbool.h>.
46266         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
46267         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
46268         (mem_iconveha_notranslit): Renamed from mem_iconveha.
46269         (mem_iconveha): New function.
46270         (str_iconveha_notranslit): Renamed from str_iconveha.
46271         (str_iconveha): New function.
46272         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
46273         c-strcase.
46274
46275 2007-01-23  Bruno Haible  <bruno@clisp.org>
46276
46277         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
46278         encodings without forgiving before trying any encoding with handler.
46279         (str_iconveha): Try all encodings without forgiving before trying any
46280         encoding with handler.
46281
46282 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46283
46284         Import the following changes from libc.
46285
46286         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46287
46288         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
46289
46290         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
46291
46292         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
46293         normal_bracket label.
46294
46295         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
46296
46297         [BZ #361]
46298         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
46299         to normal_bracket after fetching the next character.
46300
46301 2007-01-22  Bruno Haible  <bruno@clisp.org>
46302
46303         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
46304         argument.
46305         * lib/striconveh.c (iconv_carefully_1): New function.
46306         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
46307         argument.
46308         (str_cd_iconveh): Update.
46309         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
46310         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
46311         * tests/test-striconveh.c (MAGIC): New macro.
46312         (new_offsets): New function.
46313         (main): Test call with and without offsets.
46314
46315 2007-01-22  Bruno Haible  <bruno@clisp.org>
46316
46317         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
46318         * modules/sys_select (Makefile.am): Likewise.
46319         * modules/sys_socket (Makefile.am): Likewise.
46320         * modules/sys_time (Makefile.am): Likewise.
46321
46322 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
46323
46324         * modules/gettimeofday (License): Change from GPL to LGPL, since
46325         gettimeofday is a library function.
46326
46327 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46328
46329         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
46330
46331 2007-01-21  Bruno Haible  <bruno@clisp.org>
46332
46333         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
46334
46335 2007-01-21  Bruno Haible  <bruno@clisp.org>
46336
46337         * modules/striconveha: New file.
46338         * lib/striconveha.h: New file.
46339         * lib/striconveha.c: New file.
46340         * MODULES.html.sh (Internationalization functions): Add striconveha.
46341         * lib/striconv.c (str_iconv): Optimize the case of an empty input
46342         string.
46343         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
46344
46345 2007-01-21  Bruno Haible  <bruno@clisp.org>
46346
46347         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
46348         * lib/striconveh.c (str_iconveh): Likewise.
46349
46350 2007-01-21  Bruno Haible  <bruno@clisp.org>
46351
46352         * lib/striconveh.h (mem_iconveh): New declaration.
46353         * lib/striconveh.c (mem_iconveh): New function.
46354         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
46355
46356 2007-01-21  Bruno Haible  <bruno@clisp.org>
46357
46358         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
46359
46360         * lib/striconveh.h (mem_cd_iconveh): Change specification.
46361         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
46362         original result buffer.
46363         (str_cd_iconveh): Update.
46364         * tests/test-striconveh.c (main): Update.
46365
46366         * lib/striconv.h (mem_cd_iconv): Change specification.
46367         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
46368         result buffer.
46369         (str_cd_iconv): Update.
46370         * tests/test-striconv.c (main): Update.
46371
46372 2007-01-21  Bruno Haible  <bruno@clisp.org>
46373
46374         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
46375
46376 2007-01-20  Jim Meyering  <jim@meyering.net>
46377
46378         * lib/userspec.c (parse_with_separator): If a user or group string
46379         starts with "+", skip the corresponding name-to-ID look-up, since
46380         such a look-up must fail: user and group names may not include "+".
46381
46382 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
46383
46384         * lib/poll.c: Include sys/time.h and time.h unconditionally,
46385         since we now assume the sys_time module.
46386         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
46387         check for sys/time.h; no longer needed.
46388         * modules/poll (Depends-on): Depend on sys_time.
46389
46390 2007-01-18  Bruno Haible  <bruno@clisp.org>
46391
46392         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
46393         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46394
46395         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
46396         gettimeofday.
46397
46398         * tests/test-gettimeofday.c: Include <time.h>.
46399         (dummy): Remove variable.
46400
46401         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
46402         gl_HEADER_SYS_TIME_H.
46403         (gl_HEADER_SYS_TIME_H): New macro.
46404
46405         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
46406         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46407         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
46408         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
46409         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46410         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
46411         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
46412         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46413         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
46414         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
46415         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46416
46417         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
46418         last change; it caused a compilation error when cross-compiling to
46419         Cygwin.
46420
46421 2007-01-18  Jim Meyering  <jim@meyering.net>
46422
46423         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
46424         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
46425         than the race-prone "test -d sys || mkdir sys".
46426         (configure.ac): Use AC_PROG_MKDIR_P.
46427         * modules/sys_select: Likewise.
46428         * modules/sys_socket: Likewise.
46429         * modules/sys_time: Likewise.
46430
46431 2007-01-18  Eric Blake  <ebb9@byu.net>
46432
46433         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
46434         replace gettimeofday.
46435         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
46436         name, to avoid infinite recursion.
46437
46438 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
46439
46440         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
46441         module sys_time.
46442         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
46443         assume timespec.h defines struct timeval.
46444         * lib/settime.c: Likewise.
46445         * lib/utimens.c: Likewise.
46446         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
46447         since we now assume the gettimeofday module.
46448         * lib/tempname.c (__gen_tempname): Likewise.
46449         * lib/gettimeofday.h: Remove.
46450         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
46451         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
46452         Include <time.h>, for 'time()'.
46453         (localtime_buffer_addr): Also use this workaround if
46454         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
46455         to simplify the uses.  All uses changed.
46456         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
46457         that #undef is inside {}, and 'const' follows type name consistently.
46458         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
46459         (gettimeofday): Do not use the maximum possible value for
46460         tv->tv_usec, since that might break usages other than ls.c.
46461         Instead, we'll leave ls.c alone.  This undoes today's patch
46462         by Bruno.  Add a compile-time warning for 1s-clock resolution;
46463         we've never observed the problem but might as well keep the
46464         canary.
46465         * lib/nanosleep.c: Include timespec.h first, for interface check.
46466         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
46467         now assume the sys_time module.
46468         * lib/tempname.c: Likewise.
46469         * lib/timespec.h: Likewise.
46470         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
46471         needed.
46472         * lib/strftime.c: Likewise.
46473         * lib/timespec.h: Likewise.
46474         * lib/posixtm.c: Include posixtm.h first, for interface check.
46475         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
46476         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
46477         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
46478         * lib/sys_time_.h: New file.
46479         * lib/timespec.h (struct timespec): Use long int, not long.
46480         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46481         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
46482         Remove obsolescent call to AC_HEADER_TIME.
46483         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
46484         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46485         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46486         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
46487         Likewise.
46488         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
46489         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
46490         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
46491         into the sys_time module.  Check for gettimeofday just once.
46492         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
46493         for gettimeofday signature to just check the signature.  Merely
46494         compile it, since linking doesn't test signature.  Improve test for
46495         whether gettimeofday.o is actually needed.
46496         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
46497         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
46498         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
46499         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46500         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
46501         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
46502         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
46503         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
46504         than worrying about sys/time.h.
46505         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46506         Don't bother worrying about TIME_WITH_SYS_TIME.
46507         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46508         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
46509         * m4/sys_time_h.m4: New file.
46510         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
46511         Don't include sys/time.h.  Return from main rather than exiting.
46512         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
46513         all uses changed.
46514         * modules/gethrxtime (Depends-on): Add sys_time.
46515         * modules/gettime (Depends-on): Likewise.
46516         * modules/gettimeofday (Depends-on): Likewise.
46517         * modules/nanosleep (Depends-on): Likewise.
46518         * modules/settime (Depends-on): Likewise.
46519         * modules/tempname (Depends-on): Likewise.
46520         * modules/utimens (Depends-on): Likewise.
46521         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
46522         (Include:) Change back to <sys/time.h>.
46523         (Maintainer:) Add self.
46524         * modules/sys_time: New file.
46525         * modules/tempname (Depends-on): Add gettimeofday.
46526         * tests/test-gettimeofday.c: Include <sys/time.h>
46527         rather than gettimeofday.h.
46528
46529 2007-01-17  Bruno Haible  <bruno@clisp.org>
46530
46531         * gnulib-tool (func_get_license): Revert last patch. Instead, let
46532         the license default to GPL.
46533         (func_create_testdir): Don't complain if a module is LGPL and its
46534         tests module depends on GPLed modules.
46535
46536 2007-01-17  Bruno Haible  <bruno@clisp.org>
46537
46538         * lib/gettimeofday.c (gettimeofday): Add code for the case
46539         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
46540         maximum possible value for tv->tv_usec, rather than the minimum one.
46541
46542 2005-10-08  Martin Lambers  <marlam@marlam.de>
46543 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46544 2007-01-16  Bruno Haible  <bruno@clisp.org>
46545
46546         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
46547         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
46548         gl_FUNC_GETTIMEOFDAY.
46549         (Include): Add gettimeofday.h.
46550         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
46551         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
46552         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
46553         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
46554         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
46555         * lib/gettimeofday.h: New file.
46556         * lib/gettimeofday.c: Include <sys/timeb.h>.
46557         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
46558         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46559         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
46560         fall back on time().
46561
46562         * tests/test-gettimeofday.c: New file.
46563         * modules/gettimeofday-tests: New file.
46564
46565 2007-01-16  Eric Blake  <ebb9@byu.net>
46566
46567         * modules/fnmatch (Depends-on): Depend on wchar.
46568         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
46569         * m4/fnmatch.m4: Likewise.
46570         * modules/mbchar (Makefile.am): Assume <wchar.h>.
46571         * m4/mbchar.m4: Likewise.
46572         * modules/mbswidth (Depends-on): Depend on wchar.
46573         * lib/mbswidth.c: Assume <wchar.h>.
46574         * m4/mbswidth.m4: Likewise.
46575         * modules/quotearg (Depends-on): Depend on wchar.
46576         * lib/quotearg.c: Assume <wchar.h>.
46577         * m4/quotearg.m4: Likewise.
46578         * modules/regex (Depends-on): Depend on wchar.
46579         * lib/regex_internal.h: Assume <wchar.h>.
46580         * m4/regex.m4: Likewise.
46581         * modules/stdint (Depends-on): Depend on wchar.
46582         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
46583         * m4/stdint.m4: Likewise.
46584         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
46585         * modules/strftime (Depends-on): Depend on wchar.
46586         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
46587         * modules/strtol (Depends-on): Depend on wchar.
46588         * lib/strtol.c: Assume <wchar.h>.
46589         * modules/wcwidth (Depends-on): Depend on wchar.
46590         * lib/wcwidth.h: Assume <wchar.h>.
46591         * m4/wcwidth.m4: Likewise.
46592
46593 2007-01-16  Bruno Haible  <bruno@clisp.org>
46594
46595         * modules/csharpexec-script: New, created from...
46596         * modules/csharpexec: ... this.
46597
46598 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46599
46600         * modules/javaexec-script: New, created from...
46601         * modules/javaexec: ... this.
46602
46603 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46604
46605         * modules/poll (Dependencies): Add sys_select.
46606
46607 2007-01-15  Jim Meyering  <jim@meyering.net>
46608
46609         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
46610         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
46611         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
46612         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
46613
46614 2007-01-15  Bruno Haible  <bruno@clisp.org>
46615
46616         * modules/striconveh: New file.
46617         * lib/striconveh.h: New file.
46618         * lib/striconveh.c: New file.
46619         * MODULES.html.sh (Internationalization functions): Add striconveh.
46620
46621         * modules/striconveh-tests: New file.
46622         * tests/test-striconveh.c: New file.
46623
46624 2007-01-15  Bruno Haible  <bruno@clisp.org>
46625
46626         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
46627         not from GNU libiconv or GNU libc.
46628
46629 2007-01-15  Bruno Haible  <bruno@clisp.org>
46630
46631         * doc/gnulib-intro.texi (Copyright): Explain the different license
46632         terms for module descriptions, autoconf macros, tests, documentation.
46633
46634 2007-01-14  Bruno Haible  <bruno@clisp.org>
46635
46636         * modules/striconv-tests: New file.
46637         * tests/test-striconv.c: New file.
46638
46639 2007-01-14  Bruno Haible  <bruno@clisp.org>
46640
46641         * modules/iconv-tests: New file.
46642         * tests/test-iconv.c: New file.
46643
46644 2007-01-14  Bruno Haible  <bruno@clisp.org>
46645
46646         * gnulib-tool (func_get_license): For test modules, use the license of
46647         the main module.
46648
46649 2007-01-14  Bruno Haible  <bruno@clisp.org>
46650
46651         * modules/iconv (Include): Clarify that <iconv.h> can only be included
46652         if iconv is found to exist.
46653
46654 2007-01-14  Bruno Haible  <bruno@clisp.org>
46655
46656         * modules/c-ctype-tests: New file.
46657         * tests/test-c-ctype.c: New file.
46658
46659 2007-01-14  Bruno Haible  <bruno@clisp.org>
46660
46661         * modules/binary-io-tests: New file.
46662         * tests/test-binary-io.sh: New file.
46663         * tests/test-binary-io.c: New file.
46664
46665 2007-01-14  Bruno Haible  <bruno@clisp.org>
46666
46667         * modules/array-oset-tests: New file.
46668         * tests/test-array_oset.c: New file.
46669
46670 2007-01-14  Bruno Haible  <bruno@clisp.org>
46671
46672         * modules/array-list-tests: New file.
46673         * tests/test-array_list.c: New file.
46674
46675 2007-01-14  Bruno Haible  <bruno@clisp.org>
46676
46677         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
46678         and make.
46679         Reported by Simon Josefsson in
46680         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
46681
46682 2007-01-14  Bruno Haible  <bruno@clisp.org>
46683
46684         * modules/allocsa-tests: New file.
46685         * tests/test-allocsa.c: New file.
46686
46687 2007-01-14  Bruno Haible  <bruno@clisp.org>
46688
46689         * modules/fchdir (Depends-on): Add absolute-header.
46690         * modules/unistd (Depends-on): Likewise.
46691
46692 2006-12-30  Bruno Haible  <bruno@clisp.org>
46693
46694         * modules/fchdir: New file.
46695         * modules/unistd (Files): Add lib/unistd_.h.
46696         (Makefile.am): Generate unistd.h from unistd_.h.
46697         * lib/fchdir.c: New file.
46698         * lib/dirent_.h: New file.
46699         * lib/unistd_.h: New file.
46700         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
46701         * m4/fchdir.m4: New file.
46702         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
46703         (gl_HEADER_UNISTD): Invoke it.
46704         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
46705         function.
46706         * lib/backupfile.c (opendir, closedir): Undefine.
46707         * lib/chown.c (open, close): Undefine.
46708         * lib/clean-temp.c (open, close): Undefine.
46709         * lib/copy-file.c (open, close): Undefine.
46710         * lib/execute.c (open, close): Undefine.
46711         * lib/fsusage.c (open, close): Undefine.
46712         * lib/gc-gnulib.c (open, close): Undefine.
46713         * lib/getcwd.c (opendir, closedir): Undefine.
46714         * lib/glob.c (opendir, closedir): Undefine.
46715         * lib/javacomp.c (open, close): Undefine.
46716         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
46717         * lib/openat-proc.c (open, close): Undefine.
46718         * lib/pagealign_alloc.c (open, close): Undefine.
46719         * lib/pipe.c (open, close): Undefine.
46720         * lib/progreloc.c (open, close): Undefine.
46721         * lib/savedir.c (opendir, closedir): Undefine.
46722         * lib/utime.c (open, close): Undefine.
46723         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
46724
46725 2007-01-10  Bruno Haible  <bruno@clisp.org>
46726
46727         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
46728
46729 2007-01-12  Eric Blake  <ebb9@byu.net>
46730
46731         Provide a robust <wchar.h>.  Further simplifications are now
46732         possible in other modules, but not included here.
46733         * modules/wchar: New module.
46734         * m4/wchar.m4: New file.
46735         * lib/wchar_.h: Likewise.
46736         * modules/mbchar (Depends-on): Depend on wchar, as the first use
46737         of the new module.
46738         * MODULES.html.sh (Extended multibyte and wide character utilities):
46739         New section.
46740
46741 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
46742
46743         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
46744         to a reasonable default for memory allocation.
46745         (xreadlink): Don't allocate a huge buffer, to work around a buggy
46746         file system that reports garbage st_size values for symlinks.
46747         Problem reported by Liyang Hu.
46748
46749 2007-01-11  Simon Josefsson  <simon@josefsson.org>
46750
46751         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
46752         Emacs .#* auto-save files).
46753
46754 2007-01-11  Bruno Haible  <bruno@clisp.org>
46755
46756         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
46757         directory.
46758
46759 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46760
46761         Use @...@ consistently in lib/wctype_.h.
46762         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
46763         on it being set to 1 or 0.
46764         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
46765         go back to AC_SUBSTing it.
46766         * modules/wctype (Makefile.am): Undo previous change.
46767
46768 2007-01-10  Eric Blake  <ebb9@byu.net>
46769
46770         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
46771         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
46772         * modules/wctype (Makefile.am): Likewise.
46773         Reported by Chris McGuire.
46774
46775 2007-01-10  Jim Meyering  <jim@meyering.net>
46776
46777         fts.c: a small readability/maintainability improvement
46778         * lib/fts.c (fts_read): Make this code slightly more readable and
46779         maintainable by hoisting the "sp->fts_cur = p" assignments to
46780         immediately follow the statements that set P.  Derived from
46781         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
46782
46783 2007-01-10  Eric Blake  <ebb9@byu.net>
46784
46785         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
46786         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
46787         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46788         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46789         Reported by Chris McGuire.
46790
46791 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46792
46793         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
46794         in sed script.
46795
46796 2007-01-09  Bruno Haible  <bruno@clisp.org>
46797
46798         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
46799         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
46800         variables.
46801         (func_module): Use them.
46802
46803 2007-01-09  Bruno Haible  <bruno@clisp.org>
46804
46805         * modules/unistr/base: New file.
46806         * lib/unistr.h: New file.
46807
46808         * modules/unistr/u8-to-u16: New file.
46809         * lib/unistr/u8-to-u16.c: New file.
46810
46811         * modules/unistr/u8-to-u32: New file.
46812         * lib/unistr/u8-to-u32.c: New file.
46813
46814         * modules/unistr/u16-to-u8: New file.
46815         * lib/unistr/u16-to-u8.c: New file.
46816
46817         * modules/unistr/u16-to-u32: New file.
46818         * lib/unistr/u16-to-u32.c: New file.
46819
46820         * modules/unistr/u32-to-u8: New file.
46821         * lib/unistr/u32-to-u8.c: New file.
46822
46823         * modules/unistr/u32-to-u16: New file.
46824         * lib/unistr/u32-to-u16.c: New file.
46825
46826         * modules/unistr/u8-check: New file.
46827         * modules/unistr/u16-check: New file.
46828         * modules/unistr/u32-check: New file.
46829         * lib/unistr/u8-check.c: New file.
46830         * lib/unistr/u16-check.c: New file.
46831         * lib/unistr/u32-check.c: New file.
46832
46833         * modules/unistr/u8-chr: New file.
46834         * modules/unistr/u16-chr: New file.
46835         * modules/unistr/u32-chr: New file.
46836         * lib/unistr/u8-chr.c: New file.
46837         * lib/unistr/u16-chr.c: New file.
46838         * lib/unistr/u32-chr.c: New file.
46839
46840         * modules/unistr/u8-cmp: New file.
46841         * modules/unistr/u16-cmp: New file.
46842         * modules/unistr/u32-cmp: New file.
46843         * lib/unistr/u8-cmp.c: New file.
46844         * lib/unistr/u16-cmp.c: New file.
46845         * lib/unistr/u32-cmp.c: New file.
46846
46847         * modules/unistr/u8-cpy: New file.
46848         * modules/unistr/u16-cpy: New file.
46849         * modules/unistr/u32-cpy: New file.
46850         * lib/unistr/u8-cpy.c: New file.
46851         * lib/unistr/u16-cpy.c: New file.
46852         * lib/unistr/u32-cpy.c: New file.
46853         * lib/unistr/u-cpy.h: New file.
46854
46855         * modules/unistr/u8-cpy-alloc: New file.
46856         * modules/unistr/u16-cpy-alloc: New file.
46857         * modules/unistr/u32-cpy-alloc: New file.
46858         * lib/unistr/u8-cpy-alloc.c: New file.
46859         * lib/unistr/u16-cpy-alloc.c: New file.
46860         * lib/unistr/u32-cpy-alloc.c: New file.
46861         * lib/unistr/u-cpy-alloc.h: New file.
46862
46863         * modules/unistr/u8-endswith: New file.
46864         * modules/unistr/u16-endswith: New file.
46865         * modules/unistr/u32-endswith: New file.
46866         * lib/unistr/u8-endswith.c: New file.
46867         * lib/unistr/u16-endswith.c: New file.
46868         * lib/unistr/u32-endswith.c: New file.
46869         * lib/unistr/u-endswith.h: New file.
46870
46871         * modules/unistr/u8-mblen: New file.
46872         * modules/unistr/u16-mblen: New file.
46873         * modules/unistr/u32-mblen: New file.
46874         * lib/unistr/u8-mblen.c: New file.
46875         * lib/unistr/u16-mblen.c: New file.
46876         * lib/unistr/u32-mblen.c: New file.
46877
46878         * modules/unistr/u8-mbtouc: New file.
46879         * modules/unistr/u16-mbtouc: New file.
46880         * modules/unistr/u32-mbtouc: New file.
46881         * lib/unistr/u8-mbtouc.c: New file.
46882         * lib/unistr/u16-mbtouc.c: New file.
46883         * lib/unistr/u32-mbtouc.c: New file.
46884
46885         * modules/unistr/u8-mbtouc-safe: New file.
46886         * modules/unistr/u16-mbtouc-safe: New file.
46887         * modules/unistr/u32-mbtouc-safe: New file.
46888         * lib/unistr/u8-mbtouc-safe.c: New file.
46889         * lib/unistr/u16-mbtouc-safe.c: New file.
46890         * lib/unistr/u32-mbtouc-safe.c: New file.
46891
46892         * modules/unistr/u8-move: New file.
46893         * modules/unistr/u16-move: New file.
46894         * modules/unistr/u32-move: New file.
46895         * lib/unistr/u8-move.c: New file.
46896         * lib/unistr/u16-move.c: New file.
46897         * lib/unistr/u32-move.c: New file.
46898         * lib/unistr/u-move.h: New file.
46899
46900         * modules/unistr/u8-next: New file.
46901         * modules/unistr/u16-next: New file.
46902         * modules/unistr/u32-next: New file.
46903         * lib/unistr/u8-next.c: New file.
46904         * lib/unistr/u16-next.c: New file.
46905         * lib/unistr/u32-next.c: New file.
46906
46907         * modules/unistr/u8-prev: New file.
46908         * modules/unistr/u16-prev: New file.
46909         * modules/unistr/u32-prev: New file.
46910         * lib/unistr/u8-prev.c: New file.
46911         * lib/unistr/u16-prev.c: New file.
46912         * lib/unistr/u32-prev.c: New file.
46913
46914         * modules/unistr/u8-set: New file.
46915         * modules/unistr/u16-set: New file.
46916         * modules/unistr/u32-set: New file.
46917         * lib/unistr/u8-set.c: New file.
46918         * lib/unistr/u16-set.c: New file.
46919         * lib/unistr/u32-set.c: New file.
46920         * lib/unistr/u-set.h: New file.
46921
46922         * modules/unistr/u8-startswith: New file.
46923         * modules/unistr/u16-startswith: New file.
46924         * modules/unistr/u32-startswith: New file.
46925         * lib/unistr/u8-startswith.c: New file.
46926         * lib/unistr/u16-startswith.c: New file.
46927         * lib/unistr/u32-startswith.c: New file.
46928         * lib/unistr/u-startswith.h: New file.
46929
46930         * modules/unistr/u8-stpcpy: New file.
46931         * modules/unistr/u16-stpcpy: New file.
46932         * modules/unistr/u32-stpcpy: New file.
46933         * lib/unistr/u8-stpcpy.c: New file.
46934         * lib/unistr/u16-stpcpy.c: New file.
46935         * lib/unistr/u32-stpcpy.c: New file.
46936         * lib/unistr/u-stpcpy.h: New file.
46937
46938         * modules/unistr/u8-stpncpy: New file.
46939         * modules/unistr/u16-stpncpy: New file.
46940         * modules/unistr/u32-stpncpy: New file.
46941         * lib/unistr/u8-stpncpy.c: New file.
46942         * lib/unistr/u16-stpncpy.c: New file.
46943         * lib/unistr/u32-stpncpy.c: New file.
46944         * lib/unistr/u-stpncpy.h: New file.
46945
46946         * modules/unistr/u8-strcat: New file.
46947         * modules/unistr/u16-strcat: New file.
46948         * modules/unistr/u32-strcat: New file.
46949         * lib/unistr/u8-strcat.c: New file.
46950         * lib/unistr/u16-strcat.c: New file.
46951         * lib/unistr/u32-strcat.c: New file.
46952         * lib/unistr/u-strcat.h: New file.
46953
46954         * modules/unistr/u8-strchr: New file.
46955         * modules/unistr/u16-strchr: New file.
46956         * modules/unistr/u32-strchr: New file.
46957         * lib/unistr/u8-strchr.c: New file.
46958         * lib/unistr/u16-strchr.c: New file.
46959         * lib/unistr/u32-strchr.c: New file.
46960
46961         * modules/unistr/u8-strcmp: New file.
46962         * modules/unistr/u16-strcmp: New file.
46963         * modules/unistr/u32-strcmp: New file.
46964         * lib/unistr/u8-strcmp.c: New file.
46965         * lib/unistr/u16-strcmp.c: New file.
46966         * lib/unistr/u32-strcmp.c: New file.
46967
46968         * modules/unistr/u8-strcpy: New file.
46969         * modules/unistr/u16-strcpy: New file.
46970         * modules/unistr/u32-strcpy: New file.
46971         * lib/unistr/u8-strcpy.c: New file.
46972         * lib/unistr/u16-strcpy.c: New file.
46973         * lib/unistr/u32-strcpy.c: New file.
46974         * lib/unistr/u-strcpy.h: New file.
46975
46976         * modules/unistr/u8-strcspn: New file.
46977         * modules/unistr/u16-strcspn: New file.
46978         * modules/unistr/u32-strcspn: New file.
46979         * lib/unistr/u8-strcspn.c: New file.
46980         * lib/unistr/u16-strcspn.c: New file.
46981         * lib/unistr/u32-strcspn.c: New file.
46982         * lib/unistr/u-strcspn.h: New file.
46983
46984         * modules/unistr/u8-strdup: New file.
46985         * modules/unistr/u16-strdup: New file.
46986         * modules/unistr/u32-strdup: New file.
46987         * lib/unistr/u8-strdup.c: New file.
46988         * lib/unistr/u16-strdup.c: New file.
46989         * lib/unistr/u32-strdup.c: New file.
46990         * lib/unistr/u-strdup.h: New file.
46991
46992         * modules/unistr/u8-strlen: New file.
46993         * modules/unistr/u16-strlen: New file.
46994         * modules/unistr/u32-strlen: New file.
46995         * lib/unistr/u8-strlen.c: New file.
46996         * lib/unistr/u16-strlen.c: New file.
46997         * lib/unistr/u32-strlen.c: New file.
46998         * lib/unistr/u-strlen.h: New file.
46999
47000         * modules/unistr/u8-strmblen: New file.
47001         * modules/unistr/u16-strmblen: New file.
47002         * modules/unistr/u32-strmblen: New file.
47003         * lib/unistr/u8-strmblen.c: New file.
47004         * lib/unistr/u16-strmblen.c: New file.
47005         * lib/unistr/u32-strmblen.c: New file.
47006
47007         * modules/unistr/u8-strmbtouc: New file.
47008         * modules/unistr/u16-strmbtouc: New file.
47009         * modules/unistr/u32-strmbtouc: New file.
47010         * lib/unistr/u8-strmbtouc.c: New file.
47011         * lib/unistr/u16-strmbtouc.c: New file.
47012         * lib/unistr/u32-strmbtouc.c: New file.
47013
47014         * modules/unistr/u8-strncat: New file.
47015         * modules/unistr/u16-strncat: New file.
47016         * modules/unistr/u32-strncat: New file.
47017         * lib/unistr/u8-strncat.c: New file.
47018         * lib/unistr/u16-strncat.c: New file.
47019         * lib/unistr/u32-strncat.c: New file.
47020         * lib/unistr/u-strncat.h: New file.
47021
47022         * modules/unistr/u8-strncmp: New file.
47023         * modules/unistr/u16-strncmp: New file.
47024         * modules/unistr/u32-strncmp: New file.
47025         * lib/unistr/u8-strncmp.c: New file.
47026         * lib/unistr/u16-strncmp.c: New file.
47027         * lib/unistr/u32-strncmp.c: New file.
47028
47029         * modules/unistr/u8-strncpy: New file.
47030         * modules/unistr/u16-strncpy: New file.
47031         * modules/unistr/u32-strncpy: New file.
47032         * lib/unistr/u8-strncpy.c: New file.
47033         * lib/unistr/u16-strncpy.c: New file.
47034         * lib/unistr/u32-strncpy.c: New file.
47035         * lib/unistr/u-strncpy.h: New file.
47036
47037         * modules/unistr/u8-strnlen: New file.
47038         * modules/unistr/u16-strnlen: New file.
47039         * modules/unistr/u32-strnlen: New file.
47040         * lib/unistr/u8-strnlen.c: New file.
47041         * lib/unistr/u16-strnlen.c: New file.
47042         * lib/unistr/u32-strnlen.c: New file.
47043         * lib/unistr/u-strnlen.h: New file.
47044
47045         * modules/unistr/u8-strpbrk: New file.
47046         * modules/unistr/u16-strpbrk: New file.
47047         * modules/unistr/u32-strpbrk: New file.
47048         * lib/unistr/u8-strpbrk.c: New file.
47049         * lib/unistr/u16-strpbrk.c: New file.
47050         * lib/unistr/u32-strpbrk.c: New file.
47051         * lib/unistr/u-strpbrk.h: New file.
47052
47053         * modules/unistr/u8-strrchr: New file.
47054         * modules/unistr/u16-strrchr: New file.
47055         * modules/unistr/u32-strrchr: New file.
47056         * lib/unistr/u8-strrchr.c: New file.
47057         * lib/unistr/u16-strrchr.c: New file.
47058         * lib/unistr/u32-strrchr.c: New file.
47059
47060         * modules/unistr/u8-strspn: New file.
47061         * modules/unistr/u16-strspn: New file.
47062         * modules/unistr/u32-strspn: New file.
47063         * lib/unistr/u8-strspn.c: New file.
47064         * lib/unistr/u16-strspn.c: New file.
47065         * lib/unistr/u32-strspn.c: New file.
47066         * lib/unistr/u-strspn.h: New file.
47067
47068         * modules/unistr/u8-strstr: New file.
47069         * modules/unistr/u16-strstr: New file.
47070         * modules/unistr/u32-strstr: New file.
47071         * lib/unistr/u8-strstr.c: New file.
47072         * lib/unistr/u16-strstr.c: New file.
47073         * lib/unistr/u32-strstr.c: New file.
47074         * lib/unistr/u-strstr.h: New file.
47075
47076         * modules/unistr/u8-strtok: New file.
47077         * modules/unistr/u16-strtok: New file.
47078         * modules/unistr/u32-strtok: New file.
47079         * lib/unistr/u8-strtok.c: New file.
47080         * lib/unistr/u16-strtok.c: New file.
47081         * lib/unistr/u32-strtok.c: New file.
47082         * lib/unistr/u-strtok.h: New file.
47083
47084         * modules/unistr/u8-uctomb: New file.
47085         * modules/unistr/u16-uctomb: New file.
47086         * modules/unistr/u32-uctomb: New file.
47087         * lib/unistr/u8-uctomb.c: New file.
47088         * lib/unistr/u16-uctomb.c: New file.
47089         * lib/unistr/u32-uctomb.c: New file.
47090
47091         * MODULES.html.sh (Unicode string functions): Add the new modules.
47092
47093 2007-01-08  Bruno Haible  <bruno@clisp.org>
47094
47095         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
47096         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
47097         subdirectories.
47098
47099 2007-01-08  Karl Berry  <karl@gnu.org>
47100
47101         * doc/error.texi: mention that main() fns must set program_name
47102         when progname is used.
47103
47104 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
47105
47106         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
47107         WCTYPE_H is empty, for the benefit of builds from non-distclean
47108         directories.  Problem reported by Eric Blake in
47109         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
47110
47111 2007-01-08  Bruno Haible  <bruno@clisp.org>
47112
47113         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
47114         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
47115         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
47116         PROVIDE_CANONICALIZE_FILENAME_MODE.
47117         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
47118
47119 2007-01-08  Bruno Haible  <bruno@clisp.org>
47120
47121         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
47122         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
47123         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
47124         * lib/fts.c: Likewise.
47125         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
47126
47127 2006-12-25  Bruno Haible  <bruno@clisp.org>
47128
47129         * modules/utf8-ucs4-safe: New file.
47130         * lib/utf8-ucs4-safe.h: New file.
47131         * lib/unistr/utf8-ucs4-safe.c: New file.
47132
47133         * modules/utf16-ucs4-safe: New file.
47134         * lib/utf16-ucs4-safe.h: New file.
47135         * lib/unistr/utf16-ucs4-safe.c: New file.
47136
47137         * MODULES.html.sh (Unicode string functions): Add the new modules.
47138
47139 2007-01-08  Bruno Haible  <bruno@clisp.org>
47140
47141         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
47142         (Depends-on): Add unitypes.
47143         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
47144         (u8_mbtouc_aux): Move out to separate file.
47145         (u8_mbtouc): Use ucs4_t, uint8_t types.
47146         * lib/unistr/utf8-ucs4.c: New file.
47147
47148         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
47149         (Depends-on): Add unitypes.
47150         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
47151         (u16_mbtouc_aux): Move out to separate file.
47152         (u16_mbtouc): Use ucs4_t, uint16_t types.
47153         * lib/unistr/utf16-ucs4.c: New file.
47154
47155         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
47156         (Depends-on): Add unitypes.
47157         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
47158         (u8_uctomb_aux): Move out to separate file.
47159         (u8_uctomb): Use ucs4_t, uint8_t types.
47160         * lib/unistr/ucs4-utf8.c: New file.
47161
47162         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
47163         (Depends-on): Add unitypes.
47164         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
47165         (u16_uctomb_aux): Move out to separate file.
47166         (u16_uctomb): Use ucs4_t, uint16_t types.
47167         * lib/unistr/ucs4-utf16.c: New file.
47168
47169 2006-12-25  Bruno Haible  <bruno@clisp.org>
47170
47171         * modules/unitypes: New file.
47172         * lib/unitypes.h: New file.
47173         * MODULES.html.sh (func_all_modules): New section "Unicode string
47174         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
47175         this section. Add unitypes.
47176
47177 2007-01-08  Bruno Haible  <bruno@clisp.org>
47178
47179         Avoid variable names that conflict with those from libtool.
47180         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
47181         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
47182         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
47183         library_names_spec to acl_library_names_spec, hardcode_* to
47184         acl_hardcode_*.
47185         Reported by Ralf Wildenhues.
47186
47187 2007-01-08  Bruno Haible  <bruno@clisp.org>
47188
47189         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
47190         definition.
47191         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
47192         definition.
47193         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
47194         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
47195         definition.
47196         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
47197         definition.
47198         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
47199         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
47200         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
47201         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
47202         definition.
47203         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
47204         definition.
47205         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
47206         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
47207         GC_USE_<algorithm>.
47208         * lib/gc-libgcrypt.c: Likewise.
47209         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
47210         * modules/gc-arctwo (configure.ac): Likewise.
47211         * modules/gc-des (configure.ac): Likewise.
47212         * modules/gc-hmac-md5 (configure.ac): Likewise.
47213         * modules/gc-hmac-sha1 (configure.ac): Likewise.
47214         * modules/gc-md2 (configure.ac): Likewise.
47215         * modules/gc-md4 (configure.ac): Likewise.
47216         * modules/gc-md5 (configure.ac): Likewise.
47217         * modules/gc-random (configure.ac): Likewise.
47218         * modules/gc-rijndael (configure.ac): Likewise.
47219         * modules/gc-sha1 (configure.ac): Likewise.
47220
47221 2007-01-08  Bruno Haible  <bruno@clisp.org>
47222
47223         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
47224         macro definition.
47225         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
47226         definition.
47227         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
47228         definition.
47229         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
47230         * modules/fcntl-safer (configure.ac): Likewise.
47231         * modules/fopen-safer (configure.ac): Likewise.
47232         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
47233         GNULIB_FWRITEERROR macro definition.
47234
47235 2007-01-08  Bruno Haible  <bruno@clisp.org>
47236
47237         * m4/gnulib-common.m4: New file.
47238         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
47239         (func_get_filelist): Add m4/gnulib-common.m4.
47240
47241 2007-01-08  Bruno Haible  <bruno@clisp.org>
47242
47243         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
47244         command.
47245
47246 2007-01-08  Jim Meyering  <jim@meyering.net>
47247
47248         Use a more robust test for a "can't happen" condition.
47249         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
47250         narrowed the st_size value.  Presuming the "can't happen" condition
47251         is true, that narrowing could conceivably convert an invalid st_size
47252         value into a valid one.  Instead, use a change based on Matthew
47253         Woehlke's original patch.
47254
47255         Slight readability improvement: use an assert-like macro
47256         in place of literal "abort ()" uses.
47257         * lib/fts.c (fts_assert): Define.
47258         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
47259         Use this macro instead of a bare 'abort'.
47260
47261 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
47262
47263         Don't worry about using IRIX 5.3's wctype.h broken definitions;
47264         simply work around them.
47265         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
47266         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
47267         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
47268         declaring.
47269         Don't bother to define as macros, since the standard doesn't require it.
47270         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
47271         longer worry about IRIX 5.3.
47272         (HAVE_WCTYPE_CTMP_BUG): Remove.
47273
47274 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47275
47276         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
47277         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
47278         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
47279         Problems reported by Georg Schwarz for IRIX 5.3.
47280
47281         * gnulib-tool (autoconf_minversion): Take the maximum version number
47282         found, not the minimum.  Problem reported by James Youngman.
47283
47284 2007-01-03  Karl Berry  <karl@gnu.org>
47285
47286         * doc/error.texi: new file, explaining interaction with progname.
47287         * doc/gnulib.texi: include it.  Update copyright.
47288
47289 2007-01-03  Simon Josefsson  <simon@josefsson.org>
47290
47291         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
47292         AC_CANONICAL_HOST, to improve autobuild outputs.
47293
47294 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
47295             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
47296
47297         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
47298         sockets, server sockets, and other file descriptors.  Count errors
47299         to compute the return value.  Reorder the code a bit to be easier
47300         to follow.  Don't set event bits that were not requested (except
47301         POLLERR and POLLHUP).
47302
47303 2007-01-01  Bruno Haible  <bruno@clisp.org>
47304
47305         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
47306
47307 2007-01-03  Jim Meyering  <jim@meyering.net>
47308
47309         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
47310
47311 2007-01-02  Bruno Haible  <bruno@clisp.org>
47312
47313         * modules/settime (Include): Require timespec.h.
47314         * modules/nanosleep (Include): Likewise.
47315
47316 2007-01-01  Bruno Haible  <bruno@clisp.org>
47317
47318         * gnulib-tool (func_emit_copyright_notice): Bump year.
47319         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
47320
47321 2007-01-01  Bruno Haible  <bruno@clisp.org>
47322
47323         Improve support for OpenBSD.
47324         * build-aux/config.rpath (libname_spec): Export.
47325         (library_names_spec): New variable. Export.
47326         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
47327         library_names_spec from the config.rpath output. Locate shared library
47328         through the name pattern in library_names_spec.
47329
47330 2007-01-01  Eric Blake  <ebb9@byu.net>
47331
47332         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
47333
47334 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
47335
47336         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
47337         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
47338         assume the C locale, and avoid an "eval" that could cause trouble.
47339         Problem with SORT reported by Bob Proulx.
47340
47341         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
47342         Define.  Trivial patch from Henning Nielsen Lund, originally
47343         sent to bug-grep@gnu.org today.
47344
47345 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47346
47347         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
47348         struct stat.  Problem reported by Henning Nielsen Lund.
47349         * lib/acl.c: Include acl.h first, to check interface.  Don't
47350         bother to include sys/types.h and sys/stat.h again.
47351
47352 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
47353
47354         Import the following change from libc; problem reported by
47355         Sven Verdoolaege.
47356
47357         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
47358
47359         [BZ #1373]
47360         * lib/argp.h: Remove __NTH for __argp_usage inline function.
47361
47362 2006-12-28  Jim Meyering  <jim@meyering.net>
47363
47364         * build-aux/announce-gen: Do not assume that the package
47365         builds any of tar.gz, tar.bz2, and .xdelta files.
47366         Suggestion from Simon Josefsson.
47367
47368 2006-12-28  Simon Josefsson  <simon@josefsson.org>
47369
47370         * modules/announce-gen: New file.
47371
47372 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
47373
47374         * lib/mbchar.h: Just include <wctype.h>; the wctype module
47375         handles its gotchas now.
47376         * lib/mbswidth.c: Likewise.
47377         * lib/wcwidth.h: Likewise.
47378         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
47379         and iswcntrl; the wctype module does this stuff now.
47380         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47381         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47382         * modules/mbchar (Depends-on): Add wctype.
47383         * modules/mbswidth (Depends-on): Likewise.
47384         * modules/wcwidth (Depends-on): Likewise.
47385
47386 2006-12-27  Eric Blake  <ebb9@byu.net>
47387
47388         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
47389         module uses more than what <wctype.h> is required to provide.
47390
47391 2006-12-26  Eric Blake  <ebb9@byu.net>
47392
47393         * gnulib-tool (sed_extract_prog): Avoid space-tab.
47394
47395 2006-12-26  Eric Blake  <ebb9@byu.net>
47396
47397         * modules/absolute-header: New module.
47398         * modules/fcntl (Depends-on): Depend on it.
47399         * modules/inttypes (Depends-on): Likewise.
47400         * modules/stdint (Depends-on): Likewise.
47401         * modules/sys_stat (Depends-on): Likewise.
47402         * modules/wctype (Depends-on): Likewise.
47403         * MODULES.html.sh (Support for building libraries and
47404         executables): Document it.
47405
47406 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47407
47408         * gnulib-tool (SED): Remove, undoing previous change.
47409         The problem was that it broke coreutils on Solaris, because
47410         "sed --posix" leaked into a makefile.
47411         (sed): New alias, if 'alias' and GNU sed.
47412
47413 2006-12-24  Jim Meyering  <jim@meyering.net>
47414
47415         Work around an fchownat bug in glibc-2.4:
47416         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
47417         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
47418         in spite of the -P option.
47419         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
47420         New macros.
47421         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
47422         * modules/openat (Files): Add lib/fchownat.c.
47423         * lib/openat.c (fchownat): Don't define here.  Move to...
47424         * lib/fchownat.c: ...this new file.
47425
47426 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
47427
47428         Fix bug reported by Bruno Haible in
47429         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
47430         where quotearg.c didn't compile on Mac OS X 10.2 because it
47431         lacks <wchar.h> and wint_t.
47432         * lib/wctype_.h (__wctype_wint_t): New type.
47433         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
47434         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
47435         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
47436         Arg is now of type __wctype_wint_t, not wint_t.
47437         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
47438         substitute HAVE_WINT_T.
47439         * modules/wctype (Files): Add m4/wint_t.m4.
47440         (wctype.h): Substitute HAVE_WINT_T.
47441
47442 2006-12-23  Bruno Haible  <bruno@clisp.org>
47443
47444         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
47445
47446 2006-12-23  Bruno Haible  <bruno@clisp.org>
47447
47448         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
47449         S_ISLNK.
47450         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
47451         mingw.
47452
47453 2006-12-22  Bruno Haible  <bruno@clisp.org>
47454
47455         * lib/copy-file.c: Include acl.h.
47456         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
47457         Close the file descriptors only after being done with copy_acl.
47458         * modules/copy-file (Depends-on): Add acl.
47459
47460 2006-12-22  Bruno Haible  <bruno@clisp.org>
47461
47462         * gnulib-tool (SED): New variable.
47463         Use $SED instead of sed everywhere.
47464
47465 2006-12-22  Bruno Haible  <bruno@clisp.org>
47466
47467         * modules/no-c++: New file.
47468         * m4/no-c++.m4: New file.
47469         * MODULES.html.sh (Support for building libraries and executables):
47470         Add no-c++.
47471
47472 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
47473
47474         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47475         Include <limits.h>, and use its INT_MAX to rewrite the
47476         j loop so that it does not overflow 'int'.  Problem reported by
47477         Ralf Wildenhues in
47478         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
47479         Play it safe by shifting left by 1 rather than multiplying by 2,
47480         as GCC is less likely to optimize this away when the value
47481         is signed (when it assumes overflow leads to undefined behavior).
47482         Also, don't assume time_t uses two's complement.
47483
47484 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
47485
47486         * MODULES.html.sh: New module wctype.
47487         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
47488         * lib/fnmatch.c: Don't bother to include <wchar.h> before
47489         <wctype.h>, since the new wctype module should fix this.
47490         * lib/quotearg.c: Include <wctype.h> unconditionally, since
47491         the wctype module should arrange for it.
47492         * lib/regex_internal.h: Likewise.
47493         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
47494         since the wctype module should handle this now.
47495         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
47496         * modules/fnmatch (Depends-on): Add wctype.
47497         * modules/quotearg (Depends-on): Likewise.
47498         * modules/regex (Depends-on): Likewise.
47499
47500 2006-12-19  Bruno Haible  <bruno@clisp.org>
47501
47502         * lib/strdup.h [C++]: Wrap definitions in extern "C".
47503         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
47504
47505 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47506
47507         * modules/savewd (Depends-on): Fix dependency on fcntl.
47508
47509 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47510
47511         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
47512         conforms to C99, rather than relying on the user's environment
47513         setting of STDINT_H.
47514
47515 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47516         and Eric Blake  <ebb9@byu.net>
47517
47518         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
47519         This is more consistent with the other defines here.
47520         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
47521         Port to z/OS.  Problem reported by Paul Gilmartin.
47522         Change local vars to use gl_ prefix rather than ac_.
47523         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
47524         with other defines.
47525         * modules/double-slash-root: New module.
47526         * modules/dirname (Files): Remove m4/double-slash-root.m4.
47527         (Depends-on): Add double-slash-root.
47528         * MODULES.html.sh (File system functions): Mention new module.
47529
47530 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
47531
47532         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
47533         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
47534         This is for the benefit of gzip, which doesn't do i18n.
47535
47536 2006-12-12  Jim Meyering  <jim@meyering.net>
47537
47538         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
47539         Reported by Andreas Schwab <schwab@suse.de>.
47540
47541 2006-12-12  Bruno Haible  <bruno@clisp.org>
47542
47543         Merge these changes.
47544         2006-09-05  Bruno Haible  <bruno@clisp.org>
47545         * lib/iconvme.c (iconv_string): No need to save and restore errno when
47546         iconv_alloc succeeded.
47547         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
47548         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
47549         test for " && dest " at the end - dest is always != NULL there. Call
47550         iconv with 4xNULL arguments initially, to reset the state. Call iconv
47551         with 2xNULL arguments, also to flush the state storage. Handle the
47552         IRIX iconv behaviour. Realloc the final result, to throw away unused
47553         memory.
47554
47555 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
47556
47557         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
47558         and fchmodat unconditionally, since glibc 2.4 has them.
47559         Problem reported by Arkadiusz Miskiewicz.
47560
47561 2006-12-10  Bruno Haible  <bruno@clisp.org>
47562
47563         * gnulib-tool (func_import): Show the include files only for those
47564         modules that are copied and specified.
47565         Reported by Karl Berry.
47566
47567 2006-12-08  Jim Meyering  <jim@meyering.net>
47568
47569         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
47570         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
47571
47572         * build-aux/announce-gen: Add two new options, both optional:
47573         --bootstrap-tools=TOOL_LIST
47574               a comma-separated list of tools, e.g.,
47575               autoconf,automake,bison,gnulib
47576         --gnulib-snapshot-date=DATE
47577               if gnulib is in the bootstrap tool list,
47578               then report this as the snapshot date.
47579               If not specified, use the current date/time.
47580               If you specify a date here, be sure it's UTC.
47581
47582 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47583
47584         * tests/test-argp-2.sh: Fix test to match actual output.
47585         (func_compare): Fix sed script to be portable.
47586
47587 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
47588
47589         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
47590         workaround for this case.  It is not autoconfigured now; offhand
47591         it's hard to see how to autoconfigure it.
47592
47593 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47594
47595         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
47596         a directory that is about to be chowned.  Such a directory's
47597         initial file permissions should permit the owner only and this
47598         should not be changed until after the chown, since the group and
47599         other bits would be incorrect if they granted permission before
47600         the chown.
47601
47602         Fix porting problem for iswctype reported by Georg Schwarz in:
47603         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
47604         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
47605         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
47606         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
47607         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47608
47609 2006-12-03  Jim Meyering  <jim@meyering.net>
47610
47611         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
47612         p->fts_statp may not yet be defined.
47613         (fts_read): Instead, set it in the caller, once p->fts_statp is
47614         sure to be defined, and corresponds to a top-level directory.
47615         This bug made du -x fail.  Here's the coreutils test case:
47616         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
47617         Reported by Mike Frysinger.
47618
47619 2006-12-01  Jim Meyering  <jim@meyering.net>
47620
47621         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
47622         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
47623         Reported by Simon Josefsson.
47624
47625 2006-11-30  Jim Meyering  <jim@meyering.net>
47626
47627         * m4/warning.m4: Use the all-permissive copyright notice
47628         recommended by RMS (rather than LGPL).
47629         * m4/vararrays.m4: Likewise.
47630         * m4/flexmember.m4: Likewise.
47631
47632 2006-11-29  Bruno Haible  <bruno@clisp.org>
47633
47634         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47635         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
47636         using +=.
47637         Reported by Simon Josefsson <simon@josefsson.org>.
47638
47639 2006-11-28  James Youngman <jay@gnu.org>
47640
47641         * README: Advise users that they might find the bug-gnulib@gnu.org
47642         and autotools-announce@gnu.org mailing lists useful.
47643
47644 2006-11-28  Bruno Haible  <bruno@clisp.org>
47645
47646         * m4/ptrdiff_max.m4: Remove file.
47647
47648 2006-11-21  Bruno Haible  <bruno@clisp.org>
47649
47650         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
47651         _AC_COMPUTE_INT.
47652         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47653         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
47654         _AC_COMPUTE_INT.
47655         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47656         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
47657         _AC_COMPUTE_INT.
47658         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47659
47660 2006-11-28  Jim Meyering  <jim@meyering.net>
47661
47662         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
47663         warning from "gcc -Wshadow" about shadowing the builtin.
47664
47665 2006-11-27  Bruno Haible  <bruno@clisp.org>
47666
47667         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
47668         _AC_COMPUTE_INT.
47669         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47670
47671 2006-11-27  Bruno Haible  <bruno@clisp.org>
47672             Paul Eggert  <eggert@cs.ucla.edu>
47673
47674         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
47675
47676 2006-11-26  Bruno Haible  <bruno@clisp.org>
47677
47678         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47679         noinst_LTLIBRARIES.
47680
47681 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
47682             Bruno Haible  <bruno@clisp.org>
47683
47684         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
47685         if compiling with "gcc -ansi".
47686
47687 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
47688
47689         Fix some incompatibilities with gcc -ansi -pedantic.
47690         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
47691         if compiling pedantically with GCC, unless it's C99 or later.
47692         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
47693         it mishandles gcc -ansi -pedantic as well.
47694         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
47695         if gcc -pedantic.
47696         * lib/regexec.c (check_node_accept_bytes): Don't use auto
47697         initializers for struct if -pedantic, unless it's C99 or later.
47698
47699 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
47700
47701         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
47702         Don't close an fd more than once. Identical atimes indicate
47703         success, not failure.
47704
47705 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
47706
47707         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
47708
47709 2006-11-23  Jim Meyering  <jim@meyering.net>
47710
47711         * build-aux/announce-gen: New file.  From coreutils.
47712
47713 2006-11-22  Jim Meyering  <jim@meyering.net>
47714
47715         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
47716         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
47717         (fts_read): Use a temporary to narrow the overused st_size member
47718         before using it in a switch statement.  Reported by Matthew Woehlke.
47719
47720         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
47721         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
47722
47723 2006-11-20  Bruno Haible  <bruno@clisp.org>
47724
47725         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
47726         changequote instead of pairs of brackets.
47727         Reported by Andreas Schwab <schwab@suse.de>.
47728
47729 2006-11-21  Jim Meyering  <jim@meyering.net>
47730
47731         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
47732         so as to remain compatible with older compilers.
47733         Patch from Michael Deutschmann.
47734
47735 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47736
47737         * MODULES.html.sh (File system functions): Add openat.
47738
47739         * lib/openat.h (rpl_fstatat): New macro, if
47740         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
47741         (fstatat): Define to rpl_fstatat under the same conditions,
47742         unless COMPILING_FSTATAT.
47743         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
47744         seems to have the bug.
47745         * lib/fstatat.c: New file.
47746         * modules/openat (Files): Add it.
47747
47748 2006-11-20  Bruno Haible  <bruno@clisp.org>
47749
47750         * Makefile: New file.
47751
47752 2006-11-20  Jim Meyering  <jim@meyering.net>
47753
47754         The beginnings of syntax-related checks for gnulib.
47755         * lib/Makefile: New file.
47756         * lib/t-idcache: New script.  Ensure that the two halves of
47757         idcache.c stay in sync.
47758
47759         * lib/idcache.c: Adjust comments in user- and group- portions to
47760         be more accurate, and to be consistent with one another.
47761
47762 2006-11-20  Jim Meyering  <jim@meyering.net>
47763
47764         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
47765         continue using the flexible array member (thus, this module performs
47766         half as many malloc calls), with the addition that...
47767         (getgroup, getuser): Consistently record a non-match via an empty
47768         "name" string, and map an empty string match to a NULL return value.
47769         * modules/idcache (Depends-on): Re-add flexmember.
47770
47771         * lib/idcache.c (getuser): Remove all uses of the register keyword.
47772         (getuidbyname, getgroup, getgidbyname): Likewise.
47773
47774         Use cleaner syntax: NULL rather than 0.
47775         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
47776
47777 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47778
47779         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
47780         It mishandled the case where the group was missing.
47781         Problem reported by Greg Schafer.
47782         * modules/idcache: Likewise.
47783
47784 2006-11-18  Jim Meyering  <jim@meyering.net>
47785
47786         * check-module (%exempt_header): Add exception for some
47787         conditionally-included headers.
47788
47789         * modules/i-ring (Depends-on): Add verify.
47790         (License): Change to LGPL.
47791
47792 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47793
47794         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
47795         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
47796         and inttostr.h.  Use snprintf rather than uinttostr, so that
47797         LGPLed code doesn't depend on GPLed.
47798
47799 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47800
47801         * modules/inline (License): Change from GPL to LGPL.
47802
47803 2006-11-17  Jim Meyering  <jim@meyering.net>
47804
47805         * modules/d-type (License): Switch to LGPL.
47806
47807 2006-11-15  Bruno Haible  <bruno@clisp.org>
47808
47809         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
47810
47811 2006-11-15  Eric Blake  <ebb9@byu.net>
47812
47813         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
47814         the module dependency.
47815
47816 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47817             Bruno Haible  <bruno@clisp.org>
47818
47819         * gnulib-tool (func_create_testdir): Add license consistency check.
47820
47821 2006-11-15  Eric Blake  <ebb9@byu.net>
47822
47823         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
47824         random "(cached)" in configure output.
47825
47826 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47827
47828         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
47829         test for conforming inttypes.h is both announced and cached.
47830
47831         * MODULES.html.sh (seen_modules, seen_files): New variables.
47832         (func_module): Rewrite to use a few less gnulib-tool and sed
47833         invocations.  Avoid a couple of quadratic algorithms for ...
47834         (missed_modules, missed_files): ... these, with ...
47835         (func_append, func_tmpdir): ... these new functions, from
47836         gnulib-tool.  Analogously, install traps for cleanup.
47837
47838         * tests/test-gc.c (main): Remove unused variables.
47839         * tests/test-read-file.c: Include stdlib.h, for 'free'.
47840
47841 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
47842
47843         * modules/inttostr (License): Change to LGPL.
47844
47845 2006-11-14  Eric Blake  <ebb9@byu.net>
47846
47847         * modules/tempname (License): Change to LGPL.
47848
47849 2006-11-14  Eric Blake  <ebb9@byu.net>
47850
47851         * doc/functions.texi (Function Portability): *printf functions on
47852         Cygwin now understand all POSIX size specifiers.
47853
47854 2006-11-14  Bruno Haible  <bruno@clisp.org>
47855
47856         * modules/c-ctype (License): Change to LGPL.
47857
47858 2006-11-12  Bruno Haible  <bruno@clisp.org>
47859
47860         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47861         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
47862         for GNOME libraries, for which the include files are installed in
47863         subdirectories of $prefix/include.
47864
47865 2006-11-12  Bruno Haible  <bruno@clisp.org>
47866
47867         * m4/lib-link.m4: Require at least autoconf-2.54.
47868         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
47869         name to underscores for the --with option.
47870
47871 2006-11-13  Bruno Haible  <bruno@clisp.org>
47872
47873         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
47874         the tests directory.
47875         Reported by Ralf Wildenhues.
47876
47877 2006-11-13  Bruno Haible  <bruno@clisp.org>
47878
47879         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
47880         (func_emit_initmacro_end): Undo the override here.
47881         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
47882         Works around the famous automake error in coreutils.
47883
47884 2006-11-13  Eric Blake  <ebb9@byu.net>
47885
47886         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
47887         element, not its node.
47888
47889 2006-11-12  Bruno Haible  <bruno@clisp.org>
47890
47891         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
47892         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
47893
47894 2006-11-12  Bruno Haible  <bruno@clisp.org>
47895
47896         * gnulib-tool: New option --local-symlink.
47897         (func_usage): Document it.
47898         (lsymbolic): New variable.
47899         (func_import, func_create_testdir): If --symlink was not specified,
47900         test whether --local-symlink was specified and the file comes from
47901         the local_gnulib_dir.
47902
47903 2006-11-12  Bruno Haible  <bruno@clisp.org>
47904
47905         * gnulib-tool (func_ln): New function.
47906         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
47907
47908 2006-11-12  Bruno Haible  <bruno@clisp.org>
47909
47910         Finish support for source files in subdirectories.
47911         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
47912         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
47913         AUTOMAKE_OPTIONS.
47914         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
47915
47916 2006-11-12  Bruno Haible  <bruno@clisp.org>
47917
47918         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47919         EXTRA_lib_SOURCES augmentation.
47920         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
47921
47922 2006-11-12  Jim Meyering  <jim@meyering.net>
47923
47924         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
47925         file descriptors.  This also averts a failure on systems with
47926         native openat support when a traversed directory lacks "x" access.
47927         * lib/fts_.h: Include "i-ring.h"
47928         (struct FTS) [fts_fd_ring]: New member.
47929         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
47930         (FCHDIR): Add parentheses.
47931         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
47932         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
47933         When descending, rather than simply closing the previous
47934         fts_cwd_fd value, push that file descriptor onto the ring.
47935         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
47936         (fts_open): Initialize the new fd_ring member.
47937         (fts_close): Clear the ring.
47938         (fts_safe_changedir): When possible, use our new fd_ring to skip
47939         the diropen and fstat and dev/ino comparison that would normally
47940         accompany a virtual `chdir ("..")'.
47941
47942         * modules/fts (Depends-on): Add i-ring.
47943         * modules/i-ring: New module.
47944         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
47945         * m4/i-ring.m4: New file.
47946
47947 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47948
47949         * gnulib-tool (func_create_testdir): Fix replacement of
47950         `build-aux' in configure.ac.  Run autotools in gltests
47951         subdirectory.
47952         (func_create_testdir, func_create_megatestdir, test): There is
47953         no need for '--force' in most autotool invocations in a new
47954         tree.  Actually fail the whole test if any of the tools, or the
47955         configure or make stages fail.
47956
47957         Sync from Automake.
47958         * build-aux/gnupload: Revert last change.  Add pointer to upload
47959         instructions of the GNU Maintenance Instructions.
47960         Suggestion by Karl Berry.
47961
47962 2006-11-10  Jim Meyering  <jim@meyering.net>
47963
47964         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
47965
47966 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47967
47968         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
47969         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
47970         (bind_textdomain_codeset) [! ENABLE_NLS]:
47971         Evaluate all the arguments.  That way, callers get compatible behavior
47972         if the arguments have side effects.  Also, it avoids some GCC
47973         diagnostics in some cases; Joel E. Denny reported problems when Bison
47974         was configured with --enable-gcc-warnigs.
47975
47976 2006-11-10  Jim Meyering  <jim@meyering.net>
47977
47978         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
47979         relevant options in CFLAGS (like -O, -fno-inline) are taken into
47980         account.
47981
47982 2006-11-10  Jim Meyering  <jim@meyering.net>
47983
47984         * modules/inline: New file/module.
47985         * modules/xalloc (Files): Remove m4/inline.m4.
47986         (Depends-on): Add inline, instead.
47987         * modules/oset: Likewise.
47988         * modules/list: Likewise.
47989
47990 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47991
47992         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
47993         Problem reported by Matthew Woehlke.
47994
47995 2006-11-09  Bruno Haible  <bruno@clisp.org>
47996
47997         * lib/tempname.c (gen_tempname): Remove variant that invokes
47998         __gen_tempname.
47999         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
48000         __gen_tempname.
48001
48002 2006-11-08  Bruno Haible  <bruno@clisp.org>
48003
48004         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
48005         to 'yes' instead of 'cross-compiling'.
48006
48007 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
48008
48009         * lib/quotearg.h (quotearg_free): New decl.
48010         * lib/quotearg.c (quotearg_free): New function.
48011         (slot0, nslots, slotvec0, slotvec):
48012         Now file-scope so that quotearg_free can get at them.
48013
48014 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48015
48016         Sync from Automake.
48017         * build-aux/gnupload: Add missing 'gnu' to example URL.
48018         Report by Karl Berry.
48019
48020 2006-11-08  Bruno Haible  <bruno@clisp.org>
48021
48022         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
48023         Suggested by Paul Eggert.
48024
48025 2006-11-08  Jim Meyering  <jim@meyering.net>
48026
48027         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
48028         It's already included if !_LIBC.
48029         (fts_safe_changedir): Add a comment.
48030
48031 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
48032
48033         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
48034         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
48035         Matthew Woehlke.
48036
48037         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
48038         definitions up, to avoid colliding with change below.
48039         (static_inline) [HAVE_INLINE]: New macro.
48040         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
48041         Provide extern decls when !HAVE_INLINE.  Do not define unless
48042         static_inline is defined, either by us or by xmalloc.c.  Use
48043         static_inline rather than static inline.
48044         (XCALLOC): Optimize sizeof(T) = 1 case.
48045         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
48046
48047 2006-11-07  Bruno Haible  <bruno@clisp.org>
48048
48049         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
48050         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
48051         AC_C_INLINE.
48052         * modules/xalloc (Files): Add m4/inline.m4.
48053
48054 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48055
48056         * README: Fix typo.
48057         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
48058         (Miscellanous Notes): ...from this.
48059
48060 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
48061
48062         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
48063         Mention that offsetof should be used instead of sizeof.
48064         From Bruno Haible.
48065
48066 2006-11-07  Bruno Haible  <bruno@clisp.org>
48067
48068         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
48069
48070 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
48071
48072         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
48073         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
48074         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
48075         (gl_tree_add_before, gl_tree_add_after):
48076         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
48077         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
48078         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
48079         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
48080         (gl_linked_add_after, gl_linked_add_at): Likewise.
48081         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
48082         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
48083         (gl_tree_add_before, gl_tree_add_after): Likewise.
48084         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
48085         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
48086         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
48087
48088 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48089
48090         * lib/gl_oset.h: Use C comment style, not C++ comment style.
48091
48092 2006-11-06  Bruno Haible  <bruno@clisp.org>
48093
48094         * m4/inline.m4: New file.
48095         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
48096         * modules/list (Files): Add m4/inline.m4.
48097         * modules/oset (Files): Likewise.
48098
48099 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
48100
48101         * lib/idcache.c: Include <stddef.h>, for offsetof.
48102         (struct userid.name): Change from char * to a flexible array member.
48103         All uses changed.
48104         * modules/idcache (Depends-on): Add flexmember.
48105
48106         * MODULES.html.sh (Core language properties): New module flexmember.
48107         * modules/flexmember, m4/flexmember.m4: New files.
48108
48109         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
48110         inline functions that are identical with the old xnmalloc_inline,
48111         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
48112         that we can avoid some unnecessary integer multiplications and
48113         divisions in the common case where the element size is known at
48114         compile time.
48115         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
48116         needed.
48117         (xnboundedmalloc): Remove.
48118         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
48119         arguments, for consistency with rest of this header.
48120         (xcharalloc): Rewrite using XNMALLOC.
48121         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
48122         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
48123         versions have been moved to lib/xalloc.h and renamed to be the
48124         non-*_inline versions.
48125         (xmalloc, xrealloc): Implement without reference to the xnmalloc
48126         and xnrealloc functions, since those functions are now inline and
48127         now call us.
48128         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
48129         renaming described above.
48130         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
48131         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
48132         captures the dependency in AC_C_INLINE.
48133
48134         New module canonicalize-lgpl, proposed by Charles Wilson in
48135         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
48136         with a few small changes afterwards.
48137         * MODULES.html.sh (File system functions): New module
48138         canonicalize-lgpl.
48139         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
48140         and canonicalize_file_name.
48141         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
48142         * modules/canonicalize-lgpl: New files.
48143
48144 2006-11-05  Bruno Haible  <bruno@clisp.org>
48145
48146         * gnulib-tool (func_import, func_create_testdir): Create directories
48147         also for files in subdirectories of lib/.
48148
48149 2006-11-05  Bruno Haible  <bruno@clisp.org>
48150
48151         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
48152         ANSI C compliant.
48153
48154 2006-11-03  Bruno Haible  <bruno@clisp.org>
48155
48156         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
48157         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
48158         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
48159         (xnboundedmalloc): New inline function.
48160         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
48161         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
48162         xmalloc.
48163         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
48164         xmalloc.
48165         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
48166         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
48167         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
48168         xmalloc.
48169         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
48170         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
48171         xmalloc.
48172         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
48173         gl_tree_add_after): Use XMALLOC instead of xmalloc.
48174         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
48175         xmalloc.
48176         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
48177         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
48178         gl_tree_add_after): Use XMALLOC instead of xmalloc.
48179         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
48180         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
48181         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
48182         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
48183
48184 2006-11-03  Bruno Haible  <bruno@clisp.org>
48185
48186         * lib/c-ctype.h [C++]: Define functions without name mangling.
48187         * lib/fwriteerror.h [C++]: Likewise.
48188         * lib/gcd.h [C++]: Likewise.
48189         * lib/linebreak.h [C++]: Likewise.
48190
48191 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
48192
48193         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
48194         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
48195         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
48196         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
48197         Check for functions and headers just once.
48198         Check for declaration of canonicalize_file_name.
48199         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
48200
48201 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48202
48203         * gnulib-tool (func_import): Fix typo in actioncmd.
48204
48205 2006-11-02  Bruno Haible  <bruno@clisp.org>
48206
48207         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
48208         newline sequence in the Makefile.am snippet as a space, like "make"
48209         does.
48210         Reported by Roger Persson <perrog@gmail.com>.
48211
48212 2006-11-01  Bruno Haible  <bruno@clisp.org>
48213
48214         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
48215         already declared in <string.h>.
48216         * lib/strcase.h (strncasecmp): Don't declare it if yes.
48217
48218 2006-11-01  Bruno Haible  <bruno@clisp.org>
48219
48220         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
48221         * lib/strcase.h: Include <string.h>.
48222         (strcasecmp): Define to rpl_strcasecmp here.
48223
48224 2006-11-01  Bruno Haible  <bruno@clisp.org>
48225
48226         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
48227
48228 2006-11-01  Eric Blake  <ebb9@byu.net>
48229
48230         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
48231
48232         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
48233
48234 2006-10-29  Bruno Haible  <bruno@clisp.org>
48235
48236         Make it compile in C++ mode.
48237         * lib/full-write.c (full_rw): Add a cast.
48238
48239 2006-11-01  Bruno Haible  <bruno@clisp.org>
48240
48241         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
48242         be POSIX compliant.
48243         Reported by Roger Persson <perrog@gmail.com>.
48244
48245 2006-11-01  Eric Blake  <ebb9@byu.net>
48246
48247         * lib/getopt_.h: Fix comments.
48248
48249 2006-10-31  Eric Blake  <ebb9@byu.net>
48250
48251         * modules/tmpdir (Depends-on): Add sys_stat.
48252         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
48253         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
48254         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
48255         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
48256         tempname.
48257
48258 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
48259
48260         Avoid some C++ diagnostics reported by Bruno Haible.
48261         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
48262         xmalloc.
48263         (quotearg_alloc): Use xcharalloc rather than xmalloc.
48264         (struct slotvec): Move to top level.
48265         (quotearg_n_options): Rewrite to avoid xmalloc.
48266         * lib/xalloc.h (xcharalloc): New function.
48267         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
48268         [defined __cplusplus]: Add function template that provides result
48269         type propagation.  This part of the change is from Bruno Haible.
48270
48271 2006-10-29  Bruno Haible  <bruno@clisp.org>
48272
48273         Make it compile in C++ mode.
48274         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
48275         * lib/strnlen1.c (strnlen1): Cast memchr result.
48276         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
48277         * lib/clean-temp.c (string_equals, string_hash): Add casts.
48278         (create_temp_dir): Rename local variable 'template'.
48279         (compile_csharp_using_sscli): Add cast.
48280         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
48281         * lib/findprog.c (find_in_path): Likewise.
48282         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
48283         * lib/wait-process.c (register_slave_subprocess): Likewise.
48284
48285 2006-10-22  Bruno Haible  <bruno@clisp.org>
48286
48287         * modules/tsearch: New file.
48288         * lib/tsearch.h: New file.
48289         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
48290         * m4/tsearch.m4: New file.
48291         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
48292
48293 2006-10-29  Eric Blake  <ebb9@byu.net>
48294
48295         * lib/arcfour.c: Assume config.h.
48296         * lib/arctwo.c: Likewise.
48297         * lib/base64.c: Likewise.
48298         * lib/check-version.c: Likewise.
48299         * lib/crc.c: Likewise.
48300         * lib/des.c: Likewise.
48301         * lib/gc-gnulib.c: Likewise.
48302         * lib/gc-libgcrypt.c: Likewise.
48303         * lib/gc-pbkdf2-sha1.c: Likewise.
48304         * lib/getaddrinfo.c: Likewise.
48305         * lib/getdelim.c: Likewise.
48306         * lib/getline.c: Likewise.
48307         * lib/hmac-md5.c: Likewise.
48308         * lib/hmac-sha1.c: Likewise.
48309         * lib/iconvme.c: Likewise.
48310         * lib/md2.c: Likewise.
48311         * lib/md4.c: Likewise.
48312         * lib/memxor.c: Likewise.
48313         * lib/read-file.c: Likewise.
48314         * lib/readline.c: Likewise.
48315         * lib/rijndael-alg-fst.c: Likewise.
48316         * lib/rijndael-api-fst.c: Likewise.
48317         * lib/xgetdomainname.c: Likewise.
48318
48319 2006-10-28  Eric Blake  <ebb9@byu.net>
48320
48321         * lib/xstrndup.c: Assume config.h.
48322
48323 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48324
48325         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
48326         stat-macros.h is now for our own macros, whereas stat_h is for
48327         macros in the <sys/stat.h> name space.
48328         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
48329         (STAT_MACROS_H): Remove.
48330         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
48331         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
48332         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
48333         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
48334         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
48335         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
48336         Move these macros to ...
48337         * lib/stat_.h: here.  Don't include stat-macros.h.
48338         * lib/canonicalize.c: Don't include stat-macros.h.
48339         * lib/chown.c: Likewise.
48340         * lib/euidaccess.c: Likewise.
48341         * lib/file-type.c: Likewise.
48342         * lib/filemode.c: Likewise.
48343         * lib/glob.c: Likewise.
48344         * lib/isapipe.c: Likewise.
48345         * lib/lchown.c: Likewise.
48346         * lib/lstat.c: Likewise.
48347         * lib/mkdir-p.c: Likewise.
48348         * lib/rmdir.c: Likewise.
48349         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
48350         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
48351         unless mkdir isn't declared, to speed up 'configure'.
48352         Always create sys/stat.h, since it's unlikely any real sys/stat.h
48353         would define all the S_* symbols.
48354         * modules/canonicalize (Depends-on):
48355         Depend on sys_stat, not stat-macros.
48356         * modules/chown: Likewise.
48357         * modules/euidaccess: Likewise.
48358         * modules/filemode: Likewise.
48359         * modules/file-type: Likewise.
48360         * modules/glob: Likewise.
48361         * modules/isapipe: Likewise.
48362         * modules/lchown: Likewise.
48363         * modules/lstat: Likewise.
48364         * modules/mkancesdirs: Likewise.
48365         * modules/rmdir: Likewise.
48366         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
48367         * modules/modechange: Likewise.
48368         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
48369         (configure.ac): Remove gl_STAT_MACROS.
48370         * modules/sys_stat (Depends-on): Remove stat-macros.
48371
48372 2006-10-27  Bruno Haible  <bruno@clisp.org>
48373
48374         * m4/signed.m4: Remove file.
48375         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
48376         invocation.
48377         * modules/vasnprintf (Files): Remove m4/signed.m4.
48378
48379 2006-10-27  Bruno Haible  <bruno@clisp.org>
48380
48381         Update to GNU gettext 0.16.
48382         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
48383         m4/inttypes-h.m4, m4/signed.m4.
48384         * m4/gettext.m4: Update to GNU gettext 0.16.
48385         * m4/intl.m4: New file, from GNU gettext.
48386         * m4/intldir.m4: New file, from GNU gettext.
48387         * config/srclist.txt: Update
48388
48389 2006-10-27  Eric Blake  <ebb9@byu.net>
48390
48391         * MODULES.html.sh: Document tempname.
48392         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
48393         dependencies.
48394         (Files): Move lib/tempname.c...
48395         * modules/tempname: ...to this new module.
48396         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
48397         (gl_PREREQ_TEMPNAME): Move...
48398         * m4/tempname.m4: ...to this new file.
48399         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
48400         * modules/sys_stat (Depends-on): Add stat-macros.
48401         * lib/stat_.h (includes): Pick up stat macros.
48402         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
48403         if stat macros are broken.
48404         * lib/tempname.c (includes): No need to include "stat-macros.h".
48405         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
48406         (direxists, __path_search) [!_LIBC]: Don't compile these in
48407         gnulib; the tmpdir module covers that.
48408         * lib/tempname.h: New file.
48409
48410 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
48411
48412         * COPYING: Explain how gnulib-tool converts licence headers.
48413         Almost all wording by Eric Blake.
48414
48415 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
48416
48417         * lib/mbchar.h (is_basic_table): Make read-only.
48418         * lib/mbchar.c (is_basic_table): Likewise.
48419         Reported by John Darrington.
48420
48421 2006-10-25  Bruno Haible  <bruno@clisp.org>
48422
48423         * lib/progname.h (set_program_name): Undefine before defining.
48424
48425 2006-10-25  Bruno Haible  <bruno@clisp.org>
48426
48427         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
48428         false for non-gcc C++ compilers.
48429         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
48430
48431 2006-10-24  Bruno Haible  <bruno@clisp.org>
48432
48433         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
48434         iconv implementations like Irix iconv.
48435
48436 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48437
48438         * modules/vararrays: New file.
48439         * m4/vararrays.m4: New file, taken from diffutils.
48440         * MODULES.html.sh: New module vararrays.
48441
48442 2006-10-24  Karl Berry  <karl@gnu.org>
48443
48444         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
48445         Don't call GNU Unix.
48446
48447 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48448
48449         * users.txt: Add Libtool.
48450
48451         Sync from Libtool:
48452
48453         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48454
48455         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
48456         to gnulib's policy of including config.h unconditionally.
48457
48458 2006-10-24  Bruno Haible  <bruno@clisp.org>
48459
48460         * modules/wcwidth (Files): Add m4/wint_t.m4.
48461         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
48462         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
48463
48464 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48465
48466         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
48467         to pacify GCC with some -W flags enabled.  Problem reported by
48468         Bruno Haible.
48469
48470 2006-10-24  Jim Meyering  <jim@meyering.net>
48471
48472         * MODULES.html.sh: Remove uinttostr.  It's not a module.
48473         Reported by Karl Berry.
48474
48475 2006-10-23  Bruno Haible  <bruno@clisp.org>
48476
48477         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
48478
48479 2006-10-24  Bruno Haible  <bruno@clisp.org>
48480
48481         * lib/gl_list.h: Use C comment style, not C++ comment style.
48482
48483 2006-10-23  Eric Blake  <ebb9@byu.net>
48484
48485         * lib/getaddrinfo.c (includes): Add missing include.
48486
48487 2006-10-23  Bruno Haible  <bruno@clisp.org>
48488             Paul Eggert  <eggert@cs.ucla.edu>
48489
48490         Ability to rename obstack_free.
48491         * lib/obstack.h (__obstack_free): New macro. Declare instead of
48492         obstack_free.
48493         (obstack_free): Invoke the __obstack_free macro.
48494         * lib/obstack.c (obstack_free): Use __obstack_free macro.
48495
48496 2006-10-23  Bruno Haible  <bruno@clisp.org>
48497             Paul Eggert  <eggert@cs.ucla.edu>
48498
48499         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
48500         __argc, __argv from the declaration. (They are defined as macros on
48501         mingw.)
48502
48503 2006-10-22  Bruno Haible  <bruno@clisp.org>
48504
48505         * doc/gnulib-intro.texi: New file.
48506         * doc/gnulib.texi: Include it.
48507
48508 2006-10-21  Bruno Haible  <bruno@clisp.org>
48509
48510         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
48511         "Introduction", "Miscellanous Notes", "Particular Modules".
48512
48513 2006-10-21  Bruno Haible  <bruno@clisp.org>
48514
48515         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48516         Change mostlyclean-local rule to avoid sh syntax error from bash
48517         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
48518
48519 2006-10-23  Jim Meyering  <jim@meyering.net>
48520
48521         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
48522         in place of snprintf.
48523
48524         * modules/inttostr (Files): Add lib/uinttostr.c.
48525         * lib/uinttostr.c (inttostr): New file/function.
48526         * lib/inttostr.h (uinttostr): Declare.
48527         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
48528         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48529         Add uinttostr.
48530         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
48531
48532 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48533
48534         * lib/canonicalize.c (ELOOP): Define if not already defined.
48535         Problem reported by Bruno Haible in
48536         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
48537
48538 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48539
48540         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
48541         Problem reported by Perry Smith and Ville Laurikari.
48542
48543         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
48544         uses.
48545
48546 2006-10-19  Bruno Haible  <bruno@clisp.org>
48547
48548         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
48549         for mingw.
48550
48551 2006-10-19  Bruno Haible  <bruno@clisp.org>
48552
48553         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
48554         Needed for mingw.
48555
48556 2006-10-19  Bruno Haible  <bruno@clisp.org>
48557
48558         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
48559
48560 2006-10-19  Bruno Haible  <bruno@clisp.org>
48561
48562         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
48563         it.
48564
48565 2006-10-19  Bruno Haible  <bruno@clisp.org>
48566
48567         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
48568         invocation.
48569
48570 2006-10-19  Bruno Haible  <bruno@clisp.org>
48571
48572         * gnulib-tool (func_create_testdir): Don't include ftruncate and
48573         mountlist by default.
48574
48575 2006-10-16  Bruno Haible  <bruno@clisp.org>
48576
48577         * lib/c-strstr.c: Include c-strstr.h.
48578
48579 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48580
48581         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
48582         in a slash.
48583
48584 2006-10-18  Bruno Haible  <bruno@clisp.org>
48585
48586         * lib/lock.h [C++]: Wrap definitions in extern "C".
48587
48588 2006-10-18  Bruno Haible  <bruno@clisp.org>
48589
48590         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
48591         gl_LIBOBJS list.
48592
48593 2006-10-18  Bruno Haible  <bruno@clisp.org>
48594
48595         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
48596
48597 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
48598
48599         * lib/xstrtol.h: Include gettext.h.
48600         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
48601         Problem reported by Eric Blake.
48602         * modules/xstrtol (Depends-on): Add gettext-h.
48603
48604 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
48605
48606         * lib/strftime.c (advance): New macro.
48607         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
48608         incomplete type, so you can't add 0 to it.  Problem and patch
48609         reported by Eelco Dolstra for dietlibc.
48610
48611 2006-10-18  Jim Meyering  <jim@meyering.net>
48612
48613         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
48614         type for a local, and rename it: s/up/user_proc/.
48615
48616 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48617
48618         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
48619         READ_UTMP_USER_PROCESS.
48620         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
48621
48622 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48623
48624         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
48625         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
48626
48627 2006-10-17  Eric Blake  <ebb9@byu.net>
48628
48629         * lib/sigprocmask.c (sigprocmask): Fix typo.
48630
48631         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
48632
48633         * modules/clean-temp (Makefile.am): Don't add to make output...
48634         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
48635         config.h.
48636
48637 2006-10-17  Bruno Haible  <bruno@clisp.org>
48638
48639         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
48640         differently if DEFAULT_TEXT_DOMAIN is set.
48641
48642 2006-10-16  Bruno Haible  <bruno@clisp.org>
48643
48644         * lib/clean-temp.c: Include fwriteerror.h.
48645
48646 2006-10-16  Bruno Haible  <bruno@clisp.org>
48647
48648         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
48649
48650 2006-10-16  Bruno Haible  <bruno@clisp.org>
48651
48652         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
48653         * lib/sigprocmask.h: Include <sys/types.h>.
48654         (sigset_t): Use the system's definition if present.
48655
48656 2006-10-17  Eric Blake  <ebb9@byu.net>
48657
48658         * lib/xvasprintf.c (includes): Assume config.h.
48659         * lib/xasprintf.c (includes): Likewise.
48660
48661 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48662
48663         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
48664         at least as wide as intmax_t.
48665
48666 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
48667
48668         (Imported from Automake.)
48669         * build-aux/gnupload: Update to version 1.1 of directive file.
48670
48671 2006-10-16  Eric Blake  <ebb9@byu.net>
48672
48673         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
48674         match Automake 1.10a.
48675
48676 2006-10-14  Bruno Haible  <bruno@clisp.org>
48677
48678         * modules/sigprocmask: New file.
48679         * lib/sigprocmask.h: New file.
48680         * lib/sigprocmask.c: New file.
48681         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
48682         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
48683         request sigprocmask.o.
48684         (gl_PREREQ_SIGPROCMASK): New macro.
48685         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
48686         (Depends-on): Add sigprocmask.
48687         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
48688         gt_SIGNALBLOCKING. Test for 'raise' only once.
48689         * lib/fatal-signal.c: Include sigprocmask.h.
48690         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
48691         unblock_fatal_signals): Define always.
48692         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48693         sigprocmask.
48694
48695 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48696
48697         Sync from Automake.
48698         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
48699         which incorrectly sets the mode of an existing destination
48700         directory.  In some cases the unpatched install-sh could do the
48701         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
48702         system.  We hope this is rare in practice, but it's clearly worth
48703         fixing.  Problem reported by Alex Unleashed in
48704         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
48705         Also, don't bother to check for -m bugs unless we're using -m;
48706         suggested by Stepan Kasal.
48707
48708 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48709
48710         Sync from Automake.
48711         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
48712         `-c' flag, so they appear at the same position as in %FASTDEP%
48713         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
48714         which ignores unknown options only after the first non-option.
48715         Bug report against M4 by Nelson H. F. Beebe.
48716
48717 2006-10-13  Jim Meyering  <jim@meyering.net>
48718
48719         Fix a bug in yesterday's change.
48720         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
48721         p->fts_statp->st_dev would be used uninitialized.
48722         Ensures that we always call fts_stat on the very first entry.
48723         Miklos Szeredi reported that find -xdev stopped working.
48724
48725 2006-10-12  Bruno Haible  <bruno@clisp.org>
48726
48727         * gnulib-tool (func_get_automake_snippet): Append an automatically
48728         computed EXTRA_DIST augmentation.
48729         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
48730         * modules/alloca-opt (Makefile.am): Likewise.
48731         * modules/allocsa (Makefile.am): Likewise.
48732         * modules/arcfour (Makefile.am): Likewise.
48733         * modules/arctwo (Makefile.am): Likewise.
48734         * modules/argmatch (Makefile.am): Likewise.
48735         * modules/argz (Makefile.am): Likewise.
48736         * modules/atexit (Makefile.am): Likewise.
48737         * modules/backupfile (Makefile.am): Likewise.
48738         * modules/byteswap (Makefile.am): Likewise.
48739         * modules/c-strtod (Makefile.am): Likewise.
48740         * modules/c-strtold (Makefile.am): Likewise.
48741         * modules/calloc (Makefile.am): Likewise.
48742         * modules/canon-host (Makefile.am): Likewise.
48743         * modules/canonicalize (Makefile.am): Likewise.
48744         * modules/chdir-long (Makefile.am): Likewise.
48745         * modules/chdir-safer (Makefile.am): Likewise.
48746         * modules/check-version (Makefile.am): Likewise.
48747         * modules/chown (Makefile.am): Likewise.
48748         * modules/cloexec (Makefile.am): Likewise.
48749         * modules/close-stream (Makefile.am): Likewise.
48750         * modules/closeout (Makefile.am): Likewise.
48751         * modules/crc (Makefile.am): Likewise.
48752         * modules/csharpexec (Makefile.am): Likewise.
48753         * modules/cycle-check (Makefile.am): Likewise.
48754         * modules/des (Makefile.am): Likewise.
48755         * modules/dev-ino (Makefile.am): Likewise.
48756         * modules/dirfd (Makefile.am): Likewise.
48757         * modules/dirname (Makefile.am): Likewise.
48758         * modules/dup2 (Makefile.am): Likewise.
48759         * modules/eealloc (Makefile.am): Likewise.
48760         * modules/error (Makefile.am): Likewise.
48761         * modules/euidaccess (Makefile.am): Likewise.
48762         * modules/exclude (Makefile.am): Likewise.
48763         * modules/exitfail (Makefile.am): Likewise.
48764         * modules/fcntl-safer (Makefile.am): Likewise.
48765         * modules/fcntl (Makefile.am): Likewise.
48766         * modules/file-type (Makefile.am): Likewise.
48767         * modules/fileblocks (Makefile.am): Likewise.
48768         * modules/filemode (Makefile.am): Likewise.
48769         * modules/filenamecat (Makefile.am): Likewise.
48770         * modules/fnmatch (Makefile.am): Likewise.
48771         * modules/fopen-safer (Makefile.am): Likewise.
48772         * modules/fpending (Makefile.am): Likewise.
48773         * modules/fprintftime (Makefile.am): Likewise.
48774         * modules/free (Makefile.am): Likewise.
48775         * modules/fsusage (Makefile.am): Likewise.
48776         * modules/ftruncate (Makefile.am): Likewise.
48777         * modules/fts (Makefile.am): Likewise.
48778         * modules/gc-arcfour (Makefile.am): Likewise.
48779         * modules/gc-des (Makefile.am): Likewise.
48780         * modules/gc-hmac-md5 (Makefile.am): Likewise.
48781         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
48782         * modules/gc-md4 (Makefile.am): Likewise.
48783         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48784         * modules/gc-sha1 (Makefile.am): Likewise.
48785         * modules/gc (Makefile.am): Likewise.
48786         * modules/getaddrinfo (Makefile.am): Likewise.
48787         * modules/getcwd (Makefile.am): Likewise.
48788         * modules/getdelim (Makefile.am): Likewise.
48789         * modules/getdomainname (Makefile.am): Likewise.
48790         * modules/getgroups (Makefile.am): Likewise.
48791         * modules/gethostname (Makefile.am): Likewise.
48792         * modules/gethrxtime (Makefile.am): Likewise.
48793         * modules/getline (Makefile.am): Likewise.
48794         * modules/getloadavg (Makefile.am): Likewise.
48795         * modules/getlogin_r (Makefile.am): Likewise.
48796         * modules/getndelim2 (Makefile.am): Likewise.
48797         * modules/getopt (Makefile.am): Likewise.
48798         * modules/getpagesize (Makefile.am): Likewise.
48799         * modules/getpass-gnu (Makefile.am): Likewise.
48800         * modules/getpass (Makefile.am): Likewise.
48801         * modules/getsubopt (Makefile.am): Likewise.
48802         * modules/gettime (Makefile.am): Likewise.
48803         * modules/gettimeofday (Makefile.am): Likewise.
48804         * modules/getugroups (Makefile.am): Likewise.
48805         * modules/getusershell (Makefile.am): Likewise.
48806         * modules/glob (Makefile.am): Likewise.
48807         * modules/group-member (Makefile.am): Likewise.
48808         * modules/hard-locale (Makefile.am): Likewise.
48809         * modules/hash (Makefile.am): Likewise.
48810         * modules/hmac-md5 (Makefile.am): Likewise.
48811         * modules/hmac-sha1 (Makefile.am): Likewise.
48812         * modules/human (Makefile.am): Likewise.
48813         * modules/idcache (Makefile.am): Likewise.
48814         * modules/imaxabs (Makefile.am): Likewise.
48815         * modules/imaxdiv (Makefile.am): Likewise.
48816         * modules/inet_ntop (Makefile.am): Likewise.
48817         * modules/inet_pton (Makefile.am): Likewise.
48818         * modules/intprops (Makefile.am): Likewise.
48819         * modules/inttostr (Makefile.am): Likewise.
48820         * modules/inttypes (Makefile.am): Likewise.
48821         * modules/isapipe (Makefile.am): Likewise.
48822         * modules/javaversion (Makefile.am): Likewise.
48823         * modules/lchmod (Makefile.am): Likewise.
48824         * modules/lchown (Makefile.am): Likewise.
48825         * modules/localcharset (Makefile.am): Likewise.
48826         * modules/long-options (Makefile.am): Likewise.
48827         * modules/lstat (Makefile.am): Likewise.
48828         * modules/malloc (Makefile.am): Likewise.
48829         * modules/mathl (Makefile.am): Likewise.
48830         * modules/mbchar (Makefile.am): Likewise.
48831         * modules/md2 (Makefile.am): Likewise.
48832         * modules/md4 (Makefile.am): Likewise.
48833         * modules/md5 (Makefile.am): Likewise.
48834         * modules/memcasecmp (Makefile.am): Likewise.
48835         * modules/memchr (Makefile.am): Likewise.
48836         * modules/memcmp (Makefile.am): Likewise.
48837         * modules/memcoll (Makefile.am): Likewise.
48838         * modules/memcpy (Makefile.am): Likewise.
48839         * modules/memmem (Makefile.am): Likewise.
48840         * modules/memmove (Makefile.am): Likewise.
48841         * modules/mempcpy (Makefile.am): Likewise.
48842         * modules/memrchr (Makefile.am): Likewise.
48843         * modules/memset (Makefile.am): Likewise.
48844         * modules/memxor (Makefile.am): Likewise.
48845         * modules/mkancesdirs (Makefile.am): Likewise.
48846         * modules/mkdir-p (Makefile.am): Likewise.
48847         * modules/mkdir (Makefile.am): Likewise.
48848         * modules/mkdtemp (Makefile.am): Likewise.
48849         * modules/mkstemp (Makefile.am): Likewise.
48850         * modules/mktime (Makefile.am): Likewise.
48851         * modules/modechange (Makefile.am): Likewise.
48852         * modules/mountlist (Makefile.am): Likewise.
48853         * modules/nanosleep (Makefile.am): Likewise.
48854         * modules/obstack (Makefile.am): Likewise.
48855         * modules/openat (Makefile.am): Likewise.
48856         * modules/pagealign_alloc (Makefile.am): Likewise.
48857         * modules/pathmax (Makefile.am): Likewise.
48858         * modules/physmem (Makefile.am): Likewise.
48859         * modules/poll (Makefile.am): Likewise.
48860         * modules/posixtm (Makefile.am): Likewise.
48861         * modules/posixver (Makefile.am): Likewise.
48862         * modules/putenv (Makefile.am): Likewise.
48863         * modules/quote (Makefile.am): Likewise.
48864         * modules/quotearg (Makefile.am): Likewise.
48865         * modules/raise (Makefile.am): Likewise.
48866         * modules/read-file (Makefile.am): Likewise.
48867         * modules/readline (Makefile.am): Likewise.
48868         * modules/readlink (Makefile.am): Likewise.
48869         * modules/readtokens (Makefile.am): Likewise.
48870         * modules/readutmp (Makefile.am): Likewise.
48871         * modules/realloc (Makefile.am): Likewise.
48872         * modules/regex (Makefile.am): Likewise.
48873         * modules/rename-dest-slash (Makefile.am): Likewise.
48874         * modules/rename (Makefile.am): Likewise.
48875         * modules/rijndael (Makefile.am): Likewise.
48876         * modules/rmdir (Makefile.am): Likewise.
48877         * modules/rpmatch (Makefile.am): Likewise.
48878         * modules/safe-read (Makefile.am): Likewise.
48879         * modules/safe-write (Makefile.am): Likewise.
48880         * modules/same-inode (Makefile.am): Likewise.
48881         * modules/same (Makefile.am): Likewise.
48882         * modules/save-cwd (Makefile.am): Likewise.
48883         * modules/savedir (Makefile.am): Likewise.
48884         * modules/setenv (Makefile.am): Likewise.
48885         * modules/settime (Makefile.am): Likewise.
48886         * modules/sha1 (Makefile.am): Likewise.
48887         * modules/sig2str (Makefile.am): Likewise.
48888         * modules/snprintf (Makefile.am): Likewise.
48889         * modules/stat-macros (Makefile.am): Likewise.
48890         * modules/stat-time (Makefile.am): Likewise.
48891         * modules/stdbool (Makefile.am): Likewise.
48892         * modules/stdint (Makefile.am): Likewise.
48893         * modules/stdlib-safer (Makefile.am): Likewise.
48894         * modules/stpcpy (Makefile.am): Likewise.
48895         * modules/stpncpy (Makefile.am): Likewise.
48896         * modules/strcase (Makefile.am): Likewise.
48897         * modules/strcasestr (Makefile.am): Likewise.
48898         * modules/strchrnul (Makefile.am): Likewise.
48899         * modules/strcspn (Makefile.am): Likewise.
48900         * modules/strdup (Makefile.am): Likewise.
48901         * modules/strerror (Makefile.am): Likewise.
48902         * modules/strftime (Makefile.am): Likewise.
48903         * modules/strndup (Makefile.am): Likewise.
48904         * modules/strnlen (Makefile.am): Likewise.
48905         * modules/strpbrk (Makefile.am): Likewise.
48906         * modules/strsep (Makefile.am): Likewise.
48907         * modules/strstr (Makefile.am): Likewise.
48908         * modules/strtod (Makefile.am): Likewise.
48909         * modules/strtoimax (Makefile.am): Likewise.
48910         * modules/strtok_r (Makefile.am): Likewise.
48911         * modules/strtol (Makefile.am): Likewise.
48912         * modules/strtoll (Makefile.am): Likewise.
48913         * modules/strtoul (Makefile.am): Likewise.
48914         * modules/strtoull (Makefile.am): Likewise.
48915         * modules/strtoumax (Makefile.am): Likewise.
48916         * modules/strverscmp (Makefile.am): Likewise.
48917         * modules/sys_socket (Makefile.am): Likewise.
48918         * modules/sys_stat (Makefile.am): Likewise.
48919         * modules/sysexits (Makefile.am): Likewise.
48920         * modules/time_r (Makefile.am): Likewise.
48921         * modules/timegm (Makefile.am): Likewise.
48922         * modules/timespec (Makefile.am): Likewise.
48923         * modules/tmpfile-safer (Makefile.am): Likewise.
48924         * modules/trim (Makefile.am): Likewise.
48925         * modules/unistd-safer (Makefile.am): Likewise.
48926         * modules/unlinkdir (Makefile.am): Likewise.
48927         * modules/unlocked-io (Makefile.am): Likewise.
48928         * modules/userspec (Makefile.am): Likewise.
48929         * modules/utime (Makefile.am): Likewise.
48930         * modules/utimecmp (Makefile.am): Likewise.
48931         * modules/utimens (Makefile.am): Likewise.
48932         * modules/vasnprintf (Makefile.am): Likewise.
48933         * modules/vasprintf (Makefile.am): Likewise.
48934         * modules/vsnprintf (Makefile.am): Likewise.
48935         * modules/xalloc (Makefile.am): Likewise.
48936         * modules/xgetcwd (Makefile.am): Likewise.
48937         * modules/xnanosleep (Makefile.am): Likewise.
48938         * modules/xreadlink (Makefile.am): Likewise.
48939         * modules/xstrtod (Makefile.am): Likewise.
48940         * modules/xstrtol (Makefile.am): Likewise.
48941         * modules/xstrtold (Makefile.am): Likewise.
48942         * modules/yesno (Makefile.am): Likewise.
48943         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
48944
48945 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48946
48947         * modules/error (Makefile.am): Distribute files through
48948         EXTRA_DIST, not lib_SOURCES.
48949
48950 2006-10-12  Eric Blake  <ebb9@byu.net>
48951
48952         * modules/error (Makefile.am): Distribute files in /lib.
48953         * modules/obstack (Makefile.am): Likewise.
48954
48955 2006-10-12  Bruno Haible  <bruno@clisp.org>
48956
48957         * modules/acl (Makefile.am): Distribute all files in lib/ through
48958         EXTRA_DIST.
48959         * modules/arcfour (Makefile.am): Likewise.
48960         * modules/arctwo (Makefile.am): Likewise.
48961         * modules/argmatch (Makefile.am): Likewise.
48962         * modules/argz (Makefile.am): Likewise.
48963         * modules/atexit (Makefile.am): Likewise.
48964         * modules/backupfile (Makefile.am): Likewise.
48965         * modules/c-strtod (Makefile.am): Likewise.
48966         * modules/c-strtold (Makefile.am): Likewise.
48967         * modules/calloc (Makefile.am): Likewise.
48968         * modules/canon-host (Makefile.am): Likewise.
48969         * modules/canonicalize (Makefile.am): Likewise.
48970         * modules/chdir-long (Makefile.am): Likewise.
48971         * modules/chdir-safer (Makefile.am): Likewise.
48972         * modules/check-version (Makefile.am): Likewise.
48973         * modules/chown (Makefile.am): Likewise.
48974         * modules/cloexec (Makefile.am): Likewise.
48975         * modules/close-stream (Makefile.am): Likewise.
48976         * modules/closeout (Makefile.am): Likewise.
48977         * modules/crc (Makefile.am): Likewise.
48978         * modules/cycle-check (Makefile.am): Likewise.
48979         * modules/des (Makefile.am): Likewise.
48980         * modules/dirfd (Makefile.am): Likewise.
48981         * modules/dirname (Makefile.am): Likewise.
48982         * modules/dup2 (Makefile.am): Likewise.
48983         * modules/euidaccess (Makefile.am): Likewise.
48984         * modules/exclude (Makefile.am): Likewise.
48985         * modules/exitfail (Makefile.am): Likewise.
48986         * modules/fcntl-safer (Makefile.am): Likewise.
48987         * modules/file-type (Makefile.am): Likewise.
48988         * modules/fileblocks (Makefile.am): Likewise.
48989         * modules/filemode (Makefile.am): Likewise.
48990         * modules/filenamecat (Makefile.am): Likewise.
48991         * modules/fnmatch (Makefile.am): Likewise.
48992         * modules/fopen-safer (Makefile.am): Likewise.
48993         * modules/fpending (Makefile.am): Likewise.
48994         * modules/fprintftime (Makefile.am): Likewise.
48995         * modules/free (Makefile.am): Likewise.
48996         * modules/fsusage (Makefile.am): Likewise.
48997         * modules/ftruncate (Makefile.am): Likewise.
48998         * modules/fts (Makefile.am): Likewise.
48999         * modules/gc (Makefile.am): Likewise.
49000         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49001         * modules/getaddrinfo (Makefile.am): Likewise.
49002         * modules/getcwd (Makefile.am): Likewise.
49003         * modules/getdelim (Makefile.am): Likewise.
49004         * modules/getdomainname (Makefile.am): Likewise.
49005         * modules/getgroups (Makefile.am): Likewise.
49006         * modules/gethostname (Makefile.am): Likewise.
49007         * modules/gethrxtime (Makefile.am): Likewise.
49008         * modules/getline (Makefile.am): Likewise.
49009         * modules/getloadavg (Makefile.am): Likewise.
49010         * modules/getlogin_r (Makefile.am): Likewise.
49011         * modules/getopt (Makefile.am): Likewise.
49012         * modules/getpass (Makefile.am): Likewise.
49013         * modules/getpass-gnu (Makefile.am): Likewise.
49014         * modules/getsubopt (Makefile.am): Likewise.
49015         * modules/gettime (Makefile.am): Likewise.
49016         * modules/gettimeofday (Makefile.am): Likewise.
49017         * modules/getugroups (Makefile.am): Likewise.
49018         * modules/getusershell (Makefile.am): Likewise.
49019         * modules/glob (Makefile.am): Likewise.
49020         * modules/group-member (Makefile.am): Likewise.
49021         * modules/hard-locale (Makefile.am): Likewise.
49022         * modules/hash (Makefile.am): Likewise.
49023         * modules/hmac-md5 (Makefile.am): Likewise.
49024         * modules/hmac-sha1 (Makefile.am): Likewise.
49025         * modules/human (Makefile.am): Likewise.
49026         * modules/idcache (Makefile.am): Likewise.
49027         * modules/imaxabs (Makefile.am): Likewise.
49028         * modules/imaxdiv (Makefile.am): Likewise.
49029         * modules/inet_ntop (Makefile.am): Likewise.
49030         * modules/inet_pton (Makefile.am): Likewise.
49031         * modules/inttostr (Makefile.am): Likewise.
49032         * modules/isapipe (Makefile.am): Likewise.
49033         * modules/lchown (Makefile.am): Likewise.
49034         * modules/long-options (Makefile.am): Likewise.
49035         * modules/lstat (Makefile.am): Likewise.
49036         * modules/malloc (Makefile.am): Likewise.
49037         * modules/mathl (Makefile.am): Likewise.
49038         * modules/mbchar (Makefile.am): Likewise.
49039         * modules/md2 (Makefile.am): Likewise.
49040         * modules/md4 (Makefile.am): Likewise.
49041         * modules/md5 (Makefile.am): Likewise.
49042         * modules/memcasecmp (Makefile.am): Likewise.
49043         * modules/memchr (Makefile.am): Likewise.
49044         * modules/memcmp (Makefile.am): Likewise.
49045         * modules/memcoll (Makefile.am): Likewise.
49046         * modules/memcpy (Makefile.am): Likewise.
49047         * modules/memmem (Makefile.am): Likewise.
49048         * modules/memmove (Makefile.am): Likewise.
49049         * modules/mempcpy (Makefile.am): Likewise.
49050         * modules/memrchr (Makefile.am): Likewise.
49051         * modules/memset (Makefile.am): Likewise.
49052         * modules/memxor (Makefile.am): Likewise.
49053         * modules/mkancesdirs (Makefile.am): Likewise.
49054         * modules/mkdir (Makefile.am): Likewise.
49055         * modules/mkdir-p (Makefile.am): Likewise.
49056         * modules/mkdtemp (Makefile.am): Likewise.
49057         * modules/mkstemp (Makefile.am): Likewise.
49058         * modules/mktime (Makefile.am): Likewise.
49059         * modules/modechange (Makefile.am): Likewise.
49060         * modules/mountlist (Makefile.am): Likewise.
49061         * modules/nanosleep (Makefile.am): Likewise.
49062         * modules/openat (Makefile.am): Likewise.
49063         * modules/pagealign_alloc (Makefile.am): Likewise.
49064         * modules/physmem (Makefile.am): Likewise.
49065         * modules/poll (Makefile.am): Likewise.
49066         * modules/posixtm (Makefile.am): Likewise.
49067         * modules/posixver (Makefile.am): Likewise.
49068         * modules/putenv (Makefile.am): Likewise.
49069         * modules/quote (Makefile.am): Likewise.
49070         * modules/quotearg (Makefile.am): Likewise.
49071         * modules/raise (Makefile.am): Likewise.
49072         * modules/read-file (Makefile.am): Likewise.
49073         * modules/readline (Makefile.am): Likewise.
49074         * modules/readlink (Makefile.am): Likewise.
49075         * modules/readtokens (Makefile.am): Likewise.
49076         * modules/readutmp (Makefile.am): Likewise.
49077         * modules/realloc (Makefile.am): Likewise.
49078         * modules/regex (Makefile.am): Likewise.
49079         * modules/rename (Makefile.am): Likewise.
49080         * modules/rename-dest-slash (Makefile.am): Likewise.
49081         * modules/rijndael (Makefile.am): Likewise.
49082         * modules/rmdir (Makefile.am): Likewise.
49083         * modules/rpmatch (Makefile.am): Likewise.
49084         * modules/safe-read (Makefile.am): Likewise.
49085         * modules/safe-write (Makefile.am): Likewise.
49086         * modules/same (Makefile.am): Likewise.
49087         * modules/save-cwd (Makefile.am): Likewise.
49088         * modules/savedir (Makefile.am): Likewise.
49089         * modules/setenv (Makefile.am): Likewise.
49090         * modules/settime (Makefile.am): Likewise.
49091         * modules/sha1 (Makefile.am): Likewise.
49092         * modules/sig2str (Makefile.am): Likewise.
49093         * modules/snprintf (Makefile.am): Likewise.
49094         * modules/stdlib-safer (Makefile.am): Likewise.
49095         * modules/stpcpy (Makefile.am): Likewise.
49096         * modules/stpncpy (Makefile.am): Likewise.
49097         * modules/strcase (Makefile.am): Likewise.
49098         * modules/strcasestr (Makefile.am): Likewise.
49099         * modules/strchrnul (Makefile.am): Likewise.
49100         * modules/strcspn (Makefile.am): Likewise.
49101         * modules/strdup (Makefile.am): Likewise.
49102         * modules/strerror (Makefile.am): Likewise.
49103         * modules/strftime (Makefile.am): Likewise.
49104         * modules/strndup (Makefile.am): Likewise.
49105         * modules/strnlen (Makefile.am): Likewise.
49106         * modules/strpbrk (Makefile.am): Likewise.
49107         * modules/strsep (Makefile.am): Likewise.
49108         * modules/strstr (Makefile.am): Likewise.
49109         * modules/strtod (Makefile.am): Likewise.
49110         * modules/strtoimax (Makefile.am): Likewise.
49111         * modules/strtok_r (Makefile.am): Likewise.
49112         * modules/strtol (Makefile.am): Likewise.
49113         * modules/strtoll (Makefile.am): Likewise.
49114         * modules/strtoul (Makefile.am): Likewise.
49115         * modules/strtoull (Makefile.am): Likewise.
49116         * modules/strtoumax (Makefile.am): Likewise.
49117         * modules/strverscmp (Makefile.am): Likewise.
49118         * modules/time_r (Makefile.am): Likewise.
49119         * modules/timegm (Makefile.am): Likewise.
49120         * modules/tmpfile-safer (Makefile.am): Likewise.
49121         * modules/unistd-safer (Makefile.am): Likewise.
49122         * modules/unlinkdir (Makefile.am): Likewise.
49123         * modules/userspec (Makefile.am): Likewise.
49124         * modules/utime (Makefile.am): Likewise.
49125         * modules/utimecmp (Makefile.am): Likewise.
49126         * modules/utimens (Makefile.am): Likewise.
49127         * modules/vasnprintf (Makefile.am): Likewise.
49128         * modules/vasprintf (Makefile.am): Likewise.
49129         * modules/vsnprintf (Makefile.am): Likewise.
49130         * modules/xalloc (Makefile.am): Likewise.
49131         * modules/xgetcwd (Makefile.am): Likewise.
49132         * modules/xnanosleep (Makefile.am): Likewise.
49133         * modules/xreadlink (Makefile.am): Likewise.
49134         * modules/xstrtod (Makefile.am): Likewise.
49135         * modules/xstrtol (Makefile.am): Likewise.
49136         * modules/xstrtold (Makefile.am): Likewise.
49137         * modules/yesno (Makefile.am): Likewise.
49138
49139 2006-10-12  Jim Meyering  <jim@meyering.net>
49140
49141         * m4/getloadavg.m4: Revert the change below.
49142
49143         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
49144         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
49145         fail with a symlink, which is what coreutils' ./bootstrap now
49146         creates by default.
49147
49148 2006-10-12  Bruno Haible  <bruno@clisp.org>
49149
49150         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
49151         mingw.
49152         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
49153         MSVC and mingw explicitly.
49154
49155 2006-10-11  Simon Josefsson  <jas@extundo.com>
49156             Bruno Haible  <bruno@clisp.org>
49157
49158         Add support for multiple gnulib-tool invocations in the scope of a
49159         single configure.ac file.
49160         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
49161         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
49162         with the same contents as the _LIBADD variable.
49163         (func_emit_initmacro_start, func_emit_initmacro_end,
49164         func_emit_initmacro_done): New functions.
49165         (func_import, func_create_testdir): Invoke them. Allow the identifiers
49166         gl_LIBOBJS and gl_LTLIBOBJS.
49167
49168 2006-10-11  Bruno Haible  <bruno@clisp.org>
49169
49170         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
49171         (func_create_testdir): Don't create po/Makefile.am, don't invoke
49172         autoreconf. Instead, invoke autopoint explicitly but move back the
49173         *.m4 files from gnulib.
49174
49175 2006-10-11  Bruno Haible  <bruno@clisp.org>
49176
49177         * gnulib-tool (func_usage): Make module names after --create-testdir
49178         optional.
49179         (func_create_testdir): If no module was specified, use nearly all
49180         modules.
49181
49182 2006-10-12  Jim Meyering  <jim@meyering.net>
49183
49184         Big performance improvement for fts-based tools that use FTS_NOSTAT.
49185         Avoid spurious inode-mismatch problems on non-POSIX file systems.
49186         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
49187         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
49188         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
49189         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
49190         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
49191         (fts_set_stat_required): New function.
49192         (fts_open): Defer the calls to fts_stat, if possible or requested.
49193         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
49194         into fts_stat itself.
49195         (fts_read): Perform any required (deferred) fts_stat call.
49196         (fts_build): Likewise, for the directory we're about to open and read.
49197         In the readdir loop, carefully decide whether each entry will require
49198         an eventual call to fts_stat, using dirent.d_type info if available.
49199         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
49200         a command line argument into this function.  Update all callers.
49201         Map a return value of FTS_DOT to FTS_D for a command line argument.
49202         * modules/fts (Depends-on): Add d-type.  Alphabetize.
49203         Thanks to Miklos Szeredi for his tenacity and for the initial
49204         bug report about "find" failing on a FUSE-based file system.
49205
49206         * lib/fts.c (fts_open): Use consistent indentation.
49207
49208 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49209
49210         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
49211         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
49212         reported by Jim Meyering.  All uses of cache variables renamed
49213         to match Autoconf's.
49214         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
49215         the other one.
49216
49217         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
49218         Fix misspelling in diagnostic.
49219
49220 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49221
49222         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
49223         defined.  Problem reported by Matthew Woehlke.
49224
49225         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
49226         Add support for Tandem NonStop R series.
49227         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
49228         Use new macro.
49229
49230         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
49231         (has_trailing_slash): Omit size arg; all callers changed.
49232         Omit 'inline', since it doesn't help performance and we'd
49233         need to configure it.
49234         Don't count //, ///, etc. as having a trailing slash.
49235         As a side effect, this removes a C99ism reported by Matthew Woehlke.
49236         (rpl_rename_dest_slash): On failure, use rename's errno rather
49237         than (in some cases) an incorrect or junk errno.
49238         Simplify code by removing need to compute length; this does
49239         cause it to make two passes instead of one over the file name,
49240         but it's worth it.
49241
49242         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
49243         change, since Autoconf's version may no longer be appropriate now
49244         that we are using CVS Autoconf's version.  Add support for Tandem.
49245
49246 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49247             Bruno Haible  <bruno@clisp.org>
49248
49249         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
49250         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
49251         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
49252         gl_AC_TYPE_LONG_LONG.
49253
49254         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
49255         instead of HAVE_LONG_LONG.
49256         * lib/printf-args.c (printf_fetchargs): Likewise.
49257         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
49258         * lib/vasnprintf.c (VASNPRINTF): Likewise.
49259         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
49260         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
49261         gl_AC_TYPE_LONG_LONG.
49262
49263 2006-10-11  Bruno Haible  <bruno@clisp.org>
49264
49265         * m4/longlong.m4: Add comments.
49266         * m4/ulonglong.m4: Likewise.
49267
49268 2006-10-10  Bruno Haible  <bruno@clisp.org>
49269
49270         Make it possible to #define stpcpy, strdup to aliases.
49271         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
49272         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
49273
49274 2006-10-10  Bruno Haible  <bruno@clisp.org>
49275
49276         Make it possible to #define gcd to an alias.
49277         * lib/gcd.c: Include config.h.
49278
49279 2006-10-10  Bruno Haible  <bruno@clisp.org>
49280
49281         Make it possible to #define c_isascii to an alias.
49282         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
49283         defined. Undefine the macros before defining them, to avoid gcc
49284         warnings.
49285         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
49286         define NO_C_CTYPE_MACROS early.
49287
49288 2006-10-10  Bruno Haible  <bruno@clisp.org>
49289
49290         Make it possible to #define set_program_name to an alias.
49291         * lib/progname.c: Don't undefine set_program_name; instead, undefine
49292         ENABLE_RELOCATABLE early.
49293
49294 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49295
49296         Port to Tandem NSK OSS, which has 64-bit signed int but at most
49297         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
49298         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
49299         More generally, don't assume that 64-bit signed int is available
49300         if unsigned int is, and vice versa.
49301         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
49302         unsigned symbols, not on their signed counterparts.
49303         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
49304         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
49305         (UINT64_C, UINTMAX_C):
49306         Likewise.
49307         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
49308         unsigned counterparts.
49309         (Have_long_long, Unsigned): New macros.
49310         (Int): Renamed from INT.
49311         (strtoimax): Use the new macros.
49312         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
49313         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
49314         * modules/inttypes (inttypes.h): Substitute
49315         HAVE_UNSIGNED_LONG_LONG_INT.
49316         * modules/stdint (stdint.h): Likewise.
49317         (Files): Add m4/ulonglong.m4.
49318
49319 2006-10-10  Bruno Haible  <bruno@clisp.org>
49320
49321         Fix a gcc -Wshadow warning.
49322         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
49323         to 'bucket'.
49324         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
49325         gl_linked_indexof_from_to): Likewise.
49326         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
49327         Likewise.
49328         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
49329         Likewise.
49330         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
49331         Reported by Eric Blake.
49332
49333 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
49334
49335         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
49336         for NetBSD.  Problem reported by Bruno Haible.
49337
49338 2006-10-09  Jim Meyering  <jim@meyering.net>
49339
49340         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
49341         Patch from Bruno Haible.
49342
49343 2006-10-09  Jim Meyering  <jim@meyering.net>
49344
49345         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
49346         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
49347         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
49348
49349 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49350
49351         Don't include <config.h> twice; this doesn't work in some cases,
49352         e.g., when config.h has "#define intmax_t long long int" and
49353         we include <config.h>, <inttypes.h>, <config.h> in that order.
49354         Problem reported by Matthew Woehlke in:
49355         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
49356         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
49357         * lib/fts-cycle.c: Don't include config.h.
49358         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
49359         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
49360         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
49361         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
49362         inttypes.h.
49363         * lib/xstrtoumax.c: Likewise.
49364         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
49365         __strtol and the like, so that this module is more like its siblings.
49366         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
49367         Remove; no longer needed now that we assume gnulib inttypes.h.
49368
49369 2006-10-08  Bruno Haible  <bruno@clisp.org>
49370
49371         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
49372         option.
49373
49374 2006-10-07  Jim Meyering  <jim@meyering.net>
49375
49376         * modules/inttypes (inttypes.h): Revert what seems to have been
49377         an inadvertent part of today's change: use "|", not "/" in the
49378         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
49379
49380 2006-10-07  Bruno Haible  <bruno@clisp.org>
49381
49382         * modules/sublist: New file.
49383
49384 2006-10-07  Bruno Haible  <bruno@clisp.org>
49385
49386         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
49387         * modules/argz (argz.h): Likewise.
49388         * modules/arpa_inet (arpa/inet.h): Likewise.
49389         * modules/byteswap (byteswap.h): Likewise.
49390         * modules/configmake (configmake.h): Likewise.
49391         * modules/fcntl (fcntl.h): Likewise.
49392         * modules/fnmatch (fnmatch.h): Likewise.
49393         * modules/getopt (getopt.h): Likewise.
49394         * modules/glob (glob.h): Likewise.
49395         * modules/inttypes (inttypes.h): Likewise.
49396         * modules/netinet_in (netinet/in.h): Likewise.
49397         * modules/poll (poll.h): Likewise.
49398         * modules/stdbool (stdbool.h): Likewise.
49399         * modules/stdint (stdint.h): Likewise.
49400         * modules/sys_select (sys/select.h): Likewise.
49401         * modules/sys_socket (sys/socket.h): Likewise.
49402         * modules/sys_stat (sys/stat.h): Likewise.
49403         * modules/sysexits (sysexits.h): Likewise.
49404         * modules/unistd (unistd.h): Likewise.
49405         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49406         Add a "DO NOT EDIT" comment to the generated file.
49407         (func_import): Likewise for gnulib-comp.m4.
49408
49409 2006-10-07  Bruno Haible  <bruno@clisp.org>
49410
49411         * lib/gl_sublist.h: New file.
49412         * lib/gl_sublist.c: New file.
49413
49414 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49415
49416         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
49417         name (relative to the original working directory) and the file
49418         name component (relative to the temporary working directory).  All
49419         callers changed.
49420         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
49421         * lib/mkdir-p.c (make_dir_parents): Likewise.
49422         * lib/mkdir-p.h (make_dir_parents): Likewise.
49423
49424 2006-10-06  Eric Blake  <ebb9@byu.net>
49425
49426         Define several macros for use by the clean-temp module.
49427         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
49428         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
49429         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
49430
49431         * lib/clean-temp.h (close_stream_temp): New declaration.
49432         * lib/clean-temp.c (includes): Pull in headers according to what
49433         other modules are in use.
49434         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
49435
49436 2006-10-06  Bruno Haible  <bruno@clisp.org>
49437
49438         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
49439         instead of fopen, fwriteerror.
49440
49441 2006-10-06  Bruno Haible  <bruno@clisp.org>
49442
49443         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
49444         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
49445         int.
49446         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
49447         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
49448         Return an error indicator.
49449         Suggested by Eric Blake.
49450
49451 2006-10-06  Bruno Haible  <bruno@clisp.org>
49452
49453         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
49454         Reported by Eric Blake.
49455
49456 2006-10-06  Bruno Haible  <bruno@clisp.org>
49457
49458         * modules/closeout (Description): Mention stderr too.
49459
49460 2006-10-06  Bruno Haible  <bruno@clisp.org>
49461         and Paul Eggert  <eggert@cs.ucla.edu>
49462
49463         * lib/closeout.c (close_stdout): Also close stderr.
49464         * lib/closeout.h: Update comment.
49465
49466 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49467
49468         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
49469         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
49470         * lib/dirchownmod.c: Include lchown.h.
49471         * lib/lchown.c: Don't include files that lchown.h now includes.
49472         Don't declare chown, since lchown.h now does that.
49473         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
49474         (lchown): Define to rpl_chown if lchown is declared but
49475         does not exist.  Declare using a prototype if lchown is not
49476         declared.  Add a copyright notice.
49477         * lib/mkstemp.h: Include <unistd.h>.
49478         * lib/openat.c: Include lchown.h.
49479
49480         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
49481         we now test for that separately.
49482         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
49483         rather than O_NOFOLLOW, when testing whether it's possible to
49484         avoid a race condition reliably.
49485         * lib/savewd.c (savewd_chdir): Likewise.
49486
49487         Remove macros that are no longer needed now that stdint.h is
49488         reliable.
49489         * lib/fsusage.c (UINTMAX_MAX): Remove.
49490         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
49491         * lib/utimecmp.c (SIZE_MAX): Remove.
49492
49493         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
49494
49495         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
49496         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
49497         O_NOATIME works.
49498
49499 2006-10-05  Bruno Haible  <bruno@clisp.org>
49500
49501         * lib/gl_list.h (gl_sortedlist_search_from_to,
49502         gl_sortedlist_indexof_from_to): New declarations.
49503         (gl_list_implementation): New fields sortedlist_search_from_to,
49504         sortedlist_indexof_from_to.
49505         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
49506         inline functions.
49507         * lib/gl_list.c (gl_sortedlist_search_from_to,
49508         gl_sortedlist_indexof_from_to): New functions.
49509         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
49510         function.
49511         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
49512         (gl_array_sortedlist_search_from_to): New function.
49513         (gl_array_list_implementation): Update.
49514         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
49515         function.
49516         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
49517         (gl_carray_sortedlist_search_from_to): New function.
49518         (gl_carray_list_implementation): Update.
49519         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
49520         gl_linked_sortedlist_indexof_from_to): New functions.
49521         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49522         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49523         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
49524         gl_tree_sortedlist_indexof_from_to): New functions.
49525         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49526         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49527         Update.
49528         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49529         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
49530         Update.
49531
49532 2006-10-05  Bruno Haible  <bruno@clisp.org>
49533
49534         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
49535         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
49536         (struct gl_list_implementation): Add fields search_from_to,
49537         indexof_from_to. Remove fields search, indexof.
49538         (gl_list_search): Use the search_from_to method.
49539         (gl_list_search_from, gl_list_search_from_to): New functions.
49540         (gl_list_indexof): Use the indexof_from_to method.
49541         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49542         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
49543         (gl_list_search_from, gl_list_search_from_to): New functions.
49544         (gl_list_indexof): Use the indexof_from_to method.
49545         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49546         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
49547         gl_array_indexof. Add start_index, end_index arguments.
49548         (gl_array_search_from_to): Renamed from gl_array_search. Add
49549         start_index, end_index arguments.
49550         (gl_array_remove, gl_array_list_implementation): Update.
49551         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
49552         gl_carray_indexof. Add start_index, end_index arguments.
49553         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
49554         start_index, end_index arguments.
49555         (gl_carray_remove, gl_carray_list_implementation): Update.
49556         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
49557         gl_linked_search. Add start_index, end_index arguments.
49558         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
49559         start_index, end_index arguments.
49560         (gl_linked_remove): Update.
49561         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49562         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49563         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
49564         field to 'size_t'.
49565         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
49566         gl_tree_search. Add start_index, end_index arguments.
49567         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49568         start_index, end_index arguments.
49569         (gl_tree_remove): Update.
49570         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49571         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49572         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
49573         function.
49574         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
49575         gl_tree_search. Add start_index, end_index arguments.
49576         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49577         start_index, end_index arguments.
49578         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49579         Update.
49580         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49581
49582 2006-10-05  Bruno Haible  <bruno@clisp.org>
49583
49584         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
49585
49586         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
49587         fwriteerror_temp): New declarations.
49588         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
49589         (descriptors): New variable.
49590         (cleanup): First, close the descriptors.
49591         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
49592         fclose_temp, fwriteerror_temp): New functions.
49593
49594 2006-10-04  Jim Meyering  <jim@meyering.net>
49595
49596         * lib/fts.c (fts_open): Tiny comment change.
49597
49598 2006-10-04  Bruno Haible  <bruno@clisp.org>
49599
49600         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
49601         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
49602         gl_LOCK_BODY.
49603         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
49604         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
49605         gl_LOCK_EARLY_BODY.
49606         (gl_LOCK): Require gl_LOCK_BODY.
49607
49608 2006-10-04  Bruno Haible  <bruno@clisp.org>
49609
49610         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
49611         (gl_oset_search_atleast): New declaration.
49612         (struct gl_oset_implementation): Add field 'search_atleast'.
49613         (gl_oset_search_atleast): New inline function.
49614         * lib/gl_oset.c (gl_oset_search_atleast): New function.
49615         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
49616         (gl_array_oset_implementation): Update.
49617         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
49618         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
49619         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
49620
49621 2006-10-04  Bruno Haible  <bruno@clisp.org>
49622
49623         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
49624
49625 2006-10-03  Bruno Haible  <bruno@clisp.org>
49626
49627         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
49628         from gl_avltreehash_list_implementation.
49629
49630 2006-10-03  Bruno Haible  <bruno@clisp.org>
49631
49632         * lib/gl_oset.c (gl_oset_add): Fix return type.
49633
49634 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
49635
49636         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
49637
49638 2006-10-02  Eric Blake  <ebb9@byu.net>
49639
49640         * modules/strnlen (Depends-on): Add extensions.
49641
49642 2006-10-02  Eric Blake  <ebb9@byu.net>
49643
49644         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
49645         definition in 2.60+.
49646
49647 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
49648
49649         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
49650         checks.
49651
49652 2006-10-02  Bruno Haible  <bruno@clisp.org>
49653
49654         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
49655         to the AUTOMAKE_OPTIONS.
49656         Reported by Jim Meyering.
49657
49658 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49659
49660         Work around bug in Solaris 10 /proc file system:
49661         /proc/self/fd/NNN/.. isn't the parent directory of
49662         the directory whose file descriptor is NNN.  This needs to
49663         be worked around at run time, not compile time, since a
49664         program might be built on Solaris 8, where things work, and
49665         run on Solaris 10.
49666         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
49667         to use the following interface instead:
49668         (OPENAT_BUFFER_SIZE): New macro.
49669         (openat_proc_name): New function.
49670         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
49671         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
49672         Likewise.
49673         * lib/openat-proc.c: New file.
49674         * modules/openat (Files): Add lib/openat-proc.c.
49675         (Depends-on): Add same-inode, stdbool.
49676         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
49677
49678 2006-09-29  Bruno Haible  <bruno@clisp.org>
49679
49680         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
49681         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
49682         argument. Set stdout_closed before testing for ferror, not after.
49683         (fwriteerror, fwriteerror_no_ebadf): New functions.
49684
49685 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49686
49687         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
49688
49689 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
49690
49691         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
49692         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
49693
49694 2006-09-28  Jim Meyering  <jim@meyering.net>
49695
49696         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
49697         Include <unistd.h>.
49698
49699 2006-09-28  Bruno Haible  <bruno@clisp.org>
49700
49701         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
49702         * modules/linkedhash-list (Depends-on): Likewise.
49703         * modules/rbtreehash-list (Depends-on): Likewise.
49704
49705 2006-09-28  Bruno Haible  <bruno@clisp.org>
49706
49707         * lib/strndup.h: Simplify the redefinition of strndup.
49708         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
49709         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
49710
49711 2006-09-28  Bruno Haible  <bruno@clisp.org>
49712
49713         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
49714         * lib/gl_linkedhash_list.c: Likewise.
49715         * lib/gl_rbtreehash_list.c: Likewise.
49716
49717 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49718
49719         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
49720         getaddrinfo.
49721
49722         * lib/__fpending.h: Don't include <stdio_ext.h> unless
49723         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
49724         it causes <stdio_ext.h> to cause a compile-time error.
49725         Problem reported by Nelson H. F. Beebe.
49726         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
49727         of HAVE_DECL___PENDING.
49728
49729         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
49730         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
49731         declaration.
49732
49733 2006-09-27  Jim Meyering  <jim@meyering.net>
49734
49735         This file could end up with a definition for a function
49736         named __strndup, rather than rpl_strndup on a system with
49737         incomplete weak_alias support.
49738         * lib/strndup.c (strndup): Rename from __strndup.
49739         Remove #defines that used to map __strndup to strndup.
49740         Don't use K&R prototypes.
49741         Remove LIBC-related code, since this file is not sync'd with glibc.
49742         * lib/strndup.h: Revamp, accordingly.
49743         * m4/strndup.m4: Modernize.
49744
49745 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49746
49747         * modules/savewd (Depends-on): Add 'raise'.
49748         * lib/savewd.c: Include <signal.h>, for 'raise'.
49749
49750 2006-09-26  Jim Meyering  <jim@meyering.net>
49751
49752         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
49753         when we detect Darwin 8.7.0's acl_get_file bug.
49754         Rearrange to perform the new (below) run-test while $LIBS
49755         contains any acl-related library.  Set USE_ACL at the end.
49756         (gl_ACL_GET_FILE): New function.
49757
49758 2006-09-26  Eric Blake  <ebb9@byu.net>
49759
49760         * lib/verror.c: Include <config.h> unconditionally.
49761
49762 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
49763
49764         * modules/clock-time (Maintainer): Add self.
49765         * modules/getlogin_r (Depends-on): Add extensions.
49766
49767 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49768
49769         * modules/clock-time: New module.
49770         * modules/nanosleep (Depends-on): Add clock-time.
49771         * modules/gethrxtime (Depends-on): Likewise.
49772         * modules/gettime (Depends-on): Likewise.
49773         * modules/settime (Depends-on): Likewise.
49774
49775         * modules/fts-lgpl: Depend on openat.
49776         * modules/mkancesdirs: Depend on savewd.
49777         * modules/mkdir-p: Likewise.
49778
49779 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49780
49781         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
49782
49783         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
49784         `gl_have_arbitrary_file_name_length_limit' to
49785         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
49786         actually works between configure runs.
49787
49788 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49789             Bruno Haible  <bruno@clisp.org>
49790
49791         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
49792
49793 2006-09-25  Jim Meyering  <jim@meyering.net>
49794
49795         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
49796         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
49797
49798 2006-09-25  Eric Blake  <ebb9@byu.net>
49799
49800         * gnulib-tool (func_import, func_create_testdir): Fix typos in
49801         exec's in 2006-09-18 patch when shuffling fds.
49802
49803 2006-09-25  Bruno Haible  <bruno@clisp.org>
49804
49805         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
49806         Reported by Jim Meyering.
49807
49808 2006-09-24  Jim Meyering  <jim@meyering.net>
49809
49810         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
49811         compare a pointer against a literal "0".  That caused failures with
49812         at least HP-UX's hpcc.
49813
49814 2006-09-22  Simon Josefsson  <jas@extundo.com>
49815
49816         * modules/gc-sha1:
49817         * modules/gc-md4:
49818         * modules/gc-hmac-sha1:
49819         * modules/gc-hmac-md5:
49820         * modules/gc-des:
49821         * modules/gc-arcfour: Distribute more files.
49822
49823 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49824
49825         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
49826         (gl_linked_iterator_from_to): Initialize struct completely.
49827         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
49828         (gl_tree_iterator_from_to): Likewise
49829         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
49830         * lib/gl_array_list.c [lint] (gl_array_iterator)
49831         (gl_array_iterator_from_to): Likewise.
49832         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
49833         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
49834         (gl_carray_iterator_from_to): Likewise.
49835
49836         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
49837         * lib/md4.c (md4_process_block): Remove unused variable.
49838         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
49839         parentheses for clarity.
49840
49841 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49842
49843         * modules/bison-i18n (Depends-on): Add gettext.
49844
49845 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49846
49847         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
49848         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
49849         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
49850         also add missing comma that caused broken test.
49851         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
49852         stdlib.h, for `abort'.
49853         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
49854         variables.
49855         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
49856         include unistd.h if present, for `rmdir'.
49857         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
49858         variables.
49859         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
49860         in the process include standard headers for prototypes.
49861         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
49862         gets declared on GNU/Linux.
49863         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
49864         unistd.h, for `rmdir'.
49865         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
49866
49867         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
49868         always true.
49869         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
49870
49871         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
49872
49873 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49874
49875         * gnulib-tool (func_version): Create output all at once.  This
49876         may help avoid triggering unnecessary SIGPIPEs, and at any
49877         rate it doesn't hurt.
49878
49879 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49880             Bruno Haible  <bruno@clisp.org>
49881
49882         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
49883         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49884         * m4/signed.m4 (bh_C_SIGNED): Likewise.
49885
49886         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
49887         (gl_FUNC_VASPRINTF): Invoke it.
49888
49889 2006-09-22  Bruno Haible  <bruno@clisp.org>
49890
49891         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
49892         getloadavg.c as first argument.
49893
49894 2006-09-22  Bruno Haible  <bruno@clisp.org>
49895
49896         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
49897         at the beginning of the gl_INIT macro.
49898         * modules/getloadavg (configure.ac): Pass $gl_source_base to
49899         gl_GETLOADAVG.
49900
49901 2006-09-22  Bruno Haible  <bruno@clisp.org>
49902
49903         * gnulib-tool (func_create_megatestdir): Don't include the config-h
49904         module.
49905         Suggested by Ralf Wildenhues.
49906
49907 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
49908
49909         Import this patch from libc:
49910
49911         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
49912
49913         * lib/regex_internal.c (re_string_reconstruct): Handle
49914         offset < pstr->valid_raw_len && pstr->offsets_needed case.
49915         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
49916         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
49917         re_string_context_at.
49918
49919         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
49920         now requires it.
49921         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
49922         gl_REGEX now does it for us.
49923         (gl_REGEX): Add test taken from
49924         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
49925
49926         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
49927         Check that large offsets work.  Modernize Autoconf usages.
49928         Prefer "yes" to mean a good thing rather than a bad.
49929         Don't put "#define mkstemp" in config.h, as this might interfere
49930         with standard system headers that "#define mkstemp mkstemp64".
49931
49932         * modules/mkstemp (Depends-on): Add extensions, so that
49933         mkstemp is visible on some platforms.
49934         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
49935         (Include): Change to "mkstemp.h" from <stdlib.h>.
49936         (Files): Add mkstemp.h.
49937
49938         * lib/mkstemp.h: New file, since some standard headers
49939         #define mkstemp.
49940         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
49941         Include "mkstemp.h".
49942         Make the _LIBC code resemble glibc original more,
49943         e.g., use K&R style.
49944         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
49945         (mkstemp): Remove, since mkstemp.h does this for us.
49946         * lib/stdlib--.h: Include mkstemp.h.
49947
49948         Import this patch from libc:
49949
49950         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49951
49952         * lib/tempname.c (__gen_tempname): Change attempts_min
49953         into a macro.  Use preprocessor to decide how to initialize
49954         attempts [Coverity CID 67].
49955
49956 2006-09-20  Bruno Haible  <bruno@clisp.org>
49957
49958         * lib/mkdtemp.c: Import from libc.
49959         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49960                 * sysdeps/posix/tempname.c (__gen_tempname): Change
49961                 attempts_min into a macro.  Use preprocessor to decide how to
49962                 initialize attempts [Coverity CID 67].
49963         2001-11-27  Paul Eggert  <eggert@twinsun.com>
49964                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
49965                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
49966
49967 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49968
49969         * gnulib-tool (func_exit): New function, to allow to pass the
49970         exit status portably through the trap.  Use everywhere.
49971         (--help, --version): Signal a write error.
49972         (trap): catch SIGPIPE, for write errors.
49973         Exit at the end of the trap, with the correct exit status.
49974
49975 2006-09-19  Karl Berry  <karl@gnu.org>
49976
49977         * doc/gnulib.texi: note about the license texinfo files.
49978
49979 2006-09-19  Eric Blake  <ebb9@byu.net>
49980
49981         * gnulib-tool: Avoid space-tab.
49982
49983 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49984
49985         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
49986         that prevented coreutils 6.1 from building.  Problem reported
49987         by Petter Reinholdtsen.
49988
49989 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49990
49991         * gnulib-tool (avoidlist): Fix typo that broke options like
49992         --avoid=lock that are used by coreutils bootstrap.
49993
49994 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
49995
49996         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
49997         more systematically.
49998
49999 2006-09-18  Jim Meyering  <jim@meyering.net>
50000
50001         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
50002
50003 2006-09-18  Bruno Haible  <bruno@clisp.org>
50004
50005         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
50006
50007 2006-09-18  Bruno Haible  <bruno@clisp.org>
50008
50009         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
50010         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
50011         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
50012         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
50013         * m4/gettext.m4: Require autoconf >= 2.52.
50014         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
50015         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
50016         of gl_cv_header_inttypes_h.
50017
50018 2006-09-18  Bruno Haible  <bruno@clisp.org>
50019
50020         * lib/javaversion.c: Include configmake.h.
50021
50022 2006-09-18  Bruno Haible  <bruno@clisp.org>
50023
50024         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
50025         avoid that the while loops be executed in a subshell.
50026
50027 2006-09-18  Bruno Haible  <bruno@clisp.org>
50028
50029         * MODULES.html.sh (func_module): Break long lines.
50030         Suggested by Bruce Korb <bkorb@gnu.org>.
50031
50032 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50033
50034         Speed up by a factor of 1.12.
50035         * gnulib-tool (nl): New variable.
50036         (func_import): Rewrite include directive extraction to only read each
50037         directive once.
50038
50039 2006-09-17  Bruno Haible  <bruno@clisp.org>
50040
50041         * modules/javaversion (Makefile.am): Remove DEFS setting.
50042         (Depends-on): Add configmake, for PKGDATADIR definition.
50043
50044 2006-09-17  Bruno Haible  <bruno@clisp.org>
50045
50046         * gnulib-tool (func_create_testdir): Rewrite all files at once.
50047
50048 2006-09-17  Bruno Haible  <bruno@clisp.org>
50049
50050         * gnulib-tool (func_append): New function, stolen from libtool.m4.
50051         (func_modules_transitive_closure, func_modules_add_dummy,
50052         func_modules_to_filelist, func_import, func_create_testdir,
50053         func_create_megatestdir, ...): Use it wherever possible.
50054         Suggested by Ralf Wildenhues.
50055
50056 2006-09-16  Karl Berry  <karl@gnu.org>
50057
50058         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
50059         to avoid sectioning errors.
50060         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
50061         [ifinfo]: blank line after @center-ed titles.
50062         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
50063         Spell FSF address consistently with others.
50064         (These changes approved by rms.)
50065
50066 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50067
50068         Speed up by a factor of 1.61.
50069         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
50070         already checked module names again.
50071
50072 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50073
50074         Speed up by a factor of 1.13.
50075         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
50076         for new_files, and the input to func_add_or_update.
50077
50078 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50079
50080         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
50081         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
50082
50083 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50084
50085         * modules/mkancesdirs (Depends-on): Add fcntl.
50086         * modules/savewd: New file.
50087         * MODULES.html.sh (File system functions): Add savewd.
50088
50089         * modules/configmake (Makefile.am): Add support for the
50090         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
50091
50092 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50093
50094         * m4/savewd.m4: New file.
50095
50096 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50097
50098         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
50099         (dirchownmod): New arg FD.  All callers changed.
50100         Use FD rather than opening the directory ourself, as opening is
50101         now the caller's responsibility.
50102         * lib/dirchownmod.h: Likewise.
50103         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
50104         hosts that require <sys/types.h> before <sys/stat.h>.  Include
50105         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
50106         (test_dir): Remove.
50107         (mkancesdirs): Return length of prefix of FILE that has already
50108         been made, or -2 if there is a child doing the work.  Redo
50109         algorithm so that it is O(N) rather than O(N**2).  Optimize away
50110         ".", and treat ".." specially since it might stray back into
50111         already-created areas.  Use a subprocess if necessary.  New arg
50112         WD; all users changed.  MAKE_DIR function should now return 1
50113         if it creates a directory that is not readable.  Return -2 if
50114         a child process is spun off.
50115         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
50116         Adjust signature to match code.
50117         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
50118         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
50119         all users changed.
50120         * lib/savewd.c, lib/savewd.h: New files.
50121
50122 2006-09-15  Jim Meyering  <jim@meyering.net>
50123
50124         * modules/rename-dest-slash: New module.
50125         * MODULES.html.sh (posix_compat): Add it here.
50126
50127         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
50128
50129 2006-09-15  Jim Meyering  <jim@meyering.net>
50130
50131         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
50132         file.
50133
50134         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
50135
50136 2006-09-15  Jim Meyering  <jim@meyering.net>
50137
50138         * lib/rename-dest-slash.c (has_trailing_slash): Use
50139         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
50140         (rpl_rename_dest_slash): Perform the cheaper trailing slash
50141         test before testing whether SRC is a directory.
50142         Suggestions from Bruno Haible.
50143
50144         Avoid a warning about an unused variable.
50145         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
50146         into the #ifdef block where it's used.
50147
50148         * lib/rename-dest-slash.c: New file.
50149
50150 2006-09-14  Bruno Haible  <bruno@clisp.org>
50151
50152         * lib/allocsa.c: Include <config.h> unconditionally.
50153         * lib/asnprintf.c: Likewise.
50154         * lib/asprintf.c: Likewise.
50155         * lib/c-strcasecmp.c: Likewise.
50156         * lib/c-strcasestr.c: Likewise.
50157         * lib/c-strncasecmp.c: Likewise.
50158         * lib/c-strstr.c: Likewise.
50159         * lib/classpath.c: Likewise.
50160         * lib/clean-temp.c: Likewise.
50161         * lib/concatpath.c: Likewise.
50162         * lib/copy-file.c: Likewise.
50163         * lib/csharpcomp.c: Likewise.
50164         * lib/csharpexec.c: Likewise.
50165         * lib/execute.c: Likewise.
50166         * lib/fatal-signal.c: Likewise.
50167         * lib/findprog.c: Likewise.
50168         * lib/fwriteerror.c: Likewise.
50169         * lib/gl_array_list.c: Likewise.
50170         * lib/gl_array_oset.c: Likewise.
50171         * lib/gl_avltree_list.c: Likewise.
50172         * lib/gl_avltree_oset.c: Likewise.
50173         * lib/gl_avltreehash_list.c: Likewise.
50174         * lib/gl_carray_list.c: Likewise.
50175         * lib/gl_linked_list.c: Likewise.
50176         * lib/gl_linkedhash_list.c: Likewise.
50177         * lib/gl_list.c: Likewise.
50178         * lib/gl_oset.c: Likewise.
50179         * lib/gl_rbtree_list.c: Likewise.
50180         * lib/gl_rbtree_oset.c: Likewise.
50181         * lib/gl_rbtreehash_list.c: Likewise.
50182         * lib/imaxabs.c: Likewise.
50183         * lib/imaxdiv.c: Likewise.
50184         * lib/javacomp.c: Likewise.
50185         * lib/javaexec.c: Likewise.
50186         * lib/javaversion.c: Likewise.
50187         * lib/linebreak.c: Likewise.
50188         * lib/localcharset.c: Likewise.
50189         * lib/lock.c: Likewise.
50190         * lib/mbchar.c: Likewise.
50191         * lib/mbswidth.c: Likewise.
50192         * lib/mkdtemp.c: Likewise.
50193         * lib/pipe.c: Likewise.
50194         * lib/printf-args.c: Likewise.
50195         * lib/printf-parse.c: Likewise.
50196         * lib/progname.c: Likewise.
50197         * lib/progreloc.c: Likewise.
50198         * lib/readlink.c: Likewise.
50199         * lib/sh-quote.c: Likewise.
50200         * lib/stpcpy.c: Likewise.
50201         * lib/stpncpy.c: Likewise.
50202         * lib/strcasecmp.c: Likewise.
50203         * lib/strcasestr.c: Likewise.
50204         * lib/strcspn.c: Likewise.
50205         * lib/striconv.c: Likewise.
50206         * lib/strncasecmp.c: Likewise.
50207         * lib/strnlen1.c: Likewise.
50208         * lib/strstr.c: Likewise.
50209         * lib/strtok_r.c: Likewise.
50210         * lib/tls.c: Likewise.
50211         * lib/tmpdir.c: Likewise.
50212         * lib/unicodeio.c: Likewise.
50213         * lib/unsetenv.c: Likewise.
50214         * lib/vasnprintf.c: Likewise.
50215         * lib/vasprintf.c: Likewise.
50216         * lib/wait-process.c: Likewise.
50217         * lib/xallocsa.c: Likewise.
50218         * lib/xsetenv.c: Likewise.
50219         * lib/xstriconv.c: Likewise.
50220
50221 2006-09-13  Simon Josefsson  <jas@extundo.com>
50222
50223         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
50224         that internally, suggested by Ralf Wildenhues
50225         <Ralf.Wildenhues@gmx.de>.
50226
50227 2006-09-13  Simon Josefsson  <jas@extundo.com>
50228
50229         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
50230         @LIBOBJS@.
50231         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50232
50233 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
50234
50235         * lib/_fpending.c: Include <config.h> unconditionally, since we no
50236         longer worry about uses that don't define HAVE_CONFIG_H.
50237         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
50238         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
50239         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
50240         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
50241         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
50242         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
50243         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
50244         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
50245         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
50246         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
50247         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
50248         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
50249         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
50250         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
50251         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
50252         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
50253         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
50254         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
50255         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
50256         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
50257         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
50258         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
50259         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
50260         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
50261         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
50262         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
50263         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
50264         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
50265         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
50266         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
50267         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
50268         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
50269         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
50270         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
50271         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
50272         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
50273         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
50274         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
50275         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
50276         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
50277         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
50278         Likewise.
50279
50280 2006-09-13  Eric Blake  <ebb9@byu.net>
50281
50282         * lib/getopt.c: Fix typo in last commit.
50283
50284 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50285
50286         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
50287         dgettext.
50288
50289 2006-09-12  Jim Meyering  <jim@meyering.net>
50290
50291         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
50292         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
50293         Reported by Nelson H. F. Beebe.
50294
50295 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50296
50297         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
50298         program_invocation_name and program_invocation_short_name are
50299         initialized.
50300         * lib/argp-namefrob.h: Move declarations of program_invocation_name
50301         and program_invocation_short_name to argp.h, so they are visible
50302         to user programs.
50303         * lib/argp.h: Likewise
50304
50305 2006-09-10  Bruno Haible  <bruno@clisp.org>
50306
50307         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
50308         m4/inttypes_h.m4, m4/uintmax_t.m4.
50309
50310 2006-09-10  Bruno Haible  <bruno@clisp.org>
50311
50312         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
50313         gl_AC_TYPE_UINTMAX_T.
50314
50315 2006-09-10  Bruno Haible  <bruno@clisp.org>
50316
50317         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
50318
50319 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50320
50321         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
50322         convention.  Text proposed by Bruno Haible.
50323         (struct argp_option): Document the use of N_() wrappers.
50324
50325         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
50326         '\v', and translate the two parts separately, instead of feeding
50327         the whole string to gettext.  This allows to exclude
50328         '\v' from the strings visible to the translator by writing doc
50329         strings as N_("..") "\v" N_("..").
50330
50331 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
50332
50333         * config/srclist.txt: Undo latest change; the bug was fixed.
50334
50335 2006-09-09  Bruno Haible  <bruno@clisp.org>
50336
50337         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
50338         assignments if building a library without libtool.
50339         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
50340         in func_emit_lib_Makefile_am.
50341         (func_import): When building a static library libfoo.a, arrange to
50342         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
50343         (func_create_testdir): Likewise.
50344         * modules/gc (configure.ac, Makefile.am): If building statically,
50345         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
50346         * modules/iconvme (configure.ac, Makefile.am): Likewise.
50347         * modules/striconv (configure.ac, Makefile.am): Likewise.
50348         Based on a suggestion by Ralf Wildenhues.
50349
50350 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50351
50352         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50353         Check for unistd.h too, since Autoconf doesn't assume POSIX.
50354         Also:
50355
50356         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50357         Add year_2050_test to catch glibc bug 2821
50358         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50359
50360         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50361         Prefer #ifdef to #if.
50362
50363         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
50364         Return from 'main' instead of calling 'exit'.
50365
50366 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50367
50368         * lib/mktime.c (guess_time_tm): Fix bug where mktime
50369         returned the maximum time_t value rather than (time_t) -1.
50370         Problem originally reported by William Bardwell
50371         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50372
50373         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50374         Moved to here ...
50375         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50376         ... from here.
50377
50378 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50379
50380         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
50381         2821 is fixed.
50382
50383 2006-09-08  Jim Meyering  <jim@meyering.net>
50384
50385         Don't make generated files read-only.  That would bother too many
50386         people.  However, do retain the ability to work when targets are
50387         read-only: remove the destination and temporary files before writing
50388         them (when generated via sed or echo), or by using the -f option for
50389         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
50390         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50391         * modules/byteswap, modules/configmake, modules/fcntl:
50392         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50393         * modules/localcharset, modules/netinet_in, modules/poll:
50394         * modules/stdbool, modules/stdint, modules/sys_select:
50395         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50396
50397 2006-09-08  Jim Meyering  <jim@meyering.net>
50398
50399         Avoid new build failure on FreeBSD 6.0.
50400         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
50401         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
50402         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
50403
50404 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50405
50406         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
50407
50408 2006-09-07  Jim Meyering  <jim@meyering.net>
50409
50410         Fix global typo in last change: use chmod u-w, not chmod u-x.
50411         Spotted by Paul Eggert and Bruce Korb.
50412         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50413         * modules/byteswap, modules/configmake, modules/fcntl:
50414         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50415         * modules/localcharset, modules/netinet_in, modules/poll:
50416         * modules/stdbool, modules/stdint, modules/sys_select:
50417         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50418
50419 2006-09-06  Jim Meyering  <jim@meyering.net>
50420
50421         Make generated files be read-only.
50422         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
50423         Ensure that each generated file is now read-only.
50424         * modules/argz: Likewise.
50425         * modules/arpa_inet: Likewise.
50426         * modules/byteswap: Likewise.
50427         * modules/configmake: Likewise.
50428         * modules/fcntl: Likewise.
50429         * modules/fnmatch: Likewise.
50430         * modules/getopt: Likewise.
50431         * modules/glob: Likewise.
50432         * modules/inttypes: Likewise.
50433         * modules/netinet_in: Likewise.
50434         * modules/poll: Likewise.
50435         * modules/stdbool: Likewise.
50436         * modules/stdint: Likewise.
50437         * modules/sys_select: Likewise.
50438         * modules/sys_socket: Likewise.
50439         * modules/sys_stat: Likewise.
50440         * modules/sysexits: Likewise.
50441         * modules/localcharset: Same as above, but continue using temporary
50442         file named "t-$@" (why different?) rather than the "$@-t" used
50443         everywhere else.
50444
50445         * modules/sysexits (Makefile.am): Replace literal occurrences
50446         of "sysexit.h" more readable, and more consistent, "$@".
50447
50448 2006-09-06  Bruno Haible  <bruno@clisp.org>
50449
50450         * modules/striconv: New file.
50451         * modules/xstriconv: New file.
50452         * MODULES.html.sh (Internationalization functions): Add striconv,
50453         xstriconv.
50454
50455 2006-09-06  Bruno Haible  <bruno@clisp.org>
50456
50457         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
50458         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
50459         not using libtool correctly.
50460
50461 2006-09-06  Bruno Haible  <bruno@clisp.org>
50462
50463         * lib/striconv.h: New file.
50464         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
50465         iconvstring.c.
50466         * lib/xstriconv.h: New file.
50467         * lib/xstriconv.c: New file.
50468
50469 2006-09-06  Bruno Haible  <bruno@clisp.org>
50470
50471         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50472         lib_..._LDFLAGS.
50473
50474 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50475
50476         * lib/argz_.h: Sync from Libtool.
50477
50478         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
50479                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50480
50481         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
50482
50483 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50484
50485         * modules/trim: New file.
50486
50487 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50488
50489         * lib/trim.h: New file.
50490         * lib/trim.c: New file.
50491
50492 2006-09-05  Bruno Haible  <bruno@clisp.org>
50493
50494         * MODULES.html.sh (String handling): Add trim.
50495
50496 2006-09-04  Karl Berry  <karl@gnu.org>
50497
50498         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
50499         until next release.
50500
50501 2006-09-03  Bruno Haible  <bruno@clisp.org>
50502
50503         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
50504         correctly.
50505
50506 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50507
50508         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
50509         not gl_GETLOADAVG.  Omit unneeded semicolons.
50510         Problems reported by Ralf Wildenhues in
50511         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50512         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
50513         at the end, which is the usual gnulib style.
50514
50515         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
50516         of doing all the work ourselves.
50517         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
50518         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
50519
50520 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50521
50522         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
50523         Problem reported by Ralf Wildenhues in
50524         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50525
50526         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
50527         HAVE_STRUCT_STATFS_F_FSTYPENAME.
50528
50529 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50530
50531         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
50532         yesterday's patch by changing test -n to test -z.
50533
50534 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50535
50536         * modules/getloadavg (Files): Add m4/getloadavg.m4.
50537         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
50538         the former is now obsolescent.
50539
50540         * modules/chdir-long (Depends-on): Add fcntl.
50541
50542 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50543
50544         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
50545         obsolescent, and programs should use gnulib instead.
50546         * m4/getloadavg.m4: New file, with contents taken from Autoconf
50547         but with prefixes changed.
50548
50549 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50550
50551         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
50552         or stdbool.h, because they might not exist while configuring.
50553
50554         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
50555         Don't include unistd.h or limits.h; not needed, since chdir-long.h
50556         does that for us.
50557         (O_DIRECTORY): Remove.
50558
50559 2006-08-31  Eric Blake  <ebb9@byu.net>
50560
50561         * gnulib-tool: Don't let emacs change spaces to TAB.
50562
50563 2006-08-31  Bruno Haible  <bruno@clisp.org>
50564
50565         * gnulib-tool: When calling func_import more than once, do it in a
50566         subshell.
50567         Reported by Eric Blake <ebb9@byu.net>.
50568
50569 2006-08-31  Bruno Haible  <bruno@clisp.org>
50570
50571         * gnulib-tool (nl): Remove variable.
50572         (sed_transform_lib_file): Use more robust test for config-h module.
50573         (func_import): Fix typo in 2006-08-25 patch.
50574
50575 2006-08-31  Bruno Haible  <bruno@clisp.org>
50576
50577         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
50578         specified, augment Makefile.am variables instead of assigning them.
50579
50580 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50581
50582         Work around a bug in both the Linux and SunOS 64-bit kernels:
50583         nanosleep mishandles sleeps for longer than 2**31 seconds.
50584         Problem reported by Frank v Waveren in
50585         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50586         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
50587         Check for nanosleep bug.
50588         (LIB_NANOSLEEP): Append clock_gettime library if needed.
50589
50590 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50591
50592         Work around a bug in both the Linux and SunOS 64-bit kernels:
50593         nanosleep mishandles sleeps for longer than 2**31 seconds.
50594         Problem reported by Frank v Waveren in
50595         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50596         * lib/nanosleep.c (BILLION): New constant.
50597         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
50598         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
50599         implementation.
50600
50601 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50602
50603         * modules/nanosleep (Depends-on): Add gettime.
50604
50605 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50606         and Simon Josefsson  <jas@extundo.com>
50607         and Oskar Liljeblad  <oskar@osk.mine.nu>
50608
50609         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
50610         * gnulib-tool (func_import): New license type 'unmodifiable license
50611         text'.
50612         * modules/fdl: Use it.  Longer description.
50613         * module/gpl, module/lgpl: New files.
50614
50615 2006-08-30  Jim Meyering  <jim@meyering.net>
50616
50617         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
50618         shadowing the parameter.
50619
50620 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50621
50622         Sync from Libtool:
50623
50624         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50625
50626         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
50627         sharing with gnulib.  Report by Eric Blake.
50628
50629 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50630
50631         * modules/isapipe: New file.
50632         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
50633
50634 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50635
50636         * modules/configmake (Makefile.am): Add a comment, and omit
50637         the CONFIGMAKE_ prefix from generated macro names.  Suggested
50638         by Bruno Haible.
50639
50640 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50641
50642         * m4/isapipe.m4: New file.
50643
50644 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50645
50646         * lib/isapipe.c, lib/isapipe.h: New files.
50647
50648 2006-08-29  Jim Meyering  <jim@meyering.net>
50649
50650         * modules/configmake (Makefile.am): Make configmake.h depend on
50651         Makefile.  Otherwise, a stale configmake.h could hang around.
50652
50653 2006-08-29  Eric Blake  <ebb9@byu.net>
50654
50655         * lib/error.c (error_at_line, print_errno_message): Match libc, after
50656         resolution of upstream bug 3044.
50657
50658 2006-08-29  Bruno Haible  <bruno@clisp.org>
50659
50660         * modules/localcharset (Depends-on): Add configmake.
50661         (Makefile.am): Remove setting of LIBDIR through DEFS.
50662
50663 2006-08-29  Bruno Haible  <bruno@clisp.org>
50664
50665         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
50666         defined.
50667
50668 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50669
50670         * modules/fcntl: New file.
50671         * modules/chdir-safer (Depends-on): Add fcntl.
50672         * modules/fts: Likewise.
50673         * modules/mkdir-p: Likewise.
50674
50675         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
50676         This undoes the most recent change, since we're now addressing the
50677         problem in a different way.
50678
50679         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
50680         into output, since the output might be called Makefile.am even
50681         if $makefile_name is something different.
50682         (func_import): Use $makefile_am rather than
50683         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
50684         empty.
50685
50686         * modules/inttypes (Files): Add m4/inttypes-h.m4.
50687
50688 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50689
50690         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
50691         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
50692         recent change to stdint.m4, since we're now addressing the problem in a
50693         different way.
50694
50695 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50696
50697         * m4/fcntl_h.m4: New file.
50698
50699 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50700
50701         * lib/fcntl_.h: New file.
50702         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
50703         the fcntl module.
50704         * lib/dirchownmod.c: Likewise.
50705         * lib/fts.c: Likewise.
50706
50707         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
50708         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
50709         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
50710         just before including <inttypes.h>, to avoid circular inclusion.
50711
50712 2006-08-28  Jim Meyering  <jim@meyering.net>
50713
50714         * doc/visibility.texi: Actually read and correct the grammar of the
50715         sentence affected by yesterday's change.
50716
50717 2006-08-28  Eric Blake  <ebb9@byu.net>
50718
50719         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
50720         needs wrapper.
50721
50722 2006-08-28  Eric Blake  <ebb9@byu.net>
50723
50724         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
50725
50726 2006-08-28  Eric Blake  <ebb9@byu.net>
50727
50728         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
50729
50730 2006-08-28  Bruno Haible  <bruno@clisp.org>
50731
50732         * modules/c-strstr: New file, from GNU gettext.
50733         * MODULES.html.sh (String handling): Add c-strstr.
50734
50735 2006-08-28  Bruno Haible  <bruno@clisp.org>
50736
50737         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
50738         macros.
50739         Reported by Eric Blake.
50740
50741 2006-08-28  Bruno Haible  <bruno@clisp.org>
50742
50743         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
50744         (VASNPRINTF): Return a string of length > INT_MAX without failing.
50745         * lib/vasprintf.c: Include errno.h, limits.h.
50746         (EOVERFLOW): New fallback definition.
50747         (vasprintf): Test here whether the string length is > INT_MAX.
50748         * lib/vsnprintf.c: Include errno.h, limits.h.
50749         (EOVERFLOW): New fallback definition.
50750         (vsnprintf): Fix bug when generated string was too long for the buffer.
50751         Test here whether the string length is > INT_MAX.
50752
50753 2006-08-28  Bruno Haible  <bruno@clisp.org>
50754
50755         * lib/inttypes_.h (SCNX*): Remove definitions.
50756         Reported by Eric Blake.
50757
50758 2006-08-28  Bruno Haible  <bruno@clisp.org>
50759
50760         * lib/c-strstr.h: New file, from GNU gettext.
50761         * lib/c-strstr.c: New file, from GNU gettext.
50762
50763 2006-08-28  Bruno Haible  <bruno@clisp.org>
50764
50765         * gnulib-tool: Reorder some statements.
50766
50767 2006-08-28  Bruno Haible  <bruno@clisp.org>
50768
50769         * gnulib-tool: New option --makefile-name.
50770         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
50771         $makefile_name.
50772         (func_import): Write $makefile_name to the cache file, and read it from
50773         there unless explicitly specified. Use $makefile_name as file name
50774         instead of Makefile.am. Adjust the recommendations accordingly.
50775
50776 2006-08-28  Bruno Haible  <bruno@clisp.org>
50777
50778         * gnulib-tool (func_verify_module): Check against misapplying patch.
50779
50780 2006-08-28  Bruno Haible  <bruno@clisp.org>
50781
50782         * gnulib-tool (func_relativize, func_relconcat): New functions.
50783         Give an error if --local-dir is given with --update.
50784         Remove trailing slashes from $local_gnulib_dir.
50785         (func_import): Store the relativized $local_gnulib_dir in
50786         gnulib-cache.m4, and read it from there if not specified explicitly.
50787
50788 2006-08-28  Bruno Haible  <bruno@clisp.org>
50789
50790         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
50791         is the current directory. Respect also $local_gnulib_dir.
50792
50793 2006-08-28  Bruno Haible  <bruno@clisp.org>
50794             Simon Josefsson  <jas@extundo.com>
50795
50796         BeOS portability.
50797         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
50798
50799 2006-08-27  Jim Meyering  <jim@meyering.net>
50800
50801         * doc/visibility.texi: Remove duplicate word: "pointer".
50802
50803 2006-08-26  Bruno Haible  <bruno@clisp.org>
50804
50805         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
50806         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
50807         (Makefile.am): Create inttypes.h from inttypes_.h.
50808         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
50809
50810         * modules/imaxabs: New file.
50811
50812         * modules/imaxdiv: New file.
50813
50814 2006-08-26  Bruno Haible  <bruno@clisp.org>
50815
50816         * m4/inttypes.m4: New file.
50817         * m4/_inttypes_h.m4: Remove file.
50818         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
50819         PRI_MACROS_BROKEN.
50820         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
50821
50822         * m4/imaxabs.m4: New file.
50823
50824         * m4/imaxdiv.m4: New file.
50825
50826 2006-08-26  Bruno Haible  <bruno@clisp.org>
50827
50828         * lib/inttypes_.h: New file.
50829         * lib/inttypes.h: Remove file.
50830         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
50831
50832         * lib/imaxabs.c: New file.
50833
50834         * lib/imaxdiv.c: New file.
50835
50836 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50837
50838         New config-h module, so that "make" output needn't be cluttered
50839         by -DHAVE_CONFIG_H.
50840         * MODULES.html.sh (Support for building libraries and executables):
50841         Add config-h.
50842         * modules/config-h: New file.
50843         * gnulib-tool (nl, sed_transform_lib_file): New vars.
50844         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
50845         the config-h module is used.
50846
50847         New configmake module, so that "make" output needn't be cluttered
50848         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
50849         * MODULES.html.sh (Support for building libraries and executables):
50850         Add configmake.
50851         * modules/configmake: New file.
50852
50853 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50854
50855         * m4/config-h.m4: New file.
50856
50857 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50858
50859         * config/srclist.txt: Add elisp-comp.
50860
50861 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50862
50863         * MODULES.html.sh (Support for building libraries and executables):
50864         Add elisp-comp.
50865         * build-aux/elisp-comp: New file.
50866         * modules/elisp-comp: New file.
50867
50868 2006-08-24  Bruno Haible  <bruno@clisp.org>
50869
50870         * gnulib-tool (func_create_testdir): Use non-default values of
50871         sourcebase and m4base.
50872
50873 2006-08-24  Bruno Haible  <bruno@clisp.org>
50874
50875         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
50876         HTML structure.
50877
50878 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50879
50880         * modules/openat (Depends-on): Add lchown.
50881
50882 2006-08-23  Bruno Haible  <bruno@clisp.org>
50883
50884         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
50885         of gl_LOCK_EARLY instead of gl_LOCK.
50886
50887 2006-08-23  Bruno Haible  <bruno@clisp.org>
50888
50889         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
50890         on OSF/1 to no.
50891         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
50892
50893 2006-08-23  Bruno Haible  <bruno@clisp.org>
50894
50895         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
50896         as unusable.
50897
50898         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
50899         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
50900         (gl_LOCK): New macro.
50901
50902 2006-08-22  Simon Josefsson  <jas@extundo.com>
50903
50904         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
50905         to md5 module.
50906
50907 2006-08-22  Simon Josefsson  <jas@extundo.com>
50908
50909         * MODULES.html.sh: Add "Support for maintaining and release
50910         projects".
50911
50912         * build-aux/gnupload: New file, from coreutils.
50913
50914 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50915
50916         Avoid the need for AC_LIBSOURCES in m4 macros.
50917         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
50918         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
50919         * modules/check-version (EXTRA_DIST): Add check-version.h.
50920         * modules/crc (EXTRA_DIST): Add crc.h.
50921         * modules/des (EXTRA_DIST): Add des.h.
50922         * modules/gc (EXTRA_DIST): Add gc.h.
50923         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
50924         * modules/getline (EXTRA_DIST): Add getline.h.
50925         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
50926         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
50927         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
50928         * modules/md2 (EXTRA_DIST): Add md2.h.
50929         * modules/md4 (EXTRA_DIST): Add md4.h.
50930         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
50931         * modules/read-file (EXTRA_DIST): Add read-file.h.
50932         * modules/readline (EXTRA_DIST): Add readline.h.
50933         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
50934         rijndael-api-fst.h.
50935
50936 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50937
50938         * m4/rijndael.m4 (gl_ARCFOUR):
50939         * m4/arctwo.m4 (gl_ARCTWO):
50940         * m4/check-version.m4 (gl_CHECK_VERSION):
50941         * m4/crc.m4 (gl_CRC):
50942         * m4/des.m4 (gl_DES):
50943         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
50944         * m4/gc.m4 (gl_GC):
50945         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
50946         * m4/getline.m4 (gl_FUNC_GETLINE):
50947         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
50948         * m4/hmac-md5.m4 (gl_HMAC_MD5):
50949         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
50950         * m4/md2.m4 (gl_MD2):
50951         * m4/md4.m4 (gl_MD4):
50952         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
50953         * m4/read-file.m4 (gl_FUNC_READ_FILE):
50954         * m4/readline.m4 (gl_FUNC_READLINE):
50955         * m4/rijndael.m4 (gl_RIJNDAEL):
50956         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50957         to get the necessary .h files and whatnot.
50958
50959 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50960
50961         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
50962         gnulib rather than the other way around.
50963         * config/srclistvars.sh (COREUTILS): Remove.
50964
50965 2006-08-22  Jim Meyering  <jim@meyering.net>
50966
50967         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
50968
50969         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
50970
50971 2006-08-22  Eric Blake  <ebb9@byu.net>
50972
50973         * modules/regexprops-generic: New file.
50974         * MODULES.html.sh (Support for building documentation): List it.
50975
50976 2006-08-22  Eric Blake  <ebb9@byu.net>
50977
50978         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
50979         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50980         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
50981         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
50982
50983 2006-08-22  Bruno Haible  <bruno@clisp.org>
50984
50985         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
50986         and lib_LTLIBRARIES like the other lib_* variables.
50987
50988 2006-08-22  Bruno Haible  <bruno@clisp.org>
50989
50990         * build-aux/x-to-1.in: New file, from GNU gettext.
50991
50992 2006-08-22  Bruno Haible  <bruno@clisp.org>
50993
50994         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
50995         <utmpx.h> exists.
50996
50997 2006-08-22  Bruno Haible  <bruno@clisp.org>
50998
50999         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
51000         <utmpx.h> exists.
51001
51002 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51003
51004         BeOS portability.
51005         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
51006         exist.
51007         Problem reported by Bruno Haible.
51008
51009 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51010
51011         Avoid the need for AC_LIBSOURCES in m4 macros.
51012         * modules/acl (EXTRA_DIST): Add acl.h.
51013         * modules/argmatch (Files): Add m4/argmatch.m4.
51014         (configure.ac): Add gl_ARGMATCH.
51015         (EXTRA_DIST): Renamed from lib_SOURCES, for
51016         consistency with the other modules.  Remove argmatch.c.
51017         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
51018         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
51019         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
51020         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
51021         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
51022         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
51023         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
51024         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
51025         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
51026         * modules/closeout (EXTRA_DIST): Add closeout.h.
51027         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
51028         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
51029         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
51030         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
51031         dirname.h; remove basename.c and stripslash.c.
51032         * modules/exclude (EXTRA_DIST): Add exclude.h.
51033         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
51034         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
51035         * modules/file-type (EXTRA_DIST): Add file-type.h.
51036         * modules/filemode (EXTRA_DIST): Add filemode.h.
51037         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
51038         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
51039         * modules/fpending (EXTRA_DIST): Add __fpending.h.
51040         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
51041         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
51042         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
51043         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
51044         * modules/getdate (EXTRA_DIST): Add getdate.c.
51045         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
51046         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
51047         * modules/getpass (EXTRA_DIST): Add getpass.h.
51048         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
51049         * modules/group-member (EXTRA_DIST): Add group-member.h.
51050         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
51051         * modules/hash (EXTRA_DIST): Add hash.h.
51052         * modules/human (EXTRA_DIST): Add human.h.
51053         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
51054         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
51055         * modules/lchown (EXTRA_DIST): Add lchown.h.
51056         * modules/long-options (EXTRA_DIST): Add long-options.h.
51057         * modules/lstat (EXTRA_DIST): Add lstat.h.
51058         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
51059         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
51060         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
51061         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
51062         * modules/memxor (EXTRA_DIST): Add memxor.h.
51063         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
51064         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
51065         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
51066         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
51067         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
51068         * modules/physmem (EXTRA_DIST): Add physmem.h.
51069         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
51070         * modules/posixver (EXTRA_DIST): Add posixver.h.
51071         * modules/quote (EXTRA_DIST): Add quote.h.
51072         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
51073         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
51074         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
51075         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
51076         regex_internal.h regexec.c.
51077         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
51078         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
51079         * modules/same (EXTRA_DIST): Add same.h.
51080         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
51081         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
51082         * modules/savedir (EXTRA_DIST): Add savedir.h.
51083         * modules/sha1 (EXTRA_DIST): Add sha1.h.
51084         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
51085         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
51086         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
51087         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
51088         * modules/strdup (EXTRA_DIST): Add strdup.h.
51089         * modules/strftime (EXTRA_DIST): Add strftime.h.
51090         * modules/strndup (EXTRA_DIST): Add strndup.h.
51091         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
51092         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
51093         * modules/time_r (EXTRA_DIST): Add time_r.h.
51094         * modules/timespec (EXTRA_DIST): Add timespec.h.
51095         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
51096         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
51097         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
51098         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
51099         * modules/userspec (EXTRA_DIST): Add userspec.h.
51100         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
51101         * modules/utimens (EXTRA_DIST): Add utimens.h.
51102         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
51103         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
51104         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
51105         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
51106         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
51107         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
51108         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
51109         * modules/yesno (EXTRA_DIST): Add yesno.h.
51110
51111 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51112
51113         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
51114
51115         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
51116         * m4/dev-ino.m4, same-inode.m4: Remove.
51117
51118         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
51119         * m4/acl.m4 (AC_FUNC_ACL):
51120         * m4/backupfile.m4 (gl_BACKUPFILE):
51121         * m4/c-strtod.m4 (gl_C99_STRTOLD):
51122         * m4/canon-host.m4 (gl_CANON_HOST):
51123         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
51124         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
51125         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
51126         * m4/cloexec.m4 (gl_CLOEXEC):
51127         * m4/close-stream.m4 (gl_CLOSE_STREAM):
51128         * m4/closeout.m4 (gl_CLOSEOUT):
51129         * m4/dirfd.m4 (gl_FUNC_DIRFD):
51130         * m4/dirname.m4 (gl_DIRNAME):
51131         * m4/exclude.m4 (gl_EXCLUDE):
51132         * m4/exitfail.m4 (gl_EXITFAIL):
51133         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
51134         * m4/file-type.m4 (gl_FILE_TYPE):
51135         * m4/filemode.m4 (gl_FILEMODE):
51136         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
51137         * m4/fpending.m4 (gl_FUNC_FPENDING):
51138         * m4/fprintftime.m4 (gl_FPRINTFTIME):
51139         * m4/fts.m4 (gl_FUNC_FTS):
51140         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
51141         * m4/getdate.m4 (gl_GETDATE):
51142         * m4/gethrxtime.m4 (gl_GETHRXTIME):
51143         * m4/getpagesize.m4 (gl_GETPAGESIZE):
51144         * m4/getpass.m4 (gl_FUNC_GETPASS):
51145         * m4/gettime.m4 (gl_GETTIME):
51146         * m4/getugroups.m4 (gl_GETUGROUPS):
51147         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
51148         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
51149         * m4/hard-locale.m4 (gl_HARD_LOCALE):
51150         * m4/hash.m4 (gl_HASH):
51151         * m4/idcache.m4 (gl_IDCACHE):
51152         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
51153         * m4/lchown.m4 (gl_FUNC_LCHOWN):
51154         * m4/long-options.m4 (gl_LONG_OPTIONS):
51155         * m4/lstat.m4 (gl_FUNC_LSTAT):
51156         * m4/md5.m4 (gl_MD5):
51157         * m4/memcasecmp.m4 (gl_MEMCASECMP):
51158         * m4/memcoll.m4 (gl_MEMCOLL):
51159         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
51160         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
51161         * m4/memxor.m4 (gl_MEMXOR):
51162         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
51163         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
51164         * m4/modechange.m4 (gl_MODECHANGE):
51165         * m4/mountlist.m4 (gl_MOUNTLIST):
51166         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51167         * m4/openat.m4 (gl_FUNC_OPENAT):
51168         * m4/pathmax.m4 (gl_PATHMAX):
51169         * m4/physmem.m4 (gl_PHYSMEM):
51170         * m4/posixtm.m4 (gl_POSIXTM):
51171         * m4/posixver.m4 (gl_POSIXVER):
51172         * m4/quote.m4 (gl_QUOTE):
51173         * m4/quotearg.m4 (gl_QUOTEARG):
51174         * m4/readtokens.m4 (gl_READTOKENS):
51175         * m4/readutmp.m4 (gl_READUTMP):
51176         * m4/regex.m4 (gl_REGEX):
51177         * m4/safe-read.m4 (gl_SAFE_READ):
51178         * m4/safe-write.m4 (gl_SAFE_WRITE):
51179         * m4/same.m4 (gl_SAME):
51180         * m4/save-cwd.m4 (gl_SAVE_CWD):
51181         * m4/savedir.m4 (gl_SAVEDIR):
51182         * m4/settime.m4 (gl_SETTIME):
51183         * m4/sha1.m4 (gl_SHA1):
51184         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
51185         * m4/stat-macros.m4 (gl_STAT_MACROS):
51186         * m4/stat-time.m4 (gl_STAT_TIME):
51187         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
51188         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
51189         * m4/strdup.m4 (gl_FUNC_STRDUP):
51190         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
51191         * m4/strndup.m4 (gl_FUNC_STRNDUP):
51192         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
51193         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
51194         * m4/time_r.m4 (gl_TIME_R):
51195         * m4/timespec.m4 (gl_TIMESPEC):
51196         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
51197         * m4/unlinkdir.m4 (gl_UNLINKDIR):
51198         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
51199         * m4/userspec.m4 (gl_USERSPEC):
51200         * m4/utimecmp.m4 (gl_UTIMECMP):
51201         * m4/utimens.m4 (gl_UTIMENS):
51202         * m4/xalloc.m4 (gl_XALLOC):
51203         * m4/xgetcwd.m4 (gl_XGETCWD):
51204         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
51205         * m4/xreadlink.m4 (gl_XREADLINK):
51206         * m4/xstrtod.m4 (gl_XSTRTOD):
51207         * m4/yesno.m4 (gl_YESNO):
51208         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
51209         to get the necessary .h files and whatnot.
51210
51211 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
51212             Bruno Haible  <bruno@clisp.org>
51213
51214         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
51215         /bin/sh understanding of '!' conditional negation.
51216
51217 2006-08-21  Jim Meyering  <jim@meyering.net>
51218
51219         * modules/openat (Depends-on): Really alphabetize.
51220
51221         * modules/acl (Depends-on): Add error and quote.
51222
51223         * check-module (find_included_lib_files): Add at-func.c to the
51224         ok-to-include-more-than-once white list.
51225
51226         * modules/openat (Depends-on): Add lstat.  Alphabetize.
51227
51228 2006-08-21  Bruno Haible  <bruno@clisp.org>
51229
51230         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51231         Emit a pkgdata_DATA variable only if some snippets add contents to it.
51232         Reported by Martin Lambers <marlam@marlam.de>.
51233
51234 2006-08-21  Bruno Haible  <bruno@clisp.org>
51235
51236         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
51237         specify an installation location, don't emit a noinst_LIBRARIES or
51238         noinst_LTLIBRARIES assignment.
51239
51240 2006-08-21  Bruno Haible  <bruno@clisp.org>
51241
51242         BeOS portability.
51243         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
51244         BeOS has mbrtowc() but no <wctype.h>.
51245
51246 2006-08-21  Bruno Haible  <bruno@clisp.org>
51247
51248         BeOS portability.
51249         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
51250         exist.
51251
51252 2006-08-21  Bruno Haible  <bruno@clisp.org>
51253
51254         BeOS portability.
51255         * lib/mbchar.h: Include <wctype.h> only if it exists.
51256
51257 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51258
51259         Remove files that are no longer needed by their respective modules.
51260         * m4/obstack.m4: Remove.
51261         * m4/strerror_r.m4: Remove.
51262         * m4/uint32_t.m4: Remove.
51263         * m4/uintptr_t.m4: Remove.
51264         * m4/ullong_max.m4: Remove.
51265         * m4/xstrtoimax.m4: Remove.
51266         * m4/xstrtoumax.m4: Remove.
51267
51268         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
51269         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
51270         dependencies now capture this.
51271
51272         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
51273         Do not use AC_LIBSOURCES, since gnulib modules now do this.
51274         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
51275         * m4/human.m4 (gl_HUMAN): Likewise.
51276         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
51277         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
51278
51279         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
51280
51281         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
51282         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
51283         stdint.
51284         * m4/human.m4 (gl_HUMAN): Likewise.
51285         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
51286         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
51287         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
51288         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
51289         * m4/xstrtol (gl_XSTRTOL): Likewise.
51290
51291         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
51292         AC_TYPE_LONG_LONG_INT.
51293         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
51294         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
51295         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
51296         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
51297
51298         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
51299         on stdbool.
51300
51301         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
51302         (gl_PREREQ_XSTRTOUL): Remove.
51303
51304         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
51305
51306         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
51307         mode.
51308
51309 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51310
51311         Add and change modules to make it easier for coreutils to use
51312         gnulib-tool.
51313         * modules/backupfile (Files): Remove m4/d-ino.m4.
51314         (Depends-on): Add d-ino.
51315         * modules/cycle-check (Depends-on): Add stdint.
51316         (lib_SOURCES): Add cycle-check.h.
51317         * modules/d-ino: New module.
51318         * modules/d-type: New module.
51319         * modules/error (Files): Remove m4/strerror_r.m4.
51320         * modules/filemode (Files): Add m4/st_dm_mode.m4.
51321         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
51322         m4/inttypes_h.m4, m4/uintmax_t.m4.
51323         (Depends-on): Add stdint.
51324         (lib_SOURCES): Add fsusage.h.
51325         * modules/getcwd (Files): Remove d-ino.m4.
51326         (Depends-on): Add d-ino.
51327         * modules/getndelim2 (Depends-on): Add stdint.
51328         * modules/glob (Files): Remove m4/d-type.m4.
51329         (Depends-on): Add d-type.
51330         * modules/host-os: New module.
51331         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
51332         m4/inttypes_h.m4, m4/uintmax_t.m4.
51333         * Depends-on: Add stdint.
51334         (lib_SOURCES): Add human.h.
51335         * modules/inttostr (Files): Remove m4/intmax_t.m4,
51336         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
51337         m4/uintmax_t.m4, m4/ulonglong.m4.
51338         (Depends-on): Add stdint.
51339         (EXTRA_DIST): Add inttostr.h.
51340         * modules/lchmod: New module.
51341         * modules/link-follow: New module.
51342         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
51343         (Depends-on): Add lchmod.
51344         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
51345         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
51346         (Depends-on): Add stdint.
51347         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
51348         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
51349         (Depends-on): Add stdint.
51350         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
51351         * modules/perl: New module.
51352         * modules/regex (Depends-on): Add stdint.
51353         * modules/rmdir-errno: New module.
51354         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51355         m4/intmax_t.m4.
51356         (Depends-on): Add stdint.
51357         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51358         m4/uintmax_t.m4.
51359         (Depends-on): Add stdint.
51360         * modules/unlink-busy: New module.
51361         * modules/utimecmp (Depends-on): Add stdint.
51362         * modules/uptime: New module.
51363         * modules/winsz-ioctl: New module.
51364         * modules/winsz-termios: New module.
51365         * modules/xnanosleep (Depends-on): Add nanosleep.
51366         * modules/ullong_max: Remove.
51367         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
51368         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
51369         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
51370         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
51371         (Depends-on): Add inttypes.
51372         (lib_SOURCES): Add xstrtol.h.
51373         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
51374         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
51375         * MODULES.html.sh: Move 'assert' into the assert section.
51376         Move 'dummy' into the linking section.
51377         Remove ullong_max.
51378         Add section for compatibility checks for POSIX:2001 functions,
51379         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
51380         winsz-ioctl, and winsz-termios into it.
51381         Add lchmod.
51382         Add top-level Misc section and put host-os, perl, and uptime
51383         into it.
51384
51385 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51386
51387         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
51388         now assume the stdint module.  Do not include inttypes.h.
51389         * lib/fsusage.h: Likewise.
51390         * lib/getndelim2.c: Likewise.
51391         * lib/human.h: Likewise.
51392         * lib/inttostr.h: Likewise.
51393         * lib/obstack.c: Likewise.
51394         * lib/regex_internal.h: Likewise.
51395         * lib/tempname.c: Likewise.
51396         * lib/utimecmp.c: Likewise.
51397         * lib/xstrtol.h: Likewise.
51398
51399         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
51400
51401         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
51402         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
51403         * lib/xtime.h: Likewise.
51404
51405 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51406
51407         * modules/openat (Files): Add lib/fchmodat.c.
51408         Fixes problem reported by Jay Youngman.
51409
51410 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51411
51412         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
51413         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
51414
51415 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
51416             Bruno Haible  <bruno@clisp.org>
51417
51418         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
51419         and is a script that invokes bison. Tighten the code. Add comments.
51420
51421 2006-08-18  Jim Meyering  <jim@meyering.net>
51422
51423         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
51424         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
51425         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
51426         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
51427
51428 2006-08-18  Bruno Haible  <bruno@clisp.org>
51429
51430         * modules/bison-i18n: New file.
51431         * MODULES.html.sh (Internationalization functions): Add it.
51432
51433 2006-08-18  Bruno Haible  <bruno@clisp.org>
51434
51435         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
51436         sys/statvfs.h. When getmntinfo was found, check its declaration and
51437         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
51438
51439 2006-08-18  Bruno Haible  <bruno@clisp.org>
51440
51441         * m4/bison-i18n.m4: New file, from bison.
51442
51443 2006-08-18  Bruno Haible  <bruno@clisp.org>
51444
51445         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
51446         (ME_DUMMY): Treat "kernfs" as a dummy.
51447         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
51448
51449 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51450
51451         Update from coreutils.
51452
51453         2006-08-15  Jim Meyering  <jim@meyering.net>
51454
51455         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
51456
51457         2006-01-17  Jim Meyering  <jim@meyering.net>
51458
51459         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
51460
51461         2006-01-11  Jim Meyering  <jim@meyering.net>
51462
51463         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
51464         Check for the lchmod function.
51465
51466 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51467
51468         Update from coreutils.
51469
51470         * lib/__fpending.h: Add copyright notice.
51471         * lib/fprintftime.h: Likewise.
51472         * lib/savedir.c: Use (C) in copyright notice.
51473         * lib/savedir.h: Likewise.
51474
51475         2006-08-15  Jim Meyering  <jim@meyering.net>
51476
51477         * lib/at-func.c: New file, with the logic of all emulated at-functions.
51478         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
51479         in support of the EXPECTED_ERRNO macro.
51480         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
51481         definitions.  Instead, define the appropriate symbols and include
51482         "at-func.c".
51483         * lib/mkdirat.c (mkdirat): Likewise.
51484         * lib/fchmodat.c (fchmodat): Likewise.
51485         (ENOSYS): Remove definition.
51486         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
51487         it.  Don't include "unistd--.h" -- it wasn't ever used.
51488
51489         2006-01-17  Jim Meyering  <jim@meyering.net>
51490
51491         Rewrite fts.c not to change the current working directory,
51492         by using openat, fstatat, fdopendir, etc..
51493
51494         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
51495         (HAVE_OPENAT_SUPPORT): Define.
51496         [_LIBC] (fchdir): Don't undef or define; no longer used.
51497         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
51498         Now, this `function' always succeeds, and consumes its file descriptor
51499         parameter -- so callers must not close such FDs.  Update callers.
51500         (diropen_fd, opendirat, cwd_advance_fd): New functions.
51501         (diropen): Add parameter, SP.  Adjust all callers.
51502         Implement using diropen_fd, rather than open.
51503         (fts_open): Initialize new member, fts_cwd_fd.
51504         Remove fts_rft-setting code.
51505         (fts_close): Close fts_cwd_fd, if necessary.
51506         (__opendir2): Define in terms of opendir or opendirat,
51507         depending on whether the FST_NOCHDIR flag is set.
51508         (fts_build): Since fts_safe_changedir consumes its FD, and since
51509         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
51510         and close the dup'd file descriptor upon failure.
51511         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
51512         (fts_safe_changedir): Tweak semantics to reflect that this function
51513         now calls cwd_advance_fd and hence consumes its FD argument.
51514         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
51515         [struct FTS] (fts_rft): Remove now-unused member.
51516         [struct FTS] (fts_cycle.state): Improve comment.
51517
51518         * lib/openat.c (openat_needs_fchdir): New function.
51519         * lib/openat.h (openat_needs_fchdir): Declare it.
51520
51521 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51522
51523         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
51524         Problem and fix reported by Pádraig Brady in
51525         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
51526
51527 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51528
51529         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
51530
51531 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51532
51533         * lib/memcoll.c (memcoll): Optimize for the common case where the
51534         arguments are bytewise equal.
51535
51536 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51537
51538         * doc/regexprops-generic.texi: Add a copyright notice.
51539
51540 2006-08-15  Bruno Haible  <bruno@clisp.org>
51541
51542         * modules/tmpdir (License): Change to LGPL.
51543
51544 2006-08-15  Bruno Haible  <bruno@clisp.org>
51545
51546         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
51547         module.
51548
51549 2006-08-14  Simon Josefsson  <jas@extundo.com>
51550
51551         * config/srclist.txt: Add gnupload.
51552
51553 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51554
51555         Change copyright notice from LGPL 2 to GPL 2, since that's the
51556         standard form used in the gnulib repository.
51557         * tests/test-lock.c: Likewise.
51558         * tests/test-stdint.c: Likewise.
51559         * tests/test-tls.c: Likewise.
51560
51561         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
51562         prelude-manager.  User shorter URLs for GNU projects, without '?'.
51563         Add copyright notice.
51564
51565         * check-module: Add copyright notice.  Output a copyright
51566         notice if "--version" is specified.
51567         * modules/COPYING: New file.
51568         * tests/test-getaddrinfo.c: Add copyright notice.
51569         * tests/test-verify.c: Likewise.
51570
51571 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51572
51573         Change copyright notice from LGPL 2 to GPL 2, since that's the
51574         standard form used in the gnulib repository.
51575         * lib/lock.c: LGPL -> GPL.
51576         * lib/lock.h: Likewise.
51577         * lib/strnlen1.c: Likewise.
51578         * lib/strnlen1.h: Likewise.
51579         * lib/tls.c: Likewise.
51580         * lib/tls.h: Likewise.
51581         * lib/tmpdir.c: Likewise.
51582
51583         * lib/TODO: Remove; this belongs only in coreutils.
51584
51585 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51586
51587         Add copyright notices to long-enough files that lack them, since
51588         otherwise the files aren't clearly free.  Use the same notice that
51589         getdate.texi already uses.
51590         * doc/alloca-opt.texi: Add copyright notice.
51591         * doc/alloca.texi: Likewise.
51592         * doc/ctime.texi: Likewise.
51593         * doc/functions.texi: Likewise.
51594         * doc/gcd.texi: Likewise.
51595         * doc/gnulib-tool.texi: Likewise.
51596         * doc/inet_ntoa.texi: Likewise.
51597         * doc/visibility.texi: Likewise.
51598
51599         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
51600         * doc/quote.texi: Add copyright notice.
51601
51602         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
51603         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
51604         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
51605         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
51606         is now obsolete, and give a pointer to the Sun list.
51607         Add copyright notice.
51608
51609 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51610
51611         * config/srclistvars.sh: Add copyright notice.
51612
51613 2006-08-14  Eric Blake  <ebb9@byu.net>
51614
51615         Import the following change from libc:
51616
51617         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
51618
51619         Upstream bug 2997.
51620         * lib/misc/error.c: Add space between program name and message if file
51621         name is missing.
51622
51623 2006-08-12  Karl Berry  <karl@gnu.org>
51624
51625         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
51626         remove, these originate in gnulib now.
51627
51628 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51629
51630         * doc/Makefile (standards.info standards.html standards.dvi):
51631         Also depend on make-stds.texi.
51632
51633 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51634
51635         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
51636         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
51637
51638         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
51639         in wchar_t.  Problem reported by Eric Blake.
51640
51641         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
51642         LEN is smaller than SIZE.  Suggested by Bruno Haible.
51643         Also, help the compiler to keep LEN in a register.
51644
51645 2006-08-11  Eric Blake  <ebb9@byu.net>
51646
51647         * users.txt: Sort.  Add tar.
51648
51649 2006-08-11  Bruno Haible  <bruno@clisp.org>
51650
51651         * users.txt: New file.
51652
51653 2006-08-11  Bruno Haible  <bruno@clisp.org>
51654
51655         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
51656         before <wchar.h>. Needed for OSF/1 and BSD/OS.
51657
51658 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51659
51660         * modules/snprintf (Depends-on): Remove minmax.
51661         (Maintainer): Add self and Bruno.
51662
51663 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51664
51665         * lib/.cppi-disable: Add snprintf.h, socket_.h.
51666         * lib/snprintf.c: Include <errno.h> and <limits.h>.
51667         (EOVERFLOW): Define if the system does not.
51668         Do not include "minmax.h"; it wasn't used.
51669         (snprintf): Don't assume size_t promotes to an unsigned type.
51670         Fix bug when generated string was too long for the buffer: the
51671         buffer's contents are supposed to be the initial prefix of the
51672         output.  Don't assume vasnprintf returns EOVERFLOW if the size
51673         exceeds INT_MAX; do the check ourselves.
51674
51675         Import the following changes from libc:
51676
51677         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
51678
51679         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
51680         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
51681         set wc to the byte which couldn't be converted.
51682         (re_string_reconstruct): Don't clear valid_raw_len before calling
51683         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
51684         tip_context using re_string_context_at.
51685
51686         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
51687
51688         * lib/posix/regex.h: g++ still cannot handled [restrict].
51689
51690         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
51691
51692         * lib/posix/regex.h: Remove special handling for VMS.
51693
51694 2006-08-10  Jim Meyering  <jim@meyering.net>
51695
51696         * modules/same-inode: New module.
51697         * modules/dev-ino: New module.
51698         * modules/cycle-check: Depend on these modules, rather than simply
51699         including their .h files.
51700         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
51701         required via m4/cycle-check.m4.
51702         * modules/same: Depend on new same-inode module, rather than
51703         including same-inode.h.
51704         * modules/chdir-safer: New file.
51705
51706         * modules/chown (Depends-on): Add stat-macros.
51707
51708 2006-08-10  Jim Meyering  <jim@meyering.net>
51709
51710         * m4/cycle-check.m4: New file.
51711         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
51712         * m4/dev-ino.m4, m4/same-inode.m4: New files.
51713
51714 2006-08-10  Eric Blake  <ebb9@byu.net>
51715
51716         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
51717         in from original proposal.
51718
51719 2006-08-10  Eric Blake  <ebb9@byu.net>
51720         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51721
51722         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
51723         namespace.
51724
51725 2006-08-10  Bruno Haible  <bruno@clisp.org>
51726
51727         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
51728         as well.
51729
51730 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51731
51732         Sync from coreutils.
51733
51734         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
51735
51736         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
51737         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
51738
51739 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51740
51741         * modules/restrict: Remove; no longer needed now that we assume
51742         Autoconf 2.59 or later.
51743         * MODULES.html.sh: Remove 'restrict'.
51744         * modules/argp (Depends-on): Remove 'restrict'.
51745         * modules/base64 (Depends-on): Likewise.
51746         * modules/gc (Depends-on): Likewise.
51747         * modules/getaddrinfo (Depends-on): Likewise.
51748         * modules/glob (Depends-on): Likewise.
51749         * modules/inet_ntop (Depends-on): Likewise.
51750         * modules/inet_pton (Depends-on): Likewise.
51751         * modules/memxor (Depends-on): Likewise.
51752         * modules/regex (Depends-on): Likewise.
51753         * modules/strtok_r (Depends-on): Likewise.
51754         * modules/time_r (Depends-on): Likewise.
51755
51756 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51757
51758         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
51759         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
51760         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51761         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
51762         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
51763         * m4/memxor.m4 (gl_MEMXOR): Likewise.
51764         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
51765         gl_C_RESTRICT replaced by AC_C_RESTRICT.
51766
51767         Merge from coreutils.
51768         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
51769         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
51770         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51771         * m4/time_r.m4 (gl_TIME_R): Likewise.
51772
51773 2006-08-09  Karl Berry  <karl@gnu.org>
51774
51775         * config/srclist.txt: no more gettext-tools, per Bruno.
51776
51777 2006-08-08  Eric Blake  <ebb9@byu.net>
51778
51779         * modules/verror: New module.
51780         * MODULES.html.sh: Document it.
51781
51782 2006-08-08  Eric Blake  <ebb9@byu.net>
51783
51784         * lib/verror.h, lib/verror.c: New files.
51785
51786 2006-08-08  Eric Blake  <ebb9@byu.net>
51787
51788         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
51789         verror_at_line output complies with GNU Coding Standards even when
51790         file is NULL.
51791
51792 2006-08-07  Bruno Haible  <bruno@clisp.org>
51793
51794         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
51795         versions of AIX.
51796         Reported by Ralf Wildenhues.
51797
51798 2006-08-07  Bruno Haible  <bruno@clisp.org>
51799
51800         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
51801         in an AC_DEFUN. Needed so that the autoconf snippets can use
51802         AC_REQUIRE.
51803
51804 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51805
51806         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51807         Initialize pkgdata_DATA.
51808         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
51809         overriding it.
51810
51811 2006-08-06  Eric Blake  <ebb9@byu.net>
51812
51813         * lib/error.h: Fold in some upstream changes from glibc.
51814         * lib/error.c: Likewise.
51815
51816 2006-08-04  Bruno Haible  <bruno@clisp.org>
51817
51818         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51819         Make the mostlyclean-local rule depend on mostlyclean-generic.
51820         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
51821
51822 2006-07-31  Bruno Haible  <bruno@clisp.org>
51823
51824         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
51825         <stdlib.h>, <string.h>.
51826
51827 2006-07-30  Bruno Haible  <bruno@clisp.org>
51828
51829         * modules/readlink (License): Change to LGPL.
51830
51831 2006-07-30  Bruno Haible  <bruno@clisp.org>
51832
51833         * modules/javaversion (Makefile.am): Distribute javaversion.java and
51834         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
51835         set PKGDATADIR to point to it.
51836
51837 2006-07-30  Bruno Haible  <bruno@clisp.org>
51838
51839         * modules/csharpexec (configure.ac): Comment out macro invocation.
51840         * modules/javaexec (configure.ac): Likewise.
51841         * modules/javacomp-script (configure.ac): Likewise.
51842
51843         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
51844
51845 2006-07-30  Bruno Haible  <bruno@clisp.org>
51846
51847         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
51848         linked-list.
51849
51850 2006-07-30  Bruno Haible  <bruno@clisp.org>
51851
51852         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
51853
51854 2006-07-30  Bruno Haible  <bruno@clisp.org>
51855
51856         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51857         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
51858         get removed.
51859
51860 2006-07-29  Bruno Haible  <bruno@clisp.org>
51861
51862         Make it possible for gnulib-tool to work with locally modified or
51863         augmented gnulib repositories.
51864         * gnulib-tool (func_usage): Document --local-dir option.
51865         (local_gnulib_dir): New variable.
51866         Handle --local-dir option.
51867         (func_lookup_file): New function.
51868         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
51869         (func_get_description, func_get_filelist, func_get_description,
51870         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
51871         func_get_automake_snippet, func_get_include_directive,
51872         func_get_license, func_get_maintainer): Use func_lookup_file.
51873         (func_import, func_create_testdir): Use func_lookup_file.
51874
51875 2006-07-29  Bruno Haible  <bruno@clisp.org>
51876
51877         * modules/setenv (Depends-on): Add unistd.
51878
51879 2006-07-29  Bruno Haible  <bruno@clisp.org>
51880
51881         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
51882
51883 2006-07-29  Bruno Haible  <bruno@clisp.org>
51884
51885         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
51886
51887 2006-07-29  Bruno Haible  <bruno@clisp.org>
51888
51889         * gnulib-tool (import, update): If there is no Makefile.am, look at
51890         aclocal.m4, instead of bailing out.
51891
51892 2006-07-29  Bruno Haible  <bruno@clisp.org>
51893
51894         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
51895         Categorize the options by when they are useful.
51896
51897 2006-07-29  Bruno Haible  <bruno@clisp.org>
51898
51899         * gnulib-tool (func_usage): Document option --no-libtool.
51900         Handle option --no-libtool.
51901         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
51902         for changed semantics of $libtool variable.
51903         (func_import): Likewise. If libtool is not used, show this through
51904         an option --no-libtool.
51905         (func_create_testdir): Update.
51906
51907 2006-07-29  Bruno Haible  <bruno@clisp.org>
51908
51909         * gnulib-tool (func_import): Extend error message about missing
51910         --doc-base.
51911
51912 2006-07-29  Bruno Haible  <bruno@clisp.org>
51913
51914         * gnulib-tool (func_import): Don't create the $docbase directory if
51915         there is no file to store there.
51916
51917 2006-07-29  Bruno Haible  <bruno@clisp.org>
51918
51919         * gnulib-tool (autoconf_minversion): If a --dir option is given and
51920         relevant, look for configure.ac there, not in the current directory.
51921         Also use a simple search for AC_PREREQ, not "autoconf --trace".
51922
51923 2006-07-29  Bruno Haible  <bruno@clisp.org>
51924
51925         * gnulib-tool (SORT): New variable.
51926         (func_usage): Undocument --assume-autoconf option.
51927         Remove --assume-autoconf option handling.
51928         (autoconf_minversion): Determine from the contents of configure.ac.
51929         (func_import): Remove autoconf_minversion handling.
51930         Suggested by Eric Blake.
51931
51932 2006-07-29  Bruno Haible  <bruno@clisp.org>
51933
51934         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
51935
51936 2006-07-29  Bruno Haible  <bruno@clisp.org>
51937
51938         * config/srclist.txt (*setenv.[ch]): Remove rules.
51939
51940 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51941
51942         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
51943
51944 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51945
51946         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
51947         arpa/inet.h.
51948
51949 2006-07-28  Simon Josefsson  <jas@extundo.com>
51950
51951         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
51952         * modules/inet_pton (Depends-on): Likewise.
51953
51954 2006-07-28  Simon Josefsson  <jas@extundo.com>
51955
51956         * m4/netinet_in_h.m4: New file.
51957
51958 2006-07-28  Simon Josefsson  <jas@extundo.com>
51959
51960         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
51961         #include's.
51962
51963 2006-07-28  Simon Josefsson  <jas@extundo.com>
51964
51965         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
51966         #include's.
51967
51968 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
51969
51970         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
51971         setgid on directories only if they set these bits.
51972         * lib/modechange.h: Remove obsolete comment about masks.
51973
51974 2006-07-28  Eric Blake  <ebb9@byu.net>
51975
51976         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
51977         macro expansion.
51978
51979 2006-07-28  Bruno Haible  <bruno@clisp.org>
51980
51981         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
51982
51983 2006-07-28  Bruno Haible  <bruno@clisp.org>
51984
51985         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
51986
51987 2006-07-28  Bruno Haible  <bruno@clisp.org>
51988
51989         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51990         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51991         Define fallbacks.
51992         Avoids link error on FreeBSD 4.x.
51993         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51994
51995         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
51996         encoding.
51997         * lib/mbswidth.c (iswcntrl): Likewise.
51998
51999 2006-07-27  Bruno Haible  <bruno@clisp.org>
52000
52001         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
52002         test.
52003
52004 2006-07-27  Bruno Haible  <bruno@clisp.org>
52005
52006         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
52007         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
52008         defined.
52009
52010 2006-07-26  Eric Blake  <ebb9@byu.net>
52011
52012         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
52013
52014 2006-07-26  Eric Blake  <ebb9@byu.net>
52015
52016         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
52017         like mingw that lack mkstemp.
52018         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
52019         avoid compilation warning on mingw.
52020
52021 2006-07-26  Bruno Haible  <bruno@clisp.org>
52022
52023         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
52024         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
52025         INT_FAST*_MIN, INTPTR_MIN.
52026
52027 2006-07-25  Bruno Haible  <bruno@clisp.org>
52028
52029         * modules/version-etc (Depends-on): Add stdarg.
52030
52031 2006-07-25  Bruno Haible  <bruno@clisp.org>
52032
52033         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
52034         complex commands.
52035
52036 2006-07-25  Bruno Haible  <bruno@clisp.org>
52037
52038         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
52039         defined in <stdarg.h> or config.h.
52040
52041 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
52042
52043         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
52044         (gl_STDIO_SAFER): Remove.
52045
52046 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
52047
52048         * MODULES.html.sh (File stream based Input/Output):
52049         Add fopen-safer, tmpfile-safer; remove stdio-safer.
52050         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
52051         * modules/fopen-safer, modules/tmpfile-safer: New files.
52052         * modules/stdio-safer: Remove.
52053
52054 2006-07-24  Bruno Haible  <bruno@clisp.org>
52055
52056         * modules/tmpdir: New file.
52057         * MODULES.html.sh (File system functions): Add it.
52058
52059 2006-07-24  Bruno Haible  <bruno@clisp.org>
52060
52061         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
52062         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
52063
52064 2006-07-24  Bruno Haible  <bruno@clisp.org>
52065
52066         * modules/clean-temp: New file.
52067
52068 2006-07-24  Bruno Haible  <bruno@clisp.org>
52069
52070         * m4/tmpdir.m4: New file, from GNU gettext.
52071
52072 2006-07-24  Bruno Haible  <bruno@clisp.org>
52073
52074         * lib/tmpdir.h: New file, from GNU gettext.
52075         * lib/tmpdir.c: New file, from GNU gettext.
52076
52077 2006-07-24  Bruno Haible  <bruno@clisp.org>
52078
52079         * lib/clean-temp.h: New file, from GNU gettext.
52080         * lib/clean-temp.c: New file, from GNU gettext.
52081
52082 2006-07-23  Eric Blake  <ebb9@byu.net>
52083
52084         * modules/stdio-safer (Files): Add tmpfile-safer.c.
52085         (Depends-on): Add binary-io.
52086
52087 2006-07-23  Eric Blake  <ebb9@byu.net>
52088
52089         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
52090
52091 2006-07-23  Eric Blake  <ebb9@byu.net>
52092
52093         * lib/tmpfile-safer.c: New file.
52094         * lib/stdio-safer.h (fopen_safer): Add prototype.
52095         * lib/stdio--.h (tmpfile): Make safer.
52096
52097 2006-07-23  Bruno Haible  <bruno@clisp.org>
52098
52099         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
52100         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
52101         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
52102         gl_linked_remove_at): Use it.
52103
52104 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52105         and Simon Josefsson <jas@extundo.com>
52106
52107         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
52108
52109         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
52110
52111 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52112
52113         * modules/close-stream: New file.
52114         * modules/closeout (Description): Make it clear that it exits
52115         with a diagnostic on error.
52116         (Depends-on): Add close-stream.  Remove fpending, stdbool.
52117         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
52118
52119 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52120
52121         * m4/close-stream.m4: New file.
52122
52123 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52124
52125         * lib/close-stream.c, lib/close-stream.h: New files.
52126
52127 2006-07-22  Bruno Haible  <bruno@clisp.org>
52128
52129         Merge from GNU gettext 0.15.
52130
52131         2006-05-01  Bruno Haible  <bruno@clisp.org>
52132
52133                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
52134
52135         2006-07-22  Bruno Haible  <bruno@clisp.org>
52136
52137                 * modules/javaversion: New file.
52138                 * MODULES.html.sh (Java): Add javaversion.
52139
52140         2006-03-12  Bruno Haible  <bruno@clisp.org>
52141
52142                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
52143
52144         2005-12-04  Bruno Haible  <bruno@clisp.org>
52145
52146                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
52147                 (untested).
52148
52149         2006-06-21  Bruno Haible  <bruno@clisp.org>
52150
52151                 Avoid warnings from recent versions of mcs.
52152                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
52153                 -o, -L, -r any more. Use options documented since mcs-1.0
52154                 instead. Similarly for -g.
52155
52156         2005-12-04  Bruno Haible  <bruno@clisp.org>
52157
52158                 * build-aux/csharpcomp.sh.in: Suffix for resources is
52159                 .resources, not .resource.
52160
52161         2005-07-09  Bruno Haible  <bruno@clisp.org>
52162
52163                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
52164                 add a .dll suffix.
52165                 Reported by Mark Junker <mjscod@gmx.de>.
52166
52167         2006-07-22  Bruno Haible  <bruno@clisp.org>
52168
52169                 * modules/gettext: Upgrade to gettext-0.15.
52170                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
52171                 m4/visibility.m4.
52172                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
52173
52174 2006-07-22  Bruno Haible  <bruno@clisp.org>
52175
52176         Merge from GNU gettext 0.15.
52177
52178         2006-03-25  Bruno Haible  <bruno@clisp.org>
52179
52180                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
52181
52182         2006-07-21  Bruno Haible  <bruno@clisp.org>
52183
52184                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
52185                 "1.1".
52186
52187         2006-05-09  Bruno Haible  <bruno@clisp.org>
52188
52189                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
52190                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
52191                 for the conftestver execution.
52192
52193         2006-05-01  Bruno Haible  <bruno@clisp.org>
52194
52195                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
52196                 optional target-version argument. Verify that the compiler
52197                 groks source of the specified source-version, or add -source
52198                 option as necessary. Verify that the compiler produces
52199                 bytecode in the specified target-version, or add -target and
52200                 -source options as necessary. Make the result of the test
52201                 available as variable CONF_JAVAC. Also log error output in
52202                 config.log.
52203
52204         2006-03-11  Bruno Haible  <bruno@clisp.org>
52205
52206                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
52207
52208         2006-05-09  Bruno Haible  <bruno@clisp.org>
52209
52210                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
52211                 CLASSPATH_SEPARATOR to a semicolon.
52212
52213         2006-03-12  Bruno Haible  <bruno@clisp.org>
52214
52215                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
52216                 available as variable CONF_JAVA, for subsequent autoconf
52217                 tests. Also log error output in config.log.
52218
52219         2006-07-19  Bruno Haible  <bruno@clisp.org>
52220
52221                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
52222                 that getline works on glibc2 systems. Needed to avoid trouble
52223                 in relocatable.c.
52224                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
52225
52226         2005-12-04  Bruno Haible  <bruno@clisp.org>
52227
52228                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
52229                 launcher (untested).
52230
52231         2005-12-04  Bruno Haible  <bruno@clisp.org>
52232
52233                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
52234
52235         2006-07-22  Bruno Haible  <bruno@clisp.org>
52236
52237                 * gettext.m4: Update from GNU gettext-0.15.
52238                 * nls.m4: Likewise.
52239                 * po.m4: Likewise.
52240                 * inttypes-pri.m4: Likewise.
52241                 * inttypes-h.m4: Renamed from inttypes.m4.
52242                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
52243
52244 2006-07-22  Bruno Haible  <bruno@clisp.org>
52245
52246         Merge from GNU gettext 0.15.
52247
52248         2005-07-05  Bruno Haible  <bruno@clisp.org>
52249
52250                 * printf-args.c (printf_fetchargs): Work around broken
52251                 definition of wint_t on mingw.
52252
52253         2005-02-12  Bruno Haible  <bruno@clisp.org>
52254
52255                 * xallocsa.h: Add extern "C" for C++.
52256
52257         2006-05-17  Bruno Haible  <bruno@clisp.org>
52258
52259                 Cygwin portability.
52260                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
52261
52262         2006-04-30  Bruno Haible  <bruno@clisp.org>
52263
52264                 * progreloc.c: Include <mach-o/dyld.h> if available.
52265                 (find_executable): Use _NSGetExecutablePath when possible.
52266
52267         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52268
52269                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
52270                 function.
52271
52272         2005-12-29  Bruno Haible  <bruno@clisp.org>
52273
52274                 * progreloc.c (set_program_name_and_installdir): Fix
52275                 compilation error.
52276
52277         2005-12-04  Bruno Haible  <bruno@clisp.org>
52278
52279                 Cygwin portability.
52280                 * progreloc.c: Include <windows.h> also on Cygwin.
52281                 (find_executable): Add support for Cygwin.
52282                 (set_program_name_and_installdir): Handle also platforms with
52283                 nonempty EXEEXT.
52284
52285         2006-07-11  Bruno Haible  <bruno@clisp.org>
52286
52287                 * javacomp.c: Fix a comment.
52288                 Reported by Jim Meyering.
52289
52290         2006-04-30  Bruno Haible  <bruno@clisp.org>
52291
52292                 * javacomp.h (compile_java_class): Add source_version,
52293                 target_version arguments.
52294                 * javacomp.c: Rewritten to choose only a compiler that
52295                 respects the specified source_version and target_version.
52296
52297         2006-06-27  Bruno Haible  <bruno@clisp.org>
52298
52299                 Assume correct S_ISDIR macro.
52300                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
52301
52302         2006-07-22  Bruno Haible  <bruno@clisp.org>
52303
52304                 * javaversion.h: New file, from GNU gettext.
52305                 * javaversion.c: New file, from GNU gettext.
52306                 * javaversion.java: New file, from GNU gettext.
52307                 * javaversion.class: New file, from GNU gettext.
52308
52309         2006-05-17  Bruno Haible  <bruno@clisp.org>
52310
52311                 Cygwin portability.
52312                 * javaexec.c (execute_java_class): Test for jview program
52313                 also on Cygwin.
52314
52315         2006-04-09  Bruno Haible  <bruno@clisp.org>
52316
52317                 * fatal-signal.c: Don't include string.h.
52318                 (at_fatal_signal): Use a copying loop instead of memcpy.
52319
52320         2005-12-04  Bruno Haible  <bruno@clisp.org>
52321
52322                 * csharpexec.c: Add support for 'clix' launcher (untested).
52323                 (execute_csharp_using_sscli): New function.
52324                 (execute_csharp_program): Call it.
52325
52326         2006-06-21  Bruno Haible  <bruno@clisp.org>
52327
52328                 Avoid warnings from recent versions of mcs.
52329                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
52330                 -o, -L, -r any more. Use options documented since mcs-1.0
52331                 instead. Similarly for -g.
52332
52333         2005-07-09  Bruno Haible  <bruno@clisp.org>
52334
52335                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
52336                 add a .dll suffix.
52337                 Reported by Mark Junker <mjscod@gmx.de>.
52338
52339         2006-06-17  Bruno Haible  <bruno@clisp.org>
52340
52341                 * config.charset: Update for NetBSD 3.0.
52342
52343         2006-05-17  Bruno Haible  <bruno@clisp.org>
52344
52345                 Cygwin portability.
52346                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
52347
52348         2006-05-16  Bruno Haible  <bruno@clisp.org>
52349
52350                 * localcharset.c [CYGWIN]: Include <windows.h>.
52351                 (get_charset_aliases): For Cygwin, return the same CPxxx
52352                 aliases list as under WIN32.
52353                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
52354                 the environment variables. Fall back to GetACP().
52355
52356         2006-04-05  Bruno Haible  <bruno@clisp.org>
52357
52358                 * config.charset: Update Juan Manuel Guerrero's address.
52359
52360         2005-02-12  Bruno Haible  <bruno@clisp.org>
52361
52362                 * allocsa.h: Add extern "C" for C++.
52363
52364         2005-02-10  Bruno Haible  <bruno@clisp.org>
52365
52366                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
52367                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
52368
52369         2006-07-22  Bruno Haible  <bruno@clisp.org>
52370
52371                 * gettext.h: Update to GNU gettext-0.15.
52372
52373 2006-07-22  Bruno Haible  <bruno@clisp.org>
52374
52375         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
52376         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
52377         lib-prefix.m4, longdouble.m4, ssize_t.m4.
52378
52379 2006-07-21  Eric Blake  <ebb9@byu.net>
52380
52381         * modules/stdlib-safer: New file.
52382         * MODULES.html.sh (File stream based Input/Output): Add
52383         stdlib-safer.
52384
52385 2006-07-21  Eric Blake  <ebb9@byu.net>
52386
52387         * lib/stdlib-safer.h: New file from coreutils, required by
52388         stdlib--.h.
52389
52390 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
52391
52392         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
52393
52394 2006-07-20  Bruno Haible  <bruno@clisp.org>
52395
52396         * gnulib-tool: Recognize new option --assume-autoconf.
52397         (autoconf_minversion): New variable.
52398         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
52399
52400 2006-07-20  Bruno Haible  <bruno@clisp.org>
52401
52402         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
52403
52404 2006-07-19  Derek R. Price  <derek@ximbiot.com>
52405
52406         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
52407         Reindent and repaginate.
52408
52409 2006-07-19  Derek Price  <derek@ximbiot.com>
52410
52411         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
52412         Correct grammar.
52413
52414 2006-07-17  Bruno Haible  <bruno@clisp.org>
52415
52416         * modules/list: New file.
52417         * modules/array-list: New file.
52418         * modules/carray-list, modules/carray-list-tests: New files.
52419         * modules/linked-list, modules/linked-list-tests: New files.
52420         * modules/avltree-list, modules/avltree-list-tests: New files.
52421         * modules/rbtree-list, modules/rbtree-list-tests: New files.
52422         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
52423         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
52424         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
52425         * modules/oset: New file.
52426         * modules/array-oset: New file.
52427         * modules/avltree-oset, modules/avltree-oset-tests: New files.
52428         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
52429         * tests/test-carray_list.c: New file.
52430         * tests/test-linked_list.c: New file.
52431         * tests/test-avltree_list.c: New file.
52432         * tests/test-rbtree_list.c: New file.
52433         * tests/test-linkedhash_list.c: New file.
52434         * tests/test-avltreehash_list.c: New file.
52435         * tests/test-rbtreehash_list.c: New file.
52436         * tests/test-avltree_oset.c: New file.
52437         * tests/test-rbtree_oset.c: New file.
52438         * MODULES.html.sh (Container data structures): New section.
52439
52440 2006-07-17  Bruno Haible  <bruno@clisp.org>
52441
52442         * m4/gl_list.m4: New file.
52443
52444 2006-07-17  Bruno Haible  <bruno@clisp.org>
52445
52446         * lib/gl_list.h: New file.
52447         * lib/gl_list.c: New file.
52448         * lib/gl_array_list.h: New file.
52449         * lib/gl_array_list.c: New file.
52450         * lib/gl_carray_list.h: New file.
52451         * lib/gl_carray_list.c: New file.
52452         * lib/gl_linked_list.h: New file.
52453         * lib/gl_linked_list.c: New file.
52454         * lib/gl_anylinked_list1.h: New file.
52455         * lib/gl_anylinked_list2.h: New file.
52456         * lib/gl_avltree_list.h: New file.
52457         * lib/gl_avltree_list.c: New file.
52458         * lib/gl_anyavltree_list1.h: New file.
52459         * lib/gl_anyavltree_list2.h: New file.
52460         * lib/gl_rbtree_list.h: New file.
52461         * lib/gl_rbtree_list.c: New file.
52462         * lib/gl_anyrbtree_list1.h: New file.
52463         * lib/gl_anyrbtree_list2.h: New file.
52464         * lib/gl_anytree_list1.h: New file.
52465         * lib/gl_anytree_list2.h: New file.
52466         * lib/gl_linkedhash_list.h: New file.
52467         * lib/gl_linkedhash_list.c: New file.
52468         * lib/gl_anyhash_list1.h: New file.
52469         * lib/gl_anyhash_list2.h: New file.
52470         * lib/gl_avltreehash_list.h: New file.
52471         * lib/gl_avltreehash_list.c: New file.
52472         * lib/gl_rbtreehash_list.h: New file.
52473         * lib/gl_rbtreehash_list.c: New file.
52474         * lib/gl_anytreehash_list1.h: New file.
52475         * lib/gl_anytreehash_list2.h: New file.
52476
52477         * lib/gl_oset.h: New file.
52478         * lib/gl_oset.c: New file.
52479         * lib/gl_array_oset.h: New file.
52480         * lib/gl_array_oset.c: New file.
52481         * lib/gl_avltree_oset.h: New file.
52482         * lib/gl_avltree_oset.c: New file.
52483         * lib/gl_rbtree_oset.h: New file.
52484         * lib/gl_rbtree_oset.c: New file.
52485         * lib/gl_anytree_oset.h: New file.
52486
52487 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52488
52489         * m4/mkancesdirs.m4: New file.
52490         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
52491         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
52492         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
52493         it.
52494
52495 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52496
52497         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
52498         * lib/mkancesdirs.h: New files.
52499         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
52500         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
52501         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
52502         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
52503         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
52504         callers changed.  Revamp internals significantly, by not
52505         attempting to create directories that are temporarily more
52506         permissive than the final results.  Do not attempt to use
52507         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
52508         This removes some race conditions, fixes some bugs, and simplifies
52509         things.  Use new dirchownmod function to do owner and mode changes.
52510         * lib/mkdir-p.h: Likewise.
52511         * lib/modechange.c (octal_to_mode): New function.
52512         (struct mode_change): New member mentioned.
52513         (make_node_op_equals): New arg mentioned.  All callers changed.
52514         (mode_compile): Keep track of which mode bits the user has explicitly
52515         mentioned.
52516         (mode_adjust): New arg DIR, so that we implement the X op correctly.
52517         New arg PMODE_BITS, to keep track of which mode bits the user
52518         mentioned; it treats S_ISUID and S_ISGID speciall.
52519         All callers changed.
52520         * lib/modechange.h: Likewise.
52521
52522 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52523
52524         * MODULES.html.sh: Add mkancestors.
52525         * modules/mkancesdirs: New module.
52526         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
52527         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
52528         The chdir-safer and afs files are now orphans; I'll remove them
52529         unless someone speaks up.
52530         Add lib/dirchownmod.c, lib/dirchownmod.h.
52531         (Depends-on): Remove alloca, chown, save-cwd, dirname.
52532         Add lchown, mkancesdirs.
52533         (Maintainer): Add self.
52534
52535 2006-07-15  Karl Berry  <karl@gnu.org>
52536
52537         * gnulib-tool: help message wording/arrangement.
52538
52539 2006-07-14  Simon Josefsson  <jas@extundo.com>
52540
52541         * doc/gnulib.texi (Libtool and Windows): New section.
52542
52543 2006-07-12  Simon Josefsson  <jas@extundo.com>
52544
52545         * modules/gendocs (License): Fix license, approved by Karl.
52546
52547 2006-07-12  Eric Blake  <ebb9@byu.net>
52548
52549         * MODULES.html.sh: Add gendocs.
52550
52551 2006-07-11  Eric Blake  <ebb9@byu.net>
52552
52553         * modules/fdl: New module, to install doc/fdl.texi.
52554         * MODULES.html.sh: Add new section for documentation modules.
52555         * gnulib-tool: Avoid space-tab.
52556         (--doc-base): New option, to manage files from doc.
52557
52558 2006-07-11  Eric Blake  <ebb9@byu.net>
52559
52560         * m4/absolute-header.m4: Fix comments to match recent change.
52561
52562 2006-07-11  Eric Blake  <ebb9@byu.net>
52563
52564         * gnulib-tool: List --doc-base before --tests-base.
52565
52566 2006-07-11  Derek R. Price  <derek@ximbiot.com>
52567
52568         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
52569
52570 2006-07-11  Bruno Haible  <bruno@clisp.org>
52571
52572         * README: Mention where to put documentation.
52573
52574 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52575
52576         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
52577
52578 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52579
52580         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
52581         to stdint.m4.
52582
52583 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52584
52585         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
52586         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
52587         "no/such/file/stdint.h" when there is no such file, so that
52588         the resulting C code can be parsed by dodgy compilers.
52589         Problems reported by Bob Proulx.
52590
52591 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52592
52593         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
52594         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52595         macros into the GNU _D_EXACT_NAMLEN.
52596         * lib/savedir.c:  Likewise.
52597         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
52598
52599 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52600         and Paul Eggert  <eggert@cs.ucla.edu>
52601
52602         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
52603         * m4/savedir.m4:
52604         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52605         macros into the GNU _D_EXACT_NAMLEN.
52606
52607 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52608
52609         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
52610         around the absolute name, to work around a problem with the HP-UX
52611         11.23 native C compiler, reported by Bob Proulx.
52612
52613 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52614
52615         * doc/maintain.texi, make-stds.texi: Sync from
52616         <http://savannah.gnu.org/projects/gnustandards>.
52617
52618 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52619
52620         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
52621
52622 2006-07-09  Jim Meyering  <jim@meyering.net>
52623
52624         * m4/glob.m4: Remove a doubled word in a comment.
52625
52626 2006-07-09  Jim Meyering  <jim@meyering.net>
52627
52628         * lib/argp-pv.c: Remove a doubled word in a comment.
52629         * lib/check-version.c (check_version): Likewise.
52630         * lib/javacomp.c (compile_java_class): Likewise.
52631
52632 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52633
52634         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
52635         for the benefit of people using Autoconf 2.60.  If you want to
52636         support older Autoconf versions you can copy m4/onceonly_2_57.m4
52637         (or m4/onceonly.m4, if pre-2.57) manually.
52638
52639 2006-07-08  Jim Meyering  <jim@meyering.net>
52640
52641         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
52642         comment.
52643         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
52644         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
52645         comment.
52646
52647 2006-07-08  Jim Meyering  <jim@meyering.net>
52648
52649         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
52650
52651 2006-07-07  Simon Josefsson  <jas@extundo.com>
52652
52653         * tests/test-crc.c: Change expected crc value, the test vector
52654         were probably computed using the old broken crc.c?
52655
52656 2006-07-06  Simon Josefsson  <jas@extundo.com>
52657
52658         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
52659         now the canonical place for the M4 file).
52660
52661         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
52662         from the sys_socket dependency now.
52663
52664         * modules/inet_pton (Files): Ditto.
52665
52666         * modules/inet_ntop (Files): Ditto.
52667
52668 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52669
52670         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
52671         not gl_PREREQ_GETUSERSHELL.
52672
52673 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52674
52675         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
52676         with only one argument, for Autoconf 2.60.
52677         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
52678         expand to nothing, so add a shell command to avoid syntax error.
52679         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52680
52681 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52682
52683         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
52684
52685 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52686
52687         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
52688         no longer needed.  Check for isblank decl.
52689         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
52690         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
52691         of existence.
52692
52693 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52694
52695         * lib/getloadavg.c: Use __VMS, not VMS.
52696         * lib/getopt.c: Likewise.
52697         * lib/getpagesize.h: Likewise.
52698         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
52699         and probably does not work.
52700
52701 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52702
52703         * lib/.cppi-disable: Add wcwidth.
52704         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
52705         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
52706         (ISGRAPH): Remove.  All uses changed to isgraph.
52707         (FOLD) [!defined _LIBC]: Remove special case.
52708         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
52709         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
52710         HAVE_ISBLANK.
52711         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
52712         case.
52713
52714 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52715
52716         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
52717         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
52718         brackets.  Other minor changes to suppress some compiler
52719         warnings.
52720
52721 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52722         and Paul Eggert  <eggert@cs.ucla.edu>
52723
52724         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
52725         of invoking obsolescent AC_HEADER_DIRENT macro.
52726         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
52727         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
52728         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
52729         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
52730         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
52731         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52732         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
52733         * m4/readdir.m4: Remove; no longer needed.
52734
52735 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52736         and Paul Eggert  <eggert@cs.ucla.edu>
52737
52738         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
52739         Don't worry about this obsolete case any more.
52740         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
52741         directories.
52742         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
52743         worry about this obsolete case any more.
52744         * lib/fts.c: Likewise.
52745         * lib/getcwd.c: Likewise.
52746         * lib/glob.h: Likewise.
52747         * lib/savedir.c: Likewise.
52748
52749 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52750
52751         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
52752         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
52753         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
52754         needed.
52755         All uses removed.
52756         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52757         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52758         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
52759         needed.
52760         * m4/getdate.m4 (gl_GETDATE): Likewise.
52761         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52762         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52763         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52764         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52765         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52766         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52767         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
52768         needed.
52769
52770 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52771
52772         * lib/memcasecmp.c: Include <limits.h>.
52773         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
52774         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
52775         Don't assume isdigit succeeds only on '0' through '9'.
52776
52777 2006-07-05  Eric Blake  <ebb9@byu.net>
52778
52779         * modules/getaddrinfo (Depends-on): Add snprintf.
52780
52781 2006-07-05  Eric Blake  <ebb9@byu.net>
52782
52783         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
52784         to avoid 'header present but could not be compiled' on cygwin.
52785
52786 2006-07-05  Eric Blake  <ebb9@byu.net>
52787
52788         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
52789         missing from netdb.h.
52790         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
52791
52792 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52793
52794         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
52795         no longer needed.
52796         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
52797         * m4/getdate.m4 (gl_GETDATE): Likewise.
52798         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52799         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52800         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52801         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52802         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52803
52804 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52805
52806         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
52807         All uses of is_space replaced by isspace.
52808         * lib/exit.h: Don't talk about STDC_HEADERS.
52809         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
52810         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
52811         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
52812         replaced by isprint etc.
52813         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
52814         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52815         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
52816         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
52817         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
52818         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52819
52820 2006-07-05  Bruno Haible  <bruno@clisp.org>
52821
52822         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
52823         the function exists, before testing against AIX.
52824         Reported by Martin Lambers <marlam@marlam.de>.
52825
52826 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52827
52828         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
52829         From Mark D. Baushke.
52830
52831 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52832
52833         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
52834         to the absolute name, not just one, to bypass Sun C 5.8's
52835         "warning: #include of /usr/include/... may be non-portable".
52836
52837 2006-07-04  Eric Blake  <ebb9@byu.net>
52838
52839         * modules/dirname-tests: New test module.
52840         * tests/test-dirname.c: New file, replacing dirname.c
52841         TEST_DIRNAME section that was recently deleted.
52842
52843 2006-07-04  Bruno Haible  <bruno@clisp.org>
52844
52845         Assume ANSI C header files and <ctype.h> functions.
52846         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
52847         (mbsnwidth): Use isprint, iscntrl instead.
52848
52849 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52850
52851         Merge from coreutils.
52852         * MODULES.html.sh: Add xstrtold.
52853         * modules/xstrtold: New file.
52854         * modules/cycle-check (Files): Add lib/same-inode.h.
52855         * modules/dirname (Files): Add m4/double-slash-root.m4.
52856         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
52857         * modules/mkdir-p (Files): Add lib/same-inode.h.
52858         * modules/same (Files): Add lib/same-inode.h.
52859
52860 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52861
52862         * m4/absolute-header.m4: Renamed from full-header-path.m4.
52863         This is to keep the terminology clean; POSIX talks about
52864         "absolute pathnames", not "full pathnames", but the GNU
52865         Coding Standards say to use "path" for something else;
52866         so use "absolute" to keep both sides happy.
52867         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
52868         Set gl_absolute_header, not gl_full_header_path.
52869         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
52870         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
52871         All uses changed.
52872
52873         Merge from coreutils.
52874
52875         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52876
52877         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
52878         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
52879         want to require the building of c-strtod.o.
52880         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
52881         needs -lm directly.
52882         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
52883
52884         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
52885
52886         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
52887         --as-needed option if available.  Problem reported by Albert Chin in
52888         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
52889         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
52890         cc merely issues a bunch of annoying warnings for --as-needed
52891         (this problem was reported by Bob Proulx).  Also, try linking with
52892         -lm to detect a bug in binutils 2.16 (this problem was reported
52893         by Ralf Wildenhues).
52894
52895         2006-06-18  Jim Meyering  <jim@meyering.net>
52896
52897         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
52898         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
52899         macro.
52900         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
52901         also check for glibc-2.4's abort-inducing bug.
52902
52903         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
52904         Low-probability clean-up should be to use rmdir to get rid of
52905         the just-created directory, not unlink.
52906
52907         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
52908         configure fail, and request a bug report to inform us about it.
52909         Add a comment that, barring reports to the contrary, in 2007 we'll
52910         assume ftruncate is universally available.
52911
52912         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52913
52914         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
52915
52916         2006-03-12  Jim Meyering  <jim@meyering.net>
52917
52918         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
52919         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
52920         * m4/same.m4 (gl_SAME): Likewise.
52921         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
52922
52923         2006-03-11  Eric Blake  <ebb9@byu.net>
52924
52925         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
52926         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
52927         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
52928         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
52929
52930 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52931
52932         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
52933         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
52934         reported by Mark D. Baushke, one in
52935         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
52936
52937         Merge from coreutils.
52938
52939         * lib/.cppi-disable: Add stdint_.h.
52940         * lib/.cvsignore: Add stdint.h.
52941
52942         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52943
52944         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
52945         both double and long double versions.
52946         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
52947         * lib/xstrtold.c: New file.
52948         * lib/xstrtod.h (xstrtold): New decl.
52949
52950         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52951
52952         * lib/filemode.c (setst): Remove.
52953         (strmode): Rewrite to avoid setst.  This makes the code shorter,
52954         (arguably) clearer, and the generated code is a bit smaller on my
52955         Debian GNU/Linux stable x86 host.
52956
52957         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52958
52959         * lib/filemode.c: Include "filemode.h" first, to test the interface.
52960         Assume that filemode.h includes sys/types.h and sys/stat.h.
52961         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
52962         (ftypelet): Reorder to put common cases first, for efficiency.
52963         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
52964         to do 'M'.
52965         (strmode): Renamed from mode_string, and now stores 12 bytes instead
52966         of 10, for compatibility with FreeBSD.  All callers changed.
52967         (filemodestring): Now stores 12 bytes instead of 10, and sets file
52968         types that can't be deduced solely from st_mode.  First arg is now a
52969         const pointer.
52970         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
52971         (strmode): Renamed from mode_string.
52972         (filemodestring): New decl.
52973         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
52974         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
52975         needed.
52976         (S_ISPORT, S_ISWHT): New macros, if not already defined.
52977
52978         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52979
52980         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
52981         fsusage.h now does that.  Include fsusage.h first, to test interface.
52982         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
52983         at most one method (the old code could have generated decls that
52984         didn't conform to C89, not that this was ever exercised).
52985         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
52986
52987         2006-03-19  Jim Meyering  <jim@meyering.net>
52988
52989         Work even in a chroot where d_ino values for entries in "/"
52990         don't match the stat.st_ino values for the same names.
52991         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
52992         number, iterate through all entries again, using lstat instead.
52993         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
52994         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
52995
52996         * lib/getcwd.c (__getcwd): Clarify a comment.
52997         Use memcpy in place of a call to strcpy.
52998
52999         2006-03-12  Jim Meyering  <jim@meyering.net>
53000
53001         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
53002         matches that of the current directory (which we're about to chdir ".."
53003         out of), then save the dev-ino of the parent, instead.
53004
53005         * lib/same-inode.h (SAME_INODE): New file/macro.
53006         * lib/chdir-safer.c (SAME_INODE): Remove definition.
53007         Include "same-inode.h", instead.
53008         * lib/same.c: Likewise.
53009         * lib/cycle-check.h: Include "same-inode.h".
53010         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
53011         * lib/cycle-check.c (SAME_INODE): Remove definition.
53012         * lib/root-dev-ino.h: Include "same-inode.h".
53013
53014         2006-03-11  Eric Blake  <ebb9@byu.net>
53015
53016         * lib/same.c (same_name): s/base_name/last_component/
53017         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
53018         * lib/filenamecat.c (file_name_concat): Likewise.
53019
53020         2006-03-11  Eric Blake  <ebb9@byu.net>,
53021                     Paul Eggert  <eggert@cs.ucla.edu>
53022
53023         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
53024         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
53025         drive prefix.
53026         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
53027         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
53028         (last_component): New method.
53029         * lib/dirname.c (dir_len): Determine when drive letters need a
53030         subsequent slash.  Preserve // when it is special.
53031         (dir_name): Don't append dot when drive letter is absolute.
53032         [TEST_DIRNAME]: Move into a full-blown gnulib test.
53033         * lib/basename.c (base_name): New semantics - malloc the result.
53034         Preserve // when it is special.  Preserve relative files that look
53035         like drive letters.
53036         (base_len): Preserve // when it is special.
53037         (last_component): New method, similar to old base_name semantics.
53038         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
53039         base_name.  Strip redundant slashes from ///.
53040
53041 2006-07-03  Jim Meyering  <jim@meyering.net>
53042
53043         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
53044         macro is used before the first cycle_check call.
53045
53046 2006-07-03  Eric Blake  <ebb9@byu.net>
53047
53048         * modules/dirname (Depends-on): Add xstrndup.
53049
53050 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53051
53052         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
53053         test cases, so that config.log is a bit easier to follow.
53054
53055 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53056
53057         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
53058         both are 64 bits, since this seems to be the tradition, and this
53059         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
53060         we ever run into a host that prefers long long to long in this
53061         case, we'll need another configure-time test.  Problem reported by
53062         Jim Meyering.
53063
53064 2006-07-02  Eric Blake  <ebb9@byu.net>
53065
53066         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
53067
53068 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53069
53070         * modules/inttypes (Depends-on): No longer depends on stdint.
53071         * modules/stdint (Description): Say more about assumptions.
53072         Say that the fast types might differ.  Say macros are used.
53073         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
53074         (Makefile.am): Revise list of substituted symbols to match
53075         new stdint.m4.
53076         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
53077         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
53078         * tests/test-stdint.c (verify_same_types)
53079         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
53080         the code conforms to C99/C89.
53081         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
53082         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
53083
53084 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53085
53086         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
53087         but fix a bug, by requiring at least 64 bits.
53088         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
53089         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
53090         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
53091         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
53092
53093         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
53094         changes.  Make 2.59 a prerequisite.  Check and substitute for
53095         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
53096         inttypes.h.  Do not use special include files; just use the
53097         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
53098         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
53099         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
53100         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
53101         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
53102         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
53103         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
53104         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
53105         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
53106         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
53107         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
53108         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
53109         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
53110         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
53111         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
53112         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
53113         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
53114         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
53115         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
53116         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
53117         WINT_MAX.  Check for C99 conformance more strictly, by detecting
53118         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
53119         not check for things that C99 does not require, e.g., int8_t.  If
53120         a test isn't needed unless <stdint.h> isn't working, and is
53121         unlikely to be needed for any other reason, then don't do it
53122         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
53123         size_t, since we assume C89 freestanding at least.  Do not check
53124         for sig_atomic_t, wchar_t, or wint_t, since the code now does
53125         the right thing even if the types are not defined.  Instead use:
53126         (gl_STDINT_TYPE_PROPERTIES): New macro.
53127         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
53128         testing whether <sys/types.h> clashes, as Autoconf does this for
53129         us now.  All uses removed.
53130         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
53131         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
53132         (gl_CHECK_TYPE_SAME):
53133         Remove; no longer needed.
53134         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
53135         exists, since we'll return 0 anyway in that case.
53136         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
53137
53138 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53139
53140         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
53141         possible collision with system files.
53142         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
53143         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
53144         WCHAR_MIN and WCHAR_MAX in this case.
53145         (<stddef.h>): Do not include; no longer needed.
53146         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
53147         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
53148         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
53149         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
53150         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
53151         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
53152         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
53153         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
53154         !defined(__c99))]: Include in this case too, since it's harmless
53155         now.
53156         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
53157         dangerous to do so.
53158         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
53159         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
53160         (_STDINT_MIN, _STDINT_MAX): New macros.
53161         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
53162         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
53163         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
53164         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
53165         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
53166         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
53167         macros, not typedefs; this simplifies things quite a bit.
53168         Use long int for all types narrower than int64_t.
53169         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
53170         Define in terms of long long int or int64_t or long int,
53171         not int64_t or int32_t.  This saves some compile-time testing.
53172         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
53173         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
53174         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
53175         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
53176         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
53177         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
53178         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
53179         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
53180         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
53181         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
53182         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
53183         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
53184         undef any previous version and define our own version, for
53185         simplicity and consistency with the new macros for types.
53186         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
53187         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
53188         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
53189         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
53190         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
53191         @WINT_T_SUFFIX@ to keep things simple here.
53192         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
53193         Simplify by assuming typical 8/16/32/64 host, since we're
53194         already doing that elsewhere anyway.
53195         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
53196         and assume long long int is 64 bits if available.  This
53197         speeds up 'configure'.
53198
53199 2006-07-01  Eric Blake  <ebb9@byu.net>
53200
53201         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
53202         Reported by Andreas Buening.
53203
53204 2006-07-01  Eric Blake  <ebb9@byu.net>
53205
53206         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
53207
53208 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
53209
53210         * lib/getaddrinfo.c: fixed typo
53211
53212 2006-06-29  Jim Meyering  <jim@meyering.net>
53213
53214         * modules/strftime (Maintainer): Add my name, since with the
53215         FPRINTFTIME changes strftime.c has forked from glibc.
53216
53217 2006-06-29  Eric Blake  <ebb9@byu.net>
53218
53219         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
53220
53221 2006-06-29  Eric Blake  <ebb9@byu.net>
53222
53223         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
53224
53225 2006-06-29  Eric Blake  <ebb9@byu.net>
53226
53227         * lib/stat_.h: New file.
53228
53229 2006-06-29  Eric Blake  <ebb9@byu.net>
53230
53231         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
53232         unused static function.
53233
53234 2006-06-29  Eric Blake  <ebb9@byu.net>
53235
53236         * doc/functions.texi (Function Portability): Document missing lstat
53237         on mingw.
53238
53239 2006-06-29  Eric Blake  <ebb9@byu.net>
53240
53241         * MODULES.html.sh: Add sys_stat.
53242         * modules/sys_stat: New module.
53243         * modules/mkstemp (Depends-on): Add sys_stat.
53244
53245 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53246
53247         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
53248
53249 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53250
53251         * m4/c-bs-a.m4: Removed.
53252
53253 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53254
53255         * lib/strftime.c: Assume strftime() exists.
53256
53257 2006-06-29  Derek Price  <derek@ximbiot.com>
53258
53259         * modules/c-bs-a: Removed - \a is C89.
53260         * MODULES.html.sh: Remove c-bs-a.
53261
53262 2006-06-29  Bruno Haible  <bruno@clisp.org>
53263
53264         * modules/wcwidth (License): Change to LGPL.
53265
53266 2006-06-28  Simon Josefsson  <jas@extundo.com>
53267
53268         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
53269         on _WIN32.
53270
53271         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
53272         getnameinfo.
53273
53274 2006-06-28  Simon Josefsson  <jas@extundo.com>
53275
53276         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
53277
53278 2006-06-28  Simon Josefsson  <jas@extundo.com>
53279
53280         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
53281         functions there.  It will succeed on Windows XP, but on Windows
53282         2000 and (presumably) earlier, it will fail, and use the internal
53283         re-implementation.
53284         (use_win32_p): New function.
53285         (getaddrinfo): Use strtoul on servname, to support numeric ports.
53286         Support AI_NUMERICSERV to disable getservbyname.
53287         (getnameinfo): New function, only supports
53288         NI_NUMERICHOST|NI_NUMERICSERV for now.
53289
53290         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
53291         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
53292         getnameinfo.
53293
53294 2006-06-28  Eric Blake  <ebb9@byu.net>
53295
53296         * modules/wcwidth: New file.
53297         * modules/mbchar (Depends-on): Add wcwidth.
53298         * modules/mbswidth (Depends-on): Add wcwidth.
53299         * MODULES.html.sh: Add wcwidth.
53300
53301 2006-06-28  Eric Blake  <ebb9@byu.net>
53302
53303         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
53304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
53305
53306 2006-06-28  Eric Blake  <ebb9@byu.net>
53307
53308         * lib/xvasprintf.h: Fix comments.
53309
53310 2006-06-28  Eric Blake  <ebb9@byu.net>
53311
53312         * lib/mbchar.h (wcwidth): Include wcwidth.h.
53313         * lib/mbswidth.c (wcwidth): Move from here...
53314         * lib/wcwidth.h: ...to this new file.
53315
53316 2006-06-28  Derek R. Price  <derek@ximbiot.com>
53317
53318         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
53319
53320         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
53321         it's obsolete.
53322         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
53323
53324 2006-06-28  Derek R. Price  <derek@ximbiot.com>
53325
53326         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
53327         Autoconf 2.60 says this stuff was obsolete.
53328
53329 2006-06-28  Bruno Haible  <bruno@clisp.org>
53330
53331         * modules/wcwidth (Files): Add m4/wchar_t.m4.
53332
53333 2006-06-28  Bruno Haible  <bruno@clisp.org>
53334
53335         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
53336         gt_TYPE_WCHAR_T.
53337
53338 2006-06-28  Bruno Haible  <bruno@clisp.org>
53339
53340         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
53341         declaration for wcwidth.
53342         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
53343
53344 2006-06-28  Bruno Haible  <bruno@clisp.org>
53345
53346         * lib/mkdtemp.c [MINGW]: Include <io.h>.
53347         (mkdir): Define using _mkdir.
53348
53349 2006-06-28  Bruno Haible  <bruno@clisp.org>
53350
53351         * lib/getaddrinfo.h: Fix POSIX URL.
53352         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
53353         _WIN32.
53354         (use_win32_p): Make static.
53355         (getaddrinfo): Reject service name if it is empty or does not consist
53356         solely of decimal digits, or if its value is > 65535.
53357         (getnameinfo): Remove useless casts.
53358
53359 2006-06-27  Simon Josefsson  <jas@extundo.com>
53360
53361         * modules/sys_select: New file, suggested by Bruno Haible, Paul
53362         Eggert and Martin Lambers.
53363
53364 2006-06-27  Simon Josefsson  <jas@extundo.com>
53365
53366         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
53367         Eggert and Martin Lambers.
53368
53369 2006-06-27  Bruno Haible  <bruno@clisp.org>
53370
53371         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
53372         result to 0, not to empty.
53373         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
53374
53375 2006-06-27  Bruno Haible  <bruno@clisp.org>
53376
53377         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
53378
53379 2006-06-26  Simon Josefsson  <jas@extundo.com>
53380
53381         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
53382         present.
53383
53384 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
53385
53386         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
53387         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
53388         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
53389
53390 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
53391
53392         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
53393
53394 2006-06-26  Bruno Haible  <bruno@clisp.org>
53395
53396         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
53397
53398 2006-06-26  Bruno Haible  <bruno@clisp.org>
53399
53400         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
53401
53402 2006-06-26  Bruno Haible  <bruno@clisp.org>
53403
53404         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
53405         SGI C compiler in pre-C99 mode.
53406         Suggested by Mark D. Baushke and Larry Jones.
53407
53408 2006-06-26  Bruno Haible  <bruno@clisp.org>
53409
53410         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
53411         WCHAR_MAX.
53412         Reported by Mark D. Baushke and Larry Jones.
53413
53414 2006-06-26  Bruno Haible  <bruno@clisp.org>
53415
53416         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
53417         in pre-C99 mode.
53418         Suggested by Mark D. Baushke and Larry Jones.
53419
53420 2006-06-23  Simon Josefsson  <jas@extundo.com>
53421             Bruno Haible  <bruno@clisp.org>
53422
53423         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
53424         Emit mostlyclean-local rule.
53425         (func_emit_tests_Makefile_am): Likewise.
53426         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
53427
53428 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
53429
53430         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
53431
53432 2006-06-23  Bruno Haible  <bruno@clisp.org>
53433
53434         * tests/test-stdint.c: Update to match ISO C 99 Technical
53435         Corrigendum 1.
53436
53437 2006-06-23  Bruno Haible  <bruno@clisp.org>
53438
53439         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
53440
53441 2006-06-23  Bruno Haible  <bruno@clisp.org>
53442
53443         * lib/stdint_.h: Treat IRIX like OpenBSD.
53444
53445 2006-06-23  Bruno Haible  <bruno@clisp.org>
53446
53447         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
53448         ISO C 99 Technical Corrigendum 1.
53449
53450 2006-06-22  Simon Josefsson  <jas@extundo.com>
53451
53452         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
53453         MinGW.
53454
53455 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53456
53457         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
53458         needed.  Some compiler complained about some of them.  Problem reported
53459         by Larry Jones in
53460         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
53461
53462 2006-06-21  Simon Josefsson  <jas@extundo.com>
53463
53464         * tests/test-getaddrinfo.c: New file.
53465
53466         * modules/getaddrinfo-tests: New file.
53467
53468         * MODULES.html.sh: Add inet_pton.
53469
53470         * modules/inet_pton: New file.
53471
53472 2006-06-21  Simon Josefsson  <jas@extundo.com>
53473
53474         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
53475         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
53476         of using the (limited) gnulib implementation on Windows XP.
53477
53478         * m4/inet_pton.m4: New file.
53479
53480 2006-06-21  Simon Josefsson  <jas@extundo.com>
53481
53482         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
53483         variable.
53484
53485         * lib/socket_.h: Don't define WINVER.
53486
53487         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
53488         slightly modified to work in gnulib.
53489
53490 2006-06-21  Simon Josefsson  <jas@extundo.com>
53491
53492         * doc/gnulib.texi (Windows sockets): Add.
53493
53494 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53495
53496         * lib/read-file.c (fread_file): Start with buffer allocation of
53497         0 bytes rather than 1 byte; this simplifies the code.
53498         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
53499         code to free buffer and save/restore errno.
53500         (internal_read_file): Remove unused local.
53501
53502 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53503
53504         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
53505         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
53506         Problem reported by Denis Excoffier in
53507         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
53508
53509 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53510
53511         * modules/sys_socket, modules/socklen: Include sys/types since
53512         FreeBSD 4.x's sys/socket.h needs it.
53513
53514 2006-06-19  Simon Josefsson  <jas@extundo.com>
53515
53516         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
53517
53518 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53519
53520         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
53521
53522 2006-06-19  Bruno Haible  <bruno@clisp.org>
53523
53524         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
53525         and FULL_PATH_INTTYPES_H in angle brackets.
53526         Reported by Mark D. Baushke <mdb@gnu.org>.
53527
53528 2006-06-17  Eric Blake  <ebb9@byu.net>
53529
53530         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
53531         errno.
53532
53533 2006-06-17  Bruno Haible  <bruno@clisp.org>
53534
53535         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
53536         <sys/inttypes.h>.
53537
53538 2006-06-17  Bruno Haible  <bruno@clisp.org>
53539
53540         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
53541         whether errno is declared. Assume <errno.h> declares errno.
53542
53543 2006-06-17  Bruno Haible  <bruno@clisp.org>
53544
53545         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
53546
53547 2006-06-17  Bruno Haible  <bruno@clisp.org>
53548
53549         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
53550         problem on Solaris 2.5.1.
53551
53552 2006-06-16  Eric Blake  <ebb9@byu.net>
53553
53554         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
53555         * lib/unicodeio.c [!defined errno]: Likewise.
53556         * lib/strtol.c [!defined errno]: Likewise.
53557         * lib/strtod.c [!defined errno]: Likewise.
53558
53559 2006-06-15  Eric Blake  <ebb9@byu.net>
53560
53561         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
53562
53563 2006-06-15  Eric Blake  <ebb9@byu.net>
53564
53565         * config/srclist.txt (ssize_t.m4): Lose sync.
53566
53567 2006-06-15  Bruno Haible  <bruno@clisp.org>
53568
53569         * modules/stdint (Files): Include m4/full-header-path.m4,
53570         m4/size_max.m4, m4/wchar_t.m4.
53571         (Makefile.am): Many more substitutions.
53572         * modules/stdint-tests: New file.
53573         * tests/test-stdint.c: New file.
53574
53575 2006-06-15  Bruno Haible  <bruno@clisp.org>
53576
53577         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
53578         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
53579         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
53580         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
53581         gl_CHECK_TYPE_SAME): New macros.
53582
53583 2006-06-15  Bruno Haible  <bruno@clisp.org>
53584
53585         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
53586
53587 2006-06-15  Bruno Haible  <bruno@clisp.org>
53588
53589         * lib/stdint_.h: Rewritten to be fully auto-configured.
53590         Fixes bug on HP-UX/IA64.
53591
53592 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
53593
53594         * lib/getdate.y (__attribute__): Don't define if already defined.
53595         Problem reported by Larry Jones.
53596         * lib/utimens.c (__attribute__): Likewise.
53597
53598 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
53599
53600         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
53601         reported by Andreas Schwab.
53602
53603 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53604             Bruno Haible  <bruno@clisp.org>
53605
53606         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
53607         check for the declaration of strnlen and a run test that exposes the
53608         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
53609         rpl_strndup.
53610
53611 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53612             Bruno Haible  <bruno@clisp.org>
53613
53614         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
53615
53616 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53617
53618         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
53619         compile test, for Tru64 4.0D.
53620
53621 2006-05-28  Karl Berry  <karl@gnu.org>
53622
53623         * config/srclist.txt (printf-args.c): lose sync.
53624
53625 2006-05-26  Martin Lambers  <marlam@marlam.de>
53626
53627         * lib/getpass.c: Updates the test for the native W32 API, and adds
53628         missing includes, thus fixing compilation warnings.
53629
53630 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
53631
53632         * lib/exclude.c (exclude_fnmatch): New function.
53633         (excluded_file_name): Call exclude_fnmatch.
53634         * lib/exclude.h (excluded_file_name): New prototype
53635
53636 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
53637
53638         * lib/tempname.c (small_open, large_open): New macros.
53639         (__open, __open64) [!_LIBC]: Remove.
53640         (__gen_tempname): Use small_open and large_open instead of __open
53641         and __open64.  This fixes a portability bug on HP-UX 11.11i
53642         reported by Simon Wing-Tang in
53643         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
53644
53645 2006-05-24  Bruno Haible  <bruno@clisp.org>
53646
53647         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
53648         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
53649         Reported by Thorsten Maerz <torte@netztorte.de> via
53650         Aaron Stone <aaron@serendipity.cx>.
53651
53652 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53653
53654         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
53655         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
53656         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
53657         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
53658         not really conditional on the cache.
53659         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
53660
53661 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53662
53663         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
53664         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
53665         (my_usleep): Don't mishandle maximum value.
53666
53667 2006-05-19  Jim Meyering  <jim@meyering.net>
53668
53669         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
53670
53671 2006-05-17  Bruno Haible  <bruno@clisp.org>
53672
53673         Cygwin portability.
53674         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
53675
53676 2006-05-17  Bruno Haible  <bruno@clisp.org>
53677
53678         * lib/stdint_.h: Fix recognition of Cygwin.
53679
53680 2006-05-15  Bruno Haible  <bruno@clisp.org>
53681
53682         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
53683         on libtool patch by Ralf Wildenhues.
53684
53685 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53686
53687         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
53688         test for C99 conformance; (bool) 0.5 is an integer constant
53689         expression, but (bool) -0.5 is not.  Problem reported by Fedor
53690         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
53691
53692 2006-05-11  Simon Josefsson  <jas@extundo.com>
53693
53694         * m4/xvasprintf.m4: Fix obvious typo.
53695
53696 2006-05-11  Jim Meyering  <jim@meyering.net>
53697
53698         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
53699         James Lemley.
53700
53701 2006-05-10  Simon Josefsson  <jas@extundo.com>
53702
53703         * lib/md4.c: Typo fix, update copyright years.
53704         (K1, K2): Don't use L because it turn computations into 64-bit on
53705         64-bit platforms.
53706
53707 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
53708
53709         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
53710         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
53711         unwanted sign propagation, e.g., on hosts with 64-bit int.
53712         There still are some problems with reeelly weird theoretical hosts
53713         (e.g., 33-bit int) but it's not worth worrying about now.
53714         * lib/sha1.c (rol): Likewise.
53715         (K1, K2, K3, K4): Remove unnecessary L suffix.
53716
53717 2006-05-10  Bruno Haible  <bruno@clisp.org>
53718
53719         * lib/des.c: Cast to avoid warnings.
53720
53721 2006-05-09  Bruno Haible  <bruno@clisp.org>
53722
53723         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
53724         (Depends-on): Depend also on xsize, stdarg.
53725         (configure.ac): Add gl_XVASPRINTF.
53726
53727 2006-05-09  Bruno Haible  <bruno@clisp.org>
53728
53729         * m4/xvasprintf.m4: New file.
53730
53731 2006-05-09  Bruno Haible  <bruno@clisp.org>
53732
53733         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
53734         (EOVERFLOW): Define fallback value.
53735         (xstrcat): New function.
53736         (xvasprintf): Recognize the special case of a string concatenation.
53737
53738 2006-05-08  Eric Blake  <ebb9@byu.net>
53739
53740         * gnulib-tool (func_version): Base copyright year on CVS date.
53741         (func_emit_copyright_notice): New function.
53742         (func_emit_lib_Makefile_am): Use it.
53743         (func_emit_tests_Makefile_am): Likewise.
53744         (func_import): Likewise.
53745
53746 2006-05-08  Bruno Haible  <bruno@clisp.org>
53747
53748         * modules/stdarg: New file.
53749         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
53750
53751 2006-05-08  Bruno Haible  <bruno@clisp.org>
53752
53753         * m4/stdarg.m4: New file, from GNU gettext.
53754
53755 2006-05-08  Bruno Haible  <bruno@clisp.org>
53756
53757         * config/srclist.txt (build-aux/config.rpath): different from latest
53758         release.
53759
53760 2006-05-08  Bruno Haible  <bruno@clisp.org>
53761
53762         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
53763
53764 2006-05-05  Jim Meyering  <jim@meyering.net>
53765
53766         * m4/warning.m4: New file, derived from bison's file by the same name.
53767
53768 2006-05-03  Bruno Haible  <bruno@clisp.org>
53769
53770         * lib/stdint_.h: Shorter URL.
53771         * lib/inttypes.h: Likewise.
53772
53773 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53774
53775         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
53776
53777 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53778
53779         * lib/verify.h: Document the internals better.  Most of this change
53780         was written by Bruno Haible.
53781
53782 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53783
53784         * doc/verify.texi: New file, partly based on a proposal by
53785         Bruno Haible.
53786
53787 2006-05-02  Bruno Haible  <bruno@clisp.org>
53788
53789         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
53790         test from here...
53791         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
53792
53793 2006-04-29  Bruno Haible  <bruno@clisp.org>
53794
53795         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
53796         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
53797
53798 2006-04-29  Bruno Haible  <bruno@clisp.org>
53799
53800         * gnulib-tool: Make --update option actually work.
53801
53802 2006-04-29  Bruno Haible  <bruno@clisp.org>
53803
53804         * doc/gcd.texi: New file.
53805         * doc/gnulib.texi: Include it.
53806
53807 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
53808
53809         * lib/getdate.y (get_date): When adding relative date, start with the
53810         initial time, not with the result of the first mktime call.
53811
53812 2006-04-25  Bruno Haible  <bruno@clisp.org>
53813
53814         * gnulib-tool (func_import): Output the include directives in three
53815         blocks, sorted separately.
53816         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53817
53818 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53819
53820         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
53821         to define main with arguments, for C++.  Reported by Eric Blake.
53822         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
53823         Prefer 'int main ()' to 'int main (void)', for C++.
53824         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
53825         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
53826         for 'main', for C99 and C++.
53827
53828 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53829
53830         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
53831         Don't assume that exit status -1 is valid.
53832         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53833         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53834         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
53835         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
53836         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
53837         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
53838         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
53839         functions can be used without declaring them, or that you can
53840         exit with status -1.
53841         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
53842
53843 2006-04-24  Karl Berry  <karl@gnu.org>
53844
53845         * config/srclist.txt (longdouble.m4): sync lost.
53846
53847 2006-04-24  Eric Blake  <ebb9@byu.net>
53848
53849         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
53850
53851 2006-04-24  Bruno Haible  <bruno@clisp.org>
53852
53853         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
53854         poll() implementation in AIX.
53855         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53856
53857 2006-04-24  Bruno Haible  <bruno@clisp.org>
53858
53859         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
53860         assigned exactly once.
53861
53862 2006-04-23  Claudio Fontana  <claudio@gnu.org>
53863             Bruno Haible  <bruno@clisp.org>
53864
53865         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
53866         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
53867         for AM_CPPFLAGS.
53868
53869 2006-04-23  Bruno Haible  <bruno@clisp.org>
53870
53871         * modules/copy-file: Depend on unistd.
53872         * modules/execute: Likewise.
53873         * modules/fatal-signal: Likewise.
53874         * modules/findprog: Likewise.
53875         * modules/mkdtemp : Likewise.
53876         * modules/pipe: Likewise.
53877         * modules/wait-process: Likewise.
53878
53879 2006-04-23  Bruno Haible  <bruno@clisp.org>
53880
53881         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
53882         condition was already detected.
53883         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53884
53885 2006-04-23  Bruno Haible  <bruno@clisp.org>
53886
53887         * lib/copy-file.c: Include <unistd.h> unconditionally.
53888         * lib/execute.c: Likewise.
53889         * lib/fatal-signal.c: Likewise.
53890         * lib/findprog.c: Likewise.
53891         * lib/mkdtemp.c: Likewise.
53892         * lib/pipe.h: Likewise.
53893         * lib/pipe.c: Likewise.
53894         * lib/wait-process.h: Likewise.
53895
53896 2006-04-23  Bruno Haible  <bruno@clisp.org>
53897
53898         * gnulib-tool (func_usage): Fix --import description. Document
53899         --update.
53900         (func_import): Create temporary file in a temporary directory, if
53901         --dry-run is specified. Silence errors from 'grep' when there are no
53902         m4 files in $m4dir.
53903         (func_create_testdir): Silence errors from 'grep' when there are no
53904         m4 files in $m4dir.
53905         Reported by Karl Berry <karl@freefriends.org>.
53906
53907 2006-04-20  Bruno Haible  <bruno@clisp.org>
53908
53909         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
53910         one argument, so that the code will be portable to Autoconf 2.60.
53911         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
53912         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53913         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
53914
53915 2006-04-19  Derek Price  <derek@ximbiot.com>
53916             Eric Blake  <ebb9@byu.net>
53917
53918         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
53919         rather than "/full/path.h".  Update comment to match.  Shorten &
53920         generalize m4_translit call via AS_TR_CPP.
53921
53922 2006-04-19  Derek Price  <derek@ximbiot.com>
53923             Eric Blake  <ebb9@byu.net>
53924
53925         * lib/inttypes.h: Correct grammar in comment.
53926
53927 2006-04-18  Derek Price  <derek@ximbiot.com>
53928             Paul Eggert  <eggert@cs.ucla.edu>
53929
53930         * modules/inttypes: New file.
53931         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
53932
53933 2006-04-18  Derek Price  <derek@ximbiot.com>
53934             Paul Eggert  <eggert@cs.ucla.edu>
53935
53936         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
53937         New files.
53938
53939 2006-04-18  Derek Price  <derek@ximbiot.com>
53940             Paul Eggert  <eggert@cs.ucla.edu>
53941
53942         * lib/inttypes.h: New file.
53943         * lib/strtoimax.c: Assume <inttypes.h>.
53944
53945 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
53946
53947         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
53948         isn't mounted.  Problem reported by Kir Kolyshkin.
53949
53950 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53951
53952         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
53953         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
53954         Derek R. Price.
53955         * lib/regex.h (RE_DUP_MAX): Update comment to match current
53956         implementation.
53957
53958 2006-04-12  Eric Blake  <ebb9@byu.net>
53959
53960         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
53961         is now done automatically by the corresponding Autoconf macro.
53962
53963 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
53964
53965         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
53966         time_r.h.
53967
53968 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53969
53970         Merge regex changes from libc, removing some of our
53971         POSIX-conformance changes that were rejected and redoing them in a
53972         less-intrusive way.
53973
53974         * lib/regcomp.c (re_compile_internal, init_dfa):
53975         Length arg is now size_t, not Idx.  All uses changed.
53976         (peek_token): Forward decl now says internal_function.
53977         (__re_error_msgid, __re_error_msgid_idx):
53978         Now static rather than extern with attribute_hidden.
53979         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
53980         For some reason libc prefers K&R style defns for external functions.
53981         (regerror) [!defined _LIBC]: Likewise.
53982         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
53983         (seek_collating_symbol_entry, lookup_collation_sequence_value):
53984         (build_range_exp, build_collating_symbol):
53985         Use K&R-style defn.
53986         (re_compile_fastmap): Use '\0' to memset, not 0.
53987         (utf8_sb_map): Make the calculations more obvious.
53988         (init_dfa, parse_bracket_exp, build_charclass_op):
53989         Call calloc and cast result, as glibc does.
53990         (init_word_char, fetch_token, peek_token, peek_token_bracket):
53991         (build_range_exp, build_collating_symbol):
53992         Now internal functions.
53993
53994         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
53995
53996         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
53997         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
53998         Don't depend on VMS; depend on __VMS instead, for POSIX
53999         namespace cleanness.
54000         (regoff_t): Define to ssize_t, not long int.
54001
54002         Remove the REG_ macros named below.  Instead, make the old names
54003         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
54004         __USE_GNU_REGEX.
54005         (REG_BACKSLASH_ESCAPE_IN_LISTS):
54006         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
54007         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
54008         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
54009         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
54010         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
54011         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
54012         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
54013         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
54014         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
54015         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
54016         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
54017         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
54018         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
54019         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
54020         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
54021         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
54022         (REG_NREGS):
54023         Remove.  All uses replaced by the old RE_* names.
54024         (RE_BACKSLASH_ESCAPE_IN_LISTS):
54025         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
54026         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
54027         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
54028         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
54029         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
54030         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
54031         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
54032         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
54033         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
54034         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
54035         Don't bother having these macros be independent of each others'
54036         values, since they no longer exist in the POSIX name space.
54037
54038         Rename the following member names back to their old names,
54039         unless !__USE_GNU_REGEX.  All uses changed back.
54040         (buffer): Renamed from re_buffer.
54041         (allocated): Renamed from re_allocated.
54042         (used): Renamed from re_used.
54043         (syntax): Renamed from re_syntax.
54044         (fastmap): Renamed from re_fastmap.
54045         (translate): Renamed from re_translate.
54046         (can_be_null): Renamed from re_can_be_null.
54047         (regs_allocated): Renamed from re_regs_allocated.
54048         (fastmap_accurate): Renamed from re_fastmap_accurate.
54049         (no_sub): Renamed from re_no_sub.
54050         (not_bol): Renamed from re_not_bol.
54051         (not_eol): Renamed from re_not_eol.
54052         (newline_anchor): Renamed from re_newline_anchor.
54053         (num_regs): Renamed from rm_num_regs.
54054         (start): Renamed from rm_start.
54055         (end): Renamed from rm_end.
54056
54057         (free_state): Move up a bit.
54058
54059         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
54060         #define to be empty.
54061         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
54062         when that is what is intended.
54063         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
54064         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
54065         (MAX): New macro.
54066         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
54067         All uses changed back to re_malloc, etc.  It's now the caller's
54068         responsibility to check for overflow; all callers changed.
54069         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
54070         (re_x2nrealloc): Remove.
54071         (free_state): Remove decl.
54072
54073         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
54074         (re_set_registers, re_exec):
54075         Use K&R-style defn.
54076
54077         2006-01-31  Roland McGrath  <roland@redhat.com>
54078
54079         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
54080         Reported by Mike Frysinger <vapier@gentoo.org>.
54081
54082         2006-01-15  Andreas Jaeger  <aj@suse.de>
54083
54084         [BZ #1950]
54085         * lib/regex_internal.c (re_string_reconstruct): Adjust for
54086         build_wcs_upper_buffer change.
54087         (build_wcs_upper_buffer): Change return type.
54088
54089         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
54090
54091         * lib/regex_internal.h: Include <stdint.h> if available.
54092
54093         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
54094
54095         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
54096
54097         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54098
54099         * lib/regcomp.c: Adjust for changed secondary hash function.
54100
54101         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
54102
54103         * lib/regex.h: Pretty printing.
54104         Clean up namespace a bit.
54105
54106         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
54107
54108         * lib/regexec.c (update_cur_sifted_state, check_arrival,
54109         check_arrival_add_next_nodes): Avoid using uninitialized variable.
54110
54111         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54112                     Ulrich Drepper  <drepper@redhat.com>
54113
54114         [BZ #1302]
54115         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
54116         changed.
54117         (bitset_word_t): Renamed from bitset_word.  All uses changed.
54118
54119         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
54120
54121         [BZ #281]
54122         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
54123         * lib/regcomp.c: Remove unnecessary uses of
54124         unsigned RE_TRANSLATE_TYPE.
54125         * lib/regex_internal.h: Likewise.
54126         * lib/regex_internal.c: Likewise.
54127         * lib/regexec.c: Likewise.
54128         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
54129
54130         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
54131
54132         * lib/regexec.c (find_recover_state): Remove unnecessary
54133         initialization.
54134         (transit_state_bkref): Make DFA a const pointer.
54135         (get_subexp): Likewise.
54136         (check_arrival): Likewise.
54137         (update_cur_sifted_state): Likewise.
54138         (re_search_internal): Likewise.
54139         (prune_impossible_nodes): Likewise.
54140         (acquire_init_state_context): Likewise.
54141         (proceed_next_node): Likewise.
54142         (set_regs): Likewise.
54143         (free_fail_stack_return): Likewise.
54144         (check_arrival_expand_ecl): Mark DFA parameter as const.
54145         (check_arrival_expand_ecl_sub): Likewise.
54146         (check_subexp_limits): Likewise.
54147         (sub_epsilon_src_nodes):  Likewise.
54148         (add_epsilon_src_nodes):  Likewise.
54149         (merge_state_array): Likewise.
54150         (update_regs): Likewise.
54151         (build_trtable): Likewise.
54152         (sift_states_backward): Mark MCTX parameter as const.
54153         (build_sifted_states): Likewise.
54154         (update_cur_sifted_state): Likewise.
54155         (sift_states_mkref): Likewise.
54156         (check_arrival_expand_ecl): Mark eclosure as const.
54157         (check_dst_limits_calc_pos_1): Likewise.
54158         * lib/regex_internal.h (re_match_context_t): Make dfa a const
54159         pointer.
54160
54161         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
54162
54163         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
54164         (transit_state_sb): Likewise.
54165         (transit_state_mb): Likewise.
54166         (sift_states_iter_mb): Likewise.
54167         (check_arrival_add_next_nodes): Likewise.
54168         (check_node_accept_bytes): Change first parameter to pointer-to-const.
54169         [_LIBC] (re_search_2_stub): Use mempcpy.
54170
54171         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
54172         mbrtowc for very simple UTF-8 case.
54173
54174         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
54175         a pointer-to-const.
54176         (re_acquire_state_context): Likewise.
54177         * lib/regex_internal.h: Adjust prototypes.
54178
54179         * lib/regex.c: Prevent using C++ compilers.
54180
54181         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
54182         (re_acquire_state_context): Likewise.
54183
54184 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54185
54186         * modules/regex (Depends-on): Add ssize_t.
54187
54188 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54189
54190         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
54191         translation table.
54192
54193 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54194
54195         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
54196
54197 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
54198             Bruno Haible  <bruno@clisp.org>
54199
54200         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
54201         <sys/types.h> and <inttypes.h>.
54202
54203 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54204
54205         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
54206         `__error_t_defined', so argp.h will not typedef the former.
54207
54208 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
54209
54210         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
54211         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
54212         glibc names.  Even if glibc is changed to conform to POSIX, the
54213         traditional names will be available anyway, since regex depends on
54214         the extensions module.  Also, fix a longstanding typo in the
54215         implementation of Spencer ERE test #75 from grep 2.3.  Problems
54216         reported by Emanuele Giaquinta.  Also, change sense of cached
54217         variable, so that the message makes sense.
54218
54219 2006-03-24  Simon Josefsson  <jas@extundo.com>
54220
54221         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
54222         including some doc fixes.
54223         (base64_encode_alloc): Fix +1 bug on allocation failures.
54224
54225 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54226
54227         * lib/base64.c (base64_encode): Do not read past end of array with
54228         unsanitized input on systems with CHAR_BIT > 8.
54229
54230 2006-03-24  Eric Blake  <ebb9@byu.net>
54231
54232         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
54233
54234 2006-03-22  Karl Berry  <karl@gnu.org>
54235
54236         * config/srclist.txt (*setenv.[ch]): get from coreutils.
54237         * config/srclistvars.sh (COREUTILS): new var.
54238
54239 2006-03-17  Jim Meyering  <jim@meyering.net>
54240
54241         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
54242         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
54243
54244 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
54245
54246         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
54247         no longer needs it.  Instead, check that regoff_t is as least
54248         as wide as ptrdiff_t.
54249
54250         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
54251         so that our regex.h stays compatible with the installed regex.
54252         This is helpful for installers who configure --without-included-regex.
54253         Problem reported by Emanuele Giaquinta.
54254
54255 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
54256
54257         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
54258         Typedef to long int, not to off_, as POSIX will likely change
54259         in that direction.
54260
54261 2006-03-15  Eric Blake  <ebb9@byu.net>
54262
54263         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
54264
54265 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54266
54267         * lib/argp-help.c (validate_uparams): Fix typo
54268         * lib/argp-parse.c (argp_default_options): Consistently begin help
54269         messages with a lowercase letter.
54270
54271 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
54272
54273         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
54274         overrun buffers and shouldn't be used (much as gets shouldn't be
54275         used).
54276         * lib/time_r.c (asctime_r, ctime_r): Likewise.
54277
54278 2006-03-08  Simon Josefsson  <jas@extundo.com>
54279
54280         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
54281         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54282
54283 2006-03-08  Simon Josefsson  <jas@extundo.com>
54284
54285         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
54286         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54287
54288 2006-03-08  Simon Josefsson  <jas@extundo.com>
54289
54290         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
54291         signal that configure disabled the device.
54292
54293 2006-03-08  Simon Josefsson  <jas@extundo.com>
54294
54295         * build-aux/maint.mk: Fix refresh-po, to handle no translated
54296         languages.
54297
54298 2006-03-07  Simon Josefsson  <jas@extundo.com>
54299
54300         * modules/getopt (Depends-on): Add unistd.
54301
54302         * modules/unistd: New file.
54303
54304 2006-03-07  Simon Josefsson  <jas@extundo.com>
54305
54306         * modules/gc-random: New file.
54307
54308 2006-03-07  Simon Josefsson  <jas@extundo.com>
54309
54310         * m4/unistd_h.m4: New file.
54311
54312 2006-03-07  Simon Josefsson  <jas@extundo.com>
54313
54314         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
54315         test to be side-effect free by storing the result in the cache
54316         variable gl_cv_lib_readline, and moving the assignment of
54317         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
54318         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54319
54320 2006-03-07  Simon Josefsson  <jas@extundo.com>
54321
54322         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
54323         error on missing devices (the functions will return an error).
54324
54325         * m4/gc.m4: Move random stuff to gc-random.m4
54326
54327 2006-03-07  Simon Josefsson  <jas@extundo.com>
54328
54329         * lib/unistd_.h: New file.
54330
54331 2006-03-07  Simon Josefsson  <jas@extundo.com>
54332
54333         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
54334
54335 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54336
54337         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
54338         Problem reported by Juan Manuel Guerrero.
54339
54340 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54341
54342         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
54343         the unistd module.
54344         * lib/getlogin_r.c: Likewise.
54345         * lib/getlogin_r.h: Likewise.
54346         * lib/glob.c: Likewise.
54347         * lib/pagealign_alloc.c: Likewise.
54348         * lib/unistd_.h: Remove; no longer needed.
54349
54350 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54351
54352         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54353         Add unistd.
54354         * modules/c-stack (Depends-on): Add unistd.
54355         * modules/getlogin_r: Likewise.
54356         * modules/glob: Likewise.
54357         * modules/pagealign_alloc: Likewise.
54358         * modules/unistd (Files): Remove lib/unistd_.h.
54359         (EXTRA_DIST): Remove.
54360         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
54361         need unistd_.h.
54362         (MOSTLYCLEANFILES): Remove unistd.h-t.
54363
54364 2006-03-03  Simon Josefsson  <jas@extundo.com>
54365
54366         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
54367
54368 2006-03-03  Simon Josefsson  <jas@extundo.com>
54369
54370         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
54371         libidn and bison.
54372
54373 2006-03-03  Simon Josefsson  <jas@extundo.com>
54374
54375         * build-aux/maint.mk: Add indent target.
54376
54377 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
54378
54379         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
54380         our replacement poll.h in any case, to avoid a differing
54381         declaration from a system header.  Seen on AIX.
54382
54383 2006-03-01  Simon Josefsson  <jas@extundo.com>
54384
54385         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
54386         <kasal@ucw.cz>.
54387
54388 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54389
54390         * modules/gettime (Depends-on): Add extensions module.
54391         * modules/nanosleep (Depends-on): Likewise.
54392         * modules/settime (Depends-on): Likewise.
54393
54394 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54395
54396         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
54397         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
54398         pedantically.
54399         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54400         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
54401
54402         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
54403         not "==".  Reported by Ralf Wildenhues.
54404
54405 2006-03-01  Karl Berry  <karl@gnu.org>
54406
54407         * doc/Copyright/request-*: new files, synced from gnuorg.
54408
54409 2006-03-01  Karl Berry  <karl@gnu.org>
54410
54411         * config/srclist.txt (Copyright/*): new entries.
54412
54413 2006-02-28  Simon Josefsson  <jas@extundo.com>
54414
54415         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
54416
54417 2006-02-27  Simon Josefsson  <jas@extundo.com>
54418
54419         * lib/base64.h: Indent #define's.  From Jim Meyering
54420         <jim@meyering.net>.
54421
54422 2006-02-27  Jim Meyering  <jim@meyering.net>
54423
54424         Revert the change of 2006-02-24, so these files can continue
54425         to be sync'd from gettext.
54426         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
54427         of `config.h'.
54428
54429 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
54430
54431         * modules/intprops: New file.
54432         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54433         Add intprops.
54434         * modules/getloadavg (Files): Remove lib/intprops.h.
54435         (Depends-on): Add intprops.
54436         * modules/human: Likewise.
54437         * modules/inttostr: Likewise.
54438         * modules/openat: Likewise.
54439         * modules/sig2str: Likewise.
54440         * modules/userspec: Likewise.
54441         * modules/utimecmp: Likewise.
54442         * modules/xnanosleep: Likewise.
54443         * modules/xstrtol: Likewise.
54444
54445 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
54446
54447         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
54448         * modules/lock-tests (TESTS): Use $(EXEEXT).
54449         * modules/tls-tests: Likewise.
54450         * modules/argp-tests: Likewise.
54451         (check_PROGRAMS): New var, replacing...
54452         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
54453
54454 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54455
54456         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
54457         `config.h'.
54458
54459 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54460
54461         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
54462
54463 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54464
54465         Sync from coreutils.
54466         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
54467         gl_CHDIR_SAFER.
54468
54469 2006-02-22  Jim Meyering  <jim@meyering.net>
54470
54471         Sync from coreutils.
54472         * m4/chdir-safer.m4: New file.
54473
54474 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54475
54476         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
54477         AT_FDCWD exceeds INT_MAX.
54478         * lib/openat.h (AT_FDCWD): Likewise.
54479
54480 2006-02-17  Eric Blake  <address@hidden>
54481
54482         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
54483
54484 2006-02-16  Simon Josefsson  <jas@extundo.com>
54485
54486         * modules/getaddrinfo (Depends-on): Add sys_socket.
54487
54488 2006-02-15  Simon Josefsson  <jas@extundo.com>
54489
54490         * build-aux/maint.mk: Add dsyntax-check rule.
54491
54492 2006-02-15  Eric Blake  <ebb9@byu.net>
54493
54494         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
54495         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
54496         'present but cannot compile' warnings on cygwin.
54497         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
54498         use ws2tcpip.h if sys/socket.h works.
54499         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
54500         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
54501
54502 2006-02-14  Simon Josefsson  <jas@extundo.com>
54503
54504         * modules/maintainer-makefile (Files): Rename.
54505
54506         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
54507         and (the local) Makefile.cfg to maint-cfg.mk.
54508
54509         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
54510         to the latter.
54511
54512         * modules/maintainer-makefile: New module.
54513
54514         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
54515         severaly stripped to make it possible to build it up from scratch
54516         with reliable tests.
54517
54518         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
54519         fixes to permit overriding the default actions when configure and
54520         makefile are not available.
54521
54522 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54523
54524         Sync from coreutils.
54525         * modules/lstat (Depends-on): Don't depend on xalloc.
54526         (License): Change from GPL to LGPL, since this is now simply a
54527         replacement for a libc function.
54528
54529 2006-02-14  Jim Meyering  <jim@meyering.net>
54530
54531         Sync from coreutils.
54532
54533         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
54534         failure on deficient systems, and simplify gnulib lgpl dependencies.
54535         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
54536         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
54537
54538         * lib/xalloc-die.c: Remove unused definition of N_.
54539
54540 2006-02-14  Jim Meyering  <jim@meyering.net>
54541
54542         Sync from coreutils.
54543         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
54544         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
54545         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
54546         double-quote uses of that variable, to accommodate the rare case in
54547         which getmntent is available in none of the libraries checked.  This
54548         happens at least on FreeBSD 5.0.
54549
54550 2006-02-13  Simon Josefsson  <jas@extundo.com>
54551
54552         * gnulib-tool (Usage): Fix --import, from
54553         karl@freefriends.org (Karl Berry).
54554
54555 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54556
54557         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
54558
54559 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
54560
54561         * lib/argp-namefrob.h: Restore changes accidentally lost during the
54562         "autoupdate" on 2005-12-12.
54563
54564 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54565
54566         * modules/closeout (Depends-on): Remove atexit.
54567
54568 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54569
54570         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
54571         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
54572
54573 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54574
54575         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
54576         __EXTENSIONS__ if this causes compilation to fail.  Problem
54577         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
54578         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
54579
54580 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
54581
54582         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
54583         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
54584         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
54585         All uses changed.
54586
54587 2006-01-26  Simon Josefsson  <jas@extundo.com>
54588
54589         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
54590         prototype is visible on mingw32.
54591
54592         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
54593         for mingw32.
54594
54595         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
54596         mingw32).
54597
54598 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54599
54600         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
54601         attempt to open for write; this always fails, at least on POSIX
54602         hosts.  This reinstates the 2006-01-09 change, which was
54603         inadvertently removed.
54604
54605 2006-01-26  Bruno Haible  <bruno@clisp.org>
54606
54607         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
54608         Reported by Paul Eggert.
54609
54610 2006-01-26  Bruno Haible  <bruno@clisp.org>
54611             Paul Eggert  <eggert@cs.ucla.edu>
54612
54613         * lib/stdbool_.h (_Bool)
54614         [(! (defined __cplusplus || defined __BEOS__)
54615           && !defined __GNUC__
54616           && !(defined __HP_cc || defined __xlc__
54617                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
54618                || defined __sgi))]:
54619         #define to signed char in these cases too; this simplifies
54620         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
54621         etc., separately) and makes it more conservative.
54622
54623 2006-01-25  Simon Josefsson  <jas@extundo.com>
54624
54625         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
54626         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
54627         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
54628
54629 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54630
54631         * lib/argp-namefrob.h: Bugfix. Remove stray #
54632
54633 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54634
54635         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
54636         so that we test the test.
54637         Check for yet another HP-UX cc bug involving *bool |= bool.
54638
54639 2006-01-25  Karl Berry  <karl@gnu.org>
54640
54641         * config/srclist.txt (vasnprintf.c): sync lost.
54642
54643 2006-01-25  Jim Meyering  <jim@meyering.net>
54644
54645         Sync from the stable (b5) branch of coreutils:
54646
54647         * lib/fts.c (fts_children): Don't let close() clobber errno from
54648         failed fchdir().
54649
54650         * lib/fts.c (fts_stat): When following a symlink-to-directory,
54651         don't necessarily interpret stat-fails+lstat-succeeds as indicating
54652         a dangling symlink.  That can also happen at least for ELOOP.
54653         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
54654         FYI, this bug predates the inclusion of fts.c in coreutils.
54655
54656         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
54657         in their own block, so pre-c99 compilers don't object.
54658
54659         Avoid the double-free (first in fts_read, second in fts_close) that
54660         would occur when an `active' directory is made inaccessible (e.g.,
54661         via chmod a-x) during a traversal.
54662         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54663         before returning.  Reproduce this failure by
54664         mkdir -p a/b; cd a; chmod a-x . b
54665         Reported by Stavros Passas.
54666
54667 2006-01-25  Jim Meyering  <jim@meyering.net>
54668
54669         * lib/fileblocks.c: Remove more useless parentheses.
54670         * lib/readutmp.h: Likewise.
54671
54672 2006-01-25  Bruno Haible  <bruno@clisp.org>
54673
54674         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
54675         warnings.
54676         Reported by Paul Eggert.
54677
54678 2006-01-25  Bruno Haible  <bruno@clisp.org>
54679
54680         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
54681         rid of a trap command. For Solaris sh.
54682         Reported by Mark D. Baushke <mdb@gnu.org>.
54683
54684 2006-01-24  Simon Josefsson  <jas@extundo.com>
54685
54686         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
54687         Bruno.
54688
54689 2006-01-24  Karl Berry  <karl@gnu.org>
54690
54691         * config/srclist.txt (argp-namefrob.h): sync lost.
54692
54693 2006-01-24  Jim Meyering  <jim@meyering.net>
54694
54695         * modules/openat (Files): Add lib/intprops.h.
54696         From Mark D. Baushke.
54697
54698 2006-01-24  Jim Meyering  <jim@meyering.net>
54699
54700         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
54701         Reported by Mark D. Baushke.
54702
54703 2006-01-24  Jim Meyering  <jim@meyering.net>
54704
54705         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
54706
54707 2006-01-24  Bruno Haible  <bruno@clisp.org>
54708
54709         * modules/strnlen (Maintainer): Change from glibc to all.
54710
54711 2006-01-24  Bruno Haible  <bruno@clisp.org>
54712
54713         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
54714         Patch by Paul Eggert.
54715
54716 2006-01-24  Bruno Haible  <bruno@clisp.org>
54717
54718         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
54719         already has it.
54720         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
54721         2005-11-26.
54722
54723         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
54724         'signed char' to avoid problems with the built-in _Bool type.
54725         Reported by Paul Eggert on 2005-11-26.
54726
54727 2006-01-24  Bruno Haible  <bruno@clisp.org>
54728
54729         * gnulib-tool (func_import): Avoid constructing complicated sed
54730         expressions inside backquote.
54731         Report and solution by Mark D. Baushke <mdb@gnu.org>.
54732
54733 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
54734
54735         These changes imported from libc.
54736         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
54737         test and two separate function calls.
54738         * lib/strndup.c (__strndup): Add libc_hidden_def.
54739
54740 2006-01-23  Simon Josefsson  <jas@extundo.com>
54741
54742         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
54743         Remove the test_*_SOURCES variable: automake infers it by default.
54744         * modules/tls-tests: Likewise.
54745
54746 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54747
54748         Work around porting bugs reported by Dieter in
54749         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
54750         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
54751         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
54752         Include "getopt.h" first, to check interface.
54753         (getenv): Declare only if defined HAVE_DECL_GETENV &&
54754         !HAVE_DECL_GETENV.
54755         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
54756         (__strndup): Revert to K&R-style function dfns, the glibc style.
54757         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
54758         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
54759         Include strnlen.h first, to get prototype properly.
54760         (strnlen): Renamed from __strnlen.
54761         Remove weak alias.
54762
54763 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54764
54765         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
54766
54767 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54768
54769         * config/srclist.txt: Adjust to reflect glibc reorganization.
54770         This affects only comments.
54771
54772 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54773
54774          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
54775          Reported by Bruce Korb <bkorb@gnu.org>.
54776
54777 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54778
54779         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
54780         to pacify gcc -Wswitch-default.
54781
54782 2006-01-22  Bruno Haible  <bruno@clisp.org>
54783
54784         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
54785         temporary buffer for sprintf, take into account the precision also
54786         for 'd', 'i', 'u', 'o', 'x', 'X'.
54787
54788 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54789
54790         * modules/argp-tests: New module
54791         * tests/test-argp.c: New file
54792         * tests/test-argp-2.sh: New file
54793
54794 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54795
54796         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
54797         (__argp_base_name): Removed
54798         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
54799         typo.
54800         (__argp_base_name): Provide macro definition or extern declaration
54801         depending on the configuration
54802
54803 2006-01-20  Simon Josefsson  <jas@extundo.com>
54804
54805         * modules/inet_ntop (Depends-on): Depend on sys_socket.
54806
54807 2006-01-20  Simon Josefsson  <jas@extundo.com>
54808
54809         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
54810
54811 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54812
54813         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
54814         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
54815         Suggested by Bruno Haible.
54816
54817 2006-01-20  Karl Berry  <karl@gnu.org>
54818
54819         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
54820         until changes propagate, I guess.
54821
54822 2006-01-19  Simon Josefsson  <jas@extundo.com>
54823
54824         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
54825
54826 2006-01-19  Simon Josefsson  <jas@extundo.com>
54827
54828         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
54829
54830 2006-01-19  Simon Josefsson  <jas@extundo.com>
54831
54832         * gnulib-tool: Set check_PROGRAMS.
54833
54834         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54835         modules/des-tests, modules/gc-arcfour-tests,
54836         modules/gc-arctwo-tests, modules/gc-des-tests,
54837         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54838         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54839         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54840         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54841         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54842         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
54843         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
54844         test_*_SOURCES.
54845
54846 2006-01-18  Simon Josefsson  <jas@extundo.com>
54847
54848         * modules/socklen (Depends-on): Depend on sys_socket.
54849
54850 2006-01-18  Simon Josefsson  <jas@extundo.com>
54851
54852         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54853         modules/des-tests, modules/gc-arcfour-tests,
54854         modules/gc-arctwo-tests, modules/gc-des-tests,
54855         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54856         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54857         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54858         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54859         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54860         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
54861         $(EXEEXT) to automake TESTS variable, for mingw32.
54862
54863 2006-01-17  Simon Josefsson  <jas@extundo.com>
54864
54865         * modules/socklen (Include): Need sys/socket.h.
54866
54867 2006-01-17  Bruno Haible  <bruno@clisp.org>
54868
54869         * modules/ssize_t (Include): Add <sys/types.h>.
54870
54871 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
54872
54873         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
54874         it's not portable and it doesn't work with cross-compiles.
54875         Problem reported by Bruno Haible.  Fix missing-$ typo in
54876         'test "gl_cv_ignore_unused_libraries" ...' that prevented
54877         -zignore from being used with Sun's C compiler.
54878
54879 2006-01-12  Simon Josefsson  <jas@extundo.com>
54880
54881         * lib/base64.c: Fix warning, reported by Bruno Haible
54882         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
54883
54884 2006-01-12  Bruno Haible  <bruno@clisp.org>
54885
54886         * modules/ldd: New file.
54887         * build-aux/ldd.sh.in: New file.
54888         * MODULES.html.sh (Support for building libraries and executables): Add
54889         ldd.
54890
54891 2006-01-12  Bruno Haible  <bruno@clisp.org>
54892
54893         * m4/ldd.m4: New file.
54894
54895 2006-01-12  Bruno Haible  <bruno@clisp.org>
54896
54897         * gnulib-tool (func_import, func_create_testdir): Don't go into an
54898         endless loop while replacing $auxdir with build-aux.
54899
54900 2006-01-11  Simon Josefsson  <jas@extundo.com>
54901
54902         * lib/stdint_.h (SIZE_MAX): Add missing (.
54903
54904 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
54905
54906         Sync from coreutils.
54907         * lib/md5.c: Fix commentary typos.
54908         (alignof, UNALIGNED_P): No need for a GCC-specific version.
54909         * lib/md5.h (__attribute__): Remove; unused.
54910         * lib/sha1.c: Fix commentary to match md5 better.
54911         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
54912         so that we don't need to worry about alignment.  All uses changed.
54913         This merges the 2005-10-28 md5 change into sha1.
54914
54915 2006-01-11  Jim Meyering  <jim@meyering.net>
54916
54917         Sync from coreutils.
54918         * lib/md5.c (OP): Fix spacing.
54919
54920 2006-01-11  Bruno Haible  <bruno@clisp.org>
54921
54922         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54923         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
54924         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
54925
54926 2006-01-11  Bruno Haible  <bruno@clisp.org>
54927
54928         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54929         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
54930         the "early" section as well.
54931
54932 2006-01-11  Bruno Haible  <bruno@clisp.org>
54933
54934         Avoid "ar: no archive members specified" error on MacOS X.
54935         * gnulib-tool (func_modules_add_dummy): New function.
54936         (func_import, func_create_testdir): Invoke it.
54937
54938 2006-01-11  Bruno Haible  <bruno@clisp.org>
54939
54940         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
54941         with $auxdir in AC_CONFIG_FILES statements.
54942
54943 2006-01-11  Bruno Haible  <bruno@clisp.org>
54944
54945         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54946         Initialize also noinst_HEADERS to empty.
54947
54948 2006-01-11  Bruno Haible  <bruno@clisp.org>
54949
54950         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
54951         variables.
54952         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
54953         autoreconf.
54954
54955 2006-01-11  Bruno Haible  <bruno@clisp.org>
54956
54957         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
54958         overridable by the user.
54959         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54960
54961 2006-01-10  Simon Josefsson  <jas@extundo.com>
54962
54963         * modules/sys_socket: New file.
54964
54965 2006-01-10  Simon Josefsson  <jas@extundo.com>
54966
54967         * m4/sys_socket_h.m4: New file.
54968
54969 2006-01-10  Simon Josefsson  <jas@extundo.com>
54970
54971         * lib/socket_.h: New file.
54972
54973 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54974
54975         * modules/readutmp (Maintainer): Add myself.
54976
54977 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54978
54979         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
54980         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
54981         People who are still concerned with buggy memcmp implementations
54982         can invoke gl_FUNC_MEMCMP themselves.
54983
54984 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54985
54986         * lib/regex_internal.h (BITSET_WORD_BITS):
54987         Work around a bug in 64-bit PGC (before version 6.1-2), where the
54988         preprocessor mishandles large unsigned values as if they were signed.
54989         Problem reported by Claudio Fontana in
54990         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
54991
54992 2006-01-10  Jim Meyering  <jim@meyering.net>
54993
54994         Avoid the double-free (first in fts_read, second in fts_close) that
54995         would occur when an `active' directory is made inaccessible (e.g.,
54996         via chmod a-x) during a traversal.
54997         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54998         before returning.  Reproduce this failure by
54999         mkdir -p a/b; cd a; chmod a-x . b
55000         Reported by Stavros Passas.
55001
55002         Sync from coreutils.
55003         * lib/sha1.c: Tweak grammar in a comment.
55004
55005 2006-01-10  Jim Meyering  <jim@meyering.net>
55006
55007         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
55008         Patch by Joerg Sonnenberger.
55009
55010 2006-01-10  Bruno Haible  <bruno@clisp.org>
55011
55012         * modules/readutmp: Depend on module free.
55013         * modules/strtok_r: Depend on module restrict.
55014
55015 2006-01-10  Bruno Haible  <bruno@clisp.org>
55016
55017         * modules/gettext (configure.ac): Add an invocation of
55018         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
55019
55020 2006-01-10  Bruno Haible  <bruno@clisp.org>
55021
55022         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
55023         Reported by Werner Lemberg <wl@gnu.org>.
55024
55025 2006-01-10  Bruno Haible  <bruno@clisp.org>
55026
55027         * lib/localcharset.c: Update from GNU gettext.
55028
55029 2006-01-10  Bruno Haible  <bruno@clisp.org>
55030
55031         * lib/argp.h (__const): Remove macro. Use const instead.
55032         * lib/argp-fmtstream.h (__const): Likewise.
55033         * lib/glob_.h (__const): Remove macro.
55034         * lib/glob-libc.h: Use const instead of __const.
55035
55036 2006-01-10  Bruno Haible  <bruno@clisp.org>
55037
55038         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
55039         variable.
55040         Needed to avoid an automake error regarding the 'gettext' module.
55041
55042 2006-01-09  Simon Josefsson  <jas@extundo.com>
55043
55044         * modules/inet_ntop (Depends-on): Add restrict.
55045
55046 2006-01-09  Simon Josefsson  <jas@extundo.com>
55047
55048         * modules/gc-rijndael-tests (License): Put under LGPL.
55049
55050         * modules/gc-des-tests (License): Likewise.
55051
55052         * modules/gc-arcfour-tests (License): Likewise.
55053
55054         * modules/gc-arctwo-tests (License): Likewise.
55055
55056         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
55057
55058         * modules/gc-hmac-sha1-tests (Files): Likewise.
55059
55060         * modules/gc-hmac-md5-tests (License): Likewise.
55061
55062         * modules/gc-sha1-tests (License): Likewise.
55063
55064         * modules/gc-md5-tests (License): Likewise.
55065
55066         * modules/gc-md4-tests (License): Likewise.
55067
55068         * modules/gc-md2-tests (License): Likewise.
55069
55070         * modules/gc-tests (License): Likewise.
55071
55072         * modules/des-tests (License): Likewise.
55073
55074         * modules/md4-tests (License): Likewise.
55075
55076         * modules/md2-tests (License): Likewise.
55077
55078 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55079
55080         Sync from coreutils:
55081
55082         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
55083         * modules/lib-ignore: New file.
55084         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
55085         chdir-safer.m4, lchmod.m4.
55086         * modules/openat: Add mkdirat.c, openat-priv.h.
55087
55088 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55089
55090         Sync from coreutils.
55091         * m4/lib-ignore.m4: New file.
55092         * m4/lchmod.m4: New file.
55093
55094 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55095
55096         Sync from coreutils.
55097         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
55098         for write access: POSIX says that must fail.
55099         * lib/fts.c (diropen): Likewise.
55100         * lib/save-cwd.c (save_cwd): Likewise.
55101         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
55102         well, for minor improvements on hosts that lack O_DIRECTORY.
55103         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
55104         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
55105         Fall back on chown if open failed with EACCES.
55106
55107         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
55108         Report an error at compile-time if only a 1-second nominal clock
55109         resolution is found.
55110
55111         * lib/lchmod.h: New file.
55112         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
55113         (make_dir_parents): Use lchown rather than chown, and
55114         lchmod rather than chmod.
55115
55116         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
55117         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
55118         "proc" reported by n0dalus.
55119
55120         * lib/mountlist.c: Include <limits.h>.
55121         (dev_from_mount_options)
55122         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
55123         New function.  It no longer assumes "dev=" has the System V meaning
55124         on Linux (since it doesn't).  It also parses "dev=" more carefully.
55125         (read_file_system_list)
55126         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
55127         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
55128         dev= in that case.
55129
55130         * lib/posixtm.h (PDS_PRE_2000): New macro.
55131         * lib/posixtm.c (year): Arg is now syntax_bits rather than
55132         allow_century.  All usages changed.  Reject dates outside the range
55133         1969-1999 if PDS_PRE_2000 is used.
55134
55135 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55136
55137         Sync from coreutils.
55138         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
55139         (Time of day items): Mention the possibility of leap seconds.
55140         Problem reported by Dr. David Alan Gilbert.
55141
55142 2006-01-09  Jim Meyering  <jim@meyering.net>
55143
55144         Sync from coreutils.
55145
55146         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
55147
55148         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
55149
55150         * lib/modechange.c (mode_compile): Reject an invalid mode string
55151         that starts with an octal digit.  From Andreas Gruenbacher.
55152
55153         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
55154         and dup to open_safer and dup_safer, respectively.
55155         (openat_permissive): Fix typo in comment.
55156
55157         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
55158         "gettext.h"; either no longer needed or are guaranteed by openat.h.
55159         (_): Remove; no longer needed.
55160         (openat): Renamed from rpl_openat; no need for rpl_openat
55161         since openat.h renames openat for us.
55162         Replace most of the body with a call to openat_permissive,
55163         to avoid duplicate code.
55164         Port to (probably hypothetical) environments were mode_t is
55165         wider than int.
55166         (openat_permissive): Require mode arg, so that we can check
55167         types better.  Put it just after flags.  Change cwd failure
55168         indicator from pointer-to-bool to pointer-to-errno-value.
55169         All callers changed.
55170         Invoke openat_save_fail and/or openat_restore_fail if
55171         cwd_errno is null, so that openat can call us.
55172         (openat_permissive, fdopendir, fstatat, unlinkat):
55173         Simplify errno handling to avoid some duplicate code,
55174         as it's OK to set errno on success.
55175         * lib/openat.h: Revamp code so that function macros depend on
55176         __OPENAT_PREFIX only, not also on AT_FDCWD.
55177         (openat_ro): Remove.  Caller changed to use openat_permissive.
55178         (openat_permissive): Now a macro, if not a function.
55179         (openat_restore_fail, openat_save_fail): Now always functions,
55180         since mkdirat needs them even if __OPENAT_PREFIX is defined.
55181
55182         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
55183         and openat.c.
55184         * lib/mkdirat.c: Include openat-priv.h.
55185         Remove definitions of macros defined therein.
55186         * lib/openat.c: Likewise.
55187
55188         * lib/mkdirat.c (mkdirat): New file and function.
55189         * lib/openat.h (mkdirat): Declare.
55190
55191         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
55192
55193         * lib/openat.h (openat_permissive): Declare.
55194         (openat_ro): Define.
55195
55196         * lib/openat.c (EXPECTED_ERRNO): New macro.
55197         (openat_permissive): New function -- used in remove.c rewrite.
55198         (all functions): Set errno just before returning, only if there
55199         was an actual failure.
55200         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
55201
55202         Emulate openat-family functions using Linux's procfs, if possible.
55203         Idea and some code based on Ulrich Drepper's glibc changes.
55204
55205         * lib/openat.c: (BUILD_PROC_NAME): New macro.
55206         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
55207         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
55208         before falling back on save_cwd and restore_cwd.
55209         (fdopendir, fstatat, unlinkat): Likewise.
55210
55211         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
55212         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
55213
55214         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
55215         as second argument to va_arg.  Otherwise, some versions of gcc
55216         warn that `if this code is reached, the program will abort'.
55217
55218 2006-01-09  Jim Meyering  <jim@meyering.net>
55219
55220         Sync from coreutils.
55221         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
55222         Require openat-priv.h.
55223
55224 2006-01-09  Bruno Haible  <bruno@clisp.org>
55225
55226         * modules/strnlen (Include): Use strnlen.h.
55227
55228 2006-01-09  Bruno Haible  <bruno@clisp.org>
55229
55230         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
55231
55232 2006-01-09  Bruno Haible  <bruno@clisp.org>
55233
55234         * lib/sysexit_.h (EX_OK): New macro.
55235         Suggested by Martin Lambers <marlam@marlam.de>.
55236
55237 2006-01-09  Bruno Haible  <bruno@clisp.org>
55238
55239         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
55240         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
55241
55242 2006-01-09  Bruno Haible  <bruno@clisp.org>
55243
55244         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
55245         numbers.
55246
55247 2006-01-09  Bruno Haible  <bruno@clisp.org>
55248
55249         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
55250         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
55251         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
55252         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
55253
55254 2006-01-09  Bruno Haible  <bruno@clisp.org>
55255
55256         * build-aux/javacomp.sh.in: New file, moved from lib/.
55257         * modules/javacomp-script (Files): Update.
55258         (configure.ac): Add AC_CONFIG_FILES invocation.
55259         (EXTRA_DIST): Remove variable.
55260
55261         * build-aux/javaexec.sh.in: New file, moved from lib/.
55262         * modules/javaexec (Files): Update.
55263         (configure.ac): Add AC_CONFIG_FILES invocation.
55264         (EXTRA_DIST): Remove javaexec.sh.in.
55265
55266         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
55267         * modules/csharpcomp-script (Files): Update.
55268         (configure.ac): Add AC_CONFIG_FILES invocation.
55269         (EXTRA_DIST): Remove variable.
55270
55271         * build-aux/csharpexec.sh.in: New file, moved from lib/.
55272         * modules/csharpexec (Files): Update.
55273         (configure.ac): Add AC_CONFIG_FILES invocation.
55274         (EXTRA_DIST): Remove csharpexec.sh.in.
55275
55276 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
55277
55278         Sync from coreutils.
55279
55280         Add POSIX ACL support
55281         * lib/acl.h (copy_acl, set_acl): Add declarations.
55282         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
55283         systems other than Linux.
55284         (chmod_or_fchmod): New function: use fchmod when possible,
55285         and chmod otherwise.
55286         (file_has_acl): Add a POSIX ACL implementation, with a
55287         Linux-specific subcase.
55288         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
55289         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
55290         acls are unsupported.
55291         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
55292         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
55293         are unsupported.
55294
55295 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
55296
55297         Sync from coreutils.
55298         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
55299
55300 2006-01-07  Bruno Haible  <bruno@clisp.org>
55301
55302         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
55303         gl_EARLY.
55304
55305 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55306
55307         * lib/strftime.c (tzname): Don't declare if it is already #defined.
55308         Problem reported for Mingw by Mark Junker.
55309
55310 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55311
55312         * README: Gnulib normally doesn't generate a tarball.
55313
55314 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
55315
55316         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
55317         long int, not int, for nanosecond counts, so that people who are
55318         used to POSIX struct timespec won't be surprised.  Reported by Jim
55319         Meyering.
55320
55321 2005-12-28  Bruno Haible  <bruno@clisp.org>
55322
55323         * build-aux/config.rpath: Update from GNU gettext.
55324
55325 2005-12-16  Jim Meyering  <jim@meyering.net>
55326
55327         * modules/fprintftime: New module.
55328         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
55329
55330 2005-12-16  Jim Meyering  <jim@meyering.net>
55331
55332         * m4/fprintftime.m4: New file.
55333
55334 2005-12-16  Jim Meyering  <jim@meyering.net>
55335
55336         * lib/fprintftime.c, lib/fprintftime.h: New files.
55337
55338 2005-12-15  Simon Josefsson  <jas@extundo.com>
55339
55340         * modules/socklen (configure.ac): Fix M4 macro name, to align with
55341         new m4/socklen.m4.
55342
55343 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55344
55345         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
55346         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
55347
55348 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55349
55350         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
55351         * lib/argp-help.c (fill_in_uparams): Check if the constructed
55352         struct uparams is valid. Fall back to the default values if it is
55353         not.
55354
55355 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55356
55357         * modules/argp (Files): Add argp-pin.c
55358         (Depends-on): dirname
55359         (lib_SOURCES): Add argp-pin.c
55360
55361 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55362
55363         * m4/argp.m4:  Check if program_invocation_name and
55364         program_invocation_short_name are declared and define appropriate
55365         macros if they are not.
55366
55367 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55368
55369         * lib/argp-help.c (__argp_base_name): New function
55370         (__argp_short_program_name): Rewrite using __argp_base_name
55371         * lib/argp-namefrob.h: Define program_invocation_name and
55372         program_invocation_short_name if requested
55373         (__argp_base_name): Add prototype
55374         * lib/argp-parse.c (argp_def): Use gettext wrappers
55375         (argp_default_parser): Use __argp_base_name
55376         * lib/argp-pin.c: New file. Defines program_invocation_name and
55377         program_invocation_short_name on systems that lack them.
55378
55379 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55380
55381         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
55382         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55383         porting problem reported by Georg Schwarz in
55384         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55385
55386 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55387
55388         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
55389         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55390         porting problem reported by Georg Schwarz in
55391         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55392
55393 2005-12-05  Bruno Haible  <bruno@clisp.org>
55394
55395         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
55396         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
55397         Reported by Mark Junker <mjscod@gmx.de>.
55398
55399 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
55400
55401         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
55402         Use implementation from Albert Chin, with some
55403         comments/corrections by Stepan Kasal and myself.
55404
55405 2005-12-02  Bruno Haible  <bruno@clisp.org>
55406
55407         * gnulib-tool (func_import): Accept GPLed build tool modules when
55408         --lgpl is given.
55409         * modules/csharpcomp-script: New file.
55410         * modules/csharpcomp: Depend on it.
55411         * modules/javacomp-script: New file.
55412         * modules/javacomp: Depend on it.
55413         Suggested by Simon Josefsson.
55414
55415 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
55416
55417         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
55418         statement, to work around an HP-UX 10.20 compiler bug reported by
55419         Peter O'Gorman.
55420
55421 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55422
55423         * modules/savedir (Depends-on): Add openat.
55424
55425 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55426
55427         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
55428         (uintmax_t) [defined uintmax_t]: Do not declare.
55429         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
55430         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
55431         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
55432         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
55433         sake of portability to weird hosts that C allows (though we don't
55434         know of any practical examples).
55435
55436         * lib/savedir.h (fdsavedir): New decl.
55437         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
55438         contains most of the former guts of savedir.
55439         (savedir): Use savedirstream.
55440         Include "openat.h".
55441
55442 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
55443
55444         * modules/obstack (Files): Add m4/ulonglong.m4.
55445         Problem reported by Davide Angelocola.
55446
55447 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55448
55449         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
55450         coreutils no longer futzes with rounding modes.
55451
55452 2005-11-14  Jim Meyering  <jim@meyering.net>
55453
55454         * lib/mkstemp-safer.c: Include <config.h>, required for possible
55455         replacement of mkstemp.
55456
55457 2005-11-10  Simon Josefsson  <jas@extundo.com>
55458
55459         * lib/readline.c: Remove EOL.
55460
55461 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55462
55463         * modules/gethrxtime (Depends-on): Add gettime.
55464
55465 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55466
55467         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
55468         or gettimeofday; no longer needed.
55469
55470 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55471
55472         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
55473         time business.
55474         (gethrxtime) [! (HAVE_NANOUPTIME
55475         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
55476         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
55477         our own approximation.
55478
55479 2005-11-08  Eric Blake  <ebb9@byu.net>
55480
55481         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55482
55483 2005-11-08  Eric Blake  <ebb9@byu.net>
55484
55485         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55486
55487 2005-11-04  Bruno Haible  <bruno@clisp.org>
55488
55489         * gnulib-tool: Implement --update mode.
55490
55491 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55492
55493         Fix porting problem reported by Theodoros V. Kalamatianos.
55494         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
55495         Don't assume that futimes failing means we must fail.
55496
55497 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55498
55499         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
55500         variables to suggest the intended function of the PATH_MAX check.
55501
55502 2005-10-30  Kean Johnston  <jkj@sco.com>
55503
55504         Trivial changes to support SCO systems.
55505         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
55506         as PATH_MAX.
55507         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
55508         where __ptr is null when no I/O is pending.
55509
55510 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55511
55512         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
55513         leave errno alone.  Problem reported by Dmitry V. Levin.
55514
55515 2005-10-28  Simon Josefsson  <jas@extundo.com>
55516
55517         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
55518         Test more.
55519
55520         * tests/test-gc-md2.c, tests/test-md2.c: New files.
55521
55522         * modules/md2, modules/md2-tests: New files.
55523
55524 2005-10-28  Simon Josefsson  <jas@extundo.com>
55525
55526         * m4/inet_ntop.m4: More tests.
55527
55528         * m4/gc-md2.m4, md2.m4: New file.
55529
55530 2005-10-28  Simon Josefsson  <jas@extundo.com>
55531
55532         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
55533         "restrict" keywords, as per POSIX.  Protect the function
55534         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
55535         Don't use K&R prototypes.  Check the sprintf return values.
55536         Re-define EAFNOSUPPORT if not present.  Indent.
55537
55538         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
55539         suggested by Bruno Haible <bruno@clisp.org>.
55540
55541         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
55542
55543         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
55544
55545         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
55546         libgcrypt).
55547
55548         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
55549
55550         * lib/md2.h, lib/md2.c: New files.
55551
55552 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
55553
55554         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
55555         errno alone.  Problem reported by Frederic Jolliton.
55556
55557 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55558
55559         * modules/verify (License): Change from GPL to LGPL.  This is a
55560         tiny module and there are apparently near-equivalents that are
55561         under the BSD license.
55562
55563 2005-10-24  Simon Josefsson  <jas@extundo.com>
55564
55565         * modules/sha1: Relicense to LGPL.
55566
55567 2005-10-24  Simon Josefsson  <jas@extundo.com>
55568
55569         * lib/md4.h: Shrink buffer size, now that we changed the type.
55570
55571 2005-10-23  Simon Josefsson  <jas@extundo.com>
55572
55573         * gnulib-tool (func_import): Fix --tests-base.
55574
55575 2005-10-22  Simon Josefsson  <jas@extundo.com>
55576
55577         * modules/arcfour (Depends-on): Need stdint.
55578
55579 2005-10-22  Simon Josefsson  <jas@extundo.com>
55580
55581         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
55582         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
55583
55584 2005-10-22  Simon Josefsson  <jas@extundo.com>
55585
55586         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
55587         suggested by Bruno Haible <bruno@clisp.org>.
55588
55589 2005-10-22  Simon Josefsson  <jas@extundo.com>
55590
55591         * lib/crc.h: Include stddef.h, for size_t.
55592
55593 2005-10-22  Simon Josefsson  <jas@extundo.com>
55594
55595         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
55596         arcfour_context struct (simplify test vector testing in GNU
55597         Shishi).
55598
55599 2005-10-21  Simon Josefsson  <jas@extundo.com>
55600
55601         * modules/des, modules/des-tests: New files.
55602
55603         * modules/gc-des, modules/gc-des-tests: New files.
55604
55605         * tests/test-des.c, tests/test-gc-des.c: New file.
55606
55607 2005-10-21  Simon Josefsson  <jas@extundo.com>
55608
55609         * modules/arctwo, modules/arctwo-tests: New files.
55610
55611         * tests/test-arctwo.c: New file.
55612
55613         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
55614
55615         * tests/test-gc-arctwo.c: New file.
55616
55617 2005-10-21  Simon Josefsson  <jas@extundo.com>
55618
55619         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
55620         Bruno Haible <bruno@clisp.org>.
55621
55622         * m4/gc-des.m4: New file.
55623
55624 2005-10-21  Simon Josefsson  <jas@extundo.com>
55625
55626         * m4/arctwo.m4: New file.
55627
55628         * m4/gc-arctwo.m4: New file.
55629
55630 2005-10-21  Simon Josefsson  <jas@extundo.com>
55631
55632         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
55633         block.
55634
55635 2005-10-21  Simon Josefsson  <jas@extundo.com>
55636
55637         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
55638         <bruno@clisp.org>.
55639
55640         * lib/hmac-sha1.c (hmac_sha1): Likewise.
55641
55642         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
55643         Bruno Haible <bruno@clisp.org>.
55644
55645         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
55646         <bruno@clisp.org>.
55647
55648 2005-10-21  Simon Josefsson  <jas@extundo.com>
55649
55650         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
55651
55652 2005-10-21  Simon Josefsson  <jas@extundo.com>
55653
55654         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
55655
55656 2005-10-21  Simon Josefsson  <jas@extundo.com>
55657
55658         * lib/des.h, lib/des.c: New files.
55659
55660         * lib/gc-gnulib.c: Support DES.c
55661
55662 2005-10-21  Simon Josefsson  <jas@extundo.com>
55663
55664         * lib/arctwo.h, lib/arctwo.c: New files.
55665
55666         * lib/gc-gnulib.c: Support ARCTWO.
55667
55668 2005-10-21  Simon Josefsson  <jas@extundo.com>
55669
55670         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
55671         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55672
55673 2005-10-21  Simon Josefsson  <jas@extundo.com>
55674
55675         * gnulib-tool (func_import, func_create_testdir): Define automake
55676         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
55677         Makefile.am snippet),
55678         suggested by Bruno Haible <bruno@clisp.org>.
55679
55680         * modules/gc (Makefile.am): Use it.
55681
55682 2005-10-21  Bruno Haible  <bruno@clisp.org>
55683
55684         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
55685         patch.
55686
55687 2005-10-19  Simon Josefsson  <jas@extundo.com>
55688
55689         * tests/test-gc-rijndael.c: New file.
55690
55691         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
55692
55693 2005-10-19  Simon Josefsson  <jas@extundo.com>
55694
55695         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
55696         interface too.
55697
55698 2005-10-19  Simon Josefsson  <jas@extundo.com>
55699
55700         * tests/test-gc-arcfour.c: New file.
55701
55702         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
55703
55704 2005-10-19  Simon Josefsson  <jas@extundo.com>
55705
55706         * modules/gc-md4, modules/gc-md4-tests: New file.
55707
55708         * tests/test-gc-md4.c: New file.
55709
55710 2005-10-19  Simon Josefsson  <jas@extundo.com>
55711
55712         * m4/gc-md4.m4: New file.
55713
55714 2005-10-19  Simon Josefsson  <jas@extundo.com>
55715
55716         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
55717         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
55718         <kasal@ucw.cz>.
55719
55720 2005-10-19  Simon Josefsson  <jas@extundo.com>
55721
55722         * m4/gc-arcfour.m4: New file.
55723
55724         * m4/gc-rijndael.m4: New file.
55725
55726 2005-10-19  Simon Josefsson  <jas@extundo.com>
55727
55728         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
55729
55730 2005-10-19  Simon Josefsson  <jas@extundo.com>
55731
55732         * lib/gc-gnulib.c: Support ARCFOUR.
55733
55734 2005-10-19  Simon Josefsson  <jas@extundo.com>
55735
55736         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
55737         support.
55738
55739         * lib/gc.h: Add ECB enum type.
55740
55741         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
55742
55743 2005-10-18  Simon Josefsson  <jas@extundo.com>
55744
55745         * tests/test-md5.c: New file.
55746
55747         * modules/md5-tests: New file.
55748
55749 2005-10-18  Simon Josefsson  <jas@extundo.com>
55750
55751         * tests/test-md4.c: New file.
55752
55753         * modules/md4, modules/md4-tests: New files.
55754
55755 2005-10-18  Simon Josefsson  <jas@extundo.com>
55756
55757         * m4/md4.m4: New file.
55758
55759 2005-10-18  Simon Josefsson  <jas@extundo.com>
55760
55761         * lib/md4.h, lib/md4.c: New files, based on md5.?.
55762
55763 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
55764
55765         * gnulib-tool (func_create_testdir): Omit the second check whether
55766         BUILT_SOURCES in nonempty.
55767
55768 2005-10-17  Simon Josefsson  <jas@extundo.com>
55769
55770         * tests/test-rijndael.c: New file.
55771
55772 2005-10-17  Simon Josefsson  <jas@extundo.com>
55773
55774         * modules/sha1: Depend on stdint instead of md5.
55775
55776         * modules/md5: Depend on stdint, remove uint32_t.
55777
55778 2005-10-17  Simon Josefsson  <jas@extundo.com>
55779
55780         * modules/gc-sha1-tests: New file.
55781
55782         * tests/test-gc-sha1.c: New file.
55783
55784 2005-10-17  Simon Josefsson  <jas@extundo.com>
55785
55786         * m4/md5.m4: Remove call to uint32_t.m4.
55787
55788 2005-10-17  Simon Josefsson  <jas@extundo.com>
55789
55790         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
55791
55792         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
55793         md5.h.
55794
55795         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
55796
55797         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
55798
55799 2005-10-17  Simon Josefsson  <jas@extundo.com>
55800
55801         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
55802
55803 2005-10-17  Simon Josefsson  <jas@extundo.com>
55804
55805         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
55806
55807 2005-10-17  Simon Josefsson  <jas@extundo.com>
55808
55809         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
55810
55811         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
55812
55813 2005-10-17  Bruno Haible  <bruno@clisp.org>
55814
55815         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
55816         that it can also be used in a test.
55817
55818 2005-10-16  Bruno Haible  <bruno@clisp.org>
55819
55820         * gnulib-tool (func_emit_tests_Makefile_am): Also define
55821         TESTS_ENVIRONMENT, so that individual tests can augment it.
55822
55823         * gnulib-tool (func_create_testdir): Use an intermediate target for
55824         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
55825         macros, like $(ALLOCA_H), which cannot be passed through the command
55826         line.
55827
55828 2005-10-15  Simon Josefsson  <jas@extundo.com>
55829
55830         * modules/rijndael-tests: New file.
55831
55832         * modules/rijndael: New file.
55833
55834 2005-10-15  Simon Josefsson  <jas@extundo.com>
55835
55836         * m4/rijndael.m4: New file.
55837
55838 2005-10-15  Simon Josefsson  <jas@extundo.com>
55839
55840         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
55841
55842         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
55843
55844 2005-10-14  Simon Josefsson  <jas@extundo.com>
55845
55846         * tests/test-arcfour.c: New file.
55847
55848         * modules/arcfour, modules/arcfour-tests: New files.
55849
55850 2005-10-14  Simon Josefsson  <jas@extundo.com>
55851
55852         * m4/arcfour.m4: New file.
55853
55854 2005-10-14  Simon Josefsson  <jas@extundo.com>
55855
55856         * lib/arcfour.h, lib/arcfour.c: New files.
55857
55858 2005-10-14  Roland McGrath  <roland@redhat.com>
55859
55860         Import from libc.  [BZ #1331]
55861         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
55862         macro argument.
55863         Reported by Matej Vela <vela@debian.org>.
55864
55865 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55866
55867         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
55868         include <wchar.h>; no longer needed.
55869
55870 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55871
55872         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
55873
55874 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
55875         and  Ulrich Drepper  <drepper@redhat.com>
55876
55877         Import from libc.
55878         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
55879         instead of inline stream orientation test and two separate
55880         function calls.  Pay no attention to USE_IN_LIBIO.
55881
55882 2005-10-13  Simon Josefsson  <jas@extundo.com>
55883
55884         * modules/gc-hmac-md5-tests: New file.
55885
55886         * tests/test-gc-hmac-sha1.c: New file.
55887
55888         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
55889
55890         * modules/gc-hmac-md5-tests: New file.
55891
55892         * tests/test-gc-md5.c: New file.
55893
55894         * modules/gc-md5-tests: New file.
55895
55896 2005-10-13  Simon Josefsson  <jas@extundo.com>
55897
55898         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
55899         Move memory allocation outside of loop.
55900
55901 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
55902
55903         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
55904         intermediate directory is in a read-only file system.  Problem
55905         reported by Eric Blake.
55906
55907 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
55908
55909         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
55910
55911 2005-10-12  Simon Josefsson  <jas@extundo.com>
55912
55913         * tests/test-hmac-sha1.c: New file.
55914
55915         * modules/hmac-sha1-tests: New file.
55916
55917         * modules/hmac-sha1: New file.
55918
55919 2005-10-12  Simon Josefsson  <jas@extundo.com>
55920
55921         * modules/gc-sha1: New file.
55922
55923 2005-10-12  Simon Josefsson  <jas@extundo.com>
55924
55925         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
55926
55927         * tests/test-gc-pbkdf2-sha1.c: New file.
55928
55929 2005-10-12  Simon Josefsson  <jas@extundo.com>
55930
55931         * modules/gc-md5, modules/gc-hmac-md5: New files.
55932
55933         * modules/gc (Files): Remove md5, memxor and hmac files.
55934
55935 2005-10-12  Simon Josefsson  <jas@extundo.com>
55936
55937         * m4/gc-pbkdf2-sha1.m4: New file.
55938
55939         * m4/gc-hmac-sha1.m4: New file.
55940
55941         * m4/gc-sha1: New file.
55942
55943         * m4/hmac-sha1.m4: New file.
55944
55945 2005-10-12  Simon Josefsson  <jas@extundo.com>
55946
55947         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
55948
55949         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
55950
55951 2005-10-12  Simon Josefsson  <jas@extundo.com>
55952
55953         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
55954         suggested by Bruno Haible <bruno@clisp.org>.
55955
55956 2005-10-12  Simon Josefsson  <jas@extundo.com>
55957
55958         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
55959
55960 2005-10-12  Simon Josefsson  <jas@extundo.com>
55961
55962         * lib/gc-pbkdf2-sha1.c: New file.
55963
55964         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
55965
55966 2005-10-12  Simon Josefsson  <jas@extundo.com>
55967
55968         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
55969
55970         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
55971
55972 2005-10-12  Simon Josefsson  <jas@extundo.com>
55973
55974         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
55975         GC_USE_HMAC_MD5, respectively.
55976
55977         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
55978         (gc_md5): Fix typo.
55979
55980         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
55981
55982         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
55983
55984         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
55985
55986 2005-10-12  Bruno Haible  <bruno@clisp.org>
55987
55988         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
55989         Reported by Stepan Kasal <kasal@ucw.cz>.
55990
55991 2005-10-11  Simon Josefsson  <jas@extundo.com>
55992
55993         * tests/test-crc.c: New file.
55994
55995         * modules/crc, modules/crc-tests: New files.
55996
55997 2005-10-11  Simon Josefsson  <jas@extundo.com>
55998
55999         * m4/crc.m4: New file.
56000
56001 2005-10-11  Simon Josefsson  <jas@extundo.com>
56002
56003         * lib/gc.h: Add gc_hash and gc_hash_buffer.
56004
56005         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
56006
56007         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
56008
56009 2005-10-11  Simon Josefsson  <jas@extundo.com>
56010
56011         * lib/crc.h, lib/crc.c: New files.
56012
56013         * lib/gc.h (gc_hash_buffer): Add doc.
56014
56015 2005-10-11  Bruno Haible  <bruno@clisp.org>
56016
56017         * modules/c-strcasestr: New file.
56018         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
56019
56020 2005-10-11  Bruno Haible  <bruno@clisp.org>
56021
56022         * modules/c-strcase: New file.
56023         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
56024
56025 2005-10-11  Bruno Haible  <bruno@clisp.org>
56026
56027         * lib/strcasecmp.c: Include limits.h.
56028         (strcasecmp): Avoid integer overflow on exotic platforms.
56029         * lib/strncasecmp.c: Include limits.h.
56030         (strncasecmp): Avoid integer overflow on exotic platforms.
56031         Reported by Paul Eggert.
56032
56033 2005-10-11  Bruno Haible  <bruno@clisp.org>
56034
56035         * lib/c-strcasestr.h: New file, from GNU gettext.
56036         * lib/c-strcasestr.c: New file, from GNU gettext.
56037
56038 2005-10-11  Bruno Haible  <bruno@clisp.org>
56039
56040         * lib/c-strcase.h: New file, from GNU gettext.
56041         * lib/c-strcasecmp.c: New file, from GNU gettext.
56042         * lib/c-strncasecmp.c: New file, from GNU gettext.
56043
56044 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
56045
56046         * modules/mempcpy (License): GPL -> LGPL.
56047         * modules/strchrnul (License): Likewise.
56048         * modules/sysexits (License): Likewise.
56049
56050 2005-10-08  Simon Josefsson  <jas@extundo.com>
56051
56052         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
56053
56054 2005-10-07  Simon Josefsson  <jas@extundo.com>
56055
56056         * m4/memxor.m4: Remove gl_C_RESTRICT call.
56057
56058 2005-10-06  Simon Josefsson  <jas@extundo.com>
56059
56060         * tests/test-hmac-md5.c: New file.
56061
56062         * modules/hmac-md5-tests: New file.
56063
56064         * modules/hmac-md5: New file.
56065
56066 2005-10-06  Simon Josefsson  <jas@extundo.com>
56067
56068         * m4/hmac-md5.m4: New file.
56069
56070         * m4/memxor.m4: Require gl_C_RESTRICT.
56071
56072 2005-10-06  Simon Josefsson  <jas@extundo.com>
56073
56074         * lib/memxor.c (memxor): Avoid casts and warnings.
56075
56076 2005-10-06  Simon Josefsson  <jas@extundo.com>
56077
56078         * lib/hmac-md5.c: New file.
56079
56080         * lib/hmac.h: New file.
56081
56082 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56083
56084         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
56085         promotes to int, not unsigned int, to catch the AIX 5.3
56086         compiler bug.
56087
56088 2005-10-05  Simon Josefsson  <jas@extundo.com>
56089
56090         * modules/memxor: New file.
56091
56092         * modules/iconv (Files): Move config.rpath to havelib, it is used
56093         there.
56094
56095         * modules/havelib (Files): Add config.rpath.
56096
56097 2005-10-05  Simon Josefsson  <jas@extundo.com>
56098
56099         * m4/memxor.m4: New file.
56100
56101 2005-10-05  Simon Josefsson  <jas@extundo.com>
56102
56103         * lib/memxor.c (memxor): Fix compiler error.
56104
56105         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
56106         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
56107
56108         * lib/memxor.h, lib/memxor.c: New files.
56109
56110         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
56111         we assume all systems have it, suggested by Jim Meyering
56112         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
56113         any systems lack sys/socket.h; mingw32 is known to lack it, but we
56114         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
56115         same reasons.
56116
56117 2005-10-05  Simon Josefsson  <jas@extundo.com>
56118
56119         * config/srclist.txt: Add glibc bug 1423 for md5.h.
56120
56121 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56122
56123         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
56124         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
56125         needed, since the source code now assumes these .h files.
56126
56127 2005-10-05  Derek Price  <derek@ximbiot.com>
56128
56129         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
56130
56131 2005-10-05  Bruno Haible  <bruno@clisp.org>
56132
56133         * modules/stdint (License): Change to LGPL.
56134
56135 2005-10-04  Simon Josefsson  <jas@extundo.com>
56136
56137         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
56138         D. Baushke" <mdb@gnu.org>.
56139
56140 2005-10-04  Bruno Haible  <bruno@clisp.org>
56141
56142         * lib/verify.h (verify_true): Provide alternative definition for C++.
56143
56144 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
56145
56146         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
56147         (SSIZE_MAX): New macro, if not already defined.
56148         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
56149         than 2 GiB.
56150
56151 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56152
56153         Sync from coreutils.
56154         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
56155         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
56156         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
56157         ULLONG_MAX doesn't work with 2.7.2.1.
56158
56159 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56160
56161         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
56162         From Ben Pfaff.
56163
56164         * modules/exclude (Depends-on): Depend on verify.
56165         * modules/strtoimax (Depends-on): Likewise.
56166         * modules/utimecmp (Depends-on): Likewise.
56167
56168 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56169
56170         * lib/exclude.c: Include verify.h.
56171         (verify): Remove.  All callers changed to use verify.h's version.
56172         * lib/strtoimax.c: Likewise.
56173         * lib/utimecmp.c: Likewis.e
56174
56175         Sync from coreutils.
56176         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
56177         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
56178         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
56179         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
56180         bother returning ENOSYS if settimeofday or stime fails; just let
56181         them return whatever errno they want to return.
56182         * lib/utimens.c: Include unistd.h, for dup2.
56183         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
56184         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
56185
56186 2005-10-02  Jim Meyering  <jim@meyering.net>
56187
56188         Sync from coreutils.
56189         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
56190         from glibc-2.2.5 that fails for read-only files.
56191
56192 2005-10-02  Jim Meyering  <jim@meyering.net>
56193
56194         Sync from coreutils.
56195         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
56196         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
56197         `#if HAVE_CONFIG_H'.
56198         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
56199         Remove AT_FDCWD test.
56200         Do not consume the fd unless successful.
56201         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
56202         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
56203         block, so that we don't even try to compile it if settimeofday is
56204         available.  This works around a compilation failure on OSF1 V5.1,
56205         due to stime requiring a `long int*' while tv_sec is `int'.
56206
56207 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
56208
56209         Sync from coreutils.
56210         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
56211         against `yes', rather than just testing for nonempty.
56212
56213 2005-10-01  Simon Josefsson  <jas@extundo.com>
56214
56215         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
56216         and Darwin.
56217
56218         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
56219         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
56220         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
56221         freeaddrinfo and gai_strerror are declared by the POSIX headers.
56222         Check if struct addrinfo is declared.
56223
56224 2005-10-01  Simon Josefsson  <jas@extundo.com>
56225
56226         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
56227         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
56228         AI_* and EAI_* definitions.  Protect function declarations.
56229
56230 2005-10-01  Jim Meyering  <jim@meyering.net>
56231
56232         Sync from coreutils.
56233
56234         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
56235         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
56236         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
56237         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
56238         in the inet and nsl libraries.  Required on Solaris 5.7.
56239
56240 2005-10-01  Jim Meyering  <jim@meyering.net>
56241
56242         Sync from coreutils.
56243         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
56244         in the inet and nsl libraries.  Required on Solaris 5.7.
56245
56246 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
56247
56248         * lib/getdelim.c (getdelim): Remove unused variables.
56249
56250 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56251
56252         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
56253         so that the code works even with ancient cpp.  Portability problem
56254         with GCC 2.7.2.1 reported by Thomas M.Ott.
56255
56256 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56257
56258         * modules/regex (Depends-on): Add strcase.
56259
56260         * modules/gethostname (Licence): Change from GPL to LGPL, since
56261         gethostname.c is a trivial implementation of a standard library
56262         function.
56263         * modules/poll (License): Change from GPL to LGPL, since it's
56264         derived from LGPL code.
56265
56266 2005-09-27  Jim Meyering  <jim@meyering.net>
56267
56268         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
56269         HAVE_CONFIG_H.
56270
56271         * lib/intprops.h (signed_type_or_expr__): Define.
56272         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
56273         for unsigned types.
56274
56275 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56276
56277         * lib/verify.h (verify_expr): Remove, replacing with:
56278         (verify_true): New macro that returns true instead of void.
56279         (verify_type__): Remove.
56280         (verify): Use verify_true rather than verify_type__.
56281
56282 2005-09-26  Bruno Haible  <bruno@clisp.org>
56283
56284         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
56285         is necessary.
56286         (lib_SOURCES): Remove mbchar.c.
56287         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
56288         (Files): Add m4/mbrtowc.m4.
56289         * modules/mbiter: Likewise.
56290         * modules/mbuiter: Likewise.
56291
56292 2005-09-26  Bruno Haible  <bruno@clisp.org>
56293
56294         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
56295         compile mbchar.c if they are not both present.
56296         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
56297         * m4/mbiter.m4 (gl_MBITER): Likewise.
56298         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
56299         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
56300         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
56301
56302 2005-09-25  Jim Meyering  <jim@meyering.net>
56303
56304         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
56305         also uses socklen_t.
56306
56307 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
56308
56309         * lib/utimens.c (ENOSYS): Define if not already defined.
56310         (futimens): Support having a null PATH if the file descriptor
56311         is nonnegative.
56312
56313         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
56314         Remove.
56315         (__attribute): Define to empty unless GCC 3.1 or later.
56316         This works around a core dump on OpenBSD 3.4, which has GCC
56317         2.95.3, which dumps core when given __attribute__(()).  It also
56318         simplifies other tests, since we really don't want to bother with
56319         worrying about which ancient version of GCC supported what.
56320         Original problem reported by Yoann Vandoorselaere, with part of
56321         the fix suggested by Derek Price.
56322
56323 2005-09-24  Jim Meyering  <jim@meyering.net>
56324
56325         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
56326         so we can once again use a positive bitfield width of 1 -- now we
56327         don't have to explain why we were using a bitfield width of 2.
56328
56329 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
56330
56331         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
56332         and similarly for the other external symbols.  Problem reported
56333         by James Gallager.
56334
56335         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
56336         bug reported by Jim Meyering.
56337
56338         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
56339         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
56340         not needed, since socklen is a prerequisite module.
56341
56342 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
56343
56344         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
56345         Problem reported by Eric Blake.
56346         (getaddrinfo): Initialize se so that it's not garbage.
56347         Redo internal storage allocation so that it doesn't make unportable
56348         assumptions about alignment.
56349         Fix a memory leak.
56350
56351         * lib/utimens.c (futimens): Use futimesat if available.
56352         Prefer it to futimes since it doesn't have the futimes bug.
56353
56354         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
56355         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
56356         Instead, declare a function that returns a pointer to an array,
56357         and use verify_type__ to declare the size of the array.
56358         Problem and germ of a solution reported by Bruno Haible.
56359         (verify_type__): Use 2, not 1, for bitfield size, to avoid
56360         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
56361
56362 2005-09-23  Jim Meyering  <jim@meyering.net>
56363
56364         Sync from coreutils.
56365         Correct build failure (socklen_t not defined) on at least
56366         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
56367         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
56368
56369 2005-09-23  Jim Meyering  <jim@meyering.net>
56370
56371         * modules/getaddrinfo (Depends-on): Add socklen.
56372
56373 2005-09-23  Bruno Haible  <bruno@clisp.org>
56374
56375         * tests/test-verify.c: New file.
56376
56377 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56378
56379         Sync from coreutils.
56380
56381         * modules/argmatch (Depends-on): Add verify.
56382         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
56383         unistd-safer.
56384         * modules/save-cwd (Depends-on): Likewise.
56385
56386         * modules/openat (Files): Add lib/openat-die.c.
56387         (Depends-on): Remove error, exitfail.
56388         Add dirname.
56389
56390         * modules/verify: New file.
56391         * MODULES.html.sh (Diagnostics <assert.h>): New section,
56392         with "verify" module.
56393
56394 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56395
56396         Sync from coreutils.
56397
56398         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
56399         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
56400         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
56401         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
56402         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
56403         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
56404         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
56405         Don't bother checking for string.h, stdlib.h, unistd.h.
56406         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
56407         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
56408         module's job.
56409         * m4/jm-macros.m4 (gl_MACROS): Likewise.
56410         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
56411
56412         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
56413         (gl_GETDATE): Use it.
56414
56415         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
56416
56417 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56418
56419         Sync from coreutils.
56420
56421         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
56422         stat-time.h.
56423         * lib/argmatch.h: Include verify.h
56424         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
56425         (ARGMATCH_ASSERT): Remove; unused.
56426         * lib/canonicalize.c: Assume STDC_HEADERS.
56427         * lib/exclude.c: Include "strcase.h".
56428         * lib/regex_internal.h [!defined _LIBC]: Likewise.
56429         * lib/getusershell.c: Include stdio--.h rather than stdio.h
56430         and stdio-safer.h.
56431         (getusershell): Call fopen, not fopen_safer.
56432         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
56433         Do not include unistd-safer.h.
56434         (save_cwd): Don't call fd_safer; no longer needed
56435         now that we include fcntl--.h.
56436
56437         * lib/getdate.y (relative_time): New type.
56438         (RELATIVE_TIME_0): New constant.
56439         (parser_control): Use relative_time instead of doing it ourselves.
56440         (%union): Add new relative_time rel member.
56441         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
56442         Now typeless.
56443         (relunit, relunit_snumber): Now of type rel.
56444         (zone, rel, relunit, get_date): Adjust to above changes.
56445
56446         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
56447         Do not include unistd-safer.h.
56448         (getloadavg): Don't call fd_safer; no longer needed
56449         now that we include fcntl--.h.
56450
56451         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
56452         (make_dir_parents): Treat ENOSYS like EEXIST.
56453
56454         Improve quality of diagnostics on restore_cwd failure.
56455         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
56456         (make_dir_parents): Last arg is now int * (for errno), not bool *.
56457         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
56458         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
56459         each time through the loop.  Do not diagnose restore_cwd failure;
56460         that is the caller's job (and perhaps the caller does not care).
56461
56462         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
56463         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
56464         If the file already exists but is not a directory, don't bother
56465         to try to make its parents.
56466         Close potential file descriptor leak if we can't chdir("/") (!).
56467         Don't always return true if chdir($PWD) fails; return true only
56468         if the requested action was done successfully (except for the
56469         chdir($PWD)).
56470         Don't log final directory unless we actually made it.
56471         Refactor to avoid duplicate code to fix up permissions.
56472         Don't attempt to fix up parent permissions if chdir($PWD) fails.
56473
56474         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
56475         to make it a bit faster and (I hope) clearer.
56476         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
56477         Fix bug in formats like %2N.
56478
56479         * lib/verify.h: New file.
56480
56481 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56482
56483         Sync from coreutils.
56484         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
56485
56486 2005-09-22  Jim Meyering  <jim@meyering.net>
56487
56488         Sync from coreutils.
56489
56490         * m4/lstat.m4 (gl_FUNC_LSTAT):
56491         Use AC_LIBSOURCES to require lstat.c and lstat.h.
56492         Remove obsolete comment.
56493         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
56494         * m4/xstrtod.m4: Likewise.
56495
56496         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
56497
56498 2005-09-22  Jim Meyering  <jim@meyering.net>
56499
56500         Sync from coreutils.
56501
56502         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
56503
56504         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
56505         the .tm_year member, since otherwise gcc-4.0 would now warn about
56506         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
56507
56508         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
56509         order to avoid an unsuppressible warning from gcc on 64-bit systems.
56510
56511         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
56512         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
56513         when run in a time zone for which daylight savings time is in effect
56514         for the starting date.
56515
56516         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
56517         stop us from restricting permissions of just-created absolute-named
56518         directories.
56519         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
56520         to restore initial working directory.
56521         * lib/mkdir-p.c (make_dir_parents): New parameter:
56522         different_working_dir, to tell caller if/when we change the working
56523         directory and are unable to return to the initial one.
56524         * lib/mkdir-p.h (make_dir_parents): Update prototype.
56525         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
56526         `return false'.  This fixes a bug introduced on 2004-07-30.
56527
56528         * lib/openat.c (fdopendir): Be sure to close the supplied
56529         file descriptor before returning.  This makes our replacement
56530         implementation a little closer to Solaris's, where fdopendir
56531         ties the file descriptor to the returned DIR* pointer.
56532         * lib/openat.c (unlinkat): New function.
56533         * lib/openat.h (unlinkat): Add prototype.
56534         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
56535         (openat_restore_fail): Rename from openat_restore_die.
56536         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
56537
56538         Provide an alternative to exiting immediately upon save_cwd or
56539         restore_cwd failure.  Now, an application can arrange e.g.,
56540         to perform a longjump in that case.
56541         * lib/openat.c: Include dirname.h.
56542         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
56543         (rpl_openat, fdopendir, fstatat): Call openat_save_die
56544         and openat_restore_die rather than calling error directly.
56545         Don't include "error.h" or "exitfail.h"; they're no longer needed.
56546
56547         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
56548         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
56549         define.
56550
56551         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
56552         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
56553                             int utc, int nanoseconds);
56554         Background:
56555         date should not have to allocate a megabyte of virtual memory to
56556         handle a format argument like +%1048575T.  When implemented with
56557         strftime, it must allocate such a buffer, use strftime to fill it
56558         in, print it, then free it.
56559         With fprintftime, it simply prints everything and exits.
56560         With no need for memory allocation, that's one fewer way to fail.
56561         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
56562         optional field width, not before, so we accept %9:z, not %:9z.
56563         (my_strftime): Be sure to use L_('x') for literals.
56564
56565         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
56566         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
56567         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
56568         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
56569         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
56570         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
56571         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
56572         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
56573         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
56574         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
56575         * lib/xgethostname.c, lib/xreadlink.c:
56576         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
56577
56578         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
56579         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
56580         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
56581         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56582         and don't include <sys/file.h>).
56583
56584 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
56585
56586         Sync from coreutils.
56587
56588         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
56589         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
56590         [!LDAV_DONE]: Avoid unused variable warning.
56591
56592 2005-09-21  Bruno Haible  <bruno@clisp.org>
56593
56594         * lib/unicodeio.h (unicode_to_mb): New declaration.
56595
56596 2005-09-20  Derek Price  <derek@ximbiot.com>
56597
56598         * lib/getaddrinfo.c: Don't include <netdb.h> included from
56599         getaddrinfo.h.
56600
56601 2005-09-20  Bruno Haible  <bruno@clisp.org>
56602
56603         * gnulib-tool: Remove trailing slashes from the values specified for
56604         --source-base, --m4-base, --tests-base, --aux-dir.
56605         Suggested by Simon Josefsson <jas@extundo.com>.
56606
56607 2005-09-20  Bruno Haible  <bruno@clisp.org>
56608
56609         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
56610         func_modules_to_filelist, func_import, func_create_testdir): Make all
56611         sorting results locale-independent, so that gnulib-cache.m4 doesn't
56612         change when gnulib-tool is invoked in a different locale.
56613
56614 2005-09-19  Simon Josefsson  <jas@extundo.com>
56615
56616         * m4/socklen.m4: Fix typo.
56617
56618 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56619
56620         Use a consistent style for including <config.h>.
56621         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
56622         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
56623         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
56624         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
56625         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
56626         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
56627         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
56628         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
56629         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
56630         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
56631         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
56632         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
56633         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
56634         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
56635         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
56636         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
56637         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
56638         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
56639         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
56640         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
56641         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
56642         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
56643         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
56644         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
56645         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
56646         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
56647         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
56648         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
56649         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
56650         lib/xstrtoumax.c, lib/yesno.c:
56651         Standardize inclusion of config.h.
56652         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
56653         lib/inttostr.h:  Removed inclusion of config.h from header files.
56654         * lib/inttostr.c:  Adjusted in-tree users.
56655         * lib/timespec.h: Remove superfluous warning to include config.h.
56656         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
56657         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
56658         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
56659         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
56660         config.h with HAVE_CONFIG_H.
56661
56662 2005-09-19  Jim Meyering  <jim@meyering.net>
56663
56664         * modules/pathmax (License): Change to LGPL.
56665
56666 2005-09-19  Derek Price  <derek@ximbiot.com>
56667
56668         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
56669
56670 2005-09-19  Bruno Haible  <bruno@clisp.org>
56671
56672         * gnulib-tool (import): Provide default for --tests-base.
56673
56674 2005-09-19  Bruno Haible  <bruno@clisp.org>
56675
56676         * doc/quote.texi: New file, extracted from gnulib.texi.
56677         * doc/ctime.texi: New file, extracted from gnulib.texi.
56678         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
56679         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
56680         * doc/gnulib.texi: Include them.
56681
56682 2005-09-18  Bruno Haible  <bruno@clisp.org>
56683
56684         Portability fix.
56685         * gnulib-tool (func_readlink): New function.
56686         (func_ln_if_changed): Use it.
56687
56688 2005-09-18  Bruno Haible  <bruno@clisp.org>
56689
56690         * gnulib-tool: Support --with-tests also with --import.
56691         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
56692         (func_import): Use variables $testsbase and $inctests. Emit a
56693         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
56694         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
56695         SUBDIRS += $testsdir.
56696         (func_create_testdir): Update.
56697
56698 2005-09-18  Bruno Haible  <bruno@clisp.org>
56699
56700         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
56701         instead of $dry_run.
56702         (func_cp_if_changed, func_mv_if_changed): Remove functions.
56703         (func_ln_if_changed): Don't handle dry-run here.
56704         (func_import): In dry-run mode, detect more precisely which actions
56705         would be performed, and don't use "...ing" verbs.
56706
56707 2005-09-18  Bruno Haible  <bruno@clisp.org>
56708
56709         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
56710         (func_import): Use join on two temporary files instead of three nested
56711         loops, in order to determine which files are new or old.
56712
56713 2005-09-18  Bruno Haible  <bruno@clisp.org>
56714
56715         * gnulib-tool (func_import): Comment out code that spits out the
56716         new files with --dry-run.
56717
56718 2005-09-18  Bruno Haible  <bruno@clisp.org>
56719
56720         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
56721
56722 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56723
56724         * lib/stat-time.h: New file.
56725         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
56726         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
56727         in a different way.
56728         (timespec_cmp): New function.
56729         * lib/utimecmp.c: Include stat-time.h.
56730         (SYSCALL_RESOLUTION): Depend on whether various struct stat
56731         members exist, not on the obsolescent ST_MTIM_NSEC.
56732         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
56733
56734 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56735
56736         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
56737
56738 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56739
56740         * MODULES.html.sh (File system functions): Add stat-time.
56741         * modules/stat-time: New file.
56742         * modules/timespec (Files): Remove m4/st_mtim.m4; this
56743         is now done in a different way, by the stat-time module.
56744         * modules/utimecmp (Depends-on): Add stat-time.
56745
56746 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56747
56748         * m4/st_mtim.m4: Remove.  Superseded by...
56749         * m4/stat-time.m4: New file.
56750         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
56751         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
56752
56753 2005-09-15  Derek Price  <derek@ximbiot.com>
56754
56755         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
56756
56757 2005-09-15  Derek Price  <derek@ximbiot.com>
56758
56759         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
56760         * lib/regex_internal.c: Ditto, using this...
56761         (__GNUC_PREREQ): ...new macro.
56762         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
56763         using...
56764         (__GNUC_PREREQ): ...this new macro.
56765
56766         * lib/strstr.h: Include string.h. Define strstr as a macro here.
56767
56768 2005-09-15  Derek Price  <derek@ximbiot.com>
56769             Paul Eggert  <eggert@cs.ucla.edu>
56770
56771         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
56772         changes, consolidating in...
56773         * lib/regex_internal.h: ...this file.
56774
56775 2005-09-13  Jim Meyering  <jim@meyering.net>
56776
56777         * lib/canon-host.c: Filter through gnu indent and reword comments
56778         slightly.
56779         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
56780
56781 2005-09-13  Derek Price  <derek@ximbiot.com>
56782
56783         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
56784         failure.
56785         Reported by Jim Meyering  <jim@meyering.net>.
56786
56787 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56788
56789         * lib/base64.c: Typo.
56790         (base64_encode): Put b64str in initialized data section.
56791
56792 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
56793
56794         Merge glibc and coreutils changes into gnulib, plus a few
56795         extra fixes.
56796         * lib/md5.c: Use #error rather than a string.
56797         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
56798         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
56799         (__attribute__): Define to empty for non recent-GCC.
56800         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
56801         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
56802         Renamed from their non-__ counterparts, with new macros replacing
56803         them if not _LIBC.  Add __THROW attribute.
56804         (rol): Remove.
56805         (struct md5_ctx): Align buffer if using GCC.
56806         * lib/sha1.h (struct sha1_ctx): Likewise.
56807         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
56808         The old name was backwards.
56809         (NOTSWAP): Remove; not used.
56810         (rol): New macro, moved here from md5.h.
56811         (sha1_process_block): Remove a FIXME that doesn't make sense.
56812
56813 2005-09-12  Derek Price  <derek@ximbiot.com>
56814
56815         Return usable errors from canon-host.
56816         * lib/canon-host.h: New file.
56817         * lib/canon-host.c (canon_host): Wrap...
56818         (canon_host_r): ...this new function, which now relies exclusively on
56819         getaddrinfo.
56820         (ch_strerror): New function.
56821         (last_cherror): New global.
56822         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
56823         interface.
56824         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
56825         void *.
56826         (freeaddrinfo): Free ai->ai_canonname when set.
56827
56828 2005-09-12  Derek Price  <derek@ximbiot.com>
56829
56830         Make canon-host require getaddrinfo.
56831         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
56832         AC_LIBSOURCE canon-host.h.  Call...
56833         (gl_PREREQ_CANON_HOST): ...this new function, which requires
56834         gl_GETADDRINFO.
56835         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
56836
56837 2005-09-12  Derek Price  <derek@ximbiot.com>
56838
56839         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
56840         LGPL.
56841         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
56842
56843 2005-09-12  Derek Price  <derek@ximbiot.com>
56844
56845         * lib/gai_strerror.c: Include config.h when available.  Include
56846         getaddrinfo.h before other headers to test interface.
56847         Reported by Larry Jones <lawrence.jones@ugs.com>.
56848
56849 2005-09-12  Derek Price  <derek@ximbiot.com>
56850             Paul Eggert  <eggert@cs.ucla.edu>
56851
56852         * modules/glob (Files): Add glob-libc.h.
56853
56854 2005-09-12  Derek Price  <derek@ximbiot.com>
56855             Paul Eggert  <eggert@cs.ucla.edu>
56856
56857         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
56858         glob_.h, glob-libc.h.
56859         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
56860
56861 2005-09-12  Derek Price  <derek@ximbiot.com>
56862             Paul Eggert  <eggert@cs.ucla.edu>
56863
56864         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
56865         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
56866         protecting things that should be done only in gnulib contexts.
56867         * lib/glob_.h: New file, containing only the glob things needed for
56868         gnulib.
56869         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
56870         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
56871         (glob, globfree, glob_pattern_p): Now defined simply in terms of
56872         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
56873         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
56874         and to respect the namespace rules better.
56875
56876 2005-09-08  Simon Josefsson  <jas@extundo.com>
56877
56878         * modules/socklen: New file.
56879
56880 2005-09-08  Simon Josefsson  <jas@extundo.com>
56881
56882         * m4/socklen.m4: New file.
56883
56884 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56885
56886         * modules/utimens (Files): Add m4/utimbuf.m4, since
56887         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
56888         Reported by Sergey Poznyakoff.
56889
56890 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56891
56892         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
56893         definitions, since that's the preferred style in glibc.
56894         Fix a minor spacing issue, and update copyright notice to match
56895         glibc's.
56896
56897 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56898
56899         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
56900
56901 2005-09-06  Simon Josefsson  <jas@extundo.com>
56902
56903         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
56904         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
56905
56906 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56907
56908         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
56909         warning.
56910
56911 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56912
56913         * config/srclist.txt: Add glibc bug 1302.
56914
56915 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
56916
56917         Change bitset word type from unsigned int to unsigned long int,
56918         as this has better performance on typical 64-bit hosts.
56919         Port bitset code to hosts with unusual word sizes.
56920         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
56921         (build_collating_symbol):
56922         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
56923         argument is a bitset.  This is merely a style issue, but it makes
56924         it clearer that an entire array is expected.
56925         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
56926         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
56927         Port to the case where bitset_word is not the same as unsigned int.
56928         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56929         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
56930         Likewise.
56931         * lib/regexec.c (check_dst_limits_calc_pos_1,
56932         check_subexp_matching_top):
56933         (build_trtable, group_nodes_into_DFAstates):
56934         Likewise.
56935         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
56936         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
56937         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
56938         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
56939         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
56940         * lib/regcomp.c (optimize_subexps, lower_subexp):
56941         Work even if bitset_word has holes in its bitwise representation.
56942         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
56943         * lib/regexec.c (check_dst_limits_calc_pos_1,
56944         check_subexp_matching_top):
56945         Likewise.
56946         * lib/regex_internal.c (re_string_reconstruct):
56947         Don't assume UCHAR_MAX == 255.
56948         * lib/regex_internal.h (bitset_set_all): Likewise.
56949         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
56950         All uses changed.
56951         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
56952         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
56953         All uses changed.
56954         (BITSET_WORD_MAX): New macro.
56955         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
56956         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
56957         (bitset_empty, bitset_copy):
56958         Prefer sizeof (bitset) to multiplying it out ourselves.
56959         (bitset_not_merge): Remove; unused.
56960         (bitset_contain): Return bool, not unsigned int with one bit on.
56961         All callers changed.
56962         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
56963         alignment than re_node_set; do this by defining a new internal
56964         type struct dests_alloc and using it to allocate memory.
56965
56966 2005-09-05  Bruno Haible  <bruno@clisp.org>
56967
56968         * gnulib-tool (func_import): Fix comparison in handling of symbolic
56969         links.
56970
56971 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
56972
56973         * modules/size_max (Makefile.am): Add size_max.h
56974
56975 2005-09-04  Derek Price  <derek@ximbiot.com>
56976
56977         * gnulib-tool (func_import): Fix reversed $symbolic logic.
56978
56979 2005-09-03  Simon Josefsson  <jas@extundo.com>
56980
56981         * gnulib-tool: Fix typo.
56982
56983 2005-09-03  Simon Josefsson  <jas@extundo.com>
56984
56985         * config/srclist.txt: Add glibc bug 1293.
56986
56987 2005-09-03  Derek Price  <derek@ximbiot.com>
56988
56989         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
56990         From Larry Jones <lawrence.jones@ugs.com>.
56991
56992 2005-09-02  Simon Josefsson  <jas@extundo.com>
56993
56994         * modules/socklen: New file.
56995
56996 2005-09-02  Simon Josefsson  <jas@extundo.com>
56997
56998         * modules/havelib: New module.
56999
57000         * modules/gettext, modules/iconv, modules/lock, modules/readline:
57001         Use havelib.
57002
57003 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57004
57005         Check for arithmetic overflow when calculating sizes, to prevent
57006         some buffer-overflow issues.  These patches are conservative, in the
57007         sense that when I couldn't determine whether an overflow was possible,
57008         I inserted a run-time check.
57009         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
57010         macros.
57011         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
57012         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
57013         (re_xnrealloc, re_x2nrealloc): New inline functions.
57014         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
57015         parse_bracket_exp):
57016         (build_equiv_class, build_charclass): Check for arithmetic overflow
57017         in size expression calculations.
57018         * lib/regex_internal.c (re_string_realloc_buffers):
57019         (build_wcs_upper_buffer, re_node_set_add_intersect):
57020         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
57021         (re_dfa_add_node, register_state): Likewise.
57022         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
57023         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
57024         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
57025         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
57026
57027 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57028
57029         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
57030         m4/ulonglong.m4.  Problem reported by Martin Lambers.
57031
57032 2005-09-02  Bruno Haible  <bruno@clisp.org>
57033
57034         Support for lib vs. lib64 distinction on biarch platforms.
57035         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
57036         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
57037         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
57038
57039 2005-09-02  Bruno Haible  <bruno@clisp.org>
57040
57041         * gnulib-tool (import): In the other first-use case, provide defaults
57042         as well.
57043
57044 2005-09-02  Bruno Haible  <bruno@clisp.org>
57045
57046         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
57047         patches not yet found in the latest gettext release.
57048
57049 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57050
57051         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
57052         to avoid a collision with bits/local_lim.h in glibc.
57053         All uses changed.  Problem reported by Dmitry V. Levin in
57054         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
57055
57056         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
57057         bugs in int versus size_t comparisons.
57058         (re_string_context_at): Fix bug where the code assumed that
57059         Idx is signed.
57060
57061         Use bool where appropriate.
57062         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
57063         All callers changed.
57064         (calc_eclosure_iter): Likewise, for ROOT arg.
57065         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
57066         (build_charclass_op): Likewise, for NON_MATCH arg.
57067         * lib/regex_internal.c (re_string_allocate, re_string_construct):
57068         (re_string_construct_common): Likewise, for ICASE arg.
57069         * lib/regexec.c (re_search_2_stub, re_search_stub):
57070         Likewise, for RET_LEN arg.
57071         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
57072         (set_regs): Likewise, for FL_BACKTRACK arg.
57073         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
57074         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
57075         (calc_eclosure_iter, parse_bracket_exp):
57076         Use bool for internal variables that are booleans.
57077         * lib/regexec.c (re_search_internal, check_matching,
57078         proceed_next_node):
57079         (set_regs, build_sifted_states, sift_states_bkref):
57080         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
57081         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57082         (find_collation_sequence_value):
57083         Likewise.
57084         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
57085         (re_node_set_compare):
57086         Return bool, not int. All callers changed.
57087         * lib/regexec.c (check_halt_node_context, check_dst_limits):
57088         (build_trtable, check_node_accept): Likewise.
57089         * lib/regex_internal.h: Include stdbool.h.
57090
57091         Fix bugs uncovered when converting to bool.
57092         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
57093         failure instead of charging ahead blindly.
57094         * lib/regex_internal.c (register_state): Likewise.
57095         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
57096         for freeing internal storage.
57097         (group_nodes_into_DFA_states): Use unsigned int, not int, for
57098         bitset pieces used as boolean, to avoid undefined behavior
57099         on hosts that do int overflow checking.
57100
57101 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57102
57103         * config/srclist.txt: Add glibc bugs 1285-1287.
57104
57105 2005-09-01  Jim Meyering  <jim@meyering.net>
57106
57107         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
57108         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
57109         Require gl_STAT_MACROS, too.
57110
57111 2005-09-01  Bruno Haible  <bruno@clisp.org>
57112
57113         * gnulib-tool (import): In the first-use case, provide defaults.
57114
57115 2005-09-01  Bruno Haible  <bruno@clisp.org>
57116
57117         * gnulib-tool (func_import): Remove the .tmp files.
57118
57119 2005-09-01  Bruno Haible  <bruno@clisp.org>
57120
57121         * gnulib-tool (func_import): Fix handling of symbolic links.
57122
57123 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57124
57125         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
57126         old glibc regex code mishandles strings longer than 2**31 bytes.
57127         This patch fixes this when the regex code is used in gnulib
57128         (i.e., outside glibc).
57129
57130         This patch should not affect the use of the regex code inside
57131         glibc.  No doubt this problem also needs to be handled for glibc
57132         as well, but the result will be an incompatible change to the
57133         glibc ABI, and the old ABI will have to be supported too.  That
57134         can be the the subject for another patch.
57135
57136         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
57137         governing whether the rest of this patch is active.  By default,
57138         the macro is disabled and the patch has no effect.
57139         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
57140         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
57141         (struct re_pattern_buffer, re_search, re_search_2, re_match):
57142         (re_match_2, re_set_registers): Use the new types.
57143         * lib/regex_internal.h (Idx, re_hashval_t): New types.
57144         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
57145         New macros.
57146         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
57147         (re_string_context_at, bin_tree_t, re_dfastate_t):
57148         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
57149         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
57150         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
57151         (re_string_char_size_at, re_string_wchar_at):
57152         (re_string_elem_size_at):
57153         Use the new types and macros to port to 64-bit hosts.
57154         Use unsigned types for internal values, so that the code
57155         mostly works even for arrays larger than SSIZE_MAX.
57156         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
57157         (search_duplicated_node, calc_eclosure_iter, fetch_number):
57158         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
57159         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
57160         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
57161         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
57162         (calc_inveclosure, parse_dup_op, build_range_exp):
57163         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
57164         (fetch_number, create_token_tree, mark_opt_subexp):
57165         Likewise.
57166         * lib/regex_internal.c (re_string_construct_common,
57167         create_ci_newstate):
57168         (create_cd_newstate, re_string_allocate, re_string_construct):
57169         (re_string_realloc_buffers, build_wcs_upper_buffer):
57170         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
57171         (re_string_reconstruct, re_string_peek_byte_case):
57172         (re_string_fetch_byte_case, re_string_context_at):
57173         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
57174         (re_node_set_init_copy, re_node_set_add_intersect):
57175         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57176         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57177         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
57178         (re_acquire_state, re_acquire_state_context, register_state):
57179         Likewise.
57180         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
57181         search_cur_bkref_entry):
57182         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
57183         (re_search_internal, re_search_2_stub, re_search_stub)
57184         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
57185         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
57186         (update_cur_sifted_state, check_dst_limits):
57187         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
57188         (check_subexp_limits, sift_states_bkref, merge_state_array):
57189         (check_subexp_matching_top, get_subexp, get_subexp_sub):
57190         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
57191         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57192         (expand_bkref_cache, check_node_accept_bytes):
57193         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
57194         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
57195         (acquire_init_state_context, check_halt_node_context):
57196         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
57197         (sift_states_backward, clean_state_log_if_needed):
57198         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
57199         (find_recover_state, transit_state_sb, transit_state_mb):
57200         (transit_state_bkref, build_trtable, match_ctx_clean):
57201         Likewise.
57202         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
57203         to work around an assumption that REG_MISSING is negative.
57204
57205         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
57206         (seek_collating_symbol_entry) [defined _LIBC]:
57207         (lookup_collation_sequence_value) [defined _LIBC]:
57208         (build_range_exp, build_collating_symbol) [defined _LIBC]:
57209         Use prototypes rather than old-style function definitions.
57210         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
57211         (transit_state_sb) [0]:
57212         (find_collation_sequence_value) [defined _LIBC]: Likewise.
57213
57214         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
57215         rm_eo.
57216
57217         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
57218         (optimize_subexps, lower_subexp):
57219         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
57220         since the signed shift might overflow.  Use 1u<<31 instead.
57221         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
57222         Likewise.
57223         * lib/regexec.c (check_dst_limits_calc_pos_1,
57224         check_subexp_matching_top): Likewise.
57225
57226         * lib/regcomp.c (optimize_subexps, lower_subexp):
57227         Use CHAR_BIT rather than 8, for clarity.
57228         * lib/regexec.c (check_dst_limits_calc_pos_1):
57229         (check_subexp_matching_top): Likewise.
57230         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
57231         have to worry about portability issues when shifting it left.
57232         Remove no-longer-needed test for table_size > 0.
57233         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
57234         in a word, as the resulting behavior is undefined.
57235         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
57236         in one case, a <= should have been an <, and in another case the
57237         whole test was missing.
57238         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
57239         the standard name CHAR_BIT.
57240         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
57241         this is not true on one's complement and signed-magnitude hosts.
57242
57243         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
57244         next_last_offset.
57245         (struct re_dfa_t): Remove unused member states_alloc.
57246         * lib/regcomp.c (init_dfa): Don't initialize unused members.
57247
57248 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57249
57250         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
57251         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
57252         and large-file glibc and in 32-bit large-file Solaris.
57253
57254 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57255
57256         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
57257         lengths fit in regoff_t; this isn't true if regoff_t is the same
57258         width as size_t.
57259         * lib/regex.c (re_search_internal): 5th arg is LAST_START
57260         (= START + RANGE) instead of RANGE.  This avoids overflow
57261         problems when regoff_t is the same width as size_t.
57262         All callers changed.
57263         (re_search_2_stub): Check for overflow when adding the
57264         sizes of the two strings.
57265         (re_search_stub): Check for overflow when adding START
57266         to RANGE; if it occurs, substitute the extreme value.
57267
57268 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57269
57270         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
57271
57272 2005-08-31  Jim Meyering  <jim@meyering.net>
57273
57274         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
57275         a pointer-to-const.
57276         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
57277         (register_state): Likewise.
57278         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
57279         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
57280         (group_nodes_into_DFAstates): Likewise.
57281
57282 2005-08-31  Jim Meyering  <jim@meyering.net>
57283
57284         * check-module: Add a FIXME comment.
57285
57286 2005-08-31  Eric Blake  <ebb9@byu.net>
57287
57288         * modules/unistd-safer (Files): Add unistd--.h.
57289         * modules/stdio-safer (Files): Add stdio--.h.
57290
57291 2005-08-31  Derek Price  <derek@ximbiot.com>
57292
57293         * lib/getdelim.c (getdelim): Return EOF on EOF.
57294         Reported by Larry Jones <lawrence.jones@ugs.com>.
57295
57296 2005-08-31  Bruno Haible  <bruno@clisp.org>
57297
57298         Avoid unnecessary diffs in the generated lib/Makefile.am.
57299         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
57300         the generated files.
57301         (func_import): Don't set cmd.
57302
57303 2005-08-31  Bruno Haible  <bruno@clisp.org>
57304
57305         * lib/strstr.c: Include <stddef.h>, for NULL.
57306         * lib/strcasestr.c: Likewise.
57307         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57308
57309 2005-08-31  Bruno Haible  <bruno@clisp.org>
57310
57311         * gnulib-tool: New option --macro-prefix.
57312         (func_import): Use macro_prefix.
57313         (import): Handle option --macro-prefix.
57314
57315 2005-08-31  Bruno Haible  <bruno@clisp.org>
57316
57317         * gnulib-tool (import): Rename most ac_* variables to cached_*.
57318         Also use new variables cached_lgpl, cached_libtool.
57319
57320 2005-08-31  Bruno Haible  <bruno@clisp.org>
57321
57322         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
57323         always instantiating them.
57324
57325 2005-08-31  Bruno Haible  <bruno@clisp.org>
57326
57327         * gnulib-tool (func_import): Read the previous cached settings
57328         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
57329         earlier added by gnulib but are now dropped. Warn when a gnulib file
57330         overwrites a non-gnulib file.
57331
57332 2005-08-31  Bruno Haible  <bruno@clisp.org>
57333
57334         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
57335         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
57336         projects that don't keep autogenerated files in CVS. Put into
57337         actioncmd only the specified modules, not the transitive closure.
57338
57339 2005-08-31  Bruno Haible  <bruno@clisp.org>
57340
57341         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
57342         Create directories that shall be filled.
57343         (import): Don't look for gl_* macros in configure.ac. Recurse across
57344         all directories containing a gnulib-cache.m4 files, if meaningful.
57345
57346 2005-08-31  Bruno Haible  <bruno@clisp.org>
57347
57348         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
57349         (import): Set seen_libtool when we see gl_LIBTOOL.
57350
57351 2005-08-31  Bruno Haible  <bruno@clisp.org>
57352
57353         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
57354         declaration macro definitions from generated gnulib.m4.
57355
57356 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
57357
57358         * lib/iconvme.h: Add prototype for iconv_alloc.
57359
57360 2005-08-29  Simon Josefsson  <jas@extundo.com>
57361
57362         * lib/iconvme.c: Fix errno.
57363
57364 2005-08-29  Bruno Haible  <bruno@clisp.org>
57365
57366         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
57367         that it works when the directory contains spaces.
57368
57369 2005-08-29  Bruno Haible  <bruno@clisp.org>
57370
57371         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
57372
57373 2005-08-29  Bruno Haible  <bruno@clisp.org>
57374
57375         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
57376         Emit more advice.
57377
57378 2005-08-29  Bruno Haible  <bruno@clisp.org>
57379         and Stepan Kasal  <kasal@ucw.cz>
57380
57381         * check-module: If more parameters are given, check each of them
57382         separately; add more exceptions, as noted by Jim Meyering.
57383         (check_module): New procedure.
57384         (%exempt_header): Now contains all exceptions.
57385
57386 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
57387
57388         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
57389
57390 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
57391
57392         * lib/iconvme.c: Split iconv_string into iconv_alloc.
57393
57394 2005-08-28  Bruno Haible  <bruno@clisp.org>
57395
57396         * m4/gnulib-tool.m4: New file.
57397
57398 2005-08-27  Jim Meyering  <jim@meyering.net>
57399
57400         * modules/unistd-safer (Files): Add pipe-safer.c.
57401         * modules/fcntl-safer (Files): Add creat-safer.c.
57402
57403 2005-08-27  Jim Meyering  <jim@meyering.net>
57404
57405         * m4/stdlib-safer.m4: New file.  From coreutils.
57406         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
57407         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
57408         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
57409         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
57410         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
57411
57412 2005-08-27  Jim Meyering  <jim@meyering.net>
57413
57414         * lib/fopen-safer.c: Merge minor changes from coreutils.
57415         * lib/dup-safer.c: Likewise.
57416         * lib/fd-safer.c: Likewise.
57417
57418         Merge from coreutils.
57419         * lib/stdio--.h: New file.
57420         * lib/stdlib--.h: New file.
57421         * lib/mkstemp-safer.c: New file.
57422
57423         GNU tar needs these.
57424         * lib/pipe-safer.c: New file.
57425         * lib/creat-safer.c: New file.
57426         * lib/fcntl--.h (creat): Define to creat_safer.
57427         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
57428         * lib/unistd--.h (pipe): Define to pipe_safer.
57429         * lib/unistd-safer.h: Declare pipe_safer.
57430
57431 2005-08-26  Simon Josefsson  <jas@extundo.com>
57432
57433         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
57434         Haible <bruno@clisp.org>.
57435
57436 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
57437
57438         * lib/regex_internal.h: Remove all references to
57439         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
57440         or better.
57441         (bitset_not, bitset_merge, bitset_not_merge):
57442         (bitset_mask, re_string_allocate, re_string_construct):
57443         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
57444         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
57445         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
57446         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
57447         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57448         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57449         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
57450         (re_acquire_state_context):
57451         Remove unnecessary forward decls.
57452         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
57453         Put __attribute at function definition,
57454         now that the function decl has been removed.
57455         * lib/regex_internal.c (re_string_peek_byte_case):
57456         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
57457         Likewise.
57458
57459 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
57460
57461         * m4/regex.m4: Add AC_PREREQ(2.50).
57462         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
57463
57464 2005-08-25  Simon Josefsson  <jas@extundo.com>
57465
57466         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
57467         __fsetlocking.
57468
57469 2005-08-25  Simon Josefsson  <jas@extundo.com>
57470
57471         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
57472         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
57473         GLIBC specific code.
57474
57475 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57476
57477         Make regex safe for g++.  This fixes one real bug (an "err"
57478         that should have been "*err").  g++ problem reported by
57479         Sam Steingold.
57480         * lib/regex_internal.h (re_calloc): New macro, consistent with
57481         re_malloc etc.  All callers of calloc changed to use re_calloc.
57482         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
57483         not int.  All callers changed.
57484         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
57485         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
57486         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
57487         (find_recover_state): Change "err" to "*err"; this fixes what
57488         appears to be a real bug.
57489         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
57490         versus int.
57491
57492 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57493
57494         * modules/regex (Depends-on): Add malloc, since the code
57495         assumes that !malloc(0) means failure.
57496
57497 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57498
57499         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
57500
57501         alloca modernization/simplification for regex.
57502         * lib/regex.c: Remove portability cruft for alloca.  This no longer
57503         needs to be at the start of the file, and can be moved into
57504         regex_internal.h and simplified.
57505         * lib/regex_internal.h: Include <alloca.h>.
57506         (__libc_use_alloca) [!defined _LIBC]: New macro.
57507         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
57508         now works outside glibc.
57509
57510 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57511
57512         * config/srclist.txt: Add glibc bugs 1241, 1245.
57513
57514 2005-08-25  Jim Meyering  <jim@meyering.net>
57515
57516         * lib/open-safer.c: Include <config.h>.
57517         Otherwise, we'd lose LARGEFILE support in any file using
57518         e.g. "fcntl--.h"
57519
57520 2005-08-25  Bruno Haible  <bruno@clisp.org>
57521
57522         * m4/minmax.m4: Require autoconf 2.52.
57523         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
57524         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
57525         alternatives of translit over the alphabet.
57526         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
57527
57528 2005-08-24  Simon Josefsson  <jas@extundo.com>
57529
57530         * tests/test-getpass.c: New file.
57531
57532 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57533
57534         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
57535         for GNU regex features.
57536
57537 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57538
57539         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
57540         * lib/regex.h (regerror): Likewise.
57541
57542         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
57543         requires this.  (The code never needed it.)
57544
57545         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
57546         All uses of recently-renamed identifiers changed to use the new,
57547         POSIX-compliant names.  The code will build and run just fine
57548         without these changes, but it's better to eat our own dog food
57549         and use the standard-conforming names.
57550
57551         * lib/regex.h: Fix a multitude of POSIX name space violations.
57552         These changes have an effect only for programs that define
57553         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
57554         do not change anything for programs compiled in the normal way.
57555         Also, there is no effect on the ABI.
57556
57557         (_REGEX_SOURCE): New macro.
57558         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
57559         defined and _GNU_SOURCE is not; this fixes a name space violation.
57560
57561         Rename the following macros to obey POSIX requirements.
57562         The old names are still visible as macros if _REGEX_SOURCE is defined.
57563         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
57564         RE_BACKSLASH_ESCAPE_IN_LISTS.
57565         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
57566         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
57567         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
57568         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
57569         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
57570         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
57571         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
57572         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
57573         (REG_INTERVALS): renamed from RE_INTERVALS.
57574         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
57575         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
57576         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
57577         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
57578         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
57579         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
57580         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
57581         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
57582         RE_UNMATCHED_RIGHT_PAREN_ORD.
57583         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
57584         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
57585         (REG_DEBUG): renamed from RE_DEBUG.
57586         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
57587         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
57588         unusual, since we can't clash with the POSIX REG_ICASE.
57589         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
57590         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
57591         (REG_NO_SUB): renamed from RE_NO_SUB.
57592         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
57593         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
57594         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
57595         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
57596         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
57597         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
57598         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
57599         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
57600         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
57601         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
57602         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
57603         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
57604         RE_SYNTAX_POSIX_MINIMAL_BASIC.
57605         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
57606         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
57607         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
57608         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
57609         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
57610         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
57611         (REG_FIXED): Renamed from REGS_FIXED.
57612         (REG_NREGS): Renamed from RE_NREGS.
57613
57614         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
57615         of other REG_* macros, since POSIX says the user is allowed to
57616         #undef these macros selectively.
57617
57618         (reg_errcode_t): Update comment stating what other tables need
57619         to be consistent.
57620
57621         Rename the following enum values to obey POSIX requirements.
57622         The old names are still visible as macros.
57623         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
57624         is not defined, since GNU is supposed to be a superset of POSIX as
57625         much as possible, and since we want reg_errcode_t to be a signed
57626         type for implementation consistency.
57627         (_REG_NOERROR): Renamed from REG_NOERROR.
57628         (_REG_NOMATCH): Renamed from REG_NOMATCH.
57629         (_REG_BADPAT): Renamed from REG_BADPAT.
57630         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
57631         (_REG_ECTYPE): Renamed from REG_ECTYPE.
57632         (_REG_EESCAPE): Renamed from REG_EESCAPE.
57633         (_REG_ESUBREG): Renamed from REG_ESUBREG.
57634         (_REG_EBRACK): Renamed from REG_EBRACK.
57635         (_REG_EPAREN): Renamed from REG_EPAREN.
57636         (_REG_EBRACE): Renamed from REG_EBRACE.
57637         (_REG_BADBR): Renamed from REG_BADBR.
57638         (_REG_ERANGE): Renamed from REG_ERANGE.
57639         (_REG_ESPACE): Renamed from REG_ESPACE.
57640         (_REG_BADRPT): Renamed from REG_BADRPT.
57641         (_REG_EEND): Renamed from REG_EEND.
57642         (_REG_ESIZE): Renamed from REG_ESIZE.
57643         (_REG_ERPAREN): Renamed from REG_ERPAREN.
57644         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
57645         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
57646         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
57647         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
57648
57649         (_REG_RE_NAME, _REG_RM_NAME): New macros.
57650         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
57651         changed.  But support the old name if the new one is not defined
57652         and if _REGEX_SOURCE.
57653
57654         Change the following member names in struct re_pattern_buffer.
57655         The old names are still supported if !_REGEX_SOURCE.
57656         The new names are always supported, regardless of _REGEX_SOURCE.
57657         (re_buffer): Renamed from buffer.
57658         (re_allocated): Renamed from allocated.
57659         (re_used): Renamed from used.
57660         (re_syntax): Renamed from syntax.
57661         (re_fastmap): Renamed from fastmap.
57662         (re_translate): Renamed from translate.
57663         (re_can_be_null): Renamed from can_be_null.
57664         (re_regs_allocated): Renamed from regs_allocated.
57665         (re_fastmap_accurate): Renamed from fastmap_accurate.
57666         (re_no_sub): Renamed from no_sub.
57667         (re_not_bol): Renamed from not_bol.
57668         (re_not_eol): Renamed from not_eol.
57669         (re_newline_anchor): Renamed from newline_anchor.
57670
57671         Change the following member names in struct re_registers.
57672         The old names are still supported if !_REGEX_SOURCE.
57673         The new names are always supported, regardless of _REGEX_SOURCE.
57674         (rm_num_regs): Renamed from num_regs.
57675         (rm_start): Renamed from start.
57676         (rm_end): Renamed from end.
57677
57678         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
57679         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
57680         Prepend __ to parameter names.
57681
57682         Undo yesterday's changes.
57683
57684 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57685
57686         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
57687         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
57688         lib/regex.c.
57689
57690 2005-08-24  Jim Meyering  <jim@meyering.net>
57691
57692         Sync from coreutils.
57693         * m4/fcntl-safer.m4: New file.
57694
57695         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
57696         and object files for this module.
57697
57698 2005-08-24  Jim Meyering  <jim@meyering.net>
57699
57700         Sync from coreutils.
57701         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
57702
57703 2005-08-24  Jim Meyering  <jim@meyering.net>
57704
57705         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
57706         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
57707
57708 2005-08-24  Jim Meyering  <jim@meyering.net>
57709
57710         * modules/fcntl-safer: New module.
57711         * modules/fts (Depends-on): Add fcntl-safer.
57712         * MODULES.html.sh (File descriptor based Input/Output):
57713         Add fcntl-safer.
57714
57715 2005-08-24  Bruno Haible  <bruno@clisp.org>
57716
57717         Support for unit test modules.
57718         * modules/README: Mention tests modules.
57719         * modules/TEMPLATE-TESTS: New file.
57720         * gnulib-tool: New options --extract-tests-module, --with-tests and
57721         --tests-base (unused for the moment).
57722         (testsbase, inctests): New variables.
57723         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
57724         (func_verify_module): Exclude TEMPLATE-TESTS.
57725         (func_verify_nontests_module, func_verify_tests_module): New functions.
57726         (func_get_dependencies): Add implicit dependency for tests modules.
57727         (func_get_tests_module): New function.
57728         (func_modules_transitive_closure): When --with-tests was specified,
57729         include the unit tests as well, unless explicitly avoided.
57730         (func_emit_lib_Makefile_am): Ignore the tests modules here.
57731         (func_emit_tests_Makefile_am): New function.
57732         (func_create_testdir): When --with-tests was specified, emit a
57733         tests/ directory.
57734         * MODULES.html.sh (Future developments): Update.
57735
57736 2005-08-24  Bruno Haible  <bruno@clisp.org>
57737
57738         * modules/tls-tests: New file.
57739         * tests/test-tls.c: New file, from GNU gettext.
57740
57741 2005-08-24  Bruno Haible  <bruno@clisp.org>
57742
57743         * modules/lock-tests: New file.
57744         * tests/test-lock.c: New file, from GNU gettext.
57745
57746 2005-08-24  Bruno Haible  <bruno@clisp.org>
57747
57748         * lib/lock.h: Add multiple inclusion guard.
57749         * lib/tls.h: Add multiple inclusion guard.
57750
57751 2005-08-24  Bruno Haible  <bruno@clisp.org>
57752
57753         * gnulib-tool: Add support for the --aux-dir option to
57754         --create-testdir, --create-megatestdir, --test, --megatest.
57755         (func_create_testdir, func_create_megatestdir): Optionally emit a
57756         AC_CONFIG_AUX_DIR directive.
57757         (create-testdir, create-megatestdir, test, megatest): Provide a
57758         default value for $auxdir.
57759
57760 2005-08-24  Bruno Haible  <bruno@clisp.org>
57761
57762         * gnulib-tool (import): Use compound statement instead of subshell
57763         where possible.
57764
57765 2005-08-24  Bruno Haible  <bruno@clisp.org>
57766
57767         * gnulib-tool (import): Change --aux-dir default to "build-aux".
57768
57769 2005-08-24  Bruno Haible  <bruno@clisp.org>
57770
57771         * gnulib-tool (func_version): Update.
57772
57773 2005-08-24  Bruno Haible  <bruno@clisp.org>
57774
57775         * gnulib-tool (func_import, func_create_testdir,
57776         func_create_megatestdir): Quote all autoconf macro arguments.
57777
57778 2005-08-24  Bruno Haible  <bruno@clisp.org>
57779
57780         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
57781         option --force, because --force causes the aclocal.m4 of each
57782         subdirectory to be newer than the corresponding config.h.in.
57783
57784 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57785
57786         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
57787         All contents moved to gl_REGEX.
57788         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
57789         assume that it does.
57790
57791 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57792
57793         * lib/regex.h (REG_NOSYS)
57794         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
57795         Define, since POSIX requires it as of 2001.
57796         (_REG_ENOSYS)
57797         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
57798         New private symbol, used to keep the enum signed in all cases.
57799         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
57800         Youngman in
57801         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
57802
57803         * lib/regex_internal.c (re_string_skip_chars, register_state):
57804         (calc_state_hash):
57805         Remove forward decls; no longer needed now that we use prototypes.
57806         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
57807         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
57808         (clean_state_log_if_needed): Likewise.
57809
57810 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57811
57812         * config/srclist.txt: Add glibc bugs 1231-1233.
57813
57814 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57815
57816         Fix problems reported by Sam Steingold in
57817         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
57818         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
57819         assumed that reg_errcode_t is a signed type, which is not
57820         necessarily true if _XOPEN_SOURCE is not defined.
57821         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
57822         since some compilers warn about it otherwise.
57823
57824 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57825
57826         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
57827         (init_word_char, create_initial_state, duplicate_node_closure):
57828         (fetch_token, peek_token_bracket, build_range_exp):
57829         (build_collating_symbol): Remove forward decls; no longer needed
57830         now that we use prototypes.
57831
57832         * lib/regcomp.c:
57833         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
57834         (re_compile_fastmap_iter, regcomp, regerror, regfree):
57835         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
57836         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
57837         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
57838         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
57839         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
57840         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
57841         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
57842         (build_range_exp, build_collating_symbol, parse_bracket_exp):
57843         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
57844         (build_charclass, build_charclass_op, fetch_number, create_tree):
57845         (create_token_tree, mark_opt_subexp, duplicate_tree):
57846         Use prototypes rather than old-style definitions.
57847
57848         * lib/regex_internal.c:
57849         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
57850         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
57851         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
57852         (re_string_reconstruct, re_string_peek_byte_case):
57853         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
57854         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
57855         (re_node_set_init_copy, re_node_set_add_intersect):
57856         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57857         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57858         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
57859         (re_acquire_state, re_acquire_state_context, register_state):
57860         (create_ci_newstate, create_cd_newstate, free_state):
57861         Likewise.
57862         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
57863         re_search_2):
57864         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
57865         (re_search_internal, prune_impossible_nodes):
57866         (acquire_init_state_context, check_matching, static):
57867         (check_halt_node_context, check_halt_state_context, proceed_next_node):
57868         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
57869         (update_regs, sift_states_backward, build_sifted_states):
57870         (clean_state_log_if_needed, merge_state_array):
57871         (update_cur_sifted_state, add_epsilon_src_nodes):
57872         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
57873         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
57874         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
57875         (find_recover_state, check_subexp_matching_top, transit_state_mb):
57876         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
57877         (check_arrival, check_arrival_add_next_nodes):
57878         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57879         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57880         (check_node_accept_bytes, check_node_accept, extend_buffers):
57881         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
57882         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
57883         (sift_ctx_init):
57884         Likewise.
57885
57886         * lib/regex_internal.h:
57887         (re_string_allocate, re_string_construct, re_string_reconstruct):
57888         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
57889         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
57890         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
57891         (re_string_context_at, re_string_peek_byte_case):
57892         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
57893         is defined, since we now use prototypes always.
57894
57895         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
57896         C89 or better.  All uses removed.
57897
57898 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57899
57900         * config/srclist.txt: Add glibc bugs 1220-1227.
57901
57902 2005-08-20  Jim Meyering  <jim@meyering.net>
57903
57904         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
57905         of unused local, dfa.
57906
57907 2005-08-20  Bruno Haible  <bruno@clisp.org>
57908
57909         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
57910
57911 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57912
57913         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
57914         (re_node_set_insert_last, re_dfa_add_node):
57915         Rename local variables to avoid GCC shadowing warnings.
57916
57917 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57918
57919         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
57920         [defined lint]: Suppress bogus uninitialized-variable warnings.
57921
57922         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
57923         and let the caller return REG_ESPACE if out of space.  This
57924         removes an uninitialied-variable warning with GCC 4.0.1, and also
57925         avoids taking the address of a local variable.  All callers
57926         changed.
57927
57928 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57929
57930         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
57931         $LIBCSRC/posix/regexec.c.
57932         Add glibc bug 1217 for regcomp.c.
57933
57934 2005-08-19  Jim Meyering  <jim@meyering.net>
57935
57936         * lib/regexec.c (proceed_next_node): Redo local variables to
57937         avoid GCC shadowing warnings.
57938
57939 2005-08-18  Bruno Haible  <bruno@clisp.org>
57940
57941         * lib/strstr.c (strstr): Fix return value in multibyte case.
57942         * lib/strcasestr.c (strcasestr): Likewise.
57943
57944 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57945
57946         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
57947
57948 2005-08-17  Jim Meyering  <jim@meyering.net>
57949
57950         Make the %s format (seconds since the epoch) work for a negative
57951         number and when used with a zero-padded field width, e.g. %015s.
57952
57953         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
57954         label so that it precedes the code to set `digits'.  Otherwise,
57955         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
57956         print `00-22'.  Now, it prints `-0022', as it should.
57957
57958 2005-08-17  Bruno Haible  <bruno@clisp.org>
57959
57960         * modules/strstr (Files): Add m4/mbrtowc.m4.
57961         (Depends-on): Add mbuiter.
57962
57963 2005-08-17  Bruno Haible  <bruno@clisp.org>
57964
57965         * modules/strcasestr: New file.
57966         * MODULES.html.sh (String handling, based on ANSI C 89): Add
57967         strcasestr.
57968
57969 2005-08-17  Bruno Haible  <bruno@clisp.org>
57970
57971         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
57972
57973 2005-08-17  Bruno Haible  <bruno@clisp.org>
57974
57975         * modules/mbuiter: New file.
57976         * MODULES.html.sh (Extended multibyte and wide character utilities):
57977         Add mbuiter.
57978
57979 2005-08-17  Bruno Haible  <bruno@clisp.org>
57980
57981         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
57982         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
57983
57984 2005-08-17  Bruno Haible  <bruno@clisp.org>
57985
57986         * m4/strcasestr.m4: New file.
57987
57988 2005-08-17  Bruno Haible  <bruno@clisp.org>
57989
57990         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
57991         * lib/strstr.c: Completely rewritten, with multibyte locale support.
57992
57993 2005-08-17  Bruno Haible  <bruno@clisp.org>
57994
57995         * lib/strcasestr.h: New file.
57996         * lib/strcasestr.c: New file.
57997
57998 2005-08-17  Bruno Haible  <bruno@clisp.org>
57999
58000         * lib/strcasecmp.c: Use mbuiter.h.
58001
58002 2005-08-17  Bruno Haible  <bruno@clisp.org>
58003
58004         * lib/mbuiter.h: New file.
58005
58006 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58007
58008         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
58009         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
58010         and gl_GETOPT are both invoked via different paths (as happens
58011         with GNU tar CVS because it uses both argp and getopt), the former
58012         wins.
58013
58014 2005-08-16  Bruno Haible  <bruno@clisp.org>
58015
58016         * modules/tls: New file.
58017         * MODULES.html.sh (Multithreading): Add tls.
58018
58019 2005-08-16  Bruno Haible  <bruno@clisp.org>
58020
58021         * modules/strnlen1: New file.
58022         * MODULES.html.sh (String handling): Add strnlen1.
58023
58024 2005-08-16  Bruno Haible  <bruno@clisp.org>
58025
58026         * modules/strcase (Files): Add m4/mbrtowc.m4.
58027         (Depends-on): Add strnlen1, mbchar.
58028
58029 2005-08-16  Bruno Haible  <bruno@clisp.org>
58030
58031         * modules/mbiter: New file.
58032         * MODULES.html.sh (Extended multibyte and wide character utilities):
58033         Add mbiter.
58034
58035 2005-08-16  Bruno Haible  <bruno@clisp.org>
58036
58037         * modules/mbfile: New file.
58038         * MODULES.html.sh (Extended multibyte and wide character utilities):
58039         Add mbfile.
58040
58041 2005-08-16  Bruno Haible  <bruno@clisp.org>
58042
58043         * modules/mbchar: New file.
58044         * MODULES.html.sh (Extended multibyte and wide character utilities):
58045         New section.
58046
58047 2005-08-16  Bruno Haible  <bruno@clisp.org>
58048
58049         * m4/tls.m4: New file, from GNU gettext.
58050
58051 2005-08-16  Bruno Haible  <bruno@clisp.org>
58052
58053         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
58054         always.
58055         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
58056
58057 2005-08-16  Bruno Haible  <bruno@clisp.org>
58058
58059         * m4/mbiter.m4: New file.
58060
58061 2005-08-16  Bruno Haible  <bruno@clisp.org>
58062
58063         * m4/mbfile.m4: New file.
58064
58065 2005-08-16  Bruno Haible  <bruno@clisp.org>
58066
58067         * m4/mbchar.m4: New file.
58068
58069 2005-08-16  Bruno Haible  <bruno@clisp.org>
58070
58071         * lib/tls.h: New file, from GNU gettext.
58072         * lib/tls.c: New file, from GNU gettext.
58073
58074 2005-08-16  Bruno Haible  <bruno@clisp.org>
58075
58076         * lib/strnlen1.h: New file.
58077         * lib/strnlen1.c: New file.
58078
58079 2005-08-16  Bruno Haible  <bruno@clisp.org>
58080
58081         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
58082         (mbi_init): Update.
58083         (mbi_avail, mbi_advance): Let the iteration end before the terminating
58084         NUL byte, not after it.
58085
58086 2005-08-16  Bruno Haible  <bruno@clisp.org>
58087
58088         * lib/strcase.h (strcasecmp): Add note in comments.
58089         * lib/strncasecmp.c: Use code from strcasecmp.c.
58090         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
58091         (strcasecmp): Work correctly in multibyte locales.
58092
58093 2005-08-16  Bruno Haible  <bruno@clisp.org>
58094
58095         * lib/mbiter.h: New file.
58096
58097 2005-08-16  Bruno Haible  <bruno@clisp.org>
58098
58099         * lib/mbfile.h: New file.
58100
58101 2005-08-16  Bruno Haible  <bruno@clisp.org>
58102
58103         * lib/mbchar.h: New file.
58104         * lib/mbchar.c: New file.
58105
58106 2005-08-16  Bruno Haible  <bruno@clisp.org>
58107
58108         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
58109         the valid ones. Makes the comparison operations transitive:
58110         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
58111         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
58112
58113 2005-08-15  Simon Josefsson  <jas@extundo.com>
58114
58115         * modules/ssize_t (License): Change to 'unlimited'.
58116
58117         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
58118
58119 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58120
58121         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
58122         Add comments for each pending glibc patch.
58123
58124 2005-08-15  Bruno Haible  <bruno@clisp.org>
58125
58126         * lib/regex.h (__restrict_arr): Don't define to __restrict if
58127         __cplusplus is defined.
58128
58129 2005-08-14  Jim Meyering  <jim@meyering.net>
58130
58131         Sync from coreutils.
58132
58133         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
58134         Use the hash-table-based cycle-detection code not just when
58135         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
58136         Reported by James Youngman in
58137         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
58138         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
58139         FTS_TIGHT_CYCLE_CHECK.
58140         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
58141         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
58142         once again.
58143         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
58144         * lib/fts.c (fd_safer): Remove decl.
58145         Include fcntl--.h rather than unistd-safer.h
58146         (fts_safe_changedir): Don't call fd_safer; no longer needed
58147         now that we include fcntl--.h.
58148
58149 2005-08-12  Simon Josefsson  <jas@extundo.com>
58150
58151         * modules/getndelim2: Use ssize_t module.
58152         * modules/getnline: Likewise.
58153         * modules/safe-read: Likewise.
58154         * modules/xreadlink: Likewise.
58155
58156         * modules/ssize_t: New file.
58157
58158 2005-08-12  Simon Josefsson  <jas@extundo.com>
58159
58160         * m4/readline.m4: Look for termcap, curses or ncurses if required.
58161
58162 2005-08-12  Simon Josefsson  <jas@extundo.com>
58163
58164         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58165         ssize_t.
58166
58167 2005-08-12  Simon Josefsson  <jas@extundo.com>
58168
58169         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
58170         readline, getdelim and check_version.
58171         (Support for systems lacking ISO C 99: Sizes of integer types):
58172         Add size_max.
58173
58174 2005-08-12  Bruno Haible  <bruno@clisp.org>
58175
58176         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
58177
58178 2005-08-11  Simon Josefsson  <jas@extundo.com>
58179
58180         * modules/readline: New file.
58181
58182         * modules/strnlen (Files): Add strnlen.h.
58183
58184 2005-08-11  Simon Josefsson  <jas@extundo.com>
58185
58186         * m4/readline.m4: New file.
58187
58188 2005-08-11  Simon Josefsson  <jas@extundo.com>
58189
58190         * lib/readline.h, readline.c: New file.
58191
58192 2005-08-11  Simon Josefsson  <jas@extundo.com>
58193
58194         * doc/gnulib.texi (Initial import, Finishing touches): Mention
58195         gl_AVOID.
58196
58197 2005-08-11  Bruno Haible  <bruno@clisp.org>
58198
58199         * lib/strnlen.h (strnlen): Change parameter name to match comment.
58200
58201 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
58202
58203         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
58204
58205 2005-08-10  Simon Josefsson  <jas@extundo.com>
58206
58207         * tests/test-iconvme.c: New file.
58208
58209 2005-08-10  Simon Josefsson  <jas@extundo.com>
58210
58211         * m4/strnlen.m4: New file.
58212
58213         * m4/strndup.m4: Don't check for strnlen declaration, done in
58214         strnlen.m4.
58215
58216 2005-08-10  Simon Josefsson  <jas@extundo.com>
58217
58218         * lib/strndup.c: Use strnlen.h.
58219
58220         * lib/strnlen.h: New file.
58221
58222 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58223
58224         * README: Typos.
58225
58226 2005-08-02  Simon Josefsson  <jas@extundo.com>
58227
58228         * modules/readline: New file.
58229
58230 2005-08-02  Simon Josefsson  <jas@extundo.com>
58231
58232         * modules/getdelim: New file.
58233
58234         * modules/getline: Rewrite, don't use getndelim2.
58235
58236 2005-08-02  Simon Josefsson  <jas@extundo.com>
58237
58238         * m4/getline.m4: Separate out getdelim stuff into separate module.
58239
58240         * m4/getdelim.m4: New file.
58241
58242 2005-08-02  Simon Josefsson  <jas@extundo.com>
58243
58244         * lib/getline.h, getline.c: Rewrite.
58245
58246         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
58247
58248 2005-07-31  Bruno Haible  <bruno@clisp.org>
58249
58250         * lib/lock.h (gl_lock_initializer): New macro.
58251         (gl_lock_define_initialized): Use it.
58252         (gl_rwlock_initializer): New macro.
58253         (gl_rwlock_define_initialized): Use it.
58254         (gl_recursive_lock_initializer): New macro.
58255         (gl_recursive_lock_define_initialized): Use it.
58256
58257 2005-07-30  Karl Berry  <karl@gnu.org>
58258
58259         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
58260         Report from Ben Pfaff, regarding getopt.
58261
58262 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
58263
58264         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
58265         normal way.
58266         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
58267         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
58268         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
58269         (gl_GETOPT): Use the new macros.  Most of the implementation
58270         is moved to the new macros.  This is for programs like Emacs
58271         that don't want all the functionality of gl_GETOPT.
58272
58273 2005-07-26  Bruno Haible  <bruno@clisp.org>
58274
58275         * m4/lock.m4: Update from GNU gettext.
58276
58277 2005-07-26  Bruno Haible  <bruno@clisp.org>
58278
58279         * lib/lock.h: Update from GNU gettext.
58280         * lib/lock.c: Update from GNU gettext.
58281
58282 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
58283
58284         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
58285         obsolescent AC_TRY_RUN.  Include the default includes files, for
58286         'exit'.
58287
58288 2005-07-24  Bruno Haible  <bruno@clisp.org>
58289
58290         * modules/visibility: New file.
58291         * MODULES.html.sh (Misc): Add visibility.
58292
58293 2005-07-24  Bruno Haible  <bruno@clisp.org>
58294
58295         * m4/visibility.m4: New file.
58296
58297 2005-07-24  Bruno Haible  <bruno@clisp.org>
58298
58299         * doc/visibility.texi: New file.
58300
58301 2005-07-22  Bruno Haible  <bruno@clisp.org>
58302
58303         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
58304         $(ALLOCA_H), redundant through BUILT_SOURCES.
58305         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
58306         redundant through BUILT_SOURCES.
58307         * modules/byteswap (Makefile.am): Remove explicit dependency on
58308         $(BYTESWAP_H), redundant through BUILT_SOURCES.
58309         * modules/fnmatch (Makefile.am): Remove explicit dependency on
58310         $(FNMATCH_H), redundant through BUILT_SOURCES.
58311         * modules/getopt (Makefile.am): Remove explicit dependency on
58312         $(GETOPT_H), redundant through BUILT_SOURCES.
58313         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
58314         redundant through BUILT_SOURCES.
58315         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
58316         redundant through BUILT_SOURCES.
58317         * modules/stdbool (Makefile.am): Remove explicit dependency on
58318         $(STDBOOL_H), redundant through BUILT_SOURCES.
58319         * modules/stdint (Makefile.am): Remove explicit dependency on
58320         $(STDINT_H), redundant through BUILT_SOURCES.
58321         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
58322         Remove explicit dependency on $(SYSEXITS_H).
58323         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
58324
58325 2005-07-18  Simon Josefsson  <jas@extundo.com>
58326
58327         * lib/check-version.c (check_version): Accept identical versions too.
58328
58329 2005-07-18  Bruno Haible  <bruno@clisp.org>
58330
58331         * modules/lock: New file.
58332         * MODULES.html.sh (Multithreading): New section.
58333
58334 2005-07-18  Bruno Haible  <bruno@clisp.org>
58335
58336         * m4/lock.m4: New file, from GNU gettext.
58337
58338 2005-07-18  Bruno Haible  <bruno@clisp.org>
58339
58340         * lib/lock.h: New file, from GNU gettext.
58341         * lib/lock.c: New file, from GNU gettext.
58342
58343 2005-07-18  Bruno Haible  <bruno@clisp.org>
58344
58345         * lib/lock.h (gl_once_t): New type.
58346         (gl_once_define, gl_once): New macros.
58347         * lib/lock.c (fresh_once): New variable.
58348         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
58349         functions.
58350
58351 2005-07-16  Simon Josefsson  <jas@extundo.com>
58352
58353         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
58354         workaround, suggested by Bruno.
58355
58356 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58357
58358         * modules/xalloc (Depends-on): Add xalloc-die.
58359         * modules/xvasprintf (Depends-on): Add xalloc-die.
58360
58361 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58362
58363         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
58364         with a minor change.
58365
58366 2005-07-15  Bruno Haible  <bruno@clisp.org>
58367
58368         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
58369         When using lib/poll.c, define poll as rpl_poll.
58370
58371 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
58372
58373         * modules/argp (Depends-on): Remove unlocked-io.
58374
58375 2005-07-14  Derek Price  <derek@ximbiot.com>
58376
58377         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
58378         for glob symlink bug.
58379
58380 2005-07-14  Bruno Haible  <bruno@clisp.org>
58381
58382         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
58383         Instead, test for *_unlocked function declarations directly.
58384
58385 2005-07-11  Simon Josefsson  <jas@extundo.com>
58386
58387         * modules/size_max: New file.
58388
58389         * modules/xsize: Depend on size_max module for size_max.m4.
58390
58391 2005-07-11  Simon Josefsson  <jas@extundo.com>
58392
58393         * lib/size_max.h: New file.
58394
58395 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
58396
58397         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
58398         copyright symbol and the year.
58399         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
58400         (version_etc_va): Use parameterized copyright notice.
58401         Reword to conform to the current GNU coding standards.
58402
58403 2005-07-11  Karl Berry  <karl@gnu.org>
58404
58405         * doc/gnulib.texi (Quoting): new node.
58406         (Initial import): more info, from Patrice.
58407
58408 2005-07-11  Bruno Haible  <bruno@clisp.org>
58409
58410         * gnulib-tool (func_usage): Document option --avoid.
58411         (Command line options): Handle --avoid.
58412         (func_acceptable): New function.
58413         (func_modules_transitive_closure): Use it.
58414
58415 2005-07-11  Bruno Haible  <bruno@clisp.org>
58416
58417         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
58418         Reported by Jim Meyering.
58419
58420 2005-07-10  Bruno Haible  <bruno@clisp.org>
58421
58422         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
58423         Needed when size_t is smaller than 'unsigned int'.
58424         Reported by Paul Eggert.
58425
58426 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58427
58428         * modules/argp (Depends-on): Add unlocked-io
58429
58430 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58431
58432         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
58433         block of defines.
58434
58435 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58436
58437         * config/srclist.txt: Comment out regcomp.c, since we have a porting
58438         fix now.
58439
58440 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
58441         and Paul Eggert  <eggert@cs.ucla.edu>
58442
58443         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
58444         in wint_t, not wchar_t.  Remove now-unnecessary cast.
58445
58446 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58447
58448         * modules/regex (Files): Add lib/regex_internal.c,
58449         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
58450         (Depends-on): Add extensions.
58451         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
58452
58453 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58454
58455         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
58456         pathconf.
58457         * m4/same.m4 (gl_SAME): Likewise.
58458         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
58459
58460         * m4/regex.m4: Adjust to new libc regex implementation.
58461         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
58462         all the .c and .h parts of (the new) regex.
58463         Quote the m4 stuff better.
58464         Check for RE_ICASE bug of old gnulib.
58465         Check for REG_STARTEND of recent libc.
58466         Rename local variables from jm_* to gl_*.
58467         Quote operand of "test -f".
58468         Say "recent enough" version of libc, not "version 2".
58469         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
58470         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
58471         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
58472         Remove check for btowc, isascii.
58473         Require AM_LANGINFO_CODESET.
58474
58475 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58476
58477         * lib/regex.c, regex.h: Sync from libc.
58478         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
58479         * lib/regexec.c:
58480         New files, synced from libc, except that regex_internal.h
58481         currently has a small porting fix.
58482
58483 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58484
58485         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
58486         regex_internal.c, regexec.c.
58487         Add regex_internal.h too, but as a comment, since the libc version
58488         is currently broken in gnulib mode.
58489
58490 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58491
58492         Support programs like Emacs that use gnulib but not gettext.
58493         * MODULES.html.sh (Internationalization functions): Add gettext-h.
58494         * modules/gettext-h: New file.
58495         * modules/gettext (Files): Remove lib/gettext.h.
58496         (Depends-on): Add gettext-h.
58497         (Makefile.am): Remove lib_SOURCES.
58498         * modules/argmatch, modules/c-stack, modules/closeout:
58499         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
58500         * modules/execute, modules/file-type, modules/getaddrinfo:
58501         * modules/getopt, modules/human, modules/javacomp:
58502         * modules/javaexec, modules/mkdir-p, modules/obstack:
58503         * modules/openat, modules/pagealign_alloc, modules/pipe:
58504         * modules/quotearg, modules/regex, modules/rpmatch:
58505         * modules/unicodeio, modules/userspec, modules/version-etc:
58506         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
58507         * modules/xsetenv:
58508         Depend on gettext-h, not gettext.
58509
58510 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58511
58512         * gnulib-tool (func_import): Add support for 'public domain' license.
58513         * modules/alloca, modules/atexit, modules/memmove:
58514         Now public domain, not GPL.
58515         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
58516         * modules/realloc, modules/strerror, modules/strtod:
58517         Now LGPL, not GPL.
58518
58519 2005-07-05  Bruno Haible  <bruno@clisp.org>
58520
58521         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
58522         autoconf CVS. Needed for mingw.
58523
58524 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58525
58526         Remove the dependency of the strftime module on the tzset module.
58527         * modules/strftime (Depends-on): Remove dependency on tzset.
58528
58529 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58530
58531         Remove the dependency of the strftime module on the tzset module.
58532         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
58533         gl_FUNC_TZSET_CLOBBER.
58534
58535 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58536
58537         Remove the dependency of the strftime module on the tzset module.
58538         * lib/strftime.c (my_strftime)
58539         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
58540         Copy the input structure, to work around some of the bug with
58541         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
58542         Solaris releases, you should also use the tzset module, but we won't
58543         require it as a dependency any more since we don't want LGPLed code
58544         to depend on GPLed code.
58545
58546 2005-07-02  Jim Meyering  <jim@meyering.net>
58547
58548         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
58549         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
58550         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
58551         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
58552
58553 2005-07-02  Jim Meyering  <jim@meyering.net>
58554
58555         * lib/backupfile.c (backup_args): Change a `0' to NULL.
58556
58557 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58558
58559         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
58560         declares only 'struct timespec;' (!).
58561
58562 2005-07-01  Jim Meyering  <jim@meyering.net>
58563
58564         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
58565         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
58566         * lib/save-cwd.c, tempname.c:
58567         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
58568         and don't include <sys/file.h>).
58569
58570 2005-06-29  Jim Meyering  <jim@meyering.net>
58571
58572         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
58573         type name.  Use the variable name instead.
58574         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
58575         Likewise.
58576
58577 2005-06-28  Simon Josefsson  <jas@extundo.com>
58578
58579         * modules/check-version (Files): Add check-version.m4.
58580
58581 2005-06-28  Simon Josefsson  <jas@extundo.com>
58582
58583         * m4/check-version.m4: New file, suggested by Jim Meyering
58584         <jim@meyering.net>.
58585
58586 2005-06-28  Simon Josefsson  <jas@extundo.com>
58587
58588         * lib/check-version.h, lib/check-version.c: New files.
58589
58590 2005-06-28  Simon Josefsson  <jas@extundo.com>
58591
58592         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
58593         collision with global variable.  Better indentation.  Don't
58594         increment buffer pointer beyond buffer end.  Based on comments
58595         from Paul Eggert <eggert@cs.ucla.edu>.
58596
58597         * lib/base64.h: Indent.
58598
58599 2005-06-28  Simon Josefsson  <jas@extundo.com>
58600
58601         * doc/gnulib.texi (Library version handling): New section.
58602
58603 2005-06-28  Jim Meyering  <jim@meyering.net>
58604
58605         * check-module (find_included_lib_files): Hard-code another
58606         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
58607         but modules/fts-lgpl (correctly) does not list those files.
58608
58609         * modules/canonicalize (Files): Add lib/pathmax.h.
58610
58611 2005-06-25  Simon Josefsson  <jas@extundo.com>
58612
58613         * modules/check-version: New file.
58614
58615 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
58616
58617         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
58618         initializer of struct addrinfo, as an indication that we don't
58619         care how many members the structure has.
58620
58621 2005-06-24  Derek Price  <derek@ximbiot.com>
58622         and Bruno Haible  <bruno@clisp.org>
58623
58624         Remove stat module & update lstat.
58625         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
58626         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58627         * m4/stat.m4: Remove this file.
58628
58629 2005-06-24  Derek Price  <derek@ximbiot.com>
58630         and Bruno Haible  <bruno@clisp.org>
58631
58632         Remove stat module & update lstat.
58633         * lib/stat.c: Remove this file...
58634         (slash_aware_lstat): ...moving this content and its support...
58635         * lib/lstat.c (rpl_lstat): ...into here.
58636         * lib/lstat.h: New file.
58637
58638 2005-06-24  Derek Price  <derek@ximbiot.com>
58639         and Bruno Haible  <bruno@clisp.org>
58640
58641         Remove stat module & update lstat.
58642         * config/srclist.txt (libc sources): Remove stat.
58643
58644 2005-06-24  Derek Price  <derek@ximbiot.com>
58645         and Bruno Haible  <bruno@clisp.org>
58646
58647         Remove stat module & update lstat.
58648         * MODULES.html.sh (stat): Remove.
58649         * MODULES.html: Regenerated.
58650         * modules/lstat (Description): Correct function name.
58651         (Files): Add "lstat.h".
58652         (Depends-on): Remove stat, add xalloc, stat-macros.
58653         * modules/stat: Remove this file.
58654         (Include): Add "lstat.h", remove <sys/stat.h>.
58655
58656 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58657
58658         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
58659         (ranged_convert): Don't save conversion in a temporary struct.
58660         This causes a warning with GCC 4.0.0, and anyway in the typical
58661         case it's not worth the extra 100 bytes or so of code.
58662         (ranged_convert, __mktime_internal): When calling a function via a
58663         pointer P, use P () rather than (*P) (), as we now assume C89 or
58664         better.
58665
58666 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58667
58668         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
58669         "who -r" failed to give output.  Problem reported by Tim Waugh.
58670
58671         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
58672         (xcalloc): Use it to avoid needless tests.
58673         Problem reported by Jim Meyering.
58674
58675 2005-06-20  Derek Price  <derek@ximbiot.com>
58676
58677         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
58678         unnecessary for Autoconfs > 2.59c.
58679
58680 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58681
58682         * lib/argp.h (__option_is_short): Check upper limit of
58683         __key. Isprint() requires its argument to have the value
58684         of an unsigned char or EOF.
58685
58686 2005-06-16  Jim Meyering  <jim@meyering.net>
58687
58688         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
58689         when either N or S is zero.
58690
58691 2005-06-16  Derek Price  <derek@ximbiot.com>
58692
58693         * m4/bison.m4: Declare YACC & YFLAGS precious.
58694
58695 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
58696
58697         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
58698         multibyte string or pattern, fall back on unibyte matching.
58699         Problem reported by James Youngman.
58700
58701 2005-06-08  Bruno Haible  <bruno@clisp.org>
58702
58703         * modules/csharpcomp: New file.
58704         * MODULES.html.sh (C#): Add csharpcomp.
58705
58706 2005-06-08  Bruno Haible  <bruno@clisp.org>
58707
58708         * m4/csharpcomp.m4: New file, from GNU gettext.
58709
58710 2005-06-08  Bruno Haible  <bruno@clisp.org>
58711
58712         * lib/csharpcomp.h: New file, from GNU gettext.
58713         * lib/csharpcomp.c: New file, from GNU gettext.
58714         * lib/csharpcomp.sh.in: New file, from GNU gettext.
58715
58716 2005-06-08  Bruno Haible  <bruno@clisp.org>
58717
58718         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
58719         warning on mingw.
58720
58721 2005-06-07  Derek Price  <derek@ximbiot.com>
58722
58723         Sync from CVS.
58724         * lib/glob_.h: Indent nested #ifdef.
58725
58726 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58727
58728         Sync from coreutils.
58729         Use "file name" when talking about file names, instead of "filename"
58730         or "path", as per the GNU coding standards.
58731         * lib/mkdir-p.c: Renamed from makepath.c.
58732         (make_dir_parents): Renamed from make_path.  All callers changed.
58733         * lib/mkdir-p.h: Likewise.  All includers changed.
58734         * lib/filenamecat.c: Renamed from path-concat.c.
58735         (file_name_concat): Renamed from path_concat.  All callers changed.
58736         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
58737         * lib/filenamecat.h: Likewise.  All includers changed.
58738         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
58739         in comments or local variable names.
58740         * lib/basename.c: Likewise.
58741         * lib/canonicalize.c, canonicalize.h: Likewise.
58742         * lib/dirname.c, dirname.h: Likewise.
58743         * lib/euidaccess.c: Likewise.
58744         * lib/exclude.c: Likewise
58745         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
58746         * lib/fsusage.c, fsuage.h: Likewise.
58747         * lib/fts.c, fts_.h: Likewise.
58748         * lib/getcwd.c: Likewise.
58749         * lib/getloadavg.c: Likewise.
58750         * lib/mkstemp.c: Likewise.
58751         * lib/mountlist.c, mountlist.h: Likewise.
58752         * lib/openat.c, openat.h: Likewise.
58753         * lib/readlink-stub.c: Likewise.
58754         * lib/readutmp.c, readutmp.h: Likewise.
58755         * lib/rename.c: Likewise.
58756         * lib/rmdir.c: Likewise.
58757         * lib/same.c: Likewise.
58758         * lib/savedir.c: Likewise.
58759         * lib/stripslash.c: Likewise.
58760         * lib/tempname.c: Likewise.
58761         * lib/xreadlink.c: Likewise.
58762         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
58763         All uses changed.
58764         * lib/exclude.h: Likewise.
58765
58766         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
58767         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58768         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
58769         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58770         * lib/pathmax.h: Include <limits.h> unconditionally, since other
58771         files have been getting away with it for years (MORE/BSD 4.3
58772         is extinct now).
58773         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
58774         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58775
58776         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
58777         Define to 256, not 255, as per modern POSIX.
58778
58779 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58780
58781         Sync from coreutils.
58782         Use "file name" when talking about file names, instead of "filename"
58783         or "path", as per the GNU coding standards.
58784         * MODULES.html.sh: mkdir-p renamed from makepath.
58785         filenamecat renamed from path-concat.
58786         * modules/filenamecat: Renamed from modules/path-concat.
58787         (Files): filenamecat.h and filenamecat.c renamed from
58788         path-concat.h and path-concat.c.
58789         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
58790         (Include): filenamecat.h, not path-concat.h.
58791         * modules/mkdir-p: Renamed from modules/makepath.
58792         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
58793         makepath.c.
58794         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
58795         (Include): mkdir-p.h, not makepath.h.
58796
58797 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58798
58799         Sync from coreutils.
58800         * m4/mkdir-p.m4: Renamed from makepath.m4.
58801         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
58802         Rename files from makepath.c to mkdir-p.c, and from
58803         makepath.h to mkdir-p.h.
58804         * m4/filenamecat.m4: Renamed from path-concat.m4.
58805         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
58806         Rename files from path-concat.c to filenamecat.c,
58807         and from path-concat.h to filenamecat.h.
58808         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
58809         "file name" in local variables or comments.
58810         * m4/rename.m4: Likewise.
58811
58812 2005-06-01  Bruno Haible  <bruno@clisp.org>
58813
58814         * modules/csharpexec: New file.
58815         * MODULES.html.sh (C#): New section.
58816
58817 2005-06-01  Bruno Haible  <bruno@clisp.org>
58818
58819         * m4/csharp.m4: New file, from GNU gettext.
58820         * m4/csharpexec.m4: New file, from GNU gettext.
58821
58822 2005-06-01  Bruno Haible  <bruno@clisp.org>
58823
58824         * lib/csharpexec.h: New file, from GNU gettext.
58825         * lib/csharpexec.c: New file, from GNU gettext.
58826         * lib/csharpexec.sh.in: New file, from GNU gettext.
58827
58828 2005-05-31  Derek Price  <derek@ximbiot.com>
58829             Paul Eggert  <eggert@cs.ucla.edu>
58830
58831         Sync from cvs.
58832         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58833
58834 2005-05-31  Derek Price  <derek@ximbiot.com>
58835             Paul Eggert  <eggert@cs.ucla.edu>
58836
58837         Sync from cvs.
58838         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58839
58840 2005-05-29  Derek Price  <derek@ximbiot.com>
58841
58842         * config/srclist.txt (glob_.h, glob.c): Add these files.
58843
58844 2005-05-29  Derek Price  <derek@ximbiot.com>
58845
58846         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
58847         * modules/glob: New file.
58848         * modules/getlogin_r: Add link to POSIX spec in description.
58849
58850 2005-05-29  Derek Price  <derek@ximbiot.com>
58851             Paul Eggert  <eggert@cs.ucla.edu>
58852
58853         * m4/glob.m4: New file.
58854
58855 2005-05-29  Derek Price  <derek@ximbiot.com>
58856             Paul Eggert  <eggert@cs.ucla.edu>
58857
58858         * lib/glob_.h, lib/glob.c: New files.
58859
58860 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58861
58862         * modules/fts (Files): Remove m4/inttypes-pri.m4.
58863         * modules/fts-lgpl (Depends-on): Remove gettext.
58864
58865 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58866
58867         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
58868         and don't require gt_INTTYPES_PRI.
58869
58870 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58871
58872         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
58873
58874         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
58875         the configuration hassle isn't worth it.
58876         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
58877         (LONGEST_MODIFIER, PRIuMAX): Remove.
58878
58879 2005-05-27  Bruno Haible  <bruno@clisp.org>
58880
58881         * lib/getlogin_r.h: Remove second include of <stddef.h>.
58882
58883 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
58884
58885         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
58886         _POSIX_PTHREAD_SEMANTICS for Solaris.
58887
58888 2005-05-25  Derek Price  <derek@ximbiot.com>
58889
58890         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
58891
58892 2005-05-25  Derek Price  <derek@ximbiot.com>
58893             Paul Eggert  <eggert@cs.ucla.edu>
58894
58895         * modules/getlogin_r, m4/getlogin_r.m4: New files.
58896         * lib/getlogin_r.c, getlogin_r.h: New files.
58897
58898 2005-05-25  Bruno Haible  <bruno@clisp.org>
58899             Derek Price  <derek@ximbiot.com>
58900
58901         * lib/getlogin_r.h: Simplify API documentation.
58902
58903 2005-05-23  Derek Price  <derek@ximbiot.com>
58904
58905         * modules/minmax (Files): Add m4/minmax.m4.
58906         (configure.ac): Add gl_MINMAX.
58907
58908 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58909
58910         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
58911         so that unistd-safer.h (GPL'ed code) need not be included.
58912
58913 2005-05-22  Bruno Haible  <bruno@clisp.org>
58914
58915         * m4/minmax.m4: New file.
58916         Based on a patch by Derek Price <derek@ximbiot.com>.
58917
58918 2005-05-22  Bruno Haible  <bruno@clisp.org>
58919
58920         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
58921         (INT64_MIN): Fix definition.
58922         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
58923
58924         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
58925         NEED_SIGNED_INT_TYPES.
58926
58927         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
58928         HAVE_SYSTEM_INTTYPES.
58929
58930 2005-05-22  Bruno Haible  <bruno@clisp.org>
58931
58932         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
58933         Also include <sys/param.h> if it defines MIN, MAX.
58934         Based on a patch by Derek Price <derek@ximbiot.com>.
58935
58936 2005-05-21  Jim Meyering  <jim@meyering.net>
58937
58938         * modules/fts (Files): Add m4/inttypes-pri.m4.
58939         (Depends-on): Add lstat and remove gettext.  Alphabetize.
58940
58941 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58942
58943         New fts module.
58944         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
58945         (setup_dir, free_dir): New functions.
58946         (enter_dir, leave_dir): Define trivial
58947         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
58948         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
58949         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
58950         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
58951         Move to fts-cycle.c.
58952         (fts_open): Use setup_dir.
58953         (fts_close): Use free_dir.
58954         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
58955         This adds a label and some gotos, but the alternatives were messier.
58956         Check for memory allocation failure when entering a dir.
58957         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
58958         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
58959         (FTS): New member fts_cycle, that is a union that contains the
58960         old active_dir_ht and cycle_state.  All uses changed to mention
58961         fts_cycle.ht and fts_cycle.state.
58962         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
58963         fts.c, with the following changes:
58964         (setup_dir, free_dir): New functions.
58965         (enter_dir): Now returns bool.  Return true if successful, false
58966         if memory exhausted.  All callers changed.
58967         Do not bother partly cleaning up on
58968         memory allocation failure; that is free_dir's job.
58969         However, free ad if hash_insert fails, to avoid memory leak.
58970         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
58971         fts->fts_options to see which union member to use.
58972
58973 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58974
58975         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
58976         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
58977
58978 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58979
58980         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
58981
58982 2005-05-20  Jim Meyering  <jim@meyering.net>
58983
58984         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
58985         Now a macro, to pacify GCC.
58986
58987 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58988
58989         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
58990         of -1.
58991
58992 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58993
58994         * lib/chown.c (rpl_chown): Return -1 on failure.
58995
58996 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58997
58998         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
58999         Don't check for stddef.h.
59000         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
59001         don't use its results.
59002         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
59003         since we include them unconditionally.  Don't require
59004         AM_STDBOOL_H, since stdbool is a prerequisite.
59005         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
59006         since we assume C89 or better.
59007         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
59008         as we don't use their results.
59009         Don't check for fchdir, memmove, memset, strrchr, as we use
59010         them unconditionally.
59011         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
59012         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
59013
59014 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
59015
59016         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
59017         Include <stddef.h> unconditionally, since we assume C89 now.
59018         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
59019         * lib/fts.c: Include fts_.h first, to check interface.
59020         Do not include intprops.h; no longer needed.
59021         Include cycle-check.h and hash.h, since fts_.h no longer does.
59022         Remove unnecessary casts of closedir to void.
59023         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
59024         decide whether to decrement nlinks.
59025         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
59026         (FTS): Use struct hash_table * instead of Hash_table, so that
59027         we no longer need to include hash.h here.
59028
59029 2005-05-18  Jim Meyering  <jim@meyering.net>
59030
59031         * modules/dirfd (License): Change to LGPL.  Most of the code
59032         is already in the public domain.
59033
59034 2005-05-18  Jim Meyering  <jim@meyering.net>
59035
59036         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
59037         Reported by Yoann Vandoorselaere.
59038
59039 2005-05-17  Jim Meyering  <jim@meyering.net>
59040
59041         * m4/fts.m4: New file, from coreutils.
59042
59043 2005-05-17  Jim Meyering  <jim@meyering.net>
59044
59045         * lib/fts.c, lib/fts_.h: New files, from coreutils.
59046
59047 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59048
59049         Sync from coreutils.
59050         * m4/unlinkdir.m4: New file.
59051
59052 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59053
59054         Sync from coreutils.
59055         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
59056         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
59057         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
59058         White space changes only.
59059         * lib/makepath.c (make_path): Port to hosts where leading "//" is
59060         special.
59061         * lib/yesno.c: Include getline.h, not ctype.h.
59062         (yesno): Don't remove leading white space; POSIX doesn't allow it.
59063         Use getline to remove arbitrary restriction on response length.
59064
59065 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59066
59067         * config/srclist-update: Spell out "Street" in FSF postal
59068         mail address; this is the style the FSF seems to prefer.
59069
59070         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
59071         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
59072         this updates FSF postal mail address.
59073
59074         Sync from coreutils.
59075         * modules/unlinkdir: New file.
59076         * modules/yesno (Depends-on): Add getline.
59077         * MODULES.html.sh (File system functions): Add unlinkdir.
59078
59079 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59080
59081         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
59082         lib/strsep.h:
59083         Change the initial comment to refer to GPL, not LGPL.
59084         gnulib-tool will change it to LGPL as needed.
59085
59086         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
59087         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
59088         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
59089         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
59090         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
59091         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
59092         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
59093         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
59094         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
59095         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
59096         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
59097         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
59098         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
59099         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
59100         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
59101         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
59102         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
59103         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
59104         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
59105         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
59106         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
59107         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
59108         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
59109         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
59110         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
59111         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
59112         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
59113         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
59114         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
59115         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
59116         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
59117         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
59118         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
59119         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
59120         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
59121         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
59122         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
59123         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
59124         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
59125         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
59126         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
59127         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
59128         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
59129         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
59130         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
59131         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
59132         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
59133         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
59134         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
59135         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
59136         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
59137         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
59138         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
59139         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
59140         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
59141         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
59142         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
59143         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
59144         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
59145         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
59146         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
59147         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
59148         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
59149         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
59150         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
59151         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
59152         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
59153         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
59154         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
59155         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
59156         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
59157         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
59158         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
59159         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
59160         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
59161         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
59162         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
59163         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
59164         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
59165         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
59166         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
59167         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
59168         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
59169         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
59170         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
59171         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
59172         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
59173         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
59174         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
59175         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
59176         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
59177         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
59178         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
59179         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
59180         lib/yesno.c, lib/yesno.h:
59181         Update FSF postal mail address.
59182
59183 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59184
59185         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
59186         tests/test-memmem.c, tests/test-stpncpy.c:
59187         Update FSF postal mail address.
59188
59189 2005-05-13  Bruno Haible  <bruno@clisp.org>
59190
59191         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
59192         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
59193         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
59194         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
59195         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
59196         Add support for 64-bit integers in the MSVC compiler.
59197
59198 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59199
59200         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
59201
59202 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
59203
59204         * gnulib-tool (func_import): Sort and uniquify recommended includes.
59205
59206 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
59207
59208         * doc/getdate.texi (General date syntax): Don't say that date
59209         date --iso-8601=ns generates acceptable dates; it doesn't yet.
59210         Problem reported by Nic Ferrier.
59211
59212 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59213
59214         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
59215         specified in ai_socktype. Fix invalid ai_protocol
59216         check. ai_protocol is usually set to 0 or depending on
59217         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
59218         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
59219         ai_socktype / ai_protocol in the returned addrinfo structure.
59220
59221 2005-05-10  Simon Josefsson  <jas@extundo.com>
59222
59223         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
59224         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59225
59226 2005-05-10  Karl Berry  <karl@gnu.org>
59227
59228         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
59229         (from http://www.gnu.org/licenses).
59230         * doc/COPYING.LIB: also rename to COPYING.LESSER.
59231         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
59232         fdl.texi suffices.
59233
59234 2005-05-10  Karl Berry  <karl@gnu.org>
59235
59236         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
59237         (COPYING.DOC): remove.
59238
59239         * config/srclist-update: new FSF address.
59240
59241 2005-05-10  Derek Price  <derek@ximbiot.com>
59242
59243         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
59244         possible.
59245
59246 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59247             Bruno Haible  <bruno@clisp.org>
59248
59249         * modules/inet_ntop: New file.
59250         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59251         inet_ntop.
59252
59253 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59254             Bruno Haible  <bruno@clisp.org>
59255
59256         * m4/inet_ntop.m4: New file.
59257
59258 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59259             Bruno Haible  <bruno@clisp.org>
59260
59261         * lib/inet_ntop.h: New file.
59262         * lib/inet_ntop.c: New file, from glibc with modifications.
59263
59264 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
59265
59266         * modules/time_r (License): Change to LGPL.
59267         * modules/extensions (License): Change to LGPL.  Actually,
59268         the license is more permissive than that, but currently gnulib-tool
59269         doesn't know how to handle more-permissive licenses.
59270
59271         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
59272         Problem reported by Dave Love.
59273
59274 2005-05-08  Jim Meyering  <jim@meyering.net>
59275
59276         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
59277         blank.
59278
59279 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
59280
59281         * modules/argmatch (Depends-on): Add stdbool.
59282         * modules/backupfile (Depends-on): Likewise.
59283         * modules/chdir-long (Depends-on): Likewise.
59284         * modules/closeout (Depends-on): Likewise.
59285         * modules/cycle-check (Depends-on): Likewise.
59286         * modules/dirname (Depends-on): Likewise.
59287         * modules/fnmatch (Depends-on): Likewise.
59288         * modules/fsusage (Depends-on): Likewise.
59289         * modules/fwriteerror (Depends-on): Likewise.
59290         * modules/getcwd (Depends-on): Likewise.
59291         * modules/getloadavg (Depends-on): Likewise.
59292         * modules/hard-locale (Depends-on): Likewise.
59293         * modules/makepath (Depends-on): Likewise.
59294         * modules/mountlist (Depends-on): Likewise.
59295         * modules/nanosleep (Depends-on): Likewise.
59296         * modules/posixtm (Depends-on): Likewise.
59297         * modules/quotearg (Depends-on): Likewise.
59298         * modules/readtokens (Depends-on): Likewise.
59299         * modules/readtokens0 (Depends-on): Likewise.
59300         * modules/readutmp (Depends-on): Likewise.
59301         * modules/save-cwd (Depends-on): Likewise.
59302         * modules/strftime (Depends-on): Likewise.
59303         * modules/userspec (Depends-on): Likewise.
59304         * modules/utimecmp (Depends-on): Likewise.
59305         * modules/xgetcwd (Depends-on): Likewise.
59306         * modules/xnanosleep (Depends-on): Likewise.
59307         * modules/xstrtod (Depends-on): Likewise.
59308         * modules/yesno (Depends-on): Likewise.
59309
59310 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
59311
59312         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
59313         needless checks.
59314
59315 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59316
59317         Merge from coreutils.  Among other things,
59318         add bulletproofing for cases where stdin, stdout, or stderr are closed.
59319         * lib/fd-safer.c: New file.
59320         * lib/fcntl-safer.h, open-safer.c: Remove.
59321         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
59322         * lib/dup-safer.c: Include unistd-safer.h first.
59323         Don't include errno.h.
59324         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
59325         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
59326         * lib/file-type.c: Rely on file-type.h change.
59327         * lib/getloadavg.c: Include unistd-safer.h.
59328         (getloadavg): Use safer open.
59329         * lib/getusershell.c: Include "stdio-safer.h".
59330         (getusershell): Use safer fopen.
59331         * lib/long-options.c (long_options): Use NULL rather than 0.
59332         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
59333         'free'.
59334         * lib/modechange.c: Likewise.
59335         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
59336         (MODE_DONE): New constant.
59337         (struct mode_change): Remove 'next' member.
59338         (make_node_op_equals): New function; like the old one of the
59339         same name, except it allocates an array.
59340         (mode_compile, mode_create_from_ref): Use it.
59341         (mode_compile): Allocate result as an array, not a linked list.
59342         Parse octal string ourself, so that we catch mistakes like "+0".
59343         (mode_adjust): Arg is an array, not a linked list.
59344         * lib/modechange.c: Include stat-macros.h, xalloc.h.
59345         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
59346         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
59347         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
59348         Remove.  This is now stat-macros.h's job.
59349         (talloc): Remove.  All callers replaced by xalloc, so that
59350         our invokers don't have to worry about reporting memory failures.
59351         (make_node_op_equals): Remove.
59352         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59353         New constants.
59354         (struct mode_change): Moved here from modechange.h.
59355         (mode_append_entry): Remove.
59356         (mode_compile): Remove MASKED_OPS arg, since it encouraged
59357         apps to have incorrect behavior.  Use simpler algorithm for head
59358         and tail.  Don't futz with umask; that's now the job of mode_adjust.
59359         Detect more invalid usages rather than having somewhat-random behavior.
59360         Don't insert an "a=" action, as that leads to incorrect behavior.
59361         (mode_compile, mode_create_from_ref): Return NULL on error instead
59362         of an enum, since now there's only one way to have an error.  All
59363         callers changed.
59364         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
59365         at the correct time.  Simplify calculation of "+u" and its ilk.
59366         Don't mishandle "+X".
59367         (mode_free): Remove "register" and localize decls.
59368         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59369         (struct mode_change): Move to modechange.c; callers don't
59370         need to see this stuff.
59371         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
59372         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
59373         (mode_change, mode_adjust): Reflect the new signatures noted above.
59374         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
59375         that might redefine system include files.
59376         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
59377         (my_usleep): Use NULL rather than (void *) 0.
59378         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
59379         Use siginterrupt to specify that system calls should be interrupted.
59380         (rpl_nanosleep): Move initialization of suspended closer to call of
59381         my_usleep.
59382         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
59383         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
59384         (desirable_utmp_entry): New function.
59385         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
59386         using x2nrealloc, to simplify logic.
59387         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
59388         size calculation.  Do not assume utmp file is a regular file.
59389         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
59390         (READ_UTMP_CHECK_PIDS): New constant.
59391         * lib/save-cwd.c: Include unistd-safer.h.
59392         (save_cwd): Use fd_safer.
59393         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
59394         [!_LIBC] Include "stat-macros.h" instead.
59395         * lib/unistd-safer.h (fd_safer): New decl.
59396
59397 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59398
59399         * modules/getloadavg (Depends-on): Add unistd-safer.
59400         * modules/getusershell (Depends-on): Add stdio-safer.
59401         * modules/lstat (Depends-on): Remove xalloc.
59402         * modules/mkstemp (Depends-on): Add stat-macros.
59403         * modules/modechange (Depends-on): Remove xstrtol.
59404         Add stat-macros, xalloc.
59405         * modules/save-cwd (Depends-on): Add unistd-safer.
59406         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
59407         * modules/unistd-safer (Files): Add lib/fd-safer.c
59408         (Makefile.am): Remove lib_SOURCES.
59409
59410         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
59411         Remove fcntl-safer; unistd-safer supersedes it.
59412
59413 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59414
59415         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
59416         AC_HEADER_STAT.
59417         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
59418         (gl_PREREQ_CHOWN): Remove.
59419         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
59420         it.  Don't require AC_HEADER_STAT.
59421         (gl_PREREQ_LSTAT): Remove.
59422         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
59423         Don't require AC_HEADER_STAT.
59424         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
59425         (gl_PREREQ_RMDIR): Remove.
59426         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
59427         mention stat-macros.h or AC_HEADER_STAT, since we'll make
59428         the stat-macros module a prerequisite.
59429         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
59430         * m4/filemode.m4 (gl_FILEMODE): Likewise.
59431         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
59432         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
59433         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
59434         variable names.
59435         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
59436         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
59437         variable prefixes.
59438         * m4/fcntl-safer.m4: Remove.
59439         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
59440         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
59441         Invoke gl_PREREQ_FD_SAFER.
59442         (gl_PREREQ_FD_SAFER): New macro.
59443         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
59444         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
59445         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
59446         Remove duplicate call to AC_LIBOBJ(readutmp).
59447         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
59448
59449         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
59450         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
59451
59452 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59453
59454         * MODULES.html.sh (Misc): Add byteswap.
59455
59456 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59457
59458         * modules/getcwd (Depends-on): Add extensions.
59459         * modules/openat (Depends-on): Likewise.
59460
59461 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59462
59463         * modules/byteswap: New file.
59464
59465 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59466
59467         * m4/byteswap.m4: New file.
59468
59469 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59470
59471         * lib/byteswap_.h: New file.
59472
59473 2005-04-25  Karl Berry  <karl@gnu.org>
59474
59475         * m4/gettext.m4: Update from GNU gettext 0.14.4.
59476
59477 2005-04-25  Albert Chin  <china@thewrittenword.com>
59478
59479         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
59480         Toolkit C bug.
59481
59482 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
59483
59484         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
59485         (func_ln_if_changed) Remove forcibly for no error message
59486         in case file does not exist.
59487
59488 2005-04-19  Simon Josefsson  <jas@extundo.com>
59489
59490         * gnulib-tool (Options): Make --symlink mean --symbolic.
59491
59492 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
59493
59494         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
59495
59496 2005-04-16  Simon Josefsson  <jas@extundo.com>
59497
59498         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
59499
59500 2005-04-15  Simon Josefsson  <jas@extundo.com>
59501
59502         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
59503
59504 2005-04-15  Simon Josefsson  <jas@extundo.com>
59505
59506         * gnulib-tool: Rename --symlink to --symbolic.
59507
59508 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
59509
59510         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
59511         symbolic links to files instead of copying/moving.  Add --aux-dir,
59512         specifying directory relative --dir where auxiliary build tools
59513         are placed.
59514
59515 2005-04-14  Bruno Haible  <bruno@clisp.org>
59516
59517         * modules/allocsa (License): Change to LGPL.
59518         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59519
59520 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59521
59522         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
59523         that "UTC +1 second" continues to work.  Problem reported
59524         by Dmitry V. Levin.
59525         (relunit_snumber): New rule.
59526         (relunit): Use it.
59527
59528 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59529
59530         * lib/getdate.y (universal_time_zone_table): New constant.
59531         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
59532         universal_time_zone_table.
59533         (lookup_zone): Prefer universal_time_zone_table to
59534         local_time_zone_table, so that "GMT" time stamps are allowed in
59535         London during the summer.  Problem reported by Ian Abbott.
59536
59537 2005-04-12  Jim Meyering  <jim@meyering.net>
59538
59539         * lib/human.c (humblock): Set *options even when returning due to
59540         xstrtoumax conversion failure.  Thanks to a used-uninitialized
59541         warning from gcc-4.
59542
59543 2005-04-09  Jim Meyering  <jim@meyering.net>
59544
59545         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
59546         -Wuninitialized: initialize tm0.tm_year.
59547
59548 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59549
59550         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
59551         count, since there's no maximum.  All uses changed.
59552         Add member dsts_seen.
59553         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
59554         not being INT_MAX.
59555         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
59556         Use pc_rels_seen to decide whther a date is absolute.
59557
59558         * lib/getdate.y (number): Don't overwrite year.
59559         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
59560         check.
59561
59562 2005-04-02  Simon Josefsson  <jas@extundo.com>
59563
59564         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
59565         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
59566
59567 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
59568
59569         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
59570         where no absolute path name can be longer than PATH_MAX.
59571
59572 2005-03-27  Jim Meyering  <jim@meyering.net>
59573
59574         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
59575
59576 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
59577
59578         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
59579         "one's complement" -> "ones' complement" in comment, as per Knuth.
59580         "value of type" -> "type or expression" in comment.
59581         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
59582
59583 2005-03-26  Jim Meyering  <jim@meyering.net>
59584
59585         Comment nits.
59586         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
59587         Correct typos: s/or/of/.
59588
59589 2005-03-26  Jim Meyering  <jim@meyering.net>
59590
59591         * modules/check-include-files: Move to ../ and rename to...
59592         * check-module: ...this.
59593
59594 2005-03-25  Jim Meyering  <jim@meyering.net>
59595
59596         * modules/xvasprintf (Files): Add xalloc.h.
59597
59598 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59599
59600         * modules/gettext (Files): config/config.rpath ->
59601         build-aux/config.rpath
59602         * modules/iconv (Files): Likewise.
59603         Problem reported by Oskar Liljeblad.
59604
59605 2005-03-23  Jim Meyering  <jim@meyering.net>
59606
59607         * modules/check-include-files: New script to check for
59608         missing dependencies, multiple includes, etc.
59609
59610         * modules/c-strtold (Depends-on): Add xalloc.
59611         * modules/c-strtod (Depends-on): Add xalloc.
59612         * modules/hash (Depends-on): Add xalloc.
59613         (Files): Remove lib/xalloc.h.
59614
59615         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
59616         * modules/userspec (Files): Add lib/inttostr.h.
59617
59618 2005-03-23  Jim Meyering  <jim@meyering.net>
59619
59620         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
59621
59622 2005-03-22  Jim Meyering  <jim@meyering.net>
59623
59624         * modules/stat-macros: New module.
59625         * modules/canonicalize, modules/euidaccess, modules/file-type,
59626         * modules/filemode, modules/lchown, modules/makepath,
59627         * modules/rmdir, modules/stat: Depend on new stat-macros module
59628         rather than listing lib/stat-macros.h manually.
59629         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
59630
59631 2005-03-22  Jim Meyering  <jim@meyering.net>
59632
59633         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
59634
59635 2005-03-22  Bruno Haible  <bruno@clisp.org>
59636
59637         * config/srclist.txt: Replace target directory 'config' with
59638         'build-aux'.
59639         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
59640         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
59641         ../build-aux/.
59642
59643 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
59644
59645         * modules/chdir-long (Depends-on): Add mempcpy.
59646
59647         * modules/acl, modules/backupfile, modules/c-strtod,
59648         modules/c-strtold, modules/canon-host, modules/canonicalize,
59649         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
59650         modules/exclude, modules/exitfail, modules/file-type,
59651         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
59652         modules/getdate, modules/getline, modules/getpagesize,
59653         modules/getpass, modules/getugroups, modules/group-member,
59654         modules/hard-locale, modules/hash, modules/human, modules/idcache,
59655         modules/inttostr, modules/long-options, modules/makepath,
59656         modules/md5, modules/memcasecmp, modules/memcoll,
59657         modules/modechange, modules/mountlist, modules/path-concat,
59658         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
59659         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
59660         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
59661         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
59662         modules/strftime, modules/strndup, modules/strverscmp,
59663         modules/timespec, modules/unlocked-io, modules/userspec,
59664         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
59665         modules/yesno:
59666         Remove lib_SOURCES line from Makefile.am section, as this is now
59667         done automatically by the corresponding Autoconf macro.
59668
59669 2005-03-21  Jim Meyering  <jim@meyering.net>
59670
59671         Changes imported from coreutils.
59672
59673         * lib/cycle-check.c: Don't include xalloc.h.
59674
59675         * lib/path-concat.c: Don't include assert.h.
59676         (path_concat): Remove assertion that would have triggered
59677         for ABASE starting with more than one slash.
59678         Reported by Andreas Schwab.
59679
59680         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
59681         properly when ABASE is an absolute file name.
59682         Correct the description of this function.
59683         Include <assert.h>.
59684         Add an assertion and a test driver.
59685         This fixes a bug introduced on 2004-07-02.
59686         Andreas Schwab reported the resulting failure of cp --parents:
59687         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
59688
59689 2005-03-21  Jim Meyering  <jim@meyering.net>
59690
59691         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
59692         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
59693
59694 2005-03-21  Jim Meyering  <jim@meyering.net>
59695         and  Paul Eggert  <eggert@cs.ucla.edu>
59696
59697         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
59698         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
59699         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
59700         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
59701         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
59702         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
59703         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
59704         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
59705         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
59706         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
59707         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
59708         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
59709         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
59710         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
59711         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
59712         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
59713         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
59714         for these modules.
59715
59716 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
59717
59718         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
59719         (which shouldn't happen), generate nothing instead of returning 0
59720         immediately, so that nstrftime (NULL, ...) doesn't return 0.
59721
59722 2005-03-16  Bruno Haible  <bruno@clisp.org>
59723
59724         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
59725         HAVE_LONGLONG_64BIT.
59726
59727 2005-03-16  Bruno Haible  <bruno@clisp.org>
59728
59729         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
59730         HAVE_LONGLONG_64BIT.
59731
59732 2005-03-16  Bruno Haible  <bruno@clisp.org>
59733
59734         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
59735         HAVE_LONGLONG_64BIT.
59736
59737 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59738
59739         * lib/strftime.c (my_strftime): Prepend space to format so that we can
59740         reliably distinguish strftime failure from empty output on POSIX
59741         hosts.
59742
59743 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59744
59745         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
59746         (iconv_string): Don't guess a size-zero buffer, as that might cause
59747         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
59748         result would be 'too large', where 'too large' is (heuristically)
59749         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
59750         overflow concerns.  This will prevent some unwanted malloc failures
59751         when the inputs are very large.
59752
59753 2005-03-15  Karl Berry  <karl@gnu.org>
59754
59755         * config/srclist.txt (config.rpath): from gettext.
59756         * config/config.rpath: update.
59757
59758 2005-03-15  Bruno Haible  <bruno@clisp.org>
59759
59760         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
59761         to 'negate'.
59762
59763         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
59764         variable.
59765
59766         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
59767         results.
59768
59769 2005-03-14  Simon Josefsson  <jas@extundo.com>
59770
59771         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
59772         <fx@gnu.org>.
59773
59774 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
59775
59776         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
59777         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
59778         intprops.h.
59779         * lib/strtol.c: Likewise.
59780
59781 2005-03-14  Jim Meyering  <jim@meyering.net>
59782
59783         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
59784         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
59785         to be nonzero so that we (and caller) can detect the difference
59786         between a valid zero-length expansion and an error return, even
59787         when the underlying strftime fails before writing anything into
59788         that location.
59789
59790 2005-03-14  Bruno Haible  <bruno@clisp.org>
59791
59792         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
59793         Update from GNU gettext 0.14.3.
59794
59795 2005-03-10  Jim Meyering  <jim@meyering.net>
59796
59797         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
59798
59799 2005-03-10  Jim Meyering  <jim@meyering.net>
59800
59801         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
59802         so that this module works on systems without fchdir.
59803
59804 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
59805
59806         Factor int-properties macros into a single file, except for
59807         glibc-related files.
59808         * lib/intprops.h: New file.
59809         * lib/getloadavg.c: Include it instead of limits.h.
59810         (INT_STRLEN_BOUND): Remove.
59811         * lib/human.c: Include intprops.h.
59812         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
59813         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
59814         302/1000.
59815         * lib/inttostr.h: Include intprops.h instead of limits.h.
59816         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
59817         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
59818         for consistency with intprops.h.
59819         (time_t_is_integer, twos_complement_arithmetic): Use them.
59820         * lib/sig2str.h: Include <signal.h>, intprops.h.
59821         (INT_STRLEN_BOUND): Remove.
59822         * lib/strftime.c (TYPE_SIGNED): Remove.
59823         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
59824         * lib/strtol.c: Adjust comments to match intprops.h.
59825         * lib/userspec.c: Include intprops.h.
59826         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
59827         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
59828         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
59829         instead of rolling our own expressions.
59830         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
59831
59832         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
59833         instead of int.
59834         (my_strftime): Do not mishandle years close to INT_MAX, by doing
59835         the right thing even if adding 1900 would overflow.  Similarly
59836         for tm_mon + 1 and tm_yday + 1.
59837         Make %Y always equivalent to %C%y, and similarly for %G and %g.
59838         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
59839         (DO_SIGNED_NUMBER): New macro.
59840         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
59841
59842 2005-03-07  Bruno Haible  <bruno@clisp.org>
59843
59844         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
59845
59846 2005-03-07  Bruno Haible  <bruno@clisp.org>
59847
59848         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
59849
59850 2005-03-04  Derek R. Price  <derek@ximbiot.com>
59851
59852         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
59853         (func_import): Only replace files via --import when they have actually
59854         changed.
59855
59856 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59857
59858         * m4/mmap-anon.m4: New file.
59859         * m4/pagealign_alloc.m4: New file.
59860
59861 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59862             Bruno Haible  <bruno@clisp.org>
59863
59864         * modules/pagealign_alloc: New file.
59865         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
59866
59867 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59868             Bruno Haible  <bruno@clisp.org>
59869
59870         * lib/pagealign_alloc.h: New file.
59871         * lib/pagealign_alloc.c: New file.
59872
59873 2005-03-03  Bruno Haible  <bruno@clisp.org>
59874
59875         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
59876         Use an all-permissive copyright notice, recommended by RMS.
59877
59878 2005-03-02  Bruno Haible  <bruno@clisp.org>
59879
59880         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
59881         of AIX, the replacement has to be done only after <string.h> is
59882         included, therefore not in config.h. stpncpy.h does the replacement,
59883         and stpncpy.c uses it.
59884
59885 2005-03-02  Bruno Haible  <bruno@clisp.org>
59886
59887         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
59888         stpncpy.c uses it.
59889
59890 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59891
59892         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
59893         The workaround isn't strictly needed for POSIX conformance, and
59894         it's too much of a pain to configure and maintain.  We'll ask
59895         people to fix their kernels instead.
59896         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
59897         (NANOSLEEP_BUG_WORKAROUND): Remove.
59898         (xnanosleep): Remove the workaround.
59899
59900 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59901
59902         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
59903         Reported by Derek Price.
59904         (Include): Add "timespec.h".
59905
59906         * modules/xnanosleep (Depends-on): Remove gethrxtime.
59907
59908 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59909
59910         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
59911         to detect nanosleep bug.
59912
59913 2005-03-01  Bruno Haible  <bruno@clisp.org>
59914
59915         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
59916
59917 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
59918
59919         * modules/gethrxtime: New file.
59920         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
59921         (Depends-on): Add gethrxtime.
59922         (configure.ac): Add gl_XNANOSLEEP.
59923         (Makefile.am): Remove lib_SOURCES line.
59924
59925 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59926
59927         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
59928         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
59929
59930 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59931
59932         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
59933         * lib/timespec.h (gettime): Return void, since it always
59934         succeeds now.  All uses changed.
59935         * lib/gettime.c (gettime) Likewise.
59936         [HAVE_NANOTIME]: Prefer nanotime.
59937         Assume gettimeofday succeeds, as POSIX requires.
59938         Assime time () succeeds, since other code already does.
59939         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
59940         (timespec_subtract): Remove.
59941         (NANOSLEEP_BUG_WORKAROUND): New constant.
59942         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
59943         things considerably.  Use it only on GNU/Linux hosts, since the
59944         workaround shouldn't be needed elsewhere.
59945
59946 2005-02-24  Bruno Haible  <bruno@clisp.org>
59947
59948         * modules/gettext (Files): Add m4/glibc2.m4.
59949
59950 2005-02-24  Bruno Haible  <bruno@clisp.org>
59951
59952         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
59953         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
59954         * m4/progtest.m4:
59955         Update from GNU gettext 0.14.2.
59956         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
59957
59958 2005-02-24  Bruno Haible  <bruno@clisp.org>
59959
59960         * lib/localcharset.c: Update from GNU gettext 0.14.2.
59961         * lib/config.charset: Update from GNU gettext 0.14.2.
59962
59963 2005-02-24  Bruno Haible  <bruno@clisp.org>
59964
59965         * lib/gettext.h: Update from GNU gettext 0.14.2.
59966
59967 2005-02-23  Simon Josefsson  <jas@extundo.com>
59968
59969         * m4/iconvme.m4: New file.
59970
59971 2005-02-23  Jim Meyering  <jim@meyering.net>
59972
59973         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
59974         change.
59975         Thanks to Bruno Haible for catching it.
59976
59977 2005-02-22  Simon Josefsson  <jas@extundo.com>
59978
59979         * modules/iconvme: New file.
59980
59981         * MODULES.html.sh: Add iconvme.
59982
59983 2005-02-22  Simon Josefsson  <jas@extundo.com>
59984
59985         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
59986
59987 2005-02-22  Simon Josefsson  <jas@extundo.com>
59988
59989         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
59990
59991 2005-02-22  Jim Meyering  <jim@meyering.net>
59992
59993         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
59994         s/ifndef/ifdef/.
59995
59996 2005-02-20  Neil Conway  <neilc@samurai.com>
59997
59998         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
59999         returned by OSX/Darwin if the specified buffer is not large
60000         enough for the hostname.
60001
60002 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60003
60004         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
60005         pass it to _help, otherwise the latter coredumps trying to
60006         dereference state.root_argp.
60007
60008 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60009
60010         * modules/chdir-long (Depends-on): Add memrchr.
60011         * modules/memrchr (Files): Add lib/memrchr.h.
60012         (Include): "memrchr.h".
60013
60014 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60015
60016         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
60017
60018 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60019
60020         * lib/memrchr.h: New file.
60021         * lib/chdir-long.c: Include it.
60022         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
60023         Don't bother including stddef.h.
60024
60025 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60026
60027         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
60028         inclusion.
60029         Include <sys/types.h>, for dev_t.
60030         (ME_DUMMY, ME_REMOTE): Move from here....
60031         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
60032         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
60033         Dmitry V. Levin.
60034         Include mountlist.h first, to test the interface.
60035
60036 2005-01-29  Bruno Haible  <bruno@clisp.org>
60037
60038         * lib/progname.c (program_name): Initialize.
60039         Needed when linking statically on MacOS X.
60040
60041 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60042
60043         Sync from coreutils.
60044         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
60045         (Depends-on): Add c-strtod.
60046         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
60047
60048 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60049
60050         Sync from coreutils.
60051         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
60052
60053         Remove files that are specific to coreutils.
60054         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
60055
60056 2005-01-28  Bruno Haible  <bruno@clisp.org>
60057
60058         * modules/javacomp: New file.
60059         * MODULES.html.sh (Java): Add javacomp.
60060
60061 2005-01-28  Bruno Haible  <bruno@clisp.org>
60062
60063         * m4/javacomp.m4: New file, from GNU gettext.
60064
60065 2005-01-28  Bruno Haible  <bruno@clisp.org>
60066
60067         * lib/javacomp.sh.in: New file, from GNU gettext.
60068         * lib/javacomp.h: New file, from GNU gettext.
60069         * lib/javacomp.c: New file, from GNU gettext.
60070
60071 2005-01-26  Simon Josefsson  <jas@extundo.com>
60072
60073         * lib/gai_strerror.c: Use GPL in header.
60074
60075 2005-01-26  Bruno Haible  <bruno@clisp.org>
60076
60077         * modules/javaexec: New file.
60078         * MODULES.html.sh (Java): Add javaexec.
60079
60080 2005-01-26  Bruno Haible  <bruno@clisp.org>
60081
60082         * m4/javaexec.m4: New file, from GNU gettext.
60083
60084 2005-01-26  Bruno Haible  <bruno@clisp.org>
60085
60086         * lib/javaexec.sh.in: New file, from GNU gettext.
60087         * lib/javaexec.h: New file, from GNU gettext.
60088         * lib/javaexec.c: New file, from GNU gettext.
60089
60090 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60091
60092         * modules/lchown (Depends-on): Remove lchown.h
60093
60094 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60095
60096         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
60097         must be defined if the header file was not found, in order
60098         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
60099
60100 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60101
60102         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
60103         initializers for struct pentry_state.
60104         (__argp_error): Check return value of __asprintf
60105         (__argp_failure): Translate error message
60106
60107         * lib/argp-parse.c: Removed braces around the expansion of N_()
60108
60109 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60110
60111         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
60112         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
60113         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
60114         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
60115         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
60116         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
60117         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
60118         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
60119         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
60120         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
60121         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
60122         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
60123         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
60124         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
60125         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
60126         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
60127         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
60128         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
60129         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
60130         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
60131         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
60132         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
60133         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
60134         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
60135         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
60136         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
60137         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
60138         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
60139         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
60140         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
60141         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
60142         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
60143         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
60144         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
60145         xstrtol.m4, xstrtoumax.m4, yesno.m4:
60146         Use an all-permissive copyright notice, recommended by RMS.
60147
60148 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
60149
60150         * modules/chdir-long (Depends-on): Remove mempcpy.
60151
60152 2005-01-21  Jim Meyering  <jim@meyering.net>
60153
60154         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
60155         same value as for Solaris 9.
60156
60157         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
60158         component length.  This included changing the parameter to be
60159         of type `char *' rather than `char const *'.
60160         * lib/chdir-long.h (chdir_long): Update prototype.
60161
60162         * lib/openat.c (fdopendir, fstatat): New functions.
60163         * lib/openat.h: Include headers required for use of DIR and struct
60164         stat.
60165         [AT_SYMLINK_NOFOLLOW]: Define.
60166         (fdopendir, fstatat): Add prototypes.
60167
60168 2005-01-21  Bruno Haible  <bruno@clisp.org>
60169
60170         * modules/classpath: New file.
60171         * MODULES.html.sh (Java): Add classpath.
60172
60173 2005-01-21  Bruno Haible  <bruno@clisp.org>
60174
60175         * lib/classpath.h: New file, from GNU gettext.
60176         * lib/classpath.c: New file, from GNU gettext.
60177
60178 2005-01-20  Simon Josefsson  <jas@extundo.com>
60179
60180         * modules/version-etc-fsf: New file.
60181
60182 2005-01-20  Simon Josefsson  <jas@extundo.com>
60183
60184         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
60185         * lib/version-etc.c: Remove version_etc_copyright.
60186         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
60187         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
60188
60189 2005-01-20  Simon Josefsson  <jas@extundo.com>
60190
60191         * lib/base64.h (isbase64): Add.
60192
60193         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
60194         using a unsigned prototype, don't inline.
60195         (base64_decode): Use it.
60196
60197 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60198
60199         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
60200         it.
60201
60202 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60203
60204         * lib/save-cwd.c (save_cwd): Remove code to support the case
60205         where fchdir is missing or flaky.
60206
60207 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60208
60209         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
60210
60211 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60212
60213         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
60214         AC_LIBSOURCES now does this.
60215         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
60216         with new ullong_max module.
60217
60218 2005-01-19  Bruno Haible  <bruno@clisp.org>
60219
60220         * modules/sh-quote: New file.
60221         * MODULES.html.sh (Executing programs): Add sh-quote.
60222
60223 2005-01-19  Bruno Haible  <bruno@clisp.org>
60224
60225         * lib/sh-quote.h: New file, from GNU gettext.
60226         * lib/sh-quote.c: New file, from GNU gettext.
60227
60228 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60229
60230         Merge from coreutils.
60231         * m4/ullong_max.m4: New file.
60232         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
60233         (gl_MACROS): Assume localeconv exists.
60234
60235 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60236
60237         Merge changes from coreutils, as described below in several
60238         changelogs dated today.
60239
60240         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
60241         (O_DIRECTORY): Remove; not needed here, since "." must be
60242         a directory.  All uses removed.
60243         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
60244         universal on Suns, and we also need to test for IRIX.
60245         Revamp code to use 'if' rather than '#if'.
60246         Avoid unnecessary comparison of cwd->desc to 0.
60247
60248         * lib/utimens.c (futimens): Robustify the previous patch, by checking
60249         for known valid error numbers rather than observed invalid ones.
60250
60251 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60252
60253         * modules/ullong_max: New file.
60254
60255         * modules/chdir-long, modules/openat: New files.
60256         * modules/save-cwd (Depends-on): Depend on chdir-long.
60257         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
60258
60259 2005-01-18  Jim Meyering  <jim@meyering.net>
60260
60261         Merge from coreutils.
60262         * m4/chdir-long.m4, m4/openat.m4: New files.
60263         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
60264         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
60265         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
60266         is sane and DOES follow symlinks.  Besides, testing 20 different
60267         systems found no broken chown implementations.
60268         Prompted by a change in rsync's copy of this macro.
60269         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
60270
60271         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
60272
60273         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
60274         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
60275         NULL-means-set-to-current-time semantics.
60276         Remove temporary file immediately, rather than waiting
60277         for configure's at-exit trap code to do it.
60278
60279 2005-01-18  Jim Meyering  <jim@meyering.net>
60280
60281         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60282
60283         * lib/utimens.c (futimens): Account for the fact that futimes
60284         can also fail with errno == ENOSYS or errno == ENOENT.
60285         Patch from Dmitry V. Levin.
60286
60287         Change the name of the robust chdir function from chdir to chdir_long.
60288         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
60289         (restore_cwd): Use chdir_long, not chdir.
60290         * lib/chdir-long.c: Renamed from chdir.c.
60291         * lib/chdir-long.h: Renamed from chdir.h.
60292         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
60293         Hurd.
60294
60295 2005-01-18  Bruno Haible  <bruno@clisp.org>
60296
60297         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
60298         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
60299         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
60300         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
60301         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
60302         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
60303         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
60304         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
60305         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
60306         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
60307         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
60308         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
60309         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
60310         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
60311         Use an all-permissive copyright notice, recommended by RMS.
60312
60313 2005-01-18  Bob Proulx  <bob@proulx.com>
60314
60315         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
60316         simplify offsetof() macro construct to avoid compile failure with
60317         native HP-UX 11.0 ANSI C compiler.
60318
60319 2005-01-17  Bruno Haible  <bruno@clisp.org>
60320
60321         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
60322         redundant because stpncpy.m4 takes care of it.
60323
60324 2005-01-17  Bruno Haible  <bruno@clisp.org>
60325
60326         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
60327
60328 2005-01-17  Bruno Haible  <bruno@clisp.org>
60329
60330         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
60331         used.
60332
60333 2005-01-17  Bruno Haible  <bruno@clisp.org>
60334
60335         * lib/fwriteerror.h (fwriteerror): Change specification to include
60336         fclose.
60337         * lib/fwriteerror.c: Include <stdbool.h>.
60338         (fwriteerror): At the end, close the file stream. Record whether
60339         stdout was already closed.
60340
60341 2005-01-17  Bruno Haible  <bruno@clisp.org>
60342
60343         * lib/execute.c (environ): Declare if needed.
60344         * lib/pipe.c (environ): Likewise.
60345         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
60346
60347 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60348
60349         * modules/argp: Depend on vsnprintf
60350
60351 2005-01-10  Jim Meyering  <jim@meyering.net>
60352
60353         * modules/closeout (Depends-on): Add atexit.
60354
60355 2005-01-06  Bruno Haible  <bruno@clisp.org>
60356
60357         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
60358
60359 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60360
60361         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
60362         definitions to be after all include files, to avoid collisions.
60363         Problem reported by Bob Proulx.
60364
60365 2005-01-04  Jim Meyering  <jim@meyering.net>
60366
60367         Changes imported from coreutils.
60368         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
60369         as the mkstemp template, use a temporary directory and an
60370         8.3-friendly template to avoid trouble on systems like DJGPP.
60371         Reported by Juan M. Guerrero via Stepan Kasal.
60372         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
60373         close. Remove the temporary directory right away, rather than waiting
60374         for configure's at-exit trap code to do it.
60375         Suggestion from Stepan Kasal.
60376
60377 2005-01-01  Simon Josefsson  <jas@extundo.com>
60378
60379         * gnulib-tool: Print #include directives when --import'ing.
60380
60381 2004-12-28  Simon Josefsson  <jas@extundo.com>
60382
60383         * tests/test-base64.c: Include required header files.  Remove
60384         unused variables.
60385
60386 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60387
60388         * modules/error (Depends-on): Remove gettext.
60389
60390 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60391
60392         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
60393         not needed.  This removes a dependency on the gettext module.
60394         [defined _LIBC]: Do not include <libintl.h>; not needed.
60395
60396 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60397
60398         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
60399         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
60400
60401 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60402
60403         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
60404         HAVE_DECL_STRTOLD.
60405
60406 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60407
60408         * modules/getdate (Depends-on): Remove alloca-opt.
60409
60410 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60411
60412         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
60413
60414 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60415
60416         * lib/argp-parse.c: Include <stddef.h>.
60417         (alignof, alignto): New macros.
60418         (parser_init): Don't assume that void * is aligned sufficiently
60419         for struct option.
60420
60421         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
60422         need to extend the stack.
60423         (YYINITDEPTH): New macro, so that the initial stack isn't overly
60424         large.
60425
60426 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60427
60428         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
60429
60430 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60431
60432         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
60433         (2004-10-24) change.  Apparently this was a false alarm.
60434
60435         * modules/getdate: Depend on alloca-opt, not alloca.
60436
60437 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60438
60439         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
60440         Remove now-obsolete comment about AIX.
60441         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
60442         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
60443         (YYMAXDEPTH): New macro.
60444
60445 2004-12-18  Simon Josefsson  <jas@extundo.com>
60446
60447         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
60448
60449 2004-12-18  Bruno Haible  <bruno@clisp.org>
60450
60451         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
60452
60453 2004-12-18  Bruno Haible  <bruno@clisp.org>
60454
60455         * lib/fatal-signal.c (fatal_signals): Make non-const.
60456         (init_fatal_signals): New function.
60457         (uninstall_handlers, install_handlers): Ignore signals that were set to
60458         SIG_IGN.
60459         (at_fatal_signal): Call init_fatal_signals.
60460         (init_fatal_signal_set): Likewise. Ignore signals that were set to
60461         SIG_IGN.
60462         Reported by Paul Eggert.
60463
60464 2004-12-18  Bruno Haible  <bruno@clisp.org>
60465
60466         * doc/alloca.texi: New file.
60467         * doc/alloca-opt.texi: New file.
60468
60469 2004-12-17  Jim Meyering  <jim@meyering.net>
60470
60471         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
60472         Otherwise, install-sh could exit with improper exit status when
60473         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
60474
60475 2004-12-16  Simon Josefsson  <jas@extundo.com>
60476
60477         * tests/test-base64.c: Add license.
60478
60479 2004-12-15  Stepan Kasal  <address@hidden>
60480
60481         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
60482
60483 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
60484
60485         * modules/getcwd (Files): Add m4/d-ino.m4.
60486         Suggested by Mark D. Baushke.
60487
60488 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60489
60490         * lib/getdate.y (textint): New member "negative".
60491         (time_zone_hhmm): New function.
60492         Expect 14 shift-reduce conflicts, not 13.
60493         (o_colon_minutes): New rule.
60494         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
60495         (yylex): Set the "negative" member of signed numbers.
60496
60497 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60498
60499         * doc/getdate.texi (Time of day items, Time zone items):
60500         Describe new formats +00:00, UTC+00:00.
60501
60502 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60503
60504         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
60505         spurious "-l"s.  Problem reported by Stepan Kasal.
60506
60507 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
60508
60509         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
60510         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
60511
60512 2004-12-04  Simon Josefsson  <jas@extundo.com>
60513
60514         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
60515         Vandoorselaere <yoann@prelude-ids.org>.
60516
60517 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60518
60519         Changes imported from coreutils.
60520         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
60521         exist.
60522         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
60523
60524 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60525
60526         Changes imported from coreutils.
60527         * lib/hard-locale.c: Assume <locale.h> exists.
60528         Include "strdup.h".
60529         (GLIBC_VERSION): New macro.
60530         (hard_locale): Assume setlocale exists.
60531         Rewrite to avoid #ifdef.
60532         Use strdup rather than malloc + strcpy.
60533         * lib/human.c: Assume <locale.h> exists.
60534         (human_readable): Assume localeconv exists.
60535
60536 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60537
60538         * modules/hard-locale (Depends-on): Add strdup.
60539
60540 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60541
60542         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
60543         convert T2, not T.  (Imported from libc.)
60544
60545 2004-11-30  Simon Josefsson  <jas@extundo.com>
60546
60547         * modules/restrict (License): Change to LGPL.
60548
60549 2004-11-30  Simon Josefsson  <jas@extundo.com>
60550
60551         * m4/restrict.m4: Add copyright and copying conditions.
60552
60553 2004-11-30  Simon Josefsson  <jas@extundo.com>
60554
60555         * m4/base64.m4: New file.
60556
60557 2004-11-30  Simon Josefsson  <jas@extundo.com>
60558
60559         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
60560         base64.
60561
60562         * tests/test-base64.c: New file.
60563
60564         * modules/base64: New file.
60565
60566 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60567
60568         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
60569         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
60570
60571         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
60572
60573 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60574
60575         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
60576         (__getcwd.c): Don't restore errno; glibc doesn't.
60577         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
60578         first, falling back to our code only if its results look suspicious.
60579         Ensure that the resulting buffer is only as large as necessary.
60580
60581         * lib/readutmp.c: Include readutmp.h first.
60582         Include <errno.h>, since readutmp.h no longer does that.
60583         * lib/readutmp.h: Don't include <errno.h>,
60584         <sys/param.h>, <time.h>; not needed to establish interface.
60585         (errno): Remove decl.
60586         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
60587         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
60588         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
60589
60590 2004-11-28  Simon Josefsson  <jas@extundo.com>
60591
60592         * lib/base64.h, base64.c: New file.
60593
60594 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60595
60596         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
60597
60598 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60599
60600         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
60601         (Depends-on): Remove pathmax, same.  Add mempcpy.
60602         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
60603         (Makefile.am): Append getcwd.h to lib_SOURCES.
60604         (Include): Add getcwd.h.
60605         (Maintainer): Change from Jim Meyering to "all, glibc",
60606         since getdate now uses intended-for-glibc code.
60607         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
60608         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
60609
60610 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60611
60612         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
60613         HP's ANSI C compiler.
60614         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
60615         Declaring int functions causes warnings on some modern systems and
60616         shouldn't be needed to compile on ancient ones.
60617         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
60618         defined.
60619
60620         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
60621         with the following changes.
60622         (__set_errno): Parenthesize properly.
60623         Include <stdbool.h>.
60624         (MIN, MAX, MATCHING_INO): New macros.
60625         (__getcwd): Define with prototype, not K&R form.
60626         Use heuristics to allocate default buffer on stack if possible.
60627         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
60628         behavior, and to avoid the PATH_MAX limit when computing
60629         ../../../../...
60630         Use MATCHING_INO to compare inode number to file.
60631         Check for arithmetic overflow in size calculations.
60632         Fix bug in reallocation of dot array that caused getcwd to fail
60633         on directories nested deeper than 75.
60634         Be more careful about saving errno on error.
60635         Do not use realloc; use only free+malloc, as this is a bit
60636         more flexible and avoids a needless copy operation.
60637         Do not inspect st_dev and st_ino for symbolic links; POSIX
60638         doesn't specify the latter.
60639         Check for closedir errors.
60640         Avoid needless casts.
60641         Use "#ifdef weak_alias" around weak_alias, to be like other
60642         glibc code.
60643         The following changes to getcwd.c have effect only when used in
60644         gnulib; they have no effect inside glibc proper.
60645         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
60646         as alloca isn't used.
60647         (alloca, __alloca): Likewise.
60648         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
60649         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60650         unconditionally, as gnulib assumes C89 or better.
60651         Do not include <sys/param.h>.
60652         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
60653         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
60654         better.
60655         (NULL) [!defined NULL]: Remove; we assume C89 or better.
60656         Include <dirent.h> in a way that is compatible with modern Autoconf.
60657         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
60658         New macros, if not already defined.
60659         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
60660         Use "_LIBC", not "defined _LIBC", for consistency.
60661         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
60662         a mempcpy module.
60663         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
60664         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
60665         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
60666         credit only to Jim Meyering and adjust the copyright dates.
60667         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
60668         <stdlib.h>, <unistd.h>, "pathmax.h".
60669         Instead, include "xgetcwd.h" (first) and "getcwd.h".
60670         (INITIAL_BUFFER_SIZE): Remove.
60671         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
60672
60673 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60674
60675         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
60676         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
60677         Use the _ONCE methods, for efficiency.
60678         Check for fcntl.h.  In test program, include <errno.h>
60679         and <fcntl.h> if available.  Remove old K&R cruft from
60680         test program.  Check for common errors in GNU/Linux,
60681         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
60682         don't do AC_LIBOBJ, as that's getcwd.m4's job.
60683         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
60684         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
60685         name accordingly.
60686         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
60687         accommodate new getcwd.c.
60688         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
60689         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
60690         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
60691         that's all we need now.
60692
60693 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60694
60695         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
60696         argp-parse.c depends on getopt internals, that means we should
60697         always use our getopt, to be on the safe side.
60698         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
60699         order not to spoil the result of an eventual previous invocation
60700         of gl_GETOPT_SUBSTITUTE.
60701
60702 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60703
60704         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
60705         redefinition warnings. To avoid them, include the defines
60706         in `#if !defined __need_getopt ... #endif'. The only place
60707         where __getopt_argv_const is used is in definitions
60708         of getopt_long and getopt_long_only below, which are as well
60709         protected by `#ifndef __need_getopt'.
60710         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
60711         __need_getopt after including <stdio.h> and <unistd.h> These
60712         headers might have defined it.
60713
60714 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60715
60716         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
60717
60718 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60719
60720         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
60721         (futimens): New function, which uses futimes if available.
60722         (futimens, utimens): Support timespec==NULL, with same semantics
60723         as utime and utimens.
60724         * lib/utimens.h (futimens): New decl.
60725
60726 2004-11-23  Jim Meyering  <jim@meyering.net>
60727
60728         * lib/getopt_.h: Remove trailing blanks.
60729
60730 2004-11-23  Jim Meyering  <jim@meyering.net>
60731
60732         * lib/__fpending.c: Add comment.
60733
60734 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
60735
60736         * modules/canonicalize (Depends-on): Add xreadlink.
60737         Problem reported by James Youngman.
60738
60739 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60740
60741         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
60742         New macros.
60743         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
60744         optopt): Use them instead of invoking ## directly; otherwise, the
60745         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
60746
60747 2004-11-19  Bruno Haible  <bruno@clisp.org>
60748
60749         * lib/strtok_r.c: Move comments from here...
60750         * lib/strtok_r.h: ... to here.
60751
60752 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60753
60754         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
60755         implementations that mishandle size_t overflow.
60756
60757 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60758
60759         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
60760         might fail.  Problem reported by Yoann Vandoorselaere.
60761         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
60762         implementations that mishandle size_t overflow.
60763
60764 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60765
60766         * modules/canon-host (Depends-on): Add strdup.
60767
60768 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60769
60770         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
60771
60772 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60773
60774         * lib/canon-host.c: Include "strdup.h".
60775         (canon_host): Use getaddrinfo if available, so that IPv6 works.
60776         Use strdup instead of malloc/strcpy to duplicate strings.
60777
60778         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
60779         (human_space_before_unit): New constant.
60780         * lib/human.c (human_readable): Support it.
60781
60782         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
60783         (xgetcwd): Set errno correctly when failing.
60784         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
60785         the failure is actually due to a PATH_MAX problem.
60786
60787         Further getopt changes to make it more likely that glibc will
60788         buy the changes back.
60789         * lib/getopt.c (POSIXLY_CORRECT): New constant.
60790         (getopt): Use it, so to preserve glibc semantic
60791         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
60792         when compiling for libc.
60793         * lib/getopt_.h (__getopt_argv_const): Bring it back.
60794         (getopt_long, getopt_long_only): Use it.
60795
60796         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60797         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
60798         (getopt): Argv is now char * const *, as per standard.
60799         (_getopt_internal_r, _getopt_internal): Argv is now char **,
60800         not char *__getopt_argv_const *.
60801         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60802         _getopt_long_only_r): Likewise.
60803         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
60804         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60805         _getopt_long_r, _getopt_long_only_r): Likewise.
60806         * lib/getopt_.h (__getopt_argv_const): Remove.
60807         (getopt): Argv is now char * const *, as per standard.
60808
60809         * lib/getdate.y (tORDINAL): New token.
60810         (day, relunit): Allow it for relative times.
60811         (relative_time_table): Use tORDINAL for ordinals.
60812
60813 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60814
60815         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
60816         Document that "second" isn't allowed as an ordinal number.
60817
60818 2004-11-16  Jim Meyering  <jim@meyering.net>
60819
60820         * modules/closeout (Depends-on): Add fpending.
60821
60822 2004-11-15  Jim Meyering  <jim@meyering.net>
60823
60824         * lib/closeout.c: Include "__fpending.h" once again.
60825         Include <stdbool.h>.
60826         (close_stdout): Don't fail just because stdout was closed initially,
60827         since some programs don't write to stdout in the normal course of
60828         operation (other than --version and --help), and we don't want this
60829         function to make e.g. `touch file >&-' fail.
60830         But do fail if it was closed and someone has tried to write to it.
60831         E.g., `printf foo >&-' must fail.
60832
60833 2004-11-13  Jim Meyering  <jim@meyering.net>
60834
60835         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
60836
60837 2004-11-12  Simon Josefsson  <jas@extundo.com>
60838
60839         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
60840         small doc fix is still pending.
60841
60842 2004-11-11  Simon Josefsson  <jas@extundo.com>
60843
60844         * modules/strtok_r: New file.
60845
60846         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60847         strtok_r.
60848
60849 2004-11-11  Simon Josefsson  <jas@extundo.com>
60850
60851         * m4/strtok_r.m4: New file.
60852
60853         * m4/getopt.m4: Replace opterr.
60854
60855 2004-11-11  Simon Josefsson  <jas@extundo.com>
60856
60857         * lib/strtok_r.h, strtok_r.c: New file.
60858
60859 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60860
60861         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
60862         of replacing opterr, getopt, etc.  This should handle the
60863         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
60864
60865 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60866
60867         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
60868         we can stop lying to compilers about the constness of argv when we
60869         are compiled outside glibc.
60870         (getopt, getopt_long, getopt_long_only): Use it.
60871         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60872         _getopt_internal, getopt): Likewise.
60873         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60874         _getopt_long_only_r): Likewise.
60875         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60876         _getopt_long_r, _getopt_long_only_r): Likewise.
60877
60878         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
60879         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
60880         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
60881         the other external symbols.
60882         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
60883         declaration, since the above renaming now works around collisions.
60884
60885 2004-11-11  Jim Meyering  <jim@meyering.net>
60886
60887         * lib/linebreak.c: Remove trailing blanks.
60888         * lib/alloca_.h: Likewise.
60889         * lib/acosl.c: Likewise.
60890         * lib/euidaccess.c: Likewise.
60891         * lib/allocsa.h: Likewise.
60892
60893 2004-11-10  Simon Josefsson  <jas@extundo.com>
60894
60895         * m4/getaddrinfo.m4: New file.
60896
60897 2004-11-10  Simon Josefsson  <jas@extundo.com>
60898
60899         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
60900
60901 2004-11-10  Simon Josefsson  <jas@extundo.com>
60902
60903         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60904         getaddrinfo.
60905
60906         * modules/getaddrinfo: New file.
60907
60908 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60909
60910         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
60911
60912 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60913
60914         * lib/mktime.c (SHR): New macro, which is a portable
60915         substitute for >> that should work even on Crays.
60916         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
60917         Problem reported by Mark D. Baushke in
60918         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
60919         * lib/getdate.y (SHR): Likewise.
60920         (tm_diff): Use it.
60921         * lib/strftime.c (SHR): Likewise.
60922         (tm_diff): Use it.
60923         * lib/quotearg.c (struct quoting_options): Use unsigned int for
60924         quote_these_too, so that right shifts are well defined.  All uses
60925         changed.
60926
60927 2004-11-10  Jim Meyering  <jim@meyering.net>
60928
60929         Ensure that no close failure goes unreported.
60930         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
60931         return early when it seems there's nothing to flush.
60932         Don't include __fpending.h.
60933
60934 2004-11-10  Jim Meyering  <jim@meyering.net>
60935
60936         * modules/closeout (Depends-on): Remove fpending.
60937
60938 2004-11-10  Jim Meyering  <jim@meyering.net>
60939
60940         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
60941
60942 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60943
60944         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
60945         gl_FUNC_STRFTIME.
60946         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
60947         and AC_REQUIRE when possible, to avoid duplicate checks.
60948         Check for <wchar.h>.
60949
60950 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60951
60952         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
60953
60954 2004-11-09  Bruno Haible  <bruno@clisp.org>
60955
60956         * m4/sockpfaf.m4: New file.
60957
60958 2004-11-05  Bruno Haible  <bruno@clisp.org>
60959
60960         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
60961         Reported by Mark D. Baushke <mdb@cvshome.org>.
60962
60963 2004-11-04  Bruno Haible  <bruno@clisp.org>
60964
60965         2004-09-11  Bruno Haible  <bruno@clisp.org>
60966                 * allocsa.valgrind: New file.
60967         2004-02-06  Bruno Haible  <bruno@clisp.org>
60968                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
60969                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
60970                 Reported by Christopher Seip <chris.seip@hp.com>.
60971
60972 2004-11-04  Bruno Haible  <bruno@clisp.org>
60973
60974         * modules/allocsa (Files): Add lib/allocsa.valgrind.
60975         (Makefile.am): Distribute it.
60976
60977 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60978
60979         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
60980         with errno == ERANGE if the buffer is too small.
60981         Problem reported by Mark D. Baushke.
60982
60983 2004-11-03  Albert Chin  <china@thewrittenword.com>
60984             Paul Eggert  <eggert@cs.ucla.edu>
60985
60986         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
60987         equivalent, substitute $ac_type for equivalent type rather than
60988         blindly using uint32_t *always* which won't work if uint32_t is not
60989         available.  Define _UINT32_T to work around typedef of uint32_t if
60990         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
60991         2.5.1.
60992
60993 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60994
60995         * m4/jm-macros.m4: Sync from coreutils.
60996         (gl_MACROS): Check for mbrlen, for pathchk.
60997         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
60998
60999 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61000
61001         * lib/xreadlink.c (MAXSIZE): New macro.
61002         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
61003         size does not exceed MAXSIZE.  Avoid cast.
61004         As suggested by Mark D. Baushke in
61005         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
61006         if readlink fails with buffer size just under MAXSIZE, try again
61007         with MAXSIZE.
61008
61009 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61010
61011         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
61012
61013 2004-11-02  Derek R. Price  <derek@ximbiot.com>
61014         and  Paul Eggert  <eggert@cs.ucla.edu>
61015
61016         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
61017         (get_date): Overparenthesize to avoid GCC warning.
61018
61019 2004-11-02  Bruno Haible  <bruno@clisp.org>
61020
61021         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
61022         returns void.
61023
61024 2004-11-02  Bruno Haible  <bruno@clisp.org>
61025
61026         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
61027         function returns void.
61028
61029 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61030
61031         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
61032         fflush_unlocked, flockfile, funlockfile, funlockfile,
61033         fputs_unlocked, putc_unlocked.
61034
61035 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61036
61037         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
61038         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
61039         already declared.
61040
61041 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61042
61043         * modules/getdate (Files): Add doc/getdate.texi.
61044         (Depends-on): Add setenv, xalloc.
61045
61046 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61047
61048         * lib/getdate.y: Add support for TZ="foo" within a date string.
61049         Fix some bugs near time_t boundaries.  Reject dates with
61050         out-of-range components, e.g., "Sept 31".
61051         Include <stdlib.h>, "setenv.h", "xalloc.h".
61052         (ISDIGIT_LOCALE): Remove; unused.
61053         Note that the TZ and time functions used here are not reentrant.
61054         (mktime_ok, get_tz): New functions.
61055         (TZBUFSIZE): New constant.
61056         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
61057         This requires that we sometimes generate our own TZ="XXX..." setting.
61058
61059 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61060
61061         * doc/getdate.texi: New file, from coreutils with modifications for
61062         the new TZ parsing.
61063
61064 2004-10-27  Derek R. Price  <derek@ximbiot.com>
61065
61066         * lib/mktime.c (not_equal_tm): Remove redundant check.
61067
61068 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61069
61070         * modules/regex (lib_SOURCES): Add regex.c.
61071         Reported by James Youngman in
61072         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
61073
61074 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61075
61076         * lib/getdate.y: Use Bison 1.875 features, and some minor
61077         code cleanups.  This change does not affect semantics.
61078         Don't include <stdlib.h>; no longer needed.
61079         Don't include unlocked-io.h; only the "#if TEST" code uses
61080         stdio, and performance isn't crucial there.
61081         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
61082         Bison 1.875 features as described below.
61083         All uses of "PC." replaced by "pc->".
61084         (YYSTYPE): Add a forward declaration.
61085         (yylex, yyerror): Use full prototypes in forward decls.
61086         Use "%pure-parser" rather than obsolescent "%pure_parser".
61087         Use %parse-param and %lex-param instead of obsolescent
61088         YYPARSE_PARAM and YYLEX_PARAM.
61089         (meridian_table, month_and_day_table, time_units_table,
61090         relative_time_table, time_zone_table, military_table,
61091         lookup_zone, lookup_word, get_date):
61092         Use NULL instead of 0 where appropriate.
61093         (to_hour): Avoid abort (), to avoid a dependency on
61094         stdlib.h.
61095         (yyerror, yylex): Now accepts parser_control * arg.
61096         (main) [TEST]: Use '\0' rather than 0 for char.
61097
61098 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61099
61100         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
61101
61102 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61103
61104         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
61105         It's now the caller's responsibility to handle the case where
61106         !HAVE_GETPAGESIZE && !defined getpagesize.
61107
61108         * lib/mktime.c (leapyear): Arg is long int, not int.
61109
61110 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
61111
61112         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
61113
61114 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61115
61116         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
61117         missing.  Problem reported by James Youngman.
61118
61119 2004-10-16  Simon Josefsson  <jas@extundo.com>
61120
61121         * gnulib-tool: Fix comments.  Fix parse problem.
61122         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
61123
61124 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
61125
61126         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
61127         implementation of getopt_long.  Problem reported by Alexander Taler in:
61128         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
61129
61130 2004-10-15  Bruno Haible  <bruno@clisp.org>
61131
61132         * gnulib-tool: Untabify. Initialize supplied_libname.
61133         (func_usage): More homogenous output.
61134         (func_modules_transitive_closure, func_modules_to_filelist,
61135         func_emit_lib_Makefile_am): New functions.
61136         (func_import): New function, extracted from big case statement. Use
61137         func_get_license, func_modules_transitive_closure,
61138         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
61139         opt_lgpl. Don't use test -a, as it's not portable.
61140         (func_create_testdir): Use func_modules_transitive_closure,
61141         func_modules_to_filelist, func_emit_lib_Makefile_am.
61142
61143 2004-10-15  Bruno Haible  <bruno@clisp.org>
61144
61145         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
61146
61147 2004-10-15  Bruno Haible  <bruno@clisp.org>
61148
61149         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
61150         the portions belonging to each module.
61151         Suggested by Derek Robert Price <derek@ximbiot.com>.
61152
61153 2004-10-12  Simon Josefsson  <jas@extundo.com>
61154
61155         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
61156         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
61157         to real functions.
61158
61159 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61160
61161         * modules/vsnprintf: New file.
61162
61163 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61164
61165         * m4/vsnprintf.m4: New file.
61166
61167 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61168
61169         * lib/vsnprintf.h: New file.
61170         * lib/vsnprintf.c: New file.
61171
61172 2004-10-11  Bruno Haible  <bruno@clisp.org>
61173
61174         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
61175         vsnprintf.
61176
61177 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61178
61179         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
61180
61181 2004-10-07  Bruno Haible  <bruno@clisp.org>
61182
61183         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
61184         fits into the provided buffer.
61185
61186 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61187
61188         * lib/diacrit.c, diacrit.h: Add GPL notice.
61189
61190         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
61191         notice.
61192         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
61193         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
61194         This avoids a potential constant-folding bug.
61195
61196 2004-10-05  Bruno Haible  <bruno@clisp.org>
61197
61198         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
61199         for the declaration of strsep.
61200
61201 2004-10-05  Bruno Haible  <bruno@clisp.org>
61202
61203         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
61204
61205 2004-10-04  Simon Josefsson  <jas@extundo.com>
61206
61207         * modules/memmem: New file.
61208         * tests/test-memmem.c: New file.
61209         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
61210
61211 2004-10-04  Simon Josefsson  <jas@extundo.com>
61212
61213         * m4/memmem.m4: New file.
61214
61215 2004-10-04  Simon Josefsson  <jas@extundo.com>
61216
61217         * lib/memmem.h: New file.
61218         * lib/memmem.c: New file, taken from glibc.
61219
61220 2004-10-04  Simon Josefsson  <jas@extundo.com>
61221
61222         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
61223         '#ifdef USE_UNLOCKED_IO'.
61224
61225 2004-10-04  Simon Josefsson  <jas@extundo.com>
61226
61227         * config/srclist.txt: Add memmem from glibc.
61228
61229 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61230
61231         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
61232
61233         * modules/argmatch, modules/argp, modules/closeout, modules/error,
61234         modules/exclude, modules/getdate, modules/getline,
61235         modules/getndelim2, modules/getpass, modules/getpass-gnu,
61236         modules/getusershell, modules/linebuffer, modules/md5,
61237         modules/mountlist, modules/posixtm, modules/readtokens,
61238         modules/readutmp, modules/regex, modules/sha1,
61239         modules/version-etc, modules/yesno:
61240         Remove dependency on unlocked-io.
61241
61242 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61243
61244         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
61245
61246         * m4/unlocked-io.m4: Add copyright notice.
61247         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
61248
61249 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61250
61251         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
61252         * lib/xmalloc.c (xmemdup): Likewise.
61253         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
61254         XFREE): Remove these long-obsolescent macros.
61255         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
61256         * lib/xstrdup.c: Remove.
61257
61258         * lib/regex.c (re_comp): Cast gettext return value to char *,
61259         Problem reported by Martin Neitzel via Mark D. Baushke.
61260
61261 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61262
61263         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
61264         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
61265         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
61266         regex.c, sha1.c, version-etc.c, yesno.c:
61267         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
61268         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
61269         the includer's responsibility.
61270
61271         Sync from coreutils.
61272
61273         * lib/modechange.c (mode_compile): Don't decrement a pointer that
61274         points to the start of a string, as the C Standard says the
61275         resulting behavior is undefined.
61276
61277         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
61278         simple -> simple_backups, numbered_existing ->
61279         numbered_existing_backups, numbered -> numbered_backups
61280         to avoid shadowing problems.  All uses changed.
61281         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
61282         * lib/backupfile.c (check_extension, numbered_backup):
61283         Rename locals to avoid shadowing 'basename'.
61284         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
61285         once.
61286
61287         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
61288         * lib/.cvsignore: Add getopt.h.
61289
61290 2004-10-04  Bruno Haible  <bruno@clisp.org>
61291
61292         * modules/README: New file.
61293         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
61294         not a module.
61295
61296 2004-10-02  Jim Meyering  <jim@meyering.net>
61297
61298         * lib/dirfd.h, getpagesize.h: Add copyright notice.
61299
61300 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61301
61302         * modules/strsep: New file.
61303
61304 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61305
61306         * m4/strsep.m4: New file.
61307
61308 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61309
61310         * lib/strsep.h: New file.
61311         * lib/strsep.c: New file.
61312
61313 2004-10-01  Simon Josefsson  <jas@extundo.com>
61314
61315         * lib/snprintf.c (snprintf): Handle size==0.
61316
61317 2004-10-01  Simon Josefsson  <jas@extundo.com>
61318             Bruno Haible  <bruno@clisp.org>
61319
61320         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
61321         (snprintf): Declare 'args'.
61322
61323 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
61324
61325         * lib/snprintf.c: Remove comments as to why each header is needed.
61326
61327 2004-10-01  Bruno Haible  <bruno@clisp.org>
61328
61329         * MODULES.html.sh: Add strsep.
61330
61331 2004-09-30  Simon Josefsson  <jas@extundo.com>
61332
61333         * modules/snprintf: New file.
61334
61335 2004-09-30  Simon Josefsson  <jas@extundo.com>
61336
61337         * m4/snprintf.m4: New file.
61338
61339 2004-09-30  Simon Josefsson  <jas@extundo.com>
61340
61341         * lib/snprintf.h, lib/snprintf.c: New files.
61342
61343 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61344
61345         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
61346         (hol_entry_help): Never translate an empty string.
61347         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
61348         * lib/argp.h (OPTION_NO_TRANS): New option.
61349
61350 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61351
61352         * modules/argp (Maintainer): Replace Simon Josefsson
61353         by Sergey Poznyakoff.
61354
61355 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61356
61357         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
61358         changes merged back into glibc.
61359
61360 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61361
61362         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
61363
61364 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
61365
61366         * lib/xvasprintf.c: Include xalloc.h.
61367         (xvasprintf): Use xalloc_die, not xmalloc_die.
61368
61369 2004-09-29  Bruno Haible  <bruno@clisp.org>
61370
61371         * modules/alloca-opt: New file, derived from modules/alloca.
61372         * modules/allocsa: Depend on alloca-opt instead of alloca.
61373         * modules/setenv: Likewise.
61374         * modules/vasnprintf: Likewise.
61375         * MODULES.html.sh: Add alloca-opt.
61376
61377 2004-09-28  Simon Josefsson  <jas@extundo.com>
61378
61379         * gnulib-tool: New parameter --lgpl, to asseert that modules are
61380         LGPL, and to replace license template from GPL to LGPL.
61381
61382 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61383
61384         * modules/dummy: Change license to LGPL.
61385
61386 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61387
61388         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
61389
61390 2004-09-24  Simon Josefsson  <jas@extundo.com>
61391
61392         * modules/minmax (License): Change from GPL to LGPL.
61393
61394 2004-09-23  Simon Josefsson  <jas@extundo.com>
61395
61396         * gnulib-tool (--import): Typo.
61397
61398 2004-09-23  Simon Josefsson  <jas@extundo.com>
61399
61400         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
61401
61402 2004-09-22  Bruno Haible  <bruno@clisp.org>
61403
61404         * modules/*: Add 'License' field.
61405         * gnulib-tool: Accept --extract-license option.
61406         (func_get_license): New function.
61407
61408 2004-09-21  Bruno Haible  <bruno@clisp.org>
61409
61410         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
61411         Reported by Simon Josefsson.
61412
61413 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61414
61415         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
61416         gl_AC_TYPE_LONG_LONG.
61417
61418 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61419
61420         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
61421
61422 2004-09-18  Simon Josefsson  <jas@extundo.com>
61423         and  Paul Eggert  <eggert@cs.ucla.edu>
61424
61425         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
61426         calls with autoreconf.  Define GL_LIB.
61427
61428 2004-09-14  Karl Berry  <karl@gnu.org>
61429
61430         * config/srclist.txt: unsync setenv.c, sigh.
61431
61432 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61433
61434         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
61435         Problem reported by Bruno Haible in:
61436         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
61437
61438 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61439
61440         * config/srclist.txt: Comment out argp-pvh.c.
61441
61442 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
61443
61444         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
61445         in case some system header has #define'd it.  Problem reported by
61446         Soeren D. Schulze in
61447         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
61448
61449 2004-09-09  Karl Berry  <karl@gnu.org>
61450
61451         * regex.[ch]: delete from the root.  These were supposed to be
61452                 synced with emacs cvs, but this has not happened for about
61453                 a year, and anyway nothing else uses emacs regex.[ch].
61454                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
61455                 lib/regex[.ch] is untouched.
61456
61457 2004-09-09  Bruno Haible  <bruno@clisp.org>
61458
61459         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
61460
61461 2004-09-09  Bruno Haible  <bruno@clisp.org>
61462
61463         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
61464         modifications.
61465         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
61466
61467 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61468
61469         * modules/xvasprintf: New file.
61470         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
61471
61472 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61473
61474         * lib/xvasprintf.h: New file.
61475         * lib/xvasprintf.c: New file.
61476         * lib/xasprintf.c: New file.
61477
61478 2004-09-08  Bruno Haible  <bruno@clisp.org>
61479
61480         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
61481
61482 2004-09-08  Bruno Haible  <bruno@clisp.org>
61483
61484         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
61485         length is > INT_MAX.
61486         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
61487         more.
61488
61489 2004-09-08  Bruno Haible  <bruno@clisp.org>
61490
61491         * lib/stdint_.h: New file, taken from GNU clisp.
61492
61493 2004-09-08  Bruno Haible  <bruno@clisp.org>
61494             Oskar Liljeblad  <oskar@osk.mine.nu>
61495
61496         * modules/stdint: New file.
61497         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
61498
61499 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61500
61501         Import from coreutils.
61502         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
61503         strings on unbounded length.  alloca's performance benefits aren't
61504         that important here.
61505         (V_STRDUP): Remove.
61506         (parse_with_separator): New function, with most of the internals
61507         of the old parse_user_spec.  Allow user to omit both user and group,
61508         for compatibility with FreeBSD.
61509         Clone only the user name, not the entire spec.
61510         Do not set *uid, *gid unless entirely successful.
61511         Avoid memory leak in some failing cases.
61512         Fix regression for USER.GROUP reported by Dmitry V. Levin in
61513         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
61514         (parse_user_spec): Rewrite to use parse_with_separator.
61515
61516 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61517
61518         * modules/userspec: Don't depend on alloca.
61519
61520 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61521
61522         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
61523
61524 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61525
61526         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
61527         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
61528         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
61529
61530 2004-08-16  Simon Josefsson  <jas@extundo.com>
61531
61532         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
61533         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
61534         Add --dry-run for --import.
61535         Let user provided command line parameters override configure.ac
61536         settings.
61537
61538 2004-08-12  Simon Josefsson  <jas@extundo.com>
61539
61540         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
61541         as discussed with Paul Eggert in threads rooted at
61542         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
61543         and
61544         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
61545         Before, the test was empty, and relied on ELIDE_CODE in source
61546         code.)
61547         (gl_PREREQ_GETOPT): New macro.
61548         (gl_GETOPT): Use them.
61549
61550 2004-08-12  Simon Josefsson  <jas@extundo.com>
61551
61552         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
61553         * lib/getopt_.h: Renamed from getopt.h.
61554
61555 2004-08-12  Simon Josefsson  <jas@extundo.com>
61556
61557         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
61558         Change default library name from libfoo to libgnu.
61559         Now, if you have a configure.ac that says:
61560                 gl_SOURCE_BASE(gl)
61561                 gl_M4_BASE(gl/m4)
61562                 gl_MODULES(error getopt etcetera)
61563                 gl_INIT
61564         you can import all you need by running:
61565                 ../gnulib/gnulib-tool --import
61566
61567         * modules/getopt (Files): Rename getopt.h to getopt_.h.
61568         (Makefile.am): Rewrite, use logic from argz.
61569         (Include): Use <getopt.h> instead of "getopt.h".
61570
61571 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61572
61573         * modules/argp (Files): Add m4/unlocked-io.m4.
61574         (Depends-on): Add extensions.
61575
61576 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61577
61578         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
61579         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
61580         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
61581         Check for program_invocation_name, program_invocation_short_name,
61582         flockfile, funlockfile, features.h, _getopt_long_only_r.
61583
61584 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61585
61586         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
61587         its complicated substitute.
61588         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
61589         and program_invocation_name.
61590         (__argp_basename) [!_LIBC]: Remove; the only use was
61591         replaced by its body.
61592         (__argp_short_program_name): Change condition from
61593         !defined __argp_short_program_name to
61594         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
61595         to match argp-namefrob.h.
61596         (__argp_failure): Don't assume strerror_r returns char *.
61597         * lib/argp-parse.c (N_): Define unconditionally.
61598         (argp_default_options): Fill out initializers with 0 to avoid
61599         gcc warnings.
61600
61601 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61602
61603         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
61604         getopt1.c.
61605
61606 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61607
61608         Merge from coreutils.
61609
61610         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
61611
61612         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
61613         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
61614
61615 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61616
61617         Merge from coreutils.
61618
61619         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
61620         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
61621         for Reliant Unix 5.43.
61622
61623         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
61624         (union fooround): Use uintmax_t, not long int.
61625         The rest is a merge from libc:
61626         [defined _LIBC]: Include <shlib-compat.h>.
61627         (_obstack) [defined _LIBC]: Remove after 2.3.4.
61628
61629         * lib/settime.c (settime): Recode to avoid warning with
61630         Sun Forte C 6U2.
61631
61632         * lib/strverscmp.c: Convert to UTF-8.
61633
61634 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61635
61636         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
61637         m4/uintmax_t.m4.
61638
61639 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61640
61641         * modules/xalloc-die: New file.
61642         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
61643
61644         * modules/md5 (Files): Add m4/uint32_t.m4.
61645         * modules/sha1: Renamed from modules/sha.
61646         (Files):
61647         Rename lib/sha.h to lib/sha1.h.
61648         Rename lib/sha.c to lib/sha1.c.
61649         Rename m4/sha.m4 to m4/sha1.m4.
61650         (lib_SOURCES): Likewise.
61651         (configure.ac): Rename gl_SHA to gl_SHA1.
61652         (Include): sha.h -> sha1.h.
61653
61654 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61655
61656         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
61657         * m4/sha1.m4: Renamed from sha.m4.
61658         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
61659
61660 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61661
61662         * lib/obstack.h (obstack_empty_p):
61663         Don't assume that chunk->contents is suitably aligned.
61664         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
61665         Likewise. Problem reported by Benno in
61666         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
61667
61668         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
61669         readable.  This could be improved further but it'd take some work.
61670
61671 2004-08-08  Simon Josefsson  <jas@extundo.com>
61672
61673         * modules/xgethostname (Depends-on): Remove exit and error (not
61674         used).
61675
61676         * modules/getpass-gnu: Add getpass.h.
61677         (Depends-on): Add stdbool.
61678         * modules/getpass: Add getpass.h.
61679
61680 2004-08-08  Simon Josefsson  <jas@extundo.com>
61681
61682         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
61683         Check getpass declaration.
61684
61685 2004-08-08  Simon Josefsson  <jas@extundo.com>
61686
61687         * lib/xgethostname.c: Don't include error.h (not used).
61688
61689         * lib/getpass.h: Add.
61690         * lib/getpass.c: Include getpass.h first.
61691
61692 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
61693
61694         * lib/xalloc-die.c: New file.
61695         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
61696         All uses removed.
61697         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
61698         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
61699         xalloc-die.c.
61700         (_, N_, xalloc_die): Move to xalloc-die.c.
61701         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
61702         so that we needn't mess with xalloc_msg_memory_exhausted.
61703
61704         * lib/sha1.h: Renamed from sha.h.
61705         (SHA1_H): Renamed from _SHA_H.
61706         (sha1_ctx): Renamed from sha_ctx.
61707         (sha1_init_ctx): Renamed from sha_init_ctx.
61708         (sha1_process_block): Renamed from sha_process_block.
61709         (sha1_process_bytes): Renamed from sha_process_bytes.
61710         (sha1_finish_ctx): Renamed from sha_finish_ctx.
61711         (sha1_read_ctx): Renamed from sha_read_ctx.
61712         (sha1_stream): Renamed from sha_stream.
61713         (sha1_buffer): Renamed from sha_buffer.
61714         * lib/sha1.c: Likewise; renamed from sha.c.
61715         Do not include <sys/types.h>.
61716         Include <stddef.h> rather than <stdlib.h>.
61717
61718 2004-08-08  Bruno Haible  <bruno@clisp.org>
61719
61720         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
61721         FILESYSTEM_PREFIX_LEN.
61722         * lib/progreloc.c: Likewise.
61723         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
61724
61725 2004-08-06  Simon Josefsson  <jas@extundo.com>
61726
61727         * modules/progname (Depends-on): Don't depend on stdbool.
61728
61729 2004-08-06  Simon Josefsson  <jas@extundo.com>
61730
61731         * modules/getsubopt: New file.
61732         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61733         getsubopt.
61734
61735 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61736
61737         More merge from coreutils.
61738
61739         * m4/utimens.m4, m4/utimecmp.m4: New files.
61740         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
61741         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
61742         prereq.m4, sha.m4: Import changes from coreutils.
61743
61744 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61745
61746         More merge from coreutils.
61747         * modules/raise, modules/readtokens0, modules/utimens:
61748         * modules/utimecmp, module/xnanosleep: New files.
61749         * modules/strftime: Add lib/strftime.h.
61750         Change include from <time.h> to "strftime.h".
61751         * modules/yesno: Add lib/yesno.h.
61752         * modules/backupfile: Remove lib/addext.c.
61753         * modules/euidaccess: Add stat-macros.h.
61754         * modules/canonicalize, modules/euidaccess,
61755         modules/filemode, modules/lchown, modules/makepath,
61756         modules/rmdir, modules/stat: Likewise.
61757
61758 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61759
61760         Merge from tar.
61761         * lib/argp-help.c (make_hol, hol_append): Don't assume that
61762         SIZE_MAX is a valid preprocessor constant.
61763         (__argp_basename): Change from "#ifndef _LIBC"
61764         to "#ifndef __argp_short_program_name", so that
61765         we don't compile these functions for tar.
61766
61767         More merges from coreutils.
61768         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
61769         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
61770         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
61771         * lib/addext.c: Remove; no longer needed.
61772         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
61773         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
61774         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
61775         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
61776         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
61777         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
61778         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
61779         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
61780         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
61781         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61782         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
61783         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
61784         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
61785         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
61786         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
61787         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
61788         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
61789         Import changes from coreutils.
61790
61791 2004-08-05  Simon Josefsson  <jas@extundo.com>
61792
61793         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
61794
61795 2004-08-05  Simon Josefsson  <jas@extundo.com>
61796
61797         * m4/getsubopt.m4: New file.
61798
61799 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61800
61801         Merge from coreutils.
61802
61803         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
61804         * m4/getcwd-path-max.m4: New files.
61805
61806         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
61807         FILESYSTEM_PREFIX_LEN ->
61808         FILE_SYSTEM_PREFIX_LEN.
61809         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
61810         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
61811         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
61812         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
61813
61814         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
61815         prerequisite modules now handle the DOS stuff.
61816         Don't check for unistd.h.
61817
61818 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61819
61820         Merge from coreutils.
61821
61822         * lib/.gdb-history: Remove; this doesn't belong here.
61823
61824         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
61825         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
61826         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
61827         * lib/getcwd.c: New files.
61828
61829         * lib/dirname.h: Include <stdbool.h>.
61830         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
61831         for consistency with POSIX terminology.  All uses changed.
61832         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
61833         (strip_trailing_slashes): Use bool for booleans.
61834         * lib/stripslash.c (strip_trailing_slashes): Likewise.
61835
61836         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
61837         sometimes returns a positive errno value even when it succeeds.
61838         (print_errno_message) [!LIBC]: Fall back on strerror if
61839         __strerror_r fails.
61840
61841         * lib/path-concat.c (mempcpy): Don't define if a system header defines
61842         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
61843         (longest_relative_suffix): New function.
61844         (path_concat): Use it.  Assume first argument is not NULL.
61845         Port to DOS.  Omit redundant separators.
61846         Report an error instead of returning NULL.
61847         Use mempcpy instead of memcpy.
61848         (xpath_concat): Remove: not declared or used.
61849
61850         * lib/same.h: Include <stdbool.h>
61851         (same_name): Return bool, not int.
61852         * lib/same.c (same_name): Likewise.
61853         (errno): Don't declare; we assume C89 or better now.
61854
61855         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
61856         if not already defined.
61857
61858         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
61859         * lib/dup-safer.c (errno): Likewise.
61860
61861 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61862
61863         Merge from coreutils.
61864         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
61865         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
61866         * modules/path-concat: Don't depend on strdup.
61867
61868 2004-08-03  Simon Josefsson  <jas@extundo.com>
61869
61870         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
61871         * lib/progname.h: Don't include stdbool.h.
61872
61873 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61874
61875         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
61876         * MODULES.html.sh (func_all_modules): Remove fatal.
61877
61878 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61879
61880         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
61881
61882 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61883
61884         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
61885         working.
61886
61887 2004-08-02  Simon Josefsson  <jas@extundo.com>
61888
61889         * lib/getsubopt.h: New file, with comments from Bruno Haible.
61890         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
61891         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
61892
61893 2004-08-01  Simon Josefsson  <jas@extundo.com>
61894
61895         * lib/xgetdomainname.c: Include stdlib.h, for free().
61896
61897 2004-07-19  Bruno Haible  <bruno@clisp.org>
61898
61899         * MODULES.html.sh (func_all_modules): Add dummy.
61900
61901 2004-07-16  Simon Josefsson  <jas@extundo.com>
61902
61903         * modules/dummy: New file.
61904
61905 2004-07-16  Simon Josefsson  <jas@extundo.com>
61906
61907         * lib/dummy.c: New file.
61908
61909 2004-07-16  Bruno Haible  <bruno@clisp.org>
61910
61911         * lib/backupfile.h: Add extern "C" for C++.
61912         * lib/closeout.h: Likewise.
61913         * lib/copy-file.h: Likewise.
61914         * lib/findprog.h: Likewise.
61915         * lib/full-write.h: Likewise.
61916         * lib/pathname.h: Likewise.
61917         * lib/progname.h: Likewise.
61918         * lib/stpcpy.h: Likewise.
61919         * lib/stpncpy.h: Likewise.
61920         * lib/strcase.h: Likewise.
61921         * lib/strstr.h: Likewise.
61922         * lib/xalloc.h: Likewise.
61923
61924         * lib/mbswidth.h: Add extern "C" for C++.
61925         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
61926
61927 2004-07-13  Robert Millan  <robertmh@gnu.org>
61928
61929         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
61930
61931 2004-07-09  Simon Josefsson  <jas@extundo.com>
61932
61933         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
61934         failed without this.)
61935
61936 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61937
61938         * modules/chown (Files): Add lib/fchown-stub.c, since
61939         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
61940
61941 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61942
61943         * lib/fchown-stub.c: New file.
61944
61945 2004-06-24  Jim Meyering  <jim@meyering.net>
61946
61947         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
61948
61949 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61950
61951         * modules/argz: Omit "#include".
61952
61953         * MODULES.html.sh (func_all_modules): Add calloc, to match
61954         2004-06-01 addition of calloc module.
61955
61956 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61957
61958         * m4/argz.m4: New file, which is autoupdated from libtool.
61959
61960 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61961
61962         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
61963         libtool.
61964
61965 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61966
61967         * config/srclist-update: Don't insist on "USA." before the
61968         close-comment, as libtool omits the period and puts the */ on a
61969         separate line.
61970         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
61971         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
61972
61973 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
61974
61975         * modules/argz: New file.
61976         * MODULES.html.sh (func_all_modules): Add argz.
61977
61978 2004-06-12  Jim Meyering  <jim@meyering.net>
61979         and  Paul Eggert  <eggert@cs.ucla.edu>
61980
61981         * modules/hash (Files): Add lib/xalloc.h.
61982         * modules/pipe (Depends-on): Add wait-process.
61983         * modules/stat (Depends-on): Add xalloc.
61984         * modules/userspec (Files): Add lib/userspec.h.
61985         * modules/xstrto
61986
61987         Upgrade from gettext-0.13.
61988         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
61989         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
61990         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
61991
61992 2004-06-10  Jim Meyering  <jim@meyering.net>
61993
61994         * lib/calloc.c: New file.
61995
61996 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61997
61998         * lib/getdate.y (yylex): Allow space between sign and number.
61999         Problem reported by Dan Jacobson.
62000
62001 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
62002
62003         Merge from coreutils CVS.
62004
62005         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
62006         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
62007         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
62008         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
62009         xstrtol.m4: Fix copyright date and/or serial number.
62010
62011         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
62012         See if we need an fchown replacement.
62013         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
62014         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
62015         and use the replacement function if we detect either defect.
62016
62017         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
62018         gl_UTIMECMP.
62019
62020 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
62021         and  Jim Meyering  <jim@meyering.net>
62022
62023         Merge from coreutils CVS.
62024
62025         * lib/stat-macros.h: New file, with contents from file-type.h
62026         and coreutils' system.h.
62027         * lib/file-type.c: Include "stat-macros.h".
62028         * lib/file-type.h (file_type): Move all macro definitions to new file,
62029         stat-macros.h.
62030
62031         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
62032         Wrap old code with this conditional.
62033         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
62034         function that does not dereference symlinks.
62035         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
62036
62037         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
62038         dependency problems.
62039         (xreadlink): Accept new arg SIZE, for efficiency.
62040         All decls and uses changed.
62041         * lib/xreadlink.h: Include <stddef.h>, for size_t.
62042
62043         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
62044         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
62045
62046         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
62047         sysexits.h.
62048
62049 2004-06-01  Jim Meyering  <jim@meyering.net>
62050
62051         * m4/calloc.m4: New file.
62052
62053 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
62054
62055         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
62056         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
62057         Also, fix a typo in a diagnostic.
62058
62059 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
62060
62061         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
62062         or AC_FUNC_REALLOC.
62063
62064 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
62065
62066         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
62067         macros to be defined.
62068         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
62069         the allocator returns NULL because the requested size is zero.
62070
62071 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62072
62073         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
62074         var.  Add comment explaining why libc still defines it.  This
62075         merges the following patch from glibc:
62076         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
62077
62078 2004-05-20  Andreas Schwab  <schwab@suse.de>
62079
62080         * m4/free.m4: Replace free if it not known to work, not the other
62081         way round.
62082
62083 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62084
62085         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
62086         present in glibc since revision 1.1 of this file.
62087         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
62088         obstack_alignment_mask, obstack_alloc, obstack_base,
62089         obstack_blank, obstack_blank_fast, obstack_chunk_size,
62090         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
62091         obstack_grow0, obstack_init, obstack_int_grow,
62092         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
62093         obstack_next_free, obstack_object_size, obstack_ptr_grow,
62094         obstack_ptr_grow_fast, obstack_room): Remove declarations of
62095         nonexistent functions.
62096
62097 2004-05-18  Karl Berry  <karl@gnu.org>
62098
62099         * config/srclist.txt: break link for vasnprintf.c.
62100
62101 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62102
62103         Port obstack to the AS/400, where pointers are 16 bytes wide and
62104         you cannot cast an integer to a valid pointer.  This patch is
62105         currently waiting to be integrated into glibc; see
62106         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
62107
62108         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
62109         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
62110         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
62111         (struct obstack): temp member is now a union of a pointer and
62112         an integer, instead of an integer.  All integer uses changed.
62113         This does not affect the physical layout of struct obstack,
62114         except on hosts (like the AS/400) where the size or alignment of
62115         void * is greater than that of ptrdiff_t.
62116         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
62117         __STDC__)]: Store temporary in pointer member of union, not
62118         integer member.
62119         * lib/obstack.c: Include <stddef.h>, for offsetof.
62120         (struct fooalign): Remove; it doesn't need a name.
62121         (union fooround): Change double to long double, and add void *.
62122         (DEFAULT_ALIGNMENT): Use offsetof to compute.
62123         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
62124         not a macro.  Hence the values are always int; so remove all
62125         casts-to-int in uses.
62126
62127 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62128
62129         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
62130         we can get this patch merged into glibc.
62131
62132 2004-05-17  Derek R. Price  <derek@ximbiot.com>
62133             Paul Eggert  <eggert@cs.ucla.edu>
62134
62135         * m4/argp: Depend on alloca.
62136
62137 2004-05-17  Derek R. Price  <derek@ximbiot.com>
62138             Paul Eggert  <eggert@cs.ucla.edu>
62139
62140         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
62141         freecoding.
62142
62143 2004-05-17  Bruno Haible  <bruno@clisp.org>
62144
62145         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
62146         precision that consists of a '.' followed by an empty digit string.
62147         Patch by Tor Lillqvist <tml@iki.fi>.
62148
62149 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62150
62151         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
62152         for backward compatibility with older code.  We need our own
62153         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
62154         it under some other name, and our alloca.h will define it.
62155
62156 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62157             Derek Price  <derek@ximbiot.com>
62158
62159         * lib/alloca.c: Include <alloca.h>, to get our interface.
62160         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
62161         include <alloca.h> first.  Use C89 prototype for alloca; this
62162         requires including <stddef.h> for size_t.  Use extern "C" if C++.
62163         Use #elif for simplicity, since we can assume C89 now.
62164         Don't try to source the system alloca.h since it will not be found
62165         and to prevent recursively including its replacement.
62166         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
62167         * lib/regex.c: Likewise.
62168
62169 2004-05-16  Derek Price  <derek@ximbiot.com>
62170             Paul Eggert  <eggert@cs.ucla.edu>
62171
62172         getline cleanup.  This changes the getndelim2 API: both order of
62173         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
62174         no delimiter).
62175
62176         * lib/getline.c: Don't include stddef.h or stdio.h, since our
62177         interface does that.
62178         (getline): Always use getdelim, so that we don't have two
62179         copies of this code.
62180         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
62181         if available.
62182         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
62183         (GETNDELIM2_MAXIMUM): New macro.
62184         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
62185         instead of the old practice of delim2==0.  All callers changed.
62186         Return -1 on overflow, instead of returning junk.
62187         Do not set *linesize unless allocation succeeds.
62188         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
62189         that we include sys/types.h.
62190         * lib/getnline.h: Likewise.
62191         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
62192         (getndelim2): Reorder arguments.
62193         * lib/getnline.c (getnline, getndelim):
62194         Don't discard the NMAX argument.
62195         (getnline): Invoke getndelim, to avoid code duplication.
62196         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
62197         of (size_t) -1 by callers of the getnline family.
62198
62199 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62200
62201         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
62202         Check for gettimeofday.
62203         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
62204         Check for settimeofday, stime.
62205
62206 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62207
62208         * lib/nanosleep.c (suspended): Change its type from int to
62209         sig_atomic_t volatile.
62210         (first_call): Make it private to rpl_nanosleep, and have it
62211         be zero initially as that's a bit faster.
62212         (my_usleep): Round up fractional times instead of truncating them,
62213         as this is the usual meaning for 'sleep'.
62214
62215         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
62216         doesn't work.
62217         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
62218         (ENOSYS): Define if not defined.
62219         (settime): Fall back on stime if it exists and settimeofday fails.
62220         But don't bother with fallbacks if a method fails with errno == EPERM.
62221
62222 2004-05-11  Jim Meyering  <jim@meyering.net>
62223
62224         Prior to this change, the save_cwd caller required read access to the
62225         current directory on most systems (ones with the fchdir function).
62226
62227         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
62228         fails, try write-only, and finally, resort to using xgetcwd.
62229
62230 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
62231
62232         * lib/obstack.c, obstack.h: Import changes from libc.
62233
62234 2004-04-28  Bruno Haible  <bruno@clisp.org>
62235
62236         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
62237         also implicitly appends .exe to executables.
62238         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
62239         accepts Windows pathnames.
62240         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
62241         Treat Cygwin like Windows, since it now accepts Windows pathnames.
62242         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
62243         Treat Cygwin like Windows, since it now accepts Windows pathnames.
62244         Reported by Derek Robert Price <derek@ximbiot.com>.
62245
62246 2004-04-21  Karl Berry  <karl@gnu.org>
62247
62248         * config/srclist.txt (localcharset.c): break sync.
62249
62250 2004-04-20  Paul Eggert  <eggert@twinsun.com>
62251
62252         * m4/host-os.m4: Add a copyright notice.
62253
62254 2004-04-20  Jim Meyering  <jim@meyering.net>
62255
62256         Change UTILS_ to gl_ in AC_DEFINE'd names.
62257         Change utils_- and jm_-prefixed variables, too.
62258         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
62259         UTILS_FUNC_MKDIR_TRAILING_SLASH.
62260         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
62261
62262         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
62263         Don't emit trailing blanks.
62264         Also rename jm_-prefixed variables to have gl_ prefix.
62265
62266         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
62267         Also rename jm_-prefixed variables to have gl_ prefix.
62268
62269         * m4/jm-macros.m4: Reflect the renamings.
62270         * m4/prereq.m4: Likewise.
62271
62272 2004-04-20  Jim Meyering  <jim@meyering.net>
62273
62274         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
62275         memory.
62276
62277 2004-04-20  Jim Meyering  <jim@meyering.net>
62278             Bruno Haible  <bruno@clisp.org>
62279
62280         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
62281         memory when realloc fails.
62282
62283 2004-04-19  Jim Meyering  <jim@meyering.net>
62284
62285         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
62286         now that readutmp.c may call `free (0)'.
62287
62288 2004-04-19  Bruno Haible  <bruno@clisp.org>
62289
62290         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
62291         * m4/inttypes_h.m4: Likewise.
62292         * m4/stdint_h.m4: Likewise.
62293         * m4/intmax_t.m4: Likewise.
62294         * m4/uintmax_t.m4: Likewise.
62295
62296 2004-04-18  Jim Meyering  <jim@meyering.net>
62297
62298         * m4/prereq.m4: Don't forbid jm_ prefix.
62299
62300         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
62301         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
62302         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
62303         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
62304         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
62305         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
62306         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
62307         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
62308         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
62309         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
62310         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
62311         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
62312         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
62313         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
62314         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
62315         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
62316         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
62317         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
62318         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
62319
62320 2004-04-18  Jim Meyering  <jim@meyering.net>
62321
62322         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
62323         failure, don't leak memory and do call END_UTMP_ENT.
62324
62325 2004-04-16  Jim Meyering  <jim@meyering.net>
62326
62327         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
62328         coreutils' stat program.
62329         (gl_PREREQ): Don't require jm_PREREQ_STAT.
62330
62331 2004-04-11  Paul Eggert  <eggert@twinsun.com>
62332
62333         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
62334         C89.
62335         (CHAR_BIT): Remove, since we assume C89.
62336         Include <stdint.h> if available, as per current Autoconf CVS advice.
62337
62338 2004-03-31  Jim Meyering  <jim@meyering.net>
62339
62340         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
62341         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
62342         * m4/xalloc.m4: Likewise.
62343
62344 2004-03-30  Paul Eggert  <eggert@twinsun.com>
62345
62346         Merge from coreutils.
62347
62348         * m4/inttostr.m4: New file.
62349         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
62350         Require AM_STDBOOL_H and gl_TIMESPEC instead.
62351         Require gl_CLOCK_TIME.
62352         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
62353
62354 2004-03-30  Paul Eggert  <eggert@twinsun.com>
62355
62356         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
62357         not bool, to be more consistent with Unix conventions.
62358         Suggested by Bruno Haible.
62359
62360         Merge from coreutils.
62361
62362         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
62363         * lib/umaxtostr.c: New files.
62364
62365         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
62366         the usual <time.h> dance.
62367         (get_date): Change signature to support fractional time stamps.
62368         All callers changed.
62369         * lib/getdate.y: Include "getdate.h" first, as we can now
62370         assume C89 and don't need to worry about 'const'.
62371         Similarly, include "unlocked-io.h" near start, not in middle.
62372         Include <limits.h>.
62373         (textint.value): Use long int rather than int.
62374         (textint.digits): Use size_t rather than int.
62375         (BILLION, LOG10_BILLION): New constants.
62376         (parser_control): New member rel_ns.  Members day_ordinal,
62377         time_zone, month, day, hour, minutes, rel_year, rel_month,
62378         rel_day, rel_hour, rel_minutes, rel_seconds
62379         are now long int, not int.  Member seconds is now struct timespec,
62380         not int.  New member timespec_seen.  Members dates_seen, days_seen,
62381         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
62382         not int.
62383         (%union.intval): Now long int, not int.
62384         New member timespec.
62385         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
62386         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
62387         (spec): Now is a timespec or an item list.
62388         (timespec, items): New nonterminals.
62389         (time, rel, relunit, number, get_date):
62390         Add support for fractional seconds.
62391         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
62392         (gmtime, localtime, mktime): Remove decls; not needed with C89.
62393         (to_hour): First arg is now long int, not int.
62394         (to_year): Returns long int, not int.
62395         Don't treat year -70 like 70.
62396         (tm_diff): Returns long int, not int.
62397         (lookup_word): Use bool instead of int when appropriate.
62398         (yylex): Use size_t for count, not int.
62399         Detect overflow when parsing large integer constants.
62400         Add support for fractions.
62401         (get_date): Make pointers 'const' if possible.
62402         Use more-portable code to detect integer overflow.
62403         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
62404         Don't use ctime; it's not reliable if the year has >4 digits.
62405
62406         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
62407         This is for compatibility with BSD.
62408
62409         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
62410         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
62411         From coreutils' system.h.
62412
62413         * lib/userspec.c: Don't include "posixver.h".
62414         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
62415         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
62416         compatible extension.  Simplify code by removing a boolean int
62417         that was always nonzero if a string was nonnull.
62418
62419 2004-03-30  Jim Meyering  <jim@meyering.net>
62420
62421         Merge from coreutils.
62422
62423         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
62424         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
62425         on some systems one must include <grp.h> before it.
62426         Reported by Christian Krackowizer.
62427
62428 2004-03-30  Jim Meyering  <jim@meyering.net>
62429
62430         Merge from coreutils.
62431
62432         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
62433
62434         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
62435         an empty input stream.
62436
62437         * lib/readtokens.c: Include <stdbool.h>.
62438         (readtoken): Use `size_t' rather than int/long.
62439         All callers adjusted.
62440         Use `bool' rather than `int' where appropriate.
62441         Use memset rather than an explicit loop.
62442         Use x2nrealloc rather than xrealloc.
62443         Allow the use of `\0' as a delimiter.
62444         (readtokens): Likewise.
62445         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
62446
62447 2004-03-30  Jim Meyering  <jim@meyering.net>
62448
62449         * m4/realloc.m4: Remove file, since now it does no more than
62450         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
62451         the `configure.ac' section of module/realloc.
62452         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
62453
62454 2004-03-30  Bruno Haible  <bruno@clisp.org>
62455
62456         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
62457         nonnull.
62458
62459 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62460
62461         Merge changes to getloadavg.c from coreutils and Emacs.
62462
62463         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
62464         Define to an expression, not to the empty string.
62465         Include cloexec.h and xalloc.h.
62466         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
62467         Use set_cloexec_flag rather than rolling our own.
62468         * lib/cloexec.c, lib/cloexec.h: New files.
62469
62470 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62471
62472         * m4/cloexec.m4: New file.
62473
62474 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62475
62476         * lib/getopt.h: Sync with libc CVS.
62477
62478 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62479             Bruno Haible  <bruno@clisp.org>
62480
62481         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
62482         mbswidth.
62483
62484 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62485             Bruno Haible  <bruno@clisp.org>
62486
62487         * lib/mbswidth.h: Include <wchar.h> only if
62488         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
62489         <wchar.h>.
62490         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
62491
62492 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62493
62494         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
62495         Sync with libc CVS.
62496         * lib/getopt_int.h: New file, also synced from libc.
62497
62498 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62499
62500         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
62501         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
62502         Bring back getopt.c, getopt.h, getopt1.c.
62503
62504 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62505
62506         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
62507         All uses changed.  Check for sa_sigaction member; this fixes
62508         a bug first reported by Jason Andrade in
62509         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62510
62511 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62512
62513         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
62514         '#if' expressions.  Unlike the code it replaces, it does not
62515         depend on (defined _SC_PAGESIZE).  However, it does depend on
62516         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
62517         first reported by Jason Andrade in
62518         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62519
62520 2004-02-25  Simon Josefsson  <jas@extundo.com>
62521
62522         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
62523
62524 2004-02-25  Simon Josefsson  <jas@extundo.com>
62525
62526         * lib/strdup.h: New file.
62527         * lib/strdup.c: Include it.
62528         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
62529         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
62530
62531 2004-02-23  Karl Berry  <karl@gnu.org>
62532
62533         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
62534         (from fencepost.gnu.org:/gd/gnuorg).
62535
62536 2004-02-23  Karl Berry  <karl@gnu.org>
62537
62538         * config/srclistvars.sh (GNUORG) [karl]: redefine.
62539         * config/srclist.txt: add maintain/standards documents.
62540
62541 2004-02-18  Bruno Haible  <bruno@clisp.org>
62542
62543         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
62544         Reported by Derek Robert Price <derek@ximbiot.com>.
62545
62546 2004-02-16  Karl Berry  <karl@gnu.org>
62547
62548         * config/mkinstalldirs, install-sh: update from automake.
62549
62550 2004-02-06  Karl Berry  <karl@gnu.org>
62551
62552         * m4/po.m4: update from gettext 0.14.1.
62553
62554 2004-02-06  Karl Berry  <karl@gnu.org>
62555
62556         * lib/config.charset: update from gettext 0.14.1.
62557
62558 2004-02-05  Paul Eggert  <eggert@twinsun.com>
62559
62560         Add comments and code, prompted by suggestions from Bruno Haible
62561         for sh-quote.
62562         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
62563         describing the enum quoting_style values.
62564         * lib/quotearg.c (quotearg_alloc): New function.
62565         (quotearg_buffer_restyled): Treat lone { and } as special.
62566         Treat = as special.  Work around bug with older shells
62567         that "see" a '\' that is really the 2nd byte of a multibyte char.
62568         Quote empty string with shell_quoting_style.
62569
62570 2004-02-03  Bruno Haible  <bruno@clisp.org>
62571
62572         * m4/pipe.m4: New file, from GNU gettext.
62573
62574 2004-02-03  Bruno Haible  <bruno@clisp.org>
62575
62576         * lib/pipe.h: New file, from GNU gettext.
62577         * lib/pipe.c: New file, from GNU gettext.
62578
62579 2004-01-27  Bruno Haible  <bruno@clisp.org>
62580
62581         * m4/execute.m4: New file, from GNU gettext.
62582
62583 2004-01-27  Bruno Haible  <bruno@clisp.org>
62584
62585         * lib/execute.h: New file, from GNU gettext.
62586         * lib/execute.c: New file, from GNU gettext.
62587         * lib/w32spawn.h: New file, from GNU gettext.
62588
62589 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62590
62591         Merge from diffutils.
62592
62593         * lib/file-type.c (file_type): Add typed memory objects.
62594         * lib/file-type.h (S_TYPEISTMO): New macro.
62595
62596         * lib/c-stack.h (c_stack_action): Remove argv argument.
62597         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
62598         (die): Don't calculate message unless segv_action returns.
62599         (get_stack_location, min_address_from_argv, max_address_from_argv,
62600         volatile stack_base, volatile_stack_size): Remove.
62601         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
62602         that every segmentation violation is a stack overflow.  (Ouch!)
62603         See Debian bug 136249 (still outstanding) for more info about why
62604         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
62605
62606 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62607
62608         Exit-status fix from coreutils.
62609
62610         Use exit_failure consistently in place of EXIT_FAILURE,
62611         so that program exit statuses are consistent on failure.
62612
62613         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
62614         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
62615         * lib/argmatch.h: Comment fix to match the above.
62616         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
62617         Now a macro referring to exit_failure, instead of a separate
62618         variable.  Include "exitfail.h" to get it.
62619         * lib/xstrtol.h: Include "exitfail.h".
62620         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
62621
62622         * lib/long-options.c (parse_long_options): Use prototype
62623         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
62624         for clarity.
62625
62626 2004-01-21  Jim Meyering  <jim@meyering.net>
62627
62628         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
62629         so as not to conflict with a different-sized __mktime_internal
62630         function in GNU libc.
62631         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
62632         Problem building statically-linked `ls' reported by Michael Brunnbauer.
62633
62634 2004-01-20  Karl Berry  <karl@gnu.org>
62635
62636         * config/config.guess: update from config.
62637
62638         * config/srclistvars.sh: GNUWWWLICENSES for karl.
62639
62640 2004-01-20  Bruno Haible  <bruno@clisp.org>
62641
62642         Safer stack allocation.
62643         * lib/setenv.c: Include allocsa.h.
62644         (alloca): Remove fallback definition.
62645         (freea): Remove macro.
62646         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
62647         instead of freea.
62648
62649 2004-01-20  Bruno Haible  <bruno@clisp.org>
62650
62651         * m4/eealloc.m4: New file, from GNU gettext.
62652
62653 2004-01-20  Bruno Haible  <bruno@clisp.org>
62654
62655         * m4/allocsa.m4: New file, from GNU gettext.
62656
62657 2004-01-20  Bruno Haible  <bruno@clisp.org>
62658
62659         * lib/xallocsa.h: New file, from GNU gettext.
62660         * lib/xallocsa.c: New file, from GNU gettext.
62661
62662 2004-01-20  Bruno Haible  <bruno@clisp.org>
62663
62664         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
62665
62666 2004-01-20  Bruno Haible  <bruno@clisp.org>
62667
62668         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
62669         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
62670         specially.
62671
62672 2004-01-20  Bruno Haible  <bruno@clisp.org>
62673
62674         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
62675         patch.
62676
62677 2004-01-20  Bruno Haible  <bruno@clisp.org>
62678
62679         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
62680
62681 2004-01-20  Bruno Haible  <bruno@clisp.org>
62682
62683         * lib/eealloc.h: New file.
62684
62685 2004-01-20  Bruno Haible  <bruno@clisp.org>
62686
62687         * lib/binary-io.h: Avoid warnings on Cygwin.
62688
62689 2004-01-20  Bruno Haible  <bruno@clisp.org>
62690
62691         * lib/allocsa.h: New file, from GNU gettext.
62692         * lib/allocsa.c: New file, from GNU gettext.
62693
62694 2004-01-18  Karl Berry  <karl@gnu.org>
62695
62696         * doc/gpl.texi, doc/lgpl.texi: new files.
62697
62698 2004-01-18  Karl Berry  <karl@gnu.org>
62699
62700         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
62701         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
62702
62703 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62704
62705         Merge from coreutils.
62706
62707         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
62708         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
62709         (gl_DEFAULT_POSIX2_VERSION): Move
62710         the documentation from 'configure' into 'config.hin',
62711         so that 'configure --help' isn't burdened by it and
62712         we don't have to worry about its formatting there.
62713         Reword the documentation so that it's more succinct
62714         and can be run together into a single paragraph.
62715         * m4/same.m4 (gl_SAME): Check for pathconf.
62716
62717 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62718
62719         Merge from coreutils.
62720
62721         * lib/posixver.c: Include posixver.h.
62722
62723         * lib/same.c: Include <stdbool.h>, <limits.h>.
62724         (_POSIX_NAME_MAX): Define if not defined.
62725         (MIN): New macro.
62726         (same_name): If file names are silently truncated, report
62727         that the file names are the same if they are the same after
62728         the silent truncation.
62729
62730         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
62731         conversion function.
62732         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
62733         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
62734         longer needed.
62735
62736 2004-01-15  Jim Meyering  <jim@meyering.net>
62737
62738         Merge from coreutils.
62739
62740         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
62741         if no library is required.
62742         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
62743         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
62744         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
62745         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
62746         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
62747         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
62748         value, $ac_cv_search_crypt, if it's "none required".
62749         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
62750         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
62751         not gl_FUNC_GETLOADAVG.
62752         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
62753         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
62754
62755 2004-01-15  Jim Meyering  <jim@meyering.net>
62756
62757         Merge from coreutils.
62758
62759         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
62760         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
62761         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
62762
62763         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
62764         optional configure-time default.
62765
62766         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62767
62768         * lib/xreadlink.c (xreadlink): Correct outdated comment.
62769
62770 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
62771
62772         Merge from coreutils.
62773
62774         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
62775         value, $ac_cv_search_nanosleep, if it's "none required".
62776
62777 2004-01-14  Paul Eggert  <eggert@twinsun.com>
62778
62779         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
62780         with like-named macro in fnmatch.c.
62781         (EXT): Use an internal constant instead.
62782
62783         Merge fnmatch patches from glibc.
62784         * lib/fnmatch.c (mbsinit): Remove define.
62785         Add libc_hidden_ver (__fnmatch, fnmatch).
62786         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
62787         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
62788
62789 2004-01-14  Karl Berry  <karl@gnu.org>
62790
62791         * config/install-sh: update from automake.
62792
62793 2004-01-13  Karl Berry  <karl@gnu.org>
62794
62795         * config/install-sh: update from automake.
62796
62797 2004-01-09  Karl Berry  <karl@gnu.org>
62798
62799         * config/install-sh: update from automake.
62800
62801 2004-01-05  Karl Berry  <karl@gnu.org>
62802
62803         * config/config.{sub,guess}: update from config.
62804
62805 2003-12-31  Karl Berry  <karl@gnu.org>
62806
62807         * config/depcomp: update from automake.
62808
62809 2003-12-14  Karl Berry  <karl@gnu.org>
62810
62811         * lib/config.charset: update from gettext-runtime.
62812
62813 2003-12-03  Paul Eggert  <eggert@twinsun.com>
62814
62815         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
62816         Bug reported by Alfred M. Szmidt.
62817
62818 2003-12-03  Bruno Haible  <bruno@clisp.org>
62819
62820         * m4/gettext.m4: Upgrade from gettext-0.13.
62821         * m4/po.m4: Upgrade from gettext-0.13.
62822         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
62823         * m4/intmax.m4: New file, from gettext-0.13.
62824         * m4/printf-posix.m4: New file, from gettext-0.13.
62825
62826 2003-11-29  Karl Berry  <karl@gnu.org>
62827
62828         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
62829
62830 2003-11-25  Paul Eggert  <eggert@twinsun.com>
62831             Bruno Haible  <bruno@clisp.org>
62832
62833         * lib/printf-parse.h: Don't include sys/types.h.
62834         (ARG_NONE): New macro.
62835         (char_directive): Change type of *arg_index fields to size_t.
62836         * lib/printf-parse.c: Don't include sys/types.h.
62837         (SSIZE_MAX): Remove macro.
62838         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
62839         Remove unnecessary overflow check.
62840         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
62841         fields.
62842
62843 2003-11-25  Bruno Haible  <bruno@clisp.org>
62844
62845         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
62846
62847 2003-11-25  Bruno Haible  <bruno@clisp.org>
62848
62849         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
62850         gt_TYPE_SSIZE_T.
62851
62852 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62853
62854         * modules/alloca: Remove dependency on xalloc.
62855
62856 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62857
62858         * lib/alloca.c: Remove dependency on xalloc module.
62859         (xalloc_die): Remove.
62860         (memory_full) [!defined emacs]: New macro.
62861         [!defined emacs]: Don't include xalloc.h.
62862         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
62863         address arithmetic overflows.  Change datatypes a bit to avoid
62864         unnecessary casts.
62865
62866 2003-11-22  Jim Meyering  <jim@meyering.net>
62867
62868         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
62869         s/size/size_t/.
62870
62871 2003-11-21  Karl Berry  <karl@gnu.org>
62872
62873         * config/config.{sub,guess}: update from config.
62874
62875 2003-11-18  Karl Berry  <karl@gnu.org>
62876
62877         * config/config.{sub,guess}: update from config.
62878
62879         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
62880
62881 2003-11-17  Paul Eggert  <eggert@twinsun.com>
62882
62883         * README: Mention that S+T cannot overflow if S is the size of
62884         an existing object and T is sufficiently small.
62885
62886 2003-11-17  Jim Meyering  <jim@meyering.net>
62887
62888         On systems without utime and without a utimes function capable of
62889         dealing with a NULL struct utimbuf* argument, this utime replacement
62890         could -- in unusual circumstances -- leak a file descriptor.
62891         * lib/utime.c: Include <unistd.h> and <errno.h>.
62892         (utime_null): Be sure to close `fd' and to preserve errno.
62893         Reported by Geoff Collyer via Arnold Robbins.
62894
62895 2003-11-17  Bruno Haible  <bruno@clisp.org>
62896
62897         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
62898         (Depends-on): Add xsize.
62899
62900 2003-11-17  Bruno Haible  <bruno@clisp.org>
62901
62902         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
62903
62904 2003-11-17  Bruno Haible  <bruno@clisp.org>
62905
62906         * lib/vasnprintf.c (alloca): Remove fallback definition.
62907         (freea): Remove definition.
62908         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
62909         Reported by Paul Eggert.
62910
62911 2003-11-16  Paul Eggert  <eggert@twinsun.com>
62912             Bruno Haible  <bruno@clisp.org>
62913
62914         Protect against address arithmetic overflow.
62915         * lib/printf-args.h: Include stddef.h.
62916         (arguments): Change type of field 'count' to size_t.
62917         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
62918         'unsigned int' where appropriate.
62919         * lib/printf-parse.h: Include sys/types.h.
62920         (char_directive): Change type of *arg_index fields to ssize_t.
62921         (char_directives): Change type of fields 'count', max_*_length to
62922         size_t.
62923         * lib/printf-parse.c: Include sys/types.h and xsize.h.
62924         (SSIZE_MAX): Define fallback value.
62925         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
62926         instead of 'int' where appropriate. Check a_allocated, d_allocated
62927         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
62928         * lib/vasnprintf.c: Include xsize.h.
62929         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
62930         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
62931         overflow. Avoid wraparound when converting a width or precision from
62932         decimal to binary.
62933
62934 2003-11-16  Bruno Haible  <bruno@clisp.org>
62935
62936         Update from GNU gettext.
62937         * lib/printf-parse.c: Generalize to it can be compiled for wide
62938         strings.
62939         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
62940         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
62941         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
62942         SNPRINTF): New macros.
62943         Don't include <alloca.h> if the file is used inside libintl.
62944         (local_wcslen): New function, for Solaris 2.5.1.
62945         (VASNPRINTF): Use it instead of wcslen.
62946
62947 2003-11-16  Bruno Haible  <bruno@clisp.org>
62948
62949         * lib/xsize.h (xmax): New function.
62950         (xsum, xsum3, xsum4): Declare as "pure" functions.
62951
62952 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62953
62954         * modules/xalloc (Files): Undo latest change, since xalloc.h
62955         no longer needs SIZE_MAX or PTRDIFF_MAX.
62956
62957 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62958
62959         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
62960         gl_PTRDIFF_MAX.
62961
62962 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62963
62964         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
62965         "return", to pacify some unknown compiler.  Problem reported
62966         by Joerg Schilling.
62967
62968 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62969
62970         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
62971         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
62972         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
62973         heuristic is just as accurate as far as we know, and it removes a
62974         dependency on size_max.m4 and ptrdiff_max.m4.
62975
62976 2003-11-11  Bruno Haible  <bruno@clisp.org>
62977
62978         * modules/xsize (Files): Add m4/size_max.m4.
62979         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
62980
62981 2003-11-11  Bruno Haible  <bruno@clisp.org>
62982
62983         * m4/size_max.m4: New file.
62984         * m4/ptrdiff_max.m4: New file.
62985         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
62986         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
62987         (gl_XALLOC): Invoke it.
62988
62989 2003-11-11  Bruno Haible  <bruno@clisp.org>
62990
62991         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
62992         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
62993         defined.
62994
62995 2003-11-10  Paul Eggert  <eggert@twinsun.com>
62996
62997         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
62998         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
62999         rejected some allocations of exactly SIZE_MAX - 2 bytes.
63000         From Bruno Haible.
63001         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
63002         not (size_t) -1, since it's defined here.
63003
63004 2003-11-09  Karl Berry  <karl@gnu.org>
63005
63006         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
63007
63008 2003-11-06  Paul Eggert  <eggert@twinsun.com>
63009
63010         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
63011         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
63012         Reject sizes of exactly SIZE_MAX bytes.
63013         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
63014         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
63015
63016 2003-11-05  Bruno Haible  <bruno@clisp.org>
63017
63018         * lib/xsize.h: Include limits.h, to avoid a possible collision with
63019         SIZE_MAX defined in <limits.h> on Solaris.
63020
63021 2003-11-04  Jim Meyering  <jim@meyering.net>
63022
63023         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
63024         variable names, rather than @VAR@.
63025         * modules/poll: Likewise.
63026
63027 2003-11-04  Bruno Haible  <bruno@clisp.org>
63028
63029         * modules/xsize: New file.
63030         * modules/linebreak: Depend on xsize.
63031         * MODULES.html.sh (func_all_modules): Add xsize.
63032
63033 2003-11-04  Bruno Haible  <bruno@clisp.org>
63034
63035         * m4/xsize.m4: New file.
63036
63037 2003-11-04  Bruno Haible  <bruno@clisp.org>
63038
63039         * lib/xsize.h: New file.
63040         * lib/linebreak.c: Include xsize.h.
63041         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
63042         argument for overflow.
63043         Suggested by Paul Eggert.
63044
63045 2003-11-03  Karl Berry  <karl@gnu.org>
63046
63047         * config/config.{guess,sub}: update from config.
63048
63049 2003-11-03  Jim Meyering  <jim@meyering.net>
63050
63051         * modules/userspec (lib_SOURCES): Add userspec.h.
63052         (Include): Add "userspec.h".
63053         Improve description.
63054
63055 2003-11-03  Jim Meyering  <jim@meyering.net>
63056
63057         * lib/userspec.c: Include "userspec.h".
63058         * lib/userspec.h: New file.
63059
63060 2003-11-03  Bruno Haible  <bruno@clisp.org>
63061
63062         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
63063
63064 2003-11-03  Bruno Haible  <bruno@clisp.org>
63065
63066         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
63067         available, to avoid (extremely rare) race condition.
63068         Suggested by Paul Eggert.
63069
63070 2003-11-02  Karl Berry  <karl@gnu.org>
63071
63072         * config/srclist.txt (vasprintf.c): sync broken, sigh.
63073
63074 2003-10-31  Paul Eggert  <eggert@twinsun.com>
63075
63076         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
63077         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
63078         (read_filesystem_list): Set and use me_type_malloced.
63079         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
63080         whatever the type happens to be), for brevity and consistency.
63081         Check for size calculation overflow on Alphas running OSF/1.
63082
63083 2003-10-31  Jim Meyering  <jim@meyering.net>
63084
63085         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
63086
63087         * lib/linebuffer.c: Include <string.h> for declaration of memset.
63088
63089 2003-10-30  Paul Eggert  <eggert@twinsun.com>
63090             Bruno Haible  <bruno@clisp.org>
63091
63092         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
63093         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
63094
63095 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63096
63097         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
63098         netbsd*-gnu*.  Suggested by Robert Millan.
63099
63100 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63101
63102         * modules/group-member: Depend on stdbool.
63103
63104 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63105
63106         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
63107
63108 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63109
63110         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
63111         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
63112         after the 'gnu' in these cases.  This fixes some bugs in the
63113         previous change, and is based on suggestions by Robert Millan.
63114
63115 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63116
63117         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
63118         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
63119         no longer needed.
63120         * lib/quotearg.c (quotearg_n_options): Use it.
63121         * lib/group-member.c: Include <stdbool.h>.
63122         (free_group_info): Arg is now const *; don't free arg.
63123         (get_group_info): Now returns bool and accepts struct group_info *,
63124         rather than returning a malloc'ed struct group_info *.
63125         All uses changed.  Check for overflow in internal size calculation.
63126
63127         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
63128         rather than xmalloc/xrealloc.
63129         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
63130         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
63131         conformance bug: the old code used a pointer after freeing the
63132         storage that it addressed.
63133         * lib/hash.c (hash_initialize): Simplify the code by using
63134         xalloc_oversized rather than doing it by hand.
63135         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
63136         the buffer preserved.  Use free and xmalloc instead.
63137         * lib/quotearg.c (quotearg_n_options): Likewise.
63138         Use a simpler test for size overflow.  Don't use xalloc_oversized
63139         because unsigned int might be wider than size_t (!); this suggests
63140         that we should switch from unsigned int to size_t for slot numbers.
63141
63142 2003-10-28  Paul Eggert  <eggert@twinsun.com>
63143
63144         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
63145         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
63146         NetBSD kernels.  Requested by Richard Stallman.
63147
63148 2003-10-27  Paul Eggert  <eggert@twinsun.com>
63149
63150         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
63151         to allocate the returned structure.  Do not allocate a subarray,
63152         as x2nrealloc will do that.
63153         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
63154         instead of xnrealloc.
63155         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
63156
63157 2003-10-27  Bruno Haible  <bruno@clisp.org>
63158
63159         * lib/stdbool_.h: Better support for BeOS.
63160
63161 2003-10-26  Paul Eggert  <eggert@twinsun.com>
63162
63163         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
63164         now uses inline.
63165
63166 2003-10-26  Paul Eggert  <eggert@twinsun.com>
63167
63168         * lib/xalloc.h (xalloc_oversized): New static inline function, for
63169         callers that want to do their own size-overflow checking.  Include
63170         <stdbool.h>, since xalloc_oversized returns bool.
63171         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
63172         to use xalloc_oversized.
63173
63174         Add two functions x2realloc, x2nrealloc, for programs that grow
63175         arrays dynamically by doubling their sizes.
63176         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
63177         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
63178         New functions.
63179
63180         Port to C99 semantics for 'inline' of external functions.
63181         Bug reported by Bruno Haible.
63182         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
63183         with the old contents of xnmalloc.
63184         (xnmalloc, xmalloc): Use it.
63185         (xnrealloc_inline): New static inline function,
63186         with the old contents of xnrealloc.
63187         (xnrealloc, xrealloc): Use it.
63188
63189         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
63190         that.
63191
63192 2003-10-26  Karl Berry  <karl@gnu.org>
63193
63194         * config/srclist.txt (COPYING.DOC): no longer available from
63195         /gd/gnuorg; don't know where the ultimate source is.
63196
63197 2003-10-25  Paul Eggert  <eggert@twinsun.com>
63198
63199         Fix several address-calculation bugs in the hash modules,
63200         plus some minor code cleanup.
63201
63202         * lib/hash.h: Include <stdbool.h>, for bool.
63203         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
63204         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
63205         hash_get_n_entries, hash_get_max_bucket_length,
63206         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
63207         hash_rehash): Use size_t rather than unsigned.
63208         * lib/hash.c (struct hash_table, hash_get_n_buckets,
63209         hash_get_n_buckets_used, hash_get_n_entries,
63210         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
63211         hash_get_entries, hash_do_for_each, hash_string, is_prime,
63212         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
63213         Likewise.
63214         (SIZE_MAX): Define if not defined.
63215         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
63216         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
63217         hash_print):
63218         Use const * when possible.
63219         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
63220         (check_tuning): Fix bug: if tuning parameters were very close to
63221         0 or 1, rounding errors could have caused subscript violations.
63222         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
63223         (hash_initialize): Add 'fail:' label
63224         to free table and return NULL, and use it to simplify code.
63225         Use calloc rather than clearing the storage ourself.
63226         (hash_initialize, hash_rehash): Check for arithmetic overflow in
63227         buffer size calculations.
63228         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
63229         Include <stddef.h>, for size_t.
63230         * lib/hash-pjw.c (hash_pjw): Likewise.
63231         Switch to method described by Bruno Haible.
63232         Include <limits.h>, for CHAR_BIT.
63233         (SIZE_BITS): New macro.
63234
63235 2003-10-23  Paul Eggert  <eggert@twinsun.com>
63236
63237         * m4/getline.m4 (AM_FUNC_GETLINE):
63238         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
63239         hosts.  Problem reported by Derek Robert Price in
63240         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
63241         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
63242         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
63243
63244 2003-10-21  Paul Eggert  <eggert@twinsun.com>
63245
63246         * lib/getndelim2.c (getndelim2): When size calculation overflows,
63247         ceiling the allocation at NMAX bytes rather than silently
63248         discarding input bytes before NMAX is reached.  This makes
63249         a difference only if NMAX exceeds SIZE_MAX / 2.
63250
63251         * lib/obstack.c: Merge from glibc.
63252         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
63253         Add libc_hidden_def (_obstack_newchunk).
63254         (_obstack_free) [! defined _LIBC]: Remove.
63255         [defined _LIBC]: Make a strong alias from obstack_free, rather than
63256         a clone of the function body.
63257         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
63258         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
63259
63260         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
63261         glibc.
63262         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
63263         arg to memcpy.
63264
63265         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
63266         (obstack_ptr_grow_fast, obstack_int_grow_fast):
63267         Don't use lvalue casts, as GCC plans to remove support for them
63268         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
63269         was also present in the non-GCC version, indicating that this
63270         code had always been buggy and had never been widely used.
63271         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
63272         Use the fast variant of each macro, rather than copying the
63273         definiens of the fast variant; that way, we'll be more likely to
63274         catch future bugs in the fast variants.
63275
63276 2003-10-20  Bruno Haible  <bruno@clisp.org>
63277
63278         * modules/wait-process: New file.
63279         * MODULES.html.sh (func_all_modules): Add wait-process.
63280
63281 2003-10-20  Bruno Haible  <bruno@clisp.org>
63282
63283         * m4/wait-process.m4: New file.
63284
63285 2003-10-20  Bruno Haible  <bruno@clisp.org>
63286
63287         * lib/wait-process.h: New file, from GNU gettext.
63288         * lib/wait-process.c: New file, from GNU gettext.
63289
63290 2003-10-19  Jim Meyering  <jim@meyering.net>
63291
63292         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
63293         HPUX 10.20.
63294
63295 2003-10-18  Karl Berry  <karl@gnu.org>
63296
63297         * config/config.guess: update from config.
63298
63299 2003-10-16  Paul Eggert  <eggert@twinsun.com>
63300
63301         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
63302         (getgroups): First arg is int, not size_t.
63303         Don't let 'free' mangle errno.
63304
63305 2003-10-16  Paul Eggert  <eggert@twinsun.com>
63306
63307         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
63308
63309 2003-10-16  Karl Berry  <karl@gnu.org>
63310
63311         * config/config.{guess,sub}: update from config.
63312
63313 2003-10-16  Jim Meyering  <jim@meyering.net>
63314
63315         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
63316         memcpy.
63317
63318 2003-10-15  Paul Eggert  <eggert@twinsun.com>
63319
63320         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
63321         (SIZE_MAX): Remove.
63322         (new_exclude, add_exclude_file): Initial size no longer needs to
63323         be a power of 2.
63324         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
63325         our own address arithmetic overflow checking.
63326
63327         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
63328         (fnmatch): Do not alloca more than 2000 wide characters;
63329         instead, use malloc for large buffers.
63330         Check for address arithmetic overflow, and return -1
63331         with errno set to ENOMEM in that case.
63332         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
63333         (NEW_PATTERN): Do not alloca more than 8000 bytes;
63334         instead, return -1.  Check for address arithmetic overflow.
63335
63336 2003-10-14  Paul Eggert  <eggert@twinsun.com>
63337
63338         Handle invalid suffixes and overflow independently, so that
63339         callers can treat them independently as needed.  Fix some bugs in
63340         suffix handling, e.g., "100k@" was not diagnosed as an invalid
63341         suffix for a human-readable blocksize.  The major caller-visible
63342         change is the addition of a new
63343         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
63344         that both overflow and suffix chars were found.
63345
63346         * lib/human.c (humblock): Don't check separately for invalid suffix
63347         char; that is xstrtoumax's job (now that its bug is fixed).
63348         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
63349         INTMAX_MAX]: New macros.
63350         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
63351         TYPE_MAXIMUM): New macros.
63352         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
63353         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
63354         if overflow occurs, as it's what __strtol does and it's more useful
63355         in practice.
63356         (__xstrtol): If __strtol reports some error other than ERANGE,
63357         reflect it to the caller as LONGINT_INVALID.  If it reports
63358         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
63359         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
63360         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
63361         value.
63362         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
63363         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
63364         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
63365         [defined UINTMAX_MAX]: New macros.
63366
63367 2003-10-14  Bruno Haible  <bruno@clisp.org>
63368
63369         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
63370
63371 2003-10-14  Bruno Haible  <bruno@clisp.org>
63372
63373         * m4/sig_atomic_t: New file, from GNU gettext.
63374         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
63375
63376 2003-10-14  Bruno Haible  <bruno@clisp.org>
63377
63378         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
63379         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
63380         Also use volatile where needed.
63381
63382 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63383
63384         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
63385         Change maintainer from Bruno Haible to 'all'.
63386
63387 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63388
63389         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
63390
63391 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63392
63393         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
63394         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
63395         and define in terms of the other primitives.
63396         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
63397         (SIZE_MAX): Define if not already defined.
63398         (array_size_overflow): New function.
63399         (xalloc_die): Abort instead of exiting if 'error' returns.
63400         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
63401         (xmalloc, xrealloc): Use them.
63402         (xcalloc): Check for address arithmetic overflow.
63403         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
63404         a bit faster than strcpy.
63405
63406 2003-10-10  Simon Josefsson  <jas@extundo.com>
63407
63408         * modules/argp (Depends-on): Add restrict and strcase.
63409
63410 2003-10-10  Simon Josefsson  <jas@extundo.com>
63411
63412         * m4/argp.m4: Add AC_C_INLINE.
63413
63414 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63415
63416         Merge getpass from libc, plus a few fixes.
63417
63418         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
63419         Include <stdbool.h>.
63420         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
63421         __fsetlocking to empty.
63422         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
63423         do include <bits/libc-lock.h>.
63424         Do not include <fcntl.h>; not needed.
63425         [_LIBC]: Include <wchar.h>.
63426         (NOTCANCEL_MODE): New macro.
63427         (flockfile, funlockfile) [_LIBC]: New macros.
63428         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
63429         [!_LIBC]: New macros.
63430         (call_fclose): New function.
63431         (getpass): Use it.  Save tty stream separately; this simplifies the
63432         code and makes it more reliable if stdin happens to equal stdout.
63433         Invoke __fsetlocking on tty.
63434         Handle thread cancellation if needed.
63435         Namespace cleanup (use __tcgetattr, __getline).
63436         Use bool for Booleans.
63437         [USE_IN_LIBIO]: Handle wide streams.
63438         [!_LIBC]: Unconditionally do the fseek, since we don't know what
63439         stream might go where.
63440
63441         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
63442         doesn't have to include <stdio.h> before us.
63443         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
63444         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
63445         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
63446         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
63447         if not declared, so that we can use getpass.c code from libc without
63448         rewriting it.
63449         (flockfile, ftrylockfile, funlockfile): New macros.
63450
63451 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63452
63453         * modules/getpass: Depend on stdbool.
63454
63455 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63456
63457         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
63458
63459 2003-10-07  Karl Berry  <karl@gnu.org>
63460
63461         * config/config.{guess,sub}: update from config.
63462
63463 2003-10-06  Jim Meyering  <jim@meyering.net>
63464             Bruno Haible  <bruno@clisp.org>
63465
63466         This lets translators provide better translations for the
63467         "Written by ..." part of --version output.
63468         * lib/version-etc.h: Include stdarg.h.
63469         (version_etc_copyright): Declare as readonly.
63470         (version_etc): Make this function variadic with a NULL-terminated list
63471         of author name strings.
63472         (version_etc_va): New declaration.
63473         * lib/version-etc.c: Include stdarg.h, stdlib.h.
63474         (version_etc_copyright): Declare as readonly.
63475         (version_etc_va): New function. Provide a different translatable string
63476         for each possible number of authors < 10. Abbreviate when there are 10
63477         authors or more.
63478         (version_etc): Make this function variadic. Call version_etc_va.
63479         Suggestion from Gary V. Vaughan.
63480
63481         * lib/long-options.h (parse_long_options): Change prototype: the
63482         authors string is moved to the end and becomes variadic.
63483         * lib/long-options.c: Include stdarg.h.
63484         (parse_long_options): Make this function variadic, too.
63485         Call version_etc_va, not version_etc.
63486
63487 2003-10-06  Bruno Haible  <bruno@clisp.org>
63488
63489         * modules/version-etc-2: Remove file.
63490         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
63491
63492 2003-10-06  Bruno Haible  <bruno@clisp.org>
63493
63494         * modules/fatal-signal: New file.
63495         * MODULES.html.sh (func_all_modules): Add fatal-signal.
63496
63497 2003-10-06  Bruno Haible  <bruno@clisp.org>
63498
63499         * m4/fatal-signal.m4: New file.
63500         * m4/signalblocking.m4: New file, from GNU gettext.
63501
63502 2003-10-06  Bruno Haible  <bruno@clisp.org>
63503
63504         * lib/version-etc-2.h: Remove file.
63505         * lib/version-etc-2.c: Remove file.
63506
63507 2003-10-06  Bruno Haible  <bruno@clisp.org>
63508
63509         * lib/fatal-signal.h: New file, from GNU gettext.
63510         * lib/fatal-signal.c: New file, from GNU gettext.
63511
63512 2003-10-05  Paul Eggert  <eggert@twinsun.com>
63513
63514         * README: Rework advice for preventing empty .o files.
63515         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
63516         not <sys/types.h>.
63517
63518 2003-10-04  Karl Berry  <karl@gnu.org>
63519
63520         * lib/argp*: update from libc.
63521
63522 2003-10-04  Karl Berry  <karl@gnu.org>
63523
63524         * config/config.{guess,sub}: update from config.
63525
63526 2003-10-02  Bruno Haible  <bruno@clisp.org>
63527
63528         * modules/lchown (Include): Add lchown.h.
63529         * modules/time_r (Include): Use "..." syntax.
63530         * modules/xgetdomainname (Include): Add xgetdomainname.h.
63531
63532 2003-10-01  Simon Josefsson  <jas@extundo.com>
63533
63534         * MODULES.html.sh (func_all_modules): Move gethostname from section
63535         'based on' to section 'lacking' POSIX:2001.
63536
63537 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
63538
63539         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
63540         to output mode on the same stream.
63541
63542 2003-09-29  Paul Eggert  <eggert@twinsun.com>
63543
63544         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
63545         Fix arg typo in previous patch.
63546
63547 2003-09-28  Jim Meyering  <jim@meyering.net>
63548
63549         * lib/error.c: Correct cpp indentation.
63550
63551 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63552
63553         * modules/free: New file.
63554
63555 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63556
63557         * m4/free.m4: New file.
63558
63559 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63560
63561         * lib/minmax.h (MIN, MAX)
63562         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
63563         Omit the special code that used __typeof__, since we worry that
63564         it could be more trouble than it's worth.  See:
63565         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
63566         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
63567
63568         * lib/free.c: New file.
63569
63570 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
63571
63572         Trivial fixes to Makefile.am parts of module listings.
63573         * modules/strstr: Append strstr.h to lib_SOURCES.
63574         * modules/strcase: Likewise, for strcase.h.
63575
63576 2003-09-27  Karl Berry  <karl@gnu.org>
63577
63578         * config/mkinstalldirs: update from automake.
63579
63580 2003-09-26  Paul Eggert  <eggert@twinsun.com>
63581
63582         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
63583         (error_tail): Do not loop, reallocating temporary buffer, since
63584         the output cannot contain more wide characters than the input
63585         contains bytes, the size must be big enough already.  This avoids
63586         one potential size overflow calculation.  Check for size overflow
63587         when calculating temporary buffer size.  Free temporary buffer
63588         when done, if it was allocated with malloc; this plugs a memory
63589         leak.  Remove casts from void * to pointers, that are no longer
63590         needed now that we're assuming C89 or better.
63591
63592         Merge error changes from glibc.
63593
63594         * lib/error.c, error.h: Update copyright notice header to match glibc.
63595         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
63596         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
63597         Disable cancellation while printing error.
63598         * lib/error.h: Prepend __ to parameter names.
63599
63600 2003-09-26  Jim Meyering  <jim@meyering.net>
63601
63602         * lib/error.c (error_tail): Move some declarations
63603         into inner scope where the local variables are used.
63604
63605 2003-09-26  Bruno Haible  <bruno@clisp.org>
63606
63607         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
63608         stpncpy().
63609         Don't define stpncpy through config.h; it's now done through stpncpy.h.
63610
63611 2003-09-26  Bruno Haible  <bruno@clisp.org>
63612
63613         * lib/stpncpy.h (gnu_stpncpy): New declaration.
63614         (stpncpy): Define as alias for gnu_stpncpy.
63615         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
63616
63617 2003-09-25  Simon Josefsson  <jas@extundo.com>
63618
63619         * lib/xgetdomainname.h: New file.
63620         * lib/xgetdomainname.c: New file.
63621
63622 2003-09-25  Simon Josefsson  <jas@extundo.com>
63623             Bruno Haible  <bruno@clisp.org>
63624
63625         * modules/getdomainname: New file.
63626         * modules/xgetdomainname: New file.
63627         * MODULES.html.sh (func_all_modules): Add getdomainname,
63628         xgetdomainname.
63629
63630 2003-09-25  Simon Josefsson  <jas@extundo.com>
63631             Bruno Haible  <bruno@clisp.org>
63632
63633         * m4/getdomainname.m4: New file.
63634
63635 2003-09-25  Simon Josefsson  <jas@extundo.com>
63636             Bruno Haible  <bruno@clisp.org>
63637
63638         * lib/getdomainname.h: New file.
63639         * lib/getdomainname.c: New file.
63640
63641 2003-09-25  Karl Berry  <karl@gnu.org>
63642
63643         * lib/argp-fmtstream.c, argp-help.c: update from libc.
63644
63645 2003-09-25  Karl Berry  <karl@gnu.org>
63646
63647         * config/install-sh: update from automake.
63648
63649 2003-09-25  Bruno Haible  <bruno@clisp.org>
63650
63651         * modules/version-etc-2: New file, from modules/version-etc with
63652         modifications.
63653         * MODULES.html.sh (func_all_modules): Add version-etc-2.
63654
63655 2003-09-25  Bruno Haible  <bruno@clisp.org>
63656
63657         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
63658         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
63659
63660 2003-09-24  Simon Josefsson  <jas@extundo.com>
63661
63662         * modules/xgethostname: Add xgethostname.h.
63663
63664 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63665
63666         * lib/linebuffer.c (freebuffer): Don't free the argument, just
63667         the buffer associated with the argument.  Bug reported by
63668         Simon Josefsson.
63669
63670 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63671
63672         * README: Document assumptions that 'int' is at least 32 bits
63673         wide, that integer arithmetic is 2's complement without overflow,
63674         that there are no holes in integer values, that adding sizes of
63675         two nonoverlapping objects can't overflow, and that all-bits-zero
63676         yields scalar zero.  Fix spelling and capitalization typos.
63677
63678 2003-09-19  Karl Berry  <karl@gnu.org>
63679
63680         * lib/argp.h: update from libc.
63681
63682 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63683
63684         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
63685         to avoid spurious warnings like "AC_RUN_IFELSE was called before
63686         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
63687
63688 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63689
63690         * gnulib-tool: Use "test -h", not "test -L", for portability
63691         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
63692         (tags_regexp): Remove, since \| doesn't conform to POSIX.
63693         (sed_extract_prog): Issue s commands one-by-one, rather than
63694         using \| in one s command.
63695
63696 2003-09-16  Paul Eggert  <eggert@twinsun.com>
63697
63698         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
63699         input error, instead of returning NULL the next time we are called
63700         (and therefore losing track of errno).
63701
63702 2003-09-16  Bruno Haible  <bruno@clisp.org>
63703
63704         * gnulib-tool (func_create_testdir): Warn about duplicated
63705         dependencies.
63706
63707 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63708
63709         * modules/argmatch, modules/fatal, modules/obstack,
63710         modules/xalloc, modules/xgethostname: Sort dependencies by
63711         importance, not alphabetically.
63712
63713 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63714
63715         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
63716         fails, so that the caller gets the proper errno.
63717
63718         * lib/readutmp.c (read_utmp): Likewise.
63719         Check for fstat error.  Close stream and free storage
63720         when failing.
63721
63722 2003-09-14  Karl Berry  <karl@gnu.org>
63723
63724         * config/srclist.txt (strdup.c): disable for c89 changes.
63725
63726 2003-09-14  Jim Meyering  <jim@meyering.net>
63727
63728         * lib/getloadavg.c: Correct cpp indentation.
63729         * lib/strdup.c: Likewise.
63730         * lib/vasnprintf.c: Likewise.
63731
63732 2003-09-14  Bruno Haible  <bruno@clisp.org>
63733
63734         * modules/fwriteerror: New file.
63735         * MODULES.html.sh (func_all_modules): Add fwriteerror.
63736
63737 2003-09-14  Bruno Haible  <bruno@clisp.org>
63738
63739         * lib/fwriteerror.h: New file.
63740         * lib/fwriteerror.c: New file.
63741
63742 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63743
63744         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
63745         modules/xgethostname, modules/xalloc: Depend on exit.
63746
63747 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63748
63749         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
63750
63751         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
63752         and AC_MINIX, too, so that their extensions are available.
63753
63754         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
63755         This macro has been superseded by gl_BACKUPFILE.
63756
63757         More patches to assume C89 or better.
63758
63759         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
63760
63761         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
63762         unconditionally.
63763         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
63764         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
63765         Include <string.h>, <stdlib.h> unconditionally.
63766         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
63767         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
63768         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
63769         headers or for string.h.
63770         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
63771         or strtoul.
63772
63773         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
63774         headers.
63775         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
63776         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63777         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
63778         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
63779         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63780         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
63781         memcpy, memset.
63782         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
63783         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
63784         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
63785         strtol.
63786         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
63787         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
63788         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
63789         strtoul.
63790
63791 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63792
63793         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
63794         * lib/obstack.c [!defined _LIBC]: Likewise.
63795         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
63796         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
63797         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
63798
63799         More changes to assume C89 or better.
63800
63801         * lib/error.c (error_tail): Assume vprintf.
63802
63803         * lib/argmatch.c (getenv): Remove decl.
63804         * lib/progreloc.c (get_full_program_name): Define via prototype.
63805         * lib/setenv.c (clearenv): Likewise.
63806         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
63807         needed.
63808         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
63809         (malloc, memcpy): Remove decls.
63810         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
63811         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
63812         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63813         (memcpy): Remove macro.
63814         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
63815         (__P): Remove.  All uses removed.
63816         (PTR): Remove.  All uses changed to void *.
63817         (CHAR_BIT, NULL): Remove.
63818         (spaces, zeros, memset_space, memset_zero)
63819         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
63820         Remove.
63821         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
63822         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
63823         Define with prototype.
63824         Remove now-unnecessary prototype decl.
63825         (extra_args_spec): Assume ANSI C.  All uses changed.
63826         (extra_args_spec_iso): Remove.
63827         (my_strftime, emacs_strftimeu): Define via prototype.
63828         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
63829         unconditionally.
63830         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
63831         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
63832         (strtoul, strtol): Remove decls.
63833         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
63834         LONG_MAX): Remove.
63835         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63836         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
63837         (LOCALE_PARAM_PROTO): New macro.
63838         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
63839         (INTERNAL (strtol), strtol): Define with a prototype.
63840         (PARAMS): Remove.  All uses removed.
63841         * lib/tempname.c: Include <string.h> unconditionally.
63842         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
63843         * lib/xgethostname.c (main): Define with a prototype.
63844         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
63845         Include <stdlib.h> unconditionally.
63846         (calloc, malloc, realloc, free): Remove decls.
63847         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
63848         Include <stdlib.h> unconditionally.  Sort include file names.
63849         (strtod): Remove.
63850         (xstrtod): Define with a prototype.
63851         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
63852         (strtol, strtoul): Remove decls.
63853
63854 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63855
63856         More patches to assume C89 or better.
63857         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
63858         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
63859         string.h, memchr, STDC_HEADERS.
63860
63861 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63862
63863         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
63864         Include <stdlib.h>, <string.h> unconditionally.
63865         Remove now-unnecessary cast to char *.
63866         * lib/strnlen.c: Include <string.h> unconditionally.
63867         * lib/yesno.c (yesno): Define with a prototype.
63868
63869 2003-09-11  Bruno Haible  <bruno@clisp.org>
63870
63871         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
63872
63873 2003-09-10  Jim Meyering  <jim@meyering.net>
63874
63875         * lib/error.c: Correct indentation of cpp directives.
63876
63877 2003-09-10  Bruno Haible  <bruno@clisp.org>
63878
63879         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
63880         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
63881         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
63882         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
63883         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
63884         <stdlib.h> and <string.h> checks.
63885         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
63886         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
63887
63888 2003-09-10  Bruno Haible  <bruno@clisp.org>
63889
63890         * lib/strcspn.c: Include <string.h> unconditionally.
63891         * lib/strpbrk.c: Include <string.h> unconditionally.
63892         * lib/strstr.c: Include <string.h> unconditionally.
63893         * lib/unicodeio.c: Include <string.h> unconditionally.
63894         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
63895         * lib/unsetenv.c: Likewise.
63896         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
63897         * lib/yesno.c: Include <stdlib.h> unconditionally.
63898         (rpmatch): Add prototype.
63899
63900 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63901
63902         More patches to assume C89 or better.
63903         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
63904         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
63905         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
63906         or for string.h.
63907         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
63908         stdlib.h.
63909         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
63910         C headers.
63911         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
63912         string.h.
63913         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
63914         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
63915         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
63916         or for string.h.
63917         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
63918         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
63919         C headers.
63920         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
63921         memcpy.
63922         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
63923         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
63924         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
63925         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
63926         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
63927         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
63928         string.h, free.
63929         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
63930         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
63931         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
63932         C headers, or for string.h.
63933         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
63934         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
63935         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
63936         headers, memory.h, stdlib.h, string.h, strings.h.
63937         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
63938         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
63939         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
63940         strchr.
63941         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
63942         headers, memory.h, string.h.
63943         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
63944         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
63945         free.
63946         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
63947         headers.
63948         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
63949         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
63950         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
63951         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
63952         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
63953
63954 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63955
63956         More K&R removal.
63957
63958         * lib/acosl.c (main): Use a prototype.
63959         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
63960         tanl.c: Likewise.
63961
63962         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
63963
63964         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
63965         (getopt, etopt_long, getopt_long_only, _getopt_internal)
63966         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
63967         with a prototype.
63968         * lib/getopt.c (const): Remove macro.
63969         Include <string.h> unconditionally.
63970         (my_index): Remove; all uses changed to strchr.
63971         (strlen): Remove decl.
63972         (exchange): Remove forward decl; no longer needed.
63973         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
63974         Define with prototype.
63975         * lib/getopt1.c (const): Remove macro.
63976         (getopt_long, getopt_long_only, main): Define with prototype.
63977
63978         * lib/getugroups.c: Include <string.h> unconditionally.
63979
63980         * lib/getusershell.c: Include <stdlib.h> unconditionally.
63981         (getusershell, setusershell, endusershell, readname, main):
63982         Define with prototypes.
63983
63984         * lib/group-member.c: Include group-member.h first.
63985         Include <stdlib.h> unconditionally.
63986
63987         * lib/hard-locale.c: Include hard-locale.h first.
63988         Include <stdlib.h>, <string.h> unconditionally.
63989
63990         * lib/hash.c (free, malloc): Remove decls.
63991         Include <stdlib.h> unconditionally.
63992
63993         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
63994         (getenv): Do not declare.
63995
63996         * lib/idcache.c: Include <string.h> unconditionally.
63997
63998         * lib/long-options.c: Include long-options.h first, to test interface.
63999         Include <stdlib.h> unconditionally.
64000
64001         * lib/makepath.c: Include makepath.h first, to test interface.
64002         Include <stdlib.h> and <string.h> unconditionally.
64003
64004         * lib/linebuffer.c: Include <stdlib.h>.
64005         (free): Remove decl.
64006
64007         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
64008         stddef.h. rpl_malloc returns void *, not char *.
64009         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
64010         prototype.
64011
64012         * lib/md5.h: Include <limits.h> unconditionally.
64013         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
64014         (__P): Remove; all uses removed.
64015         * lib/md5.c: Include "md5.h" first.
64016         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
64017         md5_buffer, md5_process_bytes, md5_process_block):
64018         Define with prototypes.
64019         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
64020         * lib/sha.c: Include "sha.h" first.
64021         Include <stdlib.h>, <string.h> unconditionally.
64022
64023         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
64024         * lib/memcmp.c (__ptr_t): Likewise.
64025         * lib/memrchr.c (__ptr_t): Likewise.
64026         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
64027         Include <string.h> unconditionally.
64028         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
64029         * lib/memchr.c: Include <stdlib.h> unconditionally.
64030         * lib/memchr.c (LONG_MAX): Remove.
64031         * lib/memrchr.c (LONG_MAX): Likewise.
64032         * lib/memchr.c (__memchr): Define via a prototype.
64033         * lib/memrchr.c (__memrchr): Likewise.
64034         * lib/memcmp.c (__P): Remove, and remove all uses.
64035         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
64036         Remove forward decls; no longer needed.
64037         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
64038         Use types required by C89 in prototype.
64039
64040         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
64041         * lib/savedir.c: Likewise.
64042         * lib/mkdir.c (free): Remove decl.
64043         * lib/rmdir.c (rmdir): Define with a prototype.
64044         * lib/savedir.c: Include savedir.h first, to test interface.
64045
64046         * lib/mktime.c (STDC_HEADERS): Remove.
64047         Include <stdlib.h>, <string.h> unconditionally.
64048
64049         * lib/modechange.c: Include <stdlib.h> unconditionally.
64050         (malloc): Remove decl.
64051
64052         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
64053         (free): Remove decl.
64054
64055         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
64056         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
64057         (This type really should be intptr_t, but that's a C99ism.)
64058         (_obstack_memcpy): Remove: all uses changed to memcpy.
64059         Include <string.h> unconditionally.
64060         (struct obstack): Assume __STDC__ for types of members
64061         chunkfun, freefun, extra_arg.
64062         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
64063         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
64064         obstack_begin, obstack_specify_allocation,
64065         obstack_specify_allocation_with_arg, obstack_chunkfun,
64066         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
64067         Remove unprototyped decls and the macros that use them.
64068         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
64069         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
64070         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
64071         (defined __STDC__ && __STDC__)]:
64072         Remove nonprototyped code.
64073         Include <stdlib.h> unconditionally.
64074         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
64075         _obstack_allocated_p, _obstack_free, obstack_free,
64076         _obstack_memory_used, print_and_abort):
64077         Define using prototypes.
64078         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
64079         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
64080         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
64081         obstack_next_free, obstack_object_size, obstack_room) [0]:
64082         Remove unused, unprototyped code.
64083
64084         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
64085
64086         * lib/physmem.c (physmem_total, physmem_available, main): Define
64087         with prototypes.
64088
64089         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
64090         (main): Define with a prototype.
64091
64092         * lib/posixver.c (getenv): Remove decl.
64093
64094         * lib/putenv.c (malloc): Returns void *, not char *.
64095         Include <string.h> unconditionally.
64096         (strchr, memcpy, NULL): Do not define.
64097
64098         * lib/readtokens.c: Include readtokens.h first, to test interface.
64099         Include <stdlib.h>, <string.h> unconditionally.
64100         (init_tokenbuffer): Define with a prototype.
64101
64102         * lib/regex.c (PARAMS): Remove.  All uses removed.
64103         All uses of _RE_ARGS removed, too.
64104         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
64105         unconditionally.
64106         (bzero): Assume memset exists.
64107         (memcmp, memcpy, NULL): Remove.
64108         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
64109         char, or assignments to local vars of type signed char.
64110         (init_syntax_once, PREFIX(extract_number_and_incr),
64111         PREFIX(print_partial_compiled_pattern),
64112         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
64113         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
64114         PREFIX(regex_grow_registers), PREFIX(regex_compile),
64115         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
64116         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
64117         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
64118         wcs_compile_range, byte_compile_range, truncate_wchar,
64119         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
64120         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
64121         count_mbs_length, wcs_re_match_2_internal,
64122         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
64123         PREFIX(alt_match_null_string_p),
64124         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
64125         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
64126         regfree, PREFIX(extract_number)): Define with prototype.  Remove
64127         now-unnecessary declaration, if any.
64128         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
64129         regcomp, regexec):
64130         Remove now-unnecessary casts among pointer types.
64131         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
64132
64133         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
64134         (free): Remove decl.
64135
64136         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
64137
64138         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
64139         (free): Remove decl.
64140
64141         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
64142         * lib/xgetcwd.c: Likewise.
64143
64144         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
64145         (free): Remove decl.
64146
64147         * lib/strchrnul.c (strchrnul): Define with a prototype.
64148         Fix bug: c_in was not converted to char before searching.
64149
64150         The following changes are not K&R related:
64151
64152         * lib/group-member.h: Include <sys/types.h>, so that this file is
64153         self-contained.
64154         * lib/makepath.h: Likewise.
64155
64156         * lib/getusershell.c (readname, default_index, line_size, readname):
64157         Use size_t, not int, for sizes.
64158         (readname): If the size overflows, report an error instead of
64159         looping forever.
64160
64161 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64162
64163         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
64164         libc.
64165
64166 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64167
64168         * README: New section: portability guidelines.
64169
64170 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
64171
64172         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
64173         C89 spec.
64174
64175 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
64176
64177         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
64178
64179 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64180
64181         Assume C89 or better; remove K&R cruft.
64182         A few of these changes were first proposed by Derek Robert Price
64183         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
64184
64185         * lib/addext.c: Include <string.h> unconditionally.
64186         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
64187         Don't declare getenv or malloc.
64188
64189         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
64190         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
64191         (NULL): Remove.
64192         (find_stack_direction, alloca): Use prototypes.
64193
64194         * lib/atexit.c (atexit): Define using a prototype.
64195
64196         * lib/basename.c, dirname.c, stripslash.c:
64197         Include <string.h> unconditionally.
64198
64199         * lib/bcopy.c: Include <stddef.h>.
64200         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
64201
64202         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
64203
64204         * lib/error.h (error, error_at_line, error_print_progname)
64205         [! (defined (__STDC__) && __STDC__)]: Remove decls.
64206         * lib/error.c: Include error.h first, to check interface.
64207         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
64208         (VA_START): Remove; all uses changeed to va_start.
64209         (exit, strerror): Remove decls.
64210         (error_print_progname): Prototype uncondionally.
64211         Don't include <errno.h>; no longer needed.
64212         (private_strerror): Remove.
64213         (error_tail): Always define.
64214         (error, error_at_line): Assume C89 or better; always use prototypes.
64215         * lib/fatal.c: Include "fatal.h" first, to test interface.
64216         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
64217         (VA_START): Remove; all uses changed to va_start.
64218         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
64219         this case.
64220         (exit): Remove decl.
64221         (fatal): Prototype unconditionally.  Assume va_start works.
64222         Abort at end, to pacify gcc.
64223
64224         * lib/euidaccess.c (main): Define with a prototype.
64225
64226         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
64227
64228         * lib/exitfail.c: Include <stdlib.h> unconditionally.
64229
64230         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
64231         prototypes.
64232         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
64233         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
64234         (getenv): Remove decl.
64235         (fnmatch): Define using a prototype.
64236         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
64237         (FCT): Define using a prototype.
64238
64239         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
64240
64241         * lib/gethostname.c: Include <stddef.h>.
64242         (gethostname): Define with prototype.  Length is size_t, not int.
64243
64244 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64245
64246         Assume C89 or better; remove K&R cruft.
64247         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
64248         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
64249         string.h, getenv, malloc.
64250         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
64251         headers.
64252         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
64253         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
64254         do not check for strerror.
64255         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
64256         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
64257         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
64258         do not check for doprnt or vprintf.
64259         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
64260         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
64261
64262 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64263
64264         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
64265         getversion.c should have been removed then, but was accidentally
64266         preserved.
64267
64268         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
64269         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
64270
64271 2003-09-08  Karl Berry  <karl@gnu.org>
64272
64273         * config/config.sub, config.guess, srclistvars.sh: update from savannah
64274                 config, forget about prep.
64275
64276         * config/depcomp, missing: update from automake.
64277
64278 2003-09-07  Paul Eggert  <eggert@twinsun.com>
64279
64280         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
64281         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
64282
64283 2003-09-07  Paul Eggert  <eggert@twinsun.com>
64284
64285         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
64286         copy_tm_result.  Bug reported by Simon Josefsson in
64287         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
64288
64289 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64290
64291         * m4/time_r.m4: New file.
64292         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
64293         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
64294         is. Check for timegm declaration.
64295         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
64296         Do not check for gmtime_r.
64297         Replace mktime if __mktime_internal does not exist and if mktime
64298         hasn't been replaced already.
64299
64300 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64301
64302         * lib/time_r.c, lib/time_r.h: New files.
64303
64304         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
64305         __localtime_r.
64306         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
64307         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
64308
64309         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
64310         __gmtime_r.
64311         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
64312         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
64313         Include <time_r.h>.
64314
64315         * lib/timegm.c: Switch to glibc implementation, with the following
64316         changes:
64317         [defined HAVE_CONFIG_H]: Include <config.h>.
64318         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
64319         (__mktime_internal) [!defined _LIBC]: New decl.
64320         (__gmtime_r) [!defined _LIBC]: New macro and function.
64321         (timegm): Use a prototype, since gnulib assumes C89.
64322         Do not bother declaring tmp to be const, as it's not really usefu.
64323         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
64324         (timegm): Declare only if HAVE_DECL_TIMEGM.
64325
64326 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64327
64328         * MODULES.html.sh (func_all_modules): Add time_r.
64329         * modules/time_r: New file.
64330         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
64331         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
64332
64333 2003-09-03  Paul Eggert  <eggert@twinsun.com>
64334
64335         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
64336         Bug reported by Lute Kamstra in
64337         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
64338
64339         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
64340         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
64341         course with correspondingly smaller numbers for tomorrow and
64342         yesterday.  From Tadayoshi Funaba.  Originally installed into
64343         sh-utils on 1999-08-07, but the patch got lost (I guess during the
64344         coreutils merge?).
64345
64346 2003-08-31  Simon Josefsson  <jas@extundo.com>
64347
64348         * modules/timegm: New file.
64349         * MODULES.html.sh (func_all_modules): Add timegm.
64350
64351 2003-08-31  Simon Josefsson  <jas@extundo.com>
64352
64353         * m4/timegm.m4: New file.
64354
64355 2003-08-31  Simon Josefsson  <jas@extundo.com>
64356
64357         * lib/timegm.h: New file.
64358         * lib/timegm.c: New file.  Based on
64359         wget-1.8.2/src/http.c:mktime_from_utc.
64360
64361 2003-08-31  Karl Berry  <karl@gnu.org>
64362
64363         * lib/argp.h: update from libc.
64364
64365 2003-08-28  Bruno Haible  <bruno@clisp.org>
64366
64367         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
64368         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
64369         followed by '#define fnmatch fnmatch_posix' gives an error.
64370
64371 2003-08-28  Bruno Haible  <bruno@clisp.org>
64372
64373         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
64374         warning on QNX, which defines O_BINARY to 000000.
64375
64376 2003-08-27  Jim Meyering  <jim@meyering.net>
64377
64378         * m4/mkstemp.m4: Require that the system mkstemp be able to create
64379         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
64380         would fail after 32.  Reported by Danny Levinson.  Details here:
64381         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
64382
64383 2003-08-24  Bruno Haible  <bruno@clisp.org>
64384
64385         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
64386         MSVC7 <stdio.h> is included later.
64387
64388 2003-08-22  Simon Josefsson  <jas@extundo.com>
64389
64390         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
64391
64392 2003-08-20  Karl Berry  <karl@gnu.org>
64393
64394         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
64395
64396 2003-08-20  Bruno Haible  <bruno@clisp.org>
64397
64398         * modules/progname: New file.
64399         * MODULES.html.sh (func_all_modules): Add progname.
64400
64401 2003-08-20  Bruno Haible  <bruno@clisp.org>
64402
64403         * lib/progname.h: New file, from GNU gettext.
64404         * lib/progname.c: New file, from GNU gettext.
64405         * lib/progreloc.c: New file, from GNU gettext.
64406
64407 2003-08-19  Jim Meyering  <jim@meyering.net>
64408
64409         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
64410         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
64411
64412 2003-08-19  Bruno Haible  <bruno@clisp.org>
64413
64414         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
64415         more.
64416
64417 2003-08-19  Bruno Haible  <bruno@clisp.org>
64418
64419         * lib/xstrdup.c: Assume <string.h> exists.
64420
64421 2003-08-18  Paul Eggert  <eggert@twinsun.com>
64422
64423         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
64424         in makefile rules.
64425
64426 2003-08-18  Jim Meyering  <jim@meyering.net>
64427
64428         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
64429         * m4/lib-ld.m4: Likewise.
64430
64431 2003-08-18  Jim Meyering  <jim@meyering.net>
64432
64433         * lib/setenv.h: Indent nested cpp directive.
64434         * lib/vasnprintf.c: Remove trailing blanks.
64435
64436 2003-08-17  Simon Josefsson  <jas@extundo.com>
64437
64438         * modules/xstrndup: New file.
64439         * MODULES.html.sh (func_all_modules): Add xstrndup.
64440
64441 2003-08-17  Simon Josefsson  <jas@extundo.com>
64442
64443         * modules/argp: Fix autoconf macro name. Add more dependencies.
64444
64445 2003-08-17  Simon Josefsson  <jas@extundo.com>
64446
64447         * m4/xstrndup.m4: New file.
64448
64449 2003-08-17  Simon Josefsson  <jas@extundo.com>
64450
64451         * m4/argp.m4: New file.
64452
64453 2003-08-17  Simon Josefsson  <jas@extundo.com>
64454             Bruno Haible  <bruno@clisp.org>
64455
64456         * lib/xstrndup.h: New file.
64457         * lib/xstrndup.c: New file.
64458
64459 2003-08-17  Bruno Haible  <bruno@clisp.org>
64460
64461         * modules/strndup (Files, Include): Add lib/strndup.h.
64462
64463 2003-08-17  Bruno Haible  <bruno@clisp.org>
64464
64465         * modules/euidaccess (Files): Add lib/euidaccess.h.
64466
64467 2003-08-17  Bruno Haible  <bruno@clisp.org>
64468
64469         * lib/strndup.h: New file.
64470
64471 2003-08-17  Bruno Haible  <bruno@clisp.org>
64472
64473         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
64474         like AC_GNU_SOURCE.
64475         * modules/extensions (configure.ac): Comment out the invocation of
64476         gl_USE_SYSTEM_EXTENSIONS.
64477
64478 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64479
64480         Merges from coreutils, etc.
64481         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
64482         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
64483         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
64484         fixing a typo.
64485         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
64486         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
64487
64488 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64489
64490         Document merge from coreutils.
64491         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
64492         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
64493         * modules/utime: Add m4/utimes-null.m4.
64494
64495 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64496
64497         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
64498         space, undoing this 2003-08-12 change:
64499         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64500
64501 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64502
64503         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
64504         strtoul.c from libc, undoing this 2003-08-12 change:
64505         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64506
64507 2003-08-16  Jim Meyering  <jim@meyering.net>
64508
64509         Merges from coreutils.
64510         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
64511         prefix.  Adjust cache variables similarly.  Create 500 rather than
64512         just 300 files, to exercise bug on Darwin6.5, too.
64513         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
64514         $missing_dir.
64515         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
64516         AM_SYS_POSIX_TERMIOS.
64517         Reported by mkc@mathdogs.com.
64518         Also change use of $am_cv_sys_posix_termios
64519         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
64520         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
64521         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
64522         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
64523         in /proc/mounts until it finds one with matching device number.  This
64524         is unnecessary when the FILE argument *is* a mount point.  No stat call
64525         is necessary in that case.  So, disable the statvfs-testing code on
64526         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
64527         as RedHat bug# 84846.
64528         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64529         to 1MB, so as not to render systems with no stack size limit (e.g.,
64530         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64531         Include <unistd.h>.  On some systems,
64532         it is required for the definition of _SC_PAGESIZE.
64533
64534 2003-08-16  Jim Meyering  <jim@meyering.net>
64535
64536         Merge from coreutils.
64537         * lib/xstrtoimax.c: #else #if -> #elif.
64538         * lib/xstrtoumax.c: Likewise.
64539
64540 2003-08-16  Jim Meyering  <jim@meyering.net>
64541
64542         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
64543         * m4/utimes.m4: Removed.
64544         * m4/utimes-null.m4: Renamed from utimes.m4.
64545
64546         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64547         to 1MB, so as not to render systems with no stack size limit (e.g.,
64548         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64549         Include <unistd.h>.  On some systems,
64550         it is required for the definition of _SC_PAGESIZE.
64551
64552 2003-08-16  Jim Meyering  <jim@meyering.net>
64553         and Paul Eggert  <eggert@cs.ucla.edu>
64554
64555         Merges from coreutils, etc.
64556
64557         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
64558         using the latest version from cvs.  This avoids problems with #line
64559         directives using a vendor (Sun) compiler.
64560         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
64561         Don't set GETGROUPS_LIB here; now it's
64562         done via getgroups.m4's wrapper function.
64563         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
64564         rather than just in sh-util/configure.in, so that the
64565         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
64566         same.
64567         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
64568         AC_FUNC_GETLOADAVG where to find getloadavg.c.
64569         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
64570         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
64571         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
64572         Remove code that is now done by the newly-required macros.
64573         Append $(EXEEXT) to DF_PROG.
64574         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
64575         Do not invoke or require the following here,
64576         since prereq.m4 or some gnulib .m4 now does this for us:
64577         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
64578         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
64579         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
64580         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
64581         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
64582         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
64583         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
64584         AC_FUNC_OBSTACK.
64585         Do not replace the following functions, as this is now the job
64586         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
64587         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
64588         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
64589         atexit getpass, strdup, getpagesize.
64590         Replace 'raise'.
64591         Do not check for the following functions, as this is now the job
64592         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
64593         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
64594         setregid.
64595         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
64596         Check for sys/sysctl.h.
64597         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
64598         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
64599         of checking for ssize_t ourselves.
64600
64601         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
64602         Require every macro that gnulib/modules/* suggests for us.
64603         (jm_PREREQ_ADDEXT): New macro.
64604         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
64605         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
64606
64607         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
64608         (gl_PHYSMEM): Use it.
64609         Also check for `table' function.
64610         Check for new headers and functions.
64611         Add check for sys/sysmp.h.
64612         With suggestions from Kaveh Ghazi.
64613         Ignore headers that are present but cannot be compiled.  This
64614         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
64615         C 5.4.
64616
64617 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64618
64619         Document merge from coreutils.
64620         * modules/userspec: Depend on posixver.
64621         * modules/strftime: Depend on tzset.
64622
64623 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64624
64625         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
64626         rather than tab, after '#' in shell-script copyright notices.
64627         Suggested by Bruno Haible.
64628
64629 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64630
64631         * config/srclist-update: Use three spaces, rather than tab, after '#'
64632         in shell-script copyright notices.  Suggested by Bruno Haible.
64633         Remove unnecessary parenthesization in regular expression.
64634
64635 2003-08-15  Jim Meyering  <jim@meyering.net>
64636
64637         Merge from coreutils.
64638         * lib/xgethostname.c: Include <stdlib.h>.
64639         (xghostname): Don't exit for anything other than memory-related
64640         failure; just return NULL.
64641         * lib/userspec.c: Include "posixver.h".
64642         (parse_user_spec): Accept `.' as a separator only
64643         in pre-POSIX-200112 mode.
64644         * lib/strtoimax.c: Use #elif rather than #else #if.
64645         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
64646         Remove function, now that we can rely on a working tzset function.
64647         [!_LIBC]: Ensure that the required autoconf test has been run.
64648         [!defined _NL_CURRENT && HAVE_STRFTIME]:
64649         Use underlying_strftime for %r.
64650         * lib/sha.c: Merge in some clean-up and optimization changes from
64651         glibc.
64652         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
64653         Ensure that it is a multiple of 64.
64654         Rearrange loop exit tests so as to avoid performing an
64655         additional fread after encountering an error or EOF.
64656         * lib/realloc.c: Update copyright date.
64657
64658 2003-08-15  Jim Meyering  <jim@meyering.net>
64659         and Paul Eggert  <eggert@twinsun.com>
64660
64661         Merge from coreutils.
64662         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
64663         member but strut utmpx does not.  Needed for AIX 4.3.3.
64664         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
64665
64666 2003-08-15  Jim Meyering  <jim@meyering.net>
64667         and Paul Eggert  <eggert@cs.ucla.edu>
64668
64669         Merges from coreutils, etc.
64670         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
64671         Require gl_FUNC_TZSET_CLOBBER.
64672         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
64673         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
64674         members.
64675
64676 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64677
64678         Help the merge from coreutils.
64679         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
64680         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
64681         * m4/tzset.m4: Use it too.
64682
64683 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64684
64685         * modules/tzset: New file.
64686
64687 2003-08-14  Jim Meyering  <jim@meyering.net>
64688
64689         Merges from coreutils.
64690         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
64691         variable names, rather than @FNMATCH_H@.
64692         * modules/alloca: Likewise for $(ALLOCA_H).
64693
64694         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
64695         the three copies of the literal target, `fnmatch.h'.
64696         * modules/alloca (alloca.h): Likewise.
64697
64698 2003-08-14  Jim Meyering  <jim@meyering.net>
64699
64700         Merge from coreutils.
64701         * m4/tzset.m4: New file.
64702         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
64703         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
64704         otherwise, AIX 5.1 systems would end up using the latter.
64705         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
64706         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
64707         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
64708         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
64709
64710 2003-08-14  Jim Meyering  <jim@meyering.net>
64711
64712         Merge from coreutils.
64713         * lib/obstack.h: Whitespace changes.
64714         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
64715         and xcalloc return values.
64716         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
64717         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
64718         hang on OSF/1 5.1 for DIR on both local and remote file systems.
64719         Reported by (and fix confirmed by) Nelson H. F. Beebe.
64720         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64721         error from mntctl.
64722         Use mntctl's return value to drive the entry-processing loop, since
64723         we can't rely on the value of the vmt_length member in the last
64724         entry.  On some systems doing so could result in exhausting
64725         virtual memory.  Based in part on a patch from Mike Jetzer.
64726
64727 2003-08-14  Jim Meyering  <jim@meyering.net>
64728         and Paul Eggert  <eggert@twinsun.com>
64729
64730         Merges from coreutils, plus other fixes.
64731         * lib/physmem.c: Merge in portability changes from gcc/libiberty
64732         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
64733         for credits and details.  Thanks to Kaveh Ghazi for helping
64734         to keep these files in sync.
64735         (ARRAY_SIZE): Define it.
64736         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
64737         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
64738         (memcasecmp): Don't assume size_t fits in unsigned int.
64739         Remove casts and duplicate code.
64740         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
64741         (memcpy): Remove definition.
64742         Merge in some clean-up and optimization changes from glibc.
64743         [BLOCKSIZE]: Move definition to top of file.
64744         Ensure that it is a multiple of 64.
64745         Rearrange loop exit tests so as to avoid performing an
64746         additional fread after encountering an error or EOF.
64747         * lib/md5.h (md5_uintptr): Define.
64748         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
64749         return to the initial working directory.  Preserve errno
64750         for caller.
64751         * lib/idcache.c: Include "xalloc.h".
64752         (xmalloc, xrealloc): Remove decls.
64753         (getuser): Remove casts no longer required in C89.
64754         * lib/human.c: Include stdio.h, for sprintf.
64755         * lib/group-member.c: Include "xalloc.h".
64756         (xmalloc, xrealloc): Remove decls.
64757         (get_group_info): Remove casts no longer required in C89.
64758         * lib/getusershell.c (readname): Remove casts no longer required in
64759         C89.
64760         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
64761         * lib/getline.c: Whitespace fix, from coreutils.
64762
64763 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64764
64765         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
64766         Check for isascii.
64767
64768         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64769         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64770         Undo previous (whitespace-only) change.
64771
64772 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64773
64774         * lib/exclude.c: Include <ctype.h>
64775         (IN_CTYPE_DOMAIN): New macro.
64776         (is_space): New fn.
64777         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
64778         and empty lines.
64779
64780         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64781         Undo previous (whitespace-only) change.
64782
64783 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64784
64785         * config/srclist-update: Change update back to the old behavior,
64786         leaving whitespace alone.  Use one 'sed' command rather than a
64787         pipeline.
64788         (fixlicense): Now a variable, not a function.
64789         (remove_trailing_blanks): Remove.
64790         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
64791         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64792         Undo previous (whitespace-only) change.
64793
64794 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64795
64796         Merge from coreutils.
64797         * modules/euidaccess: Add lib_SOURCES, include for new
64798         file euidaccess.h
64799
64800 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64801
64802         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64803         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64804         Normalize leading white space and remove trailing white space.
64805
64806         Merge from coreutils
64807         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
64808
64809         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
64810         0.12.1.  These files are now being upgraded automatically by
64811         ../config/srclist-update.
64812
64813 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64814
64815         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64816         Normalize leading white space and remove trailing white space.
64817         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
64818         notice, as per ../config/srclist-update.
64819
64820         Merge from coreutils.
64821         * lib/euidaccess.h: New file.
64822         * lib/euidaccess.c: Include it.
64823         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
64824         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
64825         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
64826
64827 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64828
64829         * config/srclist-update: Add copyright notice.
64830         (remove_id_lines, remove_trailing_blanks): New constants.
64831         (fixfile): Use them to normalize spacing a bit in copied files.
64832         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64833         Normalize leading white space and remove trailing white space.
64834
64835         * config/texinfo.tex: Sync with texinfo.
64836
64837         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
64838         strtoul.c from libc, to merge coreutils whitespace changes.
64839
64840         * config/srclist.txt: Get the following m4 files from gettext:
64841         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
64842         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
64843         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
64844         wint_t.m4.
64845
64846 2003-08-12  Karl Berry  <karl@gnu.org>
64847
64848         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
64849         been made.
64850
64851 2003-08-11  Paul Eggert  <eggert@twinsun.com>
64852
64853         * modules/gnu-source, m4/gnu-source.m4:
64854         Remove; we're assuming Autoconf 2.54 or later now.
64855         Suggested by Bruno Haible.
64856         * MODULES.html.sh (func_all_modules): Remove gnu-source.
64857
64858 2003-08-11  Bruno Haible  <bruno@clisp.org>
64859
64860         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
64861
64862 2003-08-11  Bruno Haible  <bruno@clisp.org>
64863
64864         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
64865         (vasnprintf): Use it instead of wcslen.
64866
64867 2003-08-11  Bruno Haible  <bruno@clisp.org>
64868
64869         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
64870         value to ensure that _Bool promotes to int. Use #define for _Bool when
64871         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
64872
64873 2003-08-10  Karl Berry  <karl@gnu.org>
64874
64875         * lib/regex.h: update from libc (whitespace fix).
64876
64877 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64878
64879         Merge some files from coreutils.  These changes were
64880         originally made by Jim Meyering.
64881         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
64882         many older Unixes require this.
64883         * lib/alloca.c (alloca): Remove cast to argument of free;
64884         no longer needed in C89.
64885         * lib/alloca_.h, regex.h: Fix white space to match
64886         what GNU indent does.
64887
64888 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64889
64890         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
64891         apparently Emacs's Unicode mode got confused before my 2003-08-05
64892         checkin.
64893
64894 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64895
64896         * m4/extensions.m4: New file.
64897         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
64898         Require gl_USE_SYSTEM_EXTENSIONS.
64899         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
64900         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
64901
64902 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64903
64904         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
64905         * modules/extensions, modules/gnu-source: New files.
64906         * modules/timespec, modules/unlocked-io: Depend on extensions.
64907
64908 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64909
64910         * modules/restrict: New file.
64911         * MODULES.html.sh (func_all_modules): Add restrict.
64912         * modules/regex: Depend on restrict.
64913
64914 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64915
64916         * m4/restrict.m4: New file.
64917         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
64918
64919 2003-08-07  Bruno Haible  <bruno@clisp.org>
64920
64921         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
64922         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
64923
64924 2003-08-07  Bruno Haible  <bruno@clisp.org>
64925
64926         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
64927         makes the module 'getndelim2' compatible with the module 'getline'.
64928
64929 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64930
64931         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
64932         byte with "\201" to avoid glitches when editing that source file
64933         with multi-gnome-terminal.
64934
64935 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64936
64937         * lib/bumpalloc.h: Remove.
64938
64939 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64940
64941         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
64942         * modules/bumpalloc: Remove.
64943
64944 2003-08-04  Paul Eggert  <eggert@twinsun.com>
64945
64946         * lib/getloadavg.c: Change copyright notice and spacing to conform to
64947         GNU coding style.
64948
64949         Merge from coreutils.
64950         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
64951         1. From glibc.
64952         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
64953         from Karl Berry, implemented by Jim Meyering.
64954         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
64955         from Dmitry V. Levin.
64956         Remove anachronistic cast of xrealloc.
64957         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
64958         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
64959         type. Otherwise, it wouldn't compile with at least /bin/cc on
64960         ymp-cray-unicos9.0.2.X.
64961         Combine two mostly-identical uses of alloca into one.
64962         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
64963
64964 2003-08-04  Dave Love  <d.love@dl.ac.uk>
64965
64966         [From Emacs.]
64967
64968         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
64969         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
64970         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
64971         obsolete NLIST_NAME_UNION.
64972         [__GNU__]: Undef BSD and FSCALE.
64973         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
64974
64975 2003-08-03  Paul Eggert  <eggert@twinsun.com>
64976
64977         * lib/stdbool_.h (_Bool): Make it signed char, instead of
64978         an enum type, so that it's guaranteed to promote to int.  See:
64979         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
64980
64981 2003-08-03  Karl Berry  <karl@gnu.org>
64982
64983         * config/depcomp: update from automake.
64984
64985 2003-07-31  Paul Eggert  <eggert@twinsun.com>
64986
64987         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
64988         (strerror): Don't assume that a printable int fits in 14 bytes.
64989
64990 2003-07-31  Bruno Haible  <bruno@clisp.org>
64991
64992         * modules/getpass-gnu: New file.
64993         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
64994
64995 2003-07-31  Bruno Haible  <bruno@clisp.org>
64996
64997         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
64998
64999 2003-07-24  Karl Berry  <karl@gnu.org>
65000
65001         * config/missing: update from automake.
65002
65003 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
65004             Bruno Haible  <bruno@clisp.org>
65005
65006         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
65007         * lib/getline.c (getline, getdelim): Likewise.
65008         Remove _GNU_SOURCE define; now it's defined in config.h through
65009         m4/getline.m4.
65010
65011 2003-07-23  Karl Berry  <karl@gnu.org>
65012
65013         * config/config.sub: update from prep.
65014
65015 2003-07-22  Paul Eggert  <eggert@twinsun.com>
65016
65017         * modules/xalloc (Depends-on): Add exitfail.
65018         * modules/xmemcoll: Likewise.
65019
65020 2003-07-22  Paul Eggert  <eggert@twinsun.com>
65021
65022         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
65023         over-parenthesization in macros.
65024
65025         Sync with coreutils.
65026
65027         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
65028         required by C99.
65029
65030         Use `exit_failure' for xalloc and xmemcoll instead of their own
65031         private exit-failure variables.
65032         * lib/xalloc.h (xalloc_exit_failure): Remove.
65033         * lib/xmalloc.c: Likewise.  Include exitfail.h.
65034         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
65035         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
65036         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
65037         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
65038
65039 2003-07-20  Jim Meyering  <jim@meyering.net>
65040
65041         * modules/closeout (Depends-on): Add exitfail.
65042         Suggestion from Bruno Haible.
65043
65044 2003-07-19  Karl Berry  <karl@gnu.org>
65045
65046         * config/config.sub: update from prep.
65047
65048 2003-07-18  Paul Eggert  <eggert@twinsun.com>
65049
65050         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
65051         Remove.
65052         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
65053         to test that it can stand by itself.  Include "exitfail.h".
65054         Clients should set exit_failure instead.
65055         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
65056
65057 2003-07-18  Bruno Haible  <bruno@clisp.org>
65058
65059         * modules/getndelim2: New file.
65060         * modules/getline: Share files with module getndelim2.
65061         * modules/getnline: Depend on getndelim2 instead of sharing files with
65062         it. Add getnline.c to lib_SOURCES.
65063         * MODULES.html.sh (func_all_modules): Add getndelim2.
65064
65065 2003-07-18  Bruno Haible  <bruno@clisp.org>
65066
65067         * m4/getndelim2.m4: New file.
65068         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
65069         invoke gl_PREREQ_GETNDELIM2.
65070         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
65071         gl_PREREQ_GETNDELIM2.
65072         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
65073         gl_GETNDELIM2.
65074
65075 2003-07-18  Bruno Haible  <bruno@clisp.org>
65076
65077         * lib/getndelim2.h: New file.
65078         * lib/getndelim2.c: Make into a module of its own. Include config.h,
65079         getndelim2.h.
65080         (getndelim2): Make non-static. Change return type to ssize_t.
65081         * lib/getline.h: Change argument names.
65082         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
65083         * lib/getnline.c: Include getndelim2.h.
65084
65085 2003-07-18  Andreas Schwab  <schwab@suse.de>
65086
65087         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
65088
65089 2003-07-17  Karl Berry  <karl@gnu.org>
65090
65091         * config/config.sub: update from prep.
65092
65093 2003-07-17  Bruno Haible  <bruno@clisp.org>
65094
65095         * modules/getnline: New file.
65096         * modules/getline: Add lib/getndelim2.c to source file list.
65097         * MODULES.html.sh (func_all_modules): Add getnline.
65098
65099 2003-07-17  Bruno Haible  <bruno@clisp.org>
65100
65101         * m4/getnline.m4: New file.
65102
65103 2003-07-17  Bruno Haible  <bruno@clisp.org>
65104
65105         * m4/Makefile.am.in: Remove file.
65106         * m4/Makefile.am: Remove file.
65107         * m4/Makefile.in: Remove file.
65108
65109 2003-07-17  Bruno Haible  <bruno@clisp.org>
65110
65111         * lib/getnline.h: New file.
65112         * lib/getnline.c: New file.
65113         * lib/getndelim2.c: New file, extracted from getline.c.
65114         (getndelim2): Renamed from getdelim2, with added nmax argument.
65115         * lib/getline.c: Include getndelim2.c.
65116         (getdelim2): Moved out to getndelim2.c.
65117         (getline, getdelim): Update.
65118
65119 2003-07-17  Bruno Haible  <bruno@clisp.org>
65120
65121         * lib/Makefile.am: Remove file.
65122         * lib/Makefile.in: Remove file.
65123
65124 2003-07-17  Bruno Haible  <bruno@clisp.org>
65125
65126         * configure.in: Remove file.
65127         * Makefile.in: Remove file.
65128
65129 2003-07-17  Bruno Haible  <bruno@clisp.org>
65130
65131         * MODULES.html.sh: Put the </BODY> right before </HTML>.
65132
65133 2003-07-16  Karl Berry  <karl@gnu.org>
65134
65135         * config/srclist-update: was running fixlicense twice, which caused
65136                 texinfo.tex to be nullified for some reason.  Simplify,
65137                 $gplsrc is no longer needed as far as I can see?
65138
65139 2003-07-16  Jim Meyering  <jim@meyering.net>
65140
65141         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
65142
65143 2003-07-15  Paul Eggert  <eggert@twinsun.com>
65144
65145         * config/srclist.txt: Get the following files from gettext-runtime/intl
65146         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
65147         ref-del.sin.  From Bruno Haible.
65148         * config/srclist-update (fixfile): Change grep pattern again, since the
65149         previous fix didn't work (there was another trailing $).  Use
65150         '[$]' to escape the $s.
65151
65152 2003-07-15  Karl Berry  <karl@gnu.org>
65153
65154         * lib/vasnprintf.c: update from gettext.
65155
65156 2003-07-15  Karl Berry  <karl@gnu.org>
65157
65158         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
65159         gets expanded when surrounded by '$'.
65160
65161 2003-07-15  Jim Meyering  <jim@meyering.net>
65162
65163         * modules/save-cwd: Don't depend on error.  From Derek Price.
65164
65165 2003-07-15  Jim Meyering  <jim@meyering.net>
65166
65167         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
65168
65169 2003-07-14  Simon Josefsson  <jas@extundo.com>
65170
65171         * modules/mempcpy: New file.
65172         * MODULES.html.sh (func_all_modules): Add mempcpy.
65173
65174 2003-07-14  Simon Josefsson  <jas@extundo.com>
65175
65176         * m4/mempcpy.m4: New file.
65177
65178 2003-07-14  Simon Josefsson  <jas@extundo.com>
65179
65180         * lib/mempcpy.h: New file.
65181         * lib/mempcpy.c: New file.
65182
65183 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65184
65185         * modules/getdate, modules/posixtm: Depend on mktime.
65186
65187 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65188
65189         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
65190         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
65191         unicodeio.c, unicodeio.h, unlocked-io.h:
65192         Switch from LGPL to GPL.
65193
65194 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65195
65196         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
65197         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
65198         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
65199         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
65200         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
65201         updated automatically by ../config/srclist-update.  This changes
65202         their license from LPGL to GPL.
65203
65204 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65205
65206         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
65207         assumed to refer to the root of the most recent stable gettext version.
65208         * config/srclistvars.sh: Add defaults for eggert.
65209         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
65210         Match "This program" as well as "The program".  This is needed
65211         for gettext.
65212
65213 2003-07-14  Jim Meyering  <jim@meyering.net>
65214
65215         Don't emit diagnostics.  Let callers do that.
65216         * lib/save-cwd.c: Don't include "error.h".
65217         (save_cwd): Don't call error.  Ensure that errno is valid
65218         when returning nonzero.
65219
65220         * lib/save-cwd.h (restore_cwd): Update prototype.
65221         * lib/save-cwd.c (restore_cwd): Remove two parameters.
65222         Simplify.  Don't call error upon failure.  Let callers do that.
65223         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
65224         when auditing is enabled.  But don't bother updating the #if.
65225
65226 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
65227
65228         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
65229         it breaks C++ compilation.
65230         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
65231
65232 2003-07-10  Simon Josefsson  <jas@extundo.com>
65233
65234         * modules/strchrnul (Makefile.am): Add strchrnul.h.
65235
65236 2003-07-10  Jim Meyering  <jim@meyering.net>
65237
65238         * m4/clock_time.m4: Remove trailing blank.
65239         * m4/intmax_t.m4: Likewise.
65240
65241 2003-07-10  Jim Meyering  <jim@meyering.net>
65242
65243         * lib/vasnprintf.c: Remove trailing blanks.
65244         Make cpp indentation consistent.
65245
65246 2003-07-09  Paul Eggert  <eggert@twinsun.com>
65247
65248         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
65249         posixver.c, strftime.c, strnlen.c, strverscmp.c:
65250         Switch from LGPL to GPL.
65251
65252 2003-07-09  Paul Eggert  <eggert@twinsun.com>
65253
65254         * config/srclist.txt: Sort sublists.  Add
65255         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
65256         that differ from gnulib for one reason or another; we'd like this list
65257         to be smaller but for now let's document what we have.
65258
65259 2003-07-08  Paul Eggert  <eggert@twinsun.com>
65260
65261         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
65262         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
65263         and sweeter "eval x=$x".
65264         * config/srclist.txt: Get lib/argp* from glibc.
65265
65266 2003-07-07  Paul Eggert  <eggert@twinsun.com>
65267
65268         * lib/mktime.c: Fix some boundary cases and remove need for floating
65269         point.
65270
65271         Issue a compile-time diagnostic if time_t is floating point, or if
65272         two's complement arithmetic is not in effect, or if arithmetic
65273         right shift does not propagate the sign.  These assumptions were
65274         all in the original code but they weren't checked.
65275
65276         (TIME_T_MIDPOINT, verify): New macros.
65277         (__isleap): Remove; it has integer overflow problems.
65278         (leapyear): New function, without those problems.
65279         (ydhms_tm_diff): Remove; splitting into two parts.
65280         (ydhms_diff): New function, containing the arithmetic part of
65281         the old ydhms_tm_diff function.  Issue a compile-time
65282         diagnostic if we are not using C99 integer division.
65283         Avoid casts when possible.
65284         (guess_time_tm): New function, containing the checking part of
65285         the old ydhms_tm_diff function.  Return the new value, rather than
65286         the difference between it and the old.  Accept a new argument T
65287         so that *T specifies the old value.  Check for overflow in the result.
65288
65289         (__mktime_internal): Use a time_t offset, not a long int offset.
65290         This undoes the 2003-06-04 change, which is no longer needed now
65291         that we have better overflow checking.
65292         (localtime_offset): Likewise.
65293
65294         (__mktime_internal): Avoid harmful overflow on hosts where time_t
65295         and long are 64-bit but int is only 32-bit.
65296         (ydhms_diff): Use long int to store year1 and yday1.
65297         Issue a compile-time diagnostic if long int is not wide enough.
65298
65299         (__mktime_internal): Use long int to store adjusted year and yday.
65300         Use plain C rather than preprocessor commands, if that doesn't
65301         affect efficiency.
65302         Check for overflow (and try to repair) after each probe
65303         rather than checking only at the very end.  This avoids some bugs
65304         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
65305         does not equal GMT offset at maximum time).
65306         Use integer to check for overflow rather than floating point; this
65307         is more portable to non-IEEE hosts, and is a tad faster.
65308         When we detect that we are oscillating between two values,
65309         don't check whether tm_isdst has the requested value, since
65310         we already know the answer.  When tm_isdst has the wrong value,
65311         use a different heuristic to find the right one, based on the
65312         extreme values actually observed in practice in tz2003a,
65313         rather than the (overly optimistic) "previous 3 calendar quarters".
65314
65315         (not_equal_tm, print_tm, check_result): Use "const T" rather than
65316         "T const" to accommodate glibc style.
65317         (check_result): Use less-confusing report format.  "long" -> "long int.
65318         (main): Likewise.
65319         Don't loop if the iteration overflows time_t.
65320         Allow a negative step in the iteration.
65321
65322 2003-07-06  Karl Berry  <karl@gnu.org>
65323
65324         * config/depcomp: update from automake.
65325         * config/config.sub: update from prep.
65326
65327 2003-07-03  Karl Berry  <karl@gnu.org>
65328
65329         * config/config.guess: update from prep.
65330
65331 2003-07-01  Paul Eggert  <eggert@twinsun.com>
65332
65333         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
65334         xreadlink.c now includes it unconditionally.
65335
65336 2003-07-01  Paul Eggert  <eggert@twinsun.com>
65337
65338         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
65339         having it depend on HAVE_SYS_TYPES_H.
65340
65341 2003-07-01  Bruno Haible  <bruno@clisp.org>
65342
65343         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
65344         <sys/types.h> should be sufficient.
65345         Reported by Paul Eggert.
65346
65347 2003-06-26  Karl Berry  <karl@gnu.org>
65348
65349         * config/depcomp: update from automake.
65350
65351 2003-06-26  Bruno Haible  <bruno@clisp.org>
65352
65353         * modules/human: Depend on module stdbool.
65354
65355 2003-06-25  Bruno Haible  <bruno@clisp.org>
65356
65357         * modules/readlink: New file.
65358         * modules/xreadlink: Depend on it.
65359         * MODULES.html.sh (func_all_modules): Add readlink.
65360
65361 2003-06-25  Bruno Haible  <bruno@clisp.org>
65362
65363         * m4/readlink.m4: New file.
65364
65365 2003-06-25  Bruno Haible  <bruno@clisp.org>
65366
65367         * lib/readlink.c: New file.
65368
65369 2003-06-22  Karl Berry  <karl@gnu.org>
65370
65371         * config/srclist.txt: update mkinstalldirs from automake.
65372         * config/mkinstalldirs: update.
65373
65374 2003-06-22  Bruno Haible  <bruno@clisp.org>
65375
65376         Portability to mingw32.
65377         * m4/ssize_t.m4: New file, from GNU gettext.
65378         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
65379         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
65380
65381 2003-06-22  Bruno Haible  <bruno@clisp.org>
65382
65383         * modules/safe-read: Add m4/ssize_t.m4.
65384         * modules/xreadlink: Add m4/ssize_t.m4.
65385
65386 2003-06-20  Bruno Haible  <bruno@clisp.org>
65387
65388         Assume C89, so PARAMS isn't needed.
65389         * lib/unicodeio.h (PARAMS): Remove.
65390         * lib/unicodeio.c: Don't use PARAMS.
65391
65392 2003-06-18  Karl Berry  <karl@gnu.org>
65393
65394         * config/config.{guess,sub}: update from prep.
65395
65396 2003-06-18  Jim Meyering  <jim@meyering.net>
65397
65398         Merge changes from coreutils.
65399         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
65400         Remove explicit declarations of xmalloc and realloc.
65401         Include xalloc.h.
65402         (read_utmp): Remove anachronistic cast of xmalloc.
65403
65404 2003-06-17  Paul Eggert  <eggert@twinsun.com>
65405
65406         Assume C89, so PARAMS isn't needed.
65407         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
65408         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
65409         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
65410         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
65411         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
65412         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
65413         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
65414         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
65415         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
65416         lib/xstrtod.h, lib/xstrtol.h: Likewise.
65417         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
65418         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
65419         no longer needed. Anyway, config.h should always be included before any
65420         other file.
65421
65422 2003-06-11  Simon Josefsson  <jas@extundo.com>
65423
65424         * modules/sysexits: New file.
65425         * MODULES.html.sh (func_all_modules): Add sysexits.
65426
65427 2003-06-11  Simon Josefsson  <jas@extundo.com>
65428
65429         * lib/sysexit_.h: New file.
65430
65431 2003-06-11  Derek Price  <derek@ximbiot.com>
65432
65433         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
65434         necessary.
65435
65436 2003-06-11  Bruno Haible  <bruno@clisp.org>
65437
65438         * m4/sysexits.m4: New file.
65439
65440 2003-06-10  Simon Josefsson  <jas@extundo.com>
65441
65442         * lib/argp.h: New file, from glibc.
65443         * lib/argp-ba.c: New file, from glibc.
65444         * lib/argp-eexst.c: New file, from glibc.
65445         * lib/argp-fmtstream.c: New file, from glibc.
65446         * lib/argp-fmtstream.h: New file, from glibc.
65447         * lib/argp-fs-xinl.c: New file, from glibc.
65448         * lib/argp-help.c: New file, from glibc.
65449         * lib/argp-namefrob.h: New file, from glibc.
65450         * lib/argp-parse.c: New file, from glibc.
65451         * lib/argp-pv.c: New file, from glibc.
65452         * lib/argp-pvh.c: New file, from glibc.
65453         * lib/argp-xinl.c: New file, from glibc.
65454
65455 2003-06-10  Simon Josefsson  <jas@extundo.com>
65456
65457         * modules/strchrnul: New file.
65458
65459 2003-06-10  Simon Josefsson  <jas@extundo.com>
65460
65461         * modules/argp: New file.
65462
65463 2003-06-10  Simon Josefsson  <jas@extundo.com>
65464
65465         * m4/strchrnul.m4: New file.
65466
65467 2003-06-10  Simon Josefsson  <jas@extundo.com>
65468
65469         * lib/strchrnul.h: New file.
65470         * lib/strchrnul.c: New file.
65471
65472 2003-06-10  Bruno Haible  <bruno@clisp.org>
65473
65474         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
65475
65476 2003-06-07  Karl Berry  <karl@gnu.org>
65477
65478         * config/config.{guess,sub}: update from prep.
65479
65480 2003-06-07  Jim Meyering  <jim@meyering.net>
65481
65482         * modules/strtod: Use $(...) notation, not @...@ for
65483         AC_REPLACE'd variables.
65484         * modules/localcharset: Likewise.
65485
65486 2003-06-07  Jim Meyering  <jim@meyering.net>
65487
65488         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
65489         in place of my name in the copyright comment.
65490         Remove definition and uses of __P.
65491
65492         From coreutils.
65493         * lib/stat.c: Don't declare xmalloc explicitly.
65494         Instead, include "xalloc.h".
65495         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
65496         xrealloc, and xcalloc return values.
65497         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
65498         Improve comment.
65499         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
65500
65501 2003-06-07  Bruno Haible  <bruno@clisp.org>
65502
65503         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
65504         avoid AC_CONFIG_LINKS.
65505         * modules/fnmatch (Makefile.am): Use explicit creation rule for
65506         fnmatch.h, to avoid AC_CONFIG_LINKS.
65507         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
65508
65509 2003-06-07  Bruno Haible  <bruno@clisp.org>
65510
65511         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
65512         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
65513         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65514         directory.
65515         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
65516         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65517         directory.
65518
65519 2003-06-06  Jim Meyering  <jim@meyering.net>
65520
65521         Merge from coreutils.
65522         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
65523         Consolidate declarations and initializations of *_base* locals.
65524
65525         Merge from coreutils.
65526         This avoids a core dump on systems without GNU putenv,
65527         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
65528         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
65529         (unsetenv): New static function, from GNU libc.
65530         (rpl_putenv): Use it.
65531
65532         * lib/modechange.c: Remove trailing blanks.
65533
65534         Merge from coreutils.
65535         * lib/fsusage.c: Remove declaration of statfs.
65536         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
65537
65538         * lib/posixtm.c: Include <stdbool.h> unconditionally.
65539
65540 2003-06-06  Jim Meyering  <jim@meyering.net>
65541
65542         * lib/stdbool_.h: Renamed from stdbool.h.in.
65543
65544 2003-06-06  Jim Meyering  <jim@meyering.net>
65545             Bruno Haible  <bruno@clisp.org>
65546
65547         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
65548         Adjust Makefile.am snippet not to redirect directly to target.
65549         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
65550
65551 2003-06-05  Paul Eggert  <eggert@twinsun.com>
65552
65553         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
65554         mismatch, look in future quarters as well as past.  This fixes a
65555         bug when processing fall-backwards gaps immediately after a long
65556         period of daylight-saving time.
65557
65558         * lib/mktime.c: Assume freestanding C89 or better.
65559         (HAVE_LIMITS_H): Remove.  Assume it's 1.
65560         (__P): Remove; not used.
65561         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
65562         (mktime, not_equal_tm, print_tm, check_result,
65563         main): Use prototypes.  Use const * where appropriate.
65564         (main): Fix typo in testing code that uncovered by above changes.
65565         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
65566
65567 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65568
65569         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
65570         locale.h, localeconv.  This merges changes from coreutils.
65571
65572         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
65573         It can be removed after the next Autoconf is released.
65574         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
65575         needed.
65576
65577 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65578
65579         * lib/mktime.c: Fix Debian bug 177940
65580         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
65581         (localtime_offset): Now long int, not time_t, because we want it
65582         to be guaranteed to be signed.  All uses changed.
65583         (__mktime_internal): If overflow would occur when adding offset,
65584         don't add it.
65585
65586         Merge 'human' changes from coreutils.  Rewrite to support
65587         locale-specific notations like thousands separators.
65588         * lib/human.c: Simplify authorship notice.
65589         Include human.h immediately after config.h.
65590         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
65591         <limits.h>: Do not include, since human.h does.
65592         (SIZE_MAX, UINTMAX_MAX): New macros.
65593         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
65594         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
65595         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
65596         (power_letter): Renamed from suffixes.
65597         (generate_suffix_backwards): Remove.
65598         (adjust_value): Now takes int style (because of human.h changes)
65599         and long double value (for greater precision on some platforms).
65600         (group_number): New function.
65601         (human_readable): Use it.  Use integer options, not enum.
65602         Put the options before the sizes in the arg list.
65603         Support all the new options.
65604         The old human_readable function has been removed;
65605         use inttostr.h instead.
65606         (human_readable, default_block_size, humblock):
65607         Use uintmax_t, not int, for block sizes.
65608         (human_readable_inexact, block_size_types): Remove.
65609         (block_size_opts): New constant.
65610         (human_options): Renamed from human_block_size, with new signature
65611         that allows block sizes up to UINTMAX_MAX.  All callers changed.
65612         * lib/human.h: Add copyright and authorship notice.
65613         Include <limits.h> and <stdbool.h> unconditionally.
65614         (PARAMS): Remove.  All uses removed.
65615         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
65616         (enum human_inexact_style): Remove tag; now a nameless enum.
65617         (human_floor, human_ceiling, human_round_to_even): Now have
65618         values 2, 0, 1 rather than -1, 1, 0.
65619         (human_group_digits, human_suppress_point_zero, human_autoscale,
65620         human_base_1024, human_SI, human_B): New constants.
65621         (human_readable_inexact, human_block_size): Remove.
65622         (human_readable): Size args are now uintmax_t, not int.
65623         (human_options): New decl.
65624
65625         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
65626         unnecessary now that we assume C89 or better.  This change
65627         imported from coreutils.
65628
65629         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65630         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
65631         in the 2003-05-30 sync from glibc.
65632
65633         .h files should stand alone, but we shouldn't include <sys/types.h>
65634         if we can get away with just <stddef.h>.
65635
65636         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
65637         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
65638         rather than <sys/types.h>, as we merely need size_t.
65639         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
65640         to get size_t.
65641         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
65642         Include <stdio.h>, to get FILE.
65643         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
65644         memcasecmp.h has included <stddef.h> and all we need is size_t.
65645         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
65646         our interface, instead of including <sys/types.h>
65647
65648 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65649
65650         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
65651         now, as glibc mktime is buggy on non-glibc systems.
65652
65653 2003-06-03  Karl Berry  <karl@gnu.org>
65654
65655         * config/config.sub: update from prep.
65656
65657 2003-06-02  Paul Eggert  <eggert@twinsun.com>
65658
65659         [from coreutils]
65660         Fix some minor time-related bugs with POSIX time arguments.
65661         Some valid time stamps were being rejected (notably -1, and
65662         time stamps before 1900 on 64-bit hosts).  And some invalid
65663         time stamps were being accepted, e.g. September 31.
65664
65665         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
65666         that we can return (time_t) -1 successfully.
65667         * lib/posixtm.c: Likewise.
65668         [HAVE_STDBOOL_H]: Include <stdbool.h>.
65669         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
65670         (t): Remove static var.
65671         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
65672         of static var.  All uses changed.
65673         (year): Do not reject years before 1900; they can occur with
65674         64-bit time_t.
65675         (posix_time_parse): Do not check for out-of-range components;
65676         that is now the caller's responsibility, since our checks were
65677         only approximations.
65678         (posixtime): Use mktime to check for out-of-range components,
65679         since it knows them exactly.
65680         If mktime returns (time_t) -1, check whether an error actually occurred
65681         by invoking localtime on -1.
65682         (main) [TEST_POSIXTIME]: Check for input data errors, and report
65683         posixtime failures better.
65684         Improve the test data (in comments only).
65685
65686 2003-06-02  Karl Berry  <karl@gnu.org>
65687
65688         * config/mkinstalldirs (version): new variable.
65689         (--version): new option.
65690         (usage): improve message.
65691
65692 2003-05-30  Karl Berry  <karl@gnu.org>
65693
65694         * lib/mktime.c: update from libc.
65695
65696 2003-05-30  Bruno Haible  <bruno@clisp.org>
65697
65698         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
65699         * config/config.rpath: Upgrade to gettext-0.12.1.
65700
65701 2003-05-30  Bruno Haible  <bruno@clisp.org>
65702
65703         * m4/gettext.m4: Upgrade to gettext-0.12.1.
65704         * m4/nls.m4: New file, from gettext-0.12.1.
65705         * m4/po.m4: New file, from gettext-0.12.1.
65706         * m4/progtest.m4: Upgrade to gettext-0.12.1.
65707
65708 2003-05-30  Bruno Haible  <bruno@clisp.org>
65709
65710         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
65711         * lib/localcharset.h: Likewise.
65712         * lib/localcharset.c: Likewise.
65713
65714 2003-05-29  Karl Berry  <karl@gnu.org>
65715
65716         * config/config.rpath: update from gettext.
65717
65718 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65719
65720         Assume the headers required for C89 freestanding compilers.
65721         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
65722         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
65723         * m4/human.m4 (gl_HUMAN): Likewise.
65724         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
65725         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
65726         * m4/userspec.m4 (gl_USERSPEC): Likewise.
65727         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
65728         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65729         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
65730
65731 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65732
65733         Assume the headers required for C89 freestanding compilers.
65734         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
65735         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
65736         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
65737         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
65738         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
65739         define, since <limits.h> is guaranteed to do that.
65740         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
65741         * lib/exclude.c: Include <stdbool.h> unconditionally.
65742         * lib/tempname.c: Include <stddef.h> unconditionally.
65743         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
65744         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
65745         <stddef.h> does that.
65746         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
65747         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
65748         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
65749         needed.
65750         * lib/xstrtol.c: Likewise.
65751         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
65752         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
65753
65754         * lib/addext.c (addext): Use assignment rather than cast, to avoid
65755         warnings on some platforms.
65756
65757         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65758         arbitrarily.
65759
65760 2003-05-26  Jim Meyering  <jim@meyering.net>
65761
65762         Merge in a change from coreutils:
65763         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
65764         that is guaranteed to be `no'.  Use `no_such_member' to indicate
65765         that condition, rather than `-1' which is slightly misleading.
65766         Change the name of the cache variable to have the gl_ prefix.
65767         Prompted by a patch from Richard Dawe for DJGPP.
65768
65769 2003-05-24  Karl Berry  <karl@gnu.org>
65770
65771         * config/config.guess: update from prep.
65772
65773 2003-05-22  Karl Berry  <karl@gnu.org>
65774
65775         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
65776
65777 2003-05-20  Karl Berry  <karl@gnu.org>
65778
65779         * config/config.guess: update from prep.
65780
65781 2003-05-18  Karl Berry  <karl@gnu.org>
65782
65783         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
65784         might actually be set by the user.
65785
65786         * config/depcomp, install-sh, mdate-sh: update from automake.
65787
65788 2003-05-17  Bruno Haible  <bruno@clisp.org>
65789
65790         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
65791         invalid expansion for AC_EGREP_CPP.
65792         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
65793         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
65794         Suggested by Akim Demaille <akim@epita.fr> in
65795         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
65796
65797 2003-05-12  Jim Meyering  <jim@meyering.net>
65798
65799         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
65800         the space-padded-by-default conversion specifiers, %e, %k, %l.
65801
65802 2003-05-12  Bruno Haible  <bruno@clisp.org>
65803
65804         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
65805         the string is longer than 4 KB.
65806
65807 2003-05-11  Karl Berry  <karl@gnu.org>
65808
65809         * config/config.{guess,sub}: update from prep.
65810
65811 2003-05-09  Bruno Haible  <bruno@clisp.org>
65812
65813         * modules/error: Add m4/strerror_r.m4 to file list.
65814
65815 2003-05-03  Bruno Haible  <bruno@clisp.org>
65816
65817         Upgrade to Unicode-4.0.
65818         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
65819         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
65820         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
65821         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
65822         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
65823         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
65824         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
65825         Change width of U+E0100..U+E01EF from 1 to 0.
65826
65827 2003-04-25  Jim Meyering  <jim@meyering.net>
65828
65829         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
65830         of type size_t, not int.
65831
65832 2003-04-25  Bruno Haible  <bruno@clisp.org>
65833
65834         * lib/copy-file.c: Include <stddef.h>, for size_t.
65835
65836 2003-04-21  Paul Eggert  <eggert@twinsun.com>
65837
65838         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
65839         code which expansion is under static control.  Patch imported from
65840         Akim Demaille's patch to Bison; see
65841         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
65842
65843 2003-04-14  Bruno Haible  <bruno@clisp.org>
65844
65845         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
65846
65847 2003-04-11  Jim Meyering  <jim@meyering.net>
65848
65849         Merge changes from Coreutils.
65850
65851         2003-03-22  Jim Meyering  <jim@meyering.net>
65852
65853         * lib/strftime.c (widen): Cast alloca return value to proper type.
65854
65855         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
65856
65857         From GNU libc.
65858         * lib/strftime.c (my_strftime): Handle very large width
65859         specifications for numeric values correctly.  Improve checks for
65860         overflow.
65861
65862         2003-01-19  Jim Meyering  <jim@meyering.net>
65863
65864         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
65865         definitions.
65866         (nl_get_alt_digit) [! defined my_strftime]: Define.
65867         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
65868         _nl_get_alt_digit and _nl_get_walt_digit.
65869
65870         * lib/strftime.c (my_strftime): Merge in locale-related changes from
65871         libc. These changes have no effect outside of _LIBC.
65872
65873 2003-04-10  Bruno Haible  <bruno@clisp.org>
65874
65875         * modules/findprog: New file.
65876         * MODULES.html.sh (func_all_modules): Add it.
65877
65878 2003-04-10  Bruno Haible  <bruno@clisp.org>
65879
65880         * m4/findprog.m4: New file.
65881         * m4/eaccess.m4: New file.
65882
65883 2003-04-10  Bruno Haible  <bruno@clisp.org>
65884
65885         * lib/findprog.h: New file, from GNU gettext.
65886         * lib/findprog.c: New file, from GNU gettext.
65887
65888 2003-04-05  Jim Meyering  <jim@meyering.net>
65889
65890         Merge changes from Coreutils.
65891
65892         * lib/exclude.h (PARAMS): Remove definition and uses.
65893         * lib/exclude.c: Remove uses of `PARAMS'.
65894
65895         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
65896         Add test-cases for DOS filenames. Declare program_name.
65897         (main): Set up program_name.  Patch by Rich Dawe.
65898
65899         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65900         error from mntctl.
65901         Use mntctl's return value to drive the entry-processing loop, since
65902         we can't rely on the value of the vmt_length member in the last
65903         entry.  On some systems doing so could result in exhausting
65904         virtual memory.  Based in part on a patch from Mike Jetzer.
65905
65906 2003-04-04  Bruno Haible  <bruno@clisp.org>
65907
65908         * modules/linebreak: New file.
65909         * MODULES.html.sh (func_all_modules): Add it.
65910
65911 2003-04-04  Bruno Haible  <bruno@clisp.org>
65912
65913         * m4/linebreak.m4: New file.
65914
65915 2003-04-04  Bruno Haible  <bruno@clisp.org>
65916
65917         * lib/linebreak.h: New file, from GNU gettext.
65918         * lib/linebreak.c: New file, from GNU gettext with slight
65919         modifications.
65920         * lib/lbrkprop.h: New file, from GNU gettext.
65921
65922 2003-04-03  Bruno Haible  <bruno@clisp.org>
65923
65924         * modules/utf8-ucs4: New file.
65925         * modules/utf16-ucs4: New file.
65926         * modules/ucs4-utf8: New file.
65927         * modules/ucs4-utf16: New file.
65928         * MODULES.html.sh (func_all_modules): Add them.
65929
65930 2003-04-03  Bruno Haible  <bruno@clisp.org>
65931
65932         * m4/utf-ucs4.m4: New file.
65933         * m4/ucs4-utf.m4: New file.
65934
65935 2003-04-03  Bruno Haible  <bruno@clisp.org>
65936
65937         * lib/utf8-ucs4.h: New file, from GNU gettext.
65938         * lib/utf16-ucs4.h: New file, from GNU gettext.
65939         * lib/ucs4-utf8.h: New file, from GNU gettext.
65940         * lib/ucs4-utf16.h: New file, from GNU gettext.
65941
65942 2003-04-02  Bruno Haible  <bruno@clisp.org>
65943
65944         * modules/binary-io: New file.
65945         * MODULES.html.sh (func_all_modules): Add it.
65946
65947 2003-04-02  Bruno Haible  <bruno@clisp.org>
65948
65949         * lib/binary-io.h: New file, from GNU gettext.
65950
65951 2003-04-01  Bruno Haible  <bruno@clisp.org>
65952
65953         * modules/pathname: New file.
65954         * MODULES.html.sh (func_all_modules): Add it.
65955
65956 2003-04-01  Bruno Haible  <bruno@clisp.org>
65957
65958         * lib/pathname.h: New file, from GNU gettext.
65959         * lib/concatpath.c: New file, from GNU gettext.
65960
65961 2003-03-30  Bruno Haible  <bruno@clisp.org>
65962
65963         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
65964
65965 2003-03-30  Bruno Haible  <bruno@clisp.org>
65966
65967         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
65968         function chown() doesn't exist.
65969
65970 2003-03-28  Bruno Haible  <bruno@clisp.org>
65971
65972         * modules/copy-file: New file.
65973         * MODULES.html.sh (func_all_modules): Add it.
65974
65975 2003-03-28  Bruno Haible  <bruno@clisp.org>
65976
65977         * m4/copy-file.m4: New file.
65978
65979 2003-03-28  Bruno Haible  <bruno@clisp.org>
65980
65981         * lib/copy-file.h: New file, from GNU gettext.
65982         * lib/copy-file.c: New file, from GNU gettext.
65983
65984 2003-03-18  Jim Meyering  <jim@meyering.net>
65985
65986         * lib/quote.c (quote_n): Fix typo in comment.
65987
65988 2003-03-18  Bruno Haible  <bruno@clisp.org>
65989
65990         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
65991         checking.
65992         * m4/onceonly_2_57.m4: Likewise.
65993
65994 2003-03-17  Bruno Haible  <bruno@clisp.org>
65995
65996         * m4/onceonly.m4: Require autoconf 2.54 or newer.
65997         (m4_quote): Remove macro.
65998         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
65999
66000 2003-03-14  Jim Meyering  <jim@meyering.net>
66001
66002         Merge changes from Coreutils.
66003         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
66004         to be const, in order to avoid warnings.
66005         (obstack_room): Likewise.
66006         (obstack_empty_p): Likewise.
66007
66008 2003-03-14  Bruno Haible  <bruno@clisp.org>
66009
66010         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
66011         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
66012
66013 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66014
66015         Merge changes from Bison.
66016         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
66017         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
66018         when compiling Bison 1.875's `bitset bset = obstack_alloc
66019         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
66020         * lib/hash.c: Include <stdbool.h> unconditionally.
66021
66022 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66023
66024         * m4/onceonly.m4 (m4_quote): New macro.
66025         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
66026         Quote AC_FOREACH variable-expansions properly.
66027
66028 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66029
66030         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
66031
66032 2003-03-09  Paul Eggert  <eggert@twinsun.com>
66033
66034         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
66035         Reported by Bruce Becker; see:
66036         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
66037
66038 2003-03-03  Paul Eggert  <eggert@twinsun.com>
66039             Bruno Haible  <bruno@clisp.org>
66040
66041         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
66042         Reported by John Hughes, see
66043         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
66044
66045 2003-02-20  Bruno Haible  <bruno@clisp.org>
66046
66047         * MODULES.html.sh (func_all_modules): Add poll.
66048
66049 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66050
66051         * modules/poll: New file.
66052
66053 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66054
66055         * lib/poll_.h: New file.
66056         * lib/poll.c: New file.
66057
66058 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66059
66060         * m4/poll.m4: New file.
66061
66062 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66063
66064         * modules/mathl: New file.
66065
66066 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66067
66068         * lib/mathl.h: New file.
66069         * lib/acosl.c: New file.
66070         * lib/asinl.c: New file.
66071         * lib/atanl.c: New file.
66072         * lib/ceill.c: New file.
66073         * lib/cosl.c: New file.
66074         * lib/expl.c: New file.
66075         * lib/floorl.c: New file.
66076         * lib/frexpl.c: New file.
66077         * lib/ldexpl.c: New file.
66078         * lib/logl.c: New file.
66079         * lib/sincosl.c: New file.
66080         * lib/sinl.c: New file.
66081         * lib/sqrtl.c: New file.
66082         * lib/tanl.c: New file.
66083         * lib/trigl.c: New file.
66084         * lib/trigl.h: New file.
66085
66086 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66087
66088         * m4/mathl.m4: New file.
66089
66090 2003-02-18  Bruno Haible  <bruno@clisp.org>
66091
66092         * MODULES.html.sh (func_all_modules): Add mathl.
66093
66094 2003-02-17  Bruno Haible  <bruno@clisp.org>
66095
66096         * modules/mkdtemp: New module.
66097         * MODULES.html.sh (func_all_modules): Add it.
66098
66099 2003-02-17  Bruno Haible  <bruno@clisp.org>
66100
66101         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
66102
66103 2003-02-17  Bruno Haible  <bruno@clisp.org>
66104
66105         * lib/mkdtemp.h: New file, from GNU gettext.
66106         * lib/mkdtemp.c: New file, from GNU gettext.
66107
66108 2003-02-02  Jim Meyering  <jim@meyering.net>
66109
66110         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
66111         e.g. glibc-2.2.93.
66112
66113 2003-01-31  Bruno Haible  <bruno@clisp.org>
66114
66115         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
66116         'rpl_rename'.
66117         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
66118         'rpl_strnlen'.
66119         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
66120         'rpl_strtod'.
66121         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
66122         'rpl_utime'.
66123
66124 2003-01-31  Bruno Haible  <bruno@clisp.org>
66125
66126         * lib/rename.c: #undef rename before defining rpl_rename.
66127         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
66128
66129 2003-01-30  Bruno Haible  <bruno@clisp.org>
66130
66131         * modules/vasnprintf, modules/vasprintf: New modules.
66132         * MODULES.html.sh (func_all_modules): Add them.
66133
66134 2003-01-30  Bruno Haible  <bruno@clisp.org>
66135
66136         * m4/signed.m4: New file, from GNU gettext.
66137         * m4/longdouble.m4: New file, from GNU gettext.
66138         * m4/wchar_t.m4: New file, from GNU gettext.
66139         * m4/wint_t.m4: New file, from GNU gettext.
66140         * m4/vasnprintf.m4: New file.
66141         * m4/vasprintf.m4: New file.
66142
66143 2003-01-30  Bruno Haible  <bruno@clisp.org>
66144
66145         * lib/printf-args.h: New file, from GNU gettext.
66146         * lib/printf-args.c: New file, from GNU gettext.
66147         * lib/printf-parse.h: New file, from GNU gettext.
66148         * lib/printf-parse.c: New file, from GNU gettext.
66149         * lib/vasnprintf.h: New file, from GNU gettext.
66150         * lib/vasnprintf.c: New file, from GNU gettext.
66151         * lib/asnprintf.c: New file, from GNU gettext.
66152         * lib/vasprintf.h: New file, from GNU gettext with modifications.
66153         * lib/vasprintf.c: New file, from GNU gettext.
66154         * lib/asprintf.c: New file, from GNU gettext.
66155
66156 2003-01-29  Bruno Haible  <bruno@clisp.org>
66157
66158         * modules/stpncpy: New module.
66159         * MODULES.html.sh (func_all_modules): Add it.
66160
66161 2003-01-29  Bruno Haible  <bruno@clisp.org>
66162
66163         * m4/stpncpy.m4: New file.
66164
66165 2003-01-29  Bruno Haible  <bruno@clisp.org>
66166
66167         * lib/stpncpy.h: New file, from GNU gettext with modifications.
66168         * lib/stpncpy.c: New file, from GNU gettext with modifications.
66169
66170 2003-01-28  Bruno Haible  <bruno@clisp.org>
66171
66172         * modules/c-ctype: New module.
66173         * MODULES.html.sh (func_all_modules): Add it.
66174
66175 2003-01-28  Bruno Haible  <bruno@clisp.org>
66176
66177         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
66178         Paul Eggert.
66179         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
66180         Paul Eggert.
66181
66182 2003-01-27  Bruno Haible  <bruno@clisp.org>
66183
66184         * modules/xsetenv: New module.
66185         * MODULES.html.sh (func_all_modules): Add it.
66186
66187 2003-01-27  Bruno Haible  <bruno@clisp.org>
66188
66189         * lib/xsetenv.h: New file, from GNU gettext.
66190         * lib/xsetenv.c: New file, from GNU gettext.
66191
66192 2003-01-23  Jim Meyering  <jim@meyering.net>
66193
66194         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
66195         from working on systems without dirfd (at least Irix and OSF1/Tru64).
66196
66197 2003-01-23  Bruno Haible  <bruno@clisp.org>
66198
66199         * modules/minmax: New module.
66200         * MODULES.html.sh (func_all_modules): Add it.
66201
66202 2003-01-23  Bruno Haible  <bruno@clisp.org>
66203
66204         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
66205         Eggert.
66206
66207 2003-01-22  Bruno Haible  <bruno@clisp.org>
66208
66209         * modules/exit: New module.
66210         * MODULES.html.sh (func_all_modules): Add it.
66211
66212 2003-01-22  Bruno Haible  <bruno@clisp.org>
66213
66214         * lib/exit.h: New file, from GNU gettext.
66215
66216 2003-01-19  Bruno Haible  <bruno@clisp.org>
66217
66218         * gnulib-tool: Recognize option --extract-maintainer.
66219         (func_get_maintainer): New function.
66220         * modules/*: Add Maintainer entry.
66221
66222 2003-01-16  Jim Meyering  <jim@meyering.net>
66223
66224         * m4/regex.m4: The `regex' struct is both input and output.
66225         Initialize it before each use.  Patch by Tim Waugh.
66226
66227 2003-01-16  Bruno Haible  <bruno@clisp.org>
66228
66229         * MODULES.html.sh: Add a table of contents. Add the module name as
66230         leftmost column. Add hyperlinks.
66231
66232 2003-01-15  Bruno Haible  <bruno@clisp.org>
66233
66234         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
66235
66236 2003-01-15  Bruno Haible  <bruno@clisp.org>
66237
66238         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
66239         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
66240         suffix.
66241
66242 2003-01-15  Bruno Haible  <bruno@clisp.org>
66243
66244         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
66245
66246 2003-01-15  Bruno Haible  <bruno@clisp.org>
66247
66248         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
66249         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
66250
66251 2003-01-14  Jim Meyering  <jim@meyering.net>
66252
66253         * lib/same.c (same_name): Tweak a comment.
66254
66255 2003-01-14  Bruno Haible  <bruno@clisp.org>
66256
66257         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
66258         when a string comparison is sufficient.
66259
66260 2003-01-14  Bruno Haible  <bruno@clisp.org>
66261
66262         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
66263         'unsigned int'.
66264
66265 2003-01-14  Bruno Haible  <bruno@clisp.org>
66266
66267         * lib/hash-pjw.c: Add comment about low quality of this function.
66268
66269 2003-01-13  Bruno Haible  <bruno@clisp.org>
66270
66271         * modules/stpcpy: Distribute lib/stpcpy.h.
66272         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
66273
66274 2003-01-13  Bruno Haible  <bruno@clisp.org>
66275
66276         * modules/*: Add a description.
66277         * modules/strpbrk: Fix Makefile.am snippet.
66278         * modules/strtoimax: Fix dependencies.
66279         * modules/strtoumax: Likewise.
66280
66281 2003-01-13  Bruno Haible  <bruno@clisp.org>
66282
66283         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
66284         * modules/alloca (Makefile.am): All object files depend on alloca.h.
66285         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
66286
66287 2003-01-13  Bruno Haible  <bruno@clisp.org>
66288
66289         * gnulib-tool (func_create_testdir): Store config/* files in the main
66290         directory.
66291         * config.rpath: Move to ...
66292         * config/config.rpath: ... here.
66293         * modules/gettext: Contains config/config.rpath, not config.rpath.
66294         * modules/iconv: Likewise.
66295
66296 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66297
66298         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66299         to avoid collisions with libcurses and libreadline.
66300
66301         * m4/getstr.m4: Remove.
66302         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
66303
66304 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66305
66306         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66307         to avoid collisions with libcurses and libreadline.
66308
66309         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
66310         * lib/getstr.h, getstr.c: Remove.
66311         * lib/getline.c: Include "getline.h", to check interface.
66312         Move body of old getstr.c here: this defines MIN_CHUNK and
66313         declares getdelim2, which is renamed from getstr.
66314         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
66315
66316         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
66317         All uses changed.
66318         * lib/linebuffer.h: Likewise.
66319         (readline): Remove backward-compatibility macro.
66320
66321 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66322
66323         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66324         to avoid collisions with libcurses and libreadline.
66325         * getstr: Remove.
66326         * MODULES.html.sh: Remove getstr.
66327         * modules/getline: Depend on unlocked-io, not getstr.
66328
66329 2003-01-12  Jim Meyering  <jim@meyering.net>
66330
66331         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
66332
66333 2003-01-10  Bruno Haible  <bruno@clisp.org>
66334
66335         * modules/alloca: Change Makefile.am requirements. Simplify Include
66336         requirements. Add lib/alloca_.h to file list.
66337
66338 2003-01-10  Bruno Haible  <bruno@clisp.org>
66339
66340         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
66341
66342 2003-01-10  Bruno Haible  <bruno@clisp.org>
66343
66344         * lib/alloca_.h: New file.
66345         * lib/getdate.y: Unconditionally include alloca.h.
66346         * lib/makepath.c: Likewise.
66347         * lib/setenv.c: Likewise.
66348         * lib/userspec.c: Likewise.
66349
66350 2003-01-09  Karl Berry  <karl@gnu.org>
66351
66352         * MODULES.html.sh: include `dirname $0` in PATH, to find
66353         gnulib-tool.
66354
66355 2003-01-09  Bruno Haible  <bruno@clisp.org>
66356
66357         * modules/stdbool: Change configure.ac, Makefile.am requirements.
66358         Simplify Include requirements. Add lib/stdbool.h.in to file list.
66359
66360 2003-01-09  Bruno Haible  <bruno@clisp.org>
66361
66362         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
66363
66364 2003-01-09  Bruno Haible  <bruno@clisp.org>
66365
66366         * lib/stdbool.h.in: New file.
66367
66368 2003-01-09  Bruno Haible  <bruno@clisp.org>
66369
66370         * gnulib-tool (func_all_modules): Ignore files ending in ~.
66371         * MODULES.html.sh: Likewise.
66372
66373 2003-01-08  Jim Meyering  <jim@meyering.net>
66374
66375         * lib/full-write.c: Undefine and define-away `const' after inclusion
66376         of errno.h, not before.  Suggestion from Bruno Haible.
66377
66378 2003-01-08  Bruno Haible  <bruno@clisp.org>
66379
66380         * modules/full-read: Depend on full-write.
66381
66382 2003-01-08  Bruno Haible  <bruno@clisp.org>
66383
66384         * lib/safe-read.c: Include specification header first, to ensure its
66385         selfcontainedness.
66386         * lib/full-write.c: Likewise.
66387
66388 2003-01-07  Jim Meyering  <jim@meyering.net>
66389
66390         * lib/full-write.c: Rework so that it may serve to define full_read,
66391         too.
66392         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
66393
66394 2003-01-07  Bruno Haible  <bruno@clisp.org>
66395
66396         * lib/strtoimax.c: Include <stdint.h> as an alternative to
66397         <inttypes.h>.
66398         * lib/xstrtol.h: Likewise.
66399         * lib/xstrtoimax.c: Likewise.
66400         * lib/xstrtoumax.c: Likewise.
66401         * lib/human.h: Likewise.
66402
66403         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
66404         on systems that have <inttypes.h> but not <stdint.h>.
66405
66406 2003-01-07  Bruno Haible  <bruno@clisp.org>
66407
66408         * MODULES.html.sh: Add copyright notice.
66409         (missed_files): Omit CVS directory entries.
66410         (func_module): Make it work with sed-3.02.
66411         * MODULES.txt: Remove file.
66412
66413 2003-01-06  Jim Meyering  <jim@meyering.net>
66414
66415         * lib/version-etc.c: Update year in translatable copyright string.
66416
66417 2003-01-03  Karl Berry  <karl@gnu.org>
66418
66419         * config/config.{guess,sub}: update from prep.
66420
66421 2003-01-02  Karl Berry  <karl@gnu.org>
66422
66423         * doc/COPYING.DOC: belatedly updated to 1.2.
66424
66425 2003-01-01  Karl Berry  <karl@gnu.org>
66426
66427         * gnulib-tool (func_verify_module): report module name $module in
66428         error message, not $1.
66429         * gnulib-tool (create-testdir): don't complain if destdir couldn't
66430         be created, only if it doesn't exist.
66431         * gnulib-tool (last_checkin_date): don't expand the $Date here.
66432
66433 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66434
66435         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
66436
66437 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66438
66439         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
66440         memcmp if strcoll doesn't work.
66441
66442 2002-12-31  Bruno Haible  <bruno@clisp.org>
66443
66444         * lib/utime.c (utime_null): No need to call ftruncate if the file was
66445         nonempty.
66446
66447 2002-12-31  Bruno Haible  <bruno@clisp.org>
66448
66449         * lib/memcoll.c (STRCOLL): New macro.
66450         (memcoll): Use it.
66451
66452 2002-12-31  Bruno Haible  <bruno@clisp.org>
66453
66454         * lib/localcharset.h: New file.
66455         * lib/localcharset.c: Include it.
66456         * lib/unicodeio.c: Likewise.
66457
66458 2002-12-31  Bruno Haible  <bruno@clisp.org>
66459
66460         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
66461         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
66462
66463 2002-12-31  Bruno Haible  <bruno@clisp.org>
66464
66465         * lib/getline.h: Include <stddef.h>, for size_t.
66466
66467         * lib/unicodeio.h: Include <stddef.h>, for size_t.
66468         * lib/unicodeio.c: Don't include <stddef.h>.
66469
66470 2002-12-31  Bruno Haible  <bruno@clisp.org>
66471
66472         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
66473         HAVE_TM_ZONE.
66474
66475 2002-12-24  Karl Berry  <karl@gnu.org>
66476
66477         * config/config.guess: update from prep.
66478
66479 2002-12-24  Bruno Haible  <bruno@clisp.org>
66480
66481         General infrasructure.
66482         * m4/README: Rewritten.
66483         * m4/onceonly.m4: New file.
66484         * m4/onceonly_2_57.m4: New file.
66485
66486         Module atexit.
66487         * m4/atexit.m4: New file.
66488
66489         Module strtod.
66490         * m4/strtod.m4: New file.
66491
66492         Module strtol.
66493         * m4/strtol.m4: New file.
66494
66495         Module strtoul.
66496         * m4/strtoul.m4: New file.
66497
66498         Module memchr.
66499         * m4/memchr.m4: New file.
66500
66501         Module memcmp.
66502         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
66503         (jm_FUNC_MEMCMP): Invoke it.
66504
66505         Module memcpy.
66506         * m4/memcpy.m4: New file.
66507
66508         Module memmove.
66509         * m4/memmove.m4: New file.
66510
66511         Module memset.
66512         * m4/memset.m4: New file.
66513
66514         Module strcspn.
66515         * m4/strcspn.m4: New file.
66516
66517         Module strpbrk.
66518         * m4/strpbrk.m4: New file.
66519
66520         Module strstr.
66521         * m4/strstr.m4: New file.
66522
66523         Module strerror.
66524         * m4/strerror.m4: New file.
66525
66526         Module mktime.
66527         * m4/mktime.m4: Renamed from jm-mktime.m4.
66528         (gl_PREREQ_MKTIME): New macro.
66529         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
66530
66531         Module malloc.
66532         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
66533         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
66534         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
66535
66536         Module realloc.
66537         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
66538         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
66539         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
66540
66541         Module strftime.
66542         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
66543         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
66544         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
66545         gl_TM_GMTOFF.
66546         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
66547
66548         Module xalloc.
66549         * m4/xalloc.m4: New file.
66550
66551         Module alloca.
66552         * m4/alloca.m4: New file.
66553
66554         Module putenv.
66555         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
66556         (jm_FUNC_PUTENV): Invoke it.
66557
66558         Module setenv.
66559         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
66560         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
66561         when invoked twice.
66562         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
66563         gt_FUNC_SETENV.
66564
66565         Module memrchr.
66566         * m4/memrchr.m4: New file.
66567
66568         Module stpcpy.
66569         * m4/stpcpy.m4: New file.
66570
66571         Module strcase.
66572         * m4/strcase.m4: New file.
66573
66574         Module strdup.
66575         * m4/strdup.m4: New file.
66576
66577         Module strnlen.
66578         * m4/strnlen.m4: New file.
66579
66580         Module strndup.
66581         * m4/strndup.m4: New file.
66582
66583         Module xstrtod.
66584         * m4/xstrtod.m4: New file.
66585
66586         Module xstrtol.
66587         * m4/xstrtol.m4: New file.
66588
66589         Module getdate.
66590         * m4/getdate.m4: New file.
66591
66592         Module unlocked-io.
66593         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
66594         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
66595         * m4/jm-glibc-io.m4n: Remove file.
66596
66597         Module long-options.
66598         * m4/long-options.m4: New file.
66599
66600         Module md5.
66601         * m4/md5.m4: New file.
66602
66603         Module sha.
66604         * m4/sha.m4: New file.
66605
66606         Module getstr.
66607         * m4/getstr.m4: New file.
66608
66609         Module getline.
66610         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
66611         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
66612         <sys/types.h>, for size_t. Use the function name gnu_getline, not
66613         simply getline. Infoke gl_PREREQ_GETLINE.
66614
66615         Module obstack.
66616         * m4/obstack.m4: New file.
66617
66618         Module hash.
66619         * m4/hash.m4: New file.
66620
66621         Module readtokens.
66622         * m4/readtokens.m4: New file.
66623
66624         Module strverscmp.
66625         * m4/strverscmp.m4: New file.
66626
66627         Module stdbool.
66628         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
66629         OSF/1.
66630
66631         Module strtoll.
66632         * m4/strtoll.m4: New file.
66633
66634         Module strtoull.
66635         * m4/strtoull.m4: New file.
66636
66637         Module strtoimax.
66638         * m4/strtoimax.m4: New file.
66639
66640         Module strtoumax.
66641         * m4/strtoumax.m4: New file.
66642
66643         Module xstrtoimax.
66644         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
66645         jm_AC_PREREQ_XSTRTOIMAX.
66646         Moved the strtol prerequisites to strtol.m4.
66647         Moved the strtoll prerequisites to strtoll.m4.
66648         Moved the strtoimax prerequisites to strtoimax.m4.
66649
66650         Module xstrtoumax.
66651         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
66652         jm_AC_PREREQ_XSTRTOUMAX.
66653         Moved the strtoul prerequisites to strtoul.m4.
66654         Moved the strtoull prerequisites to strtoull.m4.
66655         Moved the strtoumax prerequisites to strtoumax.m4.
66656
66657         Module chown.
66658         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
66659         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
66660
66661         Module dup2.
66662         * m4/dup2.m4: New file.
66663
66664         Module ftruncate.
66665         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
66666         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
66667
66668         Module getgroups.
66669         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
66670         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
66671
66672         Module gettimeofday.
66673         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
66674         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
66675         gl_PREREQ_GETTIMEOFDAY.
66676
66677         Module mkdir.
66678         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
66679         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
66680
66681         Module mkstemp.
66682         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
66683         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
66684         jm_AC_TYPE_UINTMAX_T.
66685         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
66686
66687         Module stat.
66688         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
66689         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
66690
66691         Module lstat.
66692         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
66693         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
66694
66695         Module timespec.
66696         * m4/timespec.m4 (gl_TIMESPEC): New macro.
66697         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
66698         * m4/st_mtim.m4: Indentation.
66699
66700         Module nanosleep.
66701         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
66702         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
66703         gl_PREREQ_NANOSLEEP.
66704
66705         Module regex.
66706         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
66707         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
66708         (gl_REGEX): New macro.
66709
66710         Module rename.
66711         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
66712         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
66713
66714         Module rmdir.
66715         * m4/rmdir.m4: New file.
66716
66717         Module utime.
66718         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
66719         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
66720         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
66721
66722         Module dirname.
66723         * m4/dirname.m4: New file.
66724
66725         Module getopt.
66726         * m4/getopt.m4: New file.
66727
66728         Module unistd-safer.
66729         * m4/unistd-safer.m4: New file.
66730
66731         Module fnmatch.
66732         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
66733         declaration.
66734         (gl_PREREQ_FNMATCH_EXTRA): New macro.
66735         (gl_FUNC_FNMATCH_POSIX): New macro.
66736         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
66737         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
66738         simply fnmatch.
66739
66740         Module exclude.
66741         * m4/exclude.m4: New file.
66742
66743         Module human.
66744         * m4/human.m4: New file.
66745
66746         Module acl.
66747         * m4/acl.m4: Nop.
66748
66749         Module backupfile.
66750         * m4/backupfile.m4: New file.
66751         * m4/d-ino.m4: Indentation.
66752
66753         Module fsusage.
66754         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
66755         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
66756         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
66757
66758         Module dirfd.
66759         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
66760         requirements.
66761
66762         Module euidaccess.
66763         * m4/euidaccess.m4: New file.
66764
66765         Module file-type.
66766         * m4/file-type.m4: New file.
66767
66768         Module fileblocks.
66769         * m4/fileblocks.m4: New file.
66770
66771         Module filemode.
66772         * m4/filemode.m4: New file.
66773
66774         Module isdir.
66775         * m4/isdir.m4: New file.
66776
66777         Module lchown.
66778         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
66779         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
66780
66781         Module makepath.
66782         * m4/makepath.m4: New file.
66783
66784         Module modechange.
66785         * m4/modechange.m4: New file.
66786
66787         Module mountlist.
66788         * m4/mountlist.m4: New file.
66789         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
66790         Indentation.
66791
66792         Module path-concat.
66793         * m4/path-concat.m4: New file.
66794
66795         Module pathmax.
66796         * m4/pathmax.m4: New file.
66797
66798         Module same.
66799         * m4/same.m4: New file.
66800
66801         Module save-cwd.
66802         * m4/save-cwd.m4: New file.
66803
66804         Module savedir.
66805         * m4/savedir.m4: New file.
66806
66807         Module xgetcwd.
66808         * m4/xgetcwd.m4: New file.
66809         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
66810
66811         Module xreadlink.
66812         * m4/xreadlink.m4: New file.
66813
66814         Module safe-read.
66815         * m4/safe-read.m4: New file.
66816
66817         Module safe-write.
66818         * m4/safe-write.m4: New file.
66819
66820         Module closeout.
66821         * m4/closeout.m4: New file.
66822
66823         Module stdio-safer.
66824         * m4/stdio-safer.m4: New file.
66825
66826         Module getpass.
66827         * m4/getpass.m4: New file.
66828
66829         Module getugroups.
66830         * m4/getugroups.m4: New file.
66831
66832         Module group-member.
66833         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
66834         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
66835
66836         Module idcache.
66837         * m4/idcache.m4: New file.
66838
66839         Module userspec.
66840         * m4/userspec.m4: New file.
66841
66842         Module gettime.
66843         * m4/clock_time.m4: New file.
66844         * m4/gettime.m4: New file.
66845
66846         Module settime.
66847         * m4/settime.m4: New file.
66848
66849         Module posixtm.
66850         * m4/posixtm.m4: New file.
66851
66852         Module gethostname.
66853         * m4/gethostname.m4: New file.
66854
66855         Module canon-host.
66856         * m4/canon-host.m4: New file.
66857
66858         Module gettext.
66859         * m4/codeset.m4: New file, from gettext-0.11.5.
66860         * m4/gettext.m4: New file, from gettext-0.11.5.
66861         * m4/glibc21.m4: New file, from gettext-0.11.5.
66862         * m4/iconv.m4: New file, from gettext-0.11.5.
66863         * m4/intdiv0.m4: New file, from gettext-0.11.5.
66864         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
66865         * m4/inttypes.m4: New file, from gettext-0.11.5.
66866         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
66867         * m4/isc-posix.m4: New file, from gettext-0.11.5.
66868         * m4/lcmessage.m4: New file, from gettext-0.11.5.
66869         * m4/lib-ld.m4: New file, from gettext-0.11.5.
66870         * m4/lib-link.m4: New file, from gettext-0.11.5.
66871         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
66872         * m4/progtest.m4: New file, from gettext-0.11.5.
66873         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
66874         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
66875         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
66876
66877         Module localcharset.
66878         * m4/localcharset.m4: New file.
66879
66880         Module hard-locale.
66881         * m4/hard-locale.m4: New file.
66882
66883         Module mbswidth.
66884         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
66885         onceonly macros.
66886         * m4/mbrtowc.m4: Add comment.
66887
66888         Module memcasecmp.
66889         * m4/memcasecmp.m4: New file.
66890
66891         Module memcoll.
66892         * m4/memcoll.m4: New file.
66893
66894         Module unicodeio.
66895         * m4/unicodeio.m4: New file.
66896
66897         Module rpmatch.
66898         * m4/rpmatch.m4: New file.
66899
66900         Module yesno.
66901         * m4/yesno.m4: New file.
66902
66903         Module exitfail.
66904         * m4/exitfail.m4: New file.
66905
66906         Module c-stack.
66907         * m4/c-stack.m4 (gl_C_STACK): New macro.
66908         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
66909
66910         Module error.
66911         * m4/error.m4 (gl_ERROR): New macro.
66912         (jm_PREREQ_ERROR): Use onceonly macros.
66913
66914         Module fatal.
66915         * m4/fatal.m4: New file.
66916
66917         Module getloadavg.
66918         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
66919         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
66920
66921         Module getpagesize.
66922         * m4/getpagesize.m4: New file.
66923
66924         Module getusershell.
66925         * m4/getusershell.m4: New file.
66926
66927         Module physmem.
66928         * m4/physmem.m4: New file.
66929
66930         Module posixver.
66931         * m4/posixver.m4: New file.
66932
66933         Module quotearg.
66934         * m4/quotearg.m4: New file.
66935
66936         Module quote.
66937         * m4/quote.m4: New file.
66938
66939         Module readutmp.
66940         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
66941
66942         Module sig2str.
66943         * m4/sig2str.m4: New file.
66944
66945         Other.
66946         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
66947         ulonglong.m4.
66948         * m4/intmax_t.m4: New file.
66949         * m4/d-type.m4: Indentation.
66950         * m4/jm-macros.m4: Update.
66951         * m4/prereq.m4 (jm_PREREQ): Update.
66952         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
66953         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
66954         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
66955         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
66956         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
66957         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
66958         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
66959         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
66960         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
66961         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
66962         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
66963         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
66964         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
66965         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
66966         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
66967         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
66968         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
66969         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
66970         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
66971
66972 2002-12-24  Bruno Haible  <bruno@clisp.org>
66973
66974         * MODULES.txt: Update according to m4/ changes.
66975
66976         Module gettext.
66977         * config.rpath: New file, from gettext-0.11.5.
66978
66979         * modules/*: New module descriptions.
66980         * gnulib-tool: New file.
66981         * MODULES.html.sh: New file.
66982
66983 2002-12-21  Karl Berry  <karl@gnu.org>
66984
66985         * doc/fdl.texi: update to version 1.2.
66986
66987 2002-12-19  Karl Berry  <karl@gnu.org>
66988
66989         * config/config.guess: update from prep.
66990
66991 2002-12-18  Bruno Haible  <bruno@clisp.org>
66992
66993         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
66994         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
66995
66996 2002-12-17  Bruno Haible  <bruno@clisp.org>
66997
66998         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
66999         stdlib.h, string.h.
67000
67001 2002-12-17  Bruno Haible  <bruno@clisp.org>
67002
67003         * lib/canon-host.c (strdup): Remove unused declaration.
67004
67005         * lib/fsusage.c: Include full_read.h.
67006         (get_fs_usage): Use full_read instead of safe_read.
67007
67008         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
67009
67010 2002-12-12  Karl Berry  <karl@gnu.org>
67011
67012         * config/config.guess: update from prep.
67013
67014 2002-12-11  Bruno Haible  <bruno@clisp.org>
67015
67016         * m4/setenv.m4: New file, from gettext-0.11.5.
67017
67018 2002-12-11  Bruno Haible  <bruno@clisp.org>
67019
67020         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
67021         not unsetenv().
67022         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
67023         modifications:
67024
67025         2002-12-11  Bruno Haible  <bruno@clisp.org>
67026
67027                 * setenv.c (alloca): Fall back to malloc.
67028                 (freea): New macro.
67029                 (setenv): Use freea() to free memory allocated with alloca().
67030
67031         2002-11-13  Bruno Haible  <bruno@clisp.org>
67032
67033                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
67034                 function declarations.
67035                 * unsetenv.c (unsetenv): Likewise.
67036
67037         2002-03-04  Bruno Haible  <bruno@clisp.org>
67038
67039                 Portability to AIX 4.3.3.
67040                 * unsetenv.c: New file, extracted from setenv.c.
67041                 * setenv.c: Move the unsetenv() function to unsetenv.c.
67042
67043         2001-12-20  Bruno Haible  <bruno@clisp.org>
67044
67045                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
67046                 use malloc instead. For SunOS 4.
67047
67048         2001-12-11  Bruno Haible  <bruno@clisp.org>
67049
67050                 * setenv.c: Declare alloca.
67051                 (compar_fn_t): New typedef.
67052                 (KNOWN_VALUE, STORE_VALUE): Use it.
67053
67054         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
67055         setenv.h.
67056
67057 2002-12-10  Paul Eggert  <eggert@twinsun.com>
67058
67059         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
67060         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
67061         Choose values that are less likely to collide with system fnmatch
67062         options.
67063         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
67064         defined (e.g., a pure POSIX system).
67065         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
67066         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
67067
67068 2002-12-06  Paul Eggert  <eggert@twinsun.com>
67069
67070         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
67071         a pain in practice to deal with generated m4 files.  This change
67072         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
67073
67074         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
67075         and jm-glibc-io.m4, as they are no longer a special case.
67076         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
67077         kludge and the auto-generation stuff.  Check only whether the
67078         functions are declared, not whether they exist, since older hosts
67079         that don't declare the functions can't use the optimization anyway.
67080
67081 2002-12-06  Jim Meyering  <jim@meyering.net>
67082
67083         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
67084
67085         Merge in changes from libc's misc/error.c, in preparation
67086         for the merge of gnulib's changes back into libc.
67087
67088         * lib/error.c (_): Define only if not already defined.
67089         Move definition to follow all #include directives.
67090         Include unlocked-io.h only if !_LIBC.
67091         [_LIBC]: Include <libio/libioP.h>.
67092         [USE_IN_LIBIO]: Include <libio/iolibio.h>
67093         (fflush): Tweak definition to use INTUSE.
67094         (putc): Define.
67095
67096 2002-12-05  Paul Eggert  <eggert@twinsun.com>
67097
67098         * lib/alloca.c [defined emacs]: Include "lisp.h".
67099         (xalloc_die) [defined emacs]: New macro.
67100         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
67101         [! defined emacs]: Include <xalloc.h>.
67102         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
67103         (pointer): Typedef to POINTER_TYPE *.
67104         (malloc): Remove decl; we now always use xmalloc.
67105         (alloca): Use old-style definition, since Emacs needs this.
67106         Check for arithmetic overflow when computing combined size.
67107
67108 2002-12-04  Paul Eggert  <eggert@twinsun.com>
67109
67110         Do not generate unlocked-io.h automatically, since it's easier to
67111         maintain it by hand.
67112
67113         * lib/unlocked-io.h: New file, from GNU diffutils,
67114         but with proper copyright notice and attribution.
67115         * lib/gen-uio: Remove.
67116         * lib/Makefile.am: Add copyright notice.
67117         (libfetish_a_SOURCES): Add unlocked-io.h.
67118         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
67119         (DISTCLEANFILES, io_functions): Remove macros.
67120         (EXTRA_DIST): Remove gen_uio.
67121         (unlocked-io.h): Remove rule.
67122
67123 2002-12-04  Jim Meyering  <jim@meyering.net>
67124
67125         Reflect the fact that stat.c and lstat.c are no longer generated.
67126         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
67127         (DISTCLEANFILES): Likewise.
67128         (EXTRA_DIST): Likewise.
67129         (all_local): Don't depend on stat.c or lstat.c.
67130         (stat.c, lstat.c): Remove rules.
67131         (EXTRA_DIST): Remove xstat.in.
67132
67133         * lib/xstat.in: Remove file.  Contents moved into stat.c.
67134         * lib/stat.c: New file.  Contents mostly from xstat.in.
67135         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
67136         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
67137
67138         * lib/safe-read.c: Rework so that it may serve to define safe_write,
67139         too.
67140         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
67141
67142 2002-12-03  Jim Meyering  <jim@meyering.net>
67143
67144         * lib/safe-read.c, safe-write.c: Change variable names and comments,
67145         but not semantics, to minimize the differences between these two files.
67146         (safe_read): Change comment to mention SAFE_READ_ERROR.
67147
67148         * lib/safe-read.c (IS_EINTR): Define.
67149         (safe_read): Use IS_EINTR in place of in-function cpp directives.
67150
67151 2002-12-02  Jim Meyering  <jim@meyering.net>
67152
67153         * lib/safe-read.c (EINTR): Define.
67154         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
67155         (INT_MAX): Provide fallback.
67156         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
67157
67158         * lib/safe-read.h (SAFE_READ_ERROR): Define.
67159
67160 2002-12-02  Bruno Haible  <bruno@clisp.org>
67161
67162         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
67163         Define, taken from safe-read.c.
67164         (INT_MAX): Provide fallback.
67165         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
67166         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
67167
67168         * lib/safe-read.c (EINTR): Remove definition.
67169         (safe_read): Don't use EINTR if it is absent.
67170
67171 2002-12-01  Jim Meyering  <jim@meyering.net>
67172
67173         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
67174         zero.
67175         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
67176
67177 2002-11-27  Paul Eggert  <eggert@twinsun.com>
67178
67179         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
67180         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
67181         with `if (! (value < limit)) abort ();', for readability.
67182
67183 2002-11-26  Karl Berry  <karl@gnu.org>
67184
67185         * lib/strdup.c: copy from libc again, with jim's ok.
67186         * lib/.cppi-disable: re-add strdup.c
67187
67188 2002-11-25  Karl Berry  <karl@gnu.org>
67189
67190         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
67191         instead of "strtol.c".
67192
67193 2002-11-25  Karl Berry  <karl@gnu.org>
67194
67195         * config/install-sh: update from automake for variable quoting, $0 in
67196         error msgs, etc.
67197
67198         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
67199         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
67200         entry.
67201
67202 2002-11-25  Jim Meyering  <jim@meyering.net>
67203
67204         * lib/mktime.c: Sync from libc, now that it has the latest fix.
67205
67206 2002-11-24  Karl Berry  <karl@gnu.org>
67207
67208         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
67209         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
67210
67211 2002-11-24  Jim Meyering  <jim@meyering.net>
67212
67213         Update from coreutils:
67214
67215         * lib/mktime.c: Merge in changes from libc.
67216
67217         Avoid a link-time failure on some Linux systems.
67218         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
67219         (otherwise).
67220         (__mon_yday): Declare with the STATIC attribute.
67221         (__mktime_internal): Likewise.
67222         Based on a report from Greg Schafer.
67223
67224 2002-11-23  Jim Meyering  <jim@meyering.net>
67225
67226         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
67227         Use `unsigned', not `int', as type of index.
67228
67229         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
67230
67231         * lib/fsusage.c: Remove unneeded parentheses around operands of
67232         `defined'.
67233
67234 2002-11-22  Paul Eggert  <eggert@twinsun.com>
67235
67236         * lib/quotearg.h: Allow multiple inclusion by surrounding with
67237         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
67238         so that we can be included first.
67239         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
67240         * lib/quotearg.c: Include quotearg.h immediately after config.h.
67241         No need to include stddef.h or sys/types.h any more.
67242         Surround local include files with "", not "<>".
67243         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
67244         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
67245         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
67246         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
67247         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
67248         (ISPRINT): Remove; no longer needed now that we assume C89.
67249
67250         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
67251         Preserve errno.
67252
67253         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
67254         quotearg_char): Use SIZE_MAX rather than
67255         (size_t) -1 when we are talking about "infinity".
67256
67257         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
67258
67259 2002-11-22  Paul Eggert  <eggert@twinsun.com>
67260
67261         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
67262         hint that one should use `if (! x) abort ();' rather than `assert
67263         (x);', and anyway it's one less thing to worry about configuring.
67264         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
67265         hash_rehash, hash_insert): Use abort rather than assert.
67266
67267 2002-11-22  Bruno Haible  <bruno@clisp.org>
67268
67269         * lib/safe-read.h: Assume C89. Add comments.
67270         (safe_read): Change return type to size_t.
67271         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
67272         byte counts > SSIZE_MAX correctly.
67273         * lib/safe-write.h: New file.
67274         * lib/safe-write.c: New file.
67275         * lib/full-read.h: New file.
67276         * lib/full-read.c: New file.
67277         * lib/full-write.h: Assume C89. Add comments.
67278         * lib/full-write.c: Include safe-write.h.
67279         (full_write): Rewritten to use safe_write.
67280         Suggested by Jim Meyering and Paul Eggert.
67281
67282 2002-11-21  Jim Meyering  <jim@meyering.net>
67283
67284         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
67285
67286         Merge in changes from the coreutils.
67287
67288         2002-09-25  Paul Eggert  <eggert@twinsun.com>
67289         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
67290         <stdint.h>.
67291         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
67292         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
67293         int.  Work more efficiently if X is the same width as uintmax_t.
67294         Do not compare X to -1, to avoid bogus compiler warning.
67295         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
67296         Don't assume that f_frsize and f_bsize are the same type.
67297
67298         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
67299         warning on FreeBSD.
67300
67301         * lib/makepath.c (make_path): Restore umask *before* creating the final
67302         component.
67303         (make_path): Minor reformatting.
67304
67305         * lib/xmalloc.c: Adjust to work with new autoconf macros,
67306         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
67307         HAVE_MALLOC/HAVE_REALLOC.
67308
67309         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
67310         dummy ones.  At least on GNU/Linux systems, `auto' means something
67311         else.
67312         From Michael Stone.
67313
67314 2002-11-21  Bruno Haible  <bruno@clisp.org>
67315
67316         Remove case insensitive option matching.
67317         * lib/argmatch.h (argcasematch): Remove declaration.
67318         (ARGCASEMATCH): Remove macro.
67319         (__xargmatch_internal): Remove case_sensitive argument.
67320         (XARGMATCH): Update.
67321         (XARGCASEMATCH): Remove macro.
67322         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
67323         case_sensitive argument.
67324         (argcasematch): Remove function.
67325         (__xargmatch_internal): Remove case_sensitive argument.
67326         (main): Use XARGMATCH instead of XARGCASEMATCH.
67327
67328         * lib/xmalloc.c: Change compile-time error message. Add comment about
67329         required autoconf version.
67330
67331 2002-11-20  Paul Eggert  <eggert@twinsun.com>
67332
67333         Merge argmatch cleanups from Bison.  Assume C89.
67334
67335         * lib/argmatch.c: Include config.h here, not in argmatch.h.
67336         Include stdlib.h, for EXIT_FAILURE.
67337         Always include <string.h>, since we assume C89.
67338         (EXIT_FAILURE): Remove pre-C89 bug workaround.
67339         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
67340         Include <stddef.h> instead, since it's all we need for size_t.
67341         (PARAMS): Remove.  All uses removed.
67342         (ARRAY_CARDINALITY): Do not bother to #undef.
67343         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
67344         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
67345         Remove unnecessary parentheses.
67346         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
67347         Insert necessary parentheses.
67348         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
67349         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
67350
67351 2002-11-19  Bruno Haible  <bruno@clisp.org>
67352
67353         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
67354         * lib/mbswidth.h: Include <stddef.h>, for size_t.
67355
67356         * lib/mbswidth.h (PARAMS): Remove macro.
67357         (mbswidth, mbsnwidth): Use ANSI C function declarations.
67358         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
67359
67360         * lib/gcd.h (PARAMS): Remove macro.
67361         (gcd): Use ANSI C function declarations.
67362         * lib/gcd.c (gcd): Likewise.
67363
67364 2002-11-15  Bruno Haible  <bruno@clisp.org>
67365
67366         * lib/strcspn.c: Include <stddef.h>.
67367         (strcspn): Use ANSI C function declaration. Change return type to
67368         size_t. Use NULL.
67369         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
67370         (strpbrk): Use NULL.
67371         * lib/strpbrk.h (PARAMS): Remove macro.
67372         (strpbrk): Use ANSI C function declaration.
67373         * lib/strstr.c: Don't include <sys/types.h>.
67374         * lib/strstr.h (PARAMS): Remove macro.
67375         (strstr): Use ANSI C function declarations.
67376
67377 2002-11-14  Karl Berry  <karl@gnu.org>
67378
67379         * config/mkinstalldirs: `do' on separate line, instead of
67380         `for var; do'.
67381
67382 2002-11-06  Bruno Haible  <bruno@clisp.org>
67383
67384         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
67385         * lib/gcd.c (gcd): Likewise.
67386
67387 2002-11-05  Bruno Haible  <bruno@clisp.org>
67388
67389         * lib/gcd.h: New file, from gettext-0.11.5.
67390         * lib/gcd.c: New file, from gettext-0.11.5.
67391
67392 2002-11-05  Bruno Haible  <bruno@clisp.org>
67393
67394         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67395         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67396         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67397         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67398
67399         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
67400         <libintl.h>.
67401         * lib/makepath.c: Include gettext.h instead of <locale.h> and
67402         <libintl.h>.
67403
67404         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
67405         * lib/human.c: Include gettext.h instead of <libintl.h>.
67406         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
67407         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
67408         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
67409         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
67410         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
67411         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
67412         (textdomain): Remove definition.
67413         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
67414
67415         * lib/long-options.c: Remove include of <libintl.h> and definition of
67416         _.
67417         * lib/same.c: Remove include of <libintl.h> and definition of _.
67418
67419 2002-11-04  Owen Taylor  <otaylor@redhat.com>
67420
67421         * lib/config.charset: A few additions for Solaris.
67422
67423 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67424
67425         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
67426         * lib/localcharset.c (locale_charset): Declare as extern "C".
67427
67428 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67429
67430         * lib/config.charset: msdos in uk_UA uses CP1125.
67431
67432 2002-11-04  Bruno Haible  <bruno@clisp.org>
67433
67434         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
67435         * lib/strcase.h: New file, from GNU gettext-0.11.5.
67436         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
67437         * lib/strstr.h: New file, from GNU gettext-0.11.5.
67438         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
67439
67440 2002-11-04  Bruno Haible  <bruno@clisp.org>
67441
67442         * lib/localcharset.c (locale_charset): Don't return an empty string.
67443
67444 2002-11-04  Bruno Haible  <bruno@clisp.org>
67445
67446         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
67447         aliases.
67448
67449 2002-11-04  Bruno Haible  <bruno@clisp.org>
67450
67451         * lib/config.charset: Update for newest glibc. Add canonical names
67452         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
67453
67454 2002-11-04  Bruno Haible  <bruno@clisp.org>
67455
67456         * lib/config.charset: Add support for NetBSD.
67457
67458 2002-11-04  Bruno Haible  <bruno@clisp.org>
67459
67460         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
67461
67462 2002-11-01  Bruno Haible  <bruno@clisp.org>
67463
67464         * configure.in: Add AC_CONFIG_AUX_DIR call.
67465         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
67466         test/Makefile.
67467         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
67468
67469 2002-09-28  Karl Berry  <karl@gnu.org>
67470
67471         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
67472         installed automake until the next release, since changes have been
67473         made.
67474
67475 2002-09-25  Karl Berry  <karl@gnu.org>
67476
67477         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
67478         * lib/getopt*: copy from libc/posix.
67479         * lib/gettext.h: copy from gettext.
67480         * lib/.cppi-disable: add strdup.c, gettext.h.
67481
67482 2002-09-25  Karl Berry  <karl@gnu.org>
67483
67484         * config/srclist.txt: enable gettext.h check.
67485         * config/config.{guess,sub}: update from prep.
67486         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
67487                 from automake 1.6.3.
67488         See srclist*.
67489
67490 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
67491
67492         * regex.c (PATFETCH): Remove the translating fetch.
67493         (PATFETCH_RAW): Rename to PATFETCH.
67494         (set_image_of_range): New fun.
67495         (SET_RANGE_TABLE_WORK_AREA): Use it.
67496         (regex_compile): Don't translate the pattern chars so eagerly.
67497         Only do it when inserting an `exactn' bytecode or when handling
67498         a char-range.
67499         (mutually_exclusive_p): Avoid empty statement.
67500
67501 2002-07-06  Jim Meyering  <meyering@lucent.com>
67502
67503         * m4/README: Don't mention Makefile.am.in.
67504         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
67505
67506 2002-07-01  Jim Meyering  <meyering@lucent.com>
67507
67508         * lib/c-stack.c: Include sys/time.h.
67509         From Volker Borchert.
67510
67511 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67512
67513         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
67514
67515 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67516
67517         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
67518         New macro.  Use it uniformly instead of
67519         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
67520         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
67521         reported by Vin Shelton.
67522
67523 2002-06-22  Paul Eggert  <eggert@twinsun.com>
67524
67525         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
67526         Do not assume SA_SIGINFO behavior.
67527         Bug reported by Jim Meyering on NetBSD 1.5.2.
67528
67529 2002-06-22  Jim Meyering  <meyering@lucent.com>
67530
67531         * m4/c-stack.m4: New file, from diffutils-2.8.2.
67532         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
67533
67534         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
67535         now that configure.ac uses AC_GNU_SOURCE.
67536         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
67537         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
67538
67539         Update to latest tools.  Suggestions from Paul Eggert.
67540         * m4/stdbool.m4: New file, from diffutils-2.8.2.
67541         * m4/gnu-source.m4: Update from diffutils-2.8.2.
67542         * m4/fnmatch.m4: Likewise.
67543         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
67544         to AC_HEADER_STDBOOL
67545
67546 2002-06-22  Jim Meyering  <meyering@lucent.com>
67547
67548         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
67549         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
67550
67551 2002-06-22  Jim Meyering  <meyering@lucent.com>
67552
67553         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
67554
67555         * lib/exitfail.c, exitfail.h: Likewise.
67556         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
67557
67558         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
67559         of fnmatch.h.
67560         (EXTRA_DIST): Add fnmatch_loop.c.
67561         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
67562
67563         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
67564         * lib/fnmatch.c: Update from diffutils-2.8.2.
67565         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
67566         * lib/fnmatch.h: Remove file.
67567
67568 2002-06-21  Jim Meyering  <meyering@lucent.com>
67569
67570         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
67571         * m4/mbrtowc.m4: Likewise.
67572
67573         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
67574         * m4/mbswidth.m4: Reflect name change:
67575         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
67576         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67577
67578         * m4/lib-link.m4: Update from gettext-0.11.2.
67579         * m4/gettext.m4: Likewise.
67580
67581         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
67582         From Alfred M. Szmidt.
67583
67584 2002-06-18  Paul Eggert  <eggert@twinsun.com>
67585
67586         * lib/file-type.h: Report an error if neither S_ISREG nor
67587         S_IFREG is defined, instead of using a test specific to glibc
67588         2.2.  This should be safe, since POSIX requires S_ISREG and
67589         Unix Version 7 had S_IFREG.  We don't need to check for
67590         <sys/types.h> since we don't use any symbols that it defines.
67591
67592 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
67593
67594         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
67595         $@-t, so that each temporary file name is unique and valid in the first
67596         8 characters, for operation under DOS.
67597
67598 2002-06-15  Paul Eggert  <eggert@twinsun.com>
67599
67600         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
67601
67602 2002-06-15  Jim Meyering  <meyering@lucent.com>
67603
67604         Work even with DJGPP 2.03, which lacks support for symlinks.
67605         From Richard Dawe.
67606         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
67607         is defined.
67608         * lib/lchown.c (S_ISLNK): Likewise.
67609
67610 2002-06-15  Jim Meyering  <meyering@lucent.com>
67611
67612         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
67613         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
67614         have been included before this file.
67615
67616 2002-06-14  Jim Meyering  <meyering@lucent.com>
67617
67618         * lib/file-type.h: Use the version from diffutils-2.8.2.
67619         * lib/file-type.c: Likewise.
67620
67621 2002-06-07  Jim Meyering  <meyering@lucent.com>
67622
67623         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
67624         They're needed at least for NetBSD 1.5.2.
67625         ($statxfs_includes): Include those same headers.
67626         ($statxfs_includes): Include sys/vfs.h if available.
67627         ($statxfs_includes): Likewise for sys/statvfs.h.
67628         Check for the following members in both structs statfs and statvfs:
67629         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
67630
67631 2002-06-01  Jim Meyering  <meyering@lucent.com>
67632
67633         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
67634         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
67635
67636 2002-05-28  Jim Meyering  <meyering@lucent.com>
67637
67638         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
67639         Reported by Volker Borchert.
67640
67641 2002-05-27  Jim Meyering  <meyering@lucent.com>
67642
67643         Fix a problem seen only on nonconforming systems whereby ls.c's
67644         use of localtime, and then of gettimeofday would cause trouble:
67645         the localtime call used to initialize rpl_gettimeofday's save
67646         mechanism would clobber ls's current local time information so
67647         that in any long listing the first file would always be listed
67648         with date 1970-01-01.  Analysis by Volker Borchert.
67649
67650         * lib/gettimeofday.c (localtime): Undefine.
67651         (rpl_localtime): New function.
67652
67653 2002-05-27  Jim Meyering  <meyering@lucent.com>
67654
67655         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
67656         localtime.
67657
67658         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
67659         use the replacement function; it wouldn't resolve at link time.
67660         Reported by Volker Borchert.
67661
67662 2002-05-22  Jim Meyering  <meyering@lucent.com>
67663
67664         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
67665         file-type.h.
67666         * lib/file-type.h: New file.
67667         * lib/file-type.c (file_type): New file/function.  Extracted from
67668         diffutils.
67669
67670 2002-04-30  Jim Meyering  <meyering@lucent.com>
67671
67672         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
67673
67674 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67675
67676         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
67677
67678 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67679
67680         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
67681         Do not check for alloca.h (no longer used) or stdbool.h (was never
67682         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
67683
67684 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67685
67686         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
67687
67688 2002-04-29  Jim Meyering  <meyering@lucent.com>
67689
67690         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
67691         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
67692         Use AC_FUNC_STRNLEN here instead.
67693
67694         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
67695         With autoconf-2.53a, it's part of AC_PROG_CC.
67696
67697 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67698
67699         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
67700         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
67701
67702 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67703
67704         * lib/sig2str.h, lib/sig2str.c: New files.
67705         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
67706
67707 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67708
67709         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
67710         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
67711         of 127, since 64 is the largest conceivable number for ancient
67712         nonstandard hosts.
67713         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
67714
67715 2002-04-28  Jim Meyering  <meyering@lucent.com>
67716
67717         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
67718
67719 2002-04-24  Jim Meyering  <meyering@lucent.com>
67720
67721         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
67722         (jm_PREREQ): Use it.
67723
67724         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
67725         mach/mach.h fcntl.h.
67726         Check for this function: setlocale.
67727
67728 2002-04-24  Jim Meyering  <meyering@lucent.com>
67729
67730         * lib/gettext.h: New file, from Gettext.
67731         * lib/Makefile.am (INCLUDES): Remove -I../intl.
67732         (libfetish_a_SOURCES): Add gettext.h.
67733
67734 2002-04-16  Jim Meyering  <meyering@lucent.com>
67735
67736         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
67737         ut_pid, ut_id, ut_exit.
67738
67739 2002-04-16  Jim Meyering  <meyering@lucent.com>
67740
67741         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
67742         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
67743         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
67744
67745 2002-04-12  Jim Meyering  <meyering@lucent.com>
67746
67747         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
67748         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
67749         existence of the getmntinfo function.  Needed for Darwin 5.3.
67750
67751         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
67752         This is necessary at least on Darwin 5.3.
67753
67754         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
67755         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
67756         strnlen.o in the library, and that makes some versions of ranlib
67757         object.
67758
67759 2002-04-12  Jim Meyering  <meyering@lucent.com>
67760
67761         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
67762
67763 2002-04-09  Jim Meyering  <meyering@lucent.com>
67764
67765         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
67766         to be more precise.  Rather than saying we're checking whether the
67767         function `works', say what we're testing.
67768         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
67769         Reported by Bruno Haible.
67770
67771 2002-03-10  Jim Meyering  <meyering@lucent.com>
67772
67773         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
67774         Suggestion from Santiago Vila.
67775
67776 2002-03-08  Jim Meyering  <meyering@lucent.com>
67777
67778         * lib/rename.c: Mention that this wrapper is needed also on
67779         mips-dec-ultrix4.4 systems.
67780
67781 2002-03-02  Jim Meyering  <meyering@lucent.com>
67782
67783         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
67784         not HAVE_CLOCK_SETTIME.
67785
67786 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67787
67788         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
67789         Check for clock_settime.
67790
67791 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67792
67793         * lib/nanosleep.h: Rename to....
67794         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
67795
67796         * lib/gettime.c: New file.
67797         * lib/settime.c: New file.
67798         * lib/stime.c: Remove.
67799
67800         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
67801         timespec.h.  Remove nanosleep.h.
67802
67803 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67804
67805         * m4/acl.m4: New file.
67806         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
67807         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
67808
67809 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67810
67811         * lib/acl.c, lib/acl.h: New files.
67812         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
67813
67814 2002-02-24  Jim Meyering  <meyering@lucent.com>
67815
67816         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
67817         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
67818         cause trouble.  Reported by Nelson Beebe.
67819
67820 2002-02-23  Paul Eggert  <eggert@twinsun.com>
67821
67822         * lib/path-concat.c (xpath_concat): Reorder code to pacify
67823         compilers that don't know that xalloc_die never returns.
67824
67825 2002-02-20  Jim Meyering  <meyering@lucent.com>
67826
67827         * lib/getdate.c: Regenerate using bison-1.33.
67828
67829 2002-02-17  Jim Meyering  <meyering@lucent.com>
67830
67831         * config/config.guess (main): Don't use `head -1'; it's no longer
67832         portable. Use `sed 1q' instead.
67833
67834 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
67835
67836         * m4/codeset.m4: Upgrade to gettext-0.11.
67837         * m4/gettext.m4: Upgrade to gettext-0.11.
67838         * m4/glibc21.m4: Upgrade to gettext-0.11.
67839         * m4/iconv.m4: Upgrade to gettext-0.11.
67840         * m4/isc-posix.m4: Upgrade to gettext-0.11.
67841         * m4/lcmessage.m4: Upgrade to gettext-0.11.
67842         * m4/lib-ld.m4: New file, from gettext-0.11.
67843         * m4/lib-link.m4: New file, from gettext-0.11.
67844         * m4/lib-prefix.m4: New file, from gettext-0.11.
67845         * m4/progtest.m4: Upgrade to gettext-0.11.
67846
67847 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67848
67849         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
67850         (jm_PREREQ): Use it.
67851
67852 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67853
67854         * lib/posixver.c, lib/posixver.h: New files.
67855         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67856
67857 2002-02-02  Paul Eggert  <eggert@twinsun.com>
67858             Bruno Haible  <bruno@clisp.org>
67859
67860         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
67861         (fwrite_success_callback): New declaration.
67862         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
67863         print_unicode_char. Call failure callback instead of error.
67864         (fwrite_success_callback): New function.
67865         (exit_failure_callback): New function.
67866         (fallback_failure_callback): New function.
67867         (print_unicode_char): Call unicode_to_mb.
67868
67869 2002-01-26  Jim Meyering  <meyering@lucent.com>
67870
67871         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
67872         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
67873
67874 2002-01-26  Jim Meyering  <meyering@lucent.com>
67875
67876         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
67877
67878 2002-01-22  Paul Eggert  <eggert@twinsun.com>
67879
67880         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
67881
67882 2002-01-22  Jim Meyering  <meyering@lucent.com>
67883
67884         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
67885         Otherwise, some versions of automake would omit the rule that makes
67886         Makefile from Makefile.in.
67887
67888 2002-01-21  Paul Eggert  <eggert@twinsun.com>
67889
67890         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
67891         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67892         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
67893         (memcoll): Set errno to zero if there is no error.
67894
67895         * lib/quotearg.c (quotearg_buffer_restyled):
67896         Fix bug with quoting buffers containing NUL when backslashing escapes.
67897         This bug was exposed by the other changes in this patch.
67898         (quotearg_n_options): New arg ARGSIZE.
67899         All callers changed.
67900         (quoting_options_from_style): New function.
67901         (quotearg_n_style): Use it.
67902         (quotearg_n_style_mem): New function.
67903
67904         * lib/quotearg.h (quotearg_n_style_mem): New function.
67905
67906 2002-01-19  Jim Meyering  <meyering@lucent.com>
67907
67908         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
67909         Remove useless quotes: DF_PROG="df".
67910         * m4/strnlen.m4: New file.
67911
67912 2002-01-16  Paul Eggert  <eggert@twinsun.com>
67913
67914         * lib/backupfile.c (ISDIGIT): Comment fix.
67915         * lib/getdate.y (ISDIGIT): Likewise.
67916         * lib/posixtm.c (ISDIGIT, year): Likewise.
67917         * lib/strverscmp.c (ISDIGIT): Likewise.
67918         * lib/userspec.c (ISDIGIT): Likewise.
67919
67920 2002-01-16  Jim Meyering  <meyering@lucent.com>
67921
67922         * lib/getdate.y: Add three semicolons, each just before a closing
67923         brace. Bison (as of version 1.31) no longer papers over that mistake.
67924
67925 2002-01-05  Jim Meyering  <meyering@lucent.com>
67926
67927         * lib/version-etc.c (version_etc_copyright): Update copyright year.
67928
67929 2001-12-19  Paul Eggert  <eggert@twinsun.com>
67930
67931         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
67932         not silently exit merely because the output buffer happens to
67933         have nothing pending.
67934
67935 2001-12-18  Paul Eggert  <eggert@twinsun.com>
67936
67937         See the big note in ../ChangeLog.
67938         * lib/human.c (suffixes): Prefer K to k for 1024.
67939         (generate_suffix_backwards): New function.
67940         (human_readable_inexact): Use it.
67941         * lib/xstrtol.c (__xstrtol): If there is no number but there
67942         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
67943         Accept 'K' as well as 'k'.
67944
67945 2001-12-15  Jim Meyering  <meyering@lucent.com>
67946
67947         * lib/regex.h (__restrict_arr): Update from libc.
67948
67949         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
67950         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
67951         (STREQ): Define.
67952
67953 2001-12-14  Jim Meyering  <meyering@lucent.com>
67954
67955         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
67956         Suggestion from Bruno Haible.
67957
67958 2001-12-10  Jim Meyering  <meyering@lucent.com>
67959
67960         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
67961         xrealloc, Instead, include "xalloc.h".
67962         (initbuffer): Don't cast xmalloc return value to char*.
67963         (readline): Reword comment.
67964         Don't cast xrealloc return value to char*
67965         Return NULL, not 0.
67966
67967 2001-12-09  Jim Meyering  <meyering@lucent.com>
67968
67969         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
67970         about `signed and unsigned type in conditional expression'.
67971         * lib/posixtm.c (posix_time_parse): Likewise.
67972
67973         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
67974
67975         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
67976         to avoid a pedantic warning.
67977
67978         * lib/getstr.c: Don't include assert.h.
67979         (getstr): Remove warning-evoking assertions.
67980         Return -1 if offset parameter is out of bounds.
67981         Change the type of a local from int to size_t.
67982
67983         * lib/strftime.c (my_strftime_localtime_r): Include this function
67984         definition in the `#if ! HAVE_TM_GMTOFF' block.
67985
67986         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
67987         Include xalloc.h instead.
67988
67989 2001-12-02  Jim Meyering  <meyering@lucent.com>
67990
67991         * lib/tempname.c: Don't declare getenv, thus reverting the change of
67992         2001-11-18.  It's no longer necessary, now that stdlib.h is always
67993         included.
67994
67995         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
67996         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
67997
67998 2001-11-30  Akim Demaille  <akim@epita.fr>
67999
68000         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
68001         before being defined.
68002
68003 2001-11-27  Paul Eggert  <eggert@twinsun.com>
68004
68005         * lib/quotearg.h (quotearg_n, quotearg_n_style):
68006         First arg is int, not unsigned.
68007         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
68008         (SIZE_MAX, UINT_MAX): New macros.
68009         (quotearg_n_options): Abort if N is negative.
68010         Avoid overflow check on hosts where size_t is 64 bits and int
68011         is 32 bits, as overflow is impossible there.
68012         Fix off-by-one typo that caused unnecessary reallocation.
68013
68014 2001-11-27  Jim Meyering  <meyering@lucent.com>
68015
68016         * lib/tempname.c: Merge with version from libc.
68017         * lib/regex.c: Likewise.
68018
68019         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
68020         systems for which STDC_HEADERS is 0, it was not included, resulting in
68021         a warning about an integer-to-pointer conversion problem with getenv.
68022         Reported by Volker Borchert.
68023
68024 2001-11-26  Jim Meyering  <meyering@lucent.com>
68025
68026         * lib/gtod.h: Remove file.
68027         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
68028         * lib/gettimeofday.c: Don't include gtod.h.
68029         (GTOD_init): Remove function.
68030         (rpl_gettimeofday): Do its job here instead, rather than aborting.
68031         Suggestion from Volker Borchert.
68032
68033 2001-11-23  Jim Meyering  <meyering@lucent.com>
68034
68035         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
68036         it.
68037         * lib/hash.c (struct hash_table): Define it here instead.
68038
68039 2001-11-22  Jim Meyering  <meyering@lucent.com>
68040
68041         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
68042
68043 2001-11-20  Jim Meyering  <meyering@lucent.com>
68044
68045         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
68046         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
68047
68048 2001-11-19  Jim Meyering  <meyering@lucent.com>
68049
68050         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
68051         directory.  Use "conftestXXXXXX" as the template.
68052         Suggestion from Paul Eggert.
68053
68054         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
68055         immediately, so the test doesn't mistakenly hit the max-open-files
68056         limit.
68057
68058 2001-11-18  Paul Eggert  <eggert@twinsun.com>
68059
68060         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
68061         (TEMPORARIES): New macro.
68062         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
68063         removes an artificial limitation (e.g. HP-UX 10.20, where
68064         TMP_MAX is 17576).
68065
68066 2001-11-18  Jim Meyering  <meyering@lucent.com>
68067
68068         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
68069
68070 2001-11-18  Jim Meyering  <meyering@lucent.com>
68071
68072         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
68073         on SunOS 4.
68074
68075         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
68076         files will be created before anything else.
68077
68078 2001-11-17  Paul Eggert  <eggert@twinsun.com>
68079
68080         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
68081         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
68082
68083 2001-11-17  Jim Meyering  <meyering@lucent.com>
68084
68085         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
68086         Prompted by a report from Bob Proulx.
68087
68088         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
68089         Instead, require UTILS_FUNC_MKSTEMP.
68090
68091 2001-11-17  Jim Meyering  <meyering@lucent.com>
68092
68093         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
68094         Now, that's done as part of AC_FUNC_STRTOD.
68095
68096 2001-11-17  Jim Meyering  <meyering@lucent.com>
68097
68098         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
68099         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
68100         rather than group writable.  Patch by Juan F. Codagnone.
68101
68102         * lib/readtokens.c: Remove explicit declarations of xmalloc and
68103         xrealloc, Instead, include "xalloc.h".
68104
68105         * lib/mountlist.c: Include unlocked-io.h after all system headers.
68106         Remove explicit declarations of xmalloc, xrealloc,
68107         and xstrdup.  Instead, include "xalloc.h".
68108
68109         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
68110         unlocked-io.h.
68111         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
68112         Likewise.
68113         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
68114
68115         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
68116         Reported by Padraig Brady.
68117
68118         * lib/mkstemp.c: #undef mkstemp.
68119         Include config.h.
68120         (rpl_mkstemp): Rename from mkstemp.
68121         Protoize.
68122
68123 2001-11-16  Jim Meyering  <meyering@lucent.com>
68124
68125         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
68126         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
68127         determine the amount of total physical memory, use pstat_getstatic.
68128         HPUX-11 doesn't define _SC_PHYS_PAGES.
68129         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
68130         If sysconf couldn't be used to determine the amount of available
68131         physical memory, use both pstat_getstatic and pstat_getdynamic.
68132         Based on a patch from Bob Proulx.
68133
68134 2001-11-10  Jim Meyering  <meyering@lucent.com>
68135
68136         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
68137         (jm_PREREQ): Use it.
68138
68139 2001-11-09  Jim Meyering  <meyering@lucent.com>
68140
68141         * m4/jm-macros.m4: Require autoconf-2.52f.
68142         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
68143         Use these AC_-prefixed names, not the AM_-prefixed ones.
68144
68145         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
68146
68147 2001-11-05  Jim Meyering  <meyering@lucent.com>
68148
68149         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
68150
68151 2001-11-04  Jim Meyering  <meyering@lucent.com>
68152
68153         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
68154         $DEFS.
68155
68156 2001-11-03  Jim Meyering  <meyering@lucent.com>
68157
68158         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
68159         of AC_DEFUN.
68160
68161         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
68162         know the name of the variable in the macro definition.
68163
68164 2001-11-03  Jim Meyering  <meyering@lucent.com>
68165
68166         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
68167         in argmatch_to_argument call.
68168
68169         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
68170         argument.
68171
68172         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
68173         e.g., a fault due to an attempt to free a NULL pointer.
68174
68175 2001-11-01  Jim Meyering  <meyering@lucent.com>
68176
68177         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
68178         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
68179
68180 2001-11-01  Jim Meyering  <meyering@lucent.com>
68181
68182         * lib/dirfd.c, lib/dirfd.h: New files.
68183         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
68184
68185         * lib/hash.c (hash_print) [TESTING]: Clean up.
68186
68187 2001-10-22  Paul Eggert  <eggert@twinsun.com>
68188
68189         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
68190         to avoid a warning if -Wall.
68191
68192 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
68193
68194         * README: New file
68195         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
68196         (per RMS's instructions, this is now the canonical source)
68197         * lgpl/, gpl/: New directories.
68198
68199 2001-10-21  Paul Eggert  <eggert@twinsun.com>
68200
68201         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
68202
68203 2001-10-21  Jim Meyering  <meyering@lucent.com>
68204
68205         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
68206         this code would end up calling gettext even in packages built
68207         with --disable-nls.
68208         * lib/getopt.c (_): Likewise.
68209         * lib/regex.c (_): Likewise.
68210
68211 2001-10-20  Paul Eggert  <eggert@twinsun.com>
68212
68213         * m4/error.m4 (jm_PREREQ_ERROR):
68214         Do not invoke AC_CHECK_FUNCS with strerror_r, as
68215         AC_FUNC_STRERROR_R does that.
68216         Check for strerror declaration.
68217
68218         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
68219         are supposed to have them these days.
68220         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
68221         Merge changes from latest Autoconf CVS.
68222         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
68223         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
68224         POSIX decided to standardize on the int flavor of strerror_r.
68225
68226 2001-10-20  Paul Eggert  <eggert@twinsun.com>
68227
68228         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
68229         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
68230         Use strerror_r that is only a macro, even if it is not a function.
68231         (strerror): Check for HAVE_DECL_STRERROR before declaring.
68232         (private_strerror): Use prototypes, not old-style function definition.
68233         (print_errno_message): New function.
68234         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
68235         char*-flavored one.
68236         (error_tail, error, error_at_line): Use it.
68237
68238 2001-10-11  Jim Meyering  <meyering@lucent.com>
68239
68240         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
68241         and quote_n (1, ... to avoid clobbering a buffer.
68242
68243 2001-10-05  Jim Meyering  <meyering@lucent.com>
68244
68245         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
68246         hash-pjw.h.
68247         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
68248         * lib/hash-pjw.h: New file.
68249
68250 2001-09-30  Jim Meyering  <meyering@lucent.com>
68251
68252         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
68253         `struct fsstat' has the `f_fstypename' member.
68254         Use that to define FS_TYPE, which is now used to make
68255         the getfsstat link test tighter.
68256
68257 2001-09-30  Jim Meyering  <meyering@lucent.com>
68258
68259         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
68260         Include <sys/ucred.h>, for Apple Darwin.
68261         Include sys/mount.h and sys/fs_types.h only if available.
68262         (FS_TYPE): Define.
68263         (read_filesystem_list): Use FS_TYPE.
68264
68265 2001-09-29  Paul Eggert  <eggert@twinsun.com>
68266
68267         * lib/exclude.c (excluded_filename): 0 -> false, since it's
68268         a boolean context.
68269
68270 2001-09-29  Jim Meyering  <meyering@lucent.com>
68271
68272         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
68273         [one-argument getmntent function]): Include stdio.h before mntent.h.
68274         SunOS 4.1.x needs it for the declaration of `FILE'.
68275         Patch by Volker Borchert.
68276
68277         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
68278         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
68279         sys/fs_types.h, and make the link-test for getfsstat guard #include
68280         directives with appropriate #if HAVE_*_H tests so that we can
68281         detect getfsstat on Apple Darwin1.3.7 systems.
68282         Reported by Nelson Beebe.
68283         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
68284
68285 2001-09-28  Paul Eggert  <eggert@twinsun.com>
68286
68287         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
68288         #defines strtoimax.  Also treat the other strto* functions
68289         like strtoimax.
68290
68291         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68292         Check for strtoul and strtoumax,
68293         as those declarations are made even in the signed case.
68294         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
68295         Likewise, for strtol and strtoimax.
68296
68297 2001-09-28  Paul Eggert  <eggert@twinsun.com>
68298
68299         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
68300         #defines strtoimax.  Also treat the other strto* functions
68301         like strtoimax.
68302
68303         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
68304         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
68305         (strtoimax, strtoumax): Do not declare if already defined as a macro.
68306
68307 2001-09-26  Jim Meyering  <meyering@lucent.com>
68308
68309         Most macros in unlocked-io.h had the wrong number of arguments.
68310         * lib/gen-uio: New script.
68311         (USE_UNLOCKED_IO): Define to 1 if not already defined.
68312         * lib/unlocked-io.hin: Remove file.
68313         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
68314         rather than trying to embed it here.
68315         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
68316         Reported by Padraig Brady.
68317
68318 2001-09-25  Volker Borchert  <bt@teknon.de>
68319
68320         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
68321         `result'.
68322
68323 2001-09-24  Jim Meyering  <meyering@lucent.com>
68324
68325         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
68326
68327 2001-09-23  Jim Meyering  <meyering@lucent.com>
68328
68329         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
68330         instead of the mere test for existence of mntent.h.  The latter
68331         would get a false-positive on AIX 3.4 systems.
68332         In the outer getmntent if-block, don't die if neither of the getmntent
68333         tests succeeds.  Instead, just fall through and continue with the
68334         remaining tests.
68335
68336 2001-09-23  Jim Meyering  <meyering@lucent.com>
68337
68338         * lib/mountlist.c: Remove useless parentheses in #if directives.
68339         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
68340         the deprecated MOUNTED symbol is no longer defined in mntent.h.
68341
68342 2001-09-22  Jim Meyering  <meyering@lucent.com>
68343
68344         * m4/gettext.m4: New file.  From gettext.
68345         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
68346         * m4/progtest.m4: Likewise
68347         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
68348         * m4/glibc21.m4: Likewise.
68349
68350         * m4/libintl.m4: Remove.  No longer used.
68351
68352 2001-09-22  Jim Meyering  <meyering@lucent.com>
68353
68354         * lib/localcharset.c: Update from latest gettext.
68355         * lib/config.charset: Likewise.
68356
68357 2001-09-20  Jim Meyering  <meyering@lucent.com>
68358
68359         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
68360         strtoimax.
68361         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
68362         strtoumax.
68363
68364 2001-09-20  Jim Meyering  <meyering@lucent.com>
68365
68366         * lib/xstrtol.c (strtoimax): Guard declaration with
68367         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
68368         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
68369         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
68370         (strtoumax): Likewise, for completeness (it wasn't necessary).
68371
68372 2001-09-17  Paul Eggert  <eggert@twinsun.com>
68373
68374         * lib/strtoimax.c (HAVE_LONG_LONG):
68375         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
68376         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
68377         to work around bug in IBM C compiler.
68378
68379 2001-09-17  Jim Meyering  <meyering@lucent.com>
68380
68381         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
68382         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
68383         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
68384         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
68385         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
68386         whenever the right hand side need not be expanded by the shell.
68387
68388 2001-09-16  Paul Eggert  <eggert@twinsun.com>
68389
68390         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
68391         library.  It's not correct, as some older glibcs are buggy.
68392         fnmatch wasn't fixed until glibc 2.2.
68393
68394         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
68395         special shell magic here.
68396
68397 2001-09-16  Jim Meyering  <meyering@lucent.com>
68398
68399         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
68400         * m4/jm-macros.m4: Require it.
68401
68402 2001-09-16  Jim Meyering  <meyering@lucent.com>
68403
68404         * lib/mkdir.c: New file.
68405
68406 2001-09-15  Jim Meyering  <meyering@lucent.com>
68407
68408         * m4/jm-macros.m4: Check for help2man.
68409
68410 2001-09-11  Jim Meyering  <meyering@lucent.com>
68411
68412         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
68413         The body, by Paul Eggert, was moved here from configure.in.
68414         * m4/jm-macros.m4: Require UTILS_HOST_OS.
68415
68416 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68417
68418         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
68419         (jm_PREREQ): Use it.
68420
68421 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68422
68423         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
68424         Use ssize_t, not int, to store result of readlink.
68425         Check for ssize_t overflow as well as size_t overflow,
68426         as POSIX says the result of readlink is implementation-defined
68427         when ssize_t overflows.
68428         Remove unnecessary cast to char*.
68429         Use free+malloc instead of realloc, as the storage doesn't need
68430         to be preserved and it's clearer and can be more efficient that way.
68431         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
68432         * lib/xreadlink.h (xreadlink): Update prototype.
68433
68434 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68435
68436         * lib/xgetcwd.c: Revert some of the previous change; intead,
68437         fix the HAVE_GETCWD_NULL code to behave more like the
68438         !HAVE_GETCWD_NULL code used to.
68439
68440         Include "xalloc.h".
68441         (xgetcwd): Do not return NULL when memory is exhausted; instead,
68442         invoke xalloc_die.
68443
68444 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68445
68446         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
68447         sys/param.h, as pathmax.h includes them.
68448
68449 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68450
68451         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
68452         (jm_PREREQ_XGETCWD): New macro.
68453
68454         * m4/getcwd.m4: New file.
68455
68456 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68457
68458         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
68459         like the HAVE_GETCWD_NULL code.
68460         Include pathmax.h if not HAVE_GETCWD.
68461         Do not include xalloc.h.
68462         (INITIAL_BUFFER_SIZE): New symbol.
68463         Do not use xmalloc / xrealloc, since the caller is responsible for
68464         handling errors.  Preserve errno around `free' during failure.
68465         Do not overrun buffer when using getwd.
68466
68467 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68468
68469         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
68470         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
68471         getcwd (NULL, 0).
68472
68473 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68474
68475         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
68476         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
68477         spotted by Jim Meyering.
68478
68479 2001-09-03  Jim Meyering  <meyering@lucent.com>
68480
68481         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
68482         failure.
68483
68484 2001-09-02  Jim Meyering  <meyering@lucent.com>
68485
68486         * lib/error.c: Update from GNU libc.
68487
68488 2001-09-01  Jim Meyering  <meyering@lucent.com>
68489
68490         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
68491         Used by df.
68492
68493 2001-09-01  Jim Meyering  <meyering@lucent.com>
68494
68495         * lib/xreadlink.c: New file.
68496         * lib/xreadlink.h: New file.
68497         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
68498         xreadlink.h.
68499
68500         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
68501         doesn't conflict with sparc Solaris 7's definition in
68502         /usr/include/sys/int_types.h.
68503
68504         * lib/exclude.c: Use `""', not `<>' to #include non-system header
68505         files.
68506         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
68507         and strncasecmp as r-values.  Unixware didn't have declarations.
68508
68509 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68510
68511         * lib/xstrtol.h: Add copyright notice.
68512         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
68513         LONGINT_INVALID_SUFFIX_CHAR.
68514
68515 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68516
68517         * lib/xstrtol.c (strtoimax): New decl.
68518
68519 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68520
68521         * lib/xgetcwd.c: Don't include pathmax.h.
68522         Include stdlib.h and unistd.h if available.
68523         Include xalloc.h.
68524         (xmalloc, xstrdup, free): Remove decls.
68525         (xgetcwd): Don't assume sizes fit in unsigned.
68526         Check for overflow when computing sizes.
68527         Simplify reallocation code.
68528
68529 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68530
68531         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
68532         a directory's st_size can have an arbitrary value, so the old
68533         usage could waste an arbitrary amount of memory.  All uses
68534         changed.
68535         * lib/savedir.h: Update prototype.
68536
68537 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68538
68539         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
68540
68541         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
68542         old strtoimax.c.
68543
68544         Also, make the following further changes to make this file's
68545         configuration more similar to that of strtol.c:
68546         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
68547         (strtoumax, uintmax_t, strtoull, strtol): Remove.
68548         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
68549         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
68550         changed to signed values.
68551
68552         And make the following changes as well:
68553         Fix copyright notice, as 1999 was missing.
68554         (verify): New macro.
68555         (strtoimax): Check sizes at compile-time, not run-time.
68556         Prefer strtol to strtoll if both work.
68557         (main): Remove; it was not that useful and was a pain to maintain.
68558
68559         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
68560
68561 2001-08-31  Jim Meyering  <meyering@lucent.com>
68562
68563         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
68564         Use an initial, malloc'd, buffer of length 128 rather than
68565         a statically allocated one of length 1024.
68566
68567 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68568
68569         Simplify code, partly by assuming autoconf 2.52 semantics.
68570
68571         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
68572
68573         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
68574         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
68575         All uses removed.
68576         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
68577         Move AC_REQUIRE to next-to-top level, to avoid confusion.
68578         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
68579         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
68580         jm_AC_HEADER_INTTYPES_H.
68581         * m4/jm-macros.m4 (jm_MACROS): Likewise.
68582
68583         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
68584
68585         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68586         Quote first arg of AC_DEFUN.
68587         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
68588         since they are needed to parse the include file even if we need
68589         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
68590         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
68591         but with opposite signedness.
68592
68593 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68594
68595         Merge 'exclude' changes from tar 1.13.22.
68596         This fixes one or two unlikely storage allocation overflow bugs,
68597         but doesn't change user-visible behavior otherwise.
68598
68599 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68600
68601         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
68602         (jm_PREREQ_EXCLUDE): New macro.
68603
68604 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68605
68606         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
68607         tm to be declared.
68608
68609 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68610
68611         * lib/hash.c: Remove '2001' from copyright notice.
68612
68613 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68614
68615         * lib/full-write.h: New file.
68616         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
68617         * lib/full-write.c: Correct credits, as cccp.c no longer
68618         exists and anyway it was so heavily changed from the old cccp
68619         code as to be unrecognizable.  Include full-write.h.
68620         (full_write) Return size_t, with short writes meaning failure.
68621         All callers changed.  This fixes a bug with large buffers
68622         on 64-bit hosts.
68623         * lib/utime.c: Include full-write.h.
68624
68625 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68626
68627         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
68628         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
68629         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
68630         Include if available.
68631         (<xalloc.h>): Include
68632         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
68633         (verify): New macro.  Use it to verify that EXCLUDE macros do not
68634         collide with FNM macros.
68635         (struct patopts): New struct.
68636         (struct exclude): Use it, as exclude patterns now come with options.
68637         (new_exclude): Support above changes.
68638         (new_exclude, add_exclude_file):
68639         Initial size must now be a power of two to simplify overflow checking.
68640         (free_exclude, fnmatch_no_wildcards): New function.
68641         (excluded_filename): No longer requires options arg, as the options
68642         are determined by add_exclude.  Now returns bool, not int.
68643         (excluded_filename, add_exclude):
68644         Add support for the fancy new exclusion options.
68645         (add_exclude, add_exclude_file): Now takes int options arg.
68646         Check for arithmetic overflow when computing sizes.
68647         (add_exclude_file): xrealloc might modify errno, so don't
68648         realloc until after errno might be used.
68649
68650         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
68651         New macros.
68652         (free_exclude): New decl.
68653         (add_exclude, add_exclude_file): Now takes int options arg.
68654         (excluded_filename): No longer requires options arg, as the options
68655         are determined by add_exclude.  Now returns bool, not int.
68656
68657 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68658
68659         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
68660
68661 2001-08-27  Jim Meyering  <meyering@lucent.com>
68662
68663         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
68664
68665         * lib/version-etc.c (N_): Remove definition.
68666         Revert most of last change.
68667         Instead, simply don't mark the `Copyright...' string for translation.
68668         Based on advice from Paul Eggert.
68669
68670         * lib/strtoxmax.c: Tweak comment.
68671
68672 2001-08-26  Jim Meyering  <meyering@lucent.com>
68673
68674         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
68675
68676         * m4/xstrtoimax.m4: New file.
68677         * m4/xstrtoumax.m4: Add comments explaining why we
68678         AC_REPLACE_FUNCS(strtol).
68679
68680 2001-08-26  Jim Meyering  <meyering@lucent.com>
68681
68682         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
68683         of copyright with `%s' so translators don't get an untranslated
68684         message in 2002.
68685         (COPYRIGHT_YEAR): Define.
68686         (version_etc): Use fprintf rather than fputs.
68687         Suggestion from Ulrich Drepper.
68688
68689         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
68690
68691         * lib/strtoll.c: New file, from GNU libc.
68692         * lib/xstrtoimax.c: New file.
68693
68694         * lib/xstrtol.h: Add xstrtoimax.
68695         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
68696         * lib/strtoimax.c: New file.  Likewise, but first define
68697         STRTOUXMAX_SIGNED.
68698
68699         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
68700         ...
68701         * lib/strtoxmax.c: ... then renamed to this.
68702
68703 2001-08-18  Paul Eggert  <eggert@twinsun.com>
68704
68705         * m4/inttypes.m4: Add AC_PREREQ(2.13).
68706         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
68707         (jm_AC_TYPE_INTMAX_T): New macro.
68708         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
68709
68710         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
68711
68712         * m4/longlong.m4: Renamed from ulonglong.m4.
68713         * m4/inttypes.m4: Renamed from inttypes_h.m4.
68714         * m4/uintmax_t.m4: Removed.
68715
68716 2001-08-13  Paul Eggert  <eggert@twinsun.com>
68717
68718         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
68719         Port to Solaris 8, where 'sed' requires a space after the 'r'
68720         command, and where sh dislikes "$/".  Clean up the spacing a bit.
68721         Redirect output to $tmp just once.
68722
68723 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
68724
68725         * lib/addext.c (<errno.h>): Include.
68726         (errno): Declare if not defined.
68727         (addext): Work correctly when pathconf returns -1 and leaves
68728         errno alone because there is no limit.  Also, work even if
68729         pathconf returns a value greater than SIZE_MAX.
68730
68731 2001-08-12  Jim Meyering  <meyering@lucent.com>
68732
68733         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
68734         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
68735         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
68736         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
68737         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
68738         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
68739         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
68740         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
68741         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
68742         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
68743         utime.m4, utimes.m4, xstrtoumax.m4:
68744         Quote the first argument in each use of AC_DEFUN.
68745
68746 2001-08-12  Jim Meyering  <meyering@lucent.com>
68747
68748         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
68749         Simply `return getcwd (NULL, 0);'.
68750         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
68751         Use 1300 as initial value for length, not PATH_MAX.
68752
68753         * lib/pathmax.h: Clean up cpp syntax.
68754
68755 2001-08-12  Jim Meyering  <meyering@lucent.com>
68756
68757         * lib/gettimeofday.c: New file.
68758         * lib/gtod.h: New file.
68759         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
68760
68761 2001-08-05  Jim Meyering  <meyering@lucent.com>
68762
68763         * m4/jm-macros.m4: Require autoconf-2.52.
68764
68765 2001-08-04  Jim Meyering  <meyering@lucent.com>
68766
68767         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
68768         stmt, to get in sync with glibc.
68769
68770 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68771
68772         The following changes are from gettext 0.10.39 as maintained by
68773         Bruno Haible.
68774
68775         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
68776         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
68777         with inverted sense.  All uses changed.
68778
68779         * lib/mbswidth.c: Don't include <limits.h>.
68780         Include <stdlib.h> and <string.h> unconditionally.
68781         (iswcntrl, mbsinit, ISCNTRL): New macros.
68782         (mbsnwidth): Use K&R style function declarations.
68783         Don't bother checking for MB_LEN_MAX == 1, since the compiler
68784         can optimize it when MB_CUR_MAX == 1.
68785         The width of control characters is zero, not 1.
68786
68787 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68788
68789         The following changes are from gettext 0.10.39 as maintained by
68790         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
68791
68792         * m4/codeset.m4: Upgrade to serial AM1.
68793         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
68794         all uses changed.  Quote first arg of AC_DEFUN.
68795         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
68796
68797         * m4/iconv.m4: Upgrade to serial AM2.
68798         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
68799         Add --with-libconv-prefix.
68800         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
68801         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
68802         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
68803         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
68804         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
68805
68806         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
68807         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
68808         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
68809         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
68810         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
68811         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
68812         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
68813         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
68814         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68815
68816         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
68817         string.h any more.
68818
68819         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
68820         not the default value.
68821
68822         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
68823         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
68824         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
68825         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
68826         Also check for iswcntrl, used for wcwidth fallback.
68827         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
68828         to Autoconf 2.13.
68829
68830 2001-08-03  Jim Meyering  <meyering@lucent.com>
68831
68832         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
68833         as it was in the original.  Reported by Paul Eggert.
68834
68835 2001-07-16  Jim Meyering  <meyering@lucent.com>
68836
68837         * m4/gettimeofday.m4: New file.
68838         Prompted by a report from Bernhard Baehr.
68839
68840 2001-07-15  Jim Meyering  <meyering@lucent.com>
68841
68842         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
68843         stuff. Now it's in ../Makefile.cfg.
68844
68845 2001-07-15  Jim Meyering  <meyering@lucent.com>
68846
68847         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
68848         (BUILT_SOURCES): Add unlocked-io.h.
68849         (io_functions): Define.
68850         (unlocked-io.h): New rule.
68851         (DISTCLEANFILES): Add unlocked-io.h.
68852         (all-local): Depend on unlocked-io.h, to ensure it is created.
68853
68854         * lib/unlocked-io.hin: New file
68855
68856         * lib/regex.c: Update from glibc.
68857
68858 2001-07-05  Jim Meyering  <meyering@lucent.com>
68859
68860         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
68861         recommendation.
68862         (libfetish_a_SOURCES): Put all .h files here instead.
68863         Remove a thus-exposed (better checks in automake) duplicate and
68864         two unnecessary .h files.
68865
68866 2001-07-04  Jim Meyering  <meyering@lucent.com>
68867
68868         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
68869         that generates jm-glibc-io.m4 so that it doesn't trigger any make
68870         distcheck failure.
68871
68872 2001-07-02  Jim Meyering  <meyering@lucent.com>
68873
68874         The following changes were prompted by suggestions from Bruno Haible.
68875
68876         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
68877         is now generated.
68878         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
68879         definition of EXTRA_DIST.
68880         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
68881         ensure that the generated file is created/updated whenever the list
68882         of $(unlocked_functions) is changed.
68883         (jm-glibc-io.m4): New rule.
68884         (unlocked-io.h): New rule -- currently unused.
68885
68886 2001-06-24  Jim Meyering  <meyering@lucent.com>
68887
68888         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
68889         unmatched right bracket, rather than kludging it with an extra,
68890         falsely-matching quote in a comment.  Patch by Akim Demaille.
68891
68892 2001-06-11  Jim Meyering  <meyering@lucent.com>
68893
68894         * lib/regex.c: Update from GNU libc.
68895
68896 2001-05-27  Jim Meyering  <meyering@lucent.com>
68897
68898         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
68899         Check for ut_type in struct utmp.
68900
68901 2001-05-27  Jim Meyering  <meyering@lucent.com>
68902
68903         * lib/readutmp.h (UT_TYPE): Define.
68904
68905 2001-05-24  Jim Meyering  <meyering@lucent.com>
68906
68907         * lib/argmatch.c: Include "quote.h".
68908         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
68909         quote function.  Reported by Göran Uddeborg.
68910
68911 2001-05-22  Jim Meyering  <meyering@lucent.com>
68912
68913         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
68914         now that we use the package-supplied version unconditionally.
68915         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
68916
68917 2001-05-21  Jim Meyering  <meyering@lucent.com>
68918
68919         * m4/regex.m4: Change a couple backticks to single quotes to avoid
68920         shell syntax errors.
68921
68922 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68923
68924         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
68925
68926 2001-05-20  Paul Eggert  <eggert@twinsun.com>
68927
68928         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
68929         Don't bother to check library strftime, since
68930         we'll be using our own my_strftime function anyway.
68931         Define my_strftime instead of strftime.
68932
68933 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
68934
68935         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
68936         which is not yet declared.
68937
68938 2001-05-15  Jim Meyering  <meyering@lucent.com>
68939
68940         * m4/regex.m4: Use proper quoting so brackets appear in the test
68941         program.
68942         Reported by, and with help from, Bruno Haible.
68943
68944 2001-05-13  Jim Meyering  <meyering@lucent.com>
68945
68946         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
68947         undefined.
68948
68949 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68950
68951         dirname code cleanup.  base_name now behaves more compatibly
68952         with POSIX basename when given file names that have trailing
68953         slashes, and similarly for dir_name.  Add new primitives
68954         base_len and dir_len.  Put the directory-name-related decls
68955         into dirname.h.
68956
68957         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
68958         * lib/backupfile.c (base_name): Likewise.
68959         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
68960         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
68961         * lib/makepath.c (strip_trailing_slashes): Likewise.
68962         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
68963         ISSLASH): Likewise.
68964         * lib/rename.c (strip_trailing_slashes): Likewise.
68965         * lib/same.c (base_name): Likewise.
68966         * lib/stripslash.c (ISSLASH): Likewise.
68967
68968         * lib/addext.c: Include <dirname.h> after size_t is defined.
68969         * lib/backupfile.c: Likewise.
68970
68971         * lib/addext.c (addext): Use base_len to trim redundant
68972         trailing slashes instead of doing it ourselves.
68973         But do not trim the last slash if it is not redundant.
68974
68975         * lib/backupfile.c (find_backup_file_name,
68976         max_backup_version): Use base_len instead of rolling it ourselves.
68977         Handle the case of "" and (on DOS) "C:" correctly.
68978
68979         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
68980         needed. Include <string.h>, <dirname.h>.
68981         (base_name): Allow file names ending in slashes, other than names
68982         that are all slashes.  In this case, return the basename followed
68983         by the slashes.  This is more general, and can be used in places
68984         where the original base_name purposely had an assertion failure.
68985         (base_len): New function.
68986
68987         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
68988         Do not include <assert.h>; no longer needed.
68989         Include xalloc.h.
68990         (memrchr): Remove decl.
68991         (dir_name_r): Remove.
68992         (dir_len): Renamed from dirlen.  All callers changed.
68993         Rewrite in terms of base_name, for simplicity and consistency.
68994         (dir_name): Never return NULL.  All callers changed.
68995         Do not include <stdlib.h> in test program; no longer needed.
68996         return 0; is fine for test program.
68997
68998         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
68999         New macros.
69000         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
69001
69002         * lib/path-concat.c (path_concat): Use base_len to compute
69003         base length, not strlen; this means we cannot rely on memcpy
69004         to null-terminate.
69005
69006         * lib/same.c (STREQ): Remove.
69007         (same_name): Handle the case where the basename ends in trailing '/'.
69008
69009         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
69010         a slash was stripped.  Do not strip the last slash after a
69011         file system prefix.
69012
69013 2001-05-11  Paul Eggert  <eggert@twinsun.com>
69014
69015         * lib/Makefile.am (libfetish_a_SOURCES):
69016         Add strftime.c, since we now compile it on all hosts.
69017
69018         * lib/strftime.c (my_strftime):
69019         Define to nstrftime if emacs, but only if my_strftime is not defined.
69020         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
69021         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
69022         Add one more extra argument: a nanoseconds value.
69023         All uses changed.
69024         (ns): New macro.
69025         (my_strftime function): Add %N format.
69026         (emacs_strftimeu): Renamed from emacs_strftime,
69027         with extra ut argument.
69028
69029 2001-05-09  Paul Eggert  <eggert@twinsun.com>
69030
69031         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
69032
69033 2001-04-21  Jim Meyering  <meyering@lucent.com>
69034
69035         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
69036         doesn't interfere.
69037
69038 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
69039
69040         * m4/ftruncate.m4: Check for chsize.
69041         Link with ftruncate.o unconditionally if ftruncate is missing.
69042         This was required when cross-compiling to i586-mingw32msvc.
69043
69044 2001-04-08  Jim Meyering  <meyering@lucent.com>
69045
69046         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
69047         recomputed; that's necessary when the offset spans a DST transition.
69048         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
69049
69050 2001-04-02  Jim Meyering  <meyering@lucent.com>
69051
69052         * lib/regex.h, regex.c: Update from GNU libc.
69053
69054 2001-03-24  Jim Meyering  <meyering@lucent.com>
69055
69056         * m4/jm-macros.m4: Require autoconf-2.49d.
69057
69058 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
69059
69060         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
69061
69062 2001-03-19  Paul Eggert  <eggert@twinsun.com>
69063
69064         * lib/version-etc.c (version_etc_copyright): Update to 2001.
69065
69066 2001-03-17  Jim Meyering  <meyering@lucent.com>
69067
69068         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
69069         now that the version in autoconf is equivalent.
69070         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
69071
69072         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
69073         Suggestion from Akim Demaille.
69074
69075         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
69076         (jm_PREREQ_TEMPNAME): New function.
69077
69078 2001-03-16  Paul Eggert  <eggert@twinsun.com>
69079
69080         * lib/tempname.c (uint64_t): Define to uintmax_t if
69081         not defined, and if UINT64_MAX is not defined.
69082         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
69083         Reported by John David Anglin.
69084
69085 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
69086
69087         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
69088         resolve alias if codeset is empty.
69089         * lib/config.charset (BeOS): Use wildcard syntax.
69090
69091 2001-03-13  Jim Meyering  <meyering@lucent.com>
69092
69093         * lib/path-concat.c (path_concat)
69094         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
69095         concatenating e.g., `C:' and `foo'.
69096         From Bruno Haible.
69097
69098 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
69099
69100         * lib/localcharset.c (locale_charset): Don't use
69101         setlocale(LC_CTYPE,NULL). Don't return NULL.
69102         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
69103
69104 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
69105
69106         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
69107         support for DOS/DJGPP.
69108
69109 2001-03-01  Paul Eggert  <eggert@twinsun.com>
69110
69111         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
69112         lacks mkstemp.  Compile our own tempname.c if we compile our own
69113         mkstemp.c, as mkstemp relies on tempname.
69114
69115 2001-03-01  Jim Meyering  <meyering@lucent.com>
69116
69117         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
69118         AH_VERBATIM really does output its argument verbatim.
69119
69120 2001-02-28  Paul Eggert  <eggert@twinsun.com>
69121
69122         * lib/Makefile.am (libfetish_a_SOURCES):
69123         Add dup-safer.c, fopen-safer.c.
69124         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
69125
69126         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
69127         * lib/unistd-safer.h: New files.
69128
69129 2001-02-25  Paul Eggert  <eggert@twinsun.com>
69130
69131         The mkstemp replacement is taken from glibc 2.2.2, with some
69132         portability fixes for use outside glibc, as follows:
69133
69134         * lib/tempname.c (struct_stat64): New macro.
69135         (direxists, __gen_tempname): Use it.
69136         This avoids a portability problem with Solaris 8.
69137
69138         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
69139         (<stddef.h>, <stdint.h>, <string.h>):
69140         Include only if STDC_HEADERS || _LIBC.
69141         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
69142         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
69143         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
69144         (__set_errno): Define this macro if <errno.h> doesn't.
69145         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
69146         Define these macros if <stdio.h> doesn't.
69147         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
69148         Define these macros if <sys/stat.h>
69149         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
69150         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
69151         __xstat64): Define if not _LIBC.
69152         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
69153         (__gen_tempname): Invoke gettimeofday only if
69154         HAVE_GETTIMEOFDAY || _LIBC;
69155         otherwise, fall back on plain "time".
69156         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
69157
69158         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
69159
69160         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
69161
69162 2001-02-18  Paul Eggert  <eggert@twinsun.com>
69163
69164         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
69165
69166 2001-02-17  Paul Eggert  <eggert@twinsun.com>
69167
69168         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
69169         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
69170         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
69171         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
69172
69173 2001-02-17  Paul Eggert  <eggert@twinsun.com>
69174
69175         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
69176         Remove workaround macros for hosts that have mbrtowc but not
69177         mbstate_t, as we now insist on proper declarations for both
69178         before using mbrtowc.
69179
69180 2001-02-17  Jim Meyering  <meyering@lucent.com>
69181
69182         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
69183         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
69184         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
69185         UnixWare 7.1.1.
69186
69187         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
69188         rather than AC_CACHE_VAL.
69189
69190 2001-02-17  Jim Meyering  <meyering@lucent.com>
69191
69192         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
69193         around included file name.
69194
69195         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
69196
69197         * lib/strftime.c: Update from GNU libc (the only changes were to
69198         comments).
69199
69200 2001-02-17  Jim Meyering  <meyering@lucent.com>
69201
69202         * lib/regex.c: Update from libc.
69203
69204 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
69205
69206         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
69207         clash.
69208
69209 2001-02-16  Paul Eggert  <eggert@twinsun.com>
69210
69211         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
69212         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
69213         Reported by Mark Hounschell via Paul Eggert.
69214
69215 2001-02-07  Jim Meyering  <meyering@lucent.com>
69216
69217         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
69218
69219 2001-02-05  Jim Meyering  <meyering@lucent.com>
69220
69221         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
69222         it includes the patch required for `large file' support with at least
69223         HP-UX's 10.20 /bin/cc.
69224
69225 2001-02-03  Jim Meyering  <meyering@lucent.com>
69226
69227         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
69228         AS_IF, now that it works once again (mysteriously).
69229         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
69230
69231 2001-01-30  Jim Meyering  <meyering@lucent.com>
69232
69233         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
69234         * m4/chown.m4: Rename conftestchown to conftest.chown.
69235         * m4/rename.m4: s/conftestdir/conftest.d1/ and
69236         s/conftestdir2/conftest.d2/.
69237         * m4/utimes.m4: s/conftestdata/conftest.data/
69238         Inspired by Pavel Roskin's change in autoconf.
69239
69240 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
69241
69242         * lib/config.charset: Update for FreeBSD 4.2.
69243
69244 2001-01-27  Jim Meyering  <meyering@lucent.com>
69245
69246         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
69247         a use of AS_IF.
69248         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
69249
69250 2001-01-26  Jim Meyering  <meyering@lucent.com>
69251
69252         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
69253         quotearg.c includes it.
69254
69255 2001-01-26  Jim Meyering  <meyering@lucent.com>
69256
69257         * lib/quotearg.c: Include stddef.h.
69258         * lib/quote.c: Include stddef.h.
69259         Reported by Axel Kittenberger.
69260
69261         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
69262         line in double quotes so that it evokes a better diagnostic.
69263         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
69264         Reported by Axel Kittenberger.
69265
69266 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
69267
69268         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
69269         as if it was a `charset'.
69270
69271 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
69272
69273         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
69274         has const.
69275
69276 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
69277
69278         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
69279         to avoid a warning.  Add back 'const' to inptr.
69280
69281 2001-01-20  Jim Meyering  <meyering@lucent.com>
69282
69283         Be sure that headers are checked before used in code compiled
69284         for the type checks.
69285         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
69286         In place of that, invoke jm_CHECK_ALL_TYPES.
69287         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
69288         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
69289         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
69290         The check for ssize_t was mistakenly run before the test for unistd.h.
69291
69292         The configure-time check for stdbool.h was missing.
69293         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
69294         (jm_PREREQ_HASH): New function.
69295
69296 2001-01-17  Jim Meyering  <meyering@lucent.com>
69297
69298         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
69299         for autoconf-2.49c.
69300         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
69301
69302 2001-01-16  Jim Meyering  <meyering@lucent.com>
69303
69304         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
69305         From Bruno Haible.
69306
69307 2001-01-14  Jim Meyering  <meyering@lucent.com>
69308
69309         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
69310         foo and bar.  Create conftestdir/ in the script, not in the C code.
69311         Remove directories in the script, not in the C code.
69312         Remove conftestdir{,2} before trying to create the directory.
69313         Make the entire configure script fail if the mkdir fails.
69314
69315 2001-01-14  Jim Meyering  <meyering@lucent.com>
69316
69317         * lib/rename.c: New file.  From Volker Borchert.
69318         Include stdlib.h, string.h or strings.h, and xalloc.h.
69319         Use strip_trailing_slashes rather than open-coding it.
69320
69321 2001-01-03  Paul Eggert  <eggert@twinsun.com>
69322
69323         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
69324
69325 2001-01-03  Jim Meyering  <meyering@lucent.com>
69326
69327         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
69328         of local `inptr' to avoid warning with some system declarations of
69329         iconv.
69330
69331 2001-01-02  Volker Borchert  <bt@teknon.de>
69332
69333         * m4/rename.m4: New file.
69334         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
69335
69336 2001-01-01  Jim Meyering  <meyering@lucent.com>
69337
69338         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
69339         even on systems with utmpx.h.  It's necessary for the declaration of
69340         utmp's ut_user member.  Reported by Andreas Jaeger.
69341
69342         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
69343         available. They are required for the declarations of getgrgid and
69344         getpwuid resp.
69345         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
69346         Reported by Andreas Jaeger.
69347
69348 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
69349
69350         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
69351         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
69352         so `make install' also works in VPATH builds.
69353
69354 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
69355
69356         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
69357         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
69358         can be used in subdirectories.
69359
69360 2000-12-29  Paul Eggert  <eggert@twinsun.com>
69361
69362         * lib/modechange.c: Do not assume that mode_t uses the
69363         traditional octal encoding.  E.g. "chmod 1 FOO" should set
69364         the other-execute bit of FOO even if S_IXOTH != 1.
69365
69366         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
69367         WOTH, XOTH, ALLM): New macros.
69368         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
69369          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
69370         Use them.
69371         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
69372         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
69373         (mode_compile):
69374         No need to use uintmax_t; unsigned long is long enough.
69375         Don't bother to get suffix since we don't use it.
69376
69377 2000-12-26  Jim Meyering  <meyering@lucent.com>
69378
69379         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
69380         better with autoheader.
69381
69382 2000-12-24  Jim Meyering  <meyering@lucent.com>
69383
69384         * lib/hash.c (is_prime): Return explicit boolean values.
69385         (hash_get_first): Return NULL to appease Irix5.6's 89.
69386         Reported by Nelson Beebe.
69387
69388 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
69389
69390         * lib/localcharset.c (locale_charset): Add support for Win32.
69391
69392 2000-12-18  Paul Eggert  <eggert@twinsun.com>
69393
69394         * lib/physmem.h, lib/physmem.c: New files.
69395
69396         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
69397         (noinst_HEADERS): Add physmem.h.
69398
69399         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
69400         't' for compatibility with Solaris 8 sort.
69401
69402 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
69403
69404         * lib/config.charset: Add support for BeOS.
69405
69406 2000-12-17  Jim Meyering  <meyering@lucent.com>
69407
69408         * m4/dos.m4 (jm_AC_DOS): New file and macro.
69409         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
69410
69411 2000-12-16  Jim Meyering  <meyering@lucent.com>
69412
69413         This bug had a serious impact on chown: `chown N:M FILE' (for integer
69414         N and M) would have treated it like `chown N:N FILE'.
69415
69416         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
69417
69418 2000-12-16  Jim Meyering  <meyering@lucent.com>
69419
69420         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
69421         SHELLS_FILE to a file name that's useful on djgpp systems.
69422         Include stdlib.h.
69423         (ADDITIONAL_DEFAULT_SHELLS): Define.
69424         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
69425         Based mostly on a patch from Prashant TR.
69426
69427 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
69428
69429         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
69430         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
69431         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
69432
69433 2000-12-08  Andreas Schwab  <schwab@suse.de>
69434
69435         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
69436         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
69437
69438 2000-12-07  Jim Meyering  <meyering@lucent.com>
69439
69440         * lib/stripslash.c (ISSLASH): Define.
69441         (strip_trailing_slashes): Use ISSLASH rather than comparing against
69442         `/'.
69443         From Prashant TR.
69444
69445         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
69446         (dir_name_r): Declare this function as static.
69447         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
69448         manifest itself on a name containing a mix of slashes and
69449         backslashes.
69450         Make this function work with names starting with a DOS-style
69451         drive letter and colon prefix.
69452         (dir_name): Append `.' if necessary.
69453         Based mostly on patches from Prashant TR and Eli Zaretskii.
69454
69455         * lib/dirname.h (dir_name_r): Remove prototype.
69456
69457 2000-12-06  Paul Eggert  <eggert@twinsun.com>
69458
69459         * m4/off_t-format.m4: Remove this file.
69460         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
69461
69462 2000-12-06  Jim Meyering  <meyering@lucent.com>
69463
69464         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
69465         replacement strtoull, we may well need the replacement strtoul, too.
69466         Check for declarations of strtoul and strtoull.
69467         Check for strtol.  Mainly as a cue to cause automake to include
69468         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
69469         Check for limits.h -- strtol.c needs it.
69470
69471 2000-12-05  Jim Meyering  <meyering@lucent.com>
69472
69473         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
69474
69475 2000-12-04  Jim Meyering  <meyering@lucent.com>
69476
69477         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
69478         Also include memory.h, stdlib.h, unistd.h if appropriate.
69479         Reported by Andreas Jaeger (conflicting declaration of malloc).
69480
69481 2000-12-02  Jim Meyering  <meyering@lucent.com>
69482
69483         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
69484         * m4/jm-macros.m4 (jm_MACROS): require it.
69485
69486 2000-12-02  Jim Meyering  <meyering@lucent.com>
69487
69488         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
69489
69490 2000-12-01  Paul Eggert  <eggert@twinsun.com>
69491
69492         * lib/memrchr.c: Include <config.h> before any system include file.
69493
69494 2000-11-30  Jim Meyering  <meyering@lucent.com>
69495
69496         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
69497
69498 2000-11-30  Jim Meyering  <meyering@lucent.com>
69499
69500         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
69501
69502 2000-11-29  Paul Eggert  <eggert@twinsun.com>
69503
69504         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
69505
69506 2000-11-26  Jim Meyering  <meyering@lucent.com>
69507
69508         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
69509
69510 2000-11-22  Paul Eggert  <eggert@twinsun.com>
69511
69512         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
69513         size of (size_t) -1; it's not portable.
69514
69515 2000-11-17  Jim Meyering  <meyering@lucent.com>
69516
69517         * lib/strstr.c: Update from GNU libc.
69518
69519 2000-11-17  Akim Demaille  <akim@epita.fr>
69520
69521         * lib/obstack.h: Formatting changes.
69522         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
69523         prevent type checking.
69524         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
69525         cast the value to (void *): assigning a `foo *' to a `void *'
69526         variable is valid.
69527         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
69528
69529 2000-11-16  Jim Meyering  <meyering@lucent.com>
69530
69531         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
69532
69533 2000-11-11  Jim Meyering  <meyering@lucent.com>
69534
69535         * lib/error.c: Add a couple #includes, merging from GNU libc version.
69536
69537 2000-11-10  Jim Meyering  <meyering@lucent.com>
69538
69539         * lib/obstack.h: Update from GNU libc.
69540         * lib/obstack.c: Likewise.
69541
69542 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
69543
69544         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
69545
69546 2000-11-06  Paul Eggert  <eggert@twinsun.com>
69547
69548         * lib/getusershell.c (setusershell): Use rewind rather than
69549         fseek/fseeko, to avoid configuration hassles with fseeko.
69550         Don't bother opening SHELLS_FILE if shellstream is NULL;
69551         it's not necessary.
69552
69553 2000-11-05  Jim Meyering  <meyering@lucent.com>
69554
69555         * lib/makepath.h (make_dir): Declare.
69556         * lib/makepath.c (make_dir): Remove `static' attribute.
69557         Tweak a comment.
69558
69559 2000-11-04  Jim Meyering  <meyering@lucent.com>
69560
69561         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
69562
69563 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
69564
69565         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
69566         last one in a bucket, advance to the next bucket.
69567
69568 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
69569
69570         * lib/fnmatch.c: Do not comment out all the code if we are using
69571         the GNU C library, because in some cases we are replacing buggy
69572         code in the GNU C library itself.
69573
69574 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
69575
69576         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
69577         (regex_compile): Catch bogus \(\1\).
69578
69579 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69580
69581         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
69582         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
69583         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
69584
69585 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69586
69587         * lib/error.h, getline.h, modechange.h:
69588         Remove "2000" from Copyright line, as the file hasn't been
69589         changed this year other than in the copyright notice.
69590
69591         * lib/xalloc.h: Add "2000" to Copyright line, as this file
69592         was changed this year.
69593
69594 2000-10-29  Jim Meyering  <meyering@lucent.com>
69595
69596         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
69597         renaming.
69598         * m4/ls-mntd-fs.m4: Likewise
69599
69600 2000-10-29  Jim Meyering  <meyering@lucent.com>
69601
69602         * lib/xstat.in: Fix grammar in comment.
69603
69604 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
69605
69606         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
69607         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
69608         doesn't define __restrict_arr.
69609
69610 2000-10-28  Jim Meyering  <meyering@lucent.com>
69611
69612         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
69613         (jm_PREREQ_MEMCHR): New function.
69614
69615 2000-10-28  Jim Meyering  <meyering@lucent.com>
69616
69617         * lib/memchr.c: Update from libc.
69618         Adjust for portability:
69619         [HAVE_STDLIB_H]: Include stdlib.h.
69620         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
69621         Undef __memchr, too.
69622         [!weak_alias]: Define __memchr to memchr.
69623
69624         * lib/regex.c: Update from libc.
69625         * lib/regex.h: Likewise.
69626         * lib/getopt1.c: Likewise.
69627         * lib/memcmp.c: Likewise.
69628
69629         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
69630         Avoid using fseek, when possible -- it's broken by design.
69631         Patch by Ulrich Drepper.
69632
69633 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
69634
69635         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
69636         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
69637         Giving in to popular pressure to shut up the compiler with casts.
69638
69639 2000-10-26  Jim Meyering  <meyering@lucent.com>
69640
69641         * lib/strftime.c: Update from libc.
69642
69643 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
69644
69645         * regex.c: More `unsigned char' -> `re_char' changes.
69646         Also change several `int' into `re_wchar_t'.
69647         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
69648         (PUSH_FAILURE_POINTER): Don't cast any more.
69649         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
69650         We want GCC to complain, since this piece of code makes
69651         re_match non-reentrant, which *should* be fixed.
69652         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
69653         (EXTEND_BUFFER): Use RETALLOC.
69654         (SET_LIST_BIT): Don't cast.
69655         (re_wchar_t): New type.
69656         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
69657         that those two functions will always properly return.
69658         (IMMEDIATE_QUIT_CHECK): Cast to void.
69659         (analyse_first): Use recursion rather than an explicit stack.
69660         (re_compile_fastmap): Can't fail anymore.
69661         (re_search_2): Don't check re_compile_fastmap for failure.
69662         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
69663         Now also sets the new value (passed in a new argument).
69664         (re_match_2_internal): Use it.
69665         Also, use a new var `reg' of type size_t when looping through regs
69666         rather than reuse the inappropriate `mcnt'.
69667
69668 2000-10-25  Jim Meyering  <meyering@lucent.com>
69669
69670         * lib/obstack.c: Update from libc.
69671
69672 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
69673
69674         * regex.c (regex_compile): Change the way of handling a range from
69675         a char less than 256 to a char not less than 256.
69676
69677 2000-10-24  Andrew Innes  <andrewi@gnu.org>
69678
69679         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
69680         NT-Emacs only.
69681         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
69682         so that re_search functions only quit when callers expect them to.
69683
69684 2000-10-23  Jim Meyering  <meyering@lucent.com>
69685
69686         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
69687         wrong.  That set_locale call must not have any side effects.
69688         From Paul Eggert.
69689
69690 2000-10-22  Jim Meyering  <meyering@lucent.com>
69691
69692         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
69693         [CYCLIC]: Remove now-unused definition.
69694
69695         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
69696         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
69697         Suggestion from Ulrich Drepper.
69698
69699 2000-10-21  Jim Meyering  <meyering@lucent.com>
69700
69701         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
69702         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
69703         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
69704
69705 2000-10-21  Jim Meyering  <meyering@lucent.com>
69706
69707         * lib/dirname.c (memrchr): Declare if necessary.
69708         (dir_name): Remove the restriction that there be no
69709         trailing slashes.  Now, this code skips past them, effectively
69710         ignoring them.
69711         [TEST_DIRNAME] (main): New unit tests.
69712
69713         * lib/memrchr.c: New file from GNU libc.
69714         Undef __memrchr, too.
69715         [!weak_alias]: Define __memrchr to memrchr.
69716         Guard weak_alias use with `#ifdef weak_alias'.
69717
69718 2000-10-21  Jim Meyering  <meyering@lucent.com>
69719
69720         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
69721         (dir_name): Use dir_name_r.
69722         * lib/dirname.h (dir_name_r): Declare it.
69723
69724 2000-10-17  Jim Meyering  <meyering@lucent.com>
69725
69726         * lib/quote.h (PARAMS): Define and use.
69727         Reported by Akim Demaille.
69728
69729         * lib/getopt.c: Update from libc.
69730
69731 2000-10-16  Jim Meyering  <meyering@lucent.com>
69732
69733         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
69734         setlocale.
69735         From Jan Fedak.
69736
69737 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
69738
69739         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
69740
69741 2000-09-25  Jim Meyering  <meyering@lucent.com>
69742
69743         * lib/md5.h (rol): Define (from GnuPG).
69744
69745         * lib/sha.c: Give credit (GnuPG) where due.
69746         (M): Use rol rather than open-coding it.
69747         Add a FIXME comment.
69748
69749 2000-09-21  Jim Meyering  <meyering@lucent.com>
69750
69751         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
69752         Reported by Michael Stone.
69753
69754 2000-09-20  Jim Meyering  <meyering@lucent.com>
69755
69756         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
69757         (noinst_HEADERS): Add sha.h.
69758         Based on code from Scott G. Miller and from GnuPG.
69759
69760 2000-09-18  Jim Meyering  <meyering@lucent.com>
69761
69762         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
69763         LIBS. Otherwise, everyone ends up linking with -lelf for some
69764         configurations.
69765         Reported by Mike Stone.
69766
69767 2000-09-15  Jim Meyering  <meyering@lucent.com>
69768
69769         * lib/regex.c: Update from libc.
69770
69771 2000-09-10  Jim Meyering  <meyering@lucent.com>
69772
69773         * lib/getopt.c (_getopt_internal): Update from glibc.
69774
69775 2000-09-09  Jim Meyering  <meyering@lucent.com>
69776
69777         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
69778         think it should be used as a general replacement for isascii.
69779         * lib/fnmatch.c: Likewise.
69780         * lib/mbswidth.c: Likewise
69781         * lib/regex.c: Likewise.
69782
69783         Don't use atoi.
69784         * lib/userspec.c: Include sys/param.h and limits.h.
69785         Include xstrtol.h.
69786         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69787         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
69788         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
69789         UID, GID.  Check range.
69790
69791 2000-09-06  Jim Meyering  <meyering@lucent.com>
69792
69793         * lib/getopt.c (_getopt_internal): Update from glibc.
69794
69795 2000-08-30  Jim Meyering  <meyering@lucent.com>
69796
69797         * lib/strftime.c: Merge in changes from GNU libc.
69798
69799 2000-08-26  Jim Meyering  <meyering@lucent.com>
69800
69801         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
69802         * m4/fpending.m4: New file.
69803
69804 2000-08-26  Jim Meyering  <meyering@lucent.com>
69805
69806         * lib/closeout.c: Include "__fpending.h".
69807         (close_stdout_status): Return right away if there's nothing to flush.
69808
69809         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
69810         * lib/__fpending.c: New file.
69811         * lib/__fpending.h: New file.
69812
69813 2000-08-20  Jim Meyering  <meyering@lucent.com>
69814
69815         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
69816         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
69817         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
69818
69819 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
69820
69821         Improve fileutils installation on systems where running
69822         programs (like install) can't be unlinked.
69823         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
69824         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
69825
69826 2000-08-07  Paul Eggert  <eggert@twinsun.com>
69827
69828         Standardize on "memory exhausted" instead of "Memory exhausted"
69829         or "virtual memory exhausted".
69830         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
69831         "virtual memory exhausted".
69832         * lib/same.c (same_name): Invoke xalloc_die instead of printing
69833         our own message.
69834         * lib/userspec.c (parse_user_spec): Likewise.
69835         * lib/bumpalloc.h: comment fix
69836         * lib/same.c, userspec.c: Include xalloc.h.
69837
69838         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
69839         not char *const and pointing to a constant array.
69840         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
69841         (xrealloc): Comment fix.
69842
69843         * lib/userspec.c (parse_user_spec):
69844         Don't translate a message until just before returning,
69845         to avoid unnecessary translation.
69846
69847 2000-08-07  Jim Meyering  <meyering@lucent.com>
69848
69849         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
69850         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
69851         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
69852         getgroups.c, gethostname.c, getopt.h, group-member.c,
69853         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
69854         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
69855         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
69856         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
69857         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
69858         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
69859         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
69860         yesno.c: Back out Copyright date changes for each file with no change
69861         this year.  This eases coordination with other programs using the same
69862         source code modules.  From Paul Eggert.
69863
69864 2000-08-06  Paul Eggert  <eggert@twinsun.com>
69865
69866         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
69867         not char, for compatibility with glibc 2.1.3 strftime.c.
69868
69869 2000-08-03  Greg McGary  <greg@mcgary.org>
69870
69871         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
69872         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
69873         (EXTEND_BUFFER): Use them.
69874
69875 2000-08-01  Jim Meyering  <meyering@lucent.com>
69876
69877         * lib/dirname.c (ISSLASH): Define.
69878         (BACKSLASH_IS_PATH_SEPARATOR): Define.
69879         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
69880         both `\' and `/' may be use as path separators.
69881         Based on a patch from Prashant TR.
69882
69883 2000-07-31  Paul Eggert  <eggert@twinsun.com>
69884
69885         * lib/quotearg.c (quotearg_n_options): Don't make the initial
69886         slot vector a constant, since it might get modified.
69887
69888 2000-07-31  Jim Meyering  <meyering@lucent.com>
69889
69890         * lib/xmalloc.c: Use `virtual memory exhausted', not
69891         `Memory exhausted'.
69892         * lib/obstack.c (print_and_abort): Likewise.
69893
69894 2000-07-30  Paul Eggert  <eggert@twinsun.com>
69895
69896         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
69897         buffer, so that the caller can always quote one small
69898         component of a "memory exhausted" message in slot 0.
69899         From a suggestion by Jim Meyering.
69900
69901 2000-07-30  Jim Meyering  <meyering@lucent.com>
69902
69903         * lib/makepath.c (make_path): Quote the other instance, too.
69904
69905         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
69906         (STATIC_BUF_SIZE): Define.
69907         (quotearg_n_options): Use only statically allocated storage when
69908         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
69909         than STATIC_BUF_SIZE.
69910
69911 2000-07-29  Jim Meyering  <meyering@lucent.com>
69912
69913         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
69914         * lib/dirname.c (dir_name): Likewise.
69915
69916         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
69917         `/'.
69918
69919         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
69920         (dir_name): Assert that there are no trailing slashes.
69921
69922 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
69923
69924         * lib/mbswidth.h (mbswidth): Add a flags argument.
69925         (mbswidth): New declaration.
69926         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
69927         * lib/mbswidth.c (mbswidth): Add a flags argument.
69928         (mbsnwidth): New function.
69929
69930 2000-07-24  Jim Meyering  <meyering@lucent.com>
69931
69932         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
69933
69934 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69935
69936         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
69937
69938 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69939
69940         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
69941         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
69942         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
69943         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
69944         invoke multibyte primitives.
69945
69946 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69947
69948         * lib/quotearg.c:
69949         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
69950         so that mbstate_t is always defined.
69951
69952         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
69953         be 1 in at least one GCC installation, and this configuration
69954         error is likely to be common.  Ignoring MB_LEN_MAX hurts
69955         performance on hosts that have mbrtowc but have only unibyte
69956         locales, but I assume these hosts are rare.
69957
69958 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69959
69960         * lib/mbswidth.c (_XOPEN_SOURCE):
69961         Don't define; this causes problems on Solaris 7.
69962         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
69963
69964 2000-07-23  Jim Meyering  <meyering@lucent.com>
69965
69966         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
69967         too: getgrgid, getpwuid, getuid.
69968
69969 2000-07-23  Jim Meyering  <meyering@lucent.com>
69970
69971         * lib/basename.c (base_name): Add an assertion.
69972
69973 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
69974
69975         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
69976         shadow its mbsinit function.
69977
69978 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69979
69980         * lib/mbswidth.h: New file.
69981         * lib/mbswidth.c: New file.
69982         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
69983         (noinst_HEADERS): Add mbswidth.h.
69984
69985 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69986
69987         * lib/config.charset: Add support for FreeBSD. Improve support for
69988         HP-UX and IRIX 6.
69989
69990 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
69991
69992         * m4/mbswidth.m4: New file.
69993         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
69994
69995 2000-07-15  Jim Meyering  <meyering@lucent.com>
69996
69997         * lib/makepath.c: Include quote.h.
69998         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
69999         corresponding argument in a `quote (...)' call.
70000         Give better diagnostics.
70001
70002         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
70003         (noinst_HEADERS): Add quote.h.
70004
70005         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
70006         from tar's src/misc.c.
70007         * lib/quote.h: New file.  Prototypes for same.
70008
70009 2000-07-14  Paul Eggert  <eggert@twinsun.com>
70010
70011         From a suggestion by Bruno Haible.
70012         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
70013         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
70014         to decide whether to define the BeOS workaround macro;
70015         this adjusts to the change to AC_MBSTATE_T.
70016
70017 2000-07-14  Jim Meyering  <meyering@lucent.com>
70018
70019         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
70020         jm_AC_TYPE_UINTMAX_T.
70021
70022 2000-07-13  Paul Eggert  <eggert@twinsun.com>
70023
70024         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
70025
70026         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
70027         quotearg_buffer_restyled): Add support for
70028         clocale_quoting_style.  Undo previous change to
70029         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
70030         and "{RIGHT QUOTATION MARK}" msgids.
70031
70032 2000-07-10  Paul Eggert  <eggert@twinsun.com>
70033
70034         From a suggestion by Bruno Haible.
70035         * m4/mbstate_t.m4 (AC_MBSTATE_T):
70036         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
70037         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
70038         and mbstate_t, to a single-part test that simply defines mbstate_t.
70039         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
70040         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
70041
70042 2000-07-10  Jim Meyering  <meyering@lucent.com>
70043
70044         * m4/strerror_r.m4: Mirror the correction made in autoconf.
70045
70046         * m4/gnu-source.m4: Output to confdefs.h directly.
70047         Suggestion from Akim Demaille.
70048
70049 2000-07-09  Paul Eggert  <eggert@twinsun.com>
70050
70051         The old behavior of quoting `like this' doesn't look good with
70052         newer, ISO-style fonts.  See:
70053         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
70054
70055         Instead, quote "like this" by default.  Let the translator
70056         tailor the locale-specific quoting behavior by providing
70057         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
70058
70059         * lib/quotearg.c (N_): New macro.
70060         (gettext_default): New function.
70061         (quotearg_buffer_restyled): Use
70062         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
70063         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
70064
70065 2000-07-09  Jim Meyering  <meyering@lucent.com>
70066
70067         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
70068         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
70069
70070         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
70071         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
70072
70073 2000-07-09  Jim Meyering  <meyering@lucent.com>
70074
70075         * lib/Most files: Update copyright dates to include 2000.
70076
70077 2000-07-08  Jim Meyering  <meyering@lucent.com>
70078
70079         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
70080         if not defined.
70081         (xgethostname): Remove now-unnecessary #ifdef.
70082         Move declaration of `err' into loop where it's used.
70083
70084 2000-07-05  Paul Eggert  <eggert@twinsun.com>
70085         and Bruno Haible  <haible@clisp.cons.org>
70086
70087         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
70088         only if the test for an object-type mbstate_t fails.  This
70089         prevents us from mistakenly reporting that mbstate_t is a
70090         system object type after we "#define mbstate_t int" to work
70091         around its lack.
70092
70093 2000-07-05  Paul Eggert  <eggert@twinsun.com>
70094         and Bruno Haible  <haible@clisp.cons.org>
70095
70096         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
70097
70098 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70099
70100         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
70101         to strerror_r.
70102         Include <ctype.h> for use of isalpha.
70103
70104 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70105
70106         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
70107         by allocating a larger buffer. Test the gethostname return value for
70108         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
70109         returns an error and ENAMETOOLONG isn't defined.
70110
70111 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70112
70113         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
70114         dimension.
70115
70116 2000-07-04  Jim Meyering  <meyering@lucent.com>
70117
70118         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
70119         of the deprecated AC_CHECKING.
70120
70121 2000-07-04  Jim Meyering  <meyering@lucent.com>
70122
70123         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
70124         Reported by Bruno Haible.
70125
70126 2000-07-04  Jim Meyering  <meyering@lucent.com>
70127
70128         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
70129         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
70130         lacks mbrtowc.
70131
70132 2000-07-03  Paul Eggert  <eggert@twinsun.com>
70133
70134         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
70135         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
70136
70137 2000-07-03  Paul Eggert  <eggert@twinsun.com>
70138         and Bruno Haible  <haible@clisp.cons.org>
70139
70140         * lib/quotearg.c (mbrtowc):
70141         Assign to *pwc, and return 1 only if result is nonzero.
70142         (iswprint): Use ISPRINT when substituting our own mbrtowc.
70143
70144 2000-07-03  Jim Meyering  <meyering@lucent.com>
70145
70146         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
70147
70148 2000-07-03  Jim Meyering  <meyering@lucent.com>
70149
70150         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
70151         This is necessary to get a definition of e.g., UTMP_FILE on
70152         HP-UX 10.20.
70153         From Bob Proulx.
70154
70155 2000-07-02  Jim Meyering  <meyering@lucent.com>
70156
70157         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
70158
70159         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
70160         AC_LIBOBJ(function_name).
70161         * m4/chown.m4: Likewise.
70162         * m4/fnmatch.m4: Likewise.
70163         * m4/ftruncate.m4: Likewise.
70164         * m4/getgroups.m4: Likewise.
70165         * m4/getline.m4: Likewise.
70166         * m4/group-member.m4: Likewise.
70167         * m4/jm-macros.m4: Likewise.
70168         * m4/lstat.m4: Likewise.
70169         * m4/malloc.m4: Likewise.
70170         * m4/memcmp.m4: Likewise.
70171         * m4/nanosleep.m4: Likewise.
70172         * m4/putenv.m4: Likewise.
70173         * m4/realloc.m4: Likewise.
70174         * m4/regex.m4: Likewise.
70175         * m4/stat.m4: Likewise.
70176         * m4/strftime.m4: Likewise.
70177
70178 2000-07-02  Jim Meyering  <meyering@lucent.com>
70179
70180         * lib/quotearg.c (mbstate_t): Don't define here.
70181
70182 2000-07-02  Jim Meyering  <meyering@lucent.com>
70183
70184         * lib/nanosleep.c (SIGCONT): Define if not already defined.
70185
70186 2000-07-01  Jim Meyering  <meyering@lucent.com>
70187
70188         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
70189
70190 2000-07-01  Jim Meyering  <meyering@lucent.com>
70191
70192         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
70193         problem.
70194
70195 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
70196
70197         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
70198         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
70199
70200 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
70201
70202         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
70203         per change in ../m4/ls-mntd-fs.m4.
70204         (read_filesystem_list): Ignore symbolic links.
70205
70206 2000-06-29  Jim Meyering  <meyering@lucent.com>
70207
70208         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
70209         for declaration of strcmp.
70210
70211         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
70212
70213         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
70214         Avoid warning by casting result to `char *' to remove `const'.
70215
70216 2000-06-28  Jim Meyering  <meyering@lucent.com>
70217
70218         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
70219         included by quotearg.c, for which we perform this test.  From
70220         Bruno Haible.
70221
70222 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
70223
70224         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
70225         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
70226         <utmpx.h> exists, put readutmp.o into LIBOBJS.
70227
70228 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
70229
70230         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
70231
70232 2000-06-26  Paul Eggert  <eggert@twinsun.com>
70233
70234         savedir now sets errno on failure and invokes xmalloc to get memory.
70235         Fix a couple of other minor bugs while we're at it.
70236
70237         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
70238         (NAMLEN): Remove macro.
70239         (malloc, realloc): Remove decls.
70240         (stpcpy): Likewise.
70241         ("xalloc.h"): Include.
70242         (NAME_SIZE_DEFAULT): New macro.
70243         (savedir): Use xmalloc / xrealloc to allocate memory.
70244         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
70245         Skip "" directory entries.
70246         Use strlen to calculate directory entry length, since the old method
70247         is rarely used these days and isn't worth supporting.
70248         Don't use a pointer after freeing it.
70249         Check for integer overflow when calculating allocation size.
70250         Use memcpy to copy entries, instead of stpcpy.
70251         Set errno properly when returning NULL.
70252         Check for readdir error.
70253
70254 2000-06-26  Jim Meyering  <meyering@lucent.com>
70255
70256         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
70257
70258 2000-06-25  Jim Meyering  <meyering@lucent.com>
70259
70260         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
70261         Linux header bug when _XOPEN_SOURCE is defined to 500.
70262
70263 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
70264
70265         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
70266         deficiency.
70267
70268 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
70269
70270         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
70271         Include xalloc.h.
70272         Don't include <stdlib.h>.  Don't declare malloc, realloc.
70273
70274 2000-06-24  Jim Meyering  <meyering@lucent.com>
70275
70276         * m4/strerror_r.m4: Revive this file -- to try out an experimental
70277         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
70278         for which strerror does return char*, but which lacks a conveniently
70279         accessible declaration of the function.  If the compile-test says
70280         strerror_r doesn't work, then resort to a `run'-test that works on
70281         BeOS and segfaults on DEC Unix.
70282
70283 2000-06-24  Jim Meyering  <meyering@lucent.com>
70284
70285         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
70286
70287 2000-06-23  Paul Eggert  <eggert@twinsun.com>
70288
70289         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
70290         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
70291
70292 2000-06-23  Paul Eggert  <eggert@twinsun.com>
70293
70294         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
70295         (mbrtowc, mbstate_t): Define substitutes if
70296         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
70297         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
70298         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
70299
70300 2000-06-23  Jim Meyering  <meyering@lucent.com>
70301
70302         * m4/afs.m4: Add missing AC_MSG_RESULT.
70303         Reported by Bruno Haible.
70304
70305         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
70306         Suggestion from Bruno Haible.
70307
70308 2000-06-23  Jim Meyering  <meyering@lucent.com>
70309
70310         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
70311
70312 2000-06-21  Jim Meyering  <meyering@lucent.com>
70313
70314         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
70315
70316 2000-06-21  Jim Meyering  <meyering@lucent.com>
70317
70318         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
70319         (noinst_HEADERS): Add getstr.h.
70320
70321         * lib/getline.c (getstr): Move into a separate file.
70322         * lib/getstr.c (getstr): New file, extracted from getline.c, with
70323         the following changes: new parameter, delim2; both delim[12]
70324         parameters have type `int', not `char'.  The latter would lose
70325         with 8-bit delimiters.
70326         * lib/getstr.h: New file.
70327
70328 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70329
70330         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
70331         than 1024, return a memory chunk of least possible size, instead
70332         of size PATH_MAX + 2. In the loop, increment the size proportionally.
70333         Use free/xmalloc instead of xrealloc to avoid copying for very long
70334         paths.
70335
70336 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70337
70338         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
70339         the empty string.
70340
70341 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70342
70343         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
70344         address, not strdup.  Include <stdlib.h> and don't declare free().
70345
70346 2000-06-19  Jim Meyering  <meyering@lucent.com>
70347
70348         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
70349
70350 2000-06-18  Jim Meyering  <meyering@lucent.com>
70351
70352         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
70353
70354         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
70355         `checking whether...' message to be consistent with that of the
70356         lstat test.
70357
70358 2000-06-18  Jim Meyering  <meyering@lucent.com>
70359
70360         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
70361         Besides, these days every porting target provides a mkdir function.
70362
70363         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
70364         needed. (this snippet comes from src/system.h).
70365
70366 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
70367
70368         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
70369
70370 2000-06-15  Paul Eggert  <eggert@twinsun.com>
70371
70372         * lib/human.c (adjust_value): New function.
70373         (human_readable_inexact): Apply rounding style even when
70374         printing approximate values.
70375
70376 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70377
70378         * lib/human.c (human_readable_inexact): Allow an input block
70379         size that is not a multiple of the output block size, and vice versa.
70380         Reported by Piergiorgio Sartor.
70381
70382 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70383
70384         * lib/getdate.y (get_date): Apply relative times after time
70385         zone indicator, not before.  Reported by Todd A. Jacobs.
70386
70387 2000-06-13  Jim Meyering  <meyering@lucent.com>
70388
70389         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
70390
70391         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
70392
70393 2000-06-12  Paul Eggert  <eggert@twinsun.com>
70394
70395         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
70396
70397 2000-06-12  Jim Meyering  <meyering@lucent.com>
70398
70399         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
70400         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
70401         optional argument.
70402         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
70403         the optional argument, `lib'.
70404
70405 2000-06-08  Jim Meyering  <meyering@lucent.com>
70406
70407         * m4/largefile.m4: Remove file (now that it's part of autoconf).
70408
70409 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70410
70411         Rewrite largefile configuration so that we don't need to run
70412         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
70413         AC_CANONICAL_HOST in configure.in -- jmm]
70414
70415         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
70416         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
70417         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
70418         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
70419         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
70420         All uses changed.
70421         Instead of inspecting the output of getconf, try to compile the
70422         test program without and with the macro definition.
70423         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
70424         for getconf.  Instead, check for the needed flags by compiling
70425         test programs.
70426
70427 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70428
70429         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
70430
70431 2000-06-04  Jim Meyering  <meyering@lucent.com>
70432
70433         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
70434         SunOS 4.1.4 for which gid_t is an unsigned type.
70435
70436 2000-06-03  Jim Meyering  <meyering@lucent.com>
70437
70438         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
70439         now that autoconf requires that.
70440
70441         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
70442         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
70443         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
70444
70445 2000-06-03  Jim Meyering  <meyering@lucent.com>
70446
70447         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
70448
70449 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70450
70451         * m4/glibc21.m4: New file.
70452         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
70453
70454 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70455
70456         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
70457         newer, don't install charset.alias.
70458         * lib/config.charset: Change the Linux/glibc rules so they become empty
70459         on glibc-2.1 or newer.
70460
70461 2000-06-02  Jim Meyering  <meyering@lucent.com>
70462
70463         * lib/mountlist.c: Back out last change.  Instead, do this...
70464         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
70465         me_dummy member using the same `ignore'-testing code.
70466         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
70467         fs_type strings.
70468         From Mark D. Roth.
70469
70470 2000-05-29  Jim Meyering  <meyering@lucent.com>
70471
70472         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
70473         mounts with the `ignore' attribute.  Based on a patch from
70474         Mark D. Roth.
70475
70476 2000-05-28  Jim Meyering  <meyering@lucent.com>
70477
70478         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
70479         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70480         * m4/stat.m4: Likewise.
70481         * m4/lstat.m4: Likewise.
70482         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
70483
70484         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
70485         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
70486
70487 2000-05-26  Jim Meyering  <meyering@lucent.com>
70488
70489         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
70490
70491 2000-05-24  Jim Meyering  <meyering@lucent.com>
70492
70493         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
70494         autoconf requires that.
70495         * m4/lib-check.m4: Likewise.
70496         * m4/jm-macros.m4: Likewise.
70497         * m4/strftime.m4: Likewise.
70498
70499         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
70500         AC_CHECK_DECLS, now that autoconf requires that.
70501
70502 2000-05-22  Jim Meyering  <meyering@lucent.com>
70503
70504         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70505         * m4/lstat.m4: Likewise.
70506
70507 2000-05-22  Jim Meyering  <meyering@lucent.com>
70508
70509         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
70510
70511 2000-05-20  Jim Meyering  <meyering@lucent.com>
70512
70513         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
70514         (jm_PREREQ): Use it.
70515
70516 2000-05-18  Jim Meyering  <meyering@lucent.com>
70517
70518         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
70519         back, too, since it may have been modified by allocate_entry.
70520         (hash_delete): Rewrite to use neither the assignment operator
70521         nor the comma operator in an if-expression.
70522
70523 2000-05-15  Paul Eggert  <eggert@twinsun.com>
70524
70525         * lib/closeout.c:
70526         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
70527         Remove; no longer needed.
70528         "quotearg.h": Add include.
70529         (file_name): Do not bother to explicitly initialize to NULL; it's less
70530         efficient on some hosts.
70531         (close_stdout_status): Remove test as to whether stdout was already
70532         closed; it breaks for the case "echo x | sort >&-".
70533         Quote file name colons.
70534         Do not assume that _("write error") lacks format strings.
70535
70536 2000-05-15  Jim Meyering  <meyering@lucent.com>
70537
70538         * lib/version-etc.c (version_etc_copyright): Update the copyright
70539         string used in all --version output.
70540
70541 2000-05-14  Jim Meyering  <meyering@lucent.com>
70542
70543         * lib/closeout.c (close_stdout_set_file_name): New function.
70544         (close_stdout_status): Use new file-scoped global.
70545         Return right away if fstat says the stdout file descriptor is invalid.
70546         * lib/closeout.h (close_stdout_set_file_name): Declare.
70547
70548 2000-05-10  Jim Meyering  <meyering@lucent.com>
70549
70550         * lib/closeout.c [default_exit_status]: New file-scoped variable.
70551         (close_stdout_set_status): New function.
70552         * lib/closeout.h (close_stdout_set_status): Declare.
70553
70554 2000-05-09  Jim Meyering  <meyering@lucent.com>
70555
70556         * m4/gettext.m4: Rename this...
70557         * m4/libintl.m4: ...to this.
70558
70559 2000-05-08  Jim Meyering  <meyering@lucent.com>
70560
70561         * lib/long-options.c: Don't include closeout.h.
70562         (parse_long_options): Don't call close_stdout for --version.
70563
70564 2000-05-06  Paul Eggert  <eggert@twinsun.com>
70565
70566         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
70567         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
70568         2.1.3 bug.  This avoids a clash when files like regex.c define
70569         _GNU_SOURCE.
70570
70571 2000-05-06  Jim Meyering  <meyering@lucent.com>
70572
70573         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
70574         (AC_REPLACE_FUNCS): Add strnlen.
70575
70576         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
70577         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
70578
70579         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
70580         AC_SEARCH_LIBS call for nanosleep.
70581         (LIB_NANOSLEEP): Set and AC_SUBST.
70582
70583 2000-05-06  Jim Meyering  <meyering@lucent.com>
70584
70585         * lib/strnlen.c: Undefine __strnlen and strnlen.
70586         [!weak_alias]: Define __strnlen to strnlen.
70587
70588         * lib/atexit.c: New file, from libiberty.
70589
70590 2000-05-06  Jim Meyering  <meyering@lucent.com>
70591
70592         * lib/closeout.c (close_stdout_status): Also check for errors on the
70593         stderr stream.
70594
70595 2000-05-05  Jim Meyering  <meyering@lucent.com>
70596
70597         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
70598         AC_SEARCH_LIBS call for clock_gettime.
70599         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
70600
70601         * m4/search-libs.m4: Update from autoconf.
70602
70603         su doesn't work on Solaris 2.6.
70604         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
70605         <shadow.h>.  Reported by Dragos Harabor.
70606
70607 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
70608
70609         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
70610         memcpy instead of xmalloc, xrealloc, path_concat.
70611         (locale_charset): Treat empty environment variables as absent.
70612         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
70613
70614 2000-05-04  Jim Meyering  <meyering@lucent.com>
70615
70616         * lib/getopt.c: Update from glibc.
70617         * lib/obstack.c: Likewise.
70618         * lib/obstack.h: Likewise.
70619         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
70620         file
70621
70622         * lib/regex.h: Likewise.
70623         * lib/strndup.c: Likewise.
70624         * lib/strnlen.c: New file, from glibc.
70625
70626 2000-05-03  Jim Meyering  <meyering@lucent.com>
70627
70628         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
70629
70630 2000-05-02  Paul Eggert  <eggert@twinsun.com>
70631
70632         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
70633         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
70634         compile-time test, rather than inspecting host and OS, to
70635         decide whether to define _LARGEFILE_SOURCE.
70636
70637 2000-05-01  Jim Meyering  <meyering@lucent.com>
70638
70639         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
70640
70641         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
70642         Based on a patch from Bruno Haible.
70643
70644 2000-05-01  Jim Meyering  <meyering@lucent.com>
70645
70646         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
70647
70648 2000-04-29  Jim Meyering  <meyering@lucent.com>
70649
70650         * lib/path-concat.c: Declare strdup only if it's not defined.
70651         * lib/canon-host.c: Likewise.
70652
70653 2000-04-28  Jim Meyering  <meyering@lucent.com>
70654
70655         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
70656         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
70657         is included first, then limits.h is included by locale.h by libintl.h.
70658         From John David Anglin.
70659
70660 2000-04-25  Jim Meyering  <meyering@lucent.com>
70661
70662         * lib/makepath.c (S_IRWXUGO): Define.
70663         (make_path): Always perform explicit chmod if MODE specifies any
70664         of the `special' permission bits.  Prompted by a bug report against
70665         install from Mate Wierdl and Joost van Baal.
70666
70667 2000-04-18  Jim Meyering  <meyering@lucent.com>
70668
70669         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
70670         (jm_PREREQ): Use it.
70671
70672 2000-04-18  Jim Meyering  <meyering@lucent.com>
70673
70674         * lib/README: New file.
70675
70676         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
70677         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
70678
70679 2000-04-17  Jim Meyering  <meyering@lucent.com>
70680
70681         Get it right :-)
70682         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
70683         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
70684         Suggestion from Akim Demaille.
70685
70686 2000-04-17  Jim Meyering  <meyering@lucent.com>
70687
70688         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
70689         the definition of it to rpl_strftime also defined-away the system's
70690         declaration.
70691
70692 2000-04-15  Jim Meyering  <meyering@lucent.com>
70693
70694         Use `C' to denote so-called `contiguous' files, the same way
70695         that tar does.
70696         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
70697         (ftypelet): Use S_ISCTG.
70698         From Michael Deutschmann.
70699
70700 2000-04-14  Jim Meyering  <meyering@lucent.com>
70701
70702         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
70703         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
70704         clobbered.
70705
70706 2000-04-14  Jim Meyering  <meyering@lucent.com>
70707
70708         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
70709
70710 2000-04-13  Jim Meyering  <meyering@lucent.com>
70711
70712         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
70713         AH_VERBATIM to insert required #ifndef into config.h.in.
70714         Suggestion from Akim Demaille.
70715
70716 2000-04-12  Jim Meyering  <meyering@lucent.com>
70717
70718         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
70719         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
70720         Christian Krackowizer.
70721
70722         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
70723         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
70724         (AC_SYS_LARGEFILE): Require.
70725         (AM_C_PROTOTYPES): Require.
70726
70727 2000-04-08  Jim Meyering  <meyering@lucent.com>
70728
70729         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
70730         names don't conflict.  Reported by Eli Zaretskii.
70731
70732 2000-04-07  Jim Meyering  <meyering@lucent.com>
70733
70734         * lib/putenv.c: Move inclusion of errno.h so it follows that of
70735         sys/types.h, to work around system header problems on AIX 3.2.5.
70736         From Bruno Haible.
70737
70738 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
70739
70740         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
70741         bug.  Deal with the different error behavior of Irix iconv.
70742
70743 2000-04-05  Paul Eggert  <eggert@twinsun.com>
70744
70745         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
70746         IRIX if the installer said otherwise.
70747
70748 2000-04-05  Jim Meyering  <meyering@lucent.com>
70749
70750         Portability tweaks required for ultrix4.3.
70751         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
70752         (jm_CHECK_DECLS): Add getutent to the list of functions.
70753         (_jm_DECL_HEADERS): Add utmpx.h.
70754         From John David Anglin.
70755
70756         * m4/strftime.m4: Back out the 2000-04-02 change.
70757         Instead of that change, simply undefine putenv in the test program.
70758
70759 2000-04-05  Jim Meyering  <meyering@lucent.com>
70760
70761         Portability tweaks required for ultrix4.3.
70762         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
70763         getutent.
70764         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
70765         * lib/canon-host.c: Declare strdup.
70766         * lib/path-concat.c: Likewise.
70767         From John David Anglin.
70768
70769 2000-04-04  Jim Meyering  <meyering@lucent.com>
70770
70771         Be more DOS 8.3-friendly.
70772         * lib/ref-add.sin: Renamed from ref-add.sed.in.
70773         * lib/ref-del.sin: Renamed from ref-del.sed.in.
70774         * lib/Makefile.am: Reflect renaming.
70775         Reported by Eli Zaretskii.
70776
70777         Use a temporary file name that won't clash with `charset.alias'
70778         in the DOS 8.3 name space.
70779         * lib/Makefile.am (charset_tmp): Define.
70780         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
70781         (uninstall-local): Likewise.
70782         Reported by Eli Zaretskii.
70783
70784 2000-04-03  Jim Meyering  <meyering@lucent.com>
70785
70786         * m4/gettext.m4: Fix typo in comment.
70787
70788         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
70789         textutils/configure.in).  Suggestion from Paul Eggert.
70790         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
70791
70792 2000-04-02  Paul Eggert  <eggert@twinsun.com>
70793
70794         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
70795         variable in the shell rather than using putenv, which isn't
70796         portable.  This avoids the configure-time inter-test dependency
70797         on the potentially-renamed putenv function.
70798
70799 2000-03-30  Paul Eggert  <eggert@twinsun.com>
70800
70801         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
70802         before checking struct stat.st_blksize, so that
70803         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
70804
70805 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70806
70807         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
70808         since strftime.c uses HAVE_STRFTIME to decide whether to use
70809         the underlying strftime.
70810
70811 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70812
70813         * lib/time/strftime.c (my_strftime): Make sure we call the system
70814         strftime, not ourselves, when invoking the underlying strftime.
70815
70816 2000-03-24  Jim Meyering  <meyering@lucent.com>
70817
70818         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
70819         (charset_alias): Define.
70820         (install-exec-local): Factor out common code.
70821         (uninstall-local): Split lines longer than 80.
70822         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
70823         (SUFFIXES): Define.
70824         (.sed.in.sed): New rule.  Don't redirect directly to $@.
70825         (CLEANFILES): Add ref-add.sed and ref-del.sed.
70826
70827 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
70828
70829         * lib/config.charset: Output a line containing "Packages using this
70830         file".
70831         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
70832         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
70833         ref-del.sed): New rules.
70834
70835 2000-03-17  Jim Meyering  <meyering@lucent.com>
70836
70837         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
70838         Otherwise, include <strings.h>
70839
70840 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
70841
70842         * lib/unicodeio.c (utf8_wctomb): New function.
70843         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
70844         format instead of in UCS-4 with platform dependent endianness.
70845
70846 2000-03-10  Jim Meyering  <meyering@lucent.com>
70847
70848         * m4/lib-check.m4: Look for getspnam in -lgen, too.
70849         From Marco Franzen.
70850
70851 2000-03-07  Paul Eggert  <eggert@twinsun.com>
70852
70853         * lib/savedir.c (savedir): Work even if directory size is
70854         negative; this can happen with some screwy NFS configurations.
70855
70856 2000-03-06  Jim Meyering  <meyering@lucent.com>
70857
70858         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
70859         if it's NULL (because we ran out of memory).  From Bruno Haible.
70860
70861 2000-03-05  Jim Meyering  <meyering@lucent.com>
70862
70863         * lib/localcharset.c ("path-concat.h"): Include.
70864         (get_charset_aliases): Use path_concat instead of ANSI string
70865         concatenation.
70866
70867         * lib/unicodeio.h (PARAMS): Define.
70868         Use it to guard prototype.
70869
70870 2000-03-04  Jim Meyering  <meyering@lucent.com>
70871
70872         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
70873         for lib/localcharset.c.
70874
70875 2000-03-04  Jim Meyering  <meyering@lucent.com>
70876
70877         * lib/Makefile.am (install-exec-local): Create $(libdir) before
70878         installing into it.
70879         (uninstall-local): Uncomment this rule so `make distcheck' works
70880         once again.
70881
70882         * lib/unicodeio.c (<errno.h>): Include it.
70883         (errno): Declare if not defined.
70884
70885         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
70886
70887         * lib/config.charset: New version, incorporating remarks from a linux
70888         i18n mailing list.  From Bruno Haible.
70889
70890 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
70891
70892         * m4/codeset.m4: New file.
70893         * m4/iconv.m4: New file.
70894         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
70895
70896 2000-03-03  Jim Meyering  <meyering@lucent.com>
70897
70898         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
70899
70900 2000-03-02  Jim Meyering  <meyering@lucent.com>
70901
70902         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
70903         the messages come out on separate lines.
70904
70905         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
70906         rather than jm_CHECK_DECLARATIONS.
70907         * m4/decl.m4: Remove now-unused file.
70908
70909         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
70910         geteuid.
70911
70912 2000-03-02  Jim Meyering  <meyering@lucent.com>
70913
70914         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
70915
70916 2000-03-01  Jim Meyering  <meyering@lucent.com>
70917
70918         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
70919         * lib/unicodeio.c: Likewise.
70920
70921 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
70922
70923         * lib/config.charset: New file.
70924         * lib/localcharset.c: New file.
70925         * lib/unicodeio.h, lib/unicodeio.c: New files.
70926         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
70927         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
70928         (noinst_HEADERS): Add unicodeio.h.
70929         (all-local, install-exec-local, charset.alias): New targets.
70930
70931 2000-02-28  Paul Eggert  <eggert@twinsun.com>
70932
70933         * lib/quotearg.c (ALERT_CHAR): New macro.
70934         (quotearg_buffer_restyled): Use it.
70935
70936 2000-02-27  Jim Meyering  <meyering@lucent.com>
70937
70938         * m4/check-decl.m4: Add getenv to the list.
70939
70940 2000-02-27  Jim Meyering  <meyering@lucent.com>
70941
70942         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
70943         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
70944
70945         * lib/backupfile.c: Guard inclusion of stdlib.h with
70946         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
70947         Declare malloc if needed.
70948
70949         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
70950         `#ifndef HAVE_DECL..'
70951         now that autoconf always defines the HAVE_DECL_ symbols.
70952         * lib/human.c: Likewise.
70953         * lib/same.c: Likewise.
70954         * lib/strtoumax.c: Likewise.
70955
70956         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
70957         declaration check was not run.
70958         * lib/hash.c: Likewise.
70959         * lib/human.c: Likewise.
70960         * lib/same.c: Likewise.
70961         * lib/strtoumax.c: Likewise.
70962
70963         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
70964         `.', then first look up the entire `.'-containing string as a login
70965         name.
70966
70967 2000-02-23  Jim Meyering  <meyering@lucent.com>
70968
70969         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
70970         in place of my hack.
70971
70972 2000-02-18  Paul Eggert  <eggert@twinsun.com>
70973
70974         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
70975         (textint): New typedef.
70976         (parser_control): Member year changed from int to textint.
70977         All uses changed.
70978         (YYSTYPE): Removed; replaced by %union with int and textint members.
70979         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
70980         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
70981         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
70982         (tSNUMBER, tUNUMBER): Now of type <textintval>.
70983         (date, number, to_year): Use width of number in digits, not its value,
70984         to determine whether it's a 2-digit year, or a 2-digit time.
70985         (yylex): Store number of digits of numeric tokens.
70986         Reported by John Kendall.
70987
70988         (parser_control): Changed from struct parser_control to typedef (for
70989         consistency).  All uses changed.
70990
70991         (tID): Removed; not used.
70992         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
70993
70994 2000-02-14  Paul Eggert  <eggert@twinsun.com>
70995
70996         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
70997         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
70998
70999 2000-02-12  Jim Meyering  <meyering@lucent.com>
71000
71001         * lib/userspec.c (ISDIGIT): Define it.
71002         (isdigit): Remove definition.
71003         (is_number): Use ISDIGIT, not isdigit.
71004         <libintl.h>: Include.
71005         (_ and N_): Define.
71006         (parse_user_spec): Mark translatable strings.
71007
71008 2000-02-10  Jim Meyering  <meyering@lucent.com>
71009
71010         With these changes, nanosleep.[ch] are finally enough like the other
71011         lib/* replacement files to compile on a few more losing systems.
71012
71013         * lib/nanosleep.h: Don't include config.h.
71014         Remove prototype from declaration of nanosleep.
71015         (PARAMS): Remove now-unneeded definition.
71016         * lib/nanosleep.c: #undef nanosleep.
71017         (rpl_nanosleep): Rename from nanosleep.
71018
71019 2000-02-10  Jim Meyering  <meyering@lucent.com>
71020
71021         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
71022         gnu_nanosleep to rpl_nanosleep.
71023
71024 2000-02-09  Jim Meyering  <meyering@lucent.com>
71025
71026         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
71027         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
71028
71029 2000-02-08  Akim Demaille  <akim@epita.fr>
71030
71031         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
71032         `[' and `]' and remove uses of `changequote'.
71033         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
71034         (AC_SYS_LARGEFILE): Likewise.
71035         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
71036         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
71037         of changequote.
71038         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
71039         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
71040         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
71041         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
71042
71043 2000-02-05  Jim Meyering  <meyering@lucent.com>
71044
71045         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
71046         Remove explicit use of AC_HEADER_TIME.  It is required by
71047         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
71048         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
71049         in autoconf whereby the expansion of the latter ended up preceding
71050         the expansion of its prerequisite, AC_HEADER_TIME.
71051         Reported by Volker Borchert.
71052
71053 2000-02-03  Jim Meyering  <meyering@lucent.com>
71054
71055         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
71056
71057 2000-02-03  Jim Meyering  <meyering@lucent.com>
71058
71059         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
71060         rather than with `#if HAVE_UTMPNAME'.
71061
71062 2000-02-02  Jim Meyering  <meyering@lucent.com>
71063
71064         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
71065         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
71066         Reported by Eli Zaretskii.
71067
71068 2000-02-01  Jim Meyering  <meyering@lucent.com>
71069
71070         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
71071
71072 2000-01-31  Jim Meyering  <meyering@lucent.com>
71073
71074         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
71075         functions.  Add the time.h and sys/time.h headers along with the
71076         AC_REQUIRE'ment of AC_HEADER_TIME.
71077
71078 2000-01-31  Jim Meyering  <meyering@lucent.com>
71079
71080         * lib/nanosleep.h (nanosleep): Guard declaration with
71081         `#if ! HAVE_DECL_NANOSLEEP'.
71082         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
71083         the declaration in that vendor's sys/timers.h.
71084         Reported by Christian Krackowizer.
71085
71086         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
71087         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
71088         (ISPRINT): Likewise.
71089         Reported by Tom Tromey.
71090
71091 2000-01-30  Jim Meyering  <meyering@lucent.com>
71092
71093         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
71094
71095         * m4/prereq.m4 (utmp_includes): Define.
71096         Check for ut_user and ut_name members in both struct utmpx
71097         and struct utmp.
71098
71099 2000-01-30  Jim Meyering  <meyering@lucent.com>
71100
71101         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
71102         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
71103         header files where only utmpx.ut_user is declared.
71104
71105         * lib/readutmp.h (UT_USER): Define.
71106
71107 2000-01-29  Jim Meyering  <meyering@lucent.com>
71108
71109         * m4/lib-check.m4: New file containing library-related checks from
71110         fileutils and sh-utils (textutils had none).
71111
71112 2000-01-28  Jim Meyering  <meyering@lucent.com>
71113
71114         * m4/perl.m4: Change format of warning message to look more like that
71115         from the missing script.  Suggestion from François Pinard.
71116
71117 2000-01-25  Jim Meyering  <meyering@lucent.com>
71118
71119         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
71120         well as time.h in the compile check.
71121         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
71122         Fix typo in cross-compiling case: s/yes/no/.
71123
71124 2000-01-23  Jim Meyering  <meyering@lucent.com>
71125
71126         * m4/jm-macros.m4: Move df-related tests here from
71127         fileutils/configure.in
71128
71129         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
71130         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
71131
71132         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
71133         s/space/ac_fsusage_space/.
71134         (jm_FILE_SYSTEM_USAGE): Take two parameters.
71135
71136         * m4/ftruncate.m4: New file (derived from part of
71137         fileutils/configure.in).
71138         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
71139         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
71140
71141         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
71142         AC_SUBST these here, rather than just in sh-util/configure.in, so
71143         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
71144         all the same.
71145         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
71146         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
71147         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
71148         (AC_SUBST(POW_LIBM)): Likewise.
71149         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
71150
71151 2000-01-23  Jim Meyering  <meyering@lucent.com>
71152
71153         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
71154         obstack.c.
71155
71156 2000-01-22  Jim Meyering  <meyering@lucent.com>
71157
71158         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
71159
71160         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
71161
71162         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
71163         configure.in
71164         (AC_CHECK_HEADERS): Likewise for sh-utils.
71165         (AC_CHECK_HEADERS): Likewise for textutils.
71166         Merge the three lists of headers.
71167
71168         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
71169         from fileutils' configure.in.
71170
71171         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
71172         code. Moved tests into their own function (_jm_DECL_HEADERS) in
71173         check-decl.m4.
71174
71175         * m4/check-decl.m4: Use #if rather than #ifdef.
71176         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
71177         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
71178         (_jm_DECL_HEADERS): Define new function.
71179         (jm_CHECK_DECLARATIONS): Require it.
71180
71181 2000-01-22  Jim Meyering  <meyering@lucent.com>
71182
71183         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
71184         [! HAVE_DECL_STRTOULL]: Declare strtoull.
71185         Required for some AIX systems.  Reported by Christian Krackowizer.
71186         [TESTING] (main): New function.
71187
71188         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
71189         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
71190         letters.
71191
71192         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
71193         iswprint.
71194
71195         * lib/strverscmp.c (ISDIGIT): Define.
71196         (strverscmp): Use ISDIGIT, not isdigit.
71197
71198 2000-01-19  Jim Meyering  <meyering@lucent.com>
71199
71200         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
71201         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
71202         defines `struct timespec' in <sys/time.h>
71203
71204         * m4/c-bs-a.m4: Remove uses of changequote altogether.
71205         Thanks to Akim for explaining.
71206
71207 2000-01-17  Paul Eggert  <eggert@twinsun.com>
71208
71209         * lib/nanosleep.c (nanosleep):
71210         Don't use SA_INTERRUPT to decide whether to call sigaction, as
71211         POSIX.1 doesn't require SA_INTERRUPT and some systems
71212         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
71213         it's been part of POSIX.1 since day 1 (in 1988).
71214
71215 2000-01-17  Jim Meyering  <meyering@lucent.com>
71216
71217         * lib/interlock: Remove unused file.  Reported by François Pinard.
71218
71219 2000-01-16  Paul Eggert  <eggert@twinsun.com>
71220
71221         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
71222         alert, backslash, formfeed, and vertical tab unnecessarily in
71223         shell quoting style.
71224
71225 2000-01-16  Jim Meyering  <meyering@lucent.com>
71226
71227         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
71228         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
71229         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
71230         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
71231
71232 2000-01-16  Jim Meyering  <meyering@lucent.com>
71233
71234         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
71235         because the latter didn't work.
71236
71237 2000-01-15  Jim Meyering  <meyering@lucent.com>
71238
71239         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
71240         (AC_REPLACE_FUNCS): Add memcpy and memset.
71241         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
71242         Add strpbrk.
71243         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
71244
71245 2000-01-12  Jim Meyering  <meyering@lucent.com>
71246
71247         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
71248         (jm_PREREQ): Use it.
71249         (jm_PREREQ_READUTMP): New macro.
71250         (jm_PREREQ): Use it.
71251
71252 2000-01-11  Paul Eggert  <eggert@twinsun.com>
71253
71254         Quote multibyte characters correctly.
71255         * m4/c-bs-a.m4: New file.
71256         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
71257         (jm_PREREQ): Use it.
71258
71259 2000-01-11  Paul Eggert  <eggert@twinsun.com>
71260
71261         * m4/uintmax_t.m4: Port to autoconf 2.13.
71262
71263 2000-01-08  Jim Meyering  <meyering@ascend.com>
71264
71265         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
71266         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
71267
71268 2000-01-04  Jim Meyering  <meyering@ascend.com>
71269
71270         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
71271         jm_STRUCT_DIRENT_D_TYPE.
71272         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
71273         jm_STRUCT_DIRENT_D_INO.
71274         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
71275         jm_STRUCT_UTIMBUF.
71276         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
71277         renamings.
71278         * m4/utime.m4: Likewise.
71279
71280         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
71281         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
71282
71283 2000-01-03  Paul Eggert  <eggert@twinsun.com>
71284
71285         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
71286         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
71287
71288 2000-01-02  Jim Meyering  <meyering@ascend.com>
71289
71290         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
71291         remember if this is necessary.
71292
71293 1999-12-26  Jim Meyering  <meyering@ascend.com>
71294
71295         * m4/jm-macros.m4: Use it here.
71296         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
71297
71298 1999-12-23  Jim Meyering  <meyering@ascend.com>
71299
71300         * m4/jm-macros.m4: Check for clock_gettime (moved from
71301         fileutils/configure.in)
71302         Check for gettimeofday.
71303
71304 1999-12-20  Jim Meyering  <meyering@ascend.com>
71305
71306         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
71307         autoconf-2.14a-1999-12-20.
71308
71309 1999-12-19  Jim Meyering  <meyering@ascend.com>
71310
71311         * m4/lstat-slash.m4: New file.
71312         * m4/jm-macros.m4: Use the new macro:
71313         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71314
71315 1999-12-07  Jim Meyering  <meyering@ascend.com>
71316
71317         * m4/perl.m4: Require that File::Compare be available, too.
71318         Too many systems seem to lack it.
71319
71320         * m4/strftime.m4: Add checks for most of the cpp macros tested in
71321         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
71322
71323 1999-11-18  Paul Eggert  <eggert@twinsun.com>
71324
71325         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
71326         problem with the QNX 4.25 shell, which doesn't propagate exit
71327         status of failed commands inside shell assignments.
71328
71329 1999-11-17  Jim Meyering  <meyering@ascend.com>
71330
71331         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
71332
71333 1999-11-07  Jim Meyering  <meyering@ascend.com>
71334
71335         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
71336
71337 1999-11-06  Jim Meyering  <meyering@ascend.com>
71338
71339         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
71340         * m4/jm-macros.m4 (jm_MACROS): Use it here.
71341
71342 1999-11-05  Jim Meyering  <meyering@ascend.com>
71343
71344         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
71345         configure.in of textutils, fileutils, and sh-utils into this one
71346         (shared between those packages) file.
71347         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
71348         AC_STRUCT_ST_BLKSIZE.
71349
71350 1999-11-03  Jim Meyering  <meyering@ascend.com>
71351
71352         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
71353         of AC_CHECK_TYPE checks includes unistd.h.
71354         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
71355         Suggestion from Akim Demaille.
71356
71357 1999-10-30  Jim Meyering  <meyering@ascend.com>
71358
71359         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
71360         m4-quoted string.
71361         * m4/ls-mntd-fs.m4: Likewise.
71362         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
71363         * m4/jm-winsz1.m4: Likewise.
71364
71365         * m4/const.m4: Remove file, since the fix made it into the experimental
71366         version of autoconf.
71367         * m4/mktime.m4: Likewise.
71368
71369         * m4/check-type.m4: Remove file, now that the latest version of
71370         AC_CHECK_TYPE takes a third arg to specify additional #includes.
71371
71372         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
71373         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
71374         AC_CHECK_TYPE.
71375
71376 1999-10-04  Jim Meyering  <meyering@ascend.com>
71377
71378         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
71379
71380 1999-09-22  Paul Eggert  <eggert@twinsun.com>
71381
71382         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
71383         2.95.1 bug with HP-UX 10.20.
71384
71385 1999-09-17  Jim Meyering  <meyering@ascend.com>
71386
71387         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
71388         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
71389         due to missing strdup (against sh-utils-2.0).
71390
71391 1999-08-29  Jim Meyering  <meyering@ascend.com>
71392
71393         * m4/jm-macros.m4: Require jm_BISON.
71394         * m4/bison.m4: New file.
71395
71396 1999-08-17  Paul Eggert  <eggert@twinsun.com>
71397
71398         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
71399         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
71400
71401 1999-08-05  Jim Meyering  <meyering@ascend.com>
71402
71403         * m4/getline.m4: Rename test file from conftestdata to conftest.data
71404         to avoid conflicts with `conftest' on 8+3 filesystems.
71405         Suggestion from Eli Zaretskii.
71406
71407 1999-08-04  Jim Meyering  <meyering@ascend.com>
71408
71409         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
71410         fileutils and sh-utils (textutils's getline test was inadequate).
71411         (AM_FUNC_GETLINE): Run this test.
71412         (AC_CHECK_FUNCS): Check for getdelim.
71413         Reported by Bob Proulx.
71414
71415 1999-08-02  Jim Meyering  <meyering@ascend.com>
71416
71417         * m4/jm-macros.m4: Add a comment.
71418
71419 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71420
71421         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
71422         <inttypes.h> defines strtoumax as a macro (and not as a
71423         function).
71424
71425 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71426
71427         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
71428         that we can shift, multiply and divide unsigned long long
71429         values; Ultrix cc can't do it.
71430
71431 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71432
71433         * m4/mktime.m4: New file, which is a preview of what should appear
71434         in the next public autoconf release.
71435
71436 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71437
71438         * m4/lfs.m4: Remove this file.
71439         * m4/largefile.m4: New file.  It contains the old contents of
71440         lfs.m4, except that all names with prefix AC_LFS have been
71441         changed to use the prefix AC_SYS_LARGEFILE instead, to be
71442         compatible with future autoconf versions.  Also, some minor m4
71443         quoting problems have been fixed.
71444
71445 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71446
71447         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
71448         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
71449         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
71450         and simplify the shell code.
71451
71452 1999-08-01  Jim Meyering  <meyering@ascend.com>
71453
71454         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
71455         m4.
71456
71457 1999-07-20  Jim Meyering  <meyering@ascend.com>
71458
71459         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
71460
71461 1999-07-15  Jim Meyering  <meyering@ascend.com>
71462
71463         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
71464
71465 1999-05-22  Jim Meyering  <meyering@ascend.com>
71466
71467         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
71468
71469 1999-05-20  Jim Meyering  <meyering@ascend.com>
71470
71471         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
71472         Add a colon after each `then' in case $4 is empty.
71473
71474 1999-05-16  Jim Meyering  <meyering@ascend.com>
71475
71476         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
71477
71478 1999-05-10  Jim Meyering  <meyering@ascend.com>
71479
71480         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
71481
71482         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
71483         AC_FUNC_MKTIME.
71484
71485 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
71486
71487         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
71488
71489 1999-05-04  Paul Eggert  <eggert@twinsun.com>
71490
71491         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
71492         not CPPFLAGS, so that linking works correctly in IRIX.
71493
71494 1999-04-30  Paul Eggert  <eggert@twinsun.com>
71495
71496         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
71497
71498 1999-04-20  Paul Eggert  <eggert@twinsun.com>
71499
71500         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
71501         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
71502         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
71503         jm_AC_TYPE_UNSIGNED_LONG_LONG.
71504         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
71505
71506         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
71507
71508 1999-04-20  Jim Meyering  <meyering@ascend.com>
71509
71510         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
71511         AC_REPLACE xstroull if necessary.  From Paul Eggert.
71512         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
71513
71514 1999-04-18  Jim Meyering  <meyering@ascend.com>
71515
71516         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
71517         * m4/jm-macros.m4: Use it.
71518
71519 1999-04-06  Jim Meyering  <meyering@ascend.com>
71520
71521         * m4/strftime.m4: Remove test for %f.
71522
71523 1999-03-29  Jim Meyering  <meyering@ascend.com>
71524
71525         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
71526         superset of the AC_TYPE_* checks in the textutils, fileutils,
71527         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
71528         AC_TYPE_PID_T.
71529
71530 1999-03-28  Jim Meyering  <meyering@ascend.com>
71531
71532         * m4/jm-macros.m4: Define GNU_PACKAGE here.
71533         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
71534         replaced e.g., in the *.sh files of the sh-utils.
71535
71536 1999-03-20  Jim Meyering  <meyering@ascend.com>
71537
71538         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
71539         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
71540         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
71541
71542 1999-03-19  Jim Meyering  <meyering@ascend.com>
71543
71544         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
71545
71546 1999-03-12  Jim Meyering  <meyering@ascend.com>
71547
71548         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
71549
71550 1999-03-07  Jim Meyering  <meyering@ascend.com>
71551
71552         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
71553         declared.
71554
71555 1999-02-17  Jim Meyering  <meyering@ascend.com>
71556
71557         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
71558         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
71559
71560 1999-02-07  Jim Meyering  <meyering@ascend.com>
71561
71562         * m4/group-member.m4: New file -- extracted from sh-utils'
71563         configure.in.
71564
71565         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
71566         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
71567
71568 1999-02-06  Jim Meyering  <meyering@ascend.com>
71569
71570         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
71571         * m4/fnmatch.m4: Likewise.
71572         * m4/getgroups.m4: Likewise.
71573         * m4/lstat.m4: Likewise.
71574         * m4/malloc.m4: Likewise.
71575         * m4/putenv.m4: Likewise.
71576         * m4/realloc.m4: Likewise.
71577         * m4/regex.m4: Likewise.
71578         * m4/stat.m4: Likewise.
71579         * m4/strftime.m4: Likewise.
71580         Suggestion from Alain Magloire.
71581
71582         * m4/chown.m4: Use `.$ac_objext', not `.o'.
71583         * m4/fnmatch.m4: Likewise.
71584         * m4/getgroups.m4: Likewise.
71585         * m4/getline.m4: Likewise.
71586         * m4/lstat.m4: Likewise.
71587         * m4/malloc.m4: Likewise.
71588         * m4/memcmp.m4: Likewise.
71589         * m4/putenv.m4: Likewise.
71590         * m4/realloc.m4: Likewise.
71591         * m4/regex.m4: Likewise.
71592         * m4/stat.m4: Likewise.
71593         * m4/strftime.m4: Likewise.
71594         Suggestion from Alain Magloire.
71595
71596         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
71597         an argument.
71598
71599         * m4/regex.m4: Add a run-time Test for proper operation of
71600         re_compile_pattern.
71601
71602 1999-01-31  Jim Meyering  <meyering@ascend.com>
71603
71604         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
71605
71606 1999-01-30  Jim Meyering  <meyering@ascend.com>
71607
71608         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
71609
71610         * m4/jm-mktime.m4: Make this a wrapper around the official
71611         AM_FUNC_MKTIME rather than my private copy, now that the official one
71612         is up to date.
71613         * m4/mktime.m4: Remove file.
71614
71615         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
71616         * m4/uptime.m4: Likewise.
71617         * m4/uintmax_t.m4: Likewise.
71618
71619 1999-01-28  Jim Meyering  <meyering@ascend.com>
71620
71621         * m4/jm-macros.m4: Use jm_AFS.
71622         * m4/afs.m4: New file (from fileutils' configure.in).
71623
71624         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
71625         * m4/chown.m4: Likewise.
71626         * m4/d-ino.m4: Likewise.
71627         * m4/d-type.m4: Likewise.
71628         * m4/fnmatch.m4: Likewise.
71629         * m4/getgroups.m4: Likewise.
71630         * m4/gettext.m4: Likewise.
71631         * m4/jm-mktime.m4: Likewise.
71632         * m4/jm-winsz2.m4: Likewise.
71633         * m4/lcmessage.m4: Likewise.
71634         * m4/ls-mntd-fs.m4: Likewise.
71635         * m4/malloc.m4: Likewise.
71636         * m4/memcmp.m4: Likewise.
71637         * m4/putenv.m4: Likewise.
71638         * m4/realloc.m4: Likewise.
71639         * m4/st_mtim.m4: Likewise.
71640         * m4/strftime.m4: Likewise.
71641
71642 1999-01-16  Jim Meyering  <meyering@ascend.com>
71643
71644         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
71645         (ARGMATCH_DIE_DECL): Define.
71646
71647 1999-01-12  Jim Meyering  <meyering@ascend.com>
71648
71649         * m4/Makefile.am.in: Rewrite to avoid using fmt.
71650         Reported by Lars Hecking.
71651
71652 1999-01-10  Jim Meyering  <meyering@ascend.com>
71653
71654         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
71655         gross kludge.
71656         * m4/inttypes_h.m4: Likewise.
71657         * m4/lstat.m4: Likewise.
71658         * m4/malloc.m4: Likewise.
71659         * m4/readdir.m4: Likewise.
71660         * m4/realloc.m4: Likewise.
71661         * m4/st_dm_mode.m4: Likewise.
71662         * m4/stat.m4: Likewise.
71663         * m4/utimbuf.m4: Likewise.
71664         * m4/utimes.m4: Likewise.
71665
71666         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
71667         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
71668         comments in config.h.in are meaningful.
71669
71670         * m4/jm-macros.m4: Require autoconf-2.13 here.
71671
71672         * m4/regex.m4: By default, don't use the included regex.c on systems
71673         with glibc 2.  Suggestion from Uli Drepper.
71674
71675 1999-01-02  Jim Meyering  <meyering@ascend.com>
71676
71677         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
71678
71679 1998-12-18  Jim Meyering  <meyering@ascend.com>
71680
71681         * m4/Makefile.am.in (Makefile.am): Simplify rule.
71682         Based on a suggestion from Lars Hecking.
71683
71684 1998-11-16  Paul Eggert  <eggert@twinsun.com>
71685
71686         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
71687
71688 1998-11-16  Jim Meyering  <meyering@ascend.com>
71689
71690         * m4/lfs.m4: Double-quote the `uname...` expression.
71691
71692 1998-11-14  Jim Meyering  <meyering@ascend.com>
71693
71694         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
71695         * m4/stat.m4: Likewise.
71696
71697 1998-11-03  Jim Meyering  <meyering@ascend.com>
71698
71699         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
71700         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
71701
71702 1998-10-18  Jim Meyering  <meyering@ascend.com>
71703
71704         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
71705
71706 1998-10-17  Jim Meyering  <meyering@ascend.com>
71707
71708         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
71709         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
71710         calls for those previously hard-coded headers.  Instead, take a new
71711         parameter.
71712         (jm_CHECK_DECLARATIONS): Reflect interface change.
71713         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
71714         (jm_CHECK_DECL_LOCALTIME_R): New macro.
71715
71716         * m4/mktime.m4: Test for spring-forward gap before long-running test.
71717
71718 1998-10-14  Jim Meyering  <meyering@ascend.com>
71719
71720         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
71721         instead of "TZ=America/Vancouver".  From Paul Eggert.
71722
71723 1998-10-11  Jim Meyering  <meyering@ascend.com>
71724
71725         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
71726         This adds a test for a recently added compatibility fix for mktime.c.
71727         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
71728
71729 1998-09-27  Jim Meyering  <meyering@ascend.com>
71730
71731         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
71732
71733         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
71734         ../configure.in, including a change from Gordon Matzigkeit to allow
71735         cross-compiling for the Hurd.
71736
71737         * m4/glibc.m4: New file/macro to test for the GNU C Library
71738         versions 1 and 2.  From Gordon Matzigkeit.
71739         Indent.
71740
71741 1998-09-21  Jim Meyering  <meyering@ascend.com>
71742
71743         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
71744
71745 1998-08-18  Paul Eggert  <eggert@twinsun.com>
71746
71747         Port nanosecond-resolution times to UnixWare 2.1.2 and
71748         pedantic Solaris 2.6.
71749
71750         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
71751         AC_STRUCT_ST_MTIM.
71752         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
71753         Generate name of ns member, instead of just 1 or undef.
71754         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
71755
71756 1998-08-15  Jim Meyering  <meyering@ascend.com>
71757
71758         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
71759         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
71760         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
71761         instead of jm_TYPE_SSIZE_T.
71762
71763 1998-08-12  Jim Meyering  <meyering@ascend.com>
71764
71765         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
71766
71767 1998-08-02  Jim Meyering  <meyering@ascend.com>
71768
71769         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
71770         in acconfig.h manually.
71771
71772 1998-07-31  Paul Eggert  <eggert@twinsun.com>
71773
71774         * m4/st_mtim.m4: New file.
71775
71776 1998-07-28  Jim Meyering  <meyering@ascend.com>
71777
71778         * m4/utimes.m4: Undef stat.
71779
71780 1998-07-25  Jim Meyering  <meyering@ascend.com>
71781
71782         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
71783         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
71784
71785 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
71786
71787         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
71788         uid and gid actually remain unchanged.
71789
71790 1998-07-07  Jim Meyering  <meyering@ascend.com>
71791
71792         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
71793
71794 1998-07-04  Jim Meyering  <meyering@ascend.com>
71795
71796         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
71797         to prove that this macro can be used in packages without regex.c.
71798
71799 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
71800
71801         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
71802         is to be used.
71803
71804 1998-07-03  Jim Meyering  <meyering@ascend.com>
71805
71806         * m4/gettext.m4: Add -lintl if it's found to be necessary.
71807
71808         * m4/gettext.m4: New file -- from gettext-0.10.35.
71809         * m4/lcmessage.m4: Likewise.
71810         * m4/progtest.m4: Likewise.
71811
71812         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
71813         * m4/jm-macros.m4: Require the new macro.
71814
71815 1998-06-29  Jim Meyering  <meyering@ascend.com>
71816
71817         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
71818         for the definition of NGROUPS (used in a system header included
71819         by sys/mount.h).
71820
71821 1998-06-28  Jim Meyering  <meyering@ascend.com>
71822
71823         * m4/ls-mntd-fs.m4: New file.
71824         * m4/fstypename.m4: New file.
71825
71826         * m4/jm-macros.m4: Require the new macro.
71827         * m4/jm-glibc-io.m4: New file.
71828
71829 1998-05-19  Jim Meyering  <meyering@ascend.com>
71830
71831         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
71832         * m4/lchown.m4: New file.
71833
71834         * m4/Makefile.am.in: New file.
71835         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
71836
71837 1998-05-14  Jim Meyering  <meyering@ascend.com>
71838
71839         * m4/Makefile.am (EXTRA_DIST): Add them.
71840         * m4/jm-macros.m4: New file.
71841         * m4/utimbuf.m4: New file.
71842
71843 1998-05-12  Jim Meyering  <meyering@ascend.com>
71844
71845         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
71846
71847 1998-05-11  Jim Meyering  <meyering@ascend.com>
71848
71849         * m4/isc-posix.m4: New file.
71850
71851 1998-05-10  Jim Meyering  <meyering@ascend.com>
71852
71853         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
71854
71855 1998-05-09  Jim Meyering  <meyering@ascend.com>
71856
71857         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
71858         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
71859         with automake.
71860
71861         * m4/ssize_t.m4: New file.
71862         * m4/mktime.m4: Remove file -- the new automake has this now.
71863
71864 1998-04-26  Jim Meyering  <meyering@ascend.com>
71865
71866         * m4/assert.m4: New file.
71867         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
71868
71869 1998-04-05  Jim Meyering  <meyering@ascend.com>
71870
71871         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
71872         (jm_PREREQ): Use it here.
71873
71874 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
71875
71876         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
71877         in acconfig.h.
71878
71879 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
71880
71881         * m4/prereq.m4: New file.
71882         * m4/error.m4: New file.
71883         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
71884
71885 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
71886
71887         * m4/getline.m4: Don't set am_cv_func_working_getline before the
71888         cache-check for the same variable -- that defeated the purpose of
71889         the test; the test program was never run.  This was a problem only
71890         on systems with losing getline functions -- HP-UX 10.20 is one.
71891         Reported by Bjorn Helgaas.
71892
71893 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
71894
71895         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
71896
71897 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
71898
71899         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
71900
71901         * m4/const.m4: New file.  Use an initializer in this declaration
71902         typedef int charset[2]; const charset x;
71903         Reported by Bob Glickstein.
71904
71905 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
71906
71907         * m4/chown.m4: Fix reversed types on -1 args to chown.
71908         From Kaveh Ghazi.
71909
71910 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
71911
71912         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
71913         Add lseek and memchr.
71914
71915         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
71916         T.E.Dickey <dickey@clark.net> said that some older preprocessors
71917         have a 20-character limit on names.
71918
71919 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
71920
71921         * m4/inttypes_h.m4: New file.
71922         * m4/uintmax_t.m4: New file.
71923         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
71924
71925
71926         -----
71927
71928         Local Variables:
71929         coding: utf-8
71930         End:
71931
71932         Copyright (C) 1997-2010 Free Software Foundation, Inc.
71933
71934         Copying and distribution of this file, with or without
71935         modification, are permitted provided the copyright notice
71936         and this notice are preserved.