Update for Solaris 11 2010-11.
[gnulib.git] / ChangeLog
1 2010-12-04  Bruno Haible  <bruno@clisp.org>
2
3         Update for Solaris 11 2010-11.
4         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
5         Express, released in November 2010.
6
7 2010-12-04  Bruno Haible  <bruno@clisp.org>
8
9         nproc: Relax license.
10         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
11         and Paul Eggert.
12         Requested by Ludovic Courtès <ludo@gnu.org>.
13
14 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
15
16         utimecmp: fine-grained src to nearby coarse-grained dest
17
18         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19         and the source is on a file system with higher-resolution time
20         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
21         not work, and the time stamps are close together, the algorithm to
22         determine the exact resolution from the read-back mtime was buggy:
23         it had a "!=" where it should have had an "==".  This bug has been
24         in the code ever since it was introduced to gnulib.
25         Problem reported by Dan Jacobson in
26         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27
28 2010-11-30  Bruno Haible  <bruno@clisp.org>
29
30         strerror_r-posix: Fix autoconf test.
31         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
32
33 2010-11-28  Bruno Haible  <bruno@clisp.org>
34             Paul Eggert  <eggert@cs.ucla.edu>
35
36         Tests for module 'getdomainname'.
37         * modules/getdomainname-tests: New file.
38         * tests/test-getdomainname.c: New file, based on
39         tests/test-gethostname.c.
40
41 2010-11-28  Bruno Haible  <bruno@clisp.org>
42             Paul Eggert  <eggert@cs.ucla.edu>
43
44         getdomainname: Use the system function when possible.
45         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
46         (getdomainname): Replace if needed. Provide the declaration if it is
47         missing. Don't use _GL_CXXALIAS_SYS_CAST.
48         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
49         (getdomainname): When the system has getdomainname, call the system
50         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
51         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
53         found in libnsl. Look for the declaration also in <netdb.h>. Replace
54         the function if its second argument is of type 'int' or if it is found
55         in libnsl.
56         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
57         <sys/systeminfo.h> and sysinfo().
58         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
59         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
61         HAVE_GETDOMAINNAME.
62         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
63         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
64         * doc/glibc-functions/getdomainname.texi: Document the problems with
65         the getdomainname declaration.
66
67 2010-11-28  Bruno Haible  <bruno@clisp.org>
68
69         sys_socket: Ensure ss_family field on AIX.
70         * lib/sys_socket.in.h (ss_family): New macro definition.
71         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
72         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
73         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
74         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
75         * modules/sys_socket (Makefile.am): Substitute
76         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
77         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
78
79 2010-11-27  Bruno Haible  <bruno@clisp.org>
80
81         readline: Improve configure output.
82         * m4/readline.m4 (gl_FUNC_READLINE): Make the
83         "checking for readline..." result understandable.
84
85 2010-11-27  Bruno Haible  <bruno@clisp.org>
86
87         *printf-posix: Detect a bug on Solaris 10/x86.
88         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
89         for floating-point output.
90         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
91         directive.
92         * tests/test-snprintf-posix.h (test_function): Likewise.
93         * tests/test-sprintf-posix.h (test_function): Likewise.
94         * tests/test-vasprintf-posix.c (test_function): Likewise.
95         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
96         * doc/posix-functions/printf.texi: Likewise.
97         * doc/posix-functions/snprintf.texi: Likewise.
98         * doc/posix-functions/sprintf.texi: Likewise.
99         * doc/posix-functions/vfprintf.texi: Likewise.
100         * doc/posix-functions/vprintf.texi: Likewise.
101         * doc/posix-functions/vsnprintf.texi: Likewise.
102         * doc/posix-functions/vsprintf.texi: Likewise.
103         * doc/glibc-functions/obstack_printf.texi: Likewise.
104         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
105
106 2010-11-27  Bruno Haible  <bruno@clisp.org>
107
108         Fix link error when module libunistring-optional is in use.
109         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
110         * modules/striconveha-tests (Makefile.am): Likewise.
111
112 2010-11-27  Bruno Haible  <bruno@clisp.org>
113
114         regex: Mention link dependencies.
115         * modules/regex (Link): New section.
116         * modules/rpmatch (Link): Likewise.
117         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
118
119 2010-11-27  Bruno Haible  <bruno@clisp.org>
120
121         ftoastr: Fix compilation error on Solaris.
122         * lib/ftoastr.c: Include <config.h>.
123
124 2010-11-27  Bruno Haible  <bruno@clisp.org>
125
126         getloadavg: Update documentation.
127         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
128
129 2010-11-27  Bruno Haible  <bruno@clisp.org>
130
131         sys_socket: Fix test whether the functions are declared.
132         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
133         not <sys/select.h>.
134
135 2010-11-27  Bruno Haible  <bruno@clisp.org>
136
137         getpass: Make sure to get system declaration on some platforms.
138         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
139         gl_USE_SYSTEM_EXTENSIONS.
140         * modules/getpass (Depends-on): Add extensions.
141
142 2010-11-26  Bruno Haible  <bruno@clisp.org>
143
144         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
145         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
146         'iconv' module is present.
147         (ICONV_CONST): New macro.
148         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
149         ICONV_CONST.
150         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
151         set ICONV_CONST.
152         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
153         here.
154         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
155         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
156         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
157         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
158         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
159         present.
160
161 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
162
163         ftoastr: comment fix
164         * lib/ftoastr.c: "little" -> "little or no" in comment
165
166 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
167
168         stdint: port to GCC 4.3 + OSX + Octave
169         On this platform, stdint.h is buggy and defines int64_t to long
170         long int.  The replacement defined it to long int, causing
171         problems with C++ style name mangling.  Instead, trust the system
172         definition if INT64_MAX is defined, and likewise for the unsigned
173         variant.   Problem reported by Jarno Rajahalme in
174         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
175         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
176         and don't mess with int64_t and INT64_MAX in this case.
177         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
178
179 2010-11-24  Bruno Haible  <bruno@clisp.org>
180
181         doc: Corrections regarding MacOS X 10.4 and 10.5.
182         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
183         MacOS X.
184         Reported by Simon Josefsson.
185
186 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
187
188         Uninstall ".bin" files installed by relocwrapper.
189         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
190         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
191         unless it is already there.
192
193 2010-11-21  Bruno Haible  <bruno@clisp.org>
194
195         Update for NetBSD 5.0.
196         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
197         NetBSD; the test fails on NetBSD 5.0.
198         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
199         about NetBSD.
200
201 2010-11-21  Bruno Haible  <bruno@clisp.org>
202
203         Update for HP-UX 11.23 and HP-UX 11.31.
204         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
205         HP-UX.
206
207 2010-11-21  Bruno Haible  <bruno@clisp.org>
208
209         Update for MacOS X 10.5.
210         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
211         MacOS X; the test fails on MacOS X 10.5.8.
212         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
213         about MacOS X.
214
215 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
216
217         bootstrap: add bootstrap_sync option.
218         See discussion at
219         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
220         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
221         * build-aux/bootstrap: Accept --bootstrap-sync to update
222         bootstrap if it is not identical to the local gnulib's
223         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
224         enable this by default.  Accept --no-bootstrap-sync to disable
225         it.
226
227 2010-11-20  Bruno Haible  <bruno@clisp.org>
228
229         Ensure that <features.h> is included before __GLIBC__ is tested.
230         * lib/printf-parse.h: Include <features.h>.
231         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
232         Reported by Mike Frysinger <vapier@gentoo.org>.
233
234         Ensure that <features.h> is included before __GLIBC__ is tested.
235         * lib/wchar.in.h: Include <features.h>.
236         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
237         * modules/wchar (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         * lib/arpa_inet.in.h: Include <features.h>.
242         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
243         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
244         Reported by Mike Frysinger <vapier@gentoo.org>.
245
246         Ensure that <features.h> is included before __GLIBC__ is tested.
247         * build-aux/link-warning.h: Include <features.h>.
248         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
249         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
250         Reported by Mike Frysinger <vapier@gentoo.org>.
251
252         Ensure that <features.h> is included before __GLIBC__ is tested.
253         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
254         Reported by Mike Frysinger <vapier@gentoo.org>.
255
256 2010-11-20  Bruno Haible  <bruno@clisp.org>
257
258         memmem: Fix autoconf test.
259         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
260
261 2010-11-20  Bruno Haible  <bruno@clisp.org>
262
263         Port to uClibc.
264         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
265         * lib/fcntl.in.h: Likewise.
266         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
267         * lib/mbrtowc.c (mbrtowc): Likewise.
268         * lib/relocatable.c (find_shared_library_fullname): Likewise.
269         * lib/strerror_r.c: Likewise.
270         * lib/unistr/u8-strnlen.c: Likewise.
271         * lib/vasnprintf.c (decimal_point_char): Likewise.
272         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
273         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
274         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
275         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
276         * tests/test-sigaction.c (handler, main): Likewise.
277         * lib/freading.h: Treat uClibc like a non-glibc platform.
278         * lib/freading.c: Likewise.
279         * lib/gettext.h: Likewise.
280         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
281         Likewise.
282         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
283         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
284         * lib/propername.c (proper_name_utf8): Likewise.
285         * lib/spawn.in.h: Likewise.
286         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
287         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
288         mem_cd_iconveh_internal): Likewise.
289         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
290         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
291         strstr, strcasestr): Likewise.
292         * lib/unicodeio.c (unicode_to_mb): Likewise.
293         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
294         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
295         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
296         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
297         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
298         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
299         * lib/unistr/u8-stpncpy.c: Likewise.
300         * lib/vasnprintf.c (VASNPRINTF): Likewise.
301         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
302         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
303         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
304         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
305         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
306         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
307         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
308         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
309         Likewise.
310         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
311         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
312         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
313         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
314         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
315         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
316         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
317         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
318         * tests/test-getopt.h (OPTIND_MIN): Likewise.
319         * tests/test-striconveha.c (main): Likewise.
320         * tests/test-vasnprintf-posix.c (test_function): Likewise.
321         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
322         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
323         * doc/posix-functions/getline.texi: Likewise.
324         Reported by Mike Frysinger <vapier@gentoo.org>.
325
326 2010-11-20  Bruno Haible  <bruno@clisp.org>
327
328         nproc: Fix condition.
329         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
330         HAVE_PTHREAD_AFFINITY_NP.
331
332 2010-11-20  Bruno Haible  <bruno@clisp.org>
333
334         Fix a comment.
335         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
336
337 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
338
339         ftoastr: don't assume snprintf
340         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
341         Implement a subset of snprintf here, by using sprintf safely.
342         * modules/ftoastr (Depends-on): Remove snprintf.
343
344 2010-11-19  Jim Meyering  <meyering@redhat.com>
345
346         test-rename.h: fix compilation failure
347         * tests/test-rename.h (test_rename): Add omitted "}".
348
349 2010-11-17  Jim Meyering  <meyering@redhat.com>
350
351         maint.mk: add a URL discussing the no-@acronym policy
352         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
353
354 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
355
356         ftoastr: depend on snprintf, improve comments
357         * lib/ftoastr.c: Also mention Loitsch's draft.
358         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
359         needed in the current implementation, but it might simplify
360         speeding up the code later.
361         * modules/ftoastr: Depend on snprintf; this improves portability.
362         Suggested by Bruno Haible in the same email.
363
364         ftoastr: port to hosts lacking strtof and strtold
365         Problem reported by Bruno Haible in
366         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
367         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
368         environment and strtold (and presumably strtof) are not available.
369         * modules/ftoastr (Files): Add m4/c-strtod.m4.
370         (configure.ac): Require gl_C99_STRTOLD.
371
372 2010-11-18  Bruno Haible  <bruno@clisp.org>
373
374         c-strtold: Avoid link error on AIX 7.
375         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
376         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
377         (gl_C_STRTOLD): Test whether strtold_l exists.
378         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
379
380 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
381
382         intprops: new macro INT_BITS_STRLEN_BOUND
383         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
384         ftoastr.h.  This exposes an internal of intprops.h that was formerly
385         not exposed.  Also, it uses a slightly tighter bound than before;
386         though this makes no practical difference, we might as well be as
387         tight as we easily can.
388
389         ftoastr: new module, for lossless conversion of floats to short strings
390         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
391         * modules/ftoastr: New files.
392
393 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
394
395         bootstrap: port to Solaris sed
396         * build-aux/bootstrap (get_version): Port to Solaris sed.
397         See Ralf Wildenhues's note in
398         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
399
400 2010-11-14  Jim Meyering  <meyering@redhat.com>
401
402         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
403         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
404         and move definition closer to sole use.
405
406 2010-11-13  Jim Meyering  <meyering@redhat.com>
407
408         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
409         Now we require at least autoconf-2.59, which means the work-around
410         is no longer needed.
411         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
412         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
413         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
414         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
415         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
416
417 2010-11-13  Bruno Haible  <bruno@clisp.org>
418
419         rename, renameat: Avoid test failures at NFS mounted locations.
420         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
421         functions.
422         (test_rename): Use assert_nonexistent.
423         * tests/test-rename.c: Include <dirent.h>.
424         * tests/test-renameat.c: Likewise.
425         Reported by Gary V. Vaughan <gary@gnu.org>.
426
427         rename, renameat: Document Linux bug with NFS
428         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
429         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
430         * doc/posix-functions/renameat.texi: Likewise.
431         Suggested by Eric Blake.
432
433 2010-11-13  Bruno Haible  <bruno@clisp.org>
434
435         rename test: Add comments.
436         * tests/test-rename.h (test_rename): Add structure and comments.
437
438 2010-11-13  Eric Blake  <eblake@redhat.com>
439
440         maintainer-makefile: cover a few more files
441         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
442         scripts generated within C files, for libvirt.
443
444 2010-11-13  Bruno Haible  <bruno@clisp.org>
445
446         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
447         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
448         character, return the number of bytes that belong together, not always
449         1.
450         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
451         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
452         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
453         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
454         number of bytes of an invalid character.
455         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
456         (main): Invoke it.
457         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
458         results.
459         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
460         malformed byte sequences.
461         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
462         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
463         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
464         Reported by Ben Pfaff and Paolo Bonzini.
465
466 2010-11-13  Bruno Haible  <bruno@clisp.org>
467
468         openat: Work around glibc bug with fchownat() and empty file names.
469         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
470         (gl_FUNC_FCHOWNAT): Invoke it.
471         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
472         * doc/posix-functions/fchownat.texi: Document the glibc bug.
473         Reported by Gary V. Vaughan <gary@gnu.org>.
474
475 2010-11-13  Bruno Haible  <bruno@clisp.org>
476
477         openat: Ensure autoconf macro ordering.
478         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
479         gl_USE_SYSTEM_EXTENSIONS.
480         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
481
482 2010-11-13  Bruno Haible  <bruno@clisp.org>
483
484         Update comments.
485         * lib/unistr/u8-check.c: Update file name in comments.
486         * lib/unistr/u8-mblen.c: Likewise.
487         * lib/unistr/u8-prev.c: Likewise.
488         * lib/unistr/u8-strmblen.c: Likewise.
489         * lib/unistr/u8-strmbtouc.c: Likewise.
490
491 2010-11-13  Jim Meyering  <meyering@redhat.com>
492
493         tests: avoid test failure on Solaris 10 due to lack of PATH export
494         * tests/test-update-copyright.sh: Don't forget to export PATH.
495
496         init.sh: ensure that IFS is defined, just in case...
497         * tests/init.sh (setup_): Ensure that IFS is defined,
498         so that saving and restoring it works as expected.  This
499         appears to be useful at least for an old version of dash
500         from a long time ago (RH 6).  See here for details:
501         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
502
503         maint.mk: tighten "test a == b" check
504         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
505         test to files that contain something like #!/bin/sh.
506         Without this, coreutils would get two false positives in
507         the comments of C source files.
508
509 2010-11-12  Eric Blake  <eblake@redhat.com>
510
511         bootstrap: fix typo in previous attempt
512         * build-aux/bootstrap (buildreq): Correct the grouping.
513         Reported by Paul Eggert.
514
515         maintainer-makefile: prohibit test x == x
516         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
517         Based on a report by Matthias Bolte.
518
519         bootstrap: allow FreeBSD gzip
520         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
521         which has no '.' and goes to stderr.
522         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
523         Reported by Matthias Bolte.
524
525         maintainer-makefile: check for i18n setup
526         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
527         will likely work.
528
529 2010-11-12  Bruno Haible  <bruno@clisp.org>
530
531         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
532         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
533         * lib/nanosleep.c (nanosleep): Likewise.
534
535 2010-11-11  Bruno Haible  <bruno@clisp.org>
536
537         fcntl-h: Fix for use of C++ on glibc systems.
538         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
539         also on glibc systems in C++ mode.
540         Reported by Gary V. Vaughan <gary@gnu.org>.
541
542 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
543
544         mknod: avoid false failure with dash
545         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
546
547 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
548
549         unlink: Fix "is it should" typo in diagnostic.
550         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
551         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
552
553 2010-11-11  Bruno Haible  <bruno@clisp.org>
554
555         Tests for module 'strerror_r-posix'.
556         * modules/strerror_r-posix-tests: New file.
557         * tests/test-strerror_r.c: New file.
558         * tests/test-string-c++.cc: Check the signature of strerror_r.
559
560         New module 'strerror_r-posix'.
561         * lib/string.in.h (strerror_r): New declaration.
562         * lib/strerror_r.c: New file.
563         * m4/strerror_r.m4: New file.
564         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
565         of strerror_r.
566         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
567         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
568         * modules/strerror_r-posix: New file.
569         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
570         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
571         * doc/posix-functions/strerror_r.texi: Mention the new module and the
572         portability problems.
573
574 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
575
576         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
577         line is also considered for output. Quoted function name in shell
578         command, so temporary files for functions like MyClass::operator()
579         are removed correctly without errors.
580
581 2010-11-09  Bruno Haible  <bruno@clisp.org>
582
583         * doc/posix-functions/strerror.texi: List more failing platforms.
584
585         * doc/posix-functions/strerror.texi: Add a comment.
586
587 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
588
589         fdopendir: fix bug on MacOS X when low on file descriptors
590
591         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
592         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
593         All callers changed.
594         (fdopendir): Invoke save_cwd at the top level, not after using
595         multiple dup() calls to use up file descriptors.  Then retry
596         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
597         less than the maximum number of open file descriptors, because
598         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
599         on Mac OS X 10.6.4 for tar 1.24
600         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
601         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
602         and for tar 1.25
603         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
604
605 2010-11-07  Bruno Haible  <bruno@clisp.org>
606
607         vasnprintf: Support I flag on glibc systems.
608         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
609         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
610         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
611         snprintf function.
612         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
613         glibc systems.
614         * tests/test-vasnprintf-posix3.c: New file.
615         * modules/vasnprintf-posix-tests (Files): Add it.
616         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
617
618 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
619
620         [html] Fix copy/paste bug: Use unique name for compiler warnings.
621         * MODULES.html.sh: For compiler warnings, use name
622         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
623
624 2010-11-05  Eric Blake  <eblake@redhat.com>
625
626         ceil, floor: avoid spurious failure with icc
627         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
628         [denormals-as-zero] when optimizing without -mieee-fp option.
629         * tests/test-floorf2.c (floorf_reference): Likewise.
630         * tests/test-ceilf1.c (dummy): New function.
631         (main): Use it to outsmart icc's optimization.
632         * tests/test-floorf1.c (dummy, main): Likewise.
633
634         tests: require working signbit
635         * modules/ceilf-tests (Depends-on): Add signbit.
636         * modules/ceill-tests (Depends-on): Likewise.
637         * modules/floorf-tests (Depends-on): Likewise.
638         * modules/floorl-tests (Depends-on): Likewise.
639         * modules/round-tests (Depends-on): Likewise.
640         * modules/roundf-tests (Depends-on): Likewise.
641         * modules/roundl-tests (Depends-on): Likewise.
642         * modules/trunc-tests (Depends-on): Likewise.
643         * modules/truncf-tests (Depends-on): Likewise.
644         * modules/truncl-tests (Depends-on): Likewise.
645
646         strtod: work around icc bug
647         * lib/strtod.c (minus_zero): Define to working value.
648         (strtod): Use it to avoid icc bug.
649
650         copysign: enhance tests
651         * modules/copysign-tests (Files): Add minus-zero.h.
652         * tests/test-copysign.c (main): Also test zeros.
653
654 2010-11-04  Eric Blake  <eblake@redhat.com>
655
656         ceil, floor, round, trunc: enhance tests of -0
657         * tests/test-ceilf1.c (main): Ensure correct sign of result.
658         * tests/test-ceill.c (main): Likewise.
659         * tests/test-floorf1.c (main): Likewise.
660         * tests/test-floorl.c (main): Likewise.
661         * tests/test-round1.c (main): Likewise.
662         * tests/test-roundf1.c (main): Likewise.
663         * tests/test-roundl.c (main): Likewise.
664         * tests/test-trunc1.c (main): Likewise.
665         * tests/test-truncf1.c (main): Likewise.
666         * tests/test-truncl.c (main): Likewise.
667
668 2010-11-04  Eric Blake  <eblake@redhat.com>
669
670         frexp, tests: work around ICC bug with -zero
671         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
672         works with more compilers.
673         * tests/minus-zero.h: New file.
674         * modules/ceilf-tests (Files): Include it.
675         * modules/ceill-tests (Files): Likewise.
676         * modules/floorf-tests (Files): Likewise.
677         * modules/floorl-tests (Files): Likewise.
678         * modules/frexp-nolibm-tests (Files): Likewise.
679         * modules/frexp-tests (Files): Likewise.
680         * modules/frexpl-nolibm-tests (Files): Likewise.
681         * modules/frexpl-tests (Files): Likewise.
682         * modules/isnan-tests (Files): Likewise.
683         * modules/isnand-nolibm-tests (Files): Likewise.
684         * modules/isnand-tests (Files): Likewise.
685         * modules/isnanf-nolibm-tests (Files): Likewise.
686         * modules/isnanf-tests (Files): Likewise.
687         * modules/isnanl-nolibm-tests (Files): Likewise.
688         * modules/isnanl-tests (Files): Likewise.
689         * modules/round-tests (Files): Likewise.
690         * modules/roundf-tests (Files): Likewise.
691         * modules/roundl-tests (Files): Likewise.
692         * modules/ldexpl-tests (Files): Likewise.
693         * modules/signbit-tests (Files): Likewise.
694         * modules/snprintf-posix-tests (Files): Likewise.
695         * modules/sprintf-posix-tests (Files): Likewise.
696         * modules/strtod-tests (Files): Likewise.
697         * modules/trunc-tests (Files): Likewise.
698         * modules/truncf-tests (Files): Likewise.
699         * modules/truncl-tests (Files): Likewise.
700         * modules/vsnprintf-posix-tests (Files): Likewise.
701         * modules/vsprintf-posix-tests (Files): Likewise.
702         * modules/vasnprintf-posix-tests (Files): Likewise.
703         * modules/vasprintf-posix-tests (Files): Likewise.
704         * tests/test-ceilf1.c (main): Use it.
705         * tests/test-ceill.c (main): Likewise.
706         * tests/test-floorf1.c (main): Likewise.
707         * tests/test-floorl.c (main): Likewise.
708         * tests/test-frexp.c (main): Likewise.
709         * tests/test-frexpl.c (main): Likewise.
710         * tests/test-isnan.c (main): Likewise.
711         * tests/test-isnand.h (main): Likewise.
712         * tests/test-isnanf.h (main): Likewise.
713         * tests/test-isnanl.h (main): Likewise.
714         * tests/test-ldexpl.c (main): Likewise.
715         * tests/test-round.c (main): Likewise.
716         * tests/test-roundf.c (main): Likewise.
717         * tests/test-roundl.c (main): Likewise.
718         * tests/test-signbit.c (test_signbitf, test_signbitd)
719         (test_signbitl): Likewise.
720         * tests/test-snprintf-posix.h (test_function): Likewise.
721         * tests/test-sprintf-posix.h (test_function): Likewise.
722         * tests/test-strtod.c (main): Likewise.
723         * tests/test-trunc1.c (main): Likewise.
724         * tests/test-truncf1.c (main): Likewise.
725         * tests/test-truncl.c (main): Likewise.
726
727         isnanl: work around icc bug
728         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
729
730 2010-11-03  Eric Blake  <eblake@redhat.com>
731
732         tests: fix compiler warnings
733         * tests/test-getopt.h (test_getopt): Fix condition.
734         * tests/test-getopt_long.h (test_getopt_long): Likewise.
735         * tests/test-pipe2.c (main): Likewise.
736         * tests/test-quotearg-simple.c (main): Avoid icc warning.
737
738         utimens: fix broken m4 test
739         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
740
741 2010-10-28  Bruno Haible  <bruno@clisp.org>
742
743         posix_spawn*, getdtablesize: Relax license.
744         * modules/posix_spawn (License): Change to LGPLv2+.
745         * modules/posix_spawnp (License): Likewise.
746         * modules/posix_spawn-internal (License): Likewise.
747         * modules/posix_spawnattr_init (License): Likewise.
748         * modules/posix_spawnattr_getflags (License): Likewise.
749         * modules/posix_spawnattr_setflags (License): Likewise.
750         * modules/posix_spawnattr_getpgroup (License): Likewise.
751         * modules/posix_spawnattr_setpgroup (License): Likewise.
752         * modules/posix_spawnattr_getschedparam (License): Likewise.
753         * modules/posix_spawnattr_setschedparam (License): Likewise.
754         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
755         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
756         * modules/posix_spawnattr_getsigdefault (License): Likewise.
757         * modules/posix_spawnattr_setsigdefault (License): Likewise.
758         * modules/posix_spawnattr_getsigmask (License): Likewise.
759         * modules/posix_spawnattr_setsigmask (License): Likewise.
760         * modules/posix_spawnattr_destroy (License): Likewise.
761         * modules/posix_spawn_file_actions_init (License): Likewise.
762         * modules/posix_spawn_file_actions_addclose (License): Likewise.
763         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
764         * modules/posix_spawn_file_actions_addopen (License): Likewise.
765         * modules/posix_spawn_file_actions_destroy (License): Likewise.
766         * modules/getdtablesize (License): Likewise.
767         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
768
769 2010-10-26  Bruno Haible  <bruno@clisp.org>
770
771         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
772         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
773         Cygwin and mingw.
774         Suggested by Eric Blake.
775
776 2010-10-26  Bruno Haible  <bruno@clisp.org>
777
778         stdio: Work around compilation error due to renameat() on Solaris 10.
779         * lib/stdio.in.h: Include <unistd.h> on Solaris.
780         * lib/renameat.c: Don't include <unistd.h> here.
781         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
782         Reported by Paul Eggert and Eric Blake.
783
784 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
785
786         renameat: port to Solaris 10, which declares renameat in unistd.h
787
788         * lib/renameat.c: Include unistd.h before stdio.h, because
789         Solaris 10 declares renameat in unistd.h.  Problem encountered
790         when building GNU tar 1.24 on Solaris 10.
791
792 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
793
794         fdopendir: fix C89 compilation
795         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
796         compilers.
797
798 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
799
800         inttostr: simplify by removing unnecessary redundancy
801         * lib/anytostr.c: Don't include verify.h.
802         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
803         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
804         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
805         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
806         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
807         Likewise.
808         * modules/inttostr (Depends-on): Remove 'verify'.
809
810 2010-10-23  Bruno Haible  <bruno@clisp.org>
811
812         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
813         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
814         Reported by Eric Blake.
815
816 2010-10-23  Bruno Haible  <bruno@clisp.org>
817
818         Tests: Fix LOCALE_JA on MirBSD 10.
819         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
820         to an UTF-8 locale.
821         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
822         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
823         Reported by Eric Blake.
824
825 2010-10-21  Bruno Haible  <bruno@clisp.org>
826
827         nl_langinfo test: Avoid test failure on NetBSD 5.
828         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
829         Reported by Eric Blake.
830
831 2010-10-21  Eric Blake  <eblake@redhat.com>
832
833         c-stack: work around libsigsegv 2.8 bug
834         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
835         overflow on at least PowerPC64.
836
837 2010-10-17  Bruno Haible  <bruno@clisp.org>
838
839         userspec: Drop redundant file.
840         * modules/userspec (Files): Remove lib/inttostr.h.
841
842 2010-10-17  Bruno Haible  <bruno@clisp.org>
843
844         nl_langinfo tests: Silence some warnings.
845         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
846         Reported by Jim Meyering.
847
848 2010-10-17  Bruno Haible  <bruno@clisp.org>
849
850         Make use of GCC's attribute __alloc_size__.
851         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
852         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
853         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
854         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
855         __alloc_size__.
856         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
857         Suggested by Jim Meyering.
858
859 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
860
861         bootstrap: anchor .gitignore entries.
862         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
863         with...
864         (insert_vc_ignore): ... this new function, which prepends `/' to
865         all .gitignore entries before passing them to
866         insert_sorted_if_absent.
867
868 2010-10-16  Bruno Haible  <bruno@clisp.org>
869
870         nextafter: Fix configure check.
871         * modules/nextafter (configure.ac): Correct expected prototype.
872
873 2010-10-16  Bruno Haible  <bruno@clisp.org>
874
875         termios: Update documentation.
876         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
877
878 2010-10-16  Bruno Haible  <bruno@clisp.org>
879
880         tests: Make them compile with TinyCC.
881         * tests/test-strstr.c (main): Remove parentheses around array
882         initializer.
883
884 2010-10-15  Eric Blake  <eblake@redhat.com>
885
886         ignore-value: make header idempotent
887         * lib/ignore-value.h: Add double-inclusion guards.
888         Reported by Stefan Berger.
889
890 2010-10-15  Jim Meyering  <meyering@redhat.com>
891
892         GNUmakefile: handle "stable" target, not "major"
893         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
894         lists in maint.mk and announce-gen.  Without this, "make stable"
895         would fail to ensure that $(VERSION) is up to date.
896
897 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
898
899         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
900         & co.
901
902 2010-10-14  Bruno Haible  <bruno@clisp.org>
903
904         vasnprintf: Don't set errno to 0.
905         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
906         block that sets it to 0.
907         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
908
909 2010-10-14  Bruno Haible  <bruno@clisp.org>
910
911         socketlib: Fix.
912         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
913         gl_PREREQ_SYS_H_WINSOCK2.
914         Reported by Ian Beckwith <ianb@erislabs.net>.
915
916 2010-10-13  Jim Meyering  <meyering@redhat.com>
917
918         test-select-stdin.c: avoid warn_unused_result warnings
919         * tests/test-select-stdin.c: Include "macros.h".
920         ASSERT that read and fflush succeed.
921
922 2010-10-13  Jim Meyering  <meyering@redhat.com>
923
924         git-version-gen: do require git-VC'd files in cwd
925         * build-aux/git-version-gen: Reject a git version string
926         if there are no commits associated with the current directory.
927         This avoids an unlikely false-positive (unrelated dir whose parent
928         repository also contains a tag matching v*), as pointed out
929         by Giuseppe Scrivano in
930         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
931
932 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
933
934         argv-iter: omit nonconforming declaration
935         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
936         enum arg_iter_err declaration, which doesn't conform to C99.
937         Solaris 10 cc warns about this.
938
939 2010-10-13  Eric Blake  <eblake@redhat.com>
940
941         termios: fix compilation on mingw
942         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
943         (gl_TERMIOS_H): Adjust it on mingw.
944         * modules/termios (Makefile.am): Substitute new key.
945         * lib/termios.in.h (includes): Make include_next conditional.
946         * doc/posix-headers/termios.texi (termios.h): Update
947         documentation.
948         Reported by Daniel P. Berrange.
949
950 2010-10-13  Jim Meyering  <meyering@redhat.com>
951
952         git-version-gen: don't require that .git/ be in the current dir
953         * build-aux/git-version-gen: Adjust this script so that it works
954         when run from any working directory beneath the top-level .git/-
955         containing directory.  Inspired by a patch from Giuseppe Scrivano,
956         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
957
958         test-select: avoid warn_unused_result warnings
959         * tests/test-select.c: Include "macros.h".
960         ASSERT that each call to read, write, and pipe succeeds.
961         While not technically required, also check each "close".
962         * modules/select-tests (Files): Add tests/macros.h.
963
964         test-symlinkat: remove declaration of unused local
965         * tests/test-symlinkat.c (main): Remove unused local, "buf".
966
967         test-inttostr: avoid shadowing warnings
968         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
969         and use malloc rather than the stack for the same reason as
970         mentioned in the comment justifying the other allocation.
971
972 2010-10-11  Bruno Haible  <bruno@clisp.org>
973
974         stdlib: Allow multiple gnulib generated replacements to coexist.
975         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
976         Reported by Sam Steingold <sds@gnu.org>.
977
978 2010-10-11  Jim Meyering  <meyering@redhat.com>
979
980         fix a documentation typo
981         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
982
983 2010-10-11  Eric Blake  <eblake@redhat.com>
984
985         futimens: work around Solaris 11 bug
986         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
987         * tests/test-futimens.h (test_futimens): Enhance, rather than
988         weaken test.
989         * doc/posix-functions/futimens.texi (futimens): Document the bug.
990
991 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
992
993         Indentation.
994         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
995         higher-level operators more to the left.
996
997 2010-10-11  Jim Meyering  <meyering@redhat.com>
998
999         test-futimens: avoid unwarranted test failure on Solaris 5.11
1000         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
1001         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
1002         because it tries to dereference the NULL name argument.
1003
1004 2010-10-11  Bruno Haible  <bruno@clisp.org>
1005
1006         Indentation.
1007         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
1008         indentation.
1009
1010 2010-10-11  Jim Meyering  <meyering@redhat.com>
1011
1012         spawn.in.h: make indentation consistent with parentheses
1013         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
1014         Make indentation consistent with parentheses.
1015
1016 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
1017
1018         Fix mismatched parens in previous commit
1019         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
1020         parens.
1021
1022 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
1023
1024         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
1025
1026         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
1027         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
1028         * lib/malloca.c: Include "verify.h".
1029         (verify1): Remove, replacing with a verify call.
1030         * lib/relocwrapper.c (verify1): Likewise.
1031         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
1032         Likewise.
1033         * modules/malloca (Depends-on): Add 'verify'.
1034         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
1035         * modules/vasnprintf (Depends-on): Add 'verify'.
1036         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1037         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1038         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1039         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1040         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1041         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1042         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1043
1044         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
1045
1046         Formerly the style was sometimes 2*X - 1, because the C standard
1047         was wrongly thought to disallow ?: in integral constant expressions.
1048         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
1049         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
1050         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
1051         * lib/stdint.in.h (_verify_intmax_size): Likewise.
1052         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
1053         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
1054         verify that time_t cannot be floating.
1055
1056 2010-10-08  Eric Blake  <eblake@redhat.com>
1057
1058         time: enforce recent POSIX ruling that time_t is integral
1059         * lib/time.in.h (__time_t_must_be_integral): Detect any
1060         problematic systems, allowing the rest of gnulib to assume POSIX.
1061
1062 2010-10-08  Jim Meyering  <meyering@redhat.com>
1063
1064         fdopendir: fix a bug on systems lacking openat and /proc support
1065         OpenBSD 4.7 is one such system.  The most noticeable effect was
1066         failure of any application making nontrivial use of fts: rm, du,
1067         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
1068           ./rm: traversal failed: `a': Bad file descriptor
1069         Debugging that, you see that even though FD 6 was closed just
1070         prior to the opendir call in fd_clone_opendir, its resulting
1071         dir->dd_fd was 8, rather than the expected value of 6:
1072
1073         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
1074         93                close (fd);
1075         (gdb) n
1076         94                dir = fd_clone_opendir (dupfd);
1077         (gdb) n
1078         95                saved_errno = errno;
1079         (gdb) p dir->dd_fd
1080         $11 = 8
1081
1082         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
1083         The problem is that on OpenBSD, fd_clone_opendir has to resort
1084         to using the old-style save/restore CWD mechanism, due to its
1085         lack of openat/proc support, and *that* would steal the FD (6)
1086         that opendir was supposed to use.
1087
1088         The fix is to squirrel away the desired FD so that save_cwd uses a
1089         different one, and then free the dest FD right before calling opendir.
1090         That guarantees opendir will use the required file descriptor.
1091
1092         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
1093
1094 2010-10-08  Bruno Haible  <bruno@clisp.org>
1095
1096         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
1097         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
1098
1099 2010-10-08  Bruno Haible  <bruno@clisp.org>
1100
1101         nanosleep: Make replacement POSIX compliant.
1102         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
1103         is out of range.
1104         Reported by Jim Meyering.
1105
1106 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1107
1108         bootstrap: add hook for altering gnulib.mk, for Bison
1109         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
1110         the Bison bootstrapping process can rewrite file names and variables
1111         in this file before later parts of 'bootstrap' use the file.
1112         Bison wants to include lib/gnulib.mk from the top-level makefile,
1113         so it needs the file names in this file to be relative to the top
1114         level, not relative to lib; plus it needs variable names to be
1115         rewritten.
1116         (slurp): Use the new function.
1117
1118         bootstrap: reformat for readability
1119         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
1120
1121 2010-10-08  Eric Blake  <eblake@redhat.com>
1122
1123         docs: update cygwin progress
1124         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
1125         1.7.7.
1126         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
1127         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
1128         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
1129         * doc/posix-functions/carg.texi (carg): Likewise.
1130         * doc/posix-functions/cargf.texi (cargf): Likewise.
1131         * doc/posix-functions/casin.texi (casin): Likewise.
1132         * doc/posix-functions/casinf.texi (casinf): Likewise.
1133         * doc/posix-functions/casinh.texi (casinh): Likewise.
1134         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
1135         * doc/posix-functions/catan.texi (catan): Likewise.
1136         * doc/posix-functions/catanf.texi (catanf): Likewise.
1137         * doc/posix-functions/catanh.texi (catanh): Likewise.
1138         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
1139         * doc/posix-functions/ccos.texi (ccos): Likewise.
1140         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
1141         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
1142         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
1143         * doc/posix-functions/cexp.texi (cexp): Likewise.
1144         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
1145         * doc/posix-functions/cimag.texi (cimag): Likewise.
1146         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
1147         * doc/posix-functions/clog.texi (clog): Likewise.
1148         * doc/posix-functions/clogf.texi (clogf): Likewise.
1149         * doc/posix-functions/conj.texi (conj): Likewise.
1150         * doc/posix-functions/conjf.texi (conjf): Likewise.
1151         * doc/posix-functions/cpow.texi (cpow): Likewise.
1152         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
1153         * doc/posix-functions/cproj.texi (cproj): Likewise.
1154         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
1155         * doc/posix-functions/creal.texi (creal): Likewise.
1156         * doc/posix-functions/crealf.texi (crealf): Likewise.
1157         * doc/posix-functions/csin.texi (csin): Likewise.
1158         * doc/posix-functions/csinf.texi (csinf): Likewise.
1159         * doc/posix-functions/csinh.texi (csinh): Likewise.
1160         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
1161         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
1162         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
1163         * doc/posix-functions/ctan.texi (ctan): Likewise.
1164         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
1165         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
1166         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
1167         * doc/posix-headers/complex.texi (complex.h): Likewise.
1168
1169 2010-10-07  Jim Meyering  <meyering@redhat.com>
1170
1171         parse-datetime: avoid compilation failure on OpenBSD 4.7
1172         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
1173         This works around a compilation failure on OpenBSD 4.7:
1174         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
1175
1176 2010-10-07  Eric Blake  <eblake@redhat.com>
1177
1178         docs: update cygwin progress
1179         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
1180         1.7.6.
1181         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
1182         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
1183         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
1184         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
1185         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
1186         Likewise.
1187         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
1188         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
1189         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
1190         Likewise.
1191         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
1192         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
1193         Likewise.
1194         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
1195         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
1196         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
1197         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
1198         Likewise.
1199         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
1200         Likewise.
1201         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
1202
1203         docs: update parse-datetime history
1204         * doc/parse-datetime.texi (Authors of parse_datetime): Better
1205         documentation of this function's history and alternatives.
1206
1207         cygwin: use more robust version check
1208         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
1209         exclude an eventual cygwin 1.9.1.
1210         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1211         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
1212         (gl_FUNC_STRCASESTR): Likewise.
1213         Reported by Bruno Haible.
1214
1215 2010-10-06  Bruno Haible  <bruno@clisp.org>
1216
1217         string, sys_select: Avoid #including large headers unless necessary.
1218         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
1219         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
1220         OSF/1, BeOS, Haiku.
1221         Reported by Jim Meyering.
1222
1223 2010-10-05  Eric Blake  <eblake@redhat.com>
1224
1225         memmem, strstr, strcasestr: fix bug with long periodic needle
1226         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
1227         periodic needle having false positive.
1228         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
1229         and cygwin 1.7.7.
1230         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
1231         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
1232         (gl_FUNC_STRCASESTR): Likewise.
1233         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1234         * tests/test-memmem.c (main): Expose the bug.
1235         * tests/test-strcasestr.c (main): Likewise.
1236         * tests/test-strstr.c (main): Likewise.
1237         * tests/test-c-strcasestr.c (main): Likewise.
1238         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
1239         * doc/posix-functions/strstr.texi (strstr): Likewise.
1240         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
1241         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
1242
1243 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1244
1245         parse-datetime: do some more renaming
1246         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
1247         parse_datetime, not get_date.  Mention the renaming.
1248         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
1249         in comments.
1250         * m4/bison.m4: Likewise.
1251
1252 2010-10-05  Eric Blake  <eblake@redhat.com>
1253
1254         parse-datetime: better name than get_date
1255         * NEWS: Reword the deprecation notice.
1256         * modules/get_date: Rename to modules/parse-datetime.
1257         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
1258         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
1259         * lib/get_date.y: Rename to lib/parse-datetime.y.
1260         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
1261         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
1262         * doc/getdate.texi: Provide fallback wrapper.
1263         * lib/getdate.h: Move guts, and wrap...
1264         * lib/parse-datetime.h: ...new file.
1265         * lib/parse-datetime.y (get_date): Rename...
1266         (parse_datetime): ...to this.
1267         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
1268         (gl_PARSE_DATETIME): ...to this.
1269         * doc/posix-functions/getdate.texi (get_date): Provide fallback
1270         documentation.
1271         * modules/getdate (Files): Provide fallback docs and header.
1272         (Notice, Depends-on): Update references.
1273         * tests/test-parse-datetime.c: Likewise.
1274         * DEPENDENCIES: Likewise.
1275         * MODULES.html.sh (Date and time <time.h>): Likewise.
1276         * doc/parse-datetime.texi (Date input formats)
1277         (Authors of parse_datetime): Likewise.
1278         * modules/parse-datetime (Files, configure.ac, Makefile.am)
1279         (Include): Likewise.
1280         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
1281         * gnulib-tool: Likewise.
1282         * m4/bison.m4 (gl_BISON): Likewise.
1283         Suggested by Bruno Haible.
1284
1285 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1286
1287         more ports to Solaris tr, which needs [] around ranges
1288         * gnulib-tool: Solaris tr needs [] around ranges.
1289         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
1290         * tests/test-pipe-filter-gi1.c (main): Likewise.
1291         * tests/test-pipe-filter-ii1.c (main): Likewise.
1292
1293 2010-10-05  Eric Blake  <eblake@redhat.com>
1294
1295         bootstrap: fix Solaris regression
1296         * build-aux/bootstrap (check_versions): Solaris tr still needs []
1297         around ranges.
1298         Reported by Pádraig Brady.
1299
1300         bootstrap: work with pkg-config
1301         * build-aux/bootstrap (check_versions): Also transliterate - in
1302         prerequisite name.
1303         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
1304         prerequisites that were already found, to avoid confusion.
1305         Reported by Justin Clift.
1306
1307         faccessat: remove unused wrappers
1308         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
1309         presence of these wrappers dragged in -lgen on Solaris.
1310         Reported by Clemens Brogi; fix suggested by Paul Eggert.
1311
1312 2010-10-05  Jim Meyering  <meyering@redhat.com>
1313
1314         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
1315         * Makefile (sc_pragma_columns): New syntax-check rule.
1316
1317 2010-10-04  Bruno Haible  <bruno@clisp.org>
1318
1319         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
1320         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
1321         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
1322         Reported by Bruce Korb and Eric Blake.
1323
1324 2010-10-04  Bruno Haible  <bruno@clisp.org>
1325
1326         threadlib: Make option --with-libpth-prefix work.
1327         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
1328         use $LIBPTH, not just -lpth.
1329
1330 2010-10-04  Bruno Haible  <bruno@clisp.org>
1331
1332         Avoid line length limitation from HP NonStop system header files.
1333         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
1334         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
1335         * lib/ctype.in.h: Likewise.
1336         * lib/dirent.in.h: Likewise.
1337         * lib/errno.in.h: Likewise.
1338         * lib/fcntl.in.h: Likewise.
1339         * lib/float.in.h: Likewise.
1340         * lib/getopt.in.h: Likewise.
1341         * lib/iconv.in.h: Likewise.
1342         * lib/inttypes.in.h: Likewise.
1343         * lib/langinfo.in.h: Likewise.
1344         * lib/locale.in.h: Likewise.
1345         * lib/math.in.h: Likewise.
1346         * lib/netdb.in.h: Likewise.
1347         * lib/netinet_in.in.h: Likewise.
1348         * lib/poll.in.h: Likewise.
1349         * lib/pthread.in.h: Likewise.
1350         * lib/pty.in.h: Likewise.
1351         * lib/sched.in.h: Likewise.
1352         * lib/se-selinux.in.h: Likewise.
1353         * lib/search.in.h: Likewise.
1354         * lib/signal.in.h: Likewise.
1355         * lib/spawn.in.h: Likewise.
1356         * lib/stdarg.in.h: Likewise.
1357         * lib/stddef.in.h: Likewise.
1358         * lib/stdint.in.h: Likewise.
1359         * lib/stdio.in.h: Likewise.
1360         * lib/stdlib.in.h: Likewise.
1361         * lib/string.in.h: Likewise.
1362         * lib/strings.in.h: Likewise.
1363         * lib/sys_file.in.h: Likewise.
1364         * lib/sys_ioctl.in.h: Likewise.
1365         * lib/sys_select.in.h: Likewise.
1366         * lib/sys_socket.in.h: Likewise.
1367         * lib/sys_stat.in.h: Likewise.
1368         * lib/sys_time.in.h: Likewise.
1369         * lib/sys_times.in.h: Likewise.
1370         * lib/sys_utsname.in.h: Likewise.
1371         * lib/sys_wait.in.h: Likewise.
1372         * lib/sysexits.in.h: Likewise.
1373         * lib/termios.in.h: Likewise.
1374         * lib/time.in.h: Likewise.
1375         * lib/unistd.in.h: Likewise.
1376         * lib/wchar.in.h: Likewise.
1377         * lib/wctype.in.h: Likewise.
1378         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
1379         * modules/ctype (Makefile.am): Likewise.
1380         * modules/dirent (Makefile.am): Likewise.
1381         * modules/errno (Makefile.am): Likewise.
1382         * modules/fcntl-h (Makefile.am): Likewise.
1383         * modules/float (Makefile.am): Likewise.
1384         * modules/getopt-posix (Makefile.am): Likewise.
1385         * modules/iconv-h (Makefile.am): Likewise.
1386         * modules/inttypes (Makefile.am): Likewise.
1387         * modules/langinfo (Makefile.am): Likewise.
1388         * modules/locale (Makefile.am): Likewise.
1389         * modules/math (Makefile.am): Likewise.
1390         * modules/netdb (Makefile.am): Likewise.
1391         * modules/netinet_in (Makefile.am): Likewise.
1392         * modules/poll-h (Makefile.am): Likewise.
1393         * modules/pthread (Makefile.am): Likewise.
1394         * modules/pty (Makefile.am): Likewise.
1395         * modules/sched (Makefile.am): Likewise.
1396         * modules/search (Makefile.am): Likewise.
1397         * modules/selinux-h (Makefile.am): Likewise.
1398         * modules/signal (Makefile.am): Likewise.
1399         * modules/spawn (Makefile.am): Likewise.
1400         * modules/stdarg (Makefile.am): Likewise.
1401         * modules/stddef (Makefile.am): Likewise.
1402         * modules/stdint (Makefile.am): Likewise.
1403         * modules/stdio (Makefile.am): Likewise.
1404         * modules/stdlib (Makefile.am): Likewise.
1405         * modules/string (Makefile.am): Likewise.
1406         * modules/strings (Makefile.am): Likewise.
1407         * modules/sys_file (Makefile.am): Likewise.
1408         * modules/sys_ioctl (Makefile.am): Likewise.
1409         * modules/sys_select (Makefile.am): Likewise.
1410         * modules/sys_socket (Makefile.am): Likewise.
1411         * modules/sys_stat (Makefile.am): Likewise.
1412         * modules/sys_time (Makefile.am): Likewise.
1413         * modules/sys_times (Makefile.am): Likewise.
1414         * modules/sys_utsname (Makefile.am): Likewise.
1415         * modules/sys_wait (Makefile.am): Likewise.
1416         * modules/sysexits (Makefile.am): Likewise.
1417         * modules/termios (Makefile.am): Likewise.
1418         * modules/time (Makefile.am): Likewise.
1419         * modules/unistd (Makefile.am): Likewise.
1420         * modules/wchar (Makefile.am): Likewise.
1421         * modules/wctype (Makefile.am): Likewise.
1422
1423 2010-10-04  Bruno Haible  <bruno@clisp.org>
1424
1425         read-file tests: Avoid a test failure on NonStop Kernel.
1426         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
1427         a regular file.
1428         Reported by Joachim Schmitz <schmitz@hp.com>.
1429
1430 2010-10-03  Bruno Haible  <bruno@clisp.org>
1431
1432         gnulib-tool: Fixes for --create-testdir with --libtool.
1433         * gnulib-tool (func_get_automake_snippet): Don't augment
1434         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
1435         an executable.
1436         (func_create_testdir): Handle module 'alloca' like func_import.
1437         Reported by Bruce Korb <bruce.korb@gmail.com>.
1438
1439 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
1440
1441         Avoid some lines longer than 80 characters.
1442         * lib/stdint.in.h: Break long comment lines.
1443         * lib/math.in.h: Likewise.
1444         (_GL_NUM_UINT_WORDS): New macro, for readability.
1445         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
1446         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
1447         * lib/stdlib.in.h: Likewise.
1448         * lib/spawn.in.h: Likewise.
1449         * lib/sys_socket.in.h: Update an URL.
1450         * lib/sys_stat.in.h: Break long line.
1451
1452 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
1453
1454         Improve pmccabe2html.
1455         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
1456         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
1457         when the sources change. Remove the line in the HTML about "Used
1458         ranges" (which implied that there might be other unused ranges),
1459         rename "Resume" to "Summary" (easier to understand for more users).
1460         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
1461         styles, and some unnecessary blank lines.
1462
1463 2010-10-03  Bruno Haible  <bruno@clisp.org>
1464             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1465
1466         acl: Add support for ACLs on NonStop Kernel.
1467         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
1468         Check whether the function aclsort() exists.
1469         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
1470         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
1471         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1472         (acl_nontrivial [HAVE_ACLSORT]: New function.
1473         (file_has_acl): Implement for NonStop Kernel.
1474         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1475         (qset_acl): Implement for NonStop Kernel.
1476         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
1477         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1478         (main): Implement for NonStop Kernel.
1479         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
1480         Kernel. Handle this flavor.
1481         * tests/test-set-mode-acl.sh: Likewise.
1482         * tests/test-copy-acl.sh: Likewise.
1483         * tests/test-copy-file.sh: Likewise.
1484
1485 2010-10-03  Bruno Haible  <bruno@clisp.org>
1486
1487         Info about ACLs on NonStop Kernel.
1488         * doc/acl-resources.txt: Add info about NonStop Kernel.
1489         References by Joachim Schmitz <schmitz@hp.com>.
1490
1491 2010-10-02  Bruno Haible  <bruno@clisp.org>
1492
1493         Define missing EDQUOT on NonStop Kernel.
1494         * lib/errno.in.h (EDQUOT): Assign a value if missing.
1495         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
1496         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
1497         missing.
1498         * doc/posix-headers/errno.texi: Mention the NSK bug.
1499         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
1500         Reported by Joachim Schmitz <schmitz@hp.com>.
1501
1502 2010-10-02  Bruno Haible  <bruno@clisp.org>
1503
1504         Update doc for POSIX:2008.
1505         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
1506         Update URL of POSIX specification.
1507
1508 2010-10-02  Bruno Haible  <bruno@clisp.org>
1509
1510         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
1511         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
1512         from gnulib, not from Automake.
1513
1514 2010-10-02  Bruno Haible  <bruno@clisp.org>
1515
1516         New module 'system-posix'.
1517         * modules/system-posix: New file.
1518         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
1519         module is present.
1520         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
1521         GNULIB_SYSTEM_POSIX.
1522         * modules/stdlib (Depends-on): Remove sys_wait.
1523         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
1524         * doc/posix-functions/system.texi: Mention the new module.
1525         * doc/posix-headers/stdlib.texi: Likewise.
1526         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
1527         define test_sys_wait_macros to a no-op.
1528         Reported by Sam Steingold <sds@gnu.org>.
1529
1530 2010-09-30  Bruno Haible  <bruno@clisp.org>
1531
1532         More renaming from 'getdate' to 'get_date'.
1533         * doc/get_date.texi: Renamed from doc/getdate.texi.
1534         * modules/get_date (Files): Update.
1535         * MODULES.html.sh (Date and time <time.h>): Update.
1536         * DEPENDENCIES: Update.
1537         * gnulib-tool: Update comment.
1538         * m4/bison.m4 (gl_BISON): Likewise.
1539         * m4/get_date.m4 (gl_GET_DATE): Likewise.
1540
1541 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
1542
1543         bootstrap: support ACLOCAL_FLAGS during aclocal
1544         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
1545         can add additional -I dir for third-party .m4 files.
1546
1547 2010-09-30  Eric Blake  <eblake@redhat.com>
1548
1549         bootstrap: use glibtoolize on MacOS
1550         * build-aux/bootstrap (check_versions): Convert libtool into
1551         libtoolize.
1552         (tool search): Move libtool check earlier, and look for
1553         glibtoolize for MacOS.
1554         (gnulib_tool_options): Auto-add --libtool when appropriate.
1555         Reported by Justin Clift.
1556
1557         poll: fix typo that broke test on MacOS
1558         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
1559         Reported by Justin Clift.
1560
1561         getdate: rename to get_date
1562         Note: getdate.h is not renamed, to minimize client impact.
1563         * modules/getdate: Mark obsolete.  Move old contents...
1564         * modules/get_date: ...to new module name.
1565         * modules/getdate-tests: Move...
1566         * modules/get_date-tests: ...here.
1567         * m4/getdate.m4: Move...
1568         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
1569         * lib/getdate.y: Move...
1570         * lib/get_date.y: ...here.
1571         * tests/test-getdate.c: Move...
1572         * tests/test-get_date.c: ...here.
1573         * doc/posix-functions/getdate.texi (getdate): Update name.
1574         * NEWS: Mention the change.
1575
1576 2010-09-29  Bruno Haible  <bruno@clisp.org>
1577
1578         Separate the module 'waitpid' from the module 'sys_wait'.
1579         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
1580         present.
1581         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
1582         gl_MODULE_INDICATOR_FOR_TESTS.
1583         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
1584         * modules/sys_wait (Depends-on): Remove waitpid.
1585         (Makefile.am): Substitute GNULIB_WAITPID.
1586         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
1587         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
1588         signature only if the 'waitpid' module is present.
1589         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
1590         * NEWS: Mention the change.
1591         * modules/grantpt (Depends-on): Add waitpid.
1592         * modules/wait-process (Depends-on): Likewise.
1593
1594 2010-09-29  Bruno Haible  <bruno@clisp.org>
1595
1596         More tests for module 'sys_wait'.
1597         * modules/sys_wait-c++-tests: New file.
1598         * tests/test-sys_wait-c++.cc: New file.
1599         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
1600         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1601
1602 2010-09-29  Bruno Haible  <bruno@clisp.org>
1603
1604         New module 'waitpid'.
1605         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
1606         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
1607         Don't include <process.h>.
1608         (waitpid): Declare only, using modern idiom.
1609         * m4/waitpid.m4: New file.
1610         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
1611         * modules/waitpid: New file.
1612         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
1613         (Makefile.am): Update.
1614         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1615
1616 2010-09-28  Bruno Haible  <bruno@clisp.org>
1617
1618         poll: Assume ANSI C.
1619         * lib/poll.c (poll): Use an ANSI C declaration.
1620
1621 2010-09-28  Bruno Haible  <bruno@clisp.org>
1622
1623         poll-h: Create poll.h on all platforms.
1624         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
1625         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
1626         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
1627         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
1628         (gl_REPLACE_POLL_H): Don't set POLL_H.
1629         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
1630         * modules/poll-h (Depends-on): Add include_next.
1631         (Makefile.am): Create poll.h unconditionally. Substitute also
1632         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
1633
1634 2010-09-28  Bruno Haible  <bruno@clisp.org>
1635
1636         Tests for module 'poll-h'.
1637         * modules/poll-h-c++-tests: New file.
1638         * tests/test-poll-h-c++.cc: New file.
1639
1640         Tests for module 'poll-h'.
1641         * modules/poll-h-tests: New file.
1642         * tests/test-poll-h.c: New file.
1643
1644 2010-09-28  Bruno Haible  <bruno@clisp.org>
1645
1646         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
1647         * modules/poll-h (Depends-on): Add 'extensions'.
1648
1649 2010-09-28  Bruno Haible  <bruno@clisp.org>
1650
1651         New module 'poll-h'.
1652         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
1653         (poll): Use modern idiom.
1654         * modules/poll-h: New file.
1655         * modules/poll (Files): Remove lib/poll.in.h.
1656         (Depends-on): Add poll-h.
1657         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
1658         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
1659         * m4/poll_h.m4: New file.
1660         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
1661         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
1662         and invoke gl_REPLACE_POLL_H.
1663         * lib/poll.c: Use common idiom.
1664         * tests/test-poll.c: Likewise.
1665         * doc/posix-headers/poll.texi: Mention the poll-h module.
1666         Suggested by Eric Blake.
1667
1668 2010-09-26  Bruno Haible  <bruno@clisp.org>
1669
1670         sys_wait: Implement WSTOPSIG.
1671         * lib/sys_wait.in.h (WSTOPSIG): New macro.
1672         Reported by Simon Josefsson.
1673
1674 2010-09-26  Simon Josefsson  <simon@josefsson.org>
1675
1676         stdlib, sys_wait: Avoid compilation error on mingw.
1677         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
1678
1679 2010-09-26  Bruno Haible  <bruno@clisp.org>
1680
1681         stdlib tests: Avoid code duplication.
1682         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
1683         * modules/sys_wait-tests (Files): Likewise.
1684         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
1685         * tests/test-stdlib.c: Include test-sys_wait.h.
1686         (main): Invoke test_sys_wait_macros.
1687         * tests/test-sys_wait.c: Include test-sys_wait.h.
1688         (main): Invoke test_sys_wait_macros.
1689
1690 2010-09-25  Simon Josefsson  <simon@josefsson.org>
1691
1692         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
1693         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
1694         sure Windows sockets are working before calling getaddrinfo.
1695         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
1696         * doc/gnulib.texi (Windows sockets): Fix typo.
1697
1698 2010-09-25  Bruno Haible  <bruno@clisp.org>
1699
1700         Tests for module 'regex-quote'.
1701         * modules/regex-quote-tests: New file.
1702         * tests/test-regex-quote.c: New file.
1703
1704         New module 'regex-quote'.
1705         * lib/regex-quote.h: New file.
1706         * lib/regex-quote.c: New file.
1707         * modules/regex-quote: New file.
1708         Suggested by Reuben Thomas <rrt@sc3d.org>.
1709
1710 2010-09-24  Bruno Haible  <bruno@clisp.org>
1711
1712         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
1713         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
1714
1715 2010-09-23  Bruno Haible  <bruno@clisp.org>
1716
1717         setenv: Relax license.
1718         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
1719         Blake.
1720         Requested by Eric Blake.
1721
1722 2010-09-22  Bruno Haible  <bruno@clisp.org>
1723
1724         termios: Relax license.
1725         * modules/termios (License): Change to LGPLv2+.
1726         Requested by Eric Blake.
1727
1728 2010-09-22  Bruno Haible  <bruno@clisp.org>
1729
1730         threadlib: Allow the package to change the default to 'no'.
1731         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
1732         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
1733         Reported by Paul Eggert.
1734
1735 2010-09-22  Pádraig Brady  <P@draigbrady.com>
1736             Bruno Haible  <bruno@clisp.org>
1737
1738         Fix endless loop in mbmemcasecoll.
1739         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
1740         byte.
1741         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
1742
1743 2010-09-22  Bruno Haible  <bruno@clisp.org>
1744
1745         Tests for module 'memcoll'.
1746         * modules/memcoll-tests: New file.
1747         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
1748
1749         memcoll, xmemcoll: Clarify size vs. length.
1750         * modules/memcoll.c (memcoll0): Clarify specification.
1751         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
1752         passed to collate_error.
1753
1754 2010-09-22  Bruno Haible  <bruno@clisp.org>
1755
1756         Tests for module 'memcasecmp'.
1757         * modules/memcasecmp-tests: New file.
1758         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
1759
1760 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1761
1762         * lib/pthread.in.h: Add split double-inclusion guard, and include
1763         system <pthread.h> if there is one.  Use @@-style as in other
1764         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
1765         pthread.h doesn't.
1766         (pthread_mutexattr_destroy, pthread_mutexattr_init):
1767         (pthread_mutexattr_settype, pthread_mutex_trylock):
1768         New static inline functions, if there's no system <pthread.h>.
1769         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
1770         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
1771         Approximate with mutexes if the system lacks spinlocks, as in
1772         MacOS.
1773         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
1774         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
1775         @@-style.  Check for spinlocks separately.
1776         (gl_PTHREAD_DEFAULTS): New macro.
1777         * modules/pthread: Redo to use a more typical style for in.h files.
1778
1779 2010-09-21  Eric Blake  <eblake@redhat.com>
1780
1781         net_if: enhance tests
1782         * tests/test-net_if.c (main): Move signature checks earlier.
1783         Print failures to stderr.
1784         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
1785         Document the bug that we do not yet fix.
1786
1787 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1788
1789         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
1790         about gnulib, not GSS.
1791
1792 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1793
1794         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
1795         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
1796         for Emacs.
1797         * build-aux/pmccabe2html: Make Makefile.am example code more
1798         cut-and-paste friendly.
1799
1800 2010-09-21  Simon Josefsson  <simon@josefsson.org>
1801
1802         * tests/test-net_if.c: New file.
1803         * modules/net_if-tests: New file.
1804
1805 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1806
1807         pthread: add pthread_spin_destroy
1808         * lib/pthread.in.h (pthread_spin_destroy): New function.
1809
1810 2010-09-19  Bruno Haible  <bruno@clisp.org>
1811
1812         gnulib-tool: Fix --help output.
1813         * gnulib-tool (func_usage): Fix help message.
1814         Reported by Reuben Thomas <rrt@sc3d.org>.
1815
1816 2010-09-18  Jim Meyering  <meyering@redhat.com>
1817
1818         maint.mk: avoid unexpanded \n in two diagnostics
1819         * top/maint.mk (sc_prohibit_always_true_header_tests):
1820         Don't use a literal \n in a halt=... assignment.  It would not be
1821         expanded, and the two \n bytes would appear in the diagnostic output
1822         rather than the desired newline.  Use halt=$$(printf ... instead.
1823         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
1824
1825 2010-09-18  Bruno Haible  <bruno@clisp.org>
1826
1827         netinet_in: Doc tweak.
1828         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
1829         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1830
1831 2010-09-18  Jim Meyering  <meyering@redhat.com>
1832
1833         init.sh: correct an outdated comment
1834         * tests/init.sh (create_exe_shims_):  s/function/alias/
1835
1836         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
1837         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
1838         a file named "*.exe" is removed between the glob expansion and the
1839         processing of that oddly named file.
1840
1841 2010-09-17  Eric Blake  <eblake@redhat.com>
1842
1843         mirbsd: add some more support
1844         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
1845         in BSD family.
1846         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
1847         devices as OpenBSD.
1848         * m4/host-os.m4 (mirbsd): Add MirBSD.
1849
1850         tests: fix unportable assumption on sys/wait.h
1851         * tests/test-sys_wait.c (main): Relax test.
1852         * tests/test-stdlib.c (main): Likewise.
1853
1854         init.sh: accomodate directory with no .exes
1855         * tests/init.sh: Accomodate directory containing only scripts.
1856
1857         tests: avoid compiler warning
1858         * tests/test-stdlib.c (main): Use the variable.
1859
1860         fdutimens, fdutimensat: update signature, again
1861         * lib/utimens.h (gl_futimens): Delete, and move signature...
1862         (fdutimens): ...here.
1863         (fdutimensat): Rearrange signature.
1864         (lutimensat): Rename variable for clarity.
1865         * lib/fdutimensat.c (fdutimensat): Update signature.
1866         * lib/utimens.c (fdutimens): Likewise.
1867         (gl_futimens): Delete.
1868         (utimens, lutimens): Update callers.
1869         * lib/futimens.c (futimens): Likewise.
1870         * tests/test-fdutimensat.c: Likewise.
1871         * tests/test-utimens.c: Likewise.
1872         * tests/test-futimens.h: Update comment.
1873         * NEWS: Mention this.
1874         Suggested by Paul Eggert.
1875
1876 2010-09-17  Bruno Haible  <bruno@clisp.org>
1877
1878         Take over the maintenance of some older macros from Autoconf.
1879         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
1880         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
1881         GNU Autoconf.
1882         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
1883         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
1884
1885 2010-09-17  Eric Blake  <eblake@redhat.com>
1886
1887         fdutimensat: drop atflag validation
1888         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
1889         with valid fd, to close a race scenario where futimens is
1890         unsupported and FILE was replaced by a symlink.
1891         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
1892         accordingly.
1893         Suggested by Paul Eggert.
1894
1895 2010-09-16  Bruno Haible  <bruno@clisp.org>
1896
1897         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
1898         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
1899
1900 2010-09-16  Bruno Haible  <bruno@clisp.org>
1901
1902         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
1903         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
1904         login_tty exists.
1905         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1906
1907 2010-09-16  Bruno Haible  <bruno@clisp.org>
1908
1909         login_tty: Make the replacement code work on BSD systems.
1910         * lib/login_tty.c: Include <sys/ioctl.h>.
1911         (login_tty): Use ioctl TIOCSCTTY when available.
1912         * modules/login_tty (Depends-on): Add sys_ioctl.
1913         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1914
1915 2010-09-16  Bruno Haible  <bruno@clisp.org>
1916
1917         login_tty: Stricter unit test.
1918         * modules/login_tty-tests (Depends-on): Add tcgetsid.
1919         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
1920         and tcgetsid() after login_tty.
1921         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1922
1923 2010-09-16  Bruno Haible  <bruno@clisp.org>
1924
1925         New module 'tcgetsid'.
1926         * lib/tcgetsid.c: New file.
1927         * m4/tcgetsid.m4: New file.
1928         * modules/tcgetsid: New file.
1929         * modules/termios (Depends-on): Add c++defs, warn-on-use.
1930         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
1931         GNULIB_TCGETSID, HAVE_TCGETSID.
1932         * lib/termios.in.h: Include <sys/types.h>.
1933         (tcgetsid): New declaration.
1934         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
1935         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
1936         * doc/posix-functions/tcgetsid.texi: Mention the new module.
1937         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
1938
1939 2010-09-16  Bruno Haible  <bruno@clisp.org>
1940
1941         Tests for module 'termios'.
1942         * modules/termios-c++-tests: New file.
1943         * modules/termios-tests: New file.
1944         * tests/test-termios-c++.cc: New file.
1945         * tests/test-termios.c: New file.
1946
1947         New module 'termios'.
1948         * modules/termios: New file.
1949         * lib/termios.in.h: New file.
1950         * m4/termios_h.m4: New file.
1951         * doc/posix-headers/termios.texi: Mention the new module.
1952
1953 2010-09-16  Eric Blake  <eblake@redhat.com>
1954
1955         fdutimensat: add an atflag parameter
1956         * lib/fdutimensat.c (fdutimensat): Add new parameter.
1957         * lib/utimens.h (fdutimensat): Update prototype.
1958         * tests/test-fdutimensat.c: Adjust test to match.
1959         * NEWS: Document the change.
1960         Suggested by Paul Eggert.
1961
1962 2010-09-16  Bruno Haible  <bruno@clisp.org>
1963
1964         Fix typos in comments.
1965         * lib/striconveh.h: Fix typo in comment.
1966         * lib/login_tty.c (login_tty): Likewise.
1967
1968 2010-09-15  Bruno Haible  <bruno@clisp.org>
1969
1970         stdlib: clarify MirBSD WEXITSTATUS bug
1971         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
1972         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1973
1974 2010-09-15  Eric Blake  <eblake@redhat.com>
1975
1976         stdlib: work around MirBSD WEXITSTATUS bug
1977         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
1978         * modules/stdlib (Depends-on): Add sys_wait.
1979         * tests/test-sys_wait.c (main): Enhance test.
1980         * tests/test-stdlib.c (main): Likewise.
1981         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
1982
1983         docs: mention MacOS issue with WEXITSTATUS(constant)
1984         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
1985         issue.
1986         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1987
1988         strnlen: add tests
1989         * modules/strnlen-tests: New file.
1990         * tests/test-strnlen.c: Likewise.
1991
1992 2010-09-14  Bruno Haible  <bruno@clisp.org>
1993
1994         unistr/base: Avoid link errors when module 'libunistring' is also used.
1995         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
1996         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
1997         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
1998         Declare also when HAVE_LIBUNISTRING is set.
1999         Reported by Pádraig Brady <P@draigbrady.com>.
2000
2001 2010-09-14  Eric Blake  <eblake@redhat.com>
2002
2003         test-rawmemchr: make more robust
2004         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
2005         (Depends-on, configure.ac): Add needed prerequisites to use it.
2006         * modules/memchr-tests (Files, Depends-on, configure.ac):
2007         Likewise, to avoid implicit reliance on memchr module prereqs.
2008         * tests/test-memchr.c (main): Ensure proper masking.
2009         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
2010         reads.
2011
2012         memchr: detect glibc Alpha bug
2013         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
2014         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
2015         Alpha.
2016         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
2017         * tests/test-memchr.c (main): Enhance test.
2018         Reported by Nelson H. F. Beebe.
2019
2020 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2021
2022         fts, getcwd, glob: audit for dirfd returning -1
2023         * lib/fts.c (opendir): Remove #define; no longer used.
2024         (opendirat): New arg PDIR_FD.  All callers changed.
2025         (fts_build, _opendir2): Use new opendirat to avoid the need for
2026         dirfd, or for checking whether dirfd returns a negative value.
2027         Don't use opendir; always use openat followed by fdopendir.
2028         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
2029         it.
2030         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
2031         returns -1 here.
2032         * modules/fts (Depends-on): Remove dirfd.
2033         * modules/getcwd (Depends-on): Likewise.
2034
2035 2010-09-13  Eric Blake  <eblake@redhat.com>
2036
2037         float: fix broken MirBSD header
2038         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
2039         * doc/posix-headers/float.texi (float.h): Document it.
2040
2041 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2042
2043         fts: use O_NOFOLLOW to avoid race condition when opening a directory
2044         * lib/fts.c (opendirat): New arg extra_flags.
2045         (__opendir2): Use it to avoid following symlinks when opening
2046         a directory, if symlinks are not supposed to be followed.  See
2047         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
2048
2049         fdopendir: preserve argument fd before returning
2050         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
2051         (fdopendir_with_dup, fd_clone_opendir): New static functions.
2052         (fdopendir): Use them, arranging for FD to be open to the same
2053         directory that it was when it started.  (It might be temporarily
2054         closed while fdopendir is running, so this not thread- or
2055         signal-safe.)  Be careful to do the right thing even when file
2056         descriptors are scarce and dup fails with errno == EMFILE.  See
2057         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
2058
2059 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
2060
2061         regex: Pass the system regex if its only problem is 32-bit regoff_t.
2062         * NEWS: Document change.
2063         * m4/regex.m4: Disable test for regoff_t size.
2064
2065 2010-09-13  Jim Meyering  <meyering@redhat.com>
2066
2067         fts: don't operate on an invalid file descriptor after failed dup
2068         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
2069         negative file descriptor.
2070
2071 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2072
2073         savedir: add streamsavedir, deprecate fdsavedir
2074         * NEWS: Mention deprecation of fdsavedir.
2075         * lib/savedir.c (streamsavedir): New extern function, whose name
2076         ends in "savedir" to be consistent with the others.  This differs
2077         from savedirstream in that it doesn't close its argument.  The
2078         next version of GNU tar will use this instead of fdsavedir, to
2079         avoid some race conditions and conserve file descriptors.
2080         (savedirstream): Reimplement as a wrapper around streamsavedir.
2081         (fdsavedir): Add a comment deprecating this function.  As far as
2082         I know, only GNU tar used it, and GNU tar doesn't need it any more.
2083         * lib/savedir.h (streamsavedir): New decl.
2084         (fdsavedir): Add a comment deprecating this.
2085
2086 2010-09-10  Bruno Haible  <bruno@clisp.org>
2087
2088         langinfo: Fix last commit.
2089         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
2090         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
2091         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2092
2093 2010-09-10  Bruno Haible  <bruno@clisp.org>
2094
2095         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
2096         * lib/progreloc.c (O_EXEC): Define fallback.
2097
2098 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2099
2100         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
2101         * NEWS: Document recent changes to fcntl-h.
2102         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
2103         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
2104         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
2105         Similarly for O_SEARCH; this last was already true, but not documented.
2106         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
2107         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
2108         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
2109         Likewise.
2110         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
2111         is zero, not whether it is defined.
2112         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
2113         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
2114         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
2115
2116 2010-09-10  Bruno Haible  <bruno@clisp.org>
2117
2118         langinfo, nl_langinfo: Fix for IRIX 5.3.
2119         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
2120         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
2121         HAVE_LANGINFO_YESEXPR.
2122         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
2123         HAVE_LANGINFO_YESEXPR.
2124         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
2125         HAVE_LANGINFO_T_FMT_AMPM is 0.
2126         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
2127         HAVE_LANGINFO_YESEXPR is 0.
2128         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
2129         NOEXPR.
2130         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
2131         * doc/posix-functions/nl_langinfo.texi: Likewise.
2132         Reported by Eric Blake.
2133
2134 2010-09-10  Bruno Haible  <bruno@clisp.org>
2135
2136         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
2137         * doc/glibc-functions/login_tty.texi: Mention the include file problem
2138         on FreeBSD 8.0 and OpenBSD 4.6.
2139         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
2140         * m4/pty_h.m4 (gl_PTY_H): Likewise.
2141         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
2142         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
2143         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
2144         ac_includes_default.
2145         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2146
2147 2010-09-09  Eric Blake  <eblake@redhat.com>
2148
2149         strsignal: work around NetBSD bug
2150         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
2151         * lib/string.in.h (includes): Likewise.
2152         * doc/posix-functions/strsignal.texi (strsignal): Document the
2153         bug.
2154         Reported by Nelson H. F. Beebe.
2155
2156         gnulib-tool: work with NetBSD /bin/sh
2157         * gnulib-tool (func_cache_var, func_cache_lookup_module)
2158         (func_get_description, func_get_comment, func_get_status)
2159         (func_get_notice, func_get_applicability, func_get_filelist)
2160         (func_get_dependencies, func_get_autoconf_early_snippet)
2161         (func_get_autoconf_snippet, func_get_automake_snippet)
2162         (func_get_include_directive, func_get_link_directive)
2163         (func_get_license, func_get_maintainer, func_import): Avoid
2164         shell syntax errors from parsing syntax extensions.
2165
2166 2010-09-09  Bruno Haible  <bruno@clisp.org>
2167
2168         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
2169         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
2170         a reliable way to determine whether the 'alias' command works.
2171
2172 2010-09-08  Jim Meyering  <meyering@redhat.com>
2173
2174         init.sh: penalize a set-x-impaired shell; don't disqualify it
2175         * tests/init.sh: Too many shells corrupt application stderr when
2176         you set -x, so we can't afford to disqualify them, since at least
2177         on Irix-6.5, that would disqualify all bourne shells.
2178         Instead, use a two-pass approach.
2179         On the first pass, try to find a shell that meets the stricter
2180         condition that set -x does not corrupt stderr.
2181         If no shell meets the stricter condition, retest each candidate
2182         shell, but without that extra condition.  Finally, when
2183         VERBOSE=yes is requested and set -x might cause trouble, simply
2184         issue a warning and refrain from enabling debug output.
2185
2186 2010-09-08  Eric Blake  <eblake@redhat.com>
2187
2188         unsetenv: fix OpenBSD bug
2189         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
2190         * doc/posix-functions/unsetenv.texi (unsetenv): Update
2191         documentation.
2192         Reported by Jim Meyering.
2193
2194         strtod: work around IRIX 6.5 bug
2195         * lib/strtod.c (strtod): Reparse number on shorter string if
2196         exponent parse was invalid.
2197         * tests/test-strtod.c (main): Add check for "0x1p 2".
2198         Reported by Tom G. Christensen.
2199
2200         getopt: optimize previous patch
2201         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
2202         empty variable.  Speed up awk script.
2203         Reported by Paolo Bonzini.
2204
2205 2010-09-08  Jim Meyering  <meyering@redhat.com>
2206
2207         test.sh: disqualify shells for which set -x corrupts stderr
2208         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
2209         and OpenBSD 4.7.  They make it so with "set -x", environment settings
2210         appear in stderr output.  For example, this command:
2211             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
2212         prints "P=1" on those two systems:
2213
2214 2010-09-08  Bruno Haible  <bruno@clisp.org>
2215
2216         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
2217         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
2218         commands, because some shells ignore redirections when there is an
2219         error in the command lookup.
2220         Reported by Eric Blake.
2221
2222 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
2223
2224         * lib/regex.h: Fix a mention of `regex_compile' (should be
2225         `re_compile_pattern').
2226         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
2227         (re_set_registers): Correct name of parameter in comment.
2228
2229         * doc/regex.texi: Add documentation for missing syntax flags.
2230         Remove commented-out documentation of defunct syntax option
2231         RE_NO_EMPTY_ALTS.
2232         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
2233         Add documentation of re_set_registers.
2234         Document trick to re-use a pattern buffer by setting fastmap manually.
2235         Update documentation of struct re_pattern_buffer per public members.
2236         Uncomment documentation of equivalence class operators and
2237         collating symbol operators, since they are now implemented,
2238         Explain leftmost-longest matching in relation to alternatives.
2239         Tidy documentation of substring matching.
2240         Remove POSIX documentation, which is done better in
2241         glibc, and refer the reader there. Keep BSD API documentation, as
2242         that is not readily available elsewhere.
2243
2244 2010-09-07  Eric Blake  <eblake@redhat.com>
2245
2246         getopt: handle POSIXLY_CORRECT set but not exported
2247         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
2248         export state of POSIXLY_CORRECT, due to bash set -o posix.
2249         Reported by Dustin J. Mitchell.
2250
2251 2010-09-05  Bruno Haible  <bruno@clisp.org>
2252
2253         gnulib-tool: Highlight the changed options.
2254         * gnulib-tool (func_usage): Display the --import, --add-import,
2255         --remove-import explanations in bold font.
2256
2257 2010-09-06  Karl Berry  <karl@gnu.org>
2258
2259         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
2260
2261 2010-09-05  Bruno Haible  <bruno@clisp.org>
2262
2263         uniwidth/width: Update comment.
2264         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
2265         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
2266
2267 2010-09-05  Bruno Haible  <bruno@clisp.org>
2268
2269         isinf, isnan: Relax license.
2270         * modules/isinf (License): Change from GPL to LGPL, with consent from
2271         Ben Pfaff.
2272         * modules/isnan (License): Likewise.
2273         Requested by Ludovic Courtès.
2274
2275 2010-09-04  Bruno Haible  <bruno@clisp.org>
2276
2277         gnulib-tool: Help migration from --import to --add-import or --update.
2278         * gnulib-tool: Emit a verbose error message when --import is used
2279         without any module name.
2280
2281 2010-09-04  Bruno Haible  <bruno@clisp.org>
2282
2283         Update doc about gnulib-tool.
2284         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
2285         'gnulib-tool --update' in more detail.
2286         Reported by Eric Blake.
2287
2288 2010-09-04  Bruno Haible  <bruno@clisp.org>
2289
2290         gnulib-tool: Change --import. New options --add/remove-import.
2291         * gnulib-tool: New options --add-import, --remove-import.
2292         (func_usage): Document them.
2293         (have_associative): Define always.
2294         (func_import): In import mode, don't merge the specified settings with
2295         the cached settings. Implement remove-import mode.
2296         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
2297         Explain when to use them versus --import.
2298         (Simple update): Use --add-import instead of --import.
2299         * NEWS: Mention the change.
2300
2301 2010-09-04  Bruno Haible  <bruno@clisp.org>
2302
2303         * doc/gnulib-tool.texi (Initial import): Update paragraph about
2304         separate gnulib.mk.
2305
2306 2010-09-04  Bruno Haible  <bruno@clisp.org>
2307
2308         gnulib-tool: Don't talk about CVS any more.
2309         * gnulib-tool (func_usage, func_import): Write "version control"
2310         instead of CVS.
2311
2312 2010-09-04  Jim Meyering  <meyering@redhat.com>
2313
2314         maint.mk: avoid obscure sc_copyright_check failure in coreutils
2315         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
2316         false positives (whose names may be ill-chosen) when searching
2317         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
2318         would cause a false-positive.
2319
2320         avoid coreutils "make distcheck" failure
2321         Coreutils tests with an absolute build directory name that contains
2322         a space.  Not quoting this directory name caused a failure.
2323         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
2324         * tests/test-vc-list-files-cvs.sh: Likewise.
2325
2326 2010-09-04  Bruno Haible  <bruno@clisp.org>
2327
2328         gnulib-tool: Avoid error when run in a package without Makefile.am.
2329         * gnulib-tool: When collecting the m4dirs in a package that does not
2330         have a Makefile.am, eliminate those directories that contain no
2331         gnulib-cache.m4. Fix expression that counts these directories.
2332
2333 2010-09-04  Bruno Haible  <bruno@clisp.org>
2334
2335         update-copyright test: Improve output when perl is missing or too old.
2336         * tests/test-update-copyright.sh: Move test of Perl version down after
2337         the test whether Perl exists. Provide an explanation relating Perl's
2338         error message to Automake's SKIP: message.
2339
2340 2010-09-04  Bruno Haible  <bruno@clisp.org>
2341
2342         Don't augment PATH in TESTS_ENVIRONMENT.
2343         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
2344         set abs_aux_dir instead of augmenting PATH.
2345         * modules/vc-list-files-tests (Makefile.am): Likewise.
2346         * tests/test-update-copyright.sh: Augment PATH here.
2347         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
2348         path_prepend_.
2349         * tests/test-vc-list-files-git.sh: Likewise.
2350
2351 2010-09-04  Jim Meyering  <meyering@redhat.com>
2352
2353         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
2354         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
2355
2356 2010-09-04  Bruno Haible  <bruno@clisp.org>
2357
2358         strdup: Fix compilation error in C++ mode.
2359         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
2360         the macro.
2361
2362 2010-09-04  Bruno Haible  <bruno@clisp.org>
2363
2364         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
2365         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
2366         macro into a function.
2367         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2368
2369 2010-09-04  Bruno Haible  <bruno@clisp.org>
2370
2371         Set PATH_SEPARATOR the same way autoconf does.
2372         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
2373         the value of PATH_SEPARATOR the same way autoconf-generated configure
2374         scripts do.
2375         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
2376         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
2377
2378 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2379
2380         Set PATH_SEPARATOR the same way autoconf does.
2381         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
2382         the same way autoconf-generated configure scripts do.
2383         * posix-modules: Likewise.
2384
2385 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2386
2387         hash: fix safe_hasher const typo
2388         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
2389         const; otherwise, there is a type error later.
2390
2391 2010-09-02  Jim Meyering  <meyering@redhat.com>
2392
2393         test-update-copyright.sh: require perl 5.8.0
2394         * tests/test-update-copyright.sh: Require 5.8.0,
2395         which Tom G. Christensen has confirmed is adequate,
2396         while 5.6.1 is not.
2397
2398 2010-09-02  Eric Blake  <eblake@redhat.com>
2399
2400         tests: init.sh improvements for re-exec'ing with zsh
2401         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
2402         -vx through shell re-exec.
2403         Reported by Tom G. Christensen.
2404
2405         wctype: fix typo in previous commit
2406         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
2407         Reported by Ludovic Courtès.
2408
2409 2010-09-02  Jim Meyering  <meyering@redhat.com>
2410
2411         test-update-copyright.sh: skip test if Perl is too old
2412         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
2413         Reported by Tom G. Christensen.
2414
2415 2010-09-02  Bruno Haible  <bruno@clisp.org>
2416
2417         wctype: Avoid compilation error on IRIX 6.5.30.
2418         * lib/wctype.in.h (iswblank): Declare with a replacement if
2419         REPLACE_ISWBLANK is set.
2420         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
2421         declared. Set REPLACE_ISWBLANK.
2422         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
2423         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
2424         * doc/posix-headers/wctype.texi: Likewise.
2425         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2426
2427 2010-09-01  Bruno Haible  <bruno@clisp.org>
2428
2429         New module 'socketlib'.
2430         * modules/socketlib: New file.
2431         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
2432         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
2433         * modules/sockets (Depends-on): Add socketlib.
2434         Suggested by Sam Steingold <sds@gnu.org>.
2435
2436 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2437
2438         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
2439
2440         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
2441         when one needs search access to a directory but not read access.
2442         On systems where it is available, it works in some cases where
2443         O_RDONLY does not, namely on directories that are searchable but
2444         not readable, and which need only to be searchable.  If O_SEARCH
2445         is not available, fall back to the traditional method of using
2446         O_RDONLY.
2447
2448         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
2449         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
2450         when opening a directory that needs only to be searchable.
2451         * lib/chdir-safer.c (chdir_no_follow): Likewise.
2452         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
2453         * lib/openat-proc.c (openat_proc_name): Likewise.
2454         * lib/openat.c (openat_needs_fchdir): Likewise.
2455         * lib/save-cwd.c (save_cwd): Likewise.
2456         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
2457
2458 2010-08-28  Bruno Haible  <bruno@clisp.org>
2459
2460         New module 'host-cpu-c-abi'.
2461         * modules/host-cpu-c-abi: New file.
2462         * m4/host-cpu-c-abi.m4: New file, based on part of
2463         clisp/src/m4/general.m4.
2464         Requested by Sam Steingold <sds@gnu.org>.
2465
2466 2010-08-31  Eric Blake  <eblake@redhat.com>
2467         and Jim Meyering  <meyering@redhat.com>
2468
2469         hash: factor, and guard against misbehaving hasher function
2470         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
2471         of table->hasher's return value.  Also protect against a hash value
2472         so large that adding it to table->bucket results in a NULL pointer.
2473         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
2474         Use it in place of open-coded check-and-abort.
2475
2476 2010-08-30  Bruno Haible  <bruno@clisp.org>
2477
2478         hash: silence spurious clang warning
2479         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
2480         Reported by Eric Blake.
2481
2482 2010-08-30  Eric Blake  <eblake@redhat.com>
2483
2484         strstr, memmem, strcasestr: avoid leaked shell message
2485         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
2486         FreeBSD.
2487         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2488         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2489
2490         tests: silence clang warning
2491         * tests/test-malloca.c (do_allocation): Avoid dead store.
2492
2493 2010-08-29  Bruno Haible  <bruno@clisp.org>
2494
2495         gettext: Fix recent mistake.
2496         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
2497
2498 2010-08-29  Bruno Haible  <bruno@clisp.org>
2499
2500         selinux-h: Offer a --without-selinux option.
2501         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
2502         --without-selinux was specified, skip all tests and define
2503         HAVE_SELINUX_SELINUX_H to 0.
2504         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
2505         set LIB_SELINUX to empty.
2506         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
2507         gl_LIBSELINUX. If --without-selinux was specified, replace
2508         selinux/context.h.
2509         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
2510
2511 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2512             Bruno Haible  <bruno@clisp.org>
2513
2514         Make the module 'realloc-gnu' work again on AIX and OSF/1.
2515         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
2516         of HAVE_REALLOC.
2517         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
2518         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
2519         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
2520         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2521
2522 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2523             Bruno Haible  <bruno@clisp.org>
2524
2525         Make the module 'calloc-gnu' work again on AIX and OSF/1.
2526         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
2527         HAVE_CALLOC.
2528         * lib/xmalloc.c: Update accordingly.
2529         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
2530         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
2531         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2532
2533 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2534             Bruno Haible  <bruno@clisp.org>
2535
2536         Make the module 'malloc-gnu' work again on AIX and OSF/1.
2537         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
2538         HAVE_MALLOC.
2539         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
2540         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
2541         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2542
2543 2010-08-29  Bruno Haible  <bruno@clisp.org>
2544
2545         Update modules list.
2546         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
2547         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
2548         (String handling <string.h>): Add astrxfrm.
2549         (File system functions): Add readlinkat.
2550
2551 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2552
2553         Tests for module 'realloc-gnu'.
2554         * modules/realloc-gnu-tests: New file.
2555         * tests/test-realloc-gnu.c: New file.
2556
2557         Tests for module 'calloc-gnu'.
2558         * modules/calloc-gnu-tests: New file.
2559         * tests/test-calloc-gnu.c: New file.
2560
2561         Tests for module 'malloc-gnu'.
2562         * modules/malloc-gnu-tests: New file.
2563         * tests/test-malloc-gnu.c: New file.
2564
2565 2010-08-28  Bruno Haible  <bruno@clisp.org>
2566
2567         Rename module 'realloc' -> 'realloc-gnu'.
2568         * modules/realloc-gnu: New file, copied from modules/realloc.
2569         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
2570         obsolete.
2571         * modules/mgetgroups (Depends-on): Update.
2572         * doc/posix-functions/realloc.texi: Update.
2573         * NEWS: Mention the change.
2574
2575         Rename module 'calloc' -> 'calloc-gnu'.
2576         * modules/calloc-gnu: New file, copied from modules/calloc.
2577         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
2578         obsolete.
2579         * doc/posix-functions/calloc.texi: Update.
2580         * NEWS: Mention the change.
2581
2582         Rename module 'malloc' -> 'malloc-gnu'.
2583         * modules/malloc-gnu: New file, copied from modules/malloc.
2584         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
2585         obsolete.
2586         * modules/argp (Depends-on): Update.
2587         * modules/regex (Depends-on): Update.
2588         * doc/posix-functions/malloc.texi: Update.
2589         * NEWS: Mention the change.
2590
2591 2010-08-28  Eric Blake  <eblake@redhat.com>
2592
2593         pread, pwrite: add missing dependency
2594         * modules/pread (Depends-on): Add extensions.
2595         * modules/pwrite (Depends-on): Likewise.
2596
2597 2010-08-28  Bruno Haible  <bruno@clisp.org>
2598
2599         unistr/u*-strchr: Fix tests dependencies.
2600         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
2601         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
2602         Reported by Ian Beckwith <ianb@erislabs.net>.
2603
2604 2010-08-28  Bruno Haible  <bruno@clisp.org>
2605
2606         read-file: Don't occupy too much unused memory.
2607         * lib/read-file.c (fread_file): Shrink the buffer at the end.
2608
2609 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
2610             Eric Blake  <eblake@redhat.com>
2611             Bruno Haible  <bruno@clisp.org>
2612
2613         read-file: Avoid memory reallocations with regular files.
2614         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
2615         (fread_file): With regular files, use the remaining length as the
2616         initial buffer size.  Check against overflow.
2617         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
2618         sys_stat.
2619
2620 2010-08-28  Bruno Haible  <bruno@clisp.org>
2621
2622         ftello: Relax license.
2623         * modules/ftello (License): Relax to LGPLv2+.
2624         Reported by Eric Blake.
2625
2626 2010-08-28  Bruno Haible  <bruno@clisp.org>
2627
2628         Avoid relocwrapper link errors due to gnulib replacement functions.
2629         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
2630         function.
2631         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2632
2633 2010-08-28  Bruno Haible  <bruno@clisp.org>
2634
2635         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
2636         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
2637         defined.
2638         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
2639         Suggested by Eric Blake.
2640
2641 2010-08-28  Bruno Haible  <bruno@clisp.org>
2642
2643         sys_socket, netdb: Ensure socklen_t gets defined.
2644         * modules/sys_socket (Depends-on): Add socklen.
2645         * modules/netdb (Depends-on): Likewise.
2646         * modules/getaddrinfo (Depends-on): Remove socklen.
2647         * modules/getsockopt (Depends-on): Likewise.
2648         * modules/setsockopt (Depends-on): Likewise.
2649         * tests/test-sys_socket.c: Check that socklen_t is defined.
2650         * tests/test-netdb.c: Likewise.
2651         * m4/socklen.m4: Update comments.
2652         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2653
2654 2010-08-27  Eric Blake  <eblake@redhat.com>
2655
2656         login_tty: add missing dependency
2657         * modules/login_tty (Depends-on): Add pty.
2658
2659 2010-08-26  Eric Blake  <eblake@redhat.com>
2660
2661         lib-symbol-versions: fix m4 quoting
2662         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
2663         format for AC_LINK_IFELSE.
2664
2665         glob: fix compile test
2666         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
2667
2668         btowc: fix missing file
2669         * modules/btowc (Files): Also ship locale-fr.m4.
2670
2671         lseek: fix link test
2672         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
2673         AC_LINK_IFELSE.
2674
2675         include_next: silence autoconf 2.68 warning
2676         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
2677         AC_COMPILE_IFELSE as special.
2678         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
2679         autoconf < 2.68.
2680
2681         acl: fix compilation test
2682         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
2683         AC_COMPILE_IFELSE.
2684
2685 2010-08-26  Bruno Haible  <bruno@clisp.org>
2686
2687         Modernize AC_TRY_RUN invocations.
2688         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
2689         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2690         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
2691         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
2692         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
2693         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
2694         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2695         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2696         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2697         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2698         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2699         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2700         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2701         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2702         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2703         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2704         gl_MBRLEN_NUL_RETVAL): Likewise.
2705         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2706         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
2707         Likewise.
2708         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2709         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2710         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2711         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2712         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
2713         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
2714         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
2715         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2716         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
2717         Likewise.
2718         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
2719         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
2720         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2721         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2722         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2723         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2724         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2725         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
2726         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2727         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2728
2729 2010-08-26  Bruno Haible  <bruno@clisp.org>
2730
2731         Modernize AC_TRY_LINK invocations.
2732         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
2733         AC_TRY_LINK.
2734         * m4/argp.m4 (gl_ARGP): Likewise.
2735         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2736         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2737         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
2738         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
2739         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
2740         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
2741         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2742         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2743         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
2744         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
2745         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
2746         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
2747         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
2748         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2749         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
2750         * m4/hostent.m4 (gl_HOSTENT): Likewise.
2751         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2752         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
2753         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
2754         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
2755         Likewise.
2756         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
2757         Likewise.
2758         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
2759         Likewise.
2760         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
2761         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
2762         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
2763         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2764         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2765         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
2766         * m4/servent.m4 (gl_SERVENT): Likewise.
2767         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2768         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2769         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2770         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2771         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2772         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2773         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2774         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2775         * modules/tsearch-tests (configure.ac): Likewise.
2776
2777 2010-08-26  Bruno Haible  <bruno@clisp.org>
2778
2779         Modernize AC_TRY_COMPILE invocations.
2780         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
2781         AC_TRY_COMPILE.
2782         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
2783         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
2784         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
2785         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
2786         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
2787         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
2788         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2789         * m4/lock.m4 (gl_LOCK): Likewise.
2790         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
2791         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2792         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
2793         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2794         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
2795         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
2796         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
2797         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
2798         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
2799         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
2800         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
2801         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
2802         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
2803         extraneous semicolon.
2804
2805 2010-08-26  Jim Meyering  <meyering@redhat.com>
2806
2807         stat-time: relax license LGPL
2808         * modules/stat-time (License): Change from GPL to LGPL,
2809         with consent from all contributors, for use in libguile.
2810         Requested by Ludovic Courtès.
2811
2812 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
2813
2814         poll: return immediately on POLLHUP.
2815         * lib/poll.c (poll): Always set timeout before wait_timeout is
2816         computed.
2817
2818 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2819
2820         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
2821         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
2822         rmdir ("dir/.//"), unlinkat.
2823
2824 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2825
2826         stdbool: avoid spurious failure with modern xlc
2827         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2828
2829 2010-08-24  Bruno Haible  <bruno@clisp.org>
2830
2831         getloadavg: simplify code
2832         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
2833         gl_have_func. Update comments.
2834
2835 2010-08-24  Eric Blake  <eblake@redhat.com>
2836
2837         getloadavg: don't define SVR4 on cygwin
2838         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
2839         only define SVR4 when -lkvm is required.
2840         Reported by Yaakov Selkowitz.
2841
2842 2010-08-24  Bruno Haible  <bruno@clisp.org>
2843
2844         priv-set: fix comment
2845         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
2846
2847 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2848
2849         priv-set: fix comments
2850         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
2851         to match code, as suggested by David Bartley in:
2852         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
2853
2854 2010-08-23  Eric Blake  <eblake@redhat.com>
2855
2856         stdbool: avoid rejecting clang
2857         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2858         * tests/test-stdbool.c: Enable more tests if using the system
2859         <stdbool.h> instead of the gnulib replacement.
2860         (main): Move xlc bug test to a runtime test for all compilers.
2861         Reported by Anders Kaseorg.
2862
2863         argz: fix shell quoting issue
2864         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
2865         Reported by Charles Wilson.
2866
2867 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
2868             Erik Faye-Lund <kusmabite@gmail.com>
2869
2870         poll, select: handle ERROR_BROKEN_PIPE.
2871         * lib/poll.c (win32_compute_revents): Return POLLHUP when
2872         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2873         * lib/select.c (win32_compute_revents): Do not mark a pipe
2874         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2875
2876 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
2877
2878         fts: allow compilation with C++
2879         * lib/fts_.h: Specify extern "C" linkage with C++.
2880
2881 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2882
2883         Fix gnulib-tool sed script de-commentation for AIX sed.
2884         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
2885         sed.
2886
2887 2010-08-17  Eric Blake  <eblake@redhat.com>
2888
2889         test-stddef: test for (some) offsetof bugs
2890         * tests/test-stddef.c: Enhance test to ensure correct type of
2891         offsetof.
2892         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
2893         that we are not fixing at this time.
2894
2895 2010-08-15  Bruno Haible  <bruno@clisp.org>
2896
2897         stpncpy: Allow stpncpy to be defined as a macro.
2898         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
2899         if it's already correctly declared.
2900         * lib/string.in.h (stpncpy): Undefine before redefining.
2901         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
2902
2903 2010-08-14  Bruno Haible  <bruno@clisp.org>
2904
2905         Rename module 'memxfrm' to 'amemxfrm'.
2906         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
2907         (amemxfrm): Renamed from memxfrm.
2908         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
2909         (amemxfrm): Renamed from memxfrm.
2910         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
2911         * NEWS: Mention the change.
2912         * MODULES.html.sh (String handling <string.h>): Update.
2913         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
2914         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
2915         * lib/unicase/u16-casexfrm.c: Likewise.
2916         * lib/unicase/u32-casexfrm.c: Likewise.
2917         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
2918         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
2919         * lib/uninorm/u16-normxfrm.c: Likewise.
2920         * lib/uninorm/u32-normxfrm.c: Likewise.
2921         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
2922         memxfrm.
2923         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
2924         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
2925         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
2926         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
2927         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
2928         Suggested by Paul Eggert.
2929
2930 2010-08-14  Bruno Haible  <bruno@clisp.org>
2931
2932         Tests for module 'astrxfrm'.
2933         * modules/astrxfrm-tests: New file.
2934         * tests/test-astrxfrm.c: New file.
2935
2936         New module 'astrxfrm'.
2937         * lib/astrxfrm.h: New file.
2938         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
2939         * modules/astrxfrm: New file.
2940
2941 2010-08-14  Reuben Thomas <rrt@sc3d.org>
2942
2943         regex: Tweak doc.
2944         * doc/regex.texi (Overview): Don't mention regex.c.
2945         (GNU Regular Expression Compiling): Likewise.
2946         (Match-end-of-line Operator): Mention 'not_eol'.
2947
2948 2010-08-14  Brian Gough  <bjg@gnu.org>
2949             Bruno Haible  <bruno@clisp.org>
2950
2951         git-merge-changelog: add doc relating to use with bzr and hg.
2952         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
2953
2954 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
2955
2956         pthread: fix pthread.h creation for srcdir != builddir
2957         * modules/pthread (Makefile.am): Fix the rule to work also in a
2958         non-srcdir build.
2959
2960 2010-08-13  Karl Berry  <karl@gnu.org>
2961
2962         * doc/regex.texi (Predefined Syntaxes): @smallexample.
2963         * doc/posix-*/*: force line break before @url of POSIX
2964         specifications.
2965         Suggested by Werner Lemberg.
2966
2967 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2968
2969         strtod: fix const diagnostic
2970         * lib/strtod.c (strtod): Don't assign const char * to char *,
2971         as this elicits a warning from GCC when warnings are enabled.
2972
2973 2010-08-10  Pádraig Brady <P@draigbrady.com>
2974         and Eric Blake  <eblake@redhat.com>
2975
2976         copy-acl: ignore ENOTSUP on HP-UX
2977         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
2978         so that it is available for HP-UX.
2979         * lib/copy-acl.c (qcopy_acl): Use it.
2980         Reported by Patrick M. Callahan.
2981
2982 2010-08-10  Eric Blake  <eblake@redhat.com>
2983
2984         open, chown: relax license
2985         * modules/open (License): Change to LGPLv2+, with consent by all
2986         authors, for use in augeas.
2987         * modules/chown (License): Likewise.
2988         * modules/lchown (Likewise): Likewise.
2989         Requested by Adam Stokes.
2990
2991 2010-08-09  Karl Berry  <karl@gnu.org>
2992
2993         * build-aux/ar-lib: new file, import from Automake.
2994         * config/srclist.txt: autocheck for updates.
2995
2996 2010-08-09  Eric Blake  <eblake@redhat.com>
2997
2998         readlinkat: adjust client modules
2999         * modules/areadlinkat (Depends-on): Use readlinkat, not
3000         symlinkat.
3001         * modules/areadlinkat-with-size (Depends-on): Likewise.
3002
3003         mknod: be more vocal about danger of running tests as root
3004         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
3005         root, since that is just asking for problems.
3006         Suggested by Bruno Haible, based on a report by Rainer Tammer.
3007
3008         readlinkat: split into its own module
3009         * modules/symlinkat: Split readlinkat...
3010         * modules/readlinkat: ...into separate module.
3011         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
3012         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
3013         * lib/symlinkat.c (readlinkat): Move...
3014         * lib/readlinkat.c: ...into new file.
3015         * modules/symlinkat-tests: Split readlinkat test...
3016         * modules/readlinkat-tests: ...into separate module.
3017         * tests/test-symlinkat.c: Split...
3018         * tests/test-readlinkat.c: ...into new file.
3019         * NEWS: Document the split.
3020         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
3021         * lib/unistd.in.h (readlinkat): Likewise.
3022         Suggested by Bruno Haible.
3023
3024 2010-08-08  Bruno Haible  <bruno@clisp.org>
3025
3026         memxfrm: Speed up.
3027         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
3028         that usually only one call to strxfrm is necessary for each string
3029         part.
3030         Reported by Paul Eggert <eggert@cs.ucla.edu>.
3031
3032 2010-08-07  Karl Berry  <karl@gnu.org>
3033
3034         * doc/posix-headers/limits.texi,
3035         * doc/posix-functions/malloc.texi,
3036         * doc/posix-functions/strsignal.texi: missing @item.
3037         * doc/ld-version-script.texi: spurious leading i.
3038         * doc/regex.texi (Interval Operators): no commas inside @var.
3039
3040 2010-08-01  Bruno Haible  <bruno@clisp.org>
3041
3042         Integrate the regex documentation.
3043         * doc/gnulib.texi: Define 'cn' index.
3044         (Regular expressions): New a chapter that includes regex.texi and
3045         regexprops-generic.texi.
3046         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
3047         syntax.
3048
3049         Whitespace cleanup.
3050         * doc/regex.texi: Remove trailing spaces.
3051
3052         Add regex documentation.
3053         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
3054         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
3055         Written by Kathy A. Hargreaves and Karl Berry.
3056
3057 2010-08-01  Bruno Haible  <bruno@clisp.org>
3058
3059         link: Update documentation.
3060         * doc/posix-functions/link.texi: Update regarding Solaris.
3061
3062 2010-07-31  Bruno Haible  <bruno@clisp.org>
3063
3064         Update modules list.
3065         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
3066         (String handling <string.h>): Add memcmp2, memxfrm.
3067         (Container data structures): Add xlist, xsublist, xoset.
3068         (Core language properties): Add alignof, unused-parameter.
3069         (Process control, Numeric conversion functions <stdlib.h>): Renamed
3070         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
3071         (Unibyte characters <ctype.h>): New section.
3072         (String handling <string.h>): New section.
3073         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
3074         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
3075         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
3076         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
3077         tan, tanh, tanl, y0, y1, yn.
3078         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
3079         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
3080         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
3081         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
3082         unlockpt, vdprintf, vdprintf-posix.
3083         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
3084         (File system functions): Add concat-filename, sys_file, sys_ioctl,
3085         xconcat-filename.
3086         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
3087         getdtablesize, pipe2, pipe2-safer.
3088         (Security): New section.
3089         (Networking functions): Add accept4.
3090         (Signal handling): Add sigpipe.
3091         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
3092         mbmemcasecoll.
3093         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
3094         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
3095         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
3096         pipe-filter-ii.
3097         (Misc): Add argp-version-etc, login_tty, parse-duration.
3098
3099 2010-07-31  Bruno Haible  <bruno@clisp.org>
3100
3101         Improve doc in MODULES.html.
3102         * modules/linkat (Description): Add the word "function".
3103         * modules/mkfifo (Description): Likewise.
3104         * modules/mknod (Description): Likewise.
3105         * modules/remove (Description): Likewise.
3106         * modules/renameat (Description): Likewise.
3107         * modules/stat (Description): Likewise.
3108         * modules/symlink (Description): Likewise.
3109         * modules/unlink (Description): Likewise.
3110
3111 2010-07-31  Bruno Haible  <bruno@clisp.org>
3112
3113         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
3114         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
3115         option --enable/disable-c++ instead of --enable/disable-cxx.
3116         * NEWS: Mention the change.
3117
3118 2010-07-31  Bruno Haible  <bruno@clisp.org>
3119
3120         readlink, areadlink: Relax test a bit.
3121         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
3122         alternative to ENOTDIR.
3123         * tests/test-areadlink.h (test_areadlink): Likewise.
3124         Reported by Rainer Tammer.
3125
3126 2010-07-31  Bruno Haible  <bruno@clisp.org>
3127
3128         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
3129         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
3130         character, perform the search using U_STRCHR.
3131         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
3132         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
3133         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
3134         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
3135         Suggested by Paolo Bonzini.
3136
3137 2010-07-31  Bruno Haible  <bruno@clisp.org>
3138
3139         unistr/u*-strstr: Fix dependencies.
3140         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
3141         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
3142         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
3143
3144 2010-07-31  Bruno Haible  <bruno@clisp.org>
3145
3146         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
3147         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
3148         the beginning of the loop.
3149         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
3150         cases in 'switch' statement.
3151
3152         unistr/u8-strchr: Fix several bugs.
3153         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
3154         the string. When not found, return NULL, not a pointer near the end.
3155
3156         More tests for unistr/u8-strchr.
3157         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
3158         that the function does not read past the first occurrence of the byte
3159         being searched.
3160         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
3161         * tests/unistr/test-u16-strchr.c (main): New function.
3162         * tests/unistr/test-u32-strchr.c (main): New function.
3163
3164 2010-07-31  Bruno Haible  <bruno@clisp.org>
3165
3166         posix-modules: Ignore backup files of documentation files.
3167         * posix-modules: grep only through files named *.texi.
3168
3169 2010-07-31  Bruno Haible  <bruno@clisp.org>
3170
3171         symlinkat: Fix documentation.
3172         * doc/posix-functions/readlinkat.texi: Fix module name.
3173
3174 2010-07-31  Bruno Haible  <bruno@clisp.org>
3175
3176         fchownat: Replace also when chown has the trailing slash bug.
3177         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
3178         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
3179         introduced on 2010-04-10.
3180         Reported by Rainer Tammer.
3181
3182 2010-07-31  Bruno Haible  <bruno@clisp.org>
3183
3184         linkat: Work around AIX 7.1 bug.
3185         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
3186         whether linkat handles trailing slash correctly. If not, replace linkat
3187         and define LINKAT_TRAILING_SLASH_BUG.
3188         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
3189         check whether (fd1,file1) points to a directory if file1 or file2 ends
3190         in a slash. Code taken from lib/link.c.
3191         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
3192         Reported by Rainer Tammer.
3193
3194 2010-07-31  Bruno Haible  <bruno@clisp.org>
3195
3196         Correctly determine whether pow is available in libc on AIX 7 with xlc.
3197         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
3198         This disables an xlc optimization that was causing wrong test results.
3199         Reported by Rainer Tammer.
3200
3201 2010-07-31  Bruno Haible  <bruno@clisp.org>
3202
3203         iconv: Work around AIX 6.1..7.1 bug.
3204         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
3205         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
3206         cross-compiling, guess no on all versions of AIX.
3207         Reported by Rainer Tammer.
3208
3209 2010-07-31  Bruno Haible  <bruno@clisp.org>
3210
3211         readlink: Relax test a bit.
3212         * tests/test-readlink.h (test_readlink): Allow different errno value
3213         when readlink is called with a file name that ends in / and refers to
3214         a file.
3215         Suggested by Eric Blake.
3216         Reported by Rainer Tammer.
3217
3218 2010-07-31  Bruno Haible  <bruno@clisp.org>
3219
3220         copysign: Does not require -lm on glibc systems.
3221         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
3222         gl_COMMON_DOUBLE_MATHFUNC.
3223         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
3224
3225 2010-07-31  Bruno Haible  <bruno@clisp.org>
3226
3227         duplocale: Work around AIX 7.1 bug.
3228         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
3229         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
3230         * lib/duplocale.c (rpl_duplocale): Update comment.
3231         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
3232         Reported by Rainer Tammer.
3233
3234 2010-07-30  Bruno Haible  <bruno@clisp.org>
3235
3236         dirfd: Avoid link error on AIX 7.1.
3237         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
3238         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
3239         exist, set REPLACE_DIRFD.
3240         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
3241         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
3242         * doc/posix-functions/dirfd.texi: Update.
3243         Reported by Rainer Tammer.
3244
3245 2010-07-30  Eric Blake  <eblake@redhat.com>
3246
3247         strtod: next round of AIX fixes
3248         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
3249         exponent.
3250         * tests/test-strtod.c (main): Enhance tests.
3251         * doc/posix-functions/strtod.texi (strtod): Document next bug.
3252         Reported by Rainer Tammer.
3253
3254         futimens: fix configure check
3255         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
3256         Reported by Bruno Haible.
3257
3258 2010-07-30  Bruno Haible  <bruno@clisp.org>
3259
3260         getline: Update regarding AIX.
3261         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
3262         Reported by Rainer Tammer.
3263
3264 2010-07-30  Bruno Haible  <bruno@clisp.org>
3265
3266         wcwidth: Drop replacement on AIX 7.
3267         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
3268         AIX 7.
3269         Reported by Rainer Tammer.
3270
3271 2010-07-30  Bruno Haible  <bruno@clisp.org>
3272
3273         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
3274         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
3275         a 'char *'.
3276         Reported by Rainer Tammer.
3277
3278 2010-07-30  Bruno Haible  <bruno@clisp.org>
3279
3280         unlink: Update regarding AIX.
3281         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
3282         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
3283         Reported by Rainer Tammer.
3284
3285 2010-07-30  Bruno Haible  <bruno@clisp.org>
3286
3287         symlink: Update regarding AIX.
3288         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
3289         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
3290         Reported by Rainer Tammer.
3291
3292 2010-07-30  Bruno Haible  <bruno@clisp.org>
3293
3294         strndup: Update regarding AIX.
3295         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
3296         AIX 7.
3297         Reported by Rainer Tammer.
3298
3299 2010-07-30  Bruno Haible  <bruno@clisp.org>
3300
3301         stat: Update regarding AIX.
3302         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
3303         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
3304         Reported by Rainer Tammer.
3305
3306 2010-07-30  Bruno Haible  <bruno@clisp.org>
3307
3308         truncl: Fix autoconf test.
3309         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
3310         whether truncl works.
3311         Reported by Rainer Tammer.
3312
3313 2010-07-30  Bruno Haible  <bruno@clisp.org>
3314
3315         round: Update regarding AIX.
3316         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
3317         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
3318         Reported by Rainer Tammer.
3319
3320 2010-07-30  Bruno Haible  <bruno@clisp.org>
3321
3322         rename: Update regarding AIX.
3323         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
3324         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
3325         Reported by Rainer Tammer.
3326
3327 2010-07-30  Bruno Haible  <bruno@clisp.org>
3328
3329         printf.m4: Update regarding AIX.
3330         * m4/printf.m4: Update comments regarding AIX.
3331         Reported by Rainer Tammer.
3332
3333 2010-07-30  Bruno Haible  <bruno@clisp.org>
3334
3335         iconv: Update regarding AIX.
3336         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
3337         AIX 7.
3338         Reported by Rainer Tammer.
3339
3340 2010-07-30  Bruno Haible  <bruno@clisp.org>
3341
3342         getopt: Update regarding AIX.
3343         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
3344         no on AIX.
3345         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
3346         Reported by Rainer Tammer.
3347
3348 2010-07-30  Bruno Haible  <bruno@clisp.org>
3349
3350         ldexpl; Update regarding AIX.
3351         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
3352         on AIX 7.
3353         Reported by Rainer Tammer.
3354
3355 2010-07-30  Bruno Haible  <bruno@clisp.org>
3356
3357         frexpl: Update regarding AIX.
3358         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
3359         on AIX 7.
3360         Reported by Rainer Tammer.
3361
3362 2010-07-30  Bruno Haible  <bruno@clisp.org>
3363
3364         open, fopen: Update regarding AIX.
3365         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
3366         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3367         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
3368         * doc/posix-functions/fopen.texi: Likewise.
3369         Reported by Rainer Tammer.
3370
3371 2010-07-30  Bruno Haible  <bruno@clisp.org>
3372
3373         chown: Update doc regarding AIX.
3374         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
3375         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
3376         Reported by Rainer Tammer.
3377
3378 2010-07-30  Eric Blake  <eblake@redhat.com>
3379
3380         strtod: fix bug in replacement function on AIX
3381         * lib/strtod.c (strtod): Special case broken "0x" parse in
3382         underlying strtod.
3383         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
3384         * doc/posix-functions/strtod.texi (strtod): Likewise.
3385         Reported by Rainer Tammer.
3386
3387 2010-07-30  Bruno Haible  <bruno@clisp.org>
3388
3389         mbrlen: Fix cross-compilation guess for AIX.
3390         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
3391         guess. Leftover from 2008-12-22.
3392
3393 2010-07-30  Bruno Haible  <bruno@clisp.org>
3394
3395         mbrtowc: Fix cross-compilation guess for AIX.
3396         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
3397         guess. Leftover from 2008-12-21.
3398
3399 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
3400
3401         init.sh: work around trap limitation of some shells
3402         * tests/init.sh (setup_): Move exit trap outside of shell function.
3403
3404 2010-07-29  Eric Blake  <eblake@redhat.com>
3405
3406         strtod: aid debugging
3407         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
3408         understanding why strtod is rejected.
3409
3410 2010-07-28  Bruno Haible  <bruno@clisp.org>
3411
3412         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
3413         * lib/unistr/u8-chr.c: Include <string.h>.
3414         * tests/unistr/test-u8-chr.c: Likewise.
3415         * tests/unistr/test-u16-chr.c: Likewise.
3416         * tests/unistr/test-u32-chr.c: Likewise.
3417         * tests/unistr/test-u8-strchr.c: Likewise.
3418         * tests/unistr/test-u16-strchr.c: Likewise.
3419         * tests/unistr/test-u32-strchr.c: Likewise.
3420         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
3421         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
3422         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
3423         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
3424
3425 2010-07-28  Bruno Haible  <bruno@clisp.org>
3426
3427         Use spaces for indentation, not tabs.
3428         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3429
3430 2010-07-27  Bruno Haible  <bruno@clisp.org>
3431
3432         mbspcasecmp: Fix function specification.
3433         * lib/string.in.h (mbspcasecmp): Fix specification comment.
3434         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
3435         Reported by Eric Blake <eblake@redhat.com>.
3436
3437 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
3438
3439         timespec: use cast and not conditional, as truncation isn't possible
3440         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
3441         instead of a conditional.  Comment about the situation in more detail.
3442         This undoes most of the 2009-10-29 patch.
3443
3444 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
3445
3446         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
3447         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
3448         * lib/unistr/u8-strchr.c: Likewise.
3449         * modules/unistr/u8-chr: Depend on memchr.
3450
3451         unistr/u*-strchr: add tests
3452         * modules/unistr/u8-strchr-tests: New file.
3453         * modules/unistr/u16-strchr-tests: New file.
3454         * modules/unistr/u32-strchr-tests: New file.
3455         * tests/unistr/test-strchr.h: New file.
3456         * tests/unistr/test-u8-strchr.c: New file.
3457         * tests/unistr/test-u16-strchr.c: New file.
3458         * tests/unistr/test-u32-strchr.c: New file.
3459
3460         unistr/u*-chr: test multibyte sequences more
3461         * tests/unistr/test-chr.h: Do complete testing of the characters in the
3462         test vector.
3463         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
3464         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
3465         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
3466
3467         unistr/u*-chr: test multibyte sequences
3468         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
3469
3470         unistr/u*-chr: prepare for multibyte tests
3471         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
3472         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
3473         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
3474         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
3475         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
3476         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
3477
3478 2010-07-18  Bruno Haible  <bruno@clisp.org>
3479
3480         unistr/u8-strchr: Optimize non-ASCII argument case.
3481         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
3482         because the first byte often matches anyway.
3483         Reported by Pádraig Brady <P@draigbrady.com>.
3484
3485 2010-07-15  Karl Berry  <karl@gnu.org>
3486
3487         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
3488
3489 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
3490
3491         getcwd: on Solaris, work better if ancestors are inaccessible
3492         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
3493         buffer and size, try again with a large buffer.  This works better
3494         on Solaris, since its getcwd succeeds even if the path to the root
3495         is inaccessible, and this is helpful in common cases such as .zfs
3496         hidden directories.  Problem reported by J Chapman Flack in
3497         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
3498         Use system getcwd if it's declared, not merely if it's partly
3499         working; use the partly-working test only to avoid needless effort
3500         if the system getcwd fails.
3501         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
3502         comment that was already obsolete and is now even more obsolete.
3503         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
3504         now might call strdup.
3505
3506 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
3507
3508         pthread: Add enough so that coreutils/src/sort.c compiles.
3509         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
3510         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
3511         gnulib. Include <sched.h> and <time.h>, as per POSIX.
3512         Include <sys/types.h>, in case it defines pthread_t.
3513         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
3514         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
3515         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
3516         (pthread_rwlockattr_t, pthread_spinlock_t):
3517         New typedefs, if HAVE_PTHREAD_T is not defined.
3518         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
3519         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
3520         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
3521         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
3522         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
3523         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
3524         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
3525         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
3526         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
3527         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
3528         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
3529         New macros.
3530         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
3531         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
3532         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
3533         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
3534         (pthread_spin_unlock): New dummy functions.
3535         (pthread_create): Return EAGAIN; don't set errno.
3536         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
3537         require AC_C_INLINE.
3538         * modules/pthread (Depends-on): Add sched, time.
3539         (pthread.h): Use AM_V_GEN.
3540
3541 2010-07-13  Bruno Haible  <bruno@clisp.org>
3542
3543         striconveh: Don't malloc memory if the result buffer is sufficient.
3544         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
3545         buffer if its size is sufficient.
3546         Reported by Ludovic Courtès <ludo@gnu.org>.
3547
3548 2010-07-13  Bruno Haible  <bruno@clisp.org>
3549
3550         strtod: Add safety check.
3551         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
3552
3553 2010-07-12  Bruno Haible  <bruno@clisp.org>
3554
3555         Unify tests that set gl_cv_func_ldexpl_no_libm.
3556         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
3557         gl_FUNC_LDEXPL.
3558         (gl_FUNC_LDEXPL): Invoke it.
3559         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3560
3561 2010-07-12  Bruno Haible  <bruno@clisp.org>
3562
3563         Unify tests that set gl_cv_func_ldexp_no_libm.
3564         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
3565         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
3566         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
3567         (configure.ac): Simply invoke gl_FUNC_LDEXP.
3568         * modules/strtod (Files): Add m4/ldexp.m4.
3569
3570 2010-07-12  Bruno Haible  <bruno@clisp.org>
3571
3572         Unify tests that set gl_cv_func_frexpl_no_libm.
3573         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
3574         gl_FUNC_FREXPL_NO_LIBM.
3575         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
3576         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3577
3578 2010-07-12  Bruno Haible  <bruno@clisp.org>
3579
3580         Unify tests that set gl_cv_func_frexp_no_libm.
3581         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
3582         gl_FUNC_FREXP_NO_LIBM.
3583         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
3584         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3585
3586 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3587
3588         memcoll: clarify sizes versus lengths, document better, and tweak perf
3589         * lib/memcoll.c (strcoll_loop, memcoll0):
3590         Improve quality of descriptive comments.  Name variables
3591         consistently as to whether they are lengths (which do not include
3592         terminating null) versus sizes (which do).
3593         * lib/xmemcoll.c (xmemcoll0): Likewise.
3594         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
3595         returned when s1size == 0; this is easier to compile and saves
3596         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
3597
3598 2010-07-12  Bruno Haible  <bruno@clisp.org>
3599
3600         Tests for module '_Exit'.
3601         * modules/_Exit-tests: New file.
3602         * tests/test-_Exit.sh: New file.
3603         * tests/test-_Exit.c: New file.
3604
3605         New module '_Exit'.
3606         * lib/stdlib.in.h (__attribute__): New macro.
3607         (_Exit): New declaration.
3608         * lib/_Exit.c: New file.
3609         * m4/_Exit.m4: New file.
3610         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
3611         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
3612         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
3613         * modules/_Exit: New file.
3614         * tests/test-stdlib-c++.cc (_Exit): Check signature.
3615         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
3616
3617 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3618
3619         strtod: make it more-accurate typically, and don't require libm
3620         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
3621         Include limits.h.  Don't include string.h.
3622         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
3623         (locale_isspace): New function, so that no casts are needed to
3624         check whether *s is a space.
3625         (ldexp): Provide an unused dummy if not available.
3626         (scale_radix_exp, parse_number, underlying_strtod): New functions.
3627         (strtod): Use them.  This implementation prefers to use the
3628         underlying strtod if available, falling back on our own code
3629         only to fix known bugs.  This is more likely to produce an
3630         accurate result.  Also, it avoids the use of libm functions.
3631         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
3632         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
3633         was absent, but it caused a test failure with coreutils.
3634         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
3635         with libm.
3636         * modules/strtod (Makefile.am, Link): libm is no longer needed.
3637         * modules/strtod-tests (Makefile.am): Likewise.
3638
3639 2010-07-11  Pádraig Brady  <P@draigBrady.com>
3640             Bruno Haible  <bruno@clisp.org>
3641
3642         unistr/u8-strchr: Optimize ASCII argument case.
3643         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
3644
3645 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3646
3647         (x)memcoll: minor tweaks
3648         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
3649         is after the type that it qualifies.
3650         (memcoll0): Likewise.
3651         * lib/memcoll.h (memcoll0): Likewise.
3652         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
3653         * lib/xmemcoll.h (xmemcoll0): Likewise.
3654         * lib/memcoll.c (memcoll0): Correct the comment.  This function
3655         differs from memcoll in that the NUL byte is part of the argument.
3656         Omit the abort-checks, as performance is a real issue here.  Plus,
3657         the checks were wrong anyway (an off-by-one error).  Omit local
3658         variable 'diff', as it's a bit clearer that way.
3659         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
3660         no longer needed.
3661
3662 2010-07-08  Chen Guo <chenguo4@yahoo.com>
3663
3664         (x)memcoll: speedup when input is known to be NUL delimited
3665         * lib/memcoll.c: Include stdlib.
3666         (memcoll0) New function.
3667         (strcoll_loop) New function, refactored for use in both memcoll
3668         and memcoll0.
3669         * lib/memcoll.h: Add prototype for memcoll0.
3670         * lib/xmemcoll.c: (xmemcoll0) New function.
3671         (collate_error) New function, refactored for use in both xmemcoll
3672         and xmemcoll0.
3673         * lib/xmemcoll.h: Add prototype for xmemcoll0.
3674         * m4/memcoll.m4: add inline invocation.
3675
3676 2010-07-06  Pádraig Brady  <P@draigBrady.com>
3677
3678         * build-aux/bootstrap: Remove any local translations
3679         from the translation project synchronization directory,
3680         so that local only translations are not distributed.
3681
3682 2010-07-04  Bruno Haible  <bruno@clisp.org>
3683
3684         fsusage: Clarify which code applies to which platforms.
3685         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
3686         platform.
3687         * lib/fsusage.c (get_fs_usage): Likewise.
3688
3689 2010-07-04  Bruno Haible  <bruno@clisp.org>
3690
3691         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
3692         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
3693         Reported by Martin Lambers <marlam@marlam.de>.
3694
3695 2010-07-04  Jim Meyering  <meyering@redhat.com>
3696
3697         hash: once again explicitly disallow insertion of NULL
3698         * lib/hash.c (hash_insert0): Reinstate just-removed test:
3699         inserting a NULL pointer cannot work with these functions.
3700         Add a comment with details.
3701         This reverts part of the 2010-07-01 commit, 5bef1a35
3702         "hash: extend module to deal with non-pointer keys".
3703
3704 2010-07-01  Bruno Haible  <bruno@clisp.org>
3705
3706         stdbool: Update doc.
3707         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
3708         Info from Christian Weisgerber <naddy@mips.inka.de>.
3709
3710 2010-07-01  Jim Meyering  <meyering@redhat.com>
3711
3712         hash: extend module to deal with non-pointer keys
3713         * lib/hash.c (hash_insert0): New interface, much like hash_insert
3714         but that allows insertion of non-pointer entries.
3715         Do not disallow an ENTRY value of NULL.
3716         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
3717         * lib/hash.h (hash_insert0): Declare.
3718
3719 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3720
3721         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
3722         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
3723         not present (i.e. with autoconf 2.59 and when using gettextize, not
3724         gnulib), require AC_GNU_SOURCE instead.
3725
3726 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
3727
3728         idpriv-drop: Fix tests.
3729         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
3730         not to the test-idpriv-droptemp program.
3731
3732 2010-06-29  Bruno Haible  <bruno@clisp.org>
3733
3734         string: Fix syntax error with g++ 2.96.
3735         * lib/string.in.h (__pure__): Remove definition.
3736         (_GL_ATTRIBUTE_PURE): New macro.
3737         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
3738         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
3739         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3740
3741 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
3742
3743         unitypes: Fix bug introduced on 2010-05-18.
3744         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
3745
3746 2010-06-22  Eric Blake  <eblake@redhat.com>
3747
3748         memmem: slight optimization
3749         * lib/str-two-way.h (critical_factorization): Update comments.
3750         Reduce work during factorization phase.
3751         Reported by Carlos Bueno <carlos@bueno.org>.
3752
3753 2010-06-21  Bruno Haible  <bruno@clisp.org>
3754
3755         Fix HAVE_CALLOC_POSIX misnomer.
3756         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
3757         !HAVE_CALLOC_POSIX.
3758         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
3759         HAVE_CALLOC_POSIX.
3760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
3761         instead of HAVE_CALLOC_POSIX.
3762         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
3763         HAVE_CALLOC_POSIX.
3764
3765         Use modern idiom for calloc() replacement.
3766         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
3767         AC_FUNC_CALLOC.
3768         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
3769         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
3770         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3771         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
3772         (gl_REPLACE_CALLOC): New macro.
3773
3774 2010-06-21  Bruno Haible  <bruno@clisp.org>
3775
3776         Fix HAVE_REALLOC_POSIX misnomer.
3777         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
3778         !HAVE_REALLOC_POSIX.
3779         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
3780         HAVE_REALLOC_POSIX.
3781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
3782         instead of HAVE_REALLOC_POSIX.
3783         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
3784         HAVE_REALLOC_POSIX.
3785
3786         Use modern idiom for realloc() replacement.
3787         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
3788         AC_FUNC_REALLOC.
3789         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
3790         Autoconf's AC_FUNC_REALLOC.
3791         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3792         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
3793         (gl_REPLACE_REALLOC): New macro.
3794         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3795
3796 2010-06-21  Bruno Haible  <bruno@clisp.org>
3797
3798         Fix HAVE_MALLOC_POSIX misnomer.
3799         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
3800         !HAVE_MALLOC_POSIX.
3801         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
3802         HAVE_MALLOC_POSIX.
3803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
3804         instead of HAVE_MALLOC_POSIX.
3805         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
3806         HAVE_MALLOC_POSIX.
3807
3808         Use modern idiom for malloc() replacement.
3809         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
3810         AC_FUNC_MALLOC.
3811         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
3812         Autoconf's AC_FUNC_MALLOC.
3813         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3814         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
3815         (gl_REPLACE_MALLOC): New macro.
3816         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3817
3818 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
3819
3820         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
3821         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
3822         This macro takes 3 arguments, not 4.
3823
3824 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
3825
3826         ipv6: fix detection under mingw
3827         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
3828         in6_addr.
3829
3830 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
3831
3832         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
3833         that strtod() works when cross-compiling to a glibc version known
3834         to work.
3835
3836 2010-06-15  Bruno Haible  <bruno@clisp.org>
3837
3838         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
3839
3840 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
3841
3842         select: Correct timeout.
3843         * lib/select.c (rpl_select): Compute wait_timeout correctly.
3844
3845 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3846
3847         git-version-gen: init shell var to avoid env var influence
3848         * build-aux/git-version-gen (v): Init shell var to empty.
3849
3850 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
3851
3852         priv-set: Don't assume that priv.h exists merely because getppriv does.
3853         See Jan Andersen's bug report about AIX 5L in
3854         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
3855         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
3856         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
3857         * lib/priv-set.h: Likewise.
3858         * tests/test-priv-set.c: Likewise.
3859
3860 2010-06-13  Bruno Haible  <bruno@clisp.org>
3861
3862         relocatable: Make it easier to test whether to install wrappers.
3863         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
3864         RELOCATABLE_VIA_WRAPPER.
3865
3866 2010-06-13  Bruno Haible  <bruno@clisp.org>
3867
3868         gnulib-tool: Display specified modules and dependencies differently.
3869         * gnulib-tool (func_show_module_list): New function.
3870         (func_import, func_create_testdir): Invoke it.
3871         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3872
3873 2010-06-13  Bruno Haible  <bruno@clisp.org>
3874
3875         gnulib-tool: Align code of func_import and func_create_testdir.
3876         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
3877         specified_modules.
3878
3879 2010-06-12  Jim Meyering  <meyering@redhat.com>
3880
3881         test-inttostr: avoid spurious failure on Solaris 9
3882         * tests/test-inttostr.c (main): Skip the test when snprintf fails
3883         to accept "%ju".  Reported by Bruno Haible.
3884
3885 2010-06-11  Jim Meyering  <meyering@redhat.com>
3886
3887         test-sys_socket: mark variables as used more readably
3888         * tests/test-sys_socket.c (main): Mark otherwise unused variables
3889         as "used" explicitly via (void) statement casts.  This is more
3890         readable than using them in an artificial return expression.
3891         Suggestion from Bruno Haible.
3892
3893 2010-06-11  Bruno Haible  <bruno@clisp.org>
3894
3895         Avoid some more warnings from "gcc -Wwrite-strings".
3896         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
3897         to 'const char *'.
3898         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
3899         * tests/test-c-strcasestr.c (main): Likewise.
3900         * tests/test-mbscasestr1.c (main): Likewise.
3901         * tests/test-mbscasestr2.c (main): Likewise.
3902         * tests/test-memmem.c (main): Likewise.
3903         * tests/test-strstr.c (main): Likewise.
3904         * tests/test-strcasestr.c (main): Likewise.
3905
3906 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3907
3908         init.sh: change framework_failure_ to fail with status 99, not 1
3909         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
3910         automake's parallel-tests rule that this is an unexpected failure,
3911         even if the test is listed in XFAIL_TESTS.
3912
3913 2010-06-11  Jim Meyering  <meyering@redhat.com>
3914
3915         test-inttostr: avoid warnings about 4-6KB literal strings
3916         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
3917         Include "macros.h", for its definition of ASSERT.
3918         (CK): s/assert/ASSERT/
3919         * modules/inttostr-tests (Files): Add macros.h.
3920
3921         init.sh: don't use $ME_ or skip_ before they are defined
3922         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
3923         their first uses.  Also hoist their companions: warn_, fail_,
3924         framework_failure_, $stderr_fileno.  Prompted by a patch from
3925         Stefano Lattarini.
3926
3927         test-sys_socket: avoid set-but-not-used warnings from gcc
3928         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
3929         avoid warning about set-but-not-used variables.
3930
3931         test-xvasprintf: avoid 'const' discard warnings
3932         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
3933         "const" when assigning from literal strings.
3934         (test_xasprintf): Add "void" in function argument list to placate
3935         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
3936
3937         tests: avoid compilation warnings in argmatch and exclude tests...
3938         in packages that define ARGMATCH_DIE_DECL, like coreutils.
3939         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
3940         Since it always exits, declare with the "noreturn" attribute.
3941         * tests/test-argmatch.c: Likewise.
3942
3943         tests: avoid 'const' discard warnings in mbsstr tests
3944         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
3945         * tests/test-mbsstr2.c (main): Likewise.
3946
3947         test-verify: avoid warning from gcc's -Wmissing-declarations
3948         * tests/test-verify.c (function): Declare to be static.
3949
3950         test-inttostr.c: include <string.h> for use of strcmp
3951         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
3952
3953         test-linkat: avoid failed assertion on "other" architectures
3954         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
3955         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
3956         sparc: https://bugs.launchpad.net/bugs/591968
3957
3958 2010-06-11  Jim Meyering  <meyering@redhat.com>
3959
3960         printf.m4: avoid autoconf's "Expanded Before Required" warning
3961         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
3962         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
3963         autoconf warning.
3964
3965 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
3966
3967         Replacement header templates are now named with ".in", not "_".
3968         * doc/gnulib-intro.texi: Correct.
3969
3970 2010-06-10  Jim Meyering  <meyering@redhat.com>
3971
3972         inttostr-tests: depend on snprintf, not snprintf-posix
3973         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
3974         snprintf-posix, to avoid this aclocal failure:
3975           missing file gnulib-tests/vasnprintf.c
3976           configure.ac:45: error: expected source file, required through \
3977           AC_LIBSOURCES, not found
3978
3979 2010-06-10  Jim Meyering  <meyering@redhat.com>
3980
3981         inttostr: add a new function, inttostr, and tests
3982         The namesake function was not available.  The existence of the
3983         template file, inttostr.c makes its addition nontrivial.
3984         * lib/anytostr.c: Rename from inttostr.c.
3985         (anytostr): Rename from inttostr.
3986         * lib/inttostr.c: New file.
3987         * modules/inttostr (Files): Add anytostr.c.
3988         (Makefile.am): Set lib_SOURCES instead of ...
3989         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
3990         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
3991         * lib/offtostr.c: Likewise.
3992         * lib/uinttostr.c: Likewise.
3993         * lib/umaxtostr.c: Likewise.
3994         * modules/inttostr-tests: New file.
3995         * tests/test-inttostr.c: New file.  Test these functions.
3996
3997 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
3998             Bruno Haible  <bruno@clisp.org>
3999
4000         Add "Extending Gnulib" chapter to manual.
4001         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
4002         chapter.
4003         (Extending Gnulib): New chapter.
4004         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
4005         chapter.
4006
4007 2010-06-09  Bruno Haible  <bruno@clisp.org>
4008
4009         Avoid relocwrapper link errors due to gnulib replacement functions.
4010         * lib/areadlink.c: Use the system's malloc, realloc functions.
4011         (areadlink): Set errno to ENOMEM explicitly.
4012         * modules/areadlink (Depends-on): Remove malloc-posix.
4013         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4014
4015 2010-06-09  Bruno Haible  <bruno@clisp.org>
4016
4017         Avoid relocwrapper link errors due to gnulib replacement functions.
4018         * lib/canonicalize-lgpl.c: Use the system's malloc function.
4019         * lib/malloca.c: Likewise.
4020         * lib/relocatable.c: Likewise.
4021         * lib/progreloc.c: Use the system's malloc, sprintf functions.
4022         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
4023         * lib/setenv.c: Use the system's malloc, realloc functions.
4024         * lib/strerror.c: Use the system's sprintf function.
4025         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4026
4027 2010-06-04  Bruno Haible  <bruno@clisp.org>
4028
4029         Prefer documented low-level autoconf macro names.
4030         * m4/lib-link.m4: Use m4_translit instead of translit.
4031         * m4/environ.m4: Likewise.
4032         * m4/mathfunc.m4: Likewise.
4033         * m4/onceonly.m4: Likewise.
4034         * m4/stdint.m4: Likewise.
4035         Suggested by Eric Blake.
4036
4037 2010-06-04  Martin Lambers  <marlam@marlam.de>
4038             Bruno Haible  <bruno@clisp.org>
4039
4040         havelib: Allow library names with '+' characters.
4041         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4042         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
4043
4044 2010-06-09  Bruno Haible  <bruno@clisp.org>
4045
4046         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
4047         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
4048         realloc failed.
4049
4050 2010-06-08  Peter Simons  <simons@cryp.to>
4051
4052         maint.mk: make the news-check rule more configurable
4053         * top/maint.mk (news-check-lines-spec) New variable.
4054         (news-check): Use "sed -n 1,10p" in place of "head".
4055
4056 2010-06-07  Jim Meyering  <meyering@redhat.com>
4057
4058         do-release-commit-and-tag: fix typo in --help
4059         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
4060
4061         regex: avoid new dead-code warning with gcc-4.6.0
4062         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
4063         if-block containing a while-loop.  It's been unused for at least
4064         5 years.
4065
4066 2010-06-05  Bruno Haible  <bruno@clisp.org>
4067
4068         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
4069         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
4070
4071 2010-06-04  Bruno Haible  <bruno@clisp.org>
4072
4073         Update to GNU gettext 0.18.1.
4074         * modules/gettext (configure.ac): Require gettext infrastructure from
4075         version 0.18.1.
4076
4077 2010-06-03  Bruno Haible  <bruno@clisp.org>
4078
4079         Don't use AC_LIBOBJ with file names in subdirectories.
4080         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
4081         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
4082         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
4083         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
4084         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
4085         gl_LIBUNISTRING_LIBSOURCE.
4086         (Makefile.am): Augment lib_SOURCES here, conditionally.
4087         * NEWS: Drop requirement for Automake option 'subdir-objects'.
4088
4089 2010-06-03  Bruno Haible  <bruno@clisp.org>
4090
4091         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
4092         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
4093         expansion does not end with a newline.
4094         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
4095         unnecessary newline.
4096
4097 2010-06-03  Bruno Haible  <bruno@clisp.org>
4098
4099         Reduce dependencies.
4100         * tests/test-quotearg.h: New file, extracted from
4101         tests/test-quotearg.c.
4102         * tests/test-quotearg-simple.c: New file, extracted from
4103         tests/test-quotearg.c.
4104         * tests/test-quotearg.c: Don't include <ctype.h>.
4105         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
4106         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
4107         use_quote_double_quotes, use_quotearg_colon): Moved to
4108         tests/test-quotearg.h.
4109         (results_g, flag_results, custom_quotes, custom_results): Moved
4110         to tests/test-quotearg-simple.c.
4111         (main): Moved the part that does not depend on gettext to
4112         tests/test-quotearg-simple.c. Return 77 if the test cannot be
4113         performed.
4114         * modules/quotearg-simple: New file.
4115         * modules/quotearg-simple-tests: New file.
4116         * modules/quotearg (Depends-on): Add quotearg-simple.
4117         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
4118         (Files): Add tests/test-quotearg.h.
4119         Reported by Paolo Bonzini.
4120
4121 2010-06-03  Bruno Haible  <bruno@clisp.org>
4122
4123         Reduce dependencies.
4124         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
4125
4126 2010-06-03  Bruno Haible  <bruno@clisp.org>
4127
4128         time: Undefine more broken macros.
4129         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
4130         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
4131         Reported by Eric Blake.
4132
4133 2010-06-03  Bruno Haible  <bruno@clisp.org>
4134
4135         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
4136         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
4137         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
4138         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
4139         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
4140         Reported by Ludovic Courtès <ludo@gnu.org>.
4141
4142 2010-06-02  Eric Blake  <eblake@redhat.com>
4143
4144         time: work with mingw + pthreads-win32 library
4145         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
4146         if timespec is defined only in pthread.h.
4147         * modules/time (Makefile.am): Substitute it.
4148         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
4149         <pthread.h>, when needed.
4150         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
4151         from the library.
4152
4153 2010-05-31  Bruno Haible  <bruno@clisp.org>
4154
4155         Avoid expanding two macros in the wrong order.
4156         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
4157         gl_LIBUNISTRING if it is defined.
4158         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
4159         autoconf >= 2.64.
4160         Reported by Ludovic Courtès <ludo@gnu.org>.
4161
4162 2010-05-27  Jim Meyering  <meyering@redhat.com>
4163
4164         maint.mk: also prohibit "#undef" of always-defined symbols
4165         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
4166         Allow more than one space before the symbol name.
4167         (sc_prohibit_always-defined_macros): Use grep's -E, now that
4168         the regexp uses alternation.
4169
4170 2010-05-26  Eric Blake  <eblake@redhat.com>
4171
4172         maint.mk: avoid echo -e
4173         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
4174         Convert all uses of echo -* to printf.
4175         Reported by Matthias Bolte.
4176
4177 2010-05-25  Bruno Haible  <bruno@clisp.org>
4178
4179         Update to GNU gettext 0.18, part 2.
4180         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
4181         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
4182
4183 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4184
4185         Add missing include in test-pwrite.c.
4186         * tests/test-pwrite.c: Include string.h, for strcmp.
4187
4188 2010-05-24  Bruno Haible  <bruno@clisp.org>
4189
4190         * NEWS: Mention requirement for Automake option 'subdir-objects'.
4191
4192 2010-05-24  Bruno Haible  <bruno@clisp.org>
4193
4194         Don't use conversion with transliteration in u{8,16,32}_strcoll.
4195         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
4196         iconveh_error argument.
4197         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
4198         U_STRCONV_TO_LOCALE.
4199         * lib/unistr/u16-strcoll.c: Likewise.
4200         * lib/unistr/u32-strcoll.c: Likewise.
4201         * modules/unistr/u8-strcoll (Depends-on): Add
4202         uniconv/u8-strconv-to-enc, localcharset. Remove
4203         uniconv/u8-strconv-to-locale.
4204         (configure.ac): Bump version number.
4205         * modules/unistr/u16-strcoll (Depends-on): Add
4206         uniconv/u16-strconv-to-enc, localcharset. Remove
4207         uniconv/u16-strconv-to-locale.
4208         (configure.ac): Bump version number.
4209         * modules/unistr/u32-strcoll (Depends-on): Add
4210         uniconv/u32-strconv-to-enc, localcharset. Remove
4211         uniconv/u32-strconv-to-locale.
4212         (configure.ac): Bump version number.
4213
4214 2010-05-24  Bruno Haible  <bruno@clisp.org>
4215
4216         Avoid a test failure on NetBSD 5.0.
4217         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
4218         an iconv() bug.
4219
4220 2010-05-24  Bruno Haible  <bruno@clisp.org>
4221
4222         Adjust #include directive style.
4223         * modules/regex (Includes): Recommend to write <regex.h>.
4224
4225 2010-05-24  Bruno Haible  <bruno@clisp.org>
4226
4227         regex: Don't require alloca.
4228         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
4229         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
4230         only inside if (0).
4231
4232 2010-05-23  Jim Meyering  <meyering@redhat.com>
4233
4234         test-renameat.c: include <sys/stat.h>
4235         * tests/test-renameat.c: Include <sys/stat.h>; required for
4236         definition of S_IS* macros.
4237
4238 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
4239
4240         Update maintainer documentation for 'relocatable-prog' module.
4241         * doc/relocatable-maint.texi: Update.
4242         Comments by Bruno Haible.
4243
4244 2010-05-23  Bruno Haible  <bruno@clisp.org>
4245
4246         git-merge-changelog: Enable --split-merged-entry by default.
4247         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
4248         (usage): Don't mention this option any more.
4249         Reported by Ralf Wildenhues.
4250
4251 2010-05-23  Jim Meyering  <meyering@redhat.com>
4252
4253         test-pwrite: do not leave behind a test file named "out"
4254         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
4255         The trivial-looking use of init.sh is really necessary.
4256         It ensures that the temporary file, "out", is created in
4257         a temporary directory, and removed upon termination.
4258         * tests/test-pwrite.sh: Re-add file.
4259         * modules/pwrite-tests: Reference it.
4260
4261 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4262
4263         Fix output redirection buglet in init.sh.
4264         * tests/init.sh: Fix redirection of stderr.
4265
4266 2010-05-20  Simon Josefsson  <simon@josefsson.org>
4267
4268         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
4269
4270 2010-05-17  Simon Josefsson  <simon@josefsson.org>
4271
4272         * modules/valgrind-tests: New file.
4273         * m4/valgrind-tests.m4: New file.
4274         * doc/valgrind-tests.texi: New file.
4275         * doc/gnulib.texi (Running self-tests under valgrind): New
4276         section.
4277
4278 2010-05-19  Bruno Haible  <bruno@clisp.org>
4279
4280         Clean up dead code in recent commit.
4281         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
4282         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
4283         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
4284         Suggested by Paolo Bonzini.
4285
4286 2010-05-19  Bruno Haible  <bruno@clisp.org>
4287
4288         Avoid valgrind error reports from libunistring.
4289         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
4290         * modules/libunistring (Files): Add it.
4291         * modules/libunistring-optional (Files): Likewise.
4292
4293 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
4294             Bruno Haible  <bruno@clisp.org>
4295
4296         New module 'libunistring-optional'.
4297         * modules/libunistring-optional: New file.
4298         * m4/libunistring-base.m4: New file.
4299         * m4/libunistring-optional.m4: New file.
4300         * lib/unicase.in.h: Renamed from lib/unicase.h.
4301         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
4302         * lib/unictype.in.h: Renamed from lib/unictype.h.
4303         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
4304         * lib/uniname.in.h: Renamed from lib/uniname.h.
4305         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
4306         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
4307         * lib/unistr.in.h: Renamed from lib/unistr.h.
4308         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
4309         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
4310         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
4311         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
4312         gl_LIBUNISTRING. If the library was found, determine the installed
4313         version and set LIBUNISTRING_VERSION.
4314         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
4315         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
4316         handle a configuration option --with-included-libunistring.
4317         * modules/libunistring (Files): Add m4/absolute-header.m4.
4318         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
4319         Add m4/libunistring-base.m4.
4320         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4321         (Makefile.am): Build unicase.h from unicase.in.h.
4322         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
4323         Add m4/libunistring-base.m4.
4324         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4325         (Makefile.am): Build uniconv.h from uniconv.in.h.
4326         * modules/unictype/base (Files): Use unictype.in.h instead of
4327         unictype.h. Add m4/libunistring-base.m4.
4328         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4329         (Makefile.am): Build unictype.h from unictype.in.h.
4330         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
4331         Add m4/libunistring-base.m4.
4332         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4333         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
4334         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
4335         Add m4/libunistring-base.m4.
4336         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4337         (Makefile.am): Build uniname.h from uniname.in.h.
4338         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
4339         Add m4/libunistring-base.m4.
4340         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4341         (Makefile.am): Build uninorm.h from uninorm.in.h.
4342         * modules/unistdio/base (Files): Use unistdio.in.h instead of
4343         unistdio.h. Add m4/libunistring-base.m4.
4344         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4345         (Makefile.am): Build unistdio.h from unistdio.in.h.
4346         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
4347         Add m4/libunistring-base.m4.
4348         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4349         (Makefile.am): Build unistr.h from unistr.in.h.
4350         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
4351         Add m4/libunistring-base.m4.
4352         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4353         (Makefile.am): Build unitypes.h from unitypes.in.h.
4354         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
4355         Add m4/libunistring-base.m4.
4356         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4357         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
4358         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
4359         uniwidth.h. Add m4/libunistring-base.m4.
4360         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4361         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
4362         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
4363         instead of augmenting lib_SOURCES.
4364         * modules/unicase/empty-suffix-context: Likewise.
4365         * modules/unicase/locale-language: Likewise.
4366         * modules/unicase/tolower: Likewise.
4367         * modules/unicase/totitle: Likewise.
4368         * modules/unicase/toupper: Likewise.
4369         * modules/unicase/u8-casecmp: Likewise.
4370         * modules/unicase/u8-casecoll: Likewise.
4371         * modules/unicase/u8-casefold: Likewise.
4372         * modules/unicase/u8-casexfrm: Likewise.
4373         * modules/unicase/u8-ct-casefold: Likewise.
4374         * modules/unicase/u8-ct-tolower: Likewise.
4375         * modules/unicase/u8-ct-totitle: Likewise.
4376         * modules/unicase/u8-ct-toupper: Likewise.
4377         * modules/unicase/u8-is-cased: Likewise.
4378         * modules/unicase/u8-is-casefolded: Likewise.
4379         * modules/unicase/u8-is-lowercase: Likewise.
4380         * modules/unicase/u8-is-titlecase: Likewise.
4381         * modules/unicase/u8-is-uppercase: Likewise.
4382         * modules/unicase/u8-prefix-context: Likewise.
4383         * modules/unicase/u8-suffix-context: Likewise.
4384         * modules/unicase/u8-tolower: Likewise.
4385         * modules/unicase/u8-totitle: Likewise.
4386         * modules/unicase/u8-toupper: Likewise.
4387         * modules/unicase/u16-casecmp: Likewise.
4388         * modules/unicase/u16-casecoll: Likewise.
4389         * modules/unicase/u16-casefold: Likewise.
4390         * modules/unicase/u16-casexfrm: Likewise.
4391         * modules/unicase/u16-ct-casefold: Likewise.
4392         * modules/unicase/u16-ct-tolower: Likewise.
4393         * modules/unicase/u16-ct-totitle: Likewise.
4394         * modules/unicase/u16-ct-toupper: Likewise.
4395         * modules/unicase/u16-is-cased: Likewise.
4396         * modules/unicase/u16-is-casefolded: Likewise.
4397         * modules/unicase/u16-is-lowercase: Likewise.
4398         * modules/unicase/u16-is-titlecase: Likewise.
4399         * modules/unicase/u16-is-uppercase: Likewise.
4400         * modules/unicase/u16-prefix-context: Likewise.
4401         * modules/unicase/u16-suffix-context: Likewise.
4402         * modules/unicase/u16-tolower: Likewise.
4403         * modules/unicase/u16-totitle: Likewise.
4404         * modules/unicase/u16-toupper: Likewise.
4405         * modules/unicase/u32-casecmp: Likewise.
4406         * modules/unicase/u32-casecoll: Likewise.
4407         * modules/unicase/u32-casefold: Likewise.
4408         * modules/unicase/u32-casexfrm: Likewise.
4409         * modules/unicase/u32-ct-casefold: Likewise.
4410         * modules/unicase/u32-ct-tolower: Likewise.
4411         * modules/unicase/u32-ct-totitle: Likewise.
4412         * modules/unicase/u32-ct-toupper: Likewise.
4413         * modules/unicase/u32-is-cased: Likewise.
4414         * modules/unicase/u32-is-casefolded: Likewise.
4415         * modules/unicase/u32-is-lowercase: Likewise.
4416         * modules/unicase/u32-is-titlecase: Likewise.
4417         * modules/unicase/u32-is-uppercase: Likewise.
4418         * modules/unicase/u32-prefix-context: Likewise.
4419         * modules/unicase/u32-suffix-context: Likewise.
4420         * modules/unicase/u32-tolower: Likewise.
4421         * modules/unicase/u32-totitle: Likewise.
4422         * modules/unicase/u32-toupper: Likewise.
4423         * modules/unicase/ulc-casecmp: Likewise.
4424         * modules/unicase/ulc-casecoll: Likewise.
4425         * modules/unicase/ulc-casexfrm: Likewise.
4426         * modules/uniconv/u8-conv-from-enc: Likewise.
4427         * modules/uniconv/u8-conv-to-enc: Likewise.
4428         * modules/uniconv/u8-strconv-from-enc: Likewise.
4429         * modules/uniconv/u8-strconv-from-locale: Likewise.
4430         * modules/uniconv/u8-strconv-to-enc: Likewise.
4431         * modules/uniconv/u8-strconv-to-locale: Likewise.
4432         * modules/uniconv/u16-conv-from-enc: Likewise.
4433         * modules/uniconv/u16-conv-to-enc: Likewise.
4434         * modules/uniconv/u16-strconv-from-enc: Likewise.
4435         * modules/uniconv/u16-strconv-from-locale: Likewise.
4436         * modules/uniconv/u16-strconv-to-enc: Likewise.
4437         * modules/uniconv/u16-strconv-to-locale: Likewise.
4438         * modules/uniconv/u32-conv-from-enc: Likewise.
4439         * modules/uniconv/u32-conv-to-enc: Likewise.
4440         * modules/uniconv/u32-strconv-from-enc: Likewise.
4441         * modules/uniconv/u32-strconv-from-locale: Likewise.
4442         * modules/uniconv/u32-strconv-to-enc: Likewise.
4443         * modules/uniconv/u32-strconv-to-locale: Likewise.
4444         * modules/unictype/bidicategory-byname: Likewise.
4445         * modules/unictype/bidicategory-name: Likewise.
4446         * modules/unictype/bidicategory-of: Likewise.
4447         * modules/unictype/bidicategory-test: Likewise.
4448         * modules/unictype/block-list: Likewise.
4449         * modules/unictype/block-test: Likewise.
4450         * modules/unictype/category-C: Likewise.
4451         * modules/unictype/category-Cc: Likewise.
4452         * modules/unictype/category-Cf: Likewise.
4453         * modules/unictype/category-Cn: Likewise.
4454         * modules/unictype/category-Co: Likewise.
4455         * modules/unictype/category-Cs: Likewise.
4456         * modules/unictype/category-L: Likewise.
4457         * modules/unictype/category-Ll: Likewise.
4458         * modules/unictype/category-Lm: Likewise.
4459         * modules/unictype/category-Lo: Likewise.
4460         * modules/unictype/category-Lt: Likewise.
4461         * modules/unictype/category-Lu: Likewise.
4462         * modules/unictype/category-M: Likewise.
4463         * modules/unictype/category-Mc: Likewise.
4464         * modules/unictype/category-Me: Likewise.
4465         * modules/unictype/category-Mn: Likewise.
4466         * modules/unictype/category-N: Likewise.
4467         * modules/unictype/category-Nd: Likewise.
4468         * modules/unictype/category-Nl: Likewise.
4469         * modules/unictype/category-No: Likewise.
4470         * modules/unictype/category-P: Likewise.
4471         * modules/unictype/category-Pc: Likewise.
4472         * modules/unictype/category-Pd: Likewise.
4473         * modules/unictype/category-Pe: Likewise.
4474         * modules/unictype/category-Pf: Likewise.
4475         * modules/unictype/category-Pi: Likewise.
4476         * modules/unictype/category-Po: Likewise.
4477         * modules/unictype/category-Ps: Likewise.
4478         * modules/unictype/category-S: Likewise.
4479         * modules/unictype/category-Sc: Likewise.
4480         * modules/unictype/category-Sk: Likewise.
4481         * modules/unictype/category-Sm: Likewise.
4482         * modules/unictype/category-So: Likewise.
4483         * modules/unictype/category-Z: Likewise.
4484         * modules/unictype/category-Zl: Likewise.
4485         * modules/unictype/category-Zp: Likewise.
4486         * modules/unictype/category-Zs: Likewise.
4487         * modules/unictype/category-and: Likewise.
4488         * modules/unictype/category-and-not: Likewise.
4489         * modules/unictype/category-byname: Likewise.
4490         * modules/unictype/category-name: Likewise.
4491         * modules/unictype/category-none: Likewise.
4492         * modules/unictype/category-of: Likewise.
4493         * modules/unictype/category-or: Likewise.
4494         * modules/unictype/category-test: Likewise.
4495         * modules/unictype/combining-class: Likewise.
4496         * modules/unictype/ctype-alnum: Likewise.
4497         * modules/unictype/ctype-alpha: Likewise.
4498         * modules/unictype/ctype-blank: Likewise.
4499         * modules/unictype/ctype-cntrl: Likewise.
4500         * modules/unictype/ctype-digit: Likewise.
4501         * modules/unictype/ctype-graph: Likewise.
4502         * modules/unictype/ctype-lower: Likewise.
4503         * modules/unictype/ctype-print: Likewise.
4504         * modules/unictype/ctype-punct: Likewise.
4505         * modules/unictype/ctype-space: Likewise.
4506         * modules/unictype/ctype-upper: Likewise.
4507         * modules/unictype/ctype-xdigit: Likewise.
4508         * modules/unictype/decimal-digit: Likewise.
4509         * modules/unictype/digit: Likewise.
4510         * modules/unictype/mirror: Likewise.
4511         * modules/unictype/numeric: Likewise.
4512         * modules/unictype/property-alphabetic: Likewise.
4513         * modules/unictype/property-ascii-hex-digit: Likewise.
4514         * modules/unictype/property-bidi-arabic-digit: Likewise.
4515         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
4516         * modules/unictype/property-bidi-block-separator: Likewise.
4517         * modules/unictype/property-bidi-boundary-neutral: Likewise.
4518         * modules/unictype/property-bidi-common-separator: Likewise.
4519         * modules/unictype/property-bidi-control: Likewise.
4520         * modules/unictype/property-bidi-embedding-or-override: Likewise.
4521         * modules/unictype/property-bidi-eur-num-separator: Likewise.
4522         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
4523         * modules/unictype/property-bidi-european-digit: Likewise.
4524         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
4525         * modules/unictype/property-bidi-left-to-right: Likewise.
4526         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
4527         * modules/unictype/property-bidi-other-neutral: Likewise.
4528         * modules/unictype/property-bidi-pdf: Likewise.
4529         * modules/unictype/property-bidi-segment-separator: Likewise.
4530         * modules/unictype/property-bidi-whitespace: Likewise.
4531         * modules/unictype/property-byname: Likewise.
4532         * modules/unictype/property-combining: Likewise.
4533         * modules/unictype/property-composite: Likewise.
4534         * modules/unictype/property-currency-symbol: Likewise.
4535         * modules/unictype/property-dash: Likewise.
4536         * modules/unictype/property-decimal-digit: Likewise.
4537         * modules/unictype/property-default-ignorable-code-point: Likewise.
4538         * modules/unictype/property-deprecated: Likewise.
4539         * modules/unictype/property-diacritic: Likewise.
4540         * modules/unictype/property-extender: Likewise.
4541         * modules/unictype/property-format-control: Likewise.
4542         * modules/unictype/property-grapheme-base: Likewise.
4543         * modules/unictype/property-grapheme-extend: Likewise.
4544         * modules/unictype/property-grapheme-link: Likewise.
4545         * modules/unictype/property-hex-digit: Likewise.
4546         * modules/unictype/property-hyphen: Likewise.
4547         * modules/unictype/property-id-continue: Likewise.
4548         * modules/unictype/property-id-start: Likewise.
4549         * modules/unictype/property-ideographic: Likewise.
4550         * modules/unictype/property-ids-binary-operator: Likewise.
4551         * modules/unictype/property-ids-trinary-operator: Likewise.
4552         * modules/unictype/property-ignorable-control: Likewise.
4553         * modules/unictype/property-iso-control: Likewise.
4554         * modules/unictype/property-join-control: Likewise.
4555         * modules/unictype/property-left-of-pair: Likewise.
4556         * modules/unictype/property-line-separator: Likewise.
4557         * modules/unictype/property-logical-order-exception: Likewise.
4558         * modules/unictype/property-lowercase: Likewise.
4559         * modules/unictype/property-math: Likewise.
4560         * modules/unictype/property-non-break: Likewise.
4561         * modules/unictype/property-not-a-character: Likewise.
4562         * modules/unictype/property-numeric: Likewise.
4563         * modules/unictype/property-other-alphabetic: Likewise.
4564         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
4565         * modules/unictype/property-other-grapheme-extend: Likewise.
4566         * modules/unictype/property-other-id-continue: Likewise.
4567         * modules/unictype/property-other-id-start: Likewise.
4568         * modules/unictype/property-other-lowercase: Likewise.
4569         * modules/unictype/property-other-math: Likewise.
4570         * modules/unictype/property-other-uppercase: Likewise.
4571         * modules/unictype/property-paired-punctuation: Likewise.
4572         * modules/unictype/property-paragraph-separator: Likewise.
4573         * modules/unictype/property-pattern-syntax: Likewise.
4574         * modules/unictype/property-pattern-white-space: Likewise.
4575         * modules/unictype/property-private-use: Likewise.
4576         * modules/unictype/property-punctuation: Likewise.
4577         * modules/unictype/property-quotation-mark: Likewise.
4578         * modules/unictype/property-radical: Likewise.
4579         * modules/unictype/property-sentence-terminal: Likewise.
4580         * modules/unictype/property-soft-dotted: Likewise.
4581         * modules/unictype/property-space: Likewise.
4582         * modules/unictype/property-terminal-punctuation: Likewise.
4583         * modules/unictype/property-test: Likewise.
4584         * modules/unictype/property-titlecase: Likewise.
4585         * modules/unictype/property-unassigned-code-value: Likewise.
4586         * modules/unictype/property-unified-ideograph: Likewise.
4587         * modules/unictype/property-uppercase: Likewise.
4588         * modules/unictype/property-variation-selector: Likewise.
4589         * modules/unictype/property-white-space: Likewise.
4590         * modules/unictype/property-xid-continue: Likewise.
4591         * modules/unictype/property-xid-start: Likewise.
4592         * modules/unictype/property-zero-width: Likewise.
4593         * modules/unictype/scripts: Likewise.
4594         * modules/unictype/syntax-c-ident: Likewise.
4595         * modules/unictype/syntax-c-whitespace: Likewise.
4596         * modules/unictype/syntax-java-ident: Likewise.
4597         * modules/unictype/syntax-java-whitespace: Likewise.
4598         * modules/unilbrk/u8-possible-linebreaks: Likewise.
4599         * modules/unilbrk/u8-width-linebreaks: Likewise.
4600         * modules/unilbrk/u16-possible-linebreaks: Likewise.
4601         * modules/unilbrk/u16-width-linebreaks: Likewise.
4602         * modules/unilbrk/u32-possible-linebreaks: Likewise.
4603         * modules/unilbrk/u32-width-linebreaks: Likewise.
4604         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
4605         * modules/unilbrk/ulc-width-linebreaks: Likewise.
4606         * modules/uniname/uniname: Likewise.
4607         * modules/uninorm/canonical-decomposition: Likewise.
4608         * modules/uninorm/composition: Likewise.
4609         * modules/uninorm/decomposing-form: Likewise.
4610         * modules/uninorm/decomposition: Likewise.
4611         * modules/uninorm/filter: Likewise.
4612         * modules/uninorm/nfc: Likewise.
4613         * modules/uninorm/nfd: Likewise.
4614         * modules/uninorm/nfkc: Likewise.
4615         * modules/uninorm/nfkd: Likewise.
4616         * modules/uninorm/u8-normalize: Likewise.
4617         * modules/uninorm/u8-normcmp: Likewise.
4618         * modules/uninorm/u8-normcoll: Likewise.
4619         * modules/uninorm/u8-normxfrm: Likewise.
4620         * modules/uninorm/u16-normalize: Likewise.
4621         * modules/uninorm/u16-normcmp: Likewise.
4622         * modules/uninorm/u16-normcoll: Likewise.
4623         * modules/uninorm/u16-normxfrm: Likewise.
4624         * modules/uninorm/u32-normalize: Likewise.
4625         * modules/uninorm/u32-normcmp: Likewise.
4626         * modules/uninorm/u32-normcoll: Likewise.
4627         * modules/uninorm/u32-normxfrm: Likewise.
4628         * modules/unistdio/u8-asnprintf: Likewise.
4629         * modules/unistdio/u8-asprintf: Likewise.
4630         * modules/unistdio/u8-snprintf: Likewise.
4631         * modules/unistdio/u8-sprintf: Likewise.
4632         * modules/unistdio/u8-u8-asnprintf: Likewise.
4633         * modules/unistdio/u8-u8-asprintf: Likewise.
4634         * modules/unistdio/u8-u8-snprintf: Likewise.
4635         * modules/unistdio/u8-u8-sprintf: Likewise.
4636         * modules/unistdio/u8-u8-vasnprintf: Likewise.
4637         * modules/unistdio/u8-u8-vasprintf: Likewise.
4638         * modules/unistdio/u8-u8-vsnprintf: Likewise.
4639         * modules/unistdio/u8-u8-vsprintf: Likewise.
4640         * modules/unistdio/u8-vasnprintf: Likewise.
4641         * modules/unistdio/u8-vasprintf: Likewise.
4642         * modules/unistdio/u8-vsnprintf: Likewise.
4643         * modules/unistdio/u8-vsprintf: Likewise.
4644         * modules/unistdio/u16-asnprintf: Likewise.
4645         * modules/unistdio/u16-asprintf: Likewise.
4646         * modules/unistdio/u16-snprintf: Likewise.
4647         * modules/unistdio/u16-sprintf: Likewise.
4648         * modules/unistdio/u16-u16-asnprintf: Likewise.
4649         * modules/unistdio/u16-u16-asprintf: Likewise.
4650         * modules/unistdio/u16-u16-snprintf: Likewise.
4651         * modules/unistdio/u16-u16-sprintf: Likewise.
4652         * modules/unistdio/u16-u16-vasnprintf: Likewise.
4653         * modules/unistdio/u16-u16-vasprintf: Likewise.
4654         * modules/unistdio/u16-u16-vsnprintf: Likewise.
4655         * modules/unistdio/u16-u16-vsprintf: Likewise.
4656         * modules/unistdio/u16-vasnprintf: Likewise.
4657         * modules/unistdio/u16-vasprintf: Likewise.
4658         * modules/unistdio/u16-vsnprintf: Likewise.
4659         * modules/unistdio/u16-vsprintf: Likewise.
4660         * modules/unistdio/u32-asnprintf: Likewise.
4661         * modules/unistdio/u32-asprintf: Likewise.
4662         * modules/unistdio/u32-snprintf: Likewise.
4663         * modules/unistdio/u32-sprintf: Likewise.
4664         * modules/unistdio/u32-u32-asnprintf: Likewise.
4665         * modules/unistdio/u32-u32-asprintf: Likewise.
4666         * modules/unistdio/u32-u32-snprintf: Likewise.
4667         * modules/unistdio/u32-u32-sprintf: Likewise.
4668         * modules/unistdio/u32-u32-vasnprintf: Likewise.
4669         * modules/unistdio/u32-u32-vasprintf: Likewise.
4670         * modules/unistdio/u32-u32-vsnprintf: Likewise.
4671         * modules/unistdio/u32-u32-vsprintf: Likewise.
4672         * modules/unistdio/u32-vasnprintf: Likewise.
4673         * modules/unistdio/u32-vasprintf: Likewise.
4674         * modules/unistdio/u32-vsnprintf: Likewise.
4675         * modules/unistdio/u32-vsprintf: Likewise.
4676         * modules/unistdio/ulc-asnprintf: Likewise.
4677         * modules/unistdio/ulc-asprintf: Likewise.
4678         * modules/unistdio/ulc-fprintf: Likewise.
4679         * modules/unistdio/ulc-snprintf: Likewise.
4680         * modules/unistdio/ulc-sprintf: Likewise.
4681         * modules/unistdio/ulc-vasnprintf: Likewise.
4682         * modules/unistdio/ulc-vasprintf: Likewise.
4683         * modules/unistdio/ulc-vfprintf: Likewise.
4684         * modules/unistdio/ulc-vsnprintf: Likewise.
4685         * modules/unistdio/ulc-vsprintf: Likewise.
4686         * modules/unistr/u8-check: Likewise.
4687         * modules/unistr/u8-chr: Likewise.
4688         * modules/unistr/u8-cmp: Likewise.
4689         * modules/unistr/u8-cmp2: Likewise.
4690         * modules/unistr/u8-cpy: Likewise.
4691         * modules/unistr/u8-cpy-alloc: Likewise.
4692         * modules/unistr/u8-endswith: Likewise.
4693         * modules/unistr/u8-mblen: Likewise.
4694         * modules/unistr/u8-mbsnlen: Likewise.
4695         * modules/unistr/u8-mbtouc: Likewise.
4696         * modules/unistr/u8-mbtouc-unsafe: Likewise.
4697         * modules/unistr/u8-mbtoucr: Likewise.
4698         * modules/unistr/u8-move: Likewise.
4699         * modules/unistr/u8-next: Likewise.
4700         * modules/unistr/u8-prev: Likewise.
4701         * modules/unistr/u8-set: Likewise.
4702         * modules/unistr/u8-startswith: Likewise.
4703         * modules/unistr/u8-stpcpy: Likewise.
4704         * modules/unistr/u8-stpncpy: Likewise.
4705         * modules/unistr/u8-strcat: Likewise.
4706         * modules/unistr/u8-strchr: Likewise.
4707         * modules/unistr/u8-strcmp: Likewise.
4708         * modules/unistr/u8-strcoll: Likewise.
4709         * modules/unistr/u8-strcpy: Likewise.
4710         * modules/unistr/u8-strcspn: Likewise.
4711         * modules/unistr/u8-strdup: Likewise.
4712         * modules/unistr/u8-strlen: Likewise.
4713         * modules/unistr/u8-strmblen: Likewise.
4714         * modules/unistr/u8-strmbtouc: Likewise.
4715         * modules/unistr/u8-strncat: Likewise.
4716         * modules/unistr/u8-strncmp: Likewise.
4717         * modules/unistr/u8-strncpy: Likewise.
4718         * modules/unistr/u8-strnlen: Likewise.
4719         * modules/unistr/u8-strpbrk: Likewise.
4720         * modules/unistr/u8-strrchr: Likewise.
4721         * modules/unistr/u8-strspn: Likewise.
4722         * modules/unistr/u8-strstr: Likewise.
4723         * modules/unistr/u8-strtok: Likewise.
4724         * modules/unistr/u8-to-u16: Likewise.
4725         * modules/unistr/u8-to-u32: Likewise.
4726         * modules/unistr/u8-uctomb: Likewise.
4727         * modules/unistr/u16-check: Likewise.
4728         * modules/unistr/u16-chr: Likewise.
4729         * modules/unistr/u16-cmp: Likewise.
4730         * modules/unistr/u16-cmp2: Likewise.
4731         * modules/unistr/u16-cpy: Likewise.
4732         * modules/unistr/u16-cpy-alloc: Likewise.
4733         * modules/unistr/u16-endswith: Likewise.
4734         * modules/unistr/u16-mblen: Likewise.
4735         * modules/unistr/u16-mbsnlen: Likewise.
4736         * modules/unistr/u16-mbtouc: Likewise.
4737         * modules/unistr/u16-mbtouc-unsafe: Likewise.
4738         * modules/unistr/u16-mbtoucr: Likewise.
4739         * modules/unistr/u16-move: Likewise.
4740         * modules/unistr/u16-next: Likewise.
4741         * modules/unistr/u16-prev: Likewise.
4742         * modules/unistr/u16-set: Likewise.
4743         * modules/unistr/u16-startswith: Likewise.
4744         * modules/unistr/u16-stpcpy: Likewise.
4745         * modules/unistr/u16-stpncpy: Likewise.
4746         * modules/unistr/u16-strcat: Likewise.
4747         * modules/unistr/u16-strchr: Likewise.
4748         * modules/unistr/u16-strcmp: Likewise.
4749         * modules/unistr/u16-strcoll: Likewise.
4750         * modules/unistr/u16-strcpy: Likewise.
4751         * modules/unistr/u16-strcspn: Likewise.
4752         * modules/unistr/u16-strdup: Likewise.
4753         * modules/unistr/u16-strlen: Likewise.
4754         * modules/unistr/u16-strmblen: Likewise.
4755         * modules/unistr/u16-strmbtouc: Likewise.
4756         * modules/unistr/u16-strncat: Likewise.
4757         * modules/unistr/u16-strncmp: Likewise.
4758         * modules/unistr/u16-strncpy: Likewise.
4759         * modules/unistr/u16-strnlen: Likewise.
4760         * modules/unistr/u16-strpbrk: Likewise.
4761         * modules/unistr/u16-strrchr: Likewise.
4762         * modules/unistr/u16-strspn: Likewise.
4763         * modules/unistr/u16-strstr: Likewise.
4764         * modules/unistr/u16-strtok: Likewise.
4765         * modules/unistr/u16-to-u32: Likewise.
4766         * modules/unistr/u16-to-u8: Likewise.
4767         * modules/unistr/u16-uctomb: Likewise.
4768         * modules/unistr/u32-check: Likewise.
4769         * modules/unistr/u32-chr: Likewise.
4770         * modules/unistr/u32-cmp: Likewise.
4771         * modules/unistr/u32-cmp2: Likewise.
4772         * modules/unistr/u32-cpy: Likewise.
4773         * modules/unistr/u32-cpy-alloc: Likewise.
4774         * modules/unistr/u32-endswith: Likewise.
4775         * modules/unistr/u32-mblen: Likewise.
4776         * modules/unistr/u32-mbsnlen: Likewise.
4777         * modules/unistr/u32-mbtouc: Likewise.
4778         * modules/unistr/u32-mbtouc-unsafe: Likewise.
4779         * modules/unistr/u32-mbtoucr: Likewise.
4780         * modules/unistr/u32-move: Likewise.
4781         * modules/unistr/u32-next: Likewise.
4782         * modules/unistr/u32-prev: Likewise.
4783         * modules/unistr/u32-set: Likewise.
4784         * modules/unistr/u32-startswith: Likewise.
4785         * modules/unistr/u32-stpcpy: Likewise.
4786         * modules/unistr/u32-stpncpy: Likewise.
4787         * modules/unistr/u32-strcat: Likewise.
4788         * modules/unistr/u32-strchr: Likewise.
4789         * modules/unistr/u32-strcmp: Likewise.
4790         * modules/unistr/u32-strcoll: Likewise.
4791         * modules/unistr/u32-strcpy: Likewise.
4792         * modules/unistr/u32-strcspn: Likewise.
4793         * modules/unistr/u32-strdup: Likewise.
4794         * modules/unistr/u32-strlen: Likewise.
4795         * modules/unistr/u32-strmblen: Likewise.
4796         * modules/unistr/u32-strmbtouc: Likewise.
4797         * modules/unistr/u32-strncat: Likewise.
4798         * modules/unistr/u32-strncmp: Likewise.
4799         * modules/unistr/u32-strncpy: Likewise.
4800         * modules/unistr/u32-strnlen: Likewise.
4801         * modules/unistr/u32-strpbrk: Likewise.
4802         * modules/unistr/u32-strrchr: Likewise.
4803         * modules/unistr/u32-strspn: Likewise.
4804         * modules/unistr/u32-strstr: Likewise.
4805         * modules/unistr/u32-strtok: Likewise.
4806         * modules/unistr/u32-to-u16: Likewise.
4807         * modules/unistr/u32-to-u8: Likewise.
4808         * modules/unistr/u32-uctomb: Likewise.
4809         * modules/uniwbrk/u8-wordbreaks: Likewise.
4810         * modules/uniwbrk/u16-wordbreaks: Likewise.
4811         * modules/uniwbrk/u32-wordbreaks: Likewise.
4812         * modules/uniwbrk/ulc-wordbreaks: Likewise.
4813         * modules/uniwbrk/wordbreak-property: Likewise.
4814         * modules/uniwidth/u8-strwidth: Likewise.
4815         * modules/uniwidth/u8-width: Likewise.
4816         * modules/uniwidth/u16-strwidth: Likewise.
4817         * modules/uniwidth/u16-width: Likewise.
4818         * modules/uniwidth/u32-strwidth: Likewise.
4819         * modules/uniwidth/u32-width: Likewise.
4820         * modules/uniwidth/width: Likewise.
4821         * modules/unicase/cased-tests (Makefile.am): Link all test programs
4822         with $(LIBUNISTRING).
4823         * modules/unicase/ignorable-tests: Likewise.
4824         * modules/unicase/locale-language-tests: Likewise.
4825         * modules/unicase/tolower-tests: Likewise.
4826         * modules/unicase/totitle-tests: Likewise.
4827         * modules/unicase/toupper-tests: Likewise.
4828         * modules/unicase/u8-casecmp-tests: Likewise.
4829         * modules/unicase/u8-casecoll-tests: Likewise.
4830         * modules/unicase/u8-casefold-tests: Likewise.
4831         * modules/unicase/u8-is-cased-tests: Likewise.
4832         * modules/unicase/u8-is-casefolded-tests: Likewise.
4833         * modules/unicase/u8-is-lowercase-tests: Likewise.
4834         * modules/unicase/u8-is-titlecase-tests: Likewise.
4835         * modules/unicase/u8-is-uppercase-tests: Likewise.
4836         * modules/unicase/u8-tolower-tests: Likewise.
4837         * modules/unicase/u8-totitle-tests: Likewise.
4838         * modules/unicase/u8-toupper-tests: Likewise.
4839         * modules/unicase/u16-casecmp-tests: Likewise.
4840         * modules/unicase/u16-casecoll-tests: Likewise.
4841         * modules/unicase/u16-casefold-tests: Likewise.
4842         * modules/unicase/u16-is-cased-tests: Likewise.
4843         * modules/unicase/u16-is-casefolded-tests: Likewise.
4844         * modules/unicase/u16-is-lowercase-tests: Likewise.
4845         * modules/unicase/u16-is-titlecase-tests: Likewise.
4846         * modules/unicase/u16-is-uppercase-tests: Likewise.
4847         * modules/unicase/u16-tolower-tests: Likewise.
4848         * modules/unicase/u16-totitle-tests: Likewise.
4849         * modules/unicase/u16-toupper-tests: Likewise.
4850         * modules/unicase/u32-casecmp-tests: Likewise.
4851         * modules/unicase/u32-casecoll-tests: Likewise.
4852         * modules/unicase/u32-casefold-tests: Likewise.
4853         * modules/unicase/u32-is-cased-tests: Likewise.
4854         * modules/unicase/u32-is-casefolded-tests: Likewise.
4855         * modules/unicase/u32-is-lowercase-tests: Likewise.
4856         * modules/unicase/u32-is-titlecase-tests: Likewise.
4857         * modules/unicase/u32-is-uppercase-tests: Likewise.
4858         * modules/unicase/u32-tolower-tests: Likewise.
4859         * modules/unicase/u32-totitle-tests: Likewise.
4860         * modules/unicase/u32-toupper-tests: Likewise.
4861         * modules/unicase/ulc-casecmp-tests: Likewise.
4862         * modules/unicase/ulc-casecoll-tests: Likewise.
4863         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
4864         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
4865         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
4866         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
4867         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
4868         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
4869         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
4870         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
4871         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
4872         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
4873         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
4874         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
4875         * modules/unictype/bidicategory-byname-tests: Likewise.
4876         * modules/unictype/bidicategory-name-tests: Likewise.
4877         * modules/unictype/bidicategory-of-tests: Likewise.
4878         * modules/unictype/bidicategory-test-tests: Likewise.
4879         * modules/unictype/block-list-tests: Likewise.
4880         * modules/unictype/block-of-tests: Likewise.
4881         * modules/unictype/block-test-tests: Likewise.
4882         * modules/unictype/category-C-tests: Likewise.
4883         * modules/unictype/category-Cc-tests: Likewise.
4884         * modules/unictype/category-Cf-tests: Likewise.
4885         * modules/unictype/category-Cn-tests: Likewise.
4886         * modules/unictype/category-Co-tests: Likewise.
4887         * modules/unictype/category-Cs-tests: Likewise.
4888         * modules/unictype/category-L-tests: Likewise.
4889         * modules/unictype/category-Ll-tests: Likewise.
4890         * modules/unictype/category-Lm-tests: Likewise.
4891         * modules/unictype/category-Lo-tests: Likewise.
4892         * modules/unictype/category-Lt-tests: Likewise.
4893         * modules/unictype/category-Lu-tests: Likewise.
4894         * modules/unictype/category-M-tests: Likewise.
4895         * modules/unictype/category-Mc-tests: Likewise.
4896         * modules/unictype/category-Me-tests: Likewise.
4897         * modules/unictype/category-Mn-tests: Likewise.
4898         * modules/unictype/category-N-tests: Likewise.
4899         * modules/unictype/category-Nd-tests: Likewise.
4900         * modules/unictype/category-Nl-tests: Likewise.
4901         * modules/unictype/category-No-tests: Likewise.
4902         * modules/unictype/category-P-tests: Likewise.
4903         * modules/unictype/category-Pc-tests: Likewise.
4904         * modules/unictype/category-Pd-tests: Likewise.
4905         * modules/unictype/category-Pe-tests: Likewise.
4906         * modules/unictype/category-Pf-tests: Likewise.
4907         * modules/unictype/category-Pi-tests: Likewise.
4908         * modules/unictype/category-Po-tests: Likewise.
4909         * modules/unictype/category-Ps-tests: Likewise.
4910         * modules/unictype/category-S-tests: Likewise.
4911         * modules/unictype/category-Sc-tests: Likewise.
4912         * modules/unictype/category-Sk-tests: Likewise.
4913         * modules/unictype/category-Sm-tests: Likewise.
4914         * modules/unictype/category-So-tests: Likewise.
4915         * modules/unictype/category-Z-tests: Likewise.
4916         * modules/unictype/category-Zl-tests: Likewise.
4917         * modules/unictype/category-Zp-tests: Likewise.
4918         * modules/unictype/category-Zs-tests: Likewise.
4919         * modules/unictype/category-and-not-tests: Likewise.
4920         * modules/unictype/category-and-tests: Likewise.
4921         * modules/unictype/category-byname-tests: Likewise.
4922         * modules/unictype/category-name-tests: Likewise.
4923         * modules/unictype/category-none-tests: Likewise.
4924         * modules/unictype/category-of-tests: Likewise.
4925         * modules/unictype/category-or-tests: Likewise.
4926         * modules/unictype/category-test-withtable-tests: Likewise.
4927         * modules/unictype/combining-class-tests: Likewise.
4928         * modules/unictype/ctype-alnum-tests: Likewise.
4929         * modules/unictype/ctype-alpha-tests: Likewise.
4930         * modules/unictype/ctype-blank-tests: Likewise.
4931         * modules/unictype/ctype-cntrl-tests: Likewise.
4932         * modules/unictype/ctype-digit-tests: Likewise.
4933         * modules/unictype/ctype-graph-tests: Likewise.
4934         * modules/unictype/ctype-lower-tests: Likewise.
4935         * modules/unictype/ctype-print-tests: Likewise.
4936         * modules/unictype/ctype-punct-tests: Likewise.
4937         * modules/unictype/ctype-space-tests: Likewise.
4938         * modules/unictype/ctype-upper-tests: Likewise.
4939         * modules/unictype/ctype-xdigit-tests: Likewise.
4940         * modules/unictype/decimal-digit-tests: Likewise.
4941         * modules/unictype/digit-tests: Likewise.
4942         * modules/unictype/mirror-tests: Likewise.
4943         * modules/unictype/numeric-tests: Likewise.
4944         * modules/unictype/property-alphabetic-tests: Likewise.
4945         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
4946         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
4947         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
4948         * modules/unictype/property-bidi-block-separator-tests: Likewise.
4949         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
4950         * modules/unictype/property-bidi-common-separator-tests: Likewise.
4951         * modules/unictype/property-bidi-control-tests: Likewise.
4952         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
4953         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
4954         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
4955         * modules/unictype/property-bidi-european-digit-tests: Likewise.
4956         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
4957         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
4958         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
4959         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
4960         * modules/unictype/property-bidi-pdf-tests: Likewise.
4961         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
4962         * modules/unictype/property-bidi-whitespace-tests: Likewise.
4963         * modules/unictype/property-byname-tests: Likewise.
4964         * modules/unictype/property-combining-tests: Likewise.
4965         * modules/unictype/property-composite-tests: Likewise.
4966         * modules/unictype/property-currency-symbol-tests: Likewise.
4967         * modules/unictype/property-dash-tests: Likewise.
4968         * modules/unictype/property-decimal-digit-tests: Likewise.
4969         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
4970         * modules/unictype/property-deprecated-tests: Likewise.
4971         * modules/unictype/property-diacritic-tests: Likewise.
4972         * modules/unictype/property-extender-tests: Likewise.
4973         * modules/unictype/property-format-control-tests: Likewise.
4974         * modules/unictype/property-grapheme-base-tests: Likewise.
4975         * modules/unictype/property-grapheme-extend-tests: Likewise.
4976         * modules/unictype/property-grapheme-link-tests: Likewise.
4977         * modules/unictype/property-hex-digit-tests: Likewise.
4978         * modules/unictype/property-hyphen-tests: Likewise.
4979         * modules/unictype/property-id-continue-tests: Likewise.
4980         * modules/unictype/property-id-start-tests: Likewise.
4981         * modules/unictype/property-ideographic-tests: Likewise.
4982         * modules/unictype/property-ids-binary-operator-tests: Likewise.
4983         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
4984         * modules/unictype/property-ignorable-control-tests: Likewise.
4985         * modules/unictype/property-iso-control-tests: Likewise.
4986         * modules/unictype/property-join-control-tests: Likewise.
4987         * modules/unictype/property-left-of-pair-tests: Likewise.
4988         * modules/unictype/property-line-separator-tests: Likewise.
4989         * modules/unictype/property-logical-order-exception-tests: Likewise.
4990         * modules/unictype/property-lowercase-tests: Likewise.
4991         * modules/unictype/property-math-tests: Likewise.
4992         * modules/unictype/property-non-break-tests: Likewise.
4993         * modules/unictype/property-not-a-character-tests: Likewise.
4994         * modules/unictype/property-numeric-tests: Likewise.
4995         * modules/unictype/property-other-alphabetic-tests: Likewise.
4996         * modules/unictype/property-other-default-ignorable-code-point-tests:
4997         Likewise.
4998         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
4999         * modules/unictype/property-other-id-continue-tests: Likewise.
5000         * modules/unictype/property-other-id-start-tests: Likewise.
5001         * modules/unictype/property-other-lowercase-tests: Likewise.
5002         * modules/unictype/property-other-math-tests: Likewise.
5003         * modules/unictype/property-other-uppercase-tests: Likewise.
5004         * modules/unictype/property-paired-punctuation-tests: Likewise.
5005         * modules/unictype/property-paragraph-separator-tests: Likewise.
5006         * modules/unictype/property-pattern-syntax-tests: Likewise.
5007         * modules/unictype/property-pattern-white-space-tests: Likewise.
5008         * modules/unictype/property-private-use-tests: Likewise.
5009         * modules/unictype/property-punctuation-tests: Likewise.
5010         * modules/unictype/property-quotation-mark-tests: Likewise.
5011         * modules/unictype/property-radical-tests: Likewise.
5012         * modules/unictype/property-sentence-terminal-tests: Likewise.
5013         * modules/unictype/property-soft-dotted-tests: Likewise.
5014         * modules/unictype/property-space-tests: Likewise.
5015         * modules/unictype/property-terminal-punctuation-tests: Likewise.
5016         * modules/unictype/property-test-tests: Likewise.
5017         * modules/unictype/property-titlecase-tests: Likewise.
5018         * modules/unictype/property-unassigned-code-value-tests: Likewise.
5019         * modules/unictype/property-unified-ideograph-tests: Likewise.
5020         * modules/unictype/property-uppercase-tests: Likewise.
5021         * modules/unictype/property-variation-selector-tests: Likewise.
5022         * modules/unictype/property-white-space-tests: Likewise.
5023         * modules/unictype/property-xid-continue-tests: Likewise.
5024         * modules/unictype/property-xid-start-tests: Likewise.
5025         * modules/unictype/property-zero-width-tests: Likewise.
5026         * modules/unictype/scripts-tests: Likewise.
5027         * modules/unictype/syntax-c-ident-tests: Likewise.
5028         * modules/unictype/syntax-c-whitespace-tests: Likewise.
5029         * modules/unictype/syntax-java-ident-tests: Likewise.
5030         * modules/unictype/syntax-java-whitespace-tests: Likewise.
5031         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
5032         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
5033         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
5034         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
5035         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
5036         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
5037         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
5038         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
5039         * modules/uniname/uniname-tests: Likewise.
5040         * modules/uninorm/canonical-decomposition-tests: Likewise.
5041         * modules/uninorm/compat-decomposition-tests: Likewise.
5042         * modules/uninorm/composition-tests: Likewise.
5043         * modules/uninorm/decomposing-form-tests: Likewise.
5044         * modules/uninorm/decomposition-tests: Likewise.
5045         * modules/uninorm/filter-tests: Likewise.
5046         * modules/uninorm/nfc-tests: Likewise.
5047         * modules/uninorm/nfd-tests: Likewise.
5048         * modules/uninorm/nfkc-tests: Likewise.
5049         * modules/uninorm/nfkd-tests: Likewise.
5050         * modules/uninorm/u8-normcmp-tests: Likewise.
5051         * modules/uninorm/u8-normcoll-tests: Likewise.
5052         * modules/uninorm/u16-normcmp-tests: Likewise.
5053         * modules/uninorm/u16-normcoll-tests: Likewise.
5054         * modules/uninorm/u32-normcmp-tests: Likewise.
5055         * modules/uninorm/u32-normcoll-tests: Likewise.
5056         * modules/unistdio/u8-asnprintf-tests: Likewise.
5057         * modules/unistdio/u8-vasnprintf-tests: Likewise.
5058         * modules/unistdio/u8-vasprintf-tests: Likewise.
5059         * modules/unistdio/u8-vsnprintf-tests: Likewise.
5060         * modules/unistdio/u8-vsprintf-tests: Likewise.
5061         * modules/unistdio/u16-asnprintf-tests: Likewise.
5062         * modules/unistdio/u16-vasnprintf-tests: Likewise.
5063         * modules/unistdio/u16-vasprintf-tests: Likewise.
5064         * modules/unistdio/u16-vsnprintf-tests: Likewise.
5065         * modules/unistdio/u16-vsprintf-tests: Likewise.
5066         * modules/unistdio/u32-asnprintf-tests: Likewise.
5067         * modules/unistdio/u32-vasnprintf-tests: Likewise.
5068         * modules/unistdio/u32-vasprintf-tests: Likewise.
5069         * modules/unistdio/u32-vsnprintf-tests: Likewise.
5070         * modules/unistdio/u32-vsprintf-tests: Likewise.
5071         * modules/unistdio/ulc-asnprintf-tests: Likewise.
5072         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
5073         * modules/unistdio/ulc-vasprintf-tests: Likewise.
5074         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
5075         * modules/unistdio/ulc-vsprintf-tests: Likewise.
5076         * modules/unistr/u8-check-tests: Likewise.
5077         * modules/unistr/u8-chr-tests: Likewise.
5078         * modules/unistr/u8-cmp-tests: Likewise.
5079         * modules/unistr/u8-cmp2-tests: Likewise.
5080         * modules/unistr/u8-cpy-alloc-tests: Likewise.
5081         * modules/unistr/u8-cpy-tests: Likewise.
5082         * modules/unistr/u8-mblen-tests: Likewise.
5083         * modules/unistr/u8-mbsnlen-tests: Likewise.
5084         * modules/unistr/u8-mbtouc-tests: Likewise.
5085         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
5086         * modules/unistr/u8-mbtoucr-tests: Likewise.
5087         * modules/unistr/u8-move-tests: Likewise.
5088         * modules/unistr/u8-next-tests: Likewise.
5089         * modules/unistr/u8-prev-tests: Likewise.
5090         * modules/unistr/u8-set-tests: Likewise.
5091         * modules/unistr/u8-stpcpy-tests: Likewise.
5092         * modules/unistr/u8-stpncpy-tests: Likewise.
5093         * modules/unistr/u8-strcat-tests: Likewise.
5094         * modules/unistr/u8-strcmp-tests: Likewise.
5095         * modules/unistr/u8-strcoll-tests: Likewise.
5096         * modules/unistr/u8-strcpy-tests: Likewise.
5097         * modules/unistr/u8-strdup-tests: Likewise.
5098         * modules/unistr/u8-strlen-tests: Likewise.
5099         * modules/unistr/u8-strmblen-tests: Likewise.
5100         * modules/unistr/u8-strmbtouc-tests: Likewise.
5101         * modules/unistr/u8-strncat-tests: Likewise.
5102         * modules/unistr/u8-strncmp-tests: Likewise.
5103         * modules/unistr/u8-strncpy-tests: Likewise.
5104         * modules/unistr/u8-strnlen-tests: Likewise.
5105         * modules/unistr/u8-to-u16-tests: Likewise.
5106         * modules/unistr/u8-to-u32-tests: Likewise.
5107         * modules/unistr/u8-uctomb-tests: Likewise.
5108         * modules/unistr/u16-check-tests: Likewise.
5109         * modules/unistr/u16-chr-tests: Likewise.
5110         * modules/unistr/u16-cmp-tests: Likewise.
5111         * modules/unistr/u16-cmp2-tests: Likewise.
5112         * modules/unistr/u16-cpy-alloc-tests: Likewise.
5113         * modules/unistr/u16-cpy-tests: Likewise.
5114         * modules/unistr/u16-mblen-tests: Likewise.
5115         * modules/unistr/u16-mbsnlen-tests: Likewise.
5116         * modules/unistr/u16-mbtouc-tests: Likewise.
5117         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
5118         * modules/unistr/u16-mbtoucr-tests: Likewise.
5119         * modules/unistr/u16-move-tests: Likewise.
5120         * modules/unistr/u16-next-tests: Likewise.
5121         * modules/unistr/u16-prev-tests: Likewise.
5122         * modules/unistr/u16-set-tests: Likewise.
5123         * modules/unistr/u16-stpcpy-tests: Likewise.
5124         * modules/unistr/u16-stpncpy-tests: Likewise.
5125         * modules/unistr/u16-strcat-tests: Likewise.
5126         * modules/unistr/u16-strcmp-tests: Likewise.
5127         * modules/unistr/u16-strcoll-tests: Likewise.
5128         * modules/unistr/u16-strcpy-tests: Likewise.
5129         * modules/unistr/u16-strdup-tests: Likewise.
5130         * modules/unistr/u16-strlen-tests: Likewise.
5131         * modules/unistr/u16-strmblen-tests: Likewise.
5132         * modules/unistr/u16-strmbtouc-tests: Likewise.
5133         * modules/unistr/u16-strncat-tests: Likewise.
5134         * modules/unistr/u16-strncmp-tests: Likewise.
5135         * modules/unistr/u16-strncpy-tests: Likewise.
5136         * modules/unistr/u16-strnlen-tests: Likewise.
5137         * modules/unistr/u16-to-u32-tests: Likewise.
5138         * modules/unistr/u16-to-u8-tests: Likewise.
5139         * modules/unistr/u16-uctomb-tests: Likewise.
5140         * modules/unistr/u32-check-tests: Likewise.
5141         * modules/unistr/u32-chr-tests: Likewise.
5142         * modules/unistr/u32-cmp-tests: Likewise.
5143         * modules/unistr/u32-cmp2-tests: Likewise.
5144         * modules/unistr/u32-cpy-alloc-tests: Likewise.
5145         * modules/unistr/u32-cpy-tests: Likewise.
5146         * modules/unistr/u32-mblen-tests: Likewise.
5147         * modules/unistr/u32-mbsnlen-tests: Likewise.
5148         * modules/unistr/u32-mbtouc-tests: Likewise.
5149         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
5150         * modules/unistr/u32-mbtoucr-tests: Likewise.
5151         * modules/unistr/u32-move-tests: Likewise.
5152         * modules/unistr/u32-next-tests: Likewise.
5153         * modules/unistr/u32-prev-tests: Likewise.
5154         * modules/unistr/u32-set-tests: Likewise.
5155         * modules/unistr/u32-stpcpy-tests: Likewise.
5156         * modules/unistr/u32-stpncpy-tests: Likewise.
5157         * modules/unistr/u32-strcat-tests: Likewise.
5158         * modules/unistr/u32-strcmp-tests: Likewise.
5159         * modules/unistr/u32-strcoll-tests: Likewise.
5160         * modules/unistr/u32-strcpy-tests: Likewise.
5161         * modules/unistr/u32-strdup-tests: Likewise.
5162         * modules/unistr/u32-strlen-tests: Likewise.
5163         * modules/unistr/u32-strmblen-tests: Likewise.
5164         * modules/unistr/u32-strmbtouc-tests: Likewise.
5165         * modules/unistr/u32-strncat-tests: Likewise.
5166         * modules/unistr/u32-strncmp-tests: Likewise.
5167         * modules/unistr/u32-strncpy-tests: Likewise.
5168         * modules/unistr/u32-strnlen-tests: Likewise.
5169         * modules/unistr/u32-to-u16-tests: Likewise.
5170         * modules/unistr/u32-to-u8-tests: Likewise.
5171         * modules/unistr/u32-uctomb-tests: Likewise.
5172         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
5173         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
5174         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
5175         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
5176         * modules/uniwidth/u8-strwidth-tests: Likewise.
5177         * modules/uniwidth/u8-width-tests: Likewise.
5178         * modules/uniwidth/u16-strwidth-tests: Likewise.
5179         * modules/uniwidth/u16-width-tests: Likewise.
5180         * modules/uniwidth/u32-strwidth-tests: Likewise.
5181         * modules/uniwidth/u32-width-tests: Likewise.
5182         * modules/uniwidth/width-tests: Likewise.
5183
5184 2010-05-18  Richard Jones  <rjones@redhat.com>
5185
5186         doc: users.txt: list hivex
5187         * users.txt: Add hivex.
5188
5189 2010-05-18  Richard Jones  <rjones@redhat.com>
5190
5191         doc: users.txt: list febootstrap
5192         * users.txt: Add febootstrap.
5193
5194 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
5195
5196         bootstrap: fix an error when gnulib is not used as a git submodule
5197         * build-aux/bootstrap (gnulib_path): If its length is zero then
5198         assign "gnulib" to it.
5199         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
5200
5201 2010-05-16  Bruno Haible  <bruno@clisp.org>
5202
5203         Avoid autoconf warnings about AM_ICONV.
5204         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
5205         2.64.
5206
5207 2010-05-16  Bruno Haible  <bruno@clisp.org>
5208
5209         absolute-header: Make the macro usable in more situations.
5210         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
5211         from gl_ABSOLUTE_HEADER.
5212         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
5213
5214 2010-05-16  James Youngman  <jay@gnu.org>
5215
5216         doc: update users.txt
5217         * users.txt: Add CSSC.
5218
5219 2010-05-16  Jim Meyering  <meyering@redhat.com>
5220
5221         init.sh: fix an error in the previous change; add more comments
5222         * tests/init.sh: Compare exit code in loop against 9, not 2.
5223         Patch by Bruno Haible.
5224         Make the two tests more similar by adding an empty "then" clause.
5225         Add comments.
5226
5227         init.sh: avoid unnecessary shell re-exec
5228         * tests/init.sh: Improve the re-exec-required check to first test the
5229         current shell.  If it passes the test, do not search for a shell that
5230         does pass, and do not re-exec.  This test is particularly contorted to
5231         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
5232         of $(...) evokes a syntax error and causes immediate shell exit with
5233         status 2.  Bruno Haible reported that the re-exec made it impossible
5234         to single-step through any init.sh-using script.
5235
5236 2010-05-16  Bruno Haible  <bruno@clisp.org>
5237
5238         Fix collision between gnulib's and libintl's printf replacements.
5239         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
5240         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
5241         (printf): When using GNU C, map the __printf__ function to rpl_printf
5242         via __asm__. When not using GNU C, define rpl_printf instead of
5243         __printf__.
5244         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
5245         commit.
5246         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
5247         commit.
5248         * m4/asm-underscore.m4: New file.
5249         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
5250         * modules/stdio (Files): Add m4/asm-underscore.m4.
5251         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
5252         Reported by Ben Pfaff.
5253
5254 2010-05-16  Bruno Haible  <bruno@clisp.org>
5255
5256         verify: Avoid skipping the test on openSUSE 11.0.
5257         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
5258
5259 2010-05-13  Bruno Haible  <bruno@clisp.org>
5260
5261         Avoid useless warnings from G++.
5262         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
5263         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
5264         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5265
5266 2010-05-11  Jim Meyering  <meyering@redhat.com>
5267
5268         maint.mk: tweak preceding change
5269         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
5270         regexps tighter by anchoring at EOL, and make the new group "shy"
5271         for slightly decreased overhead.
5272
5273 2010-05-11  Eric Blake  <eblake@redhat.com>
5274
5275         maint.mk: gnulib doesn't guarantee NSIG
5276         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
5277
5278 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
5279
5280         test-pwrite.c: Remove unused variable declaration.
5281         * tests/test-pwrite.c (main): Remove read_buf declaration.
5282
5283         Remove useless test-pwrite.sh file.
5284         * tests/test-pwrite.sh: Delete file.
5285         * modules/pwrite-tests: Remove references.
5286         Reported by Bruno Haible.
5287
5288 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
5289
5290         init.sh: fix a typo
5291         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
5292
5293 2010-05-10  Jim Meyering  <meyering@redhat.com>
5294
5295         maint.mk: avoid using a temporary file in the always-defined-macros check
5296         * top/maint.mk (.re-defmac): Remove rule.
5297         (gl_trap_): Remove definition.
5298         (sc_prohibit_always-defined_macros): Rewrite not to create and
5299         depend on a temporary file.  Instead, depend on GNU grep's ability
5300         to read a list of regular expressions from stdin when given "-f -".
5301
5302 2010-05-09  Bruno Haible  <bruno@clisp.org>
5303
5304         Update to GNU gettext 0.18, part 1.
5305         * m4/gettext.m4: Update to GNU gettext 0.18.
5306         * m4/intl.m4: Likewise.
5307         * m4/po.m4: Likewise.
5308         * modules/gettext (Files): Add m4/fcntl-o.m4.
5309         (configure.ac): Require gettext infrastructure from version 0.18.
5310
5311 2010-05-09  Jim Meyering  <meyering@redhat.com>
5312
5313         init.sh: enable MALLOC_PERTURB_
5314         * tests/init.sh: Enable glibc's malloc-perturbing option.
5315
5316         maint.mk: improve sc_cross_check_PATH_usage_in_tests
5317         With my recent change in init.sh from the two-line form:
5318             -#   : ${srcdir=.}
5319             -#   . "$srcdir/init.sh"; path_prepend_ .
5320             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
5321         I noticed that using the one-line form would cause this test
5322         to fail with a false-positive, or to stop working altogether,
5323         depending on whether help-version changed or all the tests did.
5324         * top/maint.mk (_hv_regex): Remove this definition.
5325         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
5326         (_hv_regex_strong): Use a stronger regex to check for conformance.
5327         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
5328         Give a separate diagnostic for lack of conforming use.
5329
5330         maint.mk: prohibit definition of symbols defined by gnulib
5331         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
5332         definition of symbols defined by gnulib.
5333
5334 2010-05-09  Bruno Haible  <bruno@clisp.org>
5335
5336         acl: Avoid test failure on Cygwin-hosted mingw.
5337         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
5338
5339 2010-05-09  Bruno Haible  <bruno@clisp.org>
5340
5341         error: Use system's fcntl function.
5342         * lib/error.c (fcntl): Undefine.
5343
5344 2010-05-09  Jim Meyering  <meyering@redhat.com>
5345
5346         verify: adjust formatting to be more consistent
5347         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
5348         argument-list '('s, and after one comma.
5349
5350 2010-05-09  Bruno Haible  <bruno@clisp.org>
5351
5352         error: More reliable output on mingw.
5353         * lib/error.c: Include <windows.h>.
5354         (is_open): New function.
5355         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
5356         defined.
5357
5358 2010-05-09  Bruno Haible  <bruno@clisp.org>
5359
5360         vasnprintf: Fix syntax errors in libintl build on mingw.
5361         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
5362         pad_ourselves and prec_ourselves after use.
5363
5364 2010-05-08  Bruno Haible  <bruno@clisp.org>
5365
5366         * lib/config.charset: Update comments for Cygwin 1.7.
5367         * lib/localcharset.c: Likewise.
5368
5369 2010-05-07  Jim Meyering  <meyering@redhat.com>
5370
5371         init.sh: improve comments
5372         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
5373         . "${srcdir=.}/init.sh"; path_prepend_ .
5374         Add a note about path_prepend_ and the alternative of using
5375         TESTS_ENVIRONMENT.
5376
5377 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
5378
5379         exclude: Unescape hashed patterns in wildcard mode.
5380         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
5381         to the hash list.
5382         * tests/test-exclude8.sh: New test case.
5383         * modules/exclude-tests: Add new test.
5384
5385 2010-05-05  Eric Blake  <eblake@redhat.com>
5386
5387         verify: automate tests
5388         * modules/verify-tests: New module.
5389         * tests/test-verify.sh: New file.
5390         * tests/test-verify.c: Guard each negative test with a unique id.
5391         Also avoid warning about unused left hand of comma expressions.
5392
5393 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5394
5395         Further improvements to verify.h, suggested by Eric Blake.
5396         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
5397         the GL_* versions, to avoid collision with OpenGL.
5398         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
5399         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
5400         than testing merely whether it's defined.
5401
5402         Modify verify.h to pacify gcc -Wredundant_decls.
5403         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
5404         These use the prefix "GL_" since they're likely to be useful elsewhere.
5405         We may need to break them out into a different .h file.
5406         (__COUNTER__): Define to 0 if the compiler doesn't support it.
5407         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
5408         of verify_function__.
5409
5410 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5411
5412         Tests for module pwrite.
5413         * modules/pwrite-tests: New file.
5414         * tests/test-pwrite.sh: New file.
5415         * tests/test-pwrite.c: New file.
5416
5417         New module pwrite.
5418         * lib/unistd.in.h (pwrite): New declaration.
5419         * lib/pwrite.c: New file, from glibc with modifications.
5420         * m4/pwrite.m4: New file.
5421         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
5422         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
5423         REPLACE_PWRITE.
5424         * modules/pwrite: New file.
5425         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
5426         REPLACE_PWRITE.
5427         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
5428         * doc/posix-functions/pwrite.texi: Mention the new module.
5429
5430 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5431
5432         pread: Update documentation.
5433         * doc/posix-functions/pread.texi: Mention the 'pread' module.
5434
5435 2010-05-04  Eric Blake  <eblake@redhat.com>
5436
5437         docs: update cygwin progress
5438         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
5439         this bug.
5440         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
5441         Added in cygwin 1.7.2.
5442         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
5443         Likewise.
5444         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
5445         Likewise.
5446         * doc/glibc-functions/dup3.texi (dup3): Likewise.
5447         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5448         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5449         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
5450         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
5451         Mention nproc module.
5452         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
5453         bug in cygwin 1.7.5 addition.
5454         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
5455         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
5456         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
5457         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
5458         1.7.5.
5459         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
5460         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
5461         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
5462         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
5463         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
5464         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
5465         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
5466         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
5467         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
5468         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
5469         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
5470         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
5471         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
5472         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
5473         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
5474         Likewise.
5475         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
5476         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
5477         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
5478         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
5479         Likewise.
5480         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
5481         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
5482         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
5483         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
5484         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
5485         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
5486         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
5487         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
5488         Likewise.
5489         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
5490         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
5491         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
5492         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
5493         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
5494         Likewise.
5495         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
5496         Likewise.
5497         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
5498         Likewise.
5499         * doc/glibc-functions/xdrrec_endofrecord.texi
5500         (xdrrec_endofrecord): Likewise.
5501         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
5502         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
5503         Likewise.
5504         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
5505         Likewise.
5506
5507 2010-05-04  Jim Meyering  <meyering@redhat.com>
5508
5509         gendocs.sh: make its "-s FILE" option more useful
5510         * build-aux/gendocs.sh: When honoring the -s FILE option, update
5511         $PACKAGE to reflect the probably-different basename of "FILE".
5512
5513 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
5514
5515         bootstrap: don't ignore download_po_files failure
5516         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
5517         failure.
5518
5519 2010-05-03  Jim Meyering  <meyering@redhat.com>
5520
5521         maint.mk: allow to pass options to gendocs.sh
5522         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
5523         (gendocs_options_): New overridable variable.
5524
5525         gnu-web-doc-update: don't ignore configure or build failure
5526         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
5527
5528         announce-gen: backslash-escape '@'s in --help output
5529         * build-aux/announce-gen: Fix syntax errors.
5530
5531         maint.mk, announce-gen: allow project-specific announcement mail headers
5532         * top/maint.mk (translation_project_): Define default.
5533         (announcement_Cc_, announcement_mail_headers_): Likewise.
5534         (announcement): Invoke announce-gen with new --mail-headers option.
5535         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
5536
5537         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
5538         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
5539         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
5540         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
5541         line in the "err2" output file when running "make check" in verbose
5542         mode (i.e., with set -x enabled).
5543
5544 2010-05-03  Bruno Haible  <bruno@clisp.org>
5545
5546         wctob: Fix for weird platforms.
5547         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
5548         argument value.
5549
5550 2010-05-03  Jim Meyering  <meyering@redhat.com>
5551
5552         maint.mk: prohibit unwarranted use of <strings.h>
5553         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
5554         strings.h in a file that does not also use strcasecmp, strncasecmp,
5555         ffs or ffsll.
5556
5557         maint.mk: remove obsolete comments
5558         * top/maint.mk: Remove stale, commented-out rules.
5559
5560 2010-05-02  Bruno Haible  <bruno@clisp.org>
5561
5562         wcwidth: Declare also when it's aliased.
5563         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
5564         macro.
5565
5566 2010-05-02  Bruno Haible  <bruno@clisp.org>
5567
5568         Fix regression from 2010-04-25.
5569         * gnulib-tool (func_modules_transitive_closure): Check the status of
5570         all modules, not only of the tests that are of the form foo-tests where
5571         foo is a module.
5572
5573 2010-05-02  Bruno Haible  <bruno@clisp.org>
5574
5575         wctob: Work around nasty Cygwin 1.7.2 bug.
5576         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
5577         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
5578
5579 2010-05-01  Bruno Haible  <bruno@clisp.org>
5580
5581         fpurge: Sharper test.
5582         * tests/test-fpurge.c (main): Add one more ftell check.
5583         * modules/fpurge-tests (Depends-on): Add ftell.
5584         Suggested by Eric Blake.
5585
5586 2010-05-01  Bruno Haible  <bruno@clisp.org>
5587
5588         ftello: Another test.
5589         * tests/test-ftello3.c: New file.
5590         * modules/ftello-tests (Files): Add it.
5591         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5592         MOSTLYCLEANFILES.
5593
5594         ftell: Another test.
5595         * tests/test-ftell3.c: New file.
5596         * modules/ftell-tests (Files): Add it.
5597         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5598         MOSTLYCLEANFILES.
5599
5600 2010-05-01  Bruno Haible  <bruno@clisp.org>
5601
5602         ftell, ftello: Work around Solaris bug.
5603         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
5604         * lib/ftello.c: Include stdio-impl.h.
5605         (ftello): On Solaris, when _IOWRT is set, compute the result without
5606         looking at _IOREAD.
5607         * modules/ftello (Files): Add lib/stdio-impl.h.
5608         * doc/posix-functions/ftell.texi: Mention Solaris bug.
5609         * doc/posix-functions/ftello.texi: Likewise.
5610         Reported by Eric Blake.
5611
5612 2010-05-01  Bruno Haible  <bruno@clisp.org>
5613
5614         freading: Adapt to special meaning of _IOREAD flag on Solaris.
5615         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
5616         the _IOWRT flag is also set.
5617
5618 2010-05-01  Bruno Haible  <bruno@clisp.org>
5619
5620         Fix doc about a HP-UX stdio bug.
5621         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
5622         * doc/posix-functions/ftello.texi: Likewise.
5623
5624 2010-05-01  Bruno Haible  <bruno@clisp.org>
5625
5626         lseek test: Fix failure on Solaris.
5627         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
5628         output.
5629
5630 2010-04-30  Jim Meyering  <meyering@redhat.com>
5631
5632         bootstrap: don't ignore failure to generate po*/Makevars
5633         * build-aux/bootstrap (with_gettext): Don't ignore failure
5634         to create po/Makevars or runtime-po/Makevars.
5635
5636 2010-04-29  Eric Blake  <eblake@redhat.com>
5637
5638         headers: relax license to LGPLv2+
5639         * modules/fcntl-h (License): Relax license.
5640         * modules/getopt-posix (License): Likewise.
5641         * modules/locale (License): Likewise.
5642         * modules/math (License): Likewise.
5643         * modules/pty (License): Likewise.
5644         * modules/sched (License): Likewise.
5645         * modules/search (License): Likewise.
5646         * modules/spawn (License): Likewise.
5647         * modules/stdarg (License): Likewise.
5648         * modules/sysexits (License): Likewise.
5649
5650 2010-04-29  Jim Meyering  <meyering@redhat.com>
5651
5652         inttypes: relax license to LGPLv2+
5653         * modules/inttypes (License): Relax license.
5654
5655 2010-04-29  Simon Josefsson  <simon@josefsson.org>
5656
5657         * top/maint.mk (indent): Run twice to produce idempotent results.
5658
5659 2010-04-28  Bruno Haible  <bruno@clisp.org>
5660
5661         getdate: Generate getdate.c in the source directory.
5662         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
5663         MOSTLYCLEANFILES.
5664         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
5665
5666 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
5667
5668         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
5669         is not declared as a const *; avoid warnings in that case.
5670
5671 2010-04-28  Eric Blake  <eblake@redhat.com>
5672
5673         canonicalize-lgpl: avoid compiler warning
5674         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
5675         declaration' / 'extraneous semicolon' warning with some compilers.
5676         Reported by Andreas Gruenbacher.
5677
5678 2010-04-28  Jim Meyering  <meyering@redhat.com>
5679
5680         init.sh: ensure a more reliable exit status when exiting via trap
5681         * tests/init.sh (setup_): Don't rely on $? in signal handler.
5682         Inspired by patches from Dmitry V. Levin.
5683         Also trap on signal 3 (SIGQUIT).
5684
5685 2010-04-27  Bruno Haible  <bruno@clisp.org>
5686
5687         Update doc about utimes().
5688         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
5689         'utimens' module.
5690         Reported by Andreas Gruenbacher <agruen@suse.de>.
5691
5692 2010-04-27  Eric Blake  <eblake@redhat.com>
5693
5694         full-read, full-write: relax license
5695         * modules/full-read (License): Drop to LGPLv2+.
5696         * modules/full-write (License): Likewise.
5697         * modules/safe-read (License): Likewise.
5698         * modules/safe-write (License): Likewise.
5699
5700         pthread: mention library for linking
5701         * modules/pthread (Link): Mention $(LIB_PTHREAD).
5702
5703 2010-04-27  Jim Meyering  <meyering@redhat.com>
5704
5705         maint.mk: fix a bug introduced in last change
5706         * top/maint.mk (gl_assured_headers_): Now that all names are on
5707         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
5708         is not anchored to end of word, it should be adequate.
5709
5710         maint.mk: avoid side-effect in latest syntax-check
5711         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
5712         to run commands via $(shell...), and hence to incur cost only when
5713         the new rule is actually run.
5714
5715         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
5716         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
5717         and use that to create a regexp used to detect all #if HAVE_..._H uses.
5718         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
5719         (gl_assured_headers_, az_, AZ_): Define.
5720         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
5721
5722 2010-04-26  Jim Meyering  <jim@meyering.net>
5723             Bruno Haible  <bruno@clisp.org>
5724
5725         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
5726         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
5727         Prompted by an exchange with Gilles Espinasse.
5728
5729 2010-04-26  Jim Meyering  <meyering@redhat.com>
5730
5731         git-version-gen: aesthetic tweak
5732         * build-aux/git-version-gen: Use "$nl" rather than a literal,
5733         so that the command remains on a single line.
5734
5735 2010-04-26  Eric Blake  <eblake@redhat.com>
5736
5737         git-version-gen: allow use on EBCDIC hosts
5738         * build-aux/git-version-gen (dirty): Use literal rather than tying
5739         ourselves to ascii.
5740         Reported by Steve Goetze.
5741
5742 2010-04-25  Bruno Haible  <bruno@clisp.org>
5743
5744         netdb: Add support for GNULIB_POSIXCHECK.
5745         * lib/netdb.in.h: Include warn-on-use.h.
5746         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
5747         functions are used when GNULIB_POSIXCHECK is defined and the
5748         getaddrinfo module is not in use.
5749         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
5750         freeaddrinfo, gai_strerror, getnameinfo are declared.
5751         * modules/netdb (Depends-on): Add warn-on-use.
5752         (Makefile.am): Include warn-on-use.h in netdb.h.
5753
5754 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
5755
5756         build: avoid "make check" failure without .git/ directory
5757         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
5758         there is no .git/ directory.
5759
5760 2010-04-25  Bruno Haible  <bruno@clisp.org>
5761
5762         ptsname: Fix misuse of ttyname_r.
5763         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
5764         of errno.
5765
5766 2010-04-25  Bruno Haible  <bruno@clisp.org>
5767
5768         ttyname_r: Make it work on Solaris 10.
5769         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
5770         if the system function has the POSIX declaration. Test whether the
5771         function fails if the buffer is less than 128 bytes large.
5772         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
5773         system's ttyname_r function. Provide a reasonably large buffer.
5774         * modules/ttyname_r (Depends-on): Add extensions.
5775         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
5776
5777 2010-04-25  Bruno Haible  <bruno@clisp.org>
5778
5779         Use the 'extensions' module for some more functions on Solaris.
5780         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
5781         module.
5782         * doc/posix-functions/ctime_r.texi: Likewise.
5783         * doc/posix-functions/getgrgid_r.texi: Likewise.
5784         * doc/posix-functions/getgrnam_r.texi: Likewise.
5785         * doc/posix-functions/getpwnam_r.texi: Likewise.
5786         * doc/posix-functions/getpwuid_r.texi: Likewise.
5787         * doc/posix-functions/readdir_r.texi: Likewise.
5788         * doc/posix-functions/sigwait.texi: Likewise.
5789         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
5790         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
5791
5792 2010-04-25  Bruno Haible  <bruno@clisp.org>
5793
5794         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
5795         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
5796         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
5797         * lib/ttyname_r.c: Include <limits.h>.
5798         (ttyname_r): Define using the system's ttyname_r function, if it exists
5799         and not on Solaris.
5800         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
5801         set.
5802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
5803         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
5804         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
5805         Reported by Simon Josefsson.
5806
5807 2010-04-25  Bruno Haible  <bruno@clisp.org>
5808
5809         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
5810         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
5811         * doc/posix-functions/ctime_r.texi: Likewise.
5812         * doc/posix-functions/getgrgid_r.texi: Likewise.
5813         * doc/posix-functions/getgrnam_r.texi: Likewise.
5814         * doc/posix-functions/getlogin_r.texi: Likewise.
5815         * doc/posix-functions/getpwnam_r.texi: Likewise.
5816         * doc/posix-functions/getpwuid_r.texi: Likewise.
5817         * doc/posix-functions/readdir_r.texi: Likewise.
5818         * doc/posix-functions/sigwait.texi: Likewise.
5819         * doc/posix-functions/ttyname_r.texi: Likewise.
5820         Reported by Simon Josefsson.
5821
5822 2010-04-25  Bruno Haible  <bruno@clisp.org>
5823
5824         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
5825         * gnulib-tool (func_usage): Document that --with-*-tests options apply
5826         also to --create-testdir.
5827         (func_acceptable): Don't consider the status of *-tests modules here.
5828         (func_modules_transitive_closure): Consider it here, before including a
5829         test module.
5830         (func_import, func_create_testdir): Set inc_all_direct_tests,
5831         inc_all_indirect_tests.
5832         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
5833         --create-testdir and --create-megatestdir.
5834
5835 2010-04-25  Bruno Haible  <bruno@clisp.org>
5836
5837         gnulib-tool: Add --without-*-tests options.
5838         * gnulib-tool (func_usage): Document the --without-*-tests options.
5839         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
5840         excl_unportable_tests): New variables.
5841         Fail if they are specified with --import or --update.
5842         (func_acceptable): Respect the excl_*_tests variables.
5843         (func_import): Set the excl_*_tests variables to empty.
5844
5845 2010-04-25  Simon Josefsson  <simon@josefsson.org>
5846             Bruno Haible  <bruno@clisp.org>
5847
5848         Work around a MacOS X 10.4 bug with openpty.
5849         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
5850         * tests/test-openpty.c (main): Close the master side explicitly.
5851
5852 2010-04-25  Bruno Haible  <bruno@clisp.org>
5853
5854         strnlen: Fix a C++ test error on MacOS X and Solaris.
5855         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
5856         the function is not declared.
5857         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
5858         Simon Josefsson.
5859
5860 2010-04-24  Bruno Haible  <bruno@clisp.org>
5861
5862         Avoid a gcc warning.
5863         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
5864         of correct type for %08lx directive.
5865         Reported by Eric Blake.
5866
5867 2010-04-24  Bruno Haible  <bruno@clisp.org>
5868
5869         vasnprintf: Correct errno value in case of out-of-memory.
5870         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
5871         or sprintf. Use the errno value from SNPRINTF or sprintf.
5872         Reported by Ian Beckwith <ianb@erislabs.net>.
5873
5874 2010-04-24  Bruno Haible  <bruno@clisp.org>
5875
5876         ansi-c++-opt: Find correct compiler when cross-compiling.
5877         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
5878         AC_CHECK_PROGS.
5879         Reported by Simon Josefsson.
5880
5881 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
5882
5883         vc-list-files: Add support for subversion
5884         * build-aux/vc-list-files: Use "svn list" to generate the list of
5885         files controlled by subversion.
5886
5887 2010-04-23  Jim Meyering  <meyering@redhat.com>
5888
5889         vc-list-files tests: convert to use init.sh
5890         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
5891         path_prepend_.
5892         Use Exit, not exit.
5893         Use skip_ rather than open coding it.
5894         Remove trap set-up and compare definitions.
5895         * tests/test-vc-list-files-git.sh: Likewise.
5896         * modules/vc-list-files-tests (Files): Add tests/init.sh.
5897
5898 2010-04-22  Simon Josefsson  <simon@josefsson.org>
5899
5900         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
5901         backup files.
5902
5903 2010-04-21  Simon Josefsson  <simon@josefsson.org>
5904
5905         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
5906
5907 2010-04-20  Eric Blake  <eblake@redhat.com>
5908
5909         tests: be robust to ignored SIGPIPE
5910         * tests/test-select-in.sh: Consume all output.
5911         * tests/test-lseek.sh: Check correct exit status, while avoiding
5912         EPIPE.
5913
5914 2010-04-20  Simon Josefsson  <simon@josefsson.org>
5915             Bruno Haible  <bruno@clisp.org>
5916
5917         visibility: Don't use -fvisibility if it leads to a warning.
5918         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
5919         yes, don't pretend that visibility works if it leads to a warning.
5920         Reported by Mike Gran <spk121@yahoo.com>.
5921
5922 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
5923
5924         * build-aux/bootstrap: Use "git -h" for testing for supported options
5925         instead of "git --help".  The short-form option only shows a summary,
5926         and doesn't layout the full man page.  Grep for the full option name
5927         in the summary, too.
5928
5929 2010-04-19  Bruno Haible  <bruno@clisp.org>
5930
5931         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
5932         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
5933         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
5934         mention of RELOCATABLE_STRIP.
5935         Reported by Sylvain Beucler <beuc@beuc.net>.
5936
5937 2010-04-19  Bruno Haible  <bruno@clisp.org>
5938
5939         * lib/diffseq.h: Fix typo in comment.
5940         Reported by Eric Blake.
5941
5942 2010-04-19  Bruno Haible  <bruno@clisp.org>
5943
5944         ioctl: Move autoconf macro to a .m4 file.
5945         * m4/ioctl.m4: New file, extracted from modules/ioctl.
5946         * modules/ioctl (Files): Add it.
5947         (configure.ac): Simply invoke gl_FUNC_IOCTL.
5948         Reported by Ian Beckwith <ianb@erislabs.net>.
5949
5950 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
5951             Bruno Haible  <bruno@clisp.org>
5952
5953         diffseq: Accommodate use-case with abstract arrays.
5954         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
5955         is not defined.
5956         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
5957         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
5958
5959 2010-04-18  Bruno Haible  <bruno@clisp.org>
5960
5961         * doc/posix-headers/stdbool.texi: More precise wording.
5962
5963 2010-04-17  Jim Meyering  <meyering@redhat.com>
5964
5965         maint.mk: use gnu-style indentation in an embedded perl script
5966         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
5967         Rename variable: s/two/last_two_bytes/
5968
5969 2010-04-16  Eric Blake  <eblake@redhat.com>
5970
5971         test-stdbool: skip test that fails with Solaris CC
5972         * tests/test-stdbool.c (f): Skip test that causes compilation
5973         error under buggy C++ compiler.
5974         * lib/stdbool.in.h: Document the limitation.
5975         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
5976
5977         setenv: allow compilation with C++
5978         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
5979         register keyword.
5980
5981         stdint: allow test to pass with C++
5982         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
5983
5984         getopt: allow compilation with C++
5985         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
5986         struct.
5987         * lib/getopt.c (_getopt_internal_r): Use correct type.
5988         Reported by Dagobert Michelson, via Joel E. Denny.
5989
5990 2010-04-16  Bruno Haible  <bruno@clisp.org>
5991
5992         Override netdb.h always.
5993         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
5994         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
5995         Reported by Ludovic Courtès <ludo@gnu.org>.
5996
5997 2010-04-15  Bruno Haible  <bruno@clisp.org>
5998
5999         openpty: Fix mistake from 2010-03-21.
6000         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
6001         Reported by Simon Josefsson.
6002
6003 2010-04-15  Eric Blake  <eblake@redhat.com>
6004
6005         test-forkpty: fix expected signature
6006         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
6007         Reported by Simon Josefsson.
6008
6009 2010-04-15  Jim Meyering  <meyering@redhat.com>
6010
6011         maint.mk: texinfo_suffix_re_: correct the default regexp
6012         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
6013
6014         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
6015         make it configurable via texinfo_suffix_re_.
6016
6017 2010-04-14  Eric Blake  <eblake@redhat.com>
6018
6019         strtok_r: relax license to LGPLv2+
6020         * modules/strtok_r (License): Relax license.
6021         Reported by Matthias Bolte.
6022
6023 2010-04-14  Simon Josefsson  <simon@josefsson.org>
6024
6025         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
6026         version 1.4.4 by default instead of requiring the libgcrypt
6027         version used during build.  This makes it possible to use the
6028         application with older but still binary compatible libgcrypt
6029         versions.
6030
6031 2010-04-13  Eric Blake  <eblake@redhat.com>
6032
6033         getopt-gnu: match recent glibc fixes and posix ruling
6034         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
6035         '+' handling, when requesting extensions.
6036         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
6037         'W;' handling.
6038         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
6039         * doc/posix-functions/getopt.texi (getopt): Document this.
6040         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6041         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6042         Likewise.
6043
6044         getopt: merge bug fixes from glibc
6045         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
6046         diagnostics.  Honor '+:' correctly.  Reject ';'.
6047
6048         getopt-posix: detect MacOS bug
6049         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
6050         optind when missing a required argument.
6051         * doc/posix-functions/getopt.texi (getopt): Document the bug.
6052         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6053         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6054         Likewise.
6055
6056         getopt-posix: avoid spurious failure on Solaris
6057         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
6058         an indicator that setting optind=1 is sufficient for reset.
6059
6060         getopt-posix: avoid spurious failure on FreeBSD
6061         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
6062         in POSIX mode, since the m4 test uses it.
6063
6064         gnulib-tool: silence warning on BSD sh
6065         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
6066
6067 2010-04-13  Jim Meyering  <meyering@redhat.com>
6068
6069         doc: users.txt: GNU patch now uses gnulib
6070         * users.txt: Add patch.
6071
6072 2010-04-12  Jim Meyering  <meyering@redhat.com>
6073
6074         maint.mk: generate more concise timing data for syntax-check rules
6075         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
6076         " done" from each line that reports a syntax-check test duration.
6077
6078 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
6079
6080         git-version-gen: use "git update-index..." rather than "git status"
6081         * build-aux/git-version-gen: Use git update-index --refresh, not
6082         "git status".  With some versions of git, "git status" would fail
6083         to update the index and result in an unwarranted "-dirty" suffix.
6084
6085 2010-04-11  Jim Meyering  <meyering@redhat.com>
6086
6087         openat: correct formatting (no semantic change)
6088         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
6089         Suggested by Bruno Haible.
6090
6091 2010-04-11  Bruno Haible  <bruno@clisp.org>
6092
6093         Stricter declaration checking in testdirs.
6094         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6095         If for_tests is true, augment AM_CPPFLAGS to define
6096         GNULIB_STRICT_CHECKING.
6097         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
6098         GNULIB_STRICT_CHECKING is defined, verify that the function is
6099         declared.
6100
6101 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
6102             Bruno Haible  <bruno@clisp.org>
6103
6104         libunistring: Improve configure output.
6105         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
6106         Don't say "consider installing GNU libunistring" when checking again
6107         with libiconv.
6108
6109 2010-04-11  Bruno Haible  <bruno@clisp.org>
6110
6111         libunistring: Correct value of $LTLIBUNISTRING.
6112         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
6113         correct the value of $LTLIBUNISTRING.
6114
6115 2010-04-11  Bruno Haible  <bruno@clisp.org>
6116
6117         havelib: Add static libraries to LIBS in the right order.
6118         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
6119         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
6120
6121 2010-04-11  Bruno Haible  <bruno@clisp.org>
6122
6123         libunistring: Detect libunistring also when it depends on libiconv.
6124         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
6125         the second AC_LIB_HAVE_LINKFLAGS invocation.
6126
6127 2010-04-11  James Youngman  <jay@gnu.org>
6128
6129         close-stream: declare local scalars to be "const"
6130         * lib/close-stream.c (close_stream): Make boolean variables const
6131         to document the fact that we set but do not change them.
6132
6133 2010-04-11  Bruno Haible  <bruno@clisp.org>
6134
6135         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
6136
6137 2010-04-11  Jim Meyering  <meyering@redhat.com>
6138
6139         maint.mk: don't include dist-check.mk
6140         * top/maint.mk: Remove bogus include directive.
6141
6142         maint.mk: improve empty-line-at-EOF check
6143         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
6144         solution, rather than tail+Perl-based one.  The latter would read
6145         a few kilobytes from the end of each file, and did not handle empty
6146         files properly.
6147
6148         maint.mk: print the elapsed time for each syntax-check rule
6149         * top/maint.mk (sc_m_rules_): Save start time in a file.
6150         (sc_z_rules_): New rules: remove temp file and print elapsed time.
6151         (local-check): Interpose the .z rules
6152
6153 2010-04-11  Jim Meyering  <meyering@redhat.com>
6154
6155         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
6156         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
6157         empty file with one that ends in an empty line.
6158
6159 2010-04-10  Bruno Haible  <bruno@clisp.org>
6160
6161         mkdir: Make it work on mingw64.
6162         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
6163         * lib/mkdir.c: Update comment.
6164         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
6165
6166 2010-04-10  Bruno Haible  <bruno@clisp.org>
6167
6168         Don't override improved macro from newer autoconf.
6169         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
6170         autoconf >= 2.62.
6171         Reported by Joel E. Denny <jdenny@clemson.edu>.
6172
6173 2010-04-10  Jim Meyering  <meyering@redhat.com>
6174
6175         maint.mk: new syntax-check rule: prohibit empty lines at end of file
6176         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
6177
6178         maint.mk: correct a diagnostic
6179         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
6180         in diagnostic; now use $prohibit.
6181
6182 2010-04-10  Bruno Haible  <address@hidden>
6183
6184         fchownat: Fix a C++ test error on Solaris 8.
6185         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
6186         the function does not exist.
6187
6188 2010-04-10  Bruno Haible  <bruno@clisp.org>
6189
6190         vasnprintf: Add more tests.
6191         * tests/test-vasnprintf-posix.c: Include <errno.h>.
6192         (test_function): Test converting an invalid wide string.
6193
6194         vasnprintf: Correct handling of unconvertible wide string arguments.
6195         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
6196         VASNPRINTF.
6197         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
6198         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
6199         smaller than the expected maximum need for the directive. Set errno to
6200         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
6201         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
6202         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
6203         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
6204         * modules/vasnprintf (Files): Add m4/printf.m4.
6205         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6206
6207 2010-04-10  Bruno Haible  <bruno@clisp.org>
6208
6209         vasnprintf: Fix crash in %ls directive.
6210         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
6211         string is passed as argument to %ls, with no precision and no width.
6212         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6213
6214 2010-04-10  Bruno Haible  <bruno@clisp.org>
6215
6216         vasnprintf: Fix multiple test failures on mingw.
6217         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
6218         _snprintf, or snwprintf, not _snwprintf.
6219
6220 2010-04-10  Bruno Haible  <bruno@clisp.org>
6221
6222         write: Fix a C++ test error on mingw.
6223         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
6224
6225 2010-04-10  Bruno Haible  <bruno@clisp.org>
6226
6227         vasnprintf test: Reduce code duplication.
6228         * tests/test-vasnprintf.c (test_function): New function, extracted from
6229         test_vasnprintf.
6230         (test_vasnprintf, test_asnprintf): Invoke it.
6231
6232 2010-04-10  Bruno Haible  <bruno@clisp.org>
6233
6234         strnlen: Fix warning in C++ mode on MacOS X.
6235         * lib/string.in.h (strnlen): Use the modern idiom.
6236         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
6237         defining strnlen as a macro already in <config.h>.
6238         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6239         REPLACE_STRNLEN.
6240         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
6241         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6242
6243 2010-04-08  James Youngman  <jay@gnu.org>
6244
6245         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
6246         the example.
6247
6248 2010-04-09  Jim Meyering  <meyering@redhat.com>
6249
6250         maint.mk: print better diagnostic when there is no $(_hv_file)
6251         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
6252         announce that when $(_hv_file) (aka help-version) does not exist.
6253
6254         init.sh: run tr in the "C" locale to avoid multibyte interpretation
6255         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
6256         not try to interpret its random input bytes.  Jarno Rajahalme reported
6257         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
6258         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
6259         (mktempd_): Likewise, just in case.
6260
6261         ftruncate: add two years to projected module removal date: 2012
6262         * m4/ftruncate.m4: Adjust comments.
6263
6264         ftruncate: mark module as obsolete; even MinGW provides it, now
6265         * modules/ftruncate (Status): Obsolete.
6266         (Notice): Say that.
6267         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
6268         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
6269
6270 2010-04-08  Bruno Haible  <bruno@clisp.org>
6271
6272         Fix side effects from tests-related modules.
6273         * modules/dprintf-posix (Comment): New section.
6274         * modules/fprintf-posix (Comment): Likewise.
6275         * modules/obstack-printf-posix (Comment): Likewise.
6276         * modules/printf-posix (Comment): Likewise.
6277         * modules/snprintf-posix (Comment): Likewise.
6278         * modules/sprintf-posix (Comment): Likewise.
6279         * modules/vasnprintf-posix (Comment): Likewise.
6280         * modules/vasprintf-posix (Comment): Likewise.
6281         * modules/vdprintf-posix (Comment): Likewise.
6282         * modules/vfprintf-posix (Comment): Likewise.
6283         * modules/vprintf-posix (Comment): Likewise.
6284         * modules/vsnprintf-posix (Comment): Likewise.
6285         * modules/vsprintf-posix (Comment): Likewise.
6286         * modules/xprintf-posix (Comment): Likewise.
6287         * modules/xvasprintf-posix (Comment): Likewise.
6288         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
6289         * modules/floorf-tests (Depends-on): Likewise.
6290         * modules/round-tests (Depends-on): Likewise.
6291         * modules/roundf-tests (Depends-on): Likewise.
6292         * modules/trunc-tests (Depends-on): Likewise.
6293         * modules/truncf-tests (Depends-on): Likewise.
6294         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
6295         'fprintf-posix' module is not present.
6296         * tests/test-floorf2.c (check): Likewise.
6297         * tests/test-trunc2.c (check): Likewise.
6298         * tests/test-truncf2.c (check): Likewise.
6299         * tests/test-round2.c (equal): Likewise.
6300         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6301
6302 2010-04-07  Karl Berry  <karl@gnu.org>
6303
6304         * config/srclist.txt,
6305         * config/srclistvars.sh,
6306         * config/srclist-update: doc fixes.
6307
6308 2010-04-07  Jim Meyering  <meyering@redhat.com>
6309
6310         maint.mk: add a PATH crosschecking syntax-check rule
6311         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
6312         Useful if you use a test like the one in help-version (coreutils,
6313         diffutils, grep, gzip) that ensures $(VERSION) matches what is
6314         printed by prog --version.
6315
6316 2010-04-06  Bruno Haible  <bruno@clisp.org>
6317
6318         Fix link error on mingw.
6319         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
6320         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
6321
6322 2010-04-06  Bruno Haible  <bruno@clisp.org>
6323
6324         Assume rmdir exists.
6325         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
6326
6327 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
6328
6329         doc: update users.txt
6330         * users.txt: Add gcal.
6331
6332 2010-04-06  Jim Meyering  <meyering@redhat.com>
6333
6334         init.sh: simply unset TMPDIR rather than risking env -i
6335         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
6336         although it probably works fine on all Unix-based systems, some
6337         systems (Cygwin?) cannot tolerate a totally cleared environment.
6338         Suggestion from Eric Blake.
6339
6340 2010-04-06  Jim Meyering  <meyering@redhat.com>
6341
6342         init.sh: portability fix: use env's POSIX-specified -i option not -u
6343         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
6344         than unportable env -u.  Solaris 5.11's env lacks support for -u.
6345
6346 2010-04-05  Bruno Haible  <bruno@clisp.org>
6347
6348         btowc: Work around Cygwin 1.7.2 bug.
6349         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
6350         does not map NUL to 0.
6351         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
6352
6353 2010-04-05  Bruno Haible  <bruno@clisp.org>
6354
6355         Make the multithread modules work on Cygwin 1.7.2.
6356         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
6357         imported symbols can be declared weak, so that it returns "no" on
6358         Cygwin 1.7.2.
6359
6360 2010-04-05  Bruno Haible  <bruno@clisp.org>
6361
6362         Use the module 'strncat'.
6363         * modules/unistr/u8-strncat (Depends-on): Add strncat.
6364
6365         Tests for module 'strncat'.
6366         * modules/strncat-tests: New file.
6367         * tests/test-strncat.c: New file.
6368
6369         New module 'strncat'.
6370         * lib/string.in.h (strncat): New declaration.
6371         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
6372         * m4/strncat.m4: New file, based on m4/memchr.m4.
6373         * modules/strncat: New file.
6374         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
6375         is declared.
6376         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
6377         REPLACE_STRNCAT.
6378         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
6379         REPLACE_STRNCAT.
6380         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
6381         module.
6382         * tests/test-string-c++.cc: Check signature of strncat.
6383
6384 2010-04-05  Jim Meyering  <meyering@redhat.com>
6385
6386         xstrtoumax-tests: convert to use init.sh
6387         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
6388         * tests/test-xstrtoumax.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         xstrtoimax-tests: convert to use init.sh
6393         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
6394         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6395         Use Exit, not exit.
6396         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6397
6398 2010-04-05  Bruno Haible  <bruno@clisp.org>
6399
6400         sys_socket: Avoid #define replacements in C++ mode.
6401         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
6402         warning to the function if possible, rather than #defining the symbol
6403         to a dysfunctional alias.
6404
6405 2010-04-05  Bruno Haible  <bruno@clisp.org>
6406
6407         fseeko: Fix C++ test error on mingw.
6408         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
6409         gl_FUNC_FSEEKO.
6410         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
6411         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
6412         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
6413         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
6414
6415 2010-04-05  Bruno Haible  <bruno@clisp.org>
6416
6417         duplocale: Improve test output.
6418         * tests/test-duplocale.c (main): Print reason for skipped test.
6419
6420 2010-04-05  Bruno Haible  <bruno@clisp.org>
6421
6422         Assume rmdir exists.
6423         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
6424         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
6425
6426 2010-04-05  Bruno Haible  <bruno@clisp.org>
6427
6428         Fix link error on Solaris 8 with cc.
6429         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
6430
6431 2010-04-05  Bruno Haible  <bruno@clisp.org>
6432
6433         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6434         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
6435
6436 2010-04-05  Bruno Haible  <bruno@clisp.org>
6437
6438         vasprintf: Update documentation.
6439         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
6440
6441 2010-04-05  Bruno Haible  <bruno@clisp.org>
6442
6443         ptsname: Improve test.
6444         * tests/test-ptsname.c (main): Also try the various master names of BSD
6445         systems.
6446
6447 2010-04-05  Bruno Haible  <bruno@clisp.org>
6448
6449         memchr: Avoid a possible C++ test error.
6450         * lib/string.in.h (memchr): Provide declaration if function is missing.
6451         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
6452         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
6453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
6454         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
6455
6456 2010-04-05  Bruno Haible  <bruno@clisp.org>
6457
6458         strtok_r: Improve idiom.
6459         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
6460         AC_LIBOBJ is used.
6461
6462 2010-04-05  Bruno Haible  <bruno@clisp.org>
6463
6464         strdup: Improve idiom.
6465         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
6466         AC_LIBOBJ is used.
6467         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
6468         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
6469         when AC_LIBOBJ is used.
6470
6471 2010-04-05  Bruno Haible  <bruno@clisp.org>
6472
6473         mbsinit, mbrtowc, wcrtomb: Improve idioms.
6474         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
6475         don't set REPLACE_MBSINIT to 1.
6476         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
6477         don't set REPLACE_MBRTOWC to 1.
6478         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
6479         exist, don't set REPLACE_MBSRTOWCS to 1.
6480         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
6481         exist, don't set REPLACE_MBSNRTOWCS to 1.
6482         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
6483         don't set REPLACE_WCRTOMB to 1.
6484         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
6485         exist, don't set REPLACE_WCSRTOMBS to 1.
6486         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
6487         exist, don't set REPLACE_WCSNRTOMBS to 1.
6488
6489 2010-04-05  Bruno Haible  <bruno@clisp.org>
6490
6491         ldexpl: Improve idiom.
6492         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
6493         make sure to set HAVE_DECL_LDEXPL to 0.
6494
6495 2010-04-05  Jim Meyering  <meyering@redhat.com>
6496
6497         xstrtol-tests: convert to use init.sh
6498         * modules/xstrtol-tests (Files): Add tests/init.sh.
6499         * tests/test-xstrtol.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         atexit-tests: convert to use init.sh
6504         * modules/atexit-tests (Files): Add tests/init.sh.
6505         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6506         Use Exit, not exit.
6507         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6508
6509         init.sh: fix typo
6510         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
6511
6512         init.sh: make it easier for a test script to write to the tty, ...
6513         when using automake's parallel-tests mode.
6514         * tests/init.sh (stderr_fileno_): Define overridable variable.
6515         (warn_): New function, to use it.
6516         (fail_, skip_, framework_failure_): Use warn_.
6517
6518 2010-04-04  Bruno Haible  <bruno@clisp.org>
6519
6520         btowc: Avoid warning.
6521         * lib/btowc.c: Include <stdlib.h>.
6522         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
6523
6524 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6525             Bruno Haible  <bruno@clisp.org>
6526
6527         wchar: Port to NetBSD 1.5.
6528         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
6529         * lib/wctype.in.h (WEOF): Likewise.
6530
6531 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6532             Bruno Haible  <bruno@clisp.org>
6533
6534         Port extended stdio to NetBSD 1.5.
6535         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
6536         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
6537         older.
6538
6539 2010-04-04  Bruno Haible  <bruno@clisp.org>
6540
6541         string: Remove unused substitution.
6542         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6543         HAVE_DECL_STRERROR.
6544         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
6545
6546 2010-04-04  Bruno Haible  <bruno@clisp.org>
6547
6548         strtod: Avoid a possible C++ test error.
6549         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
6550         set REPLACE_STRTOD.
6551
6552 2010-04-04  Bruno Haible  <bruno@clisp.org>
6553
6554         strerror: Update documentation.
6555         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
6556
6557 2010-04-04  Bruno Haible  <bruno@clisp.org>
6558
6559         stdio: Fix some C++ test errors on Solaris 8 with GCC.
6560         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
6561         _GL_CXXALIAS_SYS_CAST.
6562
6563 2010-04-04  Bruno Haible  <bruno@clisp.org>
6564
6565         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6566         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
6567         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
6568         REPLACE_FREXPL to 1.
6569         * doc/posix-functions/frexpl.texi: Update documentation.
6570
6571 2010-04-04  Bruno Haible  <bruno@clisp.org>
6572
6573         math: Fix some C++ test errors on Solaris 8 and Cygwin.
6574         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
6575
6576 2010-04-04  Bruno Haible  <bruno@clisp.org>
6577
6578         Implement nanosleep for native Windows.
6579         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
6580
6581 2010-04-04  Bruno Haible  <bruno@clisp.org>
6582
6583         math: Fix some C++ test errors on Solaris 8.
6584         * lib/math.in.h (truncf, trunc): Use simpler idiom.
6585
6586 2010-04-04  Bruno Haible  <bruno@clisp.org>
6587
6588         math: Fix some C++ test errors on Cygwin.
6589         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
6590         truncl): Provide declaration if the system does not have it.
6591         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
6592         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
6593         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
6594         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
6595         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
6596         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
6597         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
6598         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
6599         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
6600         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
6601         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
6602         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
6603         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
6604         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
6605         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
6606         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
6607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
6608         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6609         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6610         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
6611         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6612         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6613
6614 2010-04-04  Bruno Haible  <bruno@clisp.org>
6615
6616         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
6617         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6618         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6619         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6620         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6621         * m4/isinf.m4 (gl_ISINF): Likewise.
6622         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6623
6624 2010-04-04  Bruno Haible  <bruno@clisp.org>
6625
6626         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
6627         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6628
6629 2010-04-04  Bruno Haible  <bruno@clisp.org>
6630
6631         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
6632         * modules/tmpfile (configure.ac): Update.
6633
6634         tmpfile: Fix C++ test error on mingw.
6635         * lib/stdio.in.h (tmpfile): New declaration.
6636         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
6637         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
6638         * modules/tmpfile (Depends-on): Add stdio.
6639         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6640         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
6641         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
6642         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
6643         REPLACE_TMPFILE.
6644         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
6645
6646 2010-04-04  Bruno Haible  <bruno@clisp.org>
6647
6648         ioctl: Fix C++ test error on mingw.
6649         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
6650         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
6651         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
6652
6653 2010-04-03  Bruno Haible  <bruno@clisp.org>
6654
6655         wcwidth: Fix C++ test error on mingw.
6656         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
6657         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
6658         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
6659
6660 2010-04-03  Bruno Haible  <bruno@clisp.org>
6661
6662         nanosleep: Fix C++ test error on mingw.
6663         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
6664         * lib/time.in.h (nanosleep): Use modern idiom.
6665         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
6666         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
6667         REPLACE_NANOSLEEP to 1.
6668         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
6669         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
6670
6671 2010-04-03  Bruno Haible  <bruno@clisp.org>
6672
6673         strptime: Fix C++ test error on mingw.
6674         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
6675         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
6676         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
6677         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
6678         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
6679         not REPLACE_STRPTIME.
6680         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
6681         REPLACE_STRPTIME.
6682
6683 2010-04-03  Bruno Haible  <bruno@clisp.org>
6684
6685         timegm: Fix C++ test error on mingw.
6686         * lib/time.in.h (timegm): Use modern idiom.
6687         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
6688         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
6689         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
6690         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
6691
6692 2010-04-03  Bruno Haible  <bruno@clisp.org>
6693
6694         timegm: Assume declaration if function exists.
6695         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
6696         if it exists. Don't clobber ac_cv_func_timegm.
6697
6698 2010-04-03  Bruno Haible  <bruno@clisp.org>
6699
6700         time_r: Fix C++ test error on mingw.
6701         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
6702         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
6703         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
6704         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
6705         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
6706
6707 2010-04-03  Bruno Haible  <bruno@clisp.org>
6708
6709         time_r: Minor updates.
6710         * modules/time_r (Description): Mention the provided functions.
6711         * lib/time_r.c: Don't include <string.h>.
6712         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
6713         * doc/posix-functions/localtime_r.texi: Likewise.
6714
6715 2010-04-03  Bruno Haible  <bruno@clisp.org>
6716
6717         time: Fix regression introduced on 2010-03-08.
6718         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
6719         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
6720
6721 2010-04-03  Jim Meyering  <meyering@redhat.com>
6722
6723         maint.mk: don't silently disable project-specific syntax-check rules
6724         * top/maint.mk (_prohibit_regexp): Define, to help people realize
6725         that they need to convert their project-specific syntax-check rules
6726         to use the new _sc_search_regexp.
6727
6728 2010-04-03  Bruno Haible  <bruno@clisp.org>
6729
6730         fchdir: Fix regression introduced on 2010-03-08.
6731         * lib/unistd.in.h (fchdir): Fix declaration.
6732         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
6733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
6734         REPLACE_FCHDIR.
6735         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
6736         REPLACE_FCHDIR.
6737
6738 2010-04-03  Bruno Haible  <bruno@clisp.org>
6739
6740         getpagesize: Fix C++ test error on mingw.
6741         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
6742         system does not declare the function.
6743         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
6744         declared.
6745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6746         HAVE_DECL_GETPAGESIZE.
6747         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
6748
6749 2010-04-03  Bruno Haible  <bruno@clisp.org>
6750
6751         stdio: Make C++ tests work on mingw.
6752         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
6753         does not declare the function.
6754
6755 2010-04-03  Bruno Haible  <bruno@clisp.org>
6756
6757         ftello: Fix C++ test error on mingw.
6758         * lib/stdio.in.h (ftello): Use modern idiom.
6759         * lib/ftello.c (ftello): Renamed from rpl_ftello.
6760         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
6761         is missing and that it needs to be replaced.
6762         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
6763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
6764         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
6765
6766 2010-04-03  Bruno Haible  <bruno@clisp.org>
6767
6768         fseeko: Fix C++ test error on mingw.
6769         * lib/stdio.in.h (fseeko): Use modern idiom.
6770         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
6771         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
6772         is missing and that it needs to be replaced.
6773         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
6774         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
6775         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
6776
6777 2010-04-03  Bruno Haible  <bruno@clisp.org>
6778
6779         mkstemp: Fix C++ test error on mingw.
6780         * lib/stdlib.in.h (mkstemp): Use modern idiom.
6781         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
6782         function is missing and that it needs to be replaced.
6783         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
6784         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
6785
6786 2010-04-03  Bruno Haible  <bruno@clisp.org>
6787
6788         stpncpy: Fix C++ test error on mingw.
6789         * lib/string.in.h (stpncpy): Use modern idiom.
6790         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
6791         function is missing and that it needs to be replaced.
6792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6793         REPLACE_STPNCPY.
6794         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
6795
6796 2010-04-03  Bruno Haible  <bruno@clisp.org>
6797
6798         sys_stat: Fix C++ test error on mingw.
6799         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
6800         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
6801
6802 2010-04-03  Bruno Haible  <bruno@clisp.org>
6803
6804         pty: Update doc.
6805         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
6806
6807 2010-04-03  Bruno Haible  <bruno@clisp.org>
6808
6809         unistd: Fix C++ test error on mingw.
6810         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
6811
6812 2010-04-03  Bruno Haible  <bruno@clisp.org>
6813
6814         Update doc regarding mingw.
6815         * doc/glibc-functions/openpty.texi: Update regarding mingw.
6816         * doc/glibc-functions/login_tty.texi: Likewise.
6817         * doc/glibc-functions/forkpty.texi: Likewise.
6818
6819 2010-04-03  Bruno Haible  <bruno@clisp.org>
6820
6821         stdlib: Avoid compilation failure of c-strtold on mingw.
6822         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
6823
6824 2010-04-03  Bruno Haible  <bruno@clisp.org>
6825
6826         locale: Make C++ tests work on Cygwin and mingw.
6827         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
6828         cannot provide the function.
6829         Reported by Simon Josefsson.
6830
6831 2010-04-03  Bruno Haible  <bruno@clisp.org>
6832
6833         localename: Port to MacOS X 10.6.
6834         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
6835         memory layout of the locales in MacOS X 10.6 as well.
6836         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
6837
6838 2010-04-02  Bruno Haible  <bruno@clisp.org>
6839
6840         gnulib-tool: Ensure that long-running tests are executed last.
6841         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
6842         running tests after the one for the other tests.
6843
6844 2010-04-02  Bruno Haible  <bruno@clisp.org>
6845
6846         gnulib-tool: Ensure the tests in the main directory are executed first.
6847         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
6848         start with the current directory.
6849
6850 2010-04-02  Bruno Haible  <bruno@clisp.org>
6851
6852         Tests for module 'havelib', moved here from GNU gettext.
6853         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
6854         modifications.
6855         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
6856         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
6857         with modifications.
6858         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
6859         modifications.
6860         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
6861         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
6862         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
6863         with modifications.
6864         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
6865         with modifications.
6866         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
6867         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
6868         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
6869         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
6870         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
6871         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
6872         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
6873         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
6874         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
6875         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
6876         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
6877         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
6878         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
6879         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
6880         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
6881         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
6882         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
6883         with modifications.
6884         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
6885         with modifications.
6886         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
6887         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
6888         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
6889         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
6890         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
6891         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
6892         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
6893         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
6894         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
6895         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
6896         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
6897         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
6898         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
6899         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
6900         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
6901         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
6902         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
6903         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
6904         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
6905         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
6906         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
6907         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
6908         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
6909         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
6910         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
6911         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
6912         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
6913         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
6914         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
6915         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
6916         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
6917         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
6918         * tests/havelib/rpathx/rpathx.c: New file, from
6919         gettext/autoconf-lib-link.
6920         * tests/havelib/rpathx/Makefile.am: New file, from
6921         gettext/autoconf-lib-link.
6922         * tests/havelib/rpathx/configure.ac: New file, from
6923         gettext/autoconf-lib-link with modifications.
6924         * tests/havelib/rpathy/rpathy.c: New file, from
6925         gettext/autoconf-lib-link.
6926         * tests/havelib/rpathy/Makefile.am: New file, from
6927         gettext/autoconf-lib-link.
6928         * tests/havelib/rpathy/configure.ac: New file, from
6929         gettext/autoconf-lib-link with modifications.
6930         * tests/havelib/rpathz/rpathz.c: New file, from
6931         gettext/autoconf-lib-link.
6932         * tests/havelib/rpathz/Makefile.am: New file, from
6933         gettext/autoconf-lib-link.
6934         * tests/havelib/rpathz/configure.ac: New file, from
6935         gettext/autoconf-lib-link with modifications.
6936         * tests/havelib/rpathlx/usex.c: New file, from
6937         gettext/autoconf-lib-link.
6938         * tests/havelib/rpathlx/Makefile.am: New file, from
6939         gettext/autoconf-lib-link.
6940         * tests/havelib/rpathlx/configure.ac: New file, from
6941         gettext/autoconf-lib-link with modifications.
6942         * tests/havelib/rpathly/usey.c: New file, from
6943         gettext/autoconf-lib-link.
6944         * tests/havelib/rpathly/Makefile.am: New file, from
6945         gettext/autoconf-lib-link.
6946         * tests/havelib/rpathly/configure.ac: New file, from
6947         gettext/autoconf-lib-link with modifications.
6948         * tests/havelib/rpathlz/usez.c: New file, from
6949         gettext/autoconf-lib-link.
6950         * tests/havelib/rpathlz/Makefile.am: New file, from
6951         gettext/autoconf-lib-link.
6952         * tests/havelib/rpathlz/configure.ac: New file, from
6953         gettext/autoconf-lib-link with modifications.
6954         * tests/havelib/rpathlyx/usey.c: New file, from
6955         gettext/autoconf-lib-link.
6956         * tests/havelib/rpathlyx/Makefile.am: New file, from
6957         gettext/autoconf-lib-link.
6958         * tests/havelib/rpathlyx/configure.ac: New file, from
6959         gettext/autoconf-lib-link with modifications.
6960         * tests/havelib/rpathlzyx/usez.c: New file, from
6961         gettext/autoconf-lib-link.
6962         * tests/havelib/rpathlzyx/Makefile.am: New file, from
6963         gettext/autoconf-lib-link.
6964         * tests/havelib/rpathlzyx/configure.ac: New file, from
6965         gettext/autoconf-lib-link with modifications.
6966         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
6967         with modifications.
6968
6969 2010-04-02  Bruno Haible  <bruno@clisp.org>
6970
6971         gnulib-tool: Create distributed built sources also for the tests.
6972         * gnulib-tool (func_create_testdir): Also generate distributed built
6973         sources in the tests directory.
6974
6975 2010-04-02  Bruno Haible  <bruno@clisp.org>
6976
6977         gnulib-tool: Obey user's environment variables.
6978         * gnulib-tool (func_create_testdir): When creating built sources,
6979         respect the environment variables for autoconf, automake, etc. given by
6980         the user.
6981
6982 2010-04-02  Bruno Haible  <bruno@clisp.org>
6983
6984         gnulib-tool: Provide the value of --m4-base to modules.
6985         * gnulib-tool (func_import, func_create_testdir): Emit a definition
6986         of gl_m4_base.
6987
6988 2010-04-02  Eric Blake  <eblake@redhat.com>
6989
6990         maint.mk: fix some fallout
6991         * NEWS: Document the incompatible change, and its effect on cfg.mk.
6992         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
6993
6994 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6995
6996         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
6997         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
6998         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
6999         (sc_cast_of_x_alloc_return_value): Likewise.
7000         (sc_cast_of_alloca_return_value): Likewise.
7001         (sc_space_tab): Likewise.
7002         (sc_prohibit_atoi_atof): Likewise.
7003         (sc_prohibit_magic_number_exit): Likewise.
7004         (sc_error_exit_success): Likewise.
7005         (sc_file_system): Likewise.
7006         (sc_prohibit_have_config_h): Likewise.
7007         (sc_require_config_h): Likewise.
7008         (sc_prohibit_HAVE_MBRTOWC): Likewise.
7009         (sc_obsolete_symbols): Likewise.
7010         (sc_changelog): Likewise.
7011         (sc_program_name): Likewise.
7012         (sc_the_the): Likewise.
7013         (sc_trailing_blank): Likewise.
7014         (sc_two_space_separator_in_usage): Likewise.
7015         (sc_useless_cpp_parens): Likewise.
7016         (sc_GPL_version): Likewise.
7017         (sc_GFDL_version): Likewise.
7018         (sc_texinfo_acronym): Likewise.
7019         (sc_prohibit_cvs_keyword): Likewise.
7020         (sc_prohibit_stat_st_blocks): Likewise.
7021         (sc_prohibit_S_IS_definition): Likewise.
7022         (sc_redundant_const): Likewise.
7023         (sc_makefile_TAB_only_indentation): Likewise.
7024         (sc_m4_quote_check): Likewise.
7025         (sc_makefile_path_separator_check): Likewise.
7026         (sc_copyright_check): Likewise.
7027         (sc_Wundef_boolean): Likewise.
7028         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
7029
7030         maint.mk: match 0 or more whitespace-before-function-call '('
7031         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
7032         that have zero or two-and-more spaces between the function name
7033         and the open parenthesis.
7034         (sc_error_message_warn_fatal): Likewise.
7035         (sc_error_message_uppercase): Likewise.
7036         (sc_error_message_period): Likewise.
7037
7038 2010-03-31  Eric Blake  <eblake@redhat.com>
7039
7040         maint.mk: check for [ as well as test
7041         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
7042         Based on a libvirt report by Matthias Bolte.
7043
7044         gnumakefile: don't squelch _version output
7045         * top/GNUmakefile (_version): Create one-shot dependency rather
7046         than using $(shell) when version must be regenerated.
7047         (_autoreconf): Run verbosely, by default.
7048
7049         sys_time: avoid compiler warnings
7050         * lib/sys_time.in.h (includes): Ensure gcc pragma is
7051         unconditional, fixing regression from 2010-03-29.
7052         Reported by Simon Josefsson.
7053
7054 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
7055
7056         maint.mk: s/_header_without_use/_sc_header_without_use/
7057         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
7058         (sc_prohibit_assert_without_use): Use the new name.
7059         (sc_prohibit_close_stream_without_use): Likewise.
7060         (sc_prohibit_getopt_without_use): Likewise.
7061         (sc_prohibit_quotearg_without_use): Likewise.
7062         (sc_prohibit_quote_without_use): Likewise.
7063         (sc_prohibit_long_options_without_use): Likewise.
7064         (sc_prohibit_inttostr_without_use): Likewise.
7065         (sc_prohibit_ignore_value_without_use): Likewise.
7066         (sc_prohibit_error_without_use): Likewise.
7067         (sc_prohibit_xalloc_without_use): Likewise.
7068         (sc_prohibit_hash_without_use): Likewise.
7069         (sc_prohibit_hash_pjw_without_use): Likewise.
7070         (sc_prohibit_safe_read_without_use): Likewise.
7071         (sc_prohibit_argmatch_without_use): Likewise.
7072         (sc_prohibit_canonicalize_without_use): Likewise.
7073         (sc_prohibit_root_dev_ino_without_use): Likewise.
7074         (sc_prohibit_openat_without_use): Likewise.
7075         (sc_prohibit_c_ctype_without_use): Likewise.
7076         (sc_prohibit_signal_without_use): Likewise.
7077         (sc_prohibit_intprops_without_use): Likewise.
7078
7079 2010-03-30  Eric Blake  <eblake@redhat.com>
7080
7081         maint: improve module indicators
7082         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
7083         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
7084         columns, and avoid extra macro expansion.
7085
7086         fdopendir: work around FreeBSD bug
7087         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
7088         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
7089         * modules/dirent (Makefile.am): Substitute it.
7090         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
7091         declaration.
7092         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
7093         fix.
7094         Reported by Christian Weisgerber <naddy@mips.inka.de>.
7095
7096 2010-03-29  Bruno Haible  <bruno@clisp.org>
7097
7098         Emit #pragma system_header after the inclusion guard, not before.
7099         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
7100         guard that spans the entire file, not before. This enables an
7101         optimization in GCC's preprocessor.
7102         * lib/ctype.in.h: Likewise.
7103         * lib/dirent.in.h: Likewise.
7104         * lib/errno.in.h: Likewise.
7105         * lib/float.in.h: Likewise.
7106         * lib/getopt.in.h: Likewise.
7107         * lib/iconv.in.h: Likewise.
7108         * lib/langinfo.in.h: Likewise.
7109         * lib/locale.in.h: Likewise.
7110         * lib/math.in.h: Likewise.
7111         * lib/netdb.in.h: Likewise.
7112         * lib/netinet_in.in.h: Likewise.
7113         * lib/pty.in.h: Likewise.
7114         * lib/sched.in.h: Likewise.
7115         * lib/se-selinux.in.h: Likewise.
7116         * lib/search.in.h: Likewise.
7117         * lib/spawn.in.h: Likewise.
7118         * lib/stdarg.in.h: Likewise.
7119         * lib/stdint.in.h: Likewise.
7120         * lib/string.in.h: Likewise.
7121         * lib/strings.in.h: Likewise.
7122         * lib/sys_file.in.h: Likewise.
7123         * lib/sys_ioctl.in.h: Likewise.
7124         * lib/sys_time.in.h: Likewise.
7125         * lib/sys_times.in.h: Likewise.
7126         * lib/sys_utsname.in.h: Likewise.
7127         * lib/sys_wait.in.h: Likewise.
7128         * lib/sysexits.in.h: Likewise.
7129         * lib/wctype.in.h: Likewise.
7130
7131 2010-03-28  James Youngman  <jay@gnu.org>
7132
7133         save-cwd: don't leak a file descriptor when the caller execs.
7134         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
7135         saved file descriptor.
7136         * modules/save-cwd (Depends-on): Depend on cloexec.
7137
7138 2010-03-29  Bruno Haible  <bruno@clisp.org>
7139
7140         Remove vestiges of fts-lgpl module.
7141         * lib/fts_.h: Assume GNULIB_FTS is 1.
7142         * lib/fts.c: Likewise.
7143         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
7144
7145 2010-03-28  Bruno Haible  <bruno@clisp.org>
7146
7147         Fix definition of tests witness macro.
7148         * gnulib-tool (func_import): Fix definition of witness macro.
7149
7150 2010-03-28  Bruno Haible  <bruno@clisp.org>
7151
7152         Fix ioctl's protoype on glibc systems.
7153         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
7154         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
7155         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
7156         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
7157         signature. If not, arrange to replace the ioctl function.
7158         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
7159         REPLACE_IOCTL.
7160         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
7161         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
7162         Reported by Ludovic Courtès <ludo@gnu.org>.
7163
7164 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
7165
7166         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
7167         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
7168         made it so grep -r --include=GLOB* ... did not work.
7169
7170 2010-03-26  Jim Meyering  <meyering@redhat.com>
7171             Eric Blake  <eblake@redhat.com>
7172
7173         maint.mk: prohibit use of test's -o and -a operators
7174         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
7175
7176 2010-03-28  Bruno Haible  <bruno@clisp.org>
7177
7178         Remove unused GNULIB_XYZ macro definitions.
7179         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
7180         invocation.
7181
7182 2010-03-28  Bruno Haible  <bruno@clisp.org>
7183
7184         Mark privileged tests modules.
7185         * modules/idpriv-drop-tests (Status): New section.
7186         * modules/idpriv-droptemp-tests (Status): New section.
7187
7188 2010-03-28  Bruno Haible  <bruno@clisp.org>
7189
7190         Split C++ tests into separate tests modules.
7191         * modules/dirent-c++-tests: New file, extracted from
7192         modules/dirent-tests.
7193         * modules/dirent-tests: Depend on it.
7194         * modules/fcntl-h-c++-tests: New file, extracted from
7195         modules/fcntl-h-tests.
7196         * modules/fcntl-h-tests: Depend on it.
7197         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
7198         * modules/glob-tests: Depend on it.
7199         * modules/iconv-h-c++-tests: New file, extracted from
7200         modules/iconv-h-tests.
7201         * modules/iconv-h-tests: Depend on it.
7202         * modules/langinfo-c++-tests: New file, extracted from
7203         modules/langinfo-tests.
7204         * modules/langinfo-tests: Depend on it.
7205         * modules/locale-c++-tests: New file, extracted from
7206         modules/locale-tests.
7207         * modules/locale-tests: Depend on it.
7208         * modules/math-c++-tests: New file, extracted from modules/math-tests.
7209         * modules/math-tests: Depend on it.
7210         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
7211         * modules/pty-tests: Depend on it.
7212         * modules/search-c++-tests: New file, extracted from
7213         modules/search-tests.
7214         * modules/search-tests: Depend on it.
7215         * modules/signal-c++-tests: New file, extracted from
7216         modules/signal-tests.
7217         * modules/signal-tests: Depend on it.
7218         * modules/spawn-c++-tests: New file, extracted from
7219         modules/spawn-tests.
7220         * modules/spawn-tests: Depend on it.
7221         * modules/stdio-c++-tests: New file, extracted from
7222         modules/stdio-tests.
7223         * modules/stdio-tests: Depend on it.
7224         * modules/stdlib-c++-tests: New file, extracted from
7225         modules/stdlib-tests.
7226         * modules/stdlib-tests: Depend on it.
7227         * modules/string-c++-tests: New file, extracted from
7228         modules/string-tests.
7229         * modules/string-tests: Depend on it.
7230         * modules/sys_ioctl-c++-tests: New file, extracted from
7231         modules/sys_ioctl-tests.
7232         * modules/sys_ioctl-tests: Depend on it.
7233         * modules/sys_select-c++-tests: New file, extracted from
7234         modules/sys_select-tests.
7235         * modules/sys_select-tests: Depend on it.
7236         * modules/sys_socket-c++-tests: New file, extracted from
7237         modules/sys_socket-tests.
7238         * modules/sys_socket-tests: Depend on it.
7239         * modules/sys_stat-c++-tests: New file, extracted from
7240         modules/sys_stat-tests.
7241         * modules/sys_stat-tests: Depend on it.
7242         * modules/sys_time-c++-tests: New file, extracted from
7243         modules/sys_time-tests.
7244         * modules/sys_time-tests: Depend on it.
7245         * modules/time-c++-tests: New file, extracted from modules/time-tests.
7246         * modules/time-tests: Depend on it.
7247         * modules/unistd-c++-tests: New file, extracted from
7248         modules/unistd-tests.
7249         * modules/unistd-tests: Depend on it.
7250         * modules/wchar-c++-tests: New file, extracted from
7251         modules/wchar-tests.
7252         * modules/wchar-tests: Depend on it.
7253         * modules/wctype-c++-tests: New file, extracted from
7254         modules/wctype-tests.
7255         * modules/wctype-tests: Depend on it.
7256         Reported by Simon Josefsson.
7257
7258 2010-03-28  Bruno Haible  <bruno@clisp.org>
7259
7260         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
7261         * gnulib-tool (func_exists_module): New function, extracted from
7262         func_verify_module.
7263         (func_verify_module): Use it.
7264         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
7265         'foo' only if 'foo' exists.
7266         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
7267         module.
7268
7269 2010-03-28  Bruno Haible  <bruno@clisp.org>
7270
7271         gnulib-tool: Add support for special categories of tests.
7272         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
7273         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
7274         (func_usage): Document them.
7275         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
7276         inc_unportable_tests, inc_all_tests): New variables.
7277         (func_acceptable): Consider these variables.
7278         (func_modules_transitive_closure): Make it work when the 'Status' field
7279         consists of multiple words.
7280         (func_import): Store and restore the values of inc_cxx_tests,
7281         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
7282         inc_all_tests in gnulib-comp.m4.
7283         (func_create_testdir): Set inc_all_tests to true.
7284         * doc/gnulib.texi (Extra tests modules): New section.
7285         Suggested by Jim Meyering.
7286
7287 2010-03-28  Bruno Haible  <bruno@clisp.org>
7288
7289         ansi-c++-opt: Allow turning off the C++ build by default.
7290         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
7291         gl_CXX_CHOICE_DEFAULT_NO is defined.
7292         Requested by Eric Blake.
7293
7294 2010-03-28  Bruno Haible  <bruno@clisp.org>
7295
7296         unistd: Avoid #define replacements in C++ mode.
7297         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7298         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7299         setsockopt, shutdown, select): In C++, attach a warning to the function
7300         if possible, rather than #defining the symbol to a dysfunctional alias.
7301         Reported by John W. Eaton <jwe@gnu.org>.
7302
7303 2010-03-28  Bruno Haible  <bruno@clisp.org>
7304
7305         Fix link errors on mingw.
7306         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
7307         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
7308         $(LIBSOCKET).
7309         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
7310         $(LIBSOCKET).
7311
7312 2010-03-28  Bruno Haible  <bruno@clisp.org>
7313             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7314
7315         lib-ignore: Determine different options for different compilers.
7316         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
7317         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
7318         Add comments.
7319         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
7320         * NEWS: Mention the change.
7321
7322 2010-03-27  Bruno Haible  <bruno@clisp.org>
7323
7324         Remove unused GNULIB_XYZ macro definitions.
7325         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
7326         * modules/fseek (configure.ac): Likewise.
7327         * modules/ioctl (configure.ac): Likewise.
7328         * modules/open (configure.ac): Likewise.
7329         * modules/stdlib-safer (configure.ac): Likewise.
7330
7331 2010-03-27  Bruno Haible  <bruno@clisp.org>
7332
7333         Add a remark about certain modules.
7334         * modules/malloc (Comment): New section.
7335         * modules/realloc (Comment): Likewise.
7336         * modules/sigpipe (Comment): Likewise.
7337
7338 2010-03-27  Bruno Haible  <bruno@clisp.org>
7339
7340         Resolve conflict between the two kinds of module indicators.
7341         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
7342         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
7343         * modules/canonicalize (configure.ac): Invoke
7344         gl_MODULE_INDICATOR_FOR_TESTS.
7345         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
7346         GNULIB_XYZ.
7347         * tests/test-dirent-c++.cc: Likewise.
7348         * tests/test-dirent-safer.c: Likewise.
7349         * tests/test-dup2.c: Likewise.
7350         * tests/test-fchdir.c: Likewise.
7351         * tests/test-fcntl-h-c++.cc: Likewise.
7352         * tests/test-getopt.c: Likewise.
7353         * tests/test-getopt.h: Likewise.
7354         * tests/test-langinfo-c++.cc: Likewise.
7355         * tests/test-locale-c++.cc: Likewise.
7356         * tests/test-math-c++.cc: Likewise.
7357         * tests/test-pty-c++.cc: Likewise.
7358         * tests/test-search-c++.cc: Likewise.
7359         * tests/test-signal-c++.cc: Likewise.
7360         * tests/test-spawn-c++.cc: Likewise.
7361         * tests/test-stdio-c++.cc: Likewise.
7362         * tests/test-stdlib-c++.cc: Likewise.
7363         * tests/test-string-c++.cc: Likewise.
7364         * tests/test-sys_ioctl-c++.cc: Likewise.
7365         * tests/test-sys_select-c++.cc: Likewise.
7366         * tests/test-sys_socket-c++.cc: Likewise.
7367         * tests/test-sys_stat-c++.cc: Likewise.
7368         * tests/test-sys_time-c++.cc: Likewise.
7369         * tests/test-time-c++.cc: Likewise.
7370         * tests/test-unistd-c++.cc: Likewise.
7371         * tests/test-wchar-c++.cc: Likewise.
7372         * tests/uninorm/test-u8-nfc.c: Likewise.
7373         * tests/uninorm/test-u8-nfd.c: Likewise.
7374         * tests/uninorm/test-u8-nfkc.c: Likewise.
7375         * tests/uninorm/test-u8-nfkd.c: Likewise.
7376         * tests/uninorm/test-u16-nfc.c: Likewise.
7377         * tests/uninorm/test-u16-nfd.c: Likewise.
7378         * tests/uninorm/test-u16-nfkc.c: Likewise.
7379         * tests/uninorm/test-u16-nfkd.c: Likewise.
7380         * tests/uninorm/test-u32-nfc.c: Likewise.
7381         * tests/uninorm/test-u32-nfc-big.c: Likewise.
7382         * tests/uninorm/test-u32-nfd.c: Likewise.
7383         * tests/uninorm/test-u32-nfd-big.c: Likewise.
7384         * tests/uninorm/test-u32-nfkc.c: Likewise.
7385         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
7386         * tests/uninorm/test-u32-nfkd.c: Likewise.
7387         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
7388         * tests/uninorm/test-u32-normalize-big.c: Likewise.
7389
7390 2010-03-27  Bruno Haible  <bruno@clisp.org>
7391
7392         Distinguish two kinds of module indicators.
7393         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
7394         gl_MODULE_INDICATOR.
7395         (gl_MODULE_INDICATOR): New macro.
7396         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
7397         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
7398         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7399         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7400         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7401         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7402         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7403         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7404         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7405         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7406         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7407         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7408         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7409         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7410         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7411         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7412         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7413         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7414         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7415         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7416         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7417         * modules/cloexec (configure.ac): Likewise.
7418         * modules/getopt-gnu (configure.ac): Likewise.
7419         * modules/uninorm/u8-normalize (configure.ac): Likewise.
7420         * modules/uninorm/u16-normalize (configure.ac): Likewise.
7421         * modules/uninorm/u32-normalize (configure.ac): Likewise.
7422         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
7423
7424 2010-03-27  Bruno Haible  <bruno@clisp.org>
7425
7426         New module description field 'Comment'.
7427         * gnulib-tool: New option --extract-comment.
7428         (func_usage): Document it.
7429         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
7430         (func_get_comment): New function.
7431         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
7432
7433 2010-03-27  Bruno Haible  <bruno@clisp.org>
7434
7435         Addendum to 2010-02-07 commit.
7436         * gnulib-tool (func_usage): Document --extract-applicability option.
7437
7438 2010-03-27  Bruno Haible  <bruno@clisp.org>
7439
7440         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
7441         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
7442         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
7443         rather than link errors.
7444
7445 2010-03-27  Bruno Haible  <bruno@clisp.org>
7446
7447         Avoid side effects from tests-related modules on the compilation of lib.
7448         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
7449         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
7450         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
7451         parameter. Emit into AM_CPPFLAGS a definition of the designated C
7452         macro.
7453         (func_import): Define a witness macro. Assign it a value that depends
7454         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
7455         tests-related modules.
7456         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
7457         Reported by Jim Meyering.
7458
7459 2010-03-27  Bruno Haible  <bruno@clisp.org>
7460
7461         Factorize common .m4 code.
7462         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
7463         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
7464         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
7465         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
7466         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7467         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
7468         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
7469         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7470         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7471         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7472         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
7473         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7474         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7475         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7476         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7477         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
7478         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7479         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7481         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
7482         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
7483         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7484         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7485         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7486         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7487         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7488         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
7489         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
7490         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
7491         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7492         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7493         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7494
7495 2010-03-27  Bruno Haible  <bruno@clisp.org>
7496
7497         Fix a compilation error on Cygwin with g++ >= 4.3.
7498         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
7499         if it is undefined or if we alias it to chmod.
7500         (lstat): Don't warn about the use of this function if it is undefined
7501         or if we alias it to stat.
7502         Reported by Simon Josefsson.
7503
7504 2010-03-27  Bruno Haible  <bruno@clisp.org>
7505
7506         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
7507         * modules/getlogin (configure.ac): Update.
7508
7509         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
7510         * modules/getlogin_r (configure.ac): Update.
7511
7512         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
7513         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
7514         * modules/inet_ntop (configure.ac): Update.
7515
7516         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
7517         * modules/inet_pton (configure.ac): Update.
7518
7519         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
7520         * modules/mbslen (configure.ac): Update.
7521
7522         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
7523         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
7524         * modules/forkpty (configure.ac): Update.
7525         * modules/openpty (configure.ac): Update.
7526
7527 2010-03-26  Simon Josefsson  <simon@josefsson.org>
7528
7529         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
7530         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
7531
7532 2010-03-25  Eric Blake  <eblake@redhat.com>
7533
7534         maint: use pragma consistently across replacement headers
7535         * lib/ctype.in.h (system_header): Hoist for consistent placement.
7536         * lib/dirent.in.h (system_header): Likewise.
7537         * lib/errno.in.h (system_header): Likewise.
7538         * lib/float.in.h (system_header): Likewise.
7539         * lib/getopt.in.h (system_header): Likewise.
7540         * lib/iconv.in.h (system_header): Likewise.
7541         * lib/inttypes.in.h (system_header): Likewise.
7542         * lib/langinfo.in.h (system_header): Likewise.
7543         * lib/locale.in.h (system_header): Likewise.
7544         * lib/math.in.h (system_header): Likewise.
7545         * lib/netdb.in.h (system_header): Likewise.
7546         * lib/netinet_in.in.h (system_header): Likewise.
7547         * lib/pty.in.h (system_header): Likewise.
7548         * lib/sched.in.h (system_header): Likewise.
7549         * lib/se-selinux.in.h (system_header): Likewise.
7550         * lib/search.in.h (system_header): Likewise.
7551         * lib/spawn.in.h (system_header): Likewise.
7552         * lib/stdarg.in.h (system_header): Likewise.
7553         * lib/stdint.in.h (system_header): Likewise.
7554         * lib/string.in.h (system_header): Likewise.
7555         * lib/strings.in.h (system_header): Likewise.
7556         * lib/sys_file.in.h (system_header): Likewise.
7557         * lib/sys_ioctl.in.h (system_header): Likewise.
7558         * lib/sys_socket.in.h (system_header): Likewise.
7559         * lib/sys_times.in.h (system_header): Likewise.
7560         * lib/sys_utsname.in.h (system_header): Likewise.
7561         * lib/sys_wait.in.h (system_header): Likewise.
7562         * lib/sysexits.in.h (system_header): Likewise.
7563         * lib/unistd.in.h (system_header): Likewise.
7564         * lib/wctype.in.h (system_header): Likewise.
7565
7566         arpa/inet: fix mingw compilation warning
7567         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
7568         Reported by Matthew Bolte.
7569
7570 2010-03-25  Bruno Haible  <bruno@clisp.org>
7571
7572         Avoid collision between gnulib wrapper and libintl wrapper.
7573         * lib/printf.c (printf): Don't define if a printf wrapper is already
7574         defined in intl/printf.c.
7575         Reported by Michel Boaventura <michel@michelboaventura.com>.
7576
7577 2010-03-25  Bruno Haible  <bruno@clisp.org>
7578
7579         Use ANSI C.
7580         * lib/readutmp.h (getutent): Provide ANSI C prototype.
7581
7582 2010-03-25  Bruno Haible  <bruno@clisp.org>
7583
7584         Minor formatting changes.
7585         * lib/acosl.c: Insert space before function argument list.
7586         * lib/argz.c: Likewise.
7587         * lib/asinl.c: Likewise.
7588         * lib/expl.c: Likewise.
7589         * lib/gen-uni-tables.c: Likewise.
7590         * lib/gettext.h: Likewise.
7591         * lib/glthread/lock.h: Likewise.
7592         * lib/tanl.c: Likewise.
7593         * lib/uniname/uniname.c: Likewise.
7594         * tests/test-idpriv-drop.c: Likewise.
7595         * tests/test-idpriv-droptemp.c: Likewise.
7596         * tests/test-lock.c: Likewise.
7597         * tests/test-tls.c: Likewise.
7598         * lib/argp-help.c: Insert space before function-like macro argument
7599         list.
7600         * lib/memcmp.c: Likewise.
7601         * tests/test-base64.c: Likewise.
7602         * lib/localename.c: Insert space before sizeof's argument list.
7603         * lib/safe-alloc.h: Likewise.
7604         * lib/file-set.h: Insert space before macro argument list.
7605         * tests/test-argp.c: Likewise.
7606         * lib/argp-namefrob.h: Insert space before function parameter list.
7607         * lib/getaddrinfo.c: Likewise.
7608         * lib/netdb.in.h: Likewise.
7609         * lib/parse-duration.h: Likewise.
7610         * lib/parse-duration.c: Likewise.
7611         * lib/poll.c: Likewise.
7612         * lib/select.c: Likewise.
7613         * lib/trim.h: Likewise.
7614         * tests/test-usleep.c: Likewise.
7615         * lib/ldexpl.c: Insert space before function parameter list and before
7616         function argument list.
7617         * lib/logl.c: Likewise.
7618         * lib/sqrtl.c: Likewise.
7619         * lib/trim.c: Likewise.
7620         * lib/cosl.c: Use GNU style indentation. Insert space before function
7621         argument list.
7622         * lib/sinl.c: Likewise.
7623         * lib/tsearch.c: Insert space after 'for'.
7624         Reported by Jim Meyering.
7625
7626 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
7627
7628         * maint.mk (sc_Wundef_boolean): Check for the presence of the
7629         config header before grepping, as it's not present before
7630         autoreconf/configure are run.  Reported by Simon Josefsson.
7631
7632 2010-03-23  Bruno Haible  <bruno@clisp.org>
7633
7634         pt_chown: Make it work with automake < 1.11.
7635         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
7636         Reported by Simon Josefsson.
7637
7638 2010-03-23  Bruno Haible  <bruno@clisp.org>
7639
7640         pt_chown: Don't depend on GPLed modules.
7641         * lib/pt_chown.c: Don't include idpriv.h.
7642         (main): Don't drop privileges.
7643         * modules/pt_chown (Depends-on): Remove idpriv-drop.
7644         Reported by Simon Josefsson.
7645
7646 2010-03-24  Simon Josefsson  <simon@josefsson.org>
7647
7648         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
7649         suggestions from karl@freefriends.org (Karl Berry).
7650
7651 2010-03-22  Eric Blake  <eblake@redhat.com>
7652
7653         gethostname: further tweaks
7654         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
7655         are overriding gethostname.
7656         Suggested by Bruno Haible.
7657
7658 2010-03-21  Bruno Haible  <bruno@clisp.org>
7659
7660         Fix comments.
7661         * lib/forkpty.c (rpl_forkpty): Fix comment.
7662         * lib/openpty.c (rpl_openpty): Likewise.
7663         Reported by Eric Blake.
7664
7665 2010-03-22  Eric Blake  <eblake@redhat.com>
7666
7667         gethostname: fix build on mingw
7668         * lib/unistd.in.h (includes): Work around fact that mingw
7669         <winsock2.h> re-includes <unistd.h>, by avoiding any
7670         redeclarations if we are being included by <winsock2.h>.
7671         Reported by Matthias Bolte.
7672
7673 2010-03-21  Bruno Haible  <bruno@clisp.org>
7674
7675         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7676         * lib/forkpty.c (forkpty): New replacement function, from glibc with
7677         modifications.
7678         * lib/pty.in.h (forkpty): Update declaration. Add comments.
7679         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
7680         provide the replacement.
7681         * modules/forkpty (Depends-on): Add openpty, login_tty.
7682         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
7683         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
7684         * doc/glibc-functions/forkpty.texi: More supported platforms.
7685         * config/srclist.txt: Add forkpty.c (commented).
7686
7687 2010-03-21  Bruno Haible  <bruno@clisp.org>
7688
7689         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
7690         (Makefile.am): Verify that PTY_LIB is defined.
7691
7692         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
7693
7694 2010-03-21  Bruno Haible  <bruno@clisp.org>
7695
7696         Tests for module 'login_tty'.
7697         * modules/login_tty-tests: New file.
7698         * tests/test-login_tty.c: New file.
7699
7700         New module 'login_tty'.
7701         * lib/login_tty.c: New file.
7702         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
7703         * modules/login_tty: New file.
7704         * doc/glibc-functions/login_tty.texi: Mention the new module.
7705
7706 2010-03-21  Bruno Haible  <bruno@clisp.org>
7707
7708         login_tty: Documentation.
7709         * doc/glibc-functions/login_tty.texi: New file.
7710         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
7711
7712 2010-03-21  Bruno Haible  <bruno@clisp.org>
7713
7714         pty: Consistent macro naming.
7715         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
7716         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
7717         * modules/pty (configure.ac): Update.
7718
7719 2010-03-21  Bruno Haible  <bruno@clisp.org>
7720
7721         Tests for openpty: Make stricter.
7722         * tests/test-openpty.c (main): Add test of canonical processing and
7723         erase.
7724         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
7725
7726         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7727         * lib/openpty.c (openpty): New replacement function.
7728         * lib/pty.in.h: Include <termios.h>.
7729         (openpty): Update declaration. Add comments.
7730         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
7731         is not declared, arrange to provide the replacement. Check for _getpty
7732         and posix_openpt.
7733         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
7734         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
7735         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
7736         * modules/pty-tests (test_pty_c___LDADD): New variable.
7737         * doc/glibc-functions/openpty.texi: More supported platforms.
7738
7739 2010-03-21  Bruno Haible  <bruno@clisp.org>
7740
7741         setenv: Tweaks.
7742         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
7743         the test program.
7744         * doc/posix-functions/setenv.texi: Update platforms list.
7745
7746 2010-03-21  Bruno Haible  <bruno@clisp.org>
7747
7748         New module 'unlockpt'.
7749         * lib/unlockpt.c: New file, from glibc with modifications.
7750         * m4/unlockpt.m4: New file.
7751         * modules/unlockpt: New file.
7752         * lib/stdlib.in.h (unlockpt): New declaration.
7753         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
7754         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
7755         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
7756         HAVE_UNLOCKPT.
7757         * doc/posix-functions/unlockpt.texi: Mention the new module.
7758         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
7759         * config/srclist.txt: Add unlockpt.c (commented).
7760
7761 2010-03-21  Jim Meyering  <meyering@redhat.com>
7762
7763         maint.mk: prohibit inclusion of "intprops.h" without use
7764         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
7765
7766 2010-03-21  Bruno Haible  <bruno@clisp.org>
7767
7768         New module 'grantpt'.
7769         * lib/grantpt.c: New file, from glibc with modifications.
7770         * m4/grantpt.m4: New file.
7771         * modules/grantpt: New file.
7772         * lib/stdlib.in.h (grantpt): New declaration.
7773         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
7774         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
7775         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
7776         HAVE_GRANTPT.
7777         * doc/posix-functions/grantpt.texi: Mention the new module.
7778         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
7779         * config/srclist.txt: Add grantpt.c (commented).
7780
7781 2010-03-21  Bruno Haible  <bruno@clisp.org>
7782
7783         New module 'pt_chown'.
7784         * lib/pt_chown.c: New file, from glibc with modifications.
7785         * lib/pty-private.h: New file, from glibc with modifications.
7786         * modules/pt_chown: New file.
7787         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
7788
7789 2010-03-21  Bruno Haible  <bruno@clisp.org>
7790
7791         Tests for module 'ptsname'.
7792         * modules/ptsname-tests: New file.
7793         * tests/test-ptsname.c: New file.
7794
7795         New module 'ptsname'.
7796         * lib/ptsname.c: New file, from glibc with modifications.
7797         * m4/ptsname.m4: New file.
7798         * modules/ptsname: New file.
7799         * lib/stdlib.in.h (ptsname): New declaration.
7800         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
7801         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
7802         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
7803         HAVE_PTSNAME.
7804         * doc/posix-functions/ptsname.texi: Mention the new module.
7805         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
7806         * config/srclist.txt: Add ptsname.c (commented).
7807
7808 2010-03-21  Bruno Haible  <bruno@clisp.org>
7809
7810         Tests for module 'ttyname_r'.
7811         * modules/ttyname_r-tests: New file.
7812         * tests/test-ttyname_r.c: New file.
7813
7814         New module 'ttyname_r'.
7815         * lib/ttyname_r.c: New file.
7816         * m4/ttyname_r.m4: New file.
7817         * modules/ttyname_r: New file.
7818         * lib/unistd.in.h (ttyname_r): New declaration.
7819         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
7820         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
7821         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
7822         HAVE_TTYNAME_R.
7823         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
7824         * doc/posix-functions/ttyname_r.texi: Mention the new module.
7825
7826 2010-03-20  Bruno Haible  <bruno@clisp.org>
7827
7828         signal: Undefine macro definitions in C++ mode.
7829         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
7830         sigfillset): Undefine macro definitions from the system header in C++
7831         mode.
7832         Reported by John W. Eaton <jwe@gnu.org>.
7833
7834 2010-03-20  Bruno Haible  <bruno@clisp.org>
7835
7836         Ensure no #include statements inside extern "C" { ... }.
7837         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
7838         contain #include statements.
7839         * lib/time.in.h: Likewise.
7840
7841 2010-03-20  Bruno Haible  <bruno@clisp.org>
7842
7843         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
7844         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
7845         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
7846         Reported by John W. Eaton <jwe@gnu.org>.
7847
7848 2010-03-20  Bruno Haible  <bruno@clisp.org>
7849
7850         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
7851         Reported by Jim Meyering.
7852
7853 2010-03-20  Bruno Haible  <bruno@clisp.org>
7854
7855         pipe: Set errno upon failure.
7856         * lib/pipe.h: Specify that when -1 is returned, errno is set.
7857         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
7858         errno value in error message.
7859
7860 2010-03-20  Bruno Haible  <bruno@clisp.org>
7861             Jim Meyering  <meyering@redhat.com>
7862
7863         lchown: Avoid "unused variable" warning.
7864         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
7865
7866 2010-03-20  Bruno Haible  <bruno@clisp.org>
7867
7868         Work around unlink() bug on MacOS X 10.5.6.
7869         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
7870         attempting to unlink a parent directory.
7871         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
7872         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
7873         activate for the replacement function.
7874         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
7875
7876 2010-03-20  Bruno Haible  <bruno@clisp.org>
7877
7878         Fix link errors on Solaris 8.
7879         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
7880         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
7881
7882 2010-03-19  Jim Meyering  <meyering@redhat.com>
7883
7884         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
7885         The _LIBC implementation of build_range_exp correctly honors the
7886         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
7887         However, the non-_LIBC implementation would ignore that syntax-bit
7888         flag and return REG_ERANGE unconditionally.
7889         This change makes it honor that flag.
7890         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
7891         Make two pointer parameters "const".
7892         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
7893         (parse_bracket_exp): Update caller.
7894
7895         regex.m4: correct the reversed range endpoint ([b-a]) test
7896         * m4/regex.m4: When requiring that [b-a] evoke failure,
7897         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
7898         test pass once again for x86-based systems.
7899
7900 2010-03-19  Bruno Haible  <bruno@clisp.org>
7901
7902         scandir: Fix link error on Solaris 8.
7903         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
7904         macros.
7905
7906 2010-03-19  Bruno Haible  <bruno@clisp.org>
7907
7908         getusershell: Fix documentation.
7909         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
7910         module.
7911         * doc/glibc-functions/setusershell.texi: Likewise.
7912
7913         getusershell: Provide declaration, missing on Solaris 9.
7914         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
7915         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
7916         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
7917         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
7918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7919         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
7920         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
7921         HAVE_GETUSERSHELL.
7922         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
7923
7924 2010-03-19  Bruno Haible  <bruno@clisp.org>
7925
7926         wctype: Provide iswblank function.
7927         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
7928         exists and is fine.
7929         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
7930         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
7931         * tests/test-wctype.c (main): Re-enable the iswblank tests.
7932         * doc/posix-functions/iswblank.texi: Update.
7933
7934 2010-03-19  Bruno Haible  <bruno@clisp.org>
7935
7936         Tests of module 'pty' in C++ mode.
7937         * modules/pty-tests: New file.
7938         * tests/test-pty-c++.cc: New file.
7939         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7940
7941 2010-03-19  Eric Blake  <eblake@redhat.com>
7942
7943         logb: fix documentation
7944         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
7945         1.5 declaration bug.
7946
7947         forkpty, openpty: prefer glibc's const-safe prototype
7948         * lib/forkpty.c (rpl_forkpty): New file.
7949         * lib/openpty.c (rpl_openpty): Likewise.
7950         * modules/forkpty (Files): Distribute it.
7951         * modules/openpty (Files): Likewise.
7952         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
7953         check...
7954         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
7955         replacement for for non-const BSD signature.
7956         * modules/pty (Makefile.am): Substitute witnesses.
7957         * lib/pty.in.h (forkpty, openpty): Declare replacements.
7958         * tests/test-forkpty.c: Update signature check.
7959         * tests/test-openpty.c: Likewise.
7960         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
7961         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7962
7963         forkpty, openpty: split functions into new modules
7964         * modules/pty (Makefile.am): Substitute new witnesses.
7965         (Libraries): Move library detection...
7966         * modules/forkpty: ...into new module.
7967         * modules/openpty: Another new module.
7968         * modules/pty-tests: Rename and split...
7969         * modules/forkpty-tests: ...to this...
7970         * modules/openpty-tests: ...and this.
7971         * tests/test-pty.c: Rename and split...
7972         * tests/test-forkpty.c: ...to this...
7973         * tests/test-openpty.c: ...and this.
7974         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
7975         (gl_PTY): Split library searching...
7976         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
7977         (gl_FORKPTY, gl_OPENPTY): New macros.
7978         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
7979         * NEWS: Mention the split.
7980         * MODULES.html.sh (Misc): Document the modules.
7981         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
7982         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7983
7984         pty: improve replacement header
7985         * lib/pty.in.h: New file.
7986         * modules/pty (Files): Ship it.
7987         (Makefile.am): Always build replacement.
7988         * m4/pty.m4: Rename...
7989         * m4/pty_h.m4: ...to this.
7990         (gl_PTY): Modernize setting of witness macros; update check of
7991         forkpty to take proper advantage of cache.
7992         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
7993
7994         getopt: avoid compiler warning
7995         * lib/getopt.c (attribute_hidden): Remove unused macro.
7996
7997 2010-03-18  Bruno Haible  <bruno@clisp.org>
7998
7999         Fix link errors on Solaris 8.
8000         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
8001         * modules/search-tests (test_search_c___LDADD): Likewise.
8002         * modules/signal-tests (test_signal_c___LDADD): Likewise.
8003         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
8004         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
8005         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
8006         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
8007         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
8008         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
8009
8010 2010-03-18  Bruno Haible  <bruno@clisp.org>
8011
8012         Fix bug introduced on 2010-03-14.
8013         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
8014         (gl_SPAWN_H): Require it.
8015         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
8016         Reported by Simon Josefsson.
8017
8018 2010-03-18  Bruno Haible  <bruno@clisp.org>
8019
8020         Fix typo introduced on 2009-12-31.
8021         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
8022         posix_spawn_file_actions_adddup2.
8023
8024 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
8025         and Eric Blake  <eblake@redhat.com>
8026
8027         test-vc-list-files-git: make more robust
8028         * tests/test-vc-list-files-git.sh: Unset problematic environment
8029         variables.  Chain commands together.
8030
8031 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
8032
8033         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
8034         `AC_CHECK_DECL' invocation.
8035
8036 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
8037
8038         * lib/inttostr.c (inttostr): Make sure the invocation of verify
8039         appears before executable statements. Suggested by Petr Sumbera
8040         <Petr.Sumbera@Sun.COM>.
8041
8042 2010-03-14  Bruno Haible  <bruno@clisp.org>
8043
8044         * tests/test-flock.c (test_exclusive): Comment out a test that causes
8045         portability problems. Instead use a simpler test.
8046         (main): Check that invalid arguments are rejected only on Linux.
8047
8048 2010-03-14  Bruno Haible  <bruno@clisp.org>
8049
8050         Fix bug introduced on 2009-12-31.
8051         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
8052         gl_PREREQ_SYS_H_WINSOCK2 always.
8053         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
8054         SYS_SOCKET_H variable.
8055         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
8056         Update comments.
8057         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
8058         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8059         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8060         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8061         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
8062
8063 2010-03-14  Bruno Haible  <bruno@clisp.org>
8064
8065         Fix values returned by sinl, cosl.
8066         * lib/trigl.h: Add specification comments.
8067         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
8068         that combines the values from the precomputed table with the values of
8069         the Chebyshev polynomials.
8070
8071 2010-03-14  Bruno Haible  <bruno@clisp.org>
8072
8073         Fix compilation error when modules 'posix_spawn[p]' are not used.
8074         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
8075         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
8076
8077 2010-03-14  Bruno Haible  <bruno@clisp.org>
8078
8079         Fix compilation error on mingw when module 'time_r' is not used.
8080         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
8081         is 1.
8082         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
8083         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
8084         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
8085         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
8086
8087 2010-03-14  Bruno Haible  <bruno@clisp.org>
8088
8089         Fix compilation error with Sun C.
8090         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
8091         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
8092         instead of GCC specific ULONG_LONG_MAX.
8093         * lib/xstrtoll.c: Likewise.
8094         * lib/xstrtoull.c: Likewise.
8095
8096 2010-03-13  Bruno Haible  <bruno@clisp.org>
8097
8098         Allow the user to disable C++ code and tests.
8099         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
8100         (gl_PROG_ANSI_CXX): Require it.
8101
8102 2010-03-13  Bruno Haible  <bruno@clisp.org>
8103
8104         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
8105         cases.
8106
8107 2010-03-13  Bruno Haible  <bruno@clisp.org>
8108
8109         Test that gnulib does not break the standard C++ headers.
8110         * tests/test-locale-c++2.cc: New file.
8111         * modules/locale-tests (Files): Add it.
8112         (Makefile.am): Compile it for test-locale-c++.
8113         * tests/test-math-c++2.cc: New file.
8114         * modules/math-tests (Files): Add it.
8115         (Makefile.am): Compile it for test-math-c++.
8116         * tests/test-signal-c++2.cc: New file.
8117         * modules/signal-tests (Files): Add it.
8118         (Makefile.am): Compile it for test-signal-c++.
8119         * tests/test-stdio-c++2.cc: New file.
8120         * modules/stdio-tests (Files): Add it.
8121         (Makefile.am): Compile it for test-stdio-c++.
8122         * tests/test-stdlib-c++2.cc: New file.
8123         * modules/stdlib-tests (Files): Add it.
8124         (Makefile.am): Compile it for test-stdlib-c++.
8125         * tests/test-string-c++2.cc: New file.
8126         * modules/string-tests (Files): Add it.
8127         (Makefile.am): Compile it for test-string-c++.
8128         * tests/test-time-c++2.cc: New file.
8129         * modules/time-tests (Files): Add it.
8130         (Makefile.am): Compile it for test-time-c++.
8131         Reported by John W. Eaton <jwe@gnu.org>.
8132
8133 2010-03-13  Bruno Haible  <bruno@clisp.org>
8134
8135         * gnulib-tool (func_usage): Clarify which options are available for
8136         --create-testdir and --create-megatestdir.
8137
8138 2010-03-13  Bruno Haible  <bruno@clisp.org>
8139
8140         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
8141         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
8142         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
8143         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8144         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
8145         when appropriate.
8146         Reported by Jim Meyering.
8147
8148 2010-03-12  Simon Josefsson  <simon@josefsson.org>
8149
8150         * gnulib-tool (func_import): Explain origin of code.
8151
8152 2010-03-12  Bruno Haible  <bruno@clisp.org>
8153
8154         Fix problem with automake's definition of CXXLINK.
8155         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
8156         Reported by Simon Josefsson and Ludovic Courtès.
8157
8158 2010-03-12  Bruno Haible  <bruno@clisp.org>
8159
8160         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
8161         stable releases.
8162
8163 2010-03-11  Bruno Haible  <bruno@clisp.org>
8164
8165         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
8166         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
8167         whether the system provides one variant or multiple variants of the
8168         function.
8169         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
8170         C++ compilers.
8171         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
8172         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
8173         Reported by Jim Meyering.
8174
8175 2010-03-09  Simon Josefsson  <simon@josefsson.org>
8176
8177         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
8178
8179 2010-03-08  Bruno Haible  <bruno@clisp.org>
8180
8181         gnulib-tool: Add support for --libtool in --create-testdir.
8182         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
8183         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
8184
8185 2010-03-08  Eric Blake  <eblake@redhat.com>
8186
8187         gnulib-tool.texi: mention possibility of git submodule
8188         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
8189         submodules.
8190         * doc/.gitignore: Ignore another generated file.
8191
8192 2010-03-08  Karl Berry  <karl@gnu.org>
8193
8194         * doc/gnulib-tool.texi (VCS Issues): Mention third option
8195         of committing gnulib files while skipping others.
8196
8197 2010-03-07  Bruno Haible  <bruno@clisp.org>
8198
8199         Tests of module 'wctype' in C++ mode.
8200         * tests/test-wctype-c++.cc: New file.
8201         * modules/wctype-tests (Files): Add it and tests/signature.h.
8202         (Depends-on): Add ansi-c++-opt.
8203         (Makefile.am): Arrange to compile and run test-wctype-c++.
8204
8205         Tests of module 'wchar' in C++ mode.
8206         * tests/test-wchar-c++.cc: New file.
8207         * modules/wchar-tests (Files): Add it and tests/signature.h.
8208         (Depends-on): Add ansi-c++-opt.
8209         (Makefile.am): Arrange to compile and run test-wchar-c++.
8210         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
8211         gl_MODULE_INDICATOR.
8212
8213         Tests of module 'unistd' in C++ mode.
8214         * tests/test-unistd-c++.cc: New file.
8215         * modules/unistd-tests (Files): Add it and tests/signature.h.
8216         (Depends-on): Add ansi-c++-opt.
8217         (Makefile.am): Arrange to compile and run test-unistd-c++.
8218         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
8219         gl_MODULE_INDICATOR.
8220
8221         Tests of module 'time' in C++ mode.
8222         * tests/test-time-c++.cc: New file.
8223         * modules/time-tests (Files): Add it and tests/signature.h.
8224         (Depends-on): Add ansi-c++-opt.
8225         (Makefile.am): Arrange to compile and run test-time-c++.
8226         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8227
8228         Tests of module 'sys_time' in C++ mode.
8229         * tests/test-sys_time-c++.cc: New file.
8230         * modules/sys_time-tests (Files): Add it and tests/signature.h.
8231         (Depends-on): Add ansi-c++-opt.
8232         (Makefile.am): Arrange to compile and run test-sys_time-c++.
8233         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
8234         gl_MODULE_INDICATOR.
8235
8236         Tests of module 'sys_stat' in C++ mode.
8237         * tests/test-sys_stat-c++.cc: New file.
8238         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
8239         (Depends-on): Add ansi-c++-opt.
8240         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
8241         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
8242         gl_MODULE_INDICATOR.
8243
8244         Tests of module 'sys_socket' in C++ mode.
8245         * tests/test-sys_socket-c++.cc: New file.
8246         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
8247         (Depends-on): Add ansi-c++-opt.
8248         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
8249         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
8250         gl_MODULE_INDICATOR.
8251
8252         Tests of module 'sys_select' in C++ mode.
8253         * tests/test-sys_select-c++.cc: New file.
8254         * modules/sys_select-tests (Files): Add it and tests/signature.h.
8255         (Depends-on): Add ansi-c++-opt.
8256         (Makefile.am): Arrange to compile and run test-sys_select-c++.
8257         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
8258         gl_MODULE_INDICATOR.
8259
8260         Tests of module 'sys_ioctl' in C++ mode.
8261         * tests/test-sys_ioctl-c++.cc: New file.
8262         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
8263         (Depends-on): Add ansi-c++-opt.
8264         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
8265         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
8266         gl_MODULE_INDICATOR.
8267
8268         Tests of module 'string' in C++ mode.
8269         * tests/test-string-c++.cc: New file.
8270         * modules/string-tests (Files): Add it and tests/signature.h.
8271         (Depends-on): Add ansi-c++-opt.
8272         (Makefile.am): Arrange to compile and run test-string-c++.
8273         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
8274         gl_MODULE_INDICATOR.
8275
8276         Tests of module 'stdlib' in C++ mode.
8277         * tests/test-stdlib-c++.cc: New file.
8278         * modules/stdlib-tests (Files): Add it and tests/signature.h.
8279         (Depends-on): Add ansi-c++-opt.
8280         (Makefile.am): Arrange to compile and run test-stdlib-c++.
8281         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
8282         gl_MODULE_INDICATOR.
8283
8284         Tests of module 'stdio' in C++ mode.
8285         * tests/test-stdio-c++.cc: New file.
8286         * modules/stdio-tests (Files): Add it and tests/signature.h.
8287         (Depends-on): Add ansi-c++-opt.
8288         (Makefile.am): Arrange to compile and run test-stdio-c++.
8289         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
8290         gl_MODULE_INDICATOR.
8291
8292         Tests of module 'spawn' in C++ mode.
8293         * tests/test-spawn-c++.cc: New file.
8294         * modules/spawn-tests (Files): Add it and tests/signature.h.
8295         (Depends-on): Add ansi-c++-opt.
8296         (Makefile.am): Arrange to compile and run test-spawn-c++.
8297         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
8298         gl_MODULE_INDICATOR.
8299
8300         Tests of module 'signal' in C++ mode.
8301         * tests/test-signal-c++.cc: New file.
8302         * modules/signal-tests (Files): Add it and tests/signature.h.
8303         (Depends-on): Add ansi-c++-opt.
8304         (Makefile.am): Arrange to compile and run test-signal-c++.
8305         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
8306         gl_MODULE_INDICATOR.
8307
8308         Tests of module 'search' in C++ mode.
8309         * tests/test-search-c++.cc: New file.
8310         * modules/search-tests (Files): Add it and tests/signature.h.
8311         (Depends-on): Add ansi-c++-opt.
8312         (Makefile.am): Arrange to compile and run test-search-c++.
8313         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
8314         gl_MODULE_INDICATOR.
8315
8316         Tests of module 'math' in C++ mode.
8317         * tests/test-math-c++.cc: New file.
8318         * modules/math-tests (Files): Add it and tests/signature.h.
8319         (Depends-on): Add ansi-c++-opt.
8320         (Makefile.am): Arrange to compile and run test-math-c++.
8321         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8322
8323         Tests of module 'locale' in C++ mode.
8324         * tests/test-locale-c++.cc: New file.
8325         * modules/locale-tests (Files): Add it and tests/signature.h.
8326         (Depends-on): Add ansi-c++-opt.
8327         (Makefile.am): Arrange to compile and run test-locale-c++.
8328         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
8329         gl_MODULE_INDICATOR.
8330
8331         Tests of module 'langinfo' in C++ mode.
8332         * tests/test-langinfo-c++.cc: New file.
8333         * modules/langinfo-tests (Files): Add it and tests/signature.h.
8334         (Depends-on): Add ansi-c++-opt.
8335         (Makefile.am): Arrange to compile and run test-langinfo-c++.
8336         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
8337         gl_MODULE_INDICATOR.
8338
8339         Tests of module 'iconv-h' in C++ mode.
8340         * tests/test-iconv-h-c++.cc: New file.
8341         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
8342         (Depends-on): Add ansi-c++-opt.
8343         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
8344
8345         Tests of module 'glob' in C++ mode.
8346         * tests/test-glob-c++.cc: New file.
8347         * modules/glob-tests (Files): Add it.
8348         (Depends-on): Add ansi-c++-opt.
8349         (Makefile.am): Arrange to compile and run test-glob-c++.
8350
8351         Tests of module 'fcntl-h' in C++ mode.
8352         * tests/test-fcntl-h-c++.cc: New file.
8353         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
8354         (Depends-on): Add ansi-c++-opt.
8355         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
8356         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
8357         gl_MODULE_INDICATOR.
8358
8359         Tests of module 'dirent' in C++ mode.
8360         * tests/test-dirent-c++.cc: New file.
8361         * modules/dirent-tests (Files): Add it and tests/signature.h.
8362         (Depends-on): Add ansi-c++-opt.
8363         (Makefile.am): Arrange to compile and run test-dirent-c++.
8364         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8365         gl_MODULE_INDICATOR.
8366
8367         New module 'ansi-c++-opt'.
8368         * modules/ansi-c++-opt: New file.
8369         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
8370
8371         Document C++ namespace mode.
8372         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
8373
8374         wctype: Avoid #define replacements in C++ mode.
8375         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
8376         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
8377         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
8378         In C++, define a namespaced alias symbol.
8379         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
8380         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
8381         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
8382         rule.
8383
8384         wchar: Avoid #define replacements in C++ mode.
8385         * lib/wchar.in.h: Include c++defs.h.
8386         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
8387         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
8388         symbol.
8389         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
8390         * modules/wchar (Depends-on): Add c++defs.
8391         (Makefile.am): Update wchar.h rule.
8392
8393         unistd: Avoid #define replacements in C++ mode.
8394         * lib/unistd.in.h: Include c++defs.h.
8395         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
8396         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
8397         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
8398         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
8399         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
8400         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
8401         symbol.
8402         (environ): Update.
8403         * modules/unistd (Depends-on): Add c++defs.
8404         (Makefile.am): Update unistd.h rule.
8405
8406         time: Avoid #define replacements in C++ mode.
8407         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
8408         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
8409         define a namespaced alias symbol.
8410         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
8411         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
8412         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
8413         * modules/time (Depends-on): Add c++defs, warn-on-use.
8414         (Makefile.am): Update time.h rule.
8415         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
8416         * modules/nanosleep (configure.ac): Likewise.
8417         * modules/strptime (configure.ac): Likewise.
8418         * modules/timegm (configure.ac): Likewise.
8419
8420         sys_time: Avoid #define replacements in C++ mode.
8421         * lib/sys_time.in.h: Include c++defs.h.
8422         (gettimeofday): In C++, define a namespaced alias symbol.
8423         * modules/sys_time (Depends-on): Add c++defs.
8424         (Makefile.am): Update sys/time.h rule.
8425
8426         sys_stat: Avoid #define replacements in C++ mode.
8427         * lib/sys_stat.in.h: Include c++defs.h.
8428         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
8429         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
8430         namespaced alias symbol.
8431         In C++, define a namespaced alias symbol.
8432         * modules/sys_stat (Depends-on): Add c++defs.
8433         (Makefile.am): Update sys/stat.h rule.
8434
8435         sys_socket: Avoid #define replacements in C++ mode.
8436         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
8437         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
8438         definitions also when the system has a <sys/socket.h>.
8439         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8440         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
8441         In C++, define a namespaced alias symbol.
8442         * modules/sys_socket (Depends-on): Add c++defs.
8443         (Makefile.am): Update sys/socket.h rule.
8444
8445         sys_select: Avoid #define replacements in C++ mode.
8446         * lib/sys_select.in.h: Include c++defs.h. Enable the function
8447         definitions also when the system has a <sys/select.h>.
8448         (select): In C++, define a namespaced alias symbol.
8449         * modules/sys_select (Depends-on): Add c++defs.
8450         (Makefile.am): Update sys/select.h rule.
8451
8452         sys_ioctl: Avoid #define replacements in C++ mode.
8453         * lib/sys_ioctl.in.h: Include c++defs.h.
8454         (ioctl): In C++, define a namespaced alias symbol.
8455         * modules/sys_ioctl (Depends-on): Add c++defs.
8456         (Makefile.am): Update sys/ioctl.h rule.
8457
8458         string: Avoid #define replacements in C++ mode.
8459         * lib/string.in.h: Include c++defs.h.
8460         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
8461         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
8462         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
8463         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
8464         strsignal, strverscmp): In C++, define a namespaced alias symbol.
8465         * modules/string (Depends-on): Add c++defs.
8466         (Makefile.am): Update string.h rule.
8467
8468         stdlib: Avoid #define replacements in C++ mode.
8469         * lib/stdlib.in.h: Include c++defs.h.
8470         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
8471         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
8472         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
8473         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
8474         symbol.
8475         * modules/stdlib (Depends-on): Add c++defs.
8476         (Makefile.am): Update stdlib.h rule.
8477
8478         stdio: Avoid #define replacements in C++ mode.
8479         * lib/stdio.in.h: Include c++defs.h.
8480         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
8481         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
8482         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
8483         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
8484         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
8485         namespaced alias symbol.
8486         * modules/stdio (Depends-on): Add c++defs.
8487         (Makefile.am): Update stdio.h rule.
8488
8489         spawn: Avoid #define replacements in C++ mode.
8490         * lib/spawn.in.h: Include c++defs.h.
8491         (posix_spawn, posix_spawnp, posix_spawnattr_init,
8492         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
8493         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
8494         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
8495         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
8496         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
8497         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
8498         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
8499         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
8500         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
8501         In C++, define a namespaced alias symbol.
8502         * modules/spawn (Depends-on): Add c++defs.
8503         (Makefile.am): Update spawn.h rule.
8504
8505         signal: Avoid #define replacements in C++ mode.
8506         * lib/signal.in.h: Include c++defs.h.
8507         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
8508         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
8509         namespaced alias symbol.
8510         * modules/signal (Depends-on): Add c++defs.
8511         (Makefile.am): Update signal.h rule.
8512
8513         search: Avoid #define replacements in C++ mode.
8514         * lib/search.in.h: Include c++defs.h.
8515         (_gl_search_compar_fn, _gl_search_action_fn): New types.
8516         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
8517         symbol.
8518         * modules/search (Depends-on): Add c++defs.
8519         (Makefile.am): Update search.h rule.
8520
8521         math: Avoid #define replacements in C++ mode.
8522         * lib/math.in.h: Include c++defs.h.
8523         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
8524         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
8525         trunc, truncl): In C++, define a namespaced alias symbol.
8526         * modules/math (Depends-on): Add c++defs.
8527         (Makefile.am): Update math.h rule.
8528
8529         locale: Avoid #define replacements in C++ mode.
8530         * lib/locale.in.h: Include c++defs.h.
8531         (duplocale): In C++, define a namespaced alias symbol.
8532         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
8533         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
8534         * modules/locale (Depends-on): Add c++defs.
8535         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
8536
8537         langinfo: Avoid #define replacements in C++ mode.
8538         * lib/langinfo.in.h: Include c++defs.h.
8539         (nl_langinfo): In C++, define a namespaced alias symbol.
8540         * modules/langinfo (Depends-on): Add c++defs.
8541         (Makefile.am): Update langinfo.h rule.
8542
8543         iconv-h: Avoid #define replacements in C++ mode.
8544         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
8545         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
8546         symbol.
8547         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
8548         whenever iconv is present.
8549         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
8550         (Makefile.am): Update iconv.h rule.
8551
8552         glob: Avoid #define replacements in C++ mode.
8553         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
8554         (_gl_glob_errfunc_fn): New type.
8555         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
8556         symbol.
8557         * modules/glob (Depends-on): Add c++defs, warn-on-use.
8558         (Makefile.am): Update glob.h rule.
8559
8560         fcntl-h: Avoid #define replacements in C++ mode.
8561         * lib/fcntl.in.h: Include c++defs.h.
8562         (fcntl, open, openat): In C++, define a namespaced alias symbol.
8563         * modules/fcntl-h (Depends-on): Add c++defs.
8564         (Makefile.am): Update fcntl.h rule.
8565
8566         dirent: Avoid #define replacements in C++ mode.
8567         * lib/dirent.in.h: Include c++defs.h.
8568         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
8569         namespaced alias symbol.
8570         (dirfd): Update declaration.
8571         * modules/dirent (Depends-on): Add c++defs.
8572         (Makefile.am): Update dirent.h rule.
8573
8574         ctype: Make it usable in C++ code.
8575         * lib/ctype.in.h: Include c++defs.h.
8576         (isblank): Declare as extern "C".
8577         * modules/ctype (Depends-on): Add c++defs.
8578         (Makefile.am): Update ctype.h rule.
8579
8580         New module 'c++defs'.
8581         * modules/c++defs: New file.
8582         * build-aux/c++defs.h: New file.
8583         Reported by John W. Eaton <jwe@gnu.org>.
8584
8585 2010-03-07  Bruno Haible  <bruno@clisp.org>
8586
8587         logb: Provide missing declaration for Cygwin.
8588         * lib/math.in.h (logb): New declaration.
8589         * m4/logb.m4: New file.
8590         * modules/logb (Files): Add m4/logb.m4.
8591         (Depends-on): Add math.
8592         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
8593         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
8594         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
8595         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
8596         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
8597
8598 2010-03-07  Bruno Haible  <bruno@clisp.org>
8599
8600         Fix test-cond link error.
8601         * tests/test-cond.c: Include <stdio.h>.
8602
8603 2010-03-07  Bruno Haible  <bruno@clisp.org>
8604
8605         Fix test-dirent-safer link error.
8606         * modules/dirent-safer-tests (Makefile.am): Define
8607         test_dirent_safer_LDADD.
8608
8609 2010-03-07  Bruno Haible  <bruno@clisp.org>
8610
8611         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
8612         among default module list.
8613
8614 2010-03-07  Bruno Haible  <bruno@clisp.org>
8615
8616         Fix link error on platforms with GNU libiconv.
8617         * modules/unistr/u8-strcoll-tests (Makefile): Define
8618         test_u8_strcoll_LDADD.
8619         * modules/unistr/u16-strcoll-tests (Makefile): Define
8620         test_u16_strcoll_LDADD.
8621         * modules/unistr/u32-strcoll-tests (Makefile): Define
8622         test_u32_strcoll_LDADD.
8623
8624 2010-03-07  Bruno Haible  <bruno@clisp.org>
8625
8626         Use POSIX declarations for socket functions.
8627         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
8628         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
8629         rpl_sendto): Change declaration to match POSIX.
8630         * lib/connect.c (rpl_connect): Likewise.
8631         * lib/accept.c (rpl_accept): Likewise.
8632         * lib/bind.c (rpl_bind): Likewise.
8633         * lib/getpeername.c (rpl_getpeername): Likewise.
8634         * lib/getsockname.c (rpl_getsockname): Likewise.
8635         * lib/recv.c (rpl_recv): Likewise.
8636         * lib/send.c (rpl_send): Likewise.
8637         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8638         * lib/sendto.c (rpl_sendto): Likewise.
8639
8640 2010-03-06  Bruno Haible  <bruno@clisp.org>
8641
8642         Clarify access, euidaccess, faccessat.
8643         * doc/posix-functions/faccessat.texi: Mention security problem under
8644         "Other problems", not "Portability problems".
8645         * doc/posix-functions/access.texi: Likewise. Mention a related security
8646         problem.
8647         * doc/glibc-functions/euidaccess.texi: Mention security problems.
8648         * lib/euidaccess.c: Add comments about platforms.
8649         * lib/unistd.in.h (access, euidaccess): Add warnings.
8650
8651 2010-03-07  Bruno Haible  <bruno@clisp.org>
8652
8653         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
8654         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
8655         (POSIX_SPAWN_SETSCHEDULER): Likewise.
8656         (POSIX_SPAWN_USEVFORK): Define in a way that works when
8657         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8658         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
8659         declare when POSIX_SPAWN_SETSCHEDULER is zero.
8660         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
8661         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
8662         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
8663         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
8664         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
8665         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
8666         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
8667         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
8668         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
8669         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
8670         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
8671         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
8672         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
8673         Likewise.
8674         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
8675         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
8676         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
8677         Likewise.
8678         * tests/test-spawn.c (main): Make it work when
8679         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8680
8681 2010-03-07  Bruno Haible  <bruno@clisp.org>
8682
8683         Fix incorrect Makefile.am generation in German locale.
8684         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8685         Execute sed command with character range in C locale.
8686
8687 2010-03-06  Bruno Haible  <bruno@clisp.org>
8688
8689         Tests for module 'iconv-h'.
8690         * modules/iconv-h-tests: New file.
8691         * tests/test-iconv-h.c: New file.
8692
8693         New module 'iconv-h'.
8694         * modules/iconv-h: New file.
8695         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
8696         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
8697         (configure.ac): Remove gl_ICONV_H.
8698         (Makefile.am): Remove rule for iconv.h.
8699
8700 2010-03-06  Bruno Haible  <bruno@clisp.org>
8701
8702         More consistent naming of *.m4 files.
8703         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
8704         * modules/wctype (Files): Update.
8705
8706         More consistent naming of *.m4 files.
8707         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
8708         * modules/wchar (Files): Update.
8709
8710 2010-03-06  Jim Meyering  <meyering@redhat.com>
8711
8712         euidaccess: relax license to LGPLv2+
8713         * modules/euidaccess (License): Relax to LGPLv2+.
8714
8715 2010-03-06  Bruno Haible  <bruno@clisp.org>
8716
8717         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
8718         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
8719         (Makefile.am): Augment lib_SOURCES instead.
8720
8721 2010-03-04  Jim Meyering  <meyering@redhat.com>
8722
8723         utime: remove obsolete module
8724         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
8725         unnecessary for years, and has been marked as obsolete for 10 months.
8726         * modules/utime: Remove file.
8727         * lib/utime.c: Remove file.
8728         * m4/utime.m4: Remove file.
8729         * m4/utimes-null.m4: Remove file.
8730         * doc/posix-functions/utime.texi (utime): Remove reference to
8731         the module.  Move the sole "fixed by gnulib" item into the
8732         "problems not fixed by Gnulib" list.
8733         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
8734
8735 2010-03-05  Simon Josefsson  <simon@josefsson.org>
8736
8737         * modules/exit (License): Relax license to LGPLv2+.
8738         (Status): Mark as obsolete.
8739         * NEWS: Mention deprecated 'exit' module.
8740         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
8741         of now obsolete 'exit'.
8742
8743 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8744
8745         fts-lgpl: remove unused module
8746         * modules/fts-lgpl: Remove.
8747         * MODULES.html.sh (func_all_modules): Adjust.
8748         * check-module (find_included_lib_files): Adjust.
8749         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
8750
8751 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
8752
8753         copy-acl: enhance Solaris ACL error handling
8754         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
8755         * lib/set-mode-acl.c (qset_acl): Likewise.
8756
8757 2010-03-02  Bruno Haible  <bruno@clisp.org>
8758
8759         spawn: Don't override the system defined values on FreeBSD 8.
8760         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
8761         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
8762         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
8763         if HAVE_POSIX_SPAWN is 1.
8764         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
8765
8766 2010-03-01  Bruno Haible  <bruno@clisp.org>
8767
8768         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
8769         regarding Automake.
8770
8771 2010-02-25  Bruno Haible  <bruno@clisp.org>
8772
8773         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
8774         * gnulib-tool: Define 'echo' as a function only before the ksh alias
8775         setting, not afterwards.
8776         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8777
8778 2010-02-24  Eric Blake  <eblake@redhat.com>
8779
8780         bootstrap, git-version-gen: use timestamp
8781         * build-aux/git-version-gen (scriptversion): Force UTC.
8782         * build-aux/bootstrap (scriptversion): New variable.
8783
8784         bootstrap: allow older git
8785         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
8786         older than 1.6.4.  Requested by the libvirt project.
8787
8788 2010-02-23  Eric Blake  <eblake@redhat.com>
8789
8790         warn-on-use: work with old autoconf
8791         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
8792         AS_VAR semantics of autoconf 2.60.
8793         Reported by Bruno Haible.
8794
8795         bootstrap: improve some comments
8796         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
8797         clarification comments.
8798
8799         gettimeofday: provide correct function
8800         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
8801         when replacement is declared, otherwise provide gettimeofday.
8802         Reported by Michael Goffioul.
8803
8804 2010-02-23  Jim Meyering  <meyering@redhat.com>
8805
8806         lib-ignore: relax license to "unlimited", not LGPLv2+
8807         * modules/lib-ignore (License): Relax to "unlimited".
8808
8809 2010-02-23  Jim Meyering  <meyering@redhat.com>
8810
8811         lib-ignore: relax license to LGPLv2+
8812         * modules/lib-ignore (License): Relax to LGPLv2+.
8813
8814 2010-02-22  Eric Blake  <eblake@redhat.com>
8815
8816         lseek: avoid bash 3.2 broken pipe bug
8817         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
8818         warning from bash 3.2.
8819         Reported by Ben Pfaff, with analysis from Bruno Haible.
8820
8821         bootstrap: support non-FSF copyright holder
8822         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
8823         bootstrap.conf override of COPYRIGHT_HOLDER.
8824         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
8825
8826         bootstrap: interoperate with gettext 0.14.1
8827         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
8828
8829         bootstrap: allow for alternate submodule location
8830         * build-aux/bootstrap (gnulib_path): New variable; use instead of
8831         hardcoding submodule location.
8832         (gnulib_mk): Allow direct use of Makefile.am.
8833
8834         bootstrap: use GNULIB_SRCDIR to reduce disk usage
8835         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
8836         rather than reconfiguring where the submodule points.
8837
8838         gettimeofday: restore support for platforms that lack function
8839         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
8840         replacement if function is missing.
8841         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
8842         * modules/sys_time (Makefile.am): Substitute it.
8843         * lib/sys_time.in.h (gettimeofday): Check it.
8844         Reported by Michael Goffioul.
8845
8846 2010-02-21  Bruno Haible  <bruno@clisp.org>
8847
8848         * lib/stdio.in.h (obstack_printf): Fix typo.
8849
8850 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
8851
8852         vc-list-files: use bzr ls's -R option
8853         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
8854         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
8855
8856 2010-02-21  Jim Meyering  <meyering@redhat.com>
8857
8858         init.sh: fix EXEEXT shims to work also for names like test-prog
8859         * tests/init.sh: Re-exec a better shell, when needed.
8860         If the current shell lacks support for posix $(...), an init.sh-using
8861         test will now try to find a shell that supports that.  If EXEEXT is
8862         nonempty, we also require support for hyphen-in-alias-name and shell
8863         substitutions like ${var#glob}.  Failure to find such a shell results
8864         in a skipped test.
8865
8866 2010-02-21  Bruno Haible  <bruno@clisp.org>
8867
8868         Really work around around "broken pipe" error message from bash 3.2.
8869         * gnulib-tool (func_reset_sigpipe): Remove function.
8870         (echo): In bash 3.2, define to a function that uses printf.
8871         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
8872
8873 2010-02-20  Bruno Haible  <bruno@clisp.org>
8874
8875         Restore support for automake 1.9.6 with autoconf 2.61.
8876         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
8877         Reported by James Youngman <jay@gnu.org>.
8878
8879 2010-02-20  Bruno Haible  <bruno@clisp.org>
8880
8881         Improve *printf warning condition.
8882         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
8883         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
8884         and the function is overridden due to SIGPIPE emulation.
8885
8886 2010-02-20  Bruno Haible  <bruno@clisp.org>
8887
8888         * lib/stdio.in.h: Tweak comments.
8889
8890 2010-02-19  Bruno Haible  <bruno@clisp.org>
8891
8892         Make it easier to find modules. New gnulib-tool option '--find'.
8893         * gnulib-tool: New option --find.
8894         (func_usage): Document it.
8895         (func_sanitize_modulelist): New function, extracted from
8896         func_all_modules.
8897         (func_all_modules): Invoke it.
8898         * doc/gnulib-tool.texi (Which modules?): New node.
8899
8900 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
8901
8902         * lib/sys_select.in.h: Provide select replacement even if
8903         sys/select.h exists on a system, for Interix.
8904
8905 2010-02-18  Jim Meyering  <meyering@redhat.com>
8906
8907         init.sh: don't use $(...) just yet
8908         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
8909         to accommodate e.g., Solaris' /bin/sh.
8910
8911 2010-02-17  Bruno Haible  <bruno@clisp.org>
8912
8913         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
8914         Reported by Ludovic Courtès <ludo@gnu.org>.
8915
8916 2010-02-16  Simon Josefsson  <simon@josefsson.org>
8917
8918         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
8919         linking with -lintl.
8920
8921 2010-02-17  Simon Josefsson  <simon@josefsson.org>
8922
8923         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
8924         if not provided by the system's netdb.h.  Reported by
8925         ludo@gnu.org (Ludovic Courtès).
8926
8927 2010-02-15  Jim Meyering  <meyering@redhat.com>
8928
8929         init.sh: improve portability and efficiency
8930         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
8931         "dummy" in a for loop.
8932         Use '!', not '^' to select the complement of a character set used
8933         in a "case" statement.
8934         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
8935         Suggestions from Eric Blake.
8936
8937         init.sh: automatically accommodate programs with the .exe suffix
8938         Automatically arrange for an invocation of "prog" to execute the
8939         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
8940         may use the simpler "prog", yet still work when built on a system
8941         that requires specifying the added suffix.
8942         Do this by constructing a function named "prog" that invokes
8943         "prog.exe" for each .exe file in selected directories.
8944         * tests/init.sh (find_exe_basenames_): New function.
8945         (create_exe_shim_functions_): New function.
8946         (path_prepend_): Use it.
8947
8948         maint.mk: mark syntax-check sc_*.m rules as .PHONY
8949         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
8950         "make -t syntax-check" doesn't create a ton of sc_*.m files.
8951
8952 2010-02-14  Jim Meyering  <meyering@redhat.com>
8953
8954         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
8955         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
8956         (sc_prohibit_hash_pjw_without_use): New rule.
8957
8958         maint.mk: allow the default upload destination dir to be overridden
8959         * top/maint.mk (upload_dest_dir_): Define with a default that
8960         preserves the status quo.
8961         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
8962         Reported by Peter Simons.
8963
8964         maint.mk: prohibit inclusion of "hash.h" without_use
8965         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
8966
8967 2010-02-10  Jim Meyering  <meyering@redhat.com>
8968
8969         maint.mk: prohibit inclusion of "ignore-value.h" without_use
8970         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
8971
8972 2010-02-09  Eric Blake  <ebb9@byu.net>
8973         and Bruno Haible  <bruno@clisp.org>
8974
8975         obstack-printf-posix: ensure declaration
8976         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
8977         extracted from gl_FUNC_OBSTACK_PRINTF.
8978         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
8979         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8980         Likewise.
8981         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
8982         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
8983         0.
8984
8985 2010-02-08  Bruno Haible  <bruno@clisp.org>
8986
8987         gnulib-tool: Fix typo in 2010-02-07 commit.
8988         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
8989         Reported by Eric Blake.
8990
8991 2010-02-07  Bruno Haible  <bruno@clisp.org>
8992
8993         gnulib-tool: Fix up caching patches.
8994         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
8995         option --no-cache. Use associative arrays when supported by the shell.
8996         (sed_comments): New variable.
8997         (modcache): Renamed from do_cache.
8998         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
8999         abbreviate unnecessarily.
9000         (have_associative): New variable.
9001         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
9002         way also for ksh and zsh.
9003         (func_init_sed_convert_to_cache_statements): New function, extracted
9004         from func_cache_lookup_module. Add support for associative arrays.
9005         Don't set the c_MODULE_cached variable here. Ignore all lines before
9006         the first field header. Remove only the final newline, not all trailing
9007         newlines. Support empty fields correctly. Limit the use of 'eval' to
9008         assignments.
9009         (func_get_description, func_get_status, func_get_notice,
9010         func_get_applicability, func_get_filelist, func_get_dependencies,
9011         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
9012         func_get_automake_snippet, func_get_include_directive,
9013         func_get_link_directive, func_get_license, func_get_maintainer):
9014         Update documentation. List the unoptimized code first. Add support for
9015         associative arrays. Limit the use of 'eval' to assignments.
9016         (func_get_applicability): Undo stylistic pessimisations.
9017         (func_get_automake_snippet, func_get_include_directive): Reduce code
9018         duplication.
9019         (func_modules_transitive_closure, func_modules_add_dummy,
9020         func_modules_notice, func_modules_to_filelist, func_add_file,
9021         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
9022         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
9023         func_create_testdir, func_create_megatestdir): Update documentation.
9024
9025 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9026
9027         * gnulib-tool (func_cache_lookup_module): Store the module name
9028         belonging to the cache variable; error out if two different
9029         module names map to the same cache variable name.
9030
9031 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9032
9033         gnulib-tool: Make caching optional.
9034         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
9035         Update matching short versions of --no-changelog.
9036         (func_usage): Update.
9037         (sed_extract_cache_prog): Renamed from ...
9038         (sed_extract_prog): ... this; revert to old extraction script.
9039         (func_get_description, func_get_status)
9040         (func_get_notice, func_get_applicability, func_get_filelist)
9041         (func_get_dependencies, func_get_autoconf_early_snippet)
9042         (func_get_autoconf_snippet, func_get_automake_snippet)
9043         (func_get_include_directive, func_get_link_directive)
9044         (func_get_license, func_get_maintainer): If $do_cache is false,
9045         use old, non-caching extraction scripts.
9046         Suggestion by Bruno Haible.
9047
9048 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9049
9050         gnulib-tool: cache module metainformation.
9051         * gnulib-tool (sed_extract_prog): Match newline before each
9052         header, and rewrite header to a shell variable suffix.
9053         (func_cache_var, func_cache_lookup_module): New functions,
9054         to turn a module name into a cache variable prefix, and to
9055         look up and cache module metainformation.
9056         (func_get_description, func_get_status)
9057         (func_get_notice, func_get_applicability, func_get_filelist)
9058         (func_get_dependencies, func_get_autoconf_early_snippet)
9059         (func_get_autoconf_snippet, func_get_automake_snippet)
9060         (func_get_include_directive, func_get_link_directive)
9061         (func_get_license, func_get_maintainer): Use
9062         func_cache_lookup_module.
9063
9064 2010-02-07  Bruno Haible  <bruno@clisp.org>
9065
9066         fnctl: Fix missing dependency.
9067         * modules/fcntl (Depends-on): Add getdtablesize.
9068         Reported by John W. Eaton <jwe@gnu.org>.
9069
9070 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9071
9072         Argp: fix recognition of short alias options.
9073
9074         * lib/argp-parse.c (convert_options): Fix improper use of
9075         `|' between character values.
9076         * tests/test-argp.c (group1_option): New alias option
9077         --read (-r).
9078         (group1_parser): Special handling for 'r'.
9079         (test15): New test case.
9080         (test_fun): Add test15.
9081         * tests/test-argp-2.sh: Update expected --help and --usage
9082         outputs.
9083
9084 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9085
9086         * tests/test-argp.c: Fix indentation.
9087
9088 2010-02-04  Eric Blake  <ebb9@byu.net>
9089
9090         gettimeofday: expose type of second argument
9091         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
9092         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
9093         * tests/test-gettimeofday.c: Use it to silence warning.
9094         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
9095         the issue.
9096
9097 2010-02-03  Jim Meyering  <meyering@redhat.com>
9098
9099         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
9100         * lib/regcomp.c (TYPE_SIGNED): Define.
9101         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
9102
9103         regcomp.c: avoid a new -Wshadow warning
9104         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
9105
9106 2010-02-01  Jim Meyering  <meyering@redhat.com>
9107
9108         removing useless parentheses in cpp #define directives
9109         For motivation, see commit c0221df4, "define STREQ(a,b)
9110         consistently, removing useless parentheses"
9111         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
9112         * lib/mountlist.c (MNT_IGNORE): Likewise.
9113         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
9114
9115 2010-02-01  Eric Blake  <ebb9@byu.net>
9116
9117         sys_time: use link-warning
9118         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
9119         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
9120         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
9121         * modules/sys_time (Depends-on): Add warn-on-use.
9122         (Makefile.am): Always build replacement.
9123         (configure.ac): Update substitutions.
9124         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
9125         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
9126         bother with SYS_TIME_H.
9127         * modules/gettimeofday (configure.ac): Declare indicator.
9128         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
9129         in use.
9130
9131         closein-tests: silence compiler warning
9132         * tests/test-closein.c (main): Ignore fread result.
9133         * modules/closein-tests (Depends-on): Add ignore-value.
9134
9135         tests: silence warning about system return
9136         * tests/test-areadlink-with-size.c (main): Ignore system result.
9137         * tests/test-areadlink.c (main): Likewise.
9138         * tests/test-areadlinkat-with-size.c (main): Likewise.
9139         * tests/test-areadlinkat.c (main): Likewise.
9140         * tests/test-canonicalize-lgpl.c (main): Likewise.
9141         * tests/test-canonicalize.c (main): Likewise.
9142         * tests/test-chown.c (main): Likewise.
9143         * tests/test-fchownat.c (main): Likewise.
9144         * tests/test-fdutimensat.c (main): Likewise.
9145         * tests/test-fstatat.c (main): Likewise.
9146         * tests/test-futimens.c (main): Likewise.
9147         * tests/test-lchown.c (main): Likewise.
9148         * tests/test-link.c (main): Likewise.
9149         * tests/test-linkat.c (main): Likewise.
9150         * tests/test-lstat.c (main): Likewise.
9151         * tests/test-mkdir.c (main): Likewise.
9152         * tests/test-mkdirat.c (main): Likewise.
9153         * tests/test-mkfifo.c (main): Likewise.
9154         * tests/test-mkfifoat.c (main): Likewise.
9155         * tests/test-mknod.c (main): Likewise.
9156         * tests/test-readlink.c (main): Likewise.
9157         * tests/test-remove.c (main): Likewise.
9158         * tests/test-rename.c (main): Likewise.
9159         * tests/test-renameat.c (main): Likewise.
9160         * tests/test-rmdir.c (main): Likewise.
9161         * tests/test-symlink.c (main): Likewise.
9162         * tests/test-symlinkat.c (main): Likewise.
9163         * tests/test-unlink.c (main): Likewise.
9164         * tests/test-unlinkat.c (main): Likewise.
9165         * tests/test-utimens.c (main): Likewise.
9166         * tests/test-utimensat.c (main): Likewise.
9167         * modules/areadlink-tests (Depends-on): Add ignore-value.
9168         * modules/areadlink-with-size-tests (Depends-on): Likewise.
9169         * modules/areadlinkat-tests (Depends-on): Likewise.
9170         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
9171         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9172         * modules/canonicalize-tests (Depends-on): Likewise.
9173         * modules/chown-tests (Depends-on): Likewise.
9174         * modules/fdutimensat-tests (Depends-on): Likewise.
9175         * modules/futimens-tests (Depends-on): Likewise.
9176         * modules/lchown-tests (Depends-on): Likewise.
9177         * modules/link-tests (Depends-on): Likewise.
9178         * modules/linkat-tests (Depends-on): Likewise.
9179         * modules/lstat-tests (Depends-on): Likewise.
9180         * modules/mkdir-tests (Depends-on): Likewise.
9181         * modules/mkfifo-tests (Depends-on): Likewise.
9182         * modules/mkfifoat-tests (Depends-on): Likewise.
9183         * modules/mknod-tests (Depends-on): Likewise.
9184         * modules/openat-tests (Depends-on): Likewise.
9185         * modules/readlink-tests (Depends-on): Likewise.
9186         * modules/remove-tests (Depends-on): Likewise.
9187         * modules/rename-tests (Depends-on): Likewise.
9188         * modules/renameat-tests (Depends-on): Likewise.
9189         * modules/rmdir-tests (Depends-on): Likewise.
9190         * modules/symlink-tests (Depends-on): Likewise.
9191         * modules/symlinkat-tests (Depends-on): Likewise.
9192         * modules/unlink-tests (Depends-on): Likewise.
9193         * modules/utimens-tests (Depends-on): Likewise.
9194         * modules/utimensat-tests (Depends-on): Likewise.
9195
9196 2010-01-31  Bruno Haible  <bruno@clisp.org>
9197
9198         Perform the same test for many <math.h> functions.
9199         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
9200         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
9201         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
9202         of gl_MATHFUNC.
9203         * modules/acos (configure.ac): Likewise.
9204         * modules/asin (configure.ac): Likewise.
9205         * modules/atan (configure.ac): Likewise.
9206         * modules/atan2 (configure.ac): Likewise.
9207         * modules/cbrt (configure.ac): Likewise.
9208         * modules/copysign (configure.ac): Likewise.
9209         * modules/cos (configure.ac): Likewise.
9210         * modules/cosh (configure.ac): Likewise.
9211         * modules/erf (configure.ac): Likewise.
9212         * modules/erfc (configure.ac): Likewise.
9213         * modules/exp (configure.ac): Likewise.
9214         * modules/fmod (configure.ac): Likewise.
9215         * modules/hypot (configure.ac): Likewise.
9216         * modules/j0 (configure.ac): Likewise.
9217         * modules/j1 (configure.ac): Likewise.
9218         * modules/jn (configure.ac): Likewise.
9219         * modules/lgamma (configure.ac): Likewise.
9220         * modules/log (configure.ac): Likewise.
9221         * modules/log10 (configure.ac): Likewise.
9222         * modules/log1p (configure.ac): Likewise.
9223         * modules/pow (configure.ac): Likewise.
9224         * modules/remainder (configure.ac): Likewise.
9225         * modules/sin (configure.ac): Likewise.
9226         * modules/sinh (configure.ac): Likewise.
9227         * modules/tan (configure.ac): Likewise.
9228         * modules/tanh (configure.ac): Likewise.
9229         * modules/y0 (configure.ac): Likewise.
9230         * modules/y1 (configure.ac): Likewise.
9231         * modules/yn (configure.ac): Likewise.
9232         Suggested by Paolo Bonzini.
9233
9234 2010-01-31  Bruno Haible  <bruno@clisp.org>
9235
9236         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
9237
9238 2010-01-31  Bruno Haible  <bruno@clisp.org>
9239
9240         Work around getdelim() bug on FreeBSD 8.0.
9241         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
9242         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
9243         not work.
9244         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
9245         is 1.
9246         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
9247         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
9248         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
9249         a non-zero size.
9250         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
9251
9252 2010-01-31  Bruno Haible  <bruno@clisp.org>
9253
9254         Work around getline() bug on FreeBSD 8.0.
9255         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
9256         and a non-zero size.
9257         * tests/test-getline.c (main): Likewise.
9258         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
9259         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
9260
9261 2010-01-28  Eric Blake  <ebb9@byu.net>
9262
9263         regex: fix build failure
9264         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
9265         platforms.
9266
9267 2010-01-28  Jim Meyering  <meyering@redhat.com>
9268
9269         regex: do not ignore memory allocation failure
9270         * lib/regex_internal.c (create_cd_newstate): Detect
9271         re_node_set_init_copy failure.   Extracted from glibc commit
9272         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9273
9274         regex: sync more white-space changes from libc
9275         * lib/regex_internal.c: White-space only changes.
9276         * lib/regexec.c: Likewise.
9277
9278         regex: add many uses of __attribute_warn_unused_result__
9279         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
9280         * lib/regexec.c: Likewise.
9281         Extracted from a messy glibc commit.
9282
9283         regcomp.c: spelling and merge-artifact from glibc
9284         * lib/regcomp.c: Merge remainder of glibc's
9285         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9286
9287         regcomp.c: sync white-space changes from glibc
9288         * lib/regcomp.c: Merge to accommodate white space
9289         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9290
9291         regcomp.c: do not ignore internal return values
9292         * lib/regcomp.c: Do not ignore internal return values.
9293         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
9294         but without its white-space changes and spelling fixes.
9295
9296         regex_internal.h: define __attribute_warn_unused_result__
9297         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
9298
9299         maint: add a syntax-check rule to check for vulnerable Makefile.in
9300         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
9301
9302 2010-01-27  Jim Meyering  <meyering@redhat.com>
9303
9304         ncftpput-ftp: clean up spaces
9305         * build-aux/ncftpput-ftp: Make Copyright line consistent.
9306         Remove trailing blanks.
9307
9308 2010-01-27  Simon Josefsson  <simon@josefsson.org>
9309
9310         * build-aux/git-version-gen: Fix copyright statement.
9311         * build-aux/gnupload: Likewise.
9312         * tests/test-arcfour.c: Likewise.
9313         * tests/test-arctwo.c: Likewise.
9314         * tests/test-count-one-bits.c: Likewise.
9315         * tests/test-crc.c: Likewise.
9316         * tests/test-des.c: Likewise.
9317         * tests/test-gc-arcfour.c: Likewise.
9318         * tests/test-gc-arctwo.c: Likewise.
9319         * tests/test-gc-des.c: Likewise.
9320         * tests/test-gc-hmac-md5.c: Likewise.
9321         * tests/test-gc-hmac-sha1.c: Likewise.
9322         * tests/test-gc-md2.c: Likewise.
9323         * tests/test-gc-md4.c: Likewise.
9324         * tests/test-gc-md5.c: Likewise.
9325         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9326         * tests/test-gc-rijndael.c: Likewise.
9327         * tests/test-gc-sha1.c: Likewise.
9328         * tests/test-gc.c: Likewise.
9329         * tests/test-gethostname.c: Likewise.
9330         * tests/test-gettimeofday.c: Likewise.
9331         * tests/test-hash.c: Likewise.
9332         * tests/test-hmac-md5.c: Likewise.
9333         * tests/test-hmac-sha1.c: Likewise.
9334         * tests/test-md2.c: Likewise.
9335         * tests/test-md4.c: Likewise.
9336         * tests/test-md5.c: Likewise.
9337         * tests/test-memchr.c: Likewise.
9338         * tests/test-memchr2.c: Likewise.
9339         * tests/test-memcmp.c: Likewise.
9340         * tests/test-memmem.c: Likewise.
9341         * tests/test-memrchr.c: Likewise.
9342         * tests/test-rawmemchr.c: Likewise.
9343         * tests/test-read-file.c: Likewise.
9344         * tests/test-rijndael.c: Likewise.
9345         * tests/test-sockets.c: Likewise.
9346         * tests/test-strchrnul.c: Likewise.
9347         * tests/test-strstr.c: Likewise.
9348         * tests/test-strtod.c: Likewise.
9349         * build-aux/ncftpput-ftp: Likewise.
9350
9351 2010-01-26  Eric Blake  <ebb9@byu.net>
9352
9353         ignore-value: update recommended header name
9354         * modules/ignore-value (Include): Only use <> for headers that
9355         exist in glibc.
9356
9357 2010-01-26  Jim Meyering  <meyering@redhat.com>
9358
9359         test-userspec.c: avoid compiler warnings
9360         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
9361         and "initialization discards qualifiers..." warnings.
9362         Put the first "uid" in its own scope, and make char* members "const".
9363
9364 2010-01-25  Bruno Haible  <bruno@clisp.org>
9365
9366         gnulib-tool: Make warning diagnostics consistent.
9367         * gnulib-tool (func_warning): New function.
9368         Use it everywhere where gnulib-tool produces output to stderr and it is
9369         not a fatal error.
9370
9371 2010-01-25  Bruno Haible  <bruno@clisp.org>
9372
9373         Fix test dependencies.
9374         * modules/xstrtol-tests (Depends-on): Add inttypes.
9375         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
9376
9377 2010-01-25 Pádraig Brady <P@draigBrady.com>
9378
9379         syntax-check: detect incorrect boolean macro values in config.h
9380         * modules/maintainer-makefile (configure.ac): Parameterize the location
9381         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
9382         The logic is from Eric Blake and the location indicated by Jim Meyering.
9383         Note the more natural CONFIG_HEADER name is prohibited by automake
9384         for backwards compatibility reasons.
9385         * top/maint.mk (sc_Wundef_boolean): New rule.
9386
9387 2010-01-25  Jim Meyering  <meyering@redhat.com>
9388
9389         bootstrap: detect MacOS 10.6's shasum, too
9390         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
9391         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
9392
9393 2010-01-23  Jim Meyering  <meyering@redhat.com>
9394
9395         xstrtoll: new module
9396         * modules/xstrtoll: New file.
9397         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
9398         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
9399         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
9400         ./configure fails if you use this module and lack "long long".
9401         * modules/xstrtoll-tests: New module.
9402         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
9403         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
9404         new init.sh-based test framework.
9405
9406 2010-01-24  Bruno Haible  <bruno@clisp.org>
9407
9408         Tests for module 'yn'.
9409         * modules/yn-tests: New file.
9410         * tests/test-yn.c: New file.
9411
9412         Tests for module 'y1'.
9413         * modules/y1-tests: New file.
9414         * tests/test-y1.c: New file.
9415
9416         Tests for module 'y0'.
9417         * modules/y0-tests: New file.
9418         * tests/test-y0.c: New file.
9419
9420         Tests for module 'tanh'.
9421         * modules/tanh-tests: New file.
9422         * tests/test-tanh.c: New file.
9423
9424         Tests for module 'tan'.
9425         * modules/tan-tests: New file.
9426         * tests/test-tan.c: New file.
9427
9428         Tests for module 'sqrt'.
9429         * modules/sqrt-tests: New file.
9430         * tests/test-sqrt.c: New file.
9431
9432         Tests for module 'sinh'.
9433         * modules/sinh-tests: New file.
9434         * tests/test-sinh.c: New file.
9435
9436         Tests for module 'sin'.
9437         * modules/sin-tests: New file.
9438         * tests/test-sin.c: New file.
9439
9440         Tests for module 'rint'.
9441         * modules/rint-tests: New file.
9442         * tests/test-rint.c: New file.
9443
9444         Tests for module 'remainder'.
9445         * modules/remainder-tests: New file.
9446         * tests/test-remainder.c: New file.
9447
9448         Tests for module 'pow'.
9449         * modules/pow-tests: New file.
9450         * tests/test-pow.c: New file.
9451
9452         Tests for module 'nextafter'.
9453         * modules/nextafter-tests: New file.
9454         * tests/test-nextafter.c: New file.
9455
9456         Tests for module 'modf'.
9457         * modules/modf-tests: New file.
9458         * tests/test-modf.c: New file.
9459
9460         Tests for module 'logb'.
9461         * modules/logb-tests: New file.
9462         * tests/test-logb.c: New file.
9463
9464         Tests for module 'log1p'.
9465         * modules/log1p-tests: New file.
9466         * tests/test-log1p.c: New file.
9467
9468         Tests for module 'log10'.
9469         * modules/log10-tests: New file.
9470         * tests/test-log10.c: New file.
9471
9472         Tests for module 'log'.
9473         * modules/log-tests: New file.
9474         * tests/test-log.c: New file.
9475
9476         Tests for module 'lgamma'.
9477         * modules/lgamma-tests: New file.
9478         * tests/test-lgamma.c: New file.
9479
9480         Tests for module 'ldexp'.
9481         * modules/ldexp-tests: New file.
9482         * tests/test-ldexp.c: New file.
9483
9484         Tests for module 'jn'.
9485         * modules/jn-tests: New file.
9486         * tests/test-jn.c: New file.
9487
9488         Tests for module 'j1'.
9489         * modules/j1-tests: New file.
9490         * tests/test-j1.c: New file.
9491
9492         Tests for module 'j0'.
9493         * modules/j0-tests: New file.
9494         * tests/test-j0.c: New file.
9495
9496         Tests for module 'hypot'.
9497         * modules/hypot-tests: New file.
9498         * tests/test-hypot.c: New file.
9499
9500         Tests for module 'fmod'.
9501         * modules/fmod-tests: New file.
9502         * tests/test-fmod.c: New file.
9503
9504         Tests for module 'fabs'.
9505         * modules/fabs-tests: New file.
9506         * tests/test-fabs.c: New file.
9507
9508         Tests for module 'exp'.
9509         * modules/exp-tests: New file.
9510         * tests/test-exp.c: New file.
9511
9512         Tests for module 'erfc'.
9513         * modules/erfc-tests: New file.
9514         * tests/test-erfc.c: New file.
9515
9516         Tests for module 'erf'.
9517         * modules/erf-tests: New file.
9518         * tests/test-erf.c: New file.
9519
9520         Tests for module 'cosh'.
9521         * modules/cosh-tests: New file.
9522         * tests/test-cosh.c: New file.
9523
9524         Tests for module 'cos'.
9525         * modules/cos-tests: New file.
9526         * tests/test-cos.c: New file.
9527
9528         Tests for module 'copysign'.
9529         * modules/copysign-tests: New file.
9530         * tests/test-copysign.c: New file.
9531
9532         Tests for module 'cbrt'.
9533         * modules/cbrt-tests: New file.
9534         * tests/test-cbrt.c: New file.
9535
9536         Tests for module 'atan2'.
9537         * modules/atan2-tests: New file.
9538         * tests/test-atan2.c: New file.
9539
9540         Tests for module 'atan'.
9541         * modules/atan-tests: New file.
9542         * tests/test-atan.c: New file.
9543
9544         Tests for module 'asin'.
9545         * modules/asin-tests: New file.
9546         * tests/test-asin.c: New file.
9547
9548         Tests for module 'acos'.
9549         * modules/acos-tests: New file.
9550         * tests/test-acos.c: New file.
9551
9552 2010-01-24  Bruno Haible  <bruno@clisp.org>
9553
9554         Fix tests for common <math.h> functions.
9555         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
9556         code snippet that references the function pointer, rather than merely
9557         calling the function. Substitute the FUNC_LIBM variable.
9558         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
9559         * modules/acos (configure.ac): Likewise.
9560         * modules/asin (configure.ac): Likewise.
9561         * modules/atan (configure.ac): Likewise.
9562         * modules/atan2 (configure.ac): Likewise.
9563         * modules/cbrt (configure.ac): Likewise.
9564         * modules/copysign (configure.ac): Likewise.
9565         * modules/cos (configure.ac): Likewise.
9566         * modules/cosh (configure.ac): Likewise.
9567         * modules/erf (configure.ac): Likewise.
9568         * modules/erfc (configure.ac): Likewise.
9569         * modules/exp (configure.ac): Likewise.
9570         * modules/fabs (configure.ac): Likewise.
9571         * modules/fmod (configure.ac): Likewise.
9572         * modules/hypot (configure.ac): Likewise.
9573         * modules/j0 (configure.ac): Likewise.
9574         * modules/j1 (configure.ac): Likewise.
9575         * modules/jn (configure.ac): Likewise.
9576         * modules/ldexp (configure.ac): Likewise.
9577         * modules/lgamma (configure.ac): Likewise.
9578         * modules/log (configure.ac): Likewise.
9579         * modules/log10 (configure.ac): Likewise.
9580         * modules/log1p (configure.ac): Likewise.
9581         * modules/logb (configure.ac): Likewise.
9582         * modules/modf (configure.ac): Likewise.
9583         * modules/nextafter (configure.ac): Likewise.
9584         * modules/pow (configure.ac): Likewise.
9585         * modules/remainder (configure.ac): Likewise.
9586         * modules/rint (configure.ac): Likewise.
9587         * modules/sin (configure.ac): Likewise.
9588         * modules/sinh (configure.ac): Likewise.
9589         * modules/tan (configure.ac): Likewise.
9590         * modules/tanh (configure.ac): Likewise.
9591         * modules/y0 (configure.ac): Likewise.
9592         * modules/y1 (configure.ac): Likewise.
9593         * modules/yn (configure.ac): Likewise.
9594
9595 2010-01-24  Bruno Haible  <bruno@clisp.org>
9596
9597         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
9598         * tests/test-acosl.c (x): New variable.
9599         (main): Store argument in x and fetch it from x.
9600         * tests/test-asinl.c (x): New variable.
9601         (main): Store argument in x and fetch it from x.
9602         * tests/test-atanl.c (x): New variable.
9603         (main): Store argument in x and fetch it from x.
9604         * tests/test-cosl.c (x): New variable.
9605         (main): Store argument in x and fetch it from x.
9606         * tests/test-expl.c (x): New variable.
9607         (main): Store argument in x and fetch it from x.
9608         * tests/test-logl.c (x): New variable.
9609         (main): Store argument in x and fetch it from x.
9610         * tests/test-sinl.c (x): New variable.
9611         (main): Store argument in x and fetch it from x.
9612         * tests/test-sqrtl.c (x): New variable.
9613         (main): Store argument in x and fetch it from x.
9614         * tests/test-tanl.c (x): New variable.
9615         (main): Store argument in x and fetch it from x.
9616
9617 2010-01-24  Bruno Haible  <bruno@clisp.org>
9618
9619         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
9620         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
9621         assignments to the initial TESTS_ENVIRONMENT.
9622         * doc/gnulib.texi (Unit test modules): Document it.
9623         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
9624         TESTS_ENVIRONMENT.
9625         * modules/btowc-tests (Makefile.am): Likewise.
9626         * modules/c-stack-tests (Makefile.am): Likewise.
9627         * modules/c-strcase-tests (Makefile.am): Likewise.
9628         * modules/copy-file-tests (Makefile.am): Likewise.
9629         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9630         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9631         * modules/mbrtowc-tests (Makefile.am): Likewise.
9632         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9633         * modules/mbscasestr-tests (Makefile.am): Likewise.
9634         * modules/mbschr-tests (Makefile.am): Likewise.
9635         * modules/mbscspn-tests (Makefile.am): Likewise.
9636         * modules/mbsinit-tests (Makefile.am): Likewise.
9637         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9638         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9639         * modules/mbspbrk-tests (Makefile.am): Likewise.
9640         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9641         * modules/mbsrchr-tests (Makefile.am): Likewise.
9642         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9643         * modules/mbsspn-tests (Makefile.am): Likewise.
9644         * modules/mbsstr-tests (Makefile.am): Likewise.
9645         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9646         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9647         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9648         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9649         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9650         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9651         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9652         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9653         * modules/wcrtomb-tests (Makefile.am): Likewise.
9654         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9655         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9656         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
9657         assignments from TESTS_ENVIRONMENT.
9658         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
9659         augmentation.
9660         * modules/argp-version-etc-tests (Makefile.am): Likewise.
9661         * modules/atexit-tests (Makefile.am): Likewise.
9662         * modules/binary-io-tests (Makefile.am): Likewise.
9663         * modules/closein-tests (Makefile.am): Likewise.
9664         * modules/dprintf-posix-tests (Makefile.am): Likewise.
9665         * modules/exclude-tests (Makefile.am): Likewise.
9666         * modules/fflush-tests (Makefile.am): Likewise.
9667         * modules/fpending-tests (Makefile.am): Likewise.
9668         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9669         * modules/freadahead-tests (Makefile.am): Likewise.
9670         * modules/freadptr-tests (Makefile.am): Likewise.
9671         * modules/freadseek-tests (Makefile.am): Likewise.
9672         * modules/fseek-tests (Makefile.am): Likewise.
9673         * modules/fseeko-tests (Makefile.am): Likewise.
9674         * modules/ftell-tests (Makefile.am): Likewise.
9675         * modules/ftello-tests (Makefile.am): Likewise.
9676         * modules/idpriv-drop-tests (Makefile.am): Likewise.
9677         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
9678         * modules/lseek-tests (Makefile.am): Likewise.
9679         * modules/parse-duration-tests (Makefile.am): Likewise.
9680         * modules/perror-tests (Makefile.am): Likewise.
9681         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
9682         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
9683         * modules/pipe-tests (Makefile.am): Likewise.
9684         * modules/pread-tests (Makefile.am): Likewise.
9685         * modules/printf-posix-tests (Makefile.am): Likewise.
9686         * modules/select-tests (Makefile.am): Likewise.
9687         * modules/sigpipe-tests (Makefile.am): Likewise.
9688         * modules/tsearch-tests (Makefile.am): Likewise.
9689         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9690         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9691         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9692         * modules/uniwidth/width-tests (Makefile.am): Likewise.
9693         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
9694         * modules/version-etc-tests (Makefile.am): Likewise.
9695         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9696         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9697         * modules/xalloc-die-tests (Makefile.am): Likewise.
9698         * modules/xprintf-posix-tests (Makefile.am): Likewise.
9699         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9700         * modules/xstrtol-tests (Makefile.am): Likewise.
9701         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9702         * modules/yesno-tests (Makefile.am): Likewise.
9703         Suggested by Jim Meyering.
9704
9705 2010-01-24  Bruno Haible  <bruno@clisp.org>
9706
9707         More documentation.
9708         * doc/gnulib.texi (Writing modules): New chapter.
9709         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
9710         the new chapter.
9711
9712 2010-01-24  Jim Meyering  <meyering@redhat.com>
9713
9714         maint.mk: do not prepend "./" after filtering
9715         * top/maint.mk (_prepend_srcdir_prefix): New variable
9716         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
9717         "./" when $(srcdir) is ".".
9718
9719         define STREQ(a,b) consistently, removing useless parentheses
9720         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
9721         since the only risk is that "a" or "b" contains an unparenthesized
9722         comma, but if either did that, STREQ would have 3 or more arguments.
9723         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
9724         * lib/fts.c (STREQ): Remove unnecessary parentheses.
9725         * lib/hash-triple.c (STREQ): Likewise.
9726         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
9727         * lib/getugroups.c (STREQ): Likewise.
9728
9729 2010-01-23  Jim Meyering  <meyering@redhat.com>
9730
9731         maint.mk: fix syntax-check in a non-srcdir build directory
9732         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
9733         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
9734
9735 2010-01-22  Jim Meyering  <meyering@redhat.com>
9736
9737         userspec: add unit tests
9738         * tests/test-userspec.c: New file.
9739         * modules/userspec-tests: Likewise.
9740
9741 2010-01-21  Jim Meyering  <meyering@redhat.com>
9742
9743         maint.mk: handle source file names containing "." robustly
9744         * top/maint.mk (_dot_escaped_srcdir): Define.
9745         (VC_LIST): Use it in LHS of sed substitution.
9746
9747 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
9748
9749         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
9750         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
9751         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
9752         from a non-srcdir build.
9753
9754 2010-01-20  Eric Blake  <ebb9@byu.net>
9755
9756         warn-on-use: use instead of link-warning
9757         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
9758         * modules/unistd (Depends-on, Makefile.am): Likewise.
9759         * modules/arpa_inet (Depends-on): Replace link-warning with
9760         warn-on-use.
9761         (Makefile.am): Update rules accordingly.
9762         * modules/ctype (Depends-on, Makefile.am): Likewise.
9763         * modules/dirent (Depends-on, Makefile.am): Likewise.
9764         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
9765         * modules/inttypes (Depends-on, Makefile.am): Likewise.
9766         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9767         * modules/locale (Depends-on, Makefile.am): Likewise.
9768         * modules/math (Depends-on, Makefile.am): Likewise.
9769         * modules/search (Depends-on, Makefile.am): Likewise.
9770         * modules/signal (Depends-on, Makefile.am): Likewise.
9771         * modules/spawn (Depends-on, Makefile.am): Likewise.
9772         * modules/stdlib (Depends-on, Makefile.am): Likewise.
9773         * modules/string (Depends-on, Makefile.am): Likewise.
9774         * modules/strings (Depends-on, Makefile.am): Likewise.
9775         * modules/sys_file (Depends-on, Makefile.am): Likewise.
9776         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
9777         * modules/sys_select (Depends-on, Makefile.am): Likewise.
9778         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
9779         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
9780         * modules/sys_times (Depends-on, Makefile.am): Likewise.
9781         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9782         * modules/wchar (Depends-on, Makefile.am): Likewise.
9783         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
9784         should be poisoned.
9785         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
9786         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
9787         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
9788         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9789         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9790         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9791         * m4/math_h.m4 (gl_MATH_H): Likewise.
9792         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9793         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9794         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9795         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9796         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9797         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9798         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9799         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
9800         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9801         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9802         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9803         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9804         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9805         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9806         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9807         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9808         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
9809         GL_LINK_WARNING.
9810         * lib/ctype.in.h: Likewise.
9811         * lib/dirent.in.h: Likewise.
9812         * lib/fcntl.in.h: Likewise.
9813         * lib/inttypes.in.h: Likewise.
9814         * lib/langinfo.in.h: Likewise.
9815         * lib/locale.in.h: Likewise.
9816         * lib/math.in.h: Likewise.
9817         * lib/search.in.h: Likewise.
9818         * lib/signal.in.h: Likewise.
9819         * lib/spawn.in.h: Likewise.
9820         * lib/stdio.in.h: Likewise.
9821         * lib/stdlib.in.h: Likewise.
9822         * lib/string.in.h: Likewise.
9823         * lib/strings.in.h: Likewise.
9824         * lib/sys_file.in.h: Likewise.
9825         * lib/sys_ioctl.in.h: Likewise.
9826         * lib/sys_select.in.h: Likewise.
9827         * lib/sys_socket.in.h: Likewise.
9828         * lib/sys_stat.in.h: Likewise.
9829         * lib/sys_times.in.h: Likewise.
9830         * lib/sys_utsname.in.h: Likewise.
9831         * lib/unistd.in.h: Likewise.
9832         * lib/wchar.in.h: Likewise.
9833
9834 2010-01-20  Bruno Haible  <bruno@clisp.org>
9835
9836         Avoid duplicate -lm.
9837         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
9838         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
9839         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
9840         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
9841         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
9842         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
9843         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
9844         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
9845         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
9846         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
9847         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
9848         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9849         Reported by Paolo Bonzini.
9850
9851 2010-01-19  Bruno Haible  <bruno@clisp.org>
9852
9853         langinfo, nl_langinfo: Relicense under LGPLv2+.
9854         * modules/langinfo (License): Change to LGPLv2+.
9855         * modules/nl_langinfo (License): Likewise.
9856         Patch by David Lutterkort <lutter@redhat.com>.
9857
9858 2010-01-19  Bruno Haible  <bruno@clisp.org>
9859
9860         Avoid compilation error with cc on OSF/1 5.1.
9861         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
9862         statement, not before.
9863         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9864
9865 2010-01-18  Bruno Haible  <bruno@clisp.org>
9866
9867         Avoid a link error due to the __printf__ symbol.
9868         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
9869         and 2.6.x.
9870         (__format__, __printf__): Remove definitions.
9871         * lib/argp-fmtstream.h: Likewise.
9872         * lib/argp.h: Likewise.
9873         * lib/error.h: Likewise.
9874         * lib/vasnprintf.h: Likewise.
9875         * lib/xprintf.h: Likewise.
9876         * lib/xvasprintf.h: Likewise.
9877         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9878
9879 2010-01-18  Bruno Haible  <bruno@clisp.org>
9880
9881         Tests for module 'tanl'.
9882         * modules/tanl-tests: New file.
9883         * tests/test-tanl.c: New file.
9884
9885         Tests for module 'sqrtl'.
9886         * modules/sqrtl-tests: New file.
9887         * tests/test-sqrtl.c: New file.
9888
9889         Tests for module 'sinl'.
9890         * modules/sinl-tests: New file.
9891         * tests/test-sinl.c: New file.
9892
9893         Tests for module 'logl'.
9894         * modules/logl-tests: New file.
9895         * tests/test-logl.c: New file.
9896
9897         Tests for module 'expl'.
9898         * modules/expl-tests: New file.
9899         * tests/test-expl.c: New file.
9900
9901         Tests for module 'cosl'.
9902         * modules/cosl-tests: New file.
9903         * tests/test-cosl.c: New file.
9904
9905         Tests for module 'atanl'.
9906         * modules/atanl-tests: New file.
9907         * tests/test-atanl.c: New file.
9908
9909         Tests for module 'asinl'.
9910         * modules/asinl-tests: New file.
9911         * tests/test-asinl.c: New file.
9912
9913         Tests for module 'acosl'.
9914         * modules/acosl-tests: New file.
9915         * tests/test-acosl.c: New file.
9916
9917         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9918         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
9919         tanl): Use the standard gnulib idiom.
9920         * lib/cosl.c: Don't include trigl.c and sincosl.c.
9921         * lib/sinl.c: Likewise.
9922         * lib/tanl.c: Don't include trigl.c.
9923         (kernel_tanl): Make static.
9924         * lib/sincosl.c: Include trigl.h first.
9925         * lib/trigl.c: Likewise.
9926         * m4/acosl.m4: New file.
9927         * m4/asinl.m4: New file.
9928         * m4/atanl.m4: New file.
9929         * m4/cosl.m4: New file.
9930         * m4/expl.m4: New file.
9931         * m4/logl.m4: New file.
9932         * m4/sinl.m4: New file.
9933         * m4/sqrtl.m4: New file.
9934         * m4/tanl.m4: New file.
9935         * m4/mathl.m4: Remove file.
9936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
9937         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9938         Don't initialize GNULIB_MATHL.
9939         * modules/acosl: New file.
9940         * modules/asinl: New file.
9941         * modules/atanl: New file.
9942         * modules/cosl: New file.
9943         * modules/expl: New file.
9944         * modules/logl: New file.
9945         * modules/sinl: New file.
9946         * modules/sqrtl: New file.
9947         * modules/tanl: New file.
9948         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
9949         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
9950         substitute GNULIB_MATHL.
9951         * modules/mathl: Rewritten.
9952         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
9953         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
9954         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
9955         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
9956         * doc/posix-functions/expl.texi: Mention the 'expl' module.
9957         * doc/posix-functions/logl.texi: Mention the 'logl' module.
9958         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
9959         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
9960         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
9961
9962 2010-01-18  Bruno Haible  <bruno@clisp.org>
9963
9964         sqrt: Make gl_FUNC_SQRT requirable.
9965         * m4/sqrt.m4: New file.
9966         * modules/sqrt (Files): Add it.
9967         (configure.ac): Invoke gl_FUNC_SQRT.
9968
9969 2010-01-18  Bruno Haible  <bruno@clisp.org>
9970
9971         New modules for common <math.h> functions.
9972         * m4/mathfunc.m4: New file.
9973         * modules/acos: New file.
9974         * modules/asin: New file.
9975         * modules/atan: New file.
9976         * modules/atan2: New file.
9977         * modules/cbrt: New file.
9978         * modules/copysign: New file.
9979         * modules/cos: New file.
9980         * modules/cosh: New file.
9981         * modules/erf: New file.
9982         * modules/erfc: New file.
9983         * modules/exp: New file.
9984         * modules/fabs: New file.
9985         * modules/fmod: New file.
9986         * modules/hypot: New file.
9987         * modules/j0: New file.
9988         * modules/j1: New file.
9989         * modules/jn: New file.
9990         * modules/ldexp: New file.
9991         * modules/lgamma: New file.
9992         * modules/log: New file.
9993         * modules/log10: New file.
9994         * modules/log1p: New file.
9995         * modules/logb: New file.
9996         * modules/modf: New file.
9997         * modules/nextafter: New file.
9998         * modules/pow: New file.
9999         * modules/remainder: New file.
10000         * modules/rint: New file.
10001         * modules/sin: New file.
10002         * modules/sinh: New file.
10003         * modules/sqrt: New file.
10004         * modules/tan: New file.
10005         * modules/tanh: New file.
10006         * modules/y0: New file.
10007         * modules/y1: New file.
10008         * modules/yn: New file.
10009         * doc/posix-functions/acos.texi: Mention the 'acos' module.
10010         * doc/posix-functions/asin.texi: Mention the 'asin' module.
10011         * doc/posix-functions/atan.texi: Mention the 'atan' module.
10012         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
10013         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
10014         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
10015         * doc/posix-functions/cos.texi: Mention the 'cos' module.
10016         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
10017         * doc/posix-functions/erf.texi: Mention the 'erf' module.
10018         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
10019         * doc/posix-functions/exp.texi: Mention the 'exp' module.
10020         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
10021         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
10022         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
10023         * doc/posix-functions/j0.texi: Mention the 'j0' module.
10024         * doc/posix-functions/j1.texi: Mention the 'j1' module.
10025         * doc/posix-functions/jn.texi: Mention the 'jn' module.
10026         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
10027         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
10028         * doc/posix-functions/log.texi: Mention the 'log' module.
10029         * doc/posix-functions/log10.texi: Mention the 'log10' module.
10030         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
10031         * doc/posix-functions/logb.texi: Mention the 'logb' module.
10032         * doc/posix-functions/modf.texi: Mention the 'modf' module.
10033         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
10034         * doc/posix-functions/pow.texi: Mention the 'pow' module.
10035         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
10036         * doc/posix-functions/rint.texi: Mention the 'rint' module.
10037         * doc/posix-functions/sin.texi: Mention the 'sin' module.
10038         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
10039         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
10040         * doc/posix-functions/tan.texi: Mention the 'tan' module.
10041         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
10042         * doc/posix-functions/y0.texi: Mention the 'y0' module.
10043         * doc/posix-functions/y1.texi: Mention the 'y1' module.
10044         * doc/posix-functions/yn.texi: Mention the 'yn' module.
10045
10046 2010-01-18  Jim Meyering  <meyering@redhat.com>
10047
10048         ignore-value: relax license to LGPLv2+
10049         * modules/ignore-value (License): Relax to LGPLv2+.
10050
10051         getdate: don't leak when TZ contains two or more '"'s
10052         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
10053         double quote in TZ after the first one.
10054
10055         readtokens: do not leak internal token_lengths buffer
10056         * lib/readtokens.c (readtokens): Free the local, lengths,
10057         when the supplied "token_lengths" parameter is NULL.
10058
10059 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10060
10061         Fix a couple of missing LIBTHREAD link failures on AIX.
10062         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
10063         $(LIBTHREAD).
10064         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
10065
10066         Link test-poll against INET_PTON_LIB.
10067         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
10068         for inet_pton on Solaris 10.
10069
10070 2010-01-17  Bruno Haible  <bruno@clisp.org>
10071
10072         unistdio/*-sprintf: Fix typo in module description.
10073         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
10074         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
10075         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
10076         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
10077         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
10078         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
10079         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
10080         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10081
10082 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10083
10084         gnulib-tool: fix filelist for AIX, HP-UX ksh.
10085         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
10086         variables in shell case patterns, for AIX and HP-UX ksh.
10087
10088         Split large sed scripts, for HP-UX sed.
10089         * modules/stdio: Split sed scripts around 50 sed commands,
10090         to avoid HP-UX limit of 99 commands, in the near future.
10091         * modules/string: Likewise.
10092         * modules/unistd: Likewise.
10093
10094         gnulib-tool: avoid writing in the current directory.
10095         * gnulib-tool (func_emit_lib_Makefile_am)
10096         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
10097         not in the current directory, so concurrent gnulib-tool
10098         instances do not interfere.
10099
10100 2010-01-16  Jim Meyering  <meyering@redhat.com>
10101
10102         doc: update users.txt
10103         * users.txt: Add grep.
10104         (diffutils, gzip): Update URLs.
10105
10106 2010-01-12  Bruno Haible  <bruno@clisp.org>
10107
10108         posix_spawn: Avoid test failure on Cygwin.
10109         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
10110         characters.
10111         Reported by Simon Josefsson.
10112
10113 2010-01-12  Bruno Haible  <bruno@clisp.org>
10114
10115         * tests/test-cond.c (main): When skipping the test, show the reason.
10116
10117 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10118
10119         * lib/striconv.c (str_cd_iconv): Avoid if before free.
10120
10121 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10122
10123         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
10124         VC_LIST_ALWAYS_EXCLUDE_REGEX.
10125
10126 2010-01-12  Eric Blake  <ebb9@byu.net>
10127
10128         build: guarantee AS_VAR_IF
10129         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
10130         (gl_AS_VAR_IF): Move...
10131         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
10132         Reported by Simon Josefsson.
10133
10134 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10135
10136         * lib/stdio.in.h: Fix typo.
10137
10138 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10139
10140         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
10141         libgpg-error.
10142
10143 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10144
10145         * tests/test-xalloc-die.sh: Use $EXEEXT.
10146
10147 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10148             Bruno Haible  <bruno@clisp.org>
10149
10150         getlogin, getlogin_r: Avoid test failure.
10151         * tests/test-getlogin.c: Include <stdio.h>.
10152         (main): Skip the test when the function fails because stdin is not a
10153         tty.
10154         * tests/test-getlogin_r.c: Include <stdio.h>.
10155         (main): Skip the test when the function fails because stdin is not a
10156         tty.
10157
10158 2010-01-11  Eric Blake  <ebb9@byu.net>
10159
10160         tests: avoid more large file warnings
10161         * tests/test-fflush.c: Avoid warning about ftell use.
10162         * tests/test-fseek.c: Avoid warning about fseek use.
10163
10164 2010-01-10  Bruno Haible  <bruno@clisp.org>
10165
10166         nproc: Work better on Linux when /proc and /sys are not mounted.
10167         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
10168         as lower bound when, on glibc/Linux systems,
10169         sysconf (_SC_NPROCESSORS_CONF) returns 1.
10170         Suggested by Pádraig Brady <P@draigbrady.com>.
10171         Reported by Dmitry V. Levin <ldv@altlinux.org>.
10172
10173         nproc: Refactor.
10174         * lib/nproc.c (num_processors_via_affinity_mask): New function,
10175         extracted from num_processors.
10176         (num_processors): Call it.
10177
10178 2010-01-11  Jim Meyering  <meyering@redhat.com>
10179
10180         utimecmp: avoid new warning from upcoming gcc-4.5.0
10181         * lib/utimecmp.c (BILLION): Define using #define rather than an
10182         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
10183
10184 2010-01-11  Eric Blake  <ebb9@byu.net>
10185
10186         math: add portability warnings for classification macros
10187         * modules/math (Depends-on): Add warn-on-use.
10188         (Makefile.am): Provide new substitutions.
10189         * m4/math_h.m4 (gl_MATH_H): Require inline.
10190         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
10191         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
10192         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
10193         implement warnings.
10194
10195         unistd: warn on use of environ without module
10196         * modules/unistd (Depends-on): Add warn-on-use.
10197         (Makefile.am): Provide new substitutions.
10198         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
10199         * lib/unistd.in.h (environ): Wrap with a warning helper function.
10200
10201         stdio: warn on suspicious uses
10202         * modules/stdio (Depends-on): Add warn-on-use.
10203         (Makefile.am): Provide new substitutions.
10204         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
10205         fseeko.
10206         * lib/stdio.in.h (gets): Always warn on use.
10207         (fseek, ftell): Adjust when warnings are issued, and honor
10208         _GL_NO_LARGE_FILES as a way to silence the warning.
10209         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
10210         any warning about large file offsets.
10211         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
10212         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
10213         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
10214         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
10215         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
10216         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
10217         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
10218         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
10219
10220         warn-on-use: new module
10221         * modules/warn-on-use: New file.
10222         * build-aux/warn-on-use.h: Likewise.
10223         * m4/warn-on-use.m4: Likewise.
10224         * MODULES.html.sh (Support for building): Mention it.
10225
10226 2010-01-10  Bruno Haible  <bruno@clisp.org>
10227
10228         Tests for module 'unistr/u32-strdup'.
10229         * modules/unistr/u32-strdup-tests: New file.
10230         * tests/unistr/test-u32-strdup.c: New file.
10231
10232         Tests for module 'unistr/u16-strdup'.
10233         * modules/unistr/u16-strdup-tests: New file.
10234         * tests/unistr/test-u16-strdup.c: New file.
10235
10236         Tests for module 'unistr/u8-strdup'.
10237         * modules/unistr/u8-strdup-tests: New file.
10238         * tests/unistr/test-u8-strdup.c: New file.
10239         * tests/unistr/test-strdup.h: New file.
10240
10241         Tests for module 'unistr/u32-strncmp'.
10242         * modules/unistr/u32-strncmp-tests: New file.
10243         * tests/unistr/test-u32-strncmp.c: New file.
10244
10245         Tests for module 'unistr/u16-strncmp'.
10246         * modules/unistr/u16-strncmp-tests: New file.
10247         * tests/unistr/test-u16-strncmp.c: New file.
10248
10249         Tests for module 'unistr/u8-strncmp'.
10250         * modules/unistr/u8-strncmp-tests: New file.
10251         * tests/unistr/test-u8-strncmp.c: New file.
10252         * tests/unistr/test-strncmp.h: New file.
10253
10254         Tests for module 'unistr/u32-strcoll'.
10255         * modules/unistr/u32-strcoll-tests: New file.
10256         * tests/unistr/test-u32-strcoll.c: New file.
10257
10258         Tests for module 'unistr/u16-strcoll'.
10259         * modules/unistr/u16-strcoll-tests: New file.
10260         * tests/unistr/test-u16-strcoll.c: New file.
10261
10262         Tests for module 'unistr/u8-strcoll'.
10263         * modules/unistr/u8-strcoll-tests: New file.
10264         * tests/unistr/test-u8-strcoll.c: New file.
10265
10266         Tests for module 'unistr/u32-strcmp'.
10267         * modules/unistr/u32-strcmp-tests: New file.
10268         * tests/unistr/test-u32-strcmp.c: New file.
10269         * tests/unistr/test-u32-strcmp.h: New file.
10270
10271         Tests for module 'unistr/u16-strcmp'.
10272         * modules/unistr/u16-strcmp-tests: New file.
10273         * tests/unistr/test-u16-strcmp.c: New file.
10274         * tests/unistr/test-u16-strcmp.h: New file.
10275
10276         Tests for module 'unistr/u8-strcmp'.
10277         * modules/unistr/u8-strcmp-tests: New file.
10278         * tests/unistr/test-u8-strcmp.c: New file.
10279         * tests/unistr/test-u8-strcmp.h: New file.
10280         * tests/unistr/test-strcmp.h: New file.
10281
10282         Tests for module 'unistr/u32-strncat'.
10283         * modules/unistr/u32-strncat-tests: New file.
10284         * tests/unistr/test-u32-strncat.c: New file.
10285
10286         Tests for module 'unistr/u16-strncat'.
10287         * modules/unistr/u16-strncat-tests: New file.
10288         * tests/unistr/test-u16-strncat.c: New file.
10289
10290         Tests for module 'unistr/u8-strncat'.
10291         * modules/unistr/u8-strncat-tests: New file.
10292         * tests/unistr/test-u8-strncat.c: New file.
10293         * tests/unistr/test-strncat.h: New file.
10294
10295         Tests for module 'unistr/u32-strcat'.
10296         * modules/unistr/u32-strcat-tests: New file.
10297         * tests/unistr/test-u32-strcat.c: New file.
10298
10299         Tests for module 'unistr/u16-strcat'.
10300         * modules/unistr/u16-strcat-tests: New file.
10301         * tests/unistr/test-u16-strcat.c: New file.
10302
10303         Tests for module 'unistr/u8-strcat'.
10304         * modules/unistr/u8-strcat-tests: New file.
10305         * tests/unistr/test-u8-strcat.c: New file.
10306         * tests/unistr/test-strcat.h: New file.
10307
10308         Tests for module 'unistr/u32-stpncpy'.
10309         * modules/unistr/u32-stpncpy-tests: New file.
10310         * tests/unistr/test-u32-stpncpy.c: New file.
10311
10312         Tests for module 'unistr/u16-stpncpy'.
10313         * modules/unistr/u16-stpncpy-tests: New file.
10314         * tests/unistr/test-u16-stpncpy.c: New file.
10315
10316         Tests for module 'unistr/u8-stpncpy'.
10317         * modules/unistr/u8-stpncpy-tests: New file.
10318         * tests/unistr/test-u8-stpncpy.c: New file.
10319         * tests/unistr/test-stpncpy.h: New file.
10320
10321         Tests for module 'unistr/u32-strncpy'.
10322         * modules/unistr/u32-strncpy-tests: New file.
10323         * tests/unistr/test-u32-strncpy.c: New file.
10324
10325         Tests for module 'unistr/u16-strncpy'.
10326         * modules/unistr/u16-strncpy-tests: New file.
10327         * tests/unistr/test-u16-strncpy.c: New file.
10328
10329         Tests for module 'unistr/u8-strncpy'.
10330         * modules/unistr/u8-strncpy-tests: New file.
10331         * tests/unistr/test-u8-strncpy.c: New file.
10332         * tests/unistr/test-strncpy.h: New file.
10333
10334         Tests for module 'unistr/u32-stpcpy'.
10335         * modules/unistr/u32-stpcpy-tests: New file.
10336         * tests/unistr/test-u32-stpcpy.c: New file.
10337
10338         Tests for module 'unistr/u16-stpcpy'.
10339         * modules/unistr/u16-stpcpy-tests: New file.
10340         * tests/unistr/test-u16-stpcpy.c: New file.
10341
10342         Tests for module 'unistr/u8-stpcpy'.
10343         * modules/unistr/u8-stpcpy-tests: New file.
10344         * tests/unistr/test-u8-stpcpy.c: New file.
10345         * tests/unistr/test-stpcpy.h: New file.
10346
10347         Tests for module 'unistr/u32-strcpy'.
10348         * modules/unistr/u32-strcpy-tests: New file.
10349         * tests/unistr/test-u32-strcpy.c: New file.
10350
10351         Tests for module 'unistr/u16-strcpy'.
10352         * modules/unistr/u16-strcpy-tests: New file.
10353         * tests/unistr/test-u16-strcpy.c: New file.
10354
10355         Tests for module 'unistr/u8-strcpy'.
10356         * modules/unistr/u8-strcpy-tests: New file.
10357         * tests/unistr/test-u8-strcpy.c: New file.
10358         * tests/unistr/test-strcpy.h: New file.
10359
10360         Tests for module 'unistr/u32-strnlen'.
10361         * modules/unistr/u32-strnlen-tests: New file.
10362         * tests/unistr/test-u32-strnlen.c: New file.
10363
10364         Tests for module 'unistr/u16-strnlen'.
10365         * modules/unistr/u16-strnlen-tests: New file.
10366         * tests/unistr/test-u16-strnlen.c: New file.
10367
10368         Tests for module 'unistr/u8-strnlen'.
10369         * modules/unistr/u8-strnlen-tests: New file.
10370         * tests/unistr/test-u8-strnlen.c: New file.
10371         * tests/unistr/test-strnlen.h: New file.
10372
10373         Tests for module 'unistr/u32-strlen'.
10374         * modules/unistr/u32-strlen-tests: New file.
10375         * tests/unistr/test-u32-strlen.c: New file.
10376
10377         Tests for module 'unistr/u16-strlen'.
10378         * modules/unistr/u16-strlen-tests: New file.
10379         * tests/unistr/test-u16-strlen.c: New file.
10380
10381         Tests for module 'unistr/u8-strlen'.
10382         * modules/unistr/u8-strlen-tests: New file.
10383         * tests/unistr/test-u8-strlen.c: New file.
10384
10385         Tests for module 'unistr/u32-prev'.
10386         * modules/unistr/u32-prev-tests: New file.
10387         * tests/unistr/test-u32-prev.c: New file.
10388
10389         Tests for module 'unistr/u16-prev'.
10390         * modules/unistr/u16-prev-tests: New file.
10391         * tests/unistr/test-u16-prev.c: New file.
10392
10393         Tests for module 'unistr/u8-prev'.
10394         * modules/unistr/u8-prev-tests: New file.
10395         * tests/unistr/test-u8-prev.c: New file.
10396
10397         Tests for module 'unistr/u32-next'.
10398         * modules/unistr/u32-next-tests: New file.
10399         * tests/unistr/test-u32-next.c: New file.
10400
10401         Tests for module 'unistr/u16-next'.
10402         * modules/unistr/u16-next-tests: New file.
10403         * tests/unistr/test-u16-next.c: New file.
10404
10405         Tests for module 'unistr/u8-next'.
10406         * modules/unistr/u8-next-tests: New file.
10407         * tests/unistr/test-u8-next.c: New file.
10408
10409         Tests for module 'unistr/u32-strmbtouc'.
10410         * modules/unistr/u32-strmbtouc-tests: New file.
10411         * tests/unistr/test-u32-strmbtouc.c: New file.
10412
10413         Tests for module 'unistr/u16-strmbtouc'.
10414         * modules/unistr/u16-strmbtouc-tests: New file.
10415         * tests/unistr/test-u16-strmbtouc.c: New file.
10416
10417         Tests for module 'unistr/u8-strmbtouc'.
10418         * modules/unistr/u8-strmbtouc-tests: New file.
10419         * tests/unistr/test-u8-strmbtouc.c: New file.
10420
10421         Tests for module 'unistr/u32-strmblen'.
10422         * modules/unistr/u32-strmblen-tests: New file.
10423         * tests/unistr/test-u32-strmblen.c: New file.
10424
10425         Tests for module 'unistr/u16-strmblen'.
10426         * modules/unistr/u16-strmblen-tests: New file.
10427         * tests/unistr/test-u16-strmblen.c: New file.
10428
10429         Tests for module 'unistr/u8-strmblen'.
10430         * modules/unistr/u8-strmblen-tests: New file.
10431         * tests/unistr/test-u8-strmblen.c: New file.
10432
10433         Tests for module 'unistr/u32-cpy-alloc'.
10434         * modules/unistr/u32-cpy-alloc-tests: New file.
10435         * tests/unistr/test-u32-cpy-alloc.c: New file.
10436
10437         Tests for module 'unistr/u16-cpy-alloc'.
10438         * modules/unistr/u16-cpy-alloc-tests: New file.
10439         * tests/unistr/test-u16-cpy-alloc.c: New file.
10440
10441         Tests for module 'unistr/u8-cpy-alloc'.
10442         * modules/unistr/u8-cpy-alloc-tests: New file.
10443         * tests/unistr/test-u8-cpy-alloc.c: New file.
10444         * tests/unistr/test-cpy-alloc.h: New file.
10445
10446         Tests for module 'unistr/u32-mbsnlen'.
10447         * modules/unistr/u32-mbsnlen-tests: New file.
10448         * tests/unistr/test-u32-mbsnlen.c: New file.
10449
10450         Tests for module 'unistr/u16-mbsnlen'.
10451         * modules/unistr/u16-mbsnlen-tests: New file.
10452         * tests/unistr/test-u16-mbsnlen.c: New file.
10453
10454         Tests for module 'unistr/u8-mbsnlen'.
10455         * modules/unistr/u8-mbsnlen-tests: New file.
10456         * tests/unistr/test-u8-mbsnlen.c: New file.
10457
10458         Tests for module 'unistr/u32-chr'.
10459         * modules/unistr/u32-chr-tests: New file.
10460         * tests/unistr/test-u32-chr.c: New file.
10461
10462         Tests for module 'unistr/u16-chr'.
10463         * modules/unistr/u16-chr-tests: New file.
10464         * tests/unistr/test-u16-chr.c: New file.
10465
10466         Tests for module 'unistr/u8-chr'.
10467         * modules/unistr/u8-chr-tests: New file.
10468         * tests/unistr/test-u8-chr.c: New file.
10469         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
10470
10471         Tests for module 'unistr/u32-cmp2'.
10472         * modules/unistr/u32-cmp2-tests: New file.
10473         * tests/unistr/test-u32-cmp2.c: New file.
10474
10475         Tests for module 'unistr/u16-cmp2'.
10476         * modules/unistr/u16-cmp2-tests: New file.
10477         * tests/unistr/test-u16-cmp2.c: New file.
10478
10479         Tests for module 'unistr/u8-cmp2'.
10480         * modules/unistr/u8-cmp2-tests: New file.
10481         * tests/unistr/test-u8-cmp2.c: New file.
10482         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
10483
10484         Tests for module 'unistr/u32-cmp'.
10485         * modules/unistr/u32-cmp-tests: New file.
10486         * tests/unistr/test-u32-cmp.c: New file.
10487
10488         Tests for module 'unistr/u16-cmp'.
10489         * modules/unistr/u16-cmp-tests: New file.
10490         * tests/unistr/test-u16-cmp.c: New file.
10491
10492         Tests for module 'unistr/u8-cmp'.
10493         * modules/unistr/u8-cmp-tests: New file.
10494         * tests/unistr/test-u8-cmp.c: New file.
10495         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
10496
10497         Tests for module 'unistr/u32-set'.
10498         * modules/unistr/u32-set-tests: New file.
10499         * tests/unistr/test-u32-set.c: New file.
10500
10501         Tests for module 'unistr/u16-set'.
10502         * modules/unistr/u16-set-tests: New file.
10503         * tests/unistr/test-u16-set.c: New file.
10504
10505         Tests for module 'unistr/u8-set'.
10506         * modules/unistr/u8-set-tests: New file.
10507         * tests/unistr/test-u8-set.c: New file.
10508         * tests/unistr/test-set.h: New file.
10509
10510         Tests for module 'unistr/u32-move'.
10511         * modules/unistr/u32-move-tests: New file.
10512         * tests/unistr/test-u32-move.c: New file.
10513
10514         Tests for module 'unistr/u16-move'.
10515         * modules/unistr/u16-move-tests: New file.
10516         * tests/unistr/test-u16-move.c: New file.
10517
10518         Tests for module 'unistr/u8-move'.
10519         * modules/unistr/u8-move-tests: New file.
10520         * tests/unistr/test-u8-move.c: New file.
10521         * tests/unistr/test-move.h: New file.
10522
10523         Tests for module 'unistr/u32-cpy'.
10524         * modules/unistr/u32-cpy-tests: New file.
10525         * tests/unistr/test-u32-cpy.c: New file.
10526
10527         Tests for module 'unistr/u16-cpy'.
10528         * modules/unistr/u16-cpy-tests: New file.
10529         * tests/unistr/test-u16-cpy.c: New file.
10530
10531         Tests for module 'unistr/u8-cpy'.
10532         * modules/unistr/u8-cpy-tests: New file.
10533         * tests/unistr/test-u8-cpy.c: New file.
10534         * tests/unistr/test-cpy.h: New file.
10535
10536 2010-01-09  Bruno Haible  <bruno@clisp.org>
10537
10538         Tests for module 'unistr/u32-uctomb'.
10539         * modules/unistr/u32-uctomb-tests: New file.
10540         * tests/unistr/test-u32-uctomb.c: New file.
10541
10542         Tests for module 'unistr/u16-uctomb'.
10543         * modules/unistr/u16-uctomb-tests: New file.
10544         * tests/unistr/test-u16-uctomb.c: New file.
10545
10546         Tests for module 'unistr/u8-uctomb'.
10547         * modules/unistr/u8-uctomb-tests: New file.
10548         * tests/unistr/test-u8-uctomb.c: New file.
10549
10550         Tests for module 'unistr/u32-mbtoucr'.
10551         * modules/unistr/u32-mbtoucr-tests: New file.
10552         * tests/unistr/test-u32-mbtoucr.c: New file.
10553
10554         Tests for module 'unistr/u16-mbtoucr'.
10555         * modules/unistr/u16-mbtoucr-tests: New file.
10556         * tests/unistr/test-u16-mbtoucr.c: New file.
10557
10558         Tests for module 'unistr/u8-mbtoucr'.
10559         * modules/unistr/u8-mbtoucr-tests: New file.
10560         * tests/unistr/test-u8-mbtoucr.c: New file.
10561
10562         Tests for module 'unistr/u32-mbtouc'.
10563         * modules/unistr/u32-mbtouc-tests: New file.
10564         * tests/unistr/test-u32-mbtouc.c: New file.
10565
10566         Tests for module 'unistr/u16-mbtouc'.
10567         * modules/unistr/u16-mbtouc-tests: New file.
10568         * tests/unistr/test-u16-mbtouc.c: New file.
10569
10570         Tests for module 'unistr/u8-mbtouc'.
10571         * modules/unistr/u8-mbtouc-tests: New file.
10572         * tests/unistr/test-u8-mbtouc.c: New file.
10573
10574         Tests for module 'unistr/u32-mbtouc-unsafe'.
10575         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
10576         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
10577         * tests/unistr/test-u32-mbtouc.h: New file.
10578
10579         Tests for module 'unistr/u16-mbtouc-unsafe'.
10580         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
10581         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
10582         * tests/unistr/test-u16-mbtouc.h: New file.
10583
10584         Tests for module 'unistr/u8-mbtouc-unsafe'.
10585         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
10586         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
10587         * tests/unistr/test-u8-mbtouc.h: New file.
10588
10589         Tests for module 'unistr/u32-mblen'.
10590         * modules/unistr/u32-mblen-tests: New file.
10591         * tests/unistr/test-u32-mblen.c: New file.
10592
10593         Tests for module 'unistr/u16-mblen'.
10594         * modules/unistr/u16-mblen-tests: New file.
10595         * tests/unistr/test-u16-mblen.c: New file.
10596
10597         Tests for module 'unistr/u8-mblen'.
10598         * modules/unistr/u8-mblen-tests: New file.
10599         * tests/unistr/test-u8-mblen.c: New file.
10600
10601         Tests for module 'unistr/u32-to-u16'.
10602         * modules/unistr/u32-to-u16-tests: New file.
10603         * tests/unistr/test-u32-to-u16.c: New file.
10604
10605         Tests for module 'unistr/u32-to-u8'.
10606         * modules/unistr/u32-to-u8-tests: New file.
10607         * tests/unistr/test-u32-to-u8.c: New file.
10608
10609         Tests for module 'unistr/u16-to-u32'.
10610         * modules/unistr/u16-to-u32-tests: New file.
10611         * tests/unistr/test-u16-to-u32.c: New file.
10612
10613         Tests for module 'unistr/u16-to-u8'.
10614         * modules/unistr/u16-to-u8-tests: New file.
10615         * tests/unistr/test-u16-to-u8.c: New file.
10616
10617         Tests for module 'unistr/u8-to-u32'.
10618         * modules/unistr/u8-to-u32-tests: New file.
10619         * tests/unistr/test-u8-to-u32.c: New file.
10620
10621         Tests for module 'unistr/u8-to-u16'.
10622         * modules/unistr/u8-to-u16-tests: New file.
10623         * tests/unistr/test-u8-to-u16.c: New file.
10624
10625         Tests for module 'unistr/u32-check'.
10626         * modules/unistr/u32-check-tests: New file.
10627         * tests/unistr/test-u32-check.c: New file.
10628
10629         Tests for module 'unistr/u16-check'.
10630         * modules/unistr/u16-check-tests: New file.
10631         * tests/unistr/test-u16-check.c: New file.
10632
10633         Tests for module 'unistr/u8-check'.
10634         * modules/unistr/u8-check-tests: New file.
10635         * tests/unistr/test-u8-check.c: New file.
10636
10637         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
10638         (category_equals): New function.
10639         (main): Add more tests.
10640         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
10641
10642         * tests/unictype/test-bidi_byname.c (main): Add more tests.
10643
10644 2010-01-10  Bruno Haible  <bruno@clisp.org>
10645
10646         unistr/u*-strcoll: Try harder to distinguish different strings.
10647         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
10648         compare s1 and s2 to see if they are different.
10649
10650 2010-01-10  Bruno Haible  <bruno@clisp.org>
10651
10652         unistr/u*-stpncpy: Fix the return value.
10653         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
10654         description of the return value consistent with stpncpy in glibc.
10655         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
10656         written non-NUL unit.
10657
10658 2010-01-10  Bruno Haible  <bruno@clisp.org>
10659
10660         unistr/u*-next: Add missing dependencies.
10661         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
10662         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
10663         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
10664
10665 2010-01-10  Bruno Haible  <bruno@clisp.org>
10666
10667         unistr/u8-mbsnlen: Fix return value for incomplete character.
10668         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
10669         u8_mblen.
10670         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
10671         Remove unistr/u8-mblen.
10672         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
10673         u16_mblen.
10674         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
10675         Remove unistr/u16-mblen.
10676
10677 2010-01-10  Bruno Haible  <bruno@clisp.org>
10678
10679         wchar: Fix compilation error when <wchar.h> is used from coreutils.
10680         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
10681         Reported by Brian Gough <bjg@gnu.org> and
10682         Chris Clayton <chris2553@googlemail.com> via
10683         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
10684
10685 2010-01-09  Bruno Haible  <bruno@clisp.org>
10686
10687         unistr/u16-to-u32: Reject invalid input.
10688         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
10689         u16_mbtouc.
10690         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
10691         Remove unistr/u16-mbtouc.
10692
10693         unistr/u16-to-u8: Reject invalid input.
10694         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
10695         u16_mbtouc.
10696         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
10697         Remove unistr/u16-mbtouc.
10698
10699         unistr/u8-to-u32: Reject invalid input.
10700         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
10701         u8_mbtouc.
10702         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
10703         Remove unistr/u8-mbtouc.
10704
10705         unistr/u8-to-u16: Reject invalid input.
10706         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
10707         u8_mbtouc.
10708         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
10709         Remove unistr/u8-mbtouc.
10710
10711 2010-01-09  Bruno Haible  <bruno@clisp.org>
10712
10713         Tests for module 'getlogin'.
10714         * modules/getlogin-tests: New file.
10715         * tests/test-getlogin.c: New file.
10716
10717         New module 'getlogin'.
10718         * lib/unistd.in.h (getlogin): New declaration.
10719         * lib/getlogin.c: New file.
10720         * m4/getlogin.m4: New file.
10721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
10722         HAVE_GETLOGIN.
10723         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
10724         HAVE_GETLOGIN.
10725         * modules/getlogin: New file.
10726         * doc/posix-functions/getlogin.texi: Mention the new module.
10727         Reported by John W. Eaton <jwe@gnu.org>.
10728
10729 2010-01-09  Bruno Haible  <bruno@clisp.org>
10730
10731         getlogin_r: Support for native Windows.
10732         * lib/getlogin_r.c: Include <windows.h>
10733         (getlogin_r): Implement for native Windows.
10734         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
10735         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
10736         via John W. Eaton <jwe@gnu.org>.
10737
10738 2010-01-09  Bruno Haible  <bruno@clisp.org>
10739
10740         getlogin_r: Small fixes.
10741         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
10742         succeeds.
10743         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
10744         before testing whether getlogin_r is declared. No need to set
10745         HAVE_DECL_GETLOGIN_R to 1.
10746         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
10747
10748 2010-01-09  Bruno Haible  <bruno@clisp.org>
10749
10750         * lib/unistd.in.h (getlogin_r): Add comment.
10751
10752 2010-01-09  Bruno Haible  <bruno@clisp.org>
10753
10754         Tests for module 'getlogin_r'.
10755         * modules/getlogin_r-tests: New file.
10756         * tests/test-getlogin_r.c: New file.
10757
10758 2010-01-09  Jim Meyering  <meyering@redhat.com>
10759
10760         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
10761         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
10762         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
10763
10764 2010-01-08  Simon Josefsson  <simon@josefsson.org>
10765
10766         * lib/dup2.c (rpl_dup2): Improve comment.
10767
10768 2010-01-08  Eric Blake  <ebb9@byu.net>
10769
10770         maint.mk: allow packages to add makefile @@ exceptions
10771         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
10772         (sc_makefile_check): Rename...
10773         (sc_makefile_at_at_check): ...to this, and use hook.
10774
10775         dup2: work around mingw bug
10776         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
10777         Reported by Simon Josefsson.
10778
10779 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
10780
10781         glob: Fix C++ compilation.
10782         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
10783         C++.
10784
10785 2010-01-07  Bruno Haible  <bruno@clisp.org>
10786
10787         Fix indentation of wctype.in.h, broken since 2007-01-06.
10788         * lib/wctype.in.h: Fix indentation of preprocessor directives.
10789
10790 2010-01-07  Bruno Haible  <bruno@clisp.org>
10791
10792         mbslen: Avoid collision with system function.
10793         * lib/string.in.h [MirBSD]: Include <wchar.h>.
10794         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
10795         * m4/mbslen.m4: New file.
10796         * modules/mbslen (Files): Add it.
10797         (configure.ac): Invoke gl_MBSLEN.
10798         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
10799         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
10800         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
10801         via Ian Beckwith <ianb@erislabs.net>.
10802
10803 2010-01-07  Bruno Haible  <bruno@clisp.org>
10804
10805         dirent: Document the last fix.
10806         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
10807
10808 2010-01-07  Bruno Haible  <bruno@clisp.org>
10809
10810         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
10811         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
10812         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
10813         va_list are defined.
10814         * doc/posix-headers/stdio.texi: Document the bug of missing types.
10815         Reported by Eric Blake.
10816
10817 2010-01-07  Bruno Haible  <bruno@clisp.org>
10818
10819         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
10820         * modules/xlist (Depends-on): Add 'list',
10821         * modules/xoset (Depends-on): Add 'oset'.
10822         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10823
10824 2010-01-07  Bruno Haible  <bruno@clisp.org>
10825
10826         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
10827         * doc/posix-functions/strncasecmp.texi: Likewise.
10828
10829 2010-01-07  Bruno Haible  <bruno@clisp.org>
10830
10831         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
10832
10833 2010-01-07  John W. Eaton  <jwe@octave.org>
10834
10835         wctype: allow C++ use
10836         * lib/wctype.in.h: Add extern "C" block for C++.
10837
10838 2010-01-06  Eric Blake  <ebb9@byu.net>
10839
10840         maint.mk: detect incorrect GFDL usage
10841         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
10842
10843 2010-01-06  Jim Meyering  <meyering@redhat.com>
10844         and Eric Blake  <ebb9@byu.net>
10845
10846         maint.mk: ignore multi-line copyright in NEWS
10847         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
10848
10849 2010-01-06  Eric Blake  <ebb9@byu.net>
10850
10851         select: add missing dependency
10852         * modules/select-tests (Depends-on): Move sockets dependency...
10853         * modules/select (Depends-on): ...here.
10854         Reported by Ian Beckwith.
10855
10856         doc: regenerate INSTALL
10857         * doc/INSTALL: Reflect recent autoconf update.
10858         * doc/INSTALL.ISO: Likewise.
10859         * doc/INSTALL.UTF-8: Likewise.
10860
10861         pread: fix compilation on glibc
10862         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
10863         Reported by Ralf Wildenhues.
10864
10865         dirent: fix test failure
10866         * lib/dirent.in.h (includes): Guarantee ino_t.
10867         Reported by Ralf Wildenhues.
10868
10869 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
10870
10871         linkat, renameat: avoid bad free
10872         * lib/at-func2.c (at_func2): Fix typo.
10873         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
10874
10875 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10876
10877         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
10878         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
10879         to avoid failure of symlink test later.
10880
10881 2010-01-06  Eric Blake  <ebb9@byu.net>
10882
10883         stdio, unistd: guarantee ssize_t
10884         * lib/unistd.in.h (includes): Ensure that types required by POSIX
10885         2008 are exposed when needed.
10886         * lib/stdio.in.h (includes): Likewise.
10887         Reported by Ralf Wildenhues.
10888
10889 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
10890
10891         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
10892         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
10893         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
10894
10895 2010-01-06  Jim Meyering  <meyering@redhat.com>
10896
10897         readtokens: this module *does* require xalloc.h
10898         It uses only functions that were omitted by the old syntax-check rule.
10899         * lib/readtokens.c: Include "xalloc.h" once again.
10900         * modules/readtokens (Depends-on): Add xalloc.
10901         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
10902
10903 2010-01-05  Eric Blake  <ebb9@byu.net>
10904
10905         maint: support 'make announcement' from a VPATH build
10906         * top/maint.mk (announcement): Look for correct NEWS file.
10907
10908 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
10909
10910         utimens (fdutimens): ignore a negative FD, per contract
10911         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
10912         when we have a valid file descriptor.  Otherwise, using a brand
10913         new glibc (with just-patched futimens that now fails with EBADF)
10914         would cause this function to fail with ENOSYS.
10915         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
10916         See also http://bugzilla.redhat.com/552320.
10917
10918 2010-01-05  Eric Blake  <ebb9@byu.net>
10919
10920         strcase: document what it provides
10921         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
10922         gnulib module.
10923         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
10924         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
10925
10926 2010-01-05  Jim Meyering  <meyering@redhat.com>
10927
10928         maint: remove useless inclusions of "xalloc.h"
10929         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
10930         * lib/readtokens.c: Likewise.
10931         * lib/same.c: Likewise.
10932         * modules/getloadavg (Depends-on): Remove xalloc.
10933         * modules/readtokens: Likewise.
10934         * modules/same: Likewise.
10935
10936         maint.mk: include 4 more function names in alloca.h-checking regexp
10937         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
10938         regexp.  Before, we would give a false-positive (saying alloca.h
10939         is included unnecessarily) when the only uses involved omitted symbols.
10940
10941         xalloc.h: use consistent formatting
10942         * lib/xalloc.h: Move declarations to start in the first column.
10943
10944 2010-01-05  Eric Blake  <ebb9@byu.net>
10945
10946         mkdir: avoid xalloc
10947         * lib/mkdir.c (includes): Drop unused header.
10948         Reported by John W. Eaton.
10949
10950 2010-01-04  Jim Meyering  <meyering@redhat.com>
10951
10952         nl_langinfo: avoid configure-time syntax error
10953         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
10954         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
10955         the empty string.  Don't let that provoke a shell syntax error.
10956
10957         regcomp, regexec, fnmatch: avoid array bounds read error
10958         * lib/regcomp.c (build_equiv_class): From glibc:
10959         Use only the low 24 bits of a findidx return value as an index
10960         into the weights array.  Patch by Ulrich Drepper:
10961         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
10962         * lib/regexec.c (check_node_accept_bytes): Likewise.
10963         * lib/fnmatch_loop.c (FCT): Likewise.
10964
10965         regcomp: skip collseq lookup when there are no rules
10966         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
10967         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
10968
10969         regcomp: recognize ill-formed { } expressions
10970         * lib/regcomp.c (parse_dup_op): From glibc:
10971         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
10972
10973         regcomp: fix typo in comment
10974         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
10975         s/satisfy/satisfies/.
10976
10977         regcomp: sync from glibc: remove dead store
10978         * lib/regcomp.c (duplicate_node_closure): Remove useless
10979         search_duplicated_node call and dead store.
10980
10981         regcomp: sync from glibc; always use nl_langinfo
10982         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
10983         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
10984         * modules/regex (Depends-on): Add nl_langinfo.
10985
10986 2010-01-04  Eric Blake  <ebb9@byu.net>
10987
10988         fdopendir: fix configure test
10989         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
10990
10991 2010-01-01  Bruno Haible  <bruno@clisp.org>
10992
10993         wchar: Remove unused configure check.
10994         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
10995
10996 2010-01-01  Eric Blake  <ebb9@byu.net>
10997
10998         headers: make check of system header explicit
10999         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
11000         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
11001         ourselves.
11002         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11003         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11004         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
11005         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
11006         internals.
11007         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
11008         missing.
11009         Suggested by Bruno Haible.
11010
11011 2010-01-01  Jim Meyering  <meyering@redhat.com>
11012
11013         ChangeLog: tweak to eliminate unnecessary copyright line
11014         * ChangeLog: Remove a copyright line that was mistakenly updated
11015         by today's update-copyright run.  Reported by Eric Blake.
11016
11017         test-update-copyright: don't let envvar setting cause test failure
11018         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11019
11020 2010-01-01  Bruno Haible  <bruno@clisp.org>
11021
11022         localename: Avoid gcc warning.
11023         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
11024         function if it is not used.
11025
11026 2010-01-01  Jim Meyering  <meyering@redhat.com>
11027
11028         update nearly all FSF copyright year lists to include 2010
11029         Use the same procedure as for 2009, outlined in
11030         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
11031
11032         version-etc: set COPYRIGHT_YEAR to 2010
11033         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
11034
11035 2009-12-31  Eric Blake  <ebb9@byu.net>
11036
11037         doc: correct availability of cygwin 1.5.x getopt
11038         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
11039         variables.
11040         * doc/posix-functions/opterr.texi (opterr): Likewise.
11041         * doc/posix-functions/optind.texi (optind): Likewise.
11042         * doc/posix-functions/optopt.texi (optopt): Likewise.
11043         * doc/posix-functions/tzname.texi (tzname): Likewise.
11044
11045         openat: update maintainer
11046         * modules/openat (Maintainer): Add myself.
11047
11048         utimens: avoid shadowing warning
11049         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
11050         buffers into one, to avoid shadowing, as well as avoiding a
11051         redundant stat.
11052         Reported by Jim Meyering.
11053
11054         test-dup2: avoid compiler warning
11055         * tests/test-dup2.c (is_inheritable): Only define if used.
11056
11057 2010-01-01  Bruno Haible  <bruno@clisp.org>
11058
11059         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
11060         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
11061         defined, use wctomb instead of wcrtomb.
11062
11063 2010-01-01  Bruno Haible  <bruno@clisp.org>
11064
11065         iconv: Reject native Solaris iconv.
11066         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
11067         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
11068
11069 2009-12-31  Bruno Haible  <bruno@clisp.org>
11070
11071         * tests/test-signal.c (main): Remove test of 'SIG'.
11072
11073 2009-12-31  Bruno Haible  <bruno@clisp.org>
11074
11075         spawn: Fix incomplete fix.
11076         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
11077         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
11078         warnings for GNULIB_POSIXCHECK again.
11079         Reported by Eric Blake.
11080
11081 2009-12-31  Bruno Haible  <bruno@clisp.org>
11082
11083         Avoid namespace pollution on glibc systems.
11084         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
11085         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
11086         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
11087         glibc systems.
11088
11089 2009-12-31  Bruno Haible  <bruno@clisp.org>
11090
11091         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
11092         (gl_REPLACE_WCHAR_H): Turn into a no-op.
11093         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
11094         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11095         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11096         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11097         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11098
11099 2009-12-31  Bruno Haible  <bruno@clisp.org>
11100
11101         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
11102         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
11103         afterwards.
11104
11105 2009-12-31  Bruno Haible  <bruno@clisp.org>
11106
11107         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
11108         SYS_UTSNAME_H.
11109
11110 2009-12-31  Bruno Haible  <bruno@clisp.org>
11111
11112         spawn: Fix misapplied patch.
11113         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
11114         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
11115         warnings for GNULIB_POSIXCHECK.
11116
11117 2009-12-31  Bruno Haible  <bruno@clisp.org>
11118
11119         times: Update after sys_times changed.
11120         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
11121         * modules/times (Files): Add it.
11122         (configure.ac): Invoke gl_FUNC_TIMES.
11123
11124 2009-12-31  Bruno Haible  <bruno@clisp.org>
11125
11126         Use AC_C_INLINE where necessary.
11127         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
11128         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
11129         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
11130         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
11131         * m4/mbfile.m4 (gl_MBFILE): Likewise.
11132         * m4/mbiter.m4 (gl_MBITER): Likewise.
11133         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11134         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11135         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
11136         * modules/u64 (configure.ac): Likewise.
11137
11138 2009-12-31  Bruno Haible  <bruno@clisp.org>
11139
11140         Use AC_C_INLINE instead of module 'inline' where possible.
11141         * modules/inline (Description): Clarify purpose.
11142         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
11143         * modules/count-one-bits (Depends-on): Remove inline.
11144         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
11145         * modules/openat (Depends-on): Remove inline.
11146         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
11147         instead of depending on module 'inline'.
11148         * modules/filevercmp (Depends-on, configure.ac): Likewise.
11149         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
11150         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
11151         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
11152         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
11153         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
11154         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
11155         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
11156         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
11157         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
11158         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
11159         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
11160         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
11161         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
11162         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
11163         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
11164         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
11165         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
11166         Likewise.
11167         * modules/unictype/property-ascii-hex-digit (Depends-on,
11168         configure.ac): Likewise.
11169         * modules/unictype/property-bidi-arabic-digit (Depends-on,
11170         configure.ac): Likewise.
11171         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
11172         configure.ac): Likewise.
11173         * modules/unictype/property-bidi-block-separator (Depends-on,
11174         configure.ac): Likewise.
11175         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
11176         configure.ac): Likewise.
11177         * modules/unictype/property-bidi-common-separator (Depends-on,
11178         configure.ac): Likewise.
11179         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
11180         Likewise.
11181         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
11182         configure.ac): Likewise.
11183         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
11184         configure.ac): Likewise.
11185         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
11186         configure.ac): Likewise.
11187         * modules/unictype/property-bidi-european-digit (Depends-on,
11188         configure.ac): Likewise.
11189         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
11190         configure.ac): Likewise.
11191         * modules/unictype/property-bidi-left-to-right (Depends-on,
11192         configure.ac): Likewise.
11193         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
11194         configure.ac): Likewise.
11195         * modules/unictype/property-bidi-other-neutral (Depends-on,
11196         configure.ac): Likewise.
11197         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
11198         Likewise.
11199         * modules/unictype/property-bidi-segment-separator (Depends-on,
11200         configure.ac): Likewise.
11201         * modules/unictype/property-bidi-whitespace (Depends-on,
11202         configure.ac): Likewise.
11203         * modules/unictype/property-combining (Depends-on, configure.ac):
11204         Likewise.
11205         * modules/unictype/property-composite (Depends-on, configure.ac):
11206         Likewise.
11207         * modules/unictype/property-currency-symbol (Depends-on,
11208         configure.ac): Likewise.
11209         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
11210         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
11211         Likewise.
11212         * modules/unictype/property-default-ignorable-code-point (Depends-on,
11213         configure.ac): Likewise.
11214         * modules/unictype/property-deprecated (Depends-on, configure.ac):
11215         Likewise.
11216         * modules/unictype/property-diacritic (Depends-on, configure.ac):
11217         Likewise.
11218         * modules/unictype/property-extender (Depends-on, configure.ac):
11219         Likewise.
11220         * modules/unictype/property-format-control (Depends-on, configure.ac):
11221         Likewise.
11222         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
11223         Likewise.
11224         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
11225         Likewise.
11226         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
11227         Likewise.
11228         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
11229         Likewise.
11230         * modules/unictype/property-hyphen (Depends-on, configure.ac):
11231         Likewise.
11232         * modules/unictype/property-id-continue (Depends-on, configure.ac):
11233         Likewise.
11234         * modules/unictype/property-id-start (Depends-on, configure.ac):
11235         Likewise.
11236         * modules/unictype/property-ideographic (Depends-on, configure.ac):
11237         Likewise.
11238         * modules/unictype/property-ids-binary-operator (Depends-on,
11239         configure.ac): Likewise.
11240         * modules/unictype/property-ids-trinary-operator (Depends-on,
11241         configure.ac): Likewise.
11242         * modules/unictype/property-ignorable-control (Depends-on,
11243         configure.ac): Likewise.
11244         * modules/unictype/property-iso-control (Depends-on, configure.ac):
11245         Likewise.
11246         * modules/unictype/property-join-control (Depends-on, configure.ac):
11247         Likewise.
11248         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
11249         Likewise.
11250         * modules/unictype/property-line-separator (Depends-on, configure.ac):
11251         Likewise.
11252         * modules/unictype/property-logical-order-exception (Depends-on,
11253         configure.ac): Likewise.
11254         * modules/unictype/property-lowercase (Depends-on, configure.ac):
11255         Likewise.
11256         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
11257         * modules/unictype/property-non-break (Depends-on, configure.ac):
11258         Likewise.
11259         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
11260         Likewise.
11261         * modules/unictype/property-numeric (Depends-on, configure.ac):
11262         Likewise.
11263         * modules/unictype/property-other-alphabetic (Depends-on,
11264         configure.ac): Likewise.
11265         * modules/unictype/property-other-default-ignorable-code-point
11266         (Depends-on, configure.ac): Likewise.
11267         * modules/unictype/property-other-grapheme-extend (Depends-on,
11268         configure.ac): Likewise.
11269         * modules/unictype/property-other-id-continue (Depends-on,
11270         configure.ac): Likewise.
11271         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
11272         Likewise.
11273         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
11274         Likewise.
11275         * modules/unictype/property-other-math (Depends-on, configure.ac):
11276         Likewise.
11277         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
11278         Likewise.
11279         * modules/unictype/property-paired-punctuation (Depends-on,
11280         configure.ac): Likewise.
11281         * modules/unictype/property-paragraph-separator (Depends-on,
11282         configure.ac): Likewise.
11283         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
11284         Likewise.
11285         * modules/unictype/property-pattern-white-space (Depends-on,
11286         configure.ac): Likewise.
11287         * modules/unictype/property-private-use (Depends-on, configure.ac):
11288         Likewise.
11289         * modules/unictype/property-punctuation (Depends-on, configure.ac):
11290         Likewise.
11291         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
11292         Likewise.
11293         * modules/unictype/property-radical (Depends-on, configure.ac):
11294         Likewise.
11295         * modules/unictype/property-sentence-terminal (Depends-on,
11296         configure.ac): Likewise.
11297         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
11298         Likewise.
11299         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
11300         * modules/unictype/property-terminal-punctuation (Depends-on,
11301         configure.ac): Likewise.
11302         * modules/unictype/property-titlecase (Depends-on, configure.ac):
11303         Likewise.
11304         * modules/unictype/property-unassigned-code-value (Depends-on,
11305         configure.ac): Likewise.
11306         * modules/unictype/property-unified-ideograph (Depends-on,
11307         configure.ac): Likewise.
11308         * modules/unictype/property-uppercase (Depends-on, configure.ac):
11309         Likewise.
11310         * modules/unictype/property-variation-selector (Depends-on,
11311         configure.ac): Likewise.
11312         * modules/unictype/property-white-space (Depends-on, configure.ac):
11313         Likewise.
11314         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
11315         Likewise.
11316         * modules/unictype/property-xid-start (Depends-on, configure.ac):
11317         Likewise.
11318         * modules/unictype/property-zero-width (Depends-on, configure.ac):
11319         Likewise.
11320         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
11321         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
11322         Likewise.
11323
11324 2009-12-31  Bruno Haible  <bruno@clisp.org>
11325
11326         Remove unnecessary AC_C_INLINE invocation.
11327         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
11328         since 2009-08-21.
11329
11330 2009-12-31  Jim Meyering  <meyering@redhat.com>
11331
11332         maint.mk: don't require explicit gpg_key_ID in cfg.mk
11333         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
11334         With this change, we can all remove the gpg_key_ID = ... definition
11335         from our respective cfg.mk files.
11336
11337         maint.mk: create announcement template in ~/, not in /tmp
11338         * top/maint.mk (emit_upload_commands): Adjust.
11339         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
11340         Remove temporary file, .ci-msg.
11341
11342 2009-12-31  Eric Blake  <ebb9@byu.net>
11343
11344         link-warning: always build headers with link warnings
11345         * modules/arpa_inet (Makefile.am): Always build replacement
11346         header.
11347         * modules/ctype (Makefile.am): Likewise.
11348         * modules/dirent (Makefile.am): Likewise.
11349         * modules/inttypes (Makefile.am): Likewise.
11350         * modules/langinfo (Makefile.am): Likewise.
11351         * modules/locale (Makefile.am): Likewise.
11352         * modules/spawn (Makefile.am): Likewise.
11353         * modules/sys_file (Makefile.am): Likewise.
11354         * modules/sys_ioctl (Makefile.am): Likewise.
11355         * modules/sys_select (Makefile.am): Likewise.
11356         * modules/sys_socket (Makefile.am): Likewise.
11357         * modules/sys_times (Makefile.am): Likewise.
11358         * modules/sys_utsname (Makefile.am): Likewise.
11359         * modules/sys_wait (Makefile.am): Likewise.
11360         * modules/wchar (Makefile.am): Likewise.
11361         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
11362         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
11363         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
11364         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
11365         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
11366         Likewise.
11367         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11368         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11369         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
11370         Likewise.
11371         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
11372         Likewise.
11373         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11374         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
11375         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
11376         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11377         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11378         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11379         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11380         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
11381         (gl_WCHAR_H_DEFAULTS): Likewise.
11382
11383 2009-12-31  Eric Blake  <ebb9@byu.net>
11384
11385         signal, spawn: use link warnings
11386         * lib/signal.in.h (sigset_t): Make unconditional.
11387         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
11388         (sigpending, sigprocmask, sigaction): Add link warnings.
11389         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
11390         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
11391         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
11392         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
11393         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
11394         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
11395         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
11396         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
11397         (posix_spawn_file_actions_destroy)
11398         (posix_spawn_file_actions_addopen)
11399         (posix_spawn_file_actions_addclose)
11400         (posix_spawn_file_actions_adddup2): Likewise.
11401         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
11402         * tests/test-signal.c (main): Enhance test.
11403
11404         spawn: improve wrapper support
11405         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
11406         (gl_SPAWN_H_DEFAULTS): New defaults.
11407         * modules/spawn (Makefile.am): Substitute them.
11408         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
11409         Only declare if missing or broken.
11410
11411         sys_times, sys_utsname: use include_next
11412         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
11413         header.
11414         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
11415         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11416         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11417         * modules/sys_times (Depends-on): Add include_next.
11418         (Makefile.am): Substitute additional values.
11419         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
11420         * lib/sys_times.in.h (includes): Include native header, if
11421         available.
11422         * lib/sys_utsname.in.h (includes): Likewise.
11423         * tests/test-sys_times.c (main): Enhance test.
11424
11425         fdutimensat: revert prior patch
11426         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
11427         utimens.h.
11428         Reported by Bruno Haible.
11429
11430 2009-12-30  Eric Blake  <ebb9@byu.net>
11431
11432         sys_wait: drop link-warning dependency
11433         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
11434         link-warning efforts.
11435         * lib/sys_wait.in.h: Likewise.
11436
11437         fdutimensat: remove bogus dependency
11438         * modules/fdutimensat (Depends-on): Drop inline.
11439
11440         unistd: fix typo
11441         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
11442
11443 2009-12-30  Bruno Haible  <bruno@clisp.org>
11444
11445         Fix compilation error with Solaris cc.
11446         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
11447         * lib/unicase/u16-is-invariant.c: Likewise.
11448         * lib/unicase/u32-is-invariant.c: Likewise.
11449         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11450
11451 2009-12-30  Bruno Haible  <bruno@clisp.org>
11452
11453         Fix test crash.
11454         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
11455         locales.
11456         Reported by Simon Josefsson <simon@josefsson.org>.
11457
11458 2009-12-30  Bruno Haible  <bruno@clisp.org>
11459
11460         Fix compilation error on most platforms.
11461         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
11462         Reported by Simon Josefsson <simon@josefsson.org>
11463         and Nelson H. F. Beebe <beebe@math.utah.edu>.
11464
11465 2009-12-30  Eric Blake  <ebb9@byu.net>
11466
11467         futimens, utimensat: work around ntfs-3g bug
11468         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
11469         a ctime bug is present, and expand workaround to cover ntfs-3g.
11470         * lib/utimens.c (fdutimens, lutimens): Likewise.
11471         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
11472         (validate_timespec): Adjust return value.
11473         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
11474         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11475         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
11476
11477 2009-12-29  Eric Blake  <ebb9@byu.net>
11478
11479         link-warning: make usage consistent
11480         * modules/ctype (Depends-on): Add link-warning.
11481         (Makefile.am): Update rules accordingly.
11482         * modules/langinfo (Depends-on, Makefile.am): Likewise.
11483         * modules/locale (Depends-on, Makefile.am): Likewise.
11484         * modules/sys_file (Makefile.am): Likewise.
11485         * modules/getopt-posix (Makefile.am): Delete unused link warning
11486         efforts.
11487         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
11488         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
11489         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
11490         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
11491
11492         stdio: remove unused variables
11493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
11494         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
11495         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11496
11497         tests: test more substitute headers
11498         * modules/ctype-tests: New file.
11499         * modules/dirent-tests: Likewise.
11500         * modules/spawn-tests: Likewise.
11501         * modules/sys_file-tests: Likewise.
11502         * modules/sys_ioctl-tests: Likewise.
11503         * modules/sys_wait-tests: Likewise.
11504         * tests/test-ctype.c: Likewise.
11505         * tests/test-dirent.c: Likewise.
11506         * tests/test-spawn.c: Likewise.
11507         * tests/test-sys_file.c: Likewise.
11508         * tests/test-sys_ioctl.c: Likewise.
11509         * tests/test-sys_wait.c: Likewise.
11510         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
11511         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
11512         whether or not flock is in use.
11513
11514         tests: remove License section from module
11515         * modules/arpa_inet-tests: Remove unneeded section.
11516         * modules/byteswap-tests: Likewise.
11517         * modules/ceilf-tests: Likewise.
11518         * modules/ceill-tests: Likewise.
11519         * modules/crypto/des-tests: Likewise.
11520         * modules/crypto/gc-arcfour-tests: Likewise.
11521         * modules/crypto/gc-arctwo-tests: Likewise.
11522         * modules/crypto/gc-des-tests: Likewise.
11523         * modules/crypto/gc-hmac-md5-tests: Likewise.
11524         * modules/crypto/gc-hmac-sha1-tests: Likewise.
11525         * modules/crypto/gc-md2-tests: Likewise.
11526         * modules/crypto/gc-md4-tests: Likewise.
11527         * modules/crypto/gc-md5-tests: Likewise.
11528         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
11529         * modules/crypto/gc-rijndael-tests: Likewise.
11530         * modules/crypto/gc-sha1-tests: Likewise.
11531         * modules/crypto/gc-tests: Likewise.
11532         * modules/crypto/md2-tests: Likewise.
11533         * modules/crypto/md4-tests: Likewise.
11534         * modules/fcntl-h-tests: Likewise.
11535         * modules/floorf-tests: Likewise.
11536         * modules/floorl-tests: Likewise.
11537         * modules/frexp-nolibm-tests: Likewise.
11538         * modules/frexp-tests: Likewise.
11539         * modules/frexpl-nolibm-tests: Likewise.
11540         * modules/frexpl-tests: Likewise.
11541         * modules/getaddrinfo-tests: Likewise.
11542         * modules/inttypes-tests: Likewise.
11543         * modules/isfinite-tests: Likewise.
11544         * modules/isinf-tests: Likewise.
11545         * modules/ldexpl-tests: Likewise.
11546         * modules/locale-tests: Likewise.
11547         * modules/math-tests: Likewise.
11548         * modules/netdb-tests: Likewise.
11549         * modules/netinet_in-tests: Likewise.
11550         * modules/printf-frexp-tests: Likewise.
11551         * modules/printf-frexpl-tests: Likewise.
11552         * modules/priv-set-tests: Likewise.
11553         * modules/random_r-tests: Likewise.
11554         * modules/round-tests: Likewise.
11555         * modules/roundf-tests: Likewise.
11556         * modules/roundl-tests: Likewise.
11557         * modules/search-tests: Likewise.
11558         * modules/select-tests: Likewise.
11559         * modules/signal-tests: Likewise.
11560         * modules/stdbool-tests: Likewise.
11561         * modules/stddef-tests: Likewise.
11562         * modules/stdint-tests: Likewise.
11563         * modules/stdio-tests: Likewise.
11564         * modules/stdlib-tests: Likewise.
11565         * modules/string-tests: Likewise.
11566         * modules/strings-tests: Likewise.
11567         * modules/sys_select-tests: Likewise.
11568         * modules/sys_socket-tests: Likewise.
11569         * modules/sys_stat-tests: Likewise.
11570         * modules/sys_time-tests: Likewise.
11571         * modules/sys_utsname-tests: Likewise.
11572         * modules/sysexits-tests: Likewise.
11573         * modules/time-tests: Likewise.
11574         * modules/trunc-tests: Likewise.
11575         * modules/truncf-tests: Likewise.
11576         * modules/truncl-tests: Likewise.
11577         * modules/tsearch-tests: Likewise.
11578         * modules/unistd-tests: Likewise.
11579         * modules/wchar-tests: Likewise.
11580         * modules/wctype-tests: Likewise.
11581
11582         tests: fix license on several tests
11583         * tests/test-des.c: Update to GPLv3+.
11584         * tests/test-flock.c: Likewise.
11585         * tests/test-fsync.c: Likewise.
11586         * tests/test-futimens.h: Likewise.
11587         * tests/test-gc-arcfour.c: Likewise.
11588         * tests/test-gc-arctwo.c: Likewise.
11589         * tests/test-gc-des.c: Likewise.
11590         * tests/test-gc-hmac-md5.c: Likewise.
11591         * tests/test-gc-hmac-sha1.c: Likewise.
11592         * tests/test-gc-md2.c: Likewise.
11593         * tests/test-gc-md4.c: Likewise.
11594         * tests/test-gc-md5.c: Likewise.
11595         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11596         * tests/test-gc-rijndael.c: Likewise.
11597         * tests/test-gc-sha1.c: Likewise.
11598         * tests/test-gc.c: Likewise.
11599         * tests/test-getcwd.c: Likewise.
11600         * tests/test-link.c: Likewise.
11601         * tests/test-link.h: Likewise.
11602         * tests/test-lutimens.h: Likewise.
11603         * tests/test-md2.c: Likewise.
11604         * tests/test-md4.c: Likewise.
11605         * tests/test-mkdir.h: Likewise.
11606         * tests/test-rename.c: Likewise.
11607         * tests/test-rename.h: Likewise.
11608         * tests/test-safe-alloc.c: Likewise.
11609         * tests/test-utimens-common.h: Likewise.
11610         * tests/test-utimens.h: Likewise.
11611
11612         maint: sync license texts
11613         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
11614         * doc/gpl-3.0.texi: Revert copyright year update.
11615         * doc/lgpl-3.0.texi: Likewise.
11616
11617 2009-12-29  Jim Meyering  <meyering@redhat.com>
11618
11619         update nearly all FSF copyright year lists to include 2009
11620         The files named by the following are exempted:
11621             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
11622               test -f "$dst" && { echo "$dst"; continue; }
11623               test -d "$dst" || continue
11624               echo "$dst"/$(basename "$src")
11625             done > exempt
11626             git ls-files tests/unictype >> exempt
11627         In the remaining files, convert to all-interval notation if
11628         - there is already at least one year interval like 2000-2003
11629         - the file is maintained by me
11630         - the file is in lib/uni*/, where that style already prevails
11631         Otherwise, use update-copyright's default.
11632
11633 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11634         and Eric Blake  <ebb9@byu.net>
11635
11636         tests: don't require debug system() to pass
11637         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
11638         * tests/test-rmdir.h (test_rmdir_func): Likewise.
11639         * tests/test-unlink.h (test_unlink_func): Likewise.
11640         * tests/test-fstatat.c (main): ...into callers.
11641         * tests/test-lstat.c (main): Likewise.
11642         * tests/test-rmdir.c (main): Likewise.
11643         * tests/test-unlink.c (main): Likewise.
11644         * tests/test-unlinkat.c (main): Likewise.
11645         * tests/test-areadlink-with-size.c (main): Don't require a
11646         debug-only system call to pass, aiding cross-testing to mingw.
11647         * tests/test-areadlink.c (main): Likewise.
11648         * tests/test-areadlinkat-with-size.c (main): Likewise.
11649         * tests/test-areadlinkat.c (main): Likewise.
11650         * tests/test-canonicalize-lgpl.c (main): Likewise.
11651         * tests/test-canonicalize.c (main): Likewise.
11652         * tests/test-chown.c (main): Likewise.
11653         * tests/test-fchownat.c (main): Likewise.
11654         * tests/test-lchown.c (main): Likewise.
11655         * tests/test-fdutimensat.c (main): Likewise.
11656         * tests/test-futimens.c (main): Likewise.
11657         * tests/test-link.c (main): Likewise.
11658         * tests/test-linkat.c (main): Likewise.
11659         * tests/test-mkdir.c (main): Likewise.
11660         * tests/test-mkdirat.c (main): Likewise.
11661         * tests/test-mkfifo.c (main): Likewise.
11662         * tests/test-mkfifoat.c (main): Likewise.
11663         * tests/test-mknod.c (main): Likewise.
11664         * tests/test-readlink.c (main): Likewise.
11665         * tests/test-remove.c (main): Likewise.
11666         * tests/test-rename.c (main): Likewise.
11667         * tests/test-renameat.c (main): Likewise.
11668         * tests/test-symlink.c (main): Likewise.
11669         * tests/test-symlinkat.c (main): Likewise.
11670         * tests/test-utimens.c (main): Likewise.
11671         * tests/test-utimensat.c (main): Likewise.
11672
11673 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11674
11675         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
11676         on $(UNUSED_PARAMETER_H) to avoid build failure.
11677
11678 2009-12-28  Jim Meyering  <meyering@redhat.com>
11679
11680         update-copyright: you may specify a max. line length other than 72
11681         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11682
11683         maint: use consistent FSF copyright line syntax
11684         * lib/posixtm.c: Add missing comma in FSF copyright line.
11685         * lib/posixtm.h: Likewise.
11686         * lib/getugroups.c: Add missing ", Inc.".
11687
11688         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
11689         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
11690         FSF copyright line.  Remove trailing blanks.
11691
11692 2009-12-28  Eric Blake  <ebb9@byu.net>
11693
11694         test-dup2: reduce dependencies
11695         * modules/cloexec (Configure.ac): Set witness.
11696         * modules/dup2-tests (Depends-on): Drop cloexec.
11697         * tests/test-dup2.c (main): Skip portion of test if cloexec module
11698         not present.
11699         Suggested by Bruno Haible.
11700
11701 2009-12-26  Bruno Haible  <bruno@clisp.org>
11702
11703         Remove an unneeded dependency.
11704         * modules/fseterr (Depends-on): Remove dup2.
11705
11706 2009-12-26  Eric Blake  <ebb9@byu.net>
11707
11708         tests: use macros.h in more places
11709         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
11710         (ASSERT_STREAM): Provide default of stderr.
11711         * tests/test-dirent-safer.c: Include macros.h, using alternate
11712         stream for assertions.
11713         * tests/test-dup-safer.c: Likewise.
11714         * tests/test-freopen-safer.c: Likewise.
11715         * tests/test-getopt.c: Likewise.
11716         * tests/test-openat-safer.c: Likewise.
11717         * tests/test-pipe.c: Likewise.
11718         * tests/test-popen-safer.c: Likewise.
11719         * modules/dirent-safer-tests (Files): Include macros.h.
11720         * modules/unistd-safer-tests (Files): Likewise.
11721         * modules/freopen-safer-tests (Files): Likewise.
11722         * modules/getopt-posix-tests (Files): Likewise.
11723         * modules/openat-safer-tests (Files): Likewise.
11724         * modules/pipe-tests (Files): Likewise.
11725
11726 2009-12-26  Bruno Haible  <bruno@clisp.org>
11727
11728         javacomp: Portability fix.
11729         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
11730         that it also works on Solaris.
11731
11732 2009-12-26  Bruno Haible  <bruno@clisp.org>
11733
11734         localename: Fix storage allocation of gl_locale_name_thread's result.
11735         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
11736         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
11737         all platforms that have 'uselocale'.
11738         (gl_locale_name_thread_unsafe): New function, extracted from
11739         gl_locale_name_thread.
11740         (gl_locale_name_thread): Call struniq on all platforms that have
11741         'uselocale'.
11742         * tests/test-localename.c (test_locale_name_thread): Check that the
11743         resulting strings are permanently allocated.
11744         * modules/localename-tests (Depends-on): Add strdup.
11745
11746 2009-12-26  Bruno Haible  <bruno@clisp.org>
11747
11748         * tests/test-localename.c (categories): Fill in the strings.
11749
11750 2009-12-26  Jim Meyering  <meyering@redhat.com>
11751
11752         isdir: complete the removal of m4/isdir.m4
11753         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
11754
11755         isdir: clean up, since at least grep still uses it
11756         * lib/isdir.c: Include "isdir.h".
11757         (S_ISDIR): Remove now-unneeded definition.
11758         * modules/isdir (Files): Add lib/isdir.h.
11759         * lib/isdir.h: New file, with declaration.
11760         * m4/isdir.m4: Remove file -- unneeded.
11761
11762 2009-12-25  Bruno Haible  <bruno@clisp.org>
11763
11764         selinux-h: Make generated .h files standalone.
11765         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
11766         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
11767         * lib/se-selinux.in.h: Likewise.
11768         * modules/selinux-h (Depends-on): Add unused-parameter.
11769         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
11770         selinux/selinux.h and selinux/context.h.
11771         Suggested by Eric Blake.
11772
11773 2009-12-25  Bruno Haible  <bruno@clisp.org>
11774
11775         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
11776         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
11777         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
11778         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
11779         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
11780
11781 2009-12-24  Bruno Haible  <bruno@clisp.org>
11782
11783         openat: Fix warning.
11784         * lib/openat-proc.c: Include <unistd.h>.
11785
11786 2009-12-24  Bruno Haible  <bruno@clisp.org>
11787
11788         New module 'unused-parameter'.
11789         * build-aux/unused-parameter.h: New file, extracted from earlier
11790         gnulib-common.m4.
11791         * modules/unused-parameter: New file.
11792         * lib/unistr.h: Include unused-parameter.h.
11793         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
11794         _GL_UNUSED.
11795         * modules/unistr/base (Depends-on): Add unused-parameter.
11796
11797 2009-12-24  Bruno Haible  <bruno@clisp.org>
11798
11799         Add missing dependencies to 'extensions' module.
11800         * m4/extensions.m4: Add comment.
11801         * modules/accept4 (Depends-on): Add extensions.
11802         * modules/dup3 (Depends-on): Likewise.
11803         * modules/fcntl (Depends-on): Likewise.
11804         * modules/futimens (Depends-on): Likewise.
11805         * modules/mknod (Depends-on): Likewise.
11806         * modules/pipe2 (Depends-on): Likewise.
11807         * modules/stat-time (Depends-on): Likewise.
11808         * modules/strcasestr-simple (Depends-on): Likewise.
11809         * modules/strsignal (Depends-on): Likewise.
11810         * modules/utimensat (Depends-on): Likewise.
11811         * modules/localcharset (Depends-on): Likewise. Needed because of
11812         gl_FCNTL_O_FLAGS.
11813         * modules/wcrtomb (Depends-on): Likewise. Needed because of
11814         AC_TYPE_MBSTATE_T.
11815         * modules/wcsnrtombs (Depends-on): Likewise.
11816         * modules/wcsrtombs (Depends-on): Likewise.
11817
11818 2009-12-24  Bruno Haible  <bruno@clisp.org>
11819
11820         binary-io: Avoid gcc warning due to SET_BINARY.
11821         * lib/binary-io.h (SET_BINARY): Cast the result to void.
11822         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
11823
11824 2009-12-24  Bruno Haible  <bruno@clisp.org>
11825
11826         Avoid future namespace pollution on glibc systems.
11827         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
11828         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
11829         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
11830         glibc systems.
11831
11832 2009-12-24  Bruno Haible  <bruno@clisp.org>
11833
11834         Refactor common macros used in tests.
11835         * tests/macros.h: New file.
11836         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
11837         and/or <stdlib.h>, if appropriate.
11838         (ASSERT, SIZEOF): Remove macros.
11839         * tests/test-areadlink-with-size.c: Likewise.
11840         * tests/test-areadlinkat.c: Likewise.
11841         * tests/test-areadlinkat-with-size.c: Likewise.
11842         * tests/test-argmatch.c: Likewise.
11843         * tests/test-argv-iter.c: Likewise.
11844         * tests/test-array-mergesort.c: Likewise.
11845         * tests/test-array_list.c: Likewise.
11846         * tests/test-array_oset.c: Likewise.
11847         * tests/test-avltree_list.c: Likewise.
11848         * tests/test-avltree_oset.c: Likewise.
11849         * tests/test-avltreehash_list.c: Likewise.
11850         * tests/test-base64.c: Likewise.
11851         * tests/test-binary-io.c: Likewise.
11852         * tests/test-bitrotate.c: Likewise.
11853         * tests/test-btowc.c: Likewise.
11854         * tests/test-byteswap.c: Likewise.
11855         * tests/test-c-ctype.c: Likewise.
11856         * tests/test-c-stack.c: Likewise.
11857         * tests/test-c-strcasecmp.c: Likewise.
11858         * tests/test-c-strcasestr.c: Likewise.
11859         * tests/test-c-strncasecmp.c: Likewise.
11860         * tests/test-c-strstr.c: Likewise.
11861         * tests/test-canonicalize-lgpl.c: Likewise.
11862         * tests/test-canonicalize.c: Likewise.
11863         * tests/test-carray_list.c: Likewise.
11864         * tests/test-ceilf1.c: Likewise.
11865         * tests/test-ceilf2.c: Likewise.
11866         * tests/test-ceill.c: Likewise.
11867         * tests/test-chown.c: Likewise.
11868         * tests/test-cloexec.c: Likewise.
11869         * tests/test-copy-acl.c: Likewise.
11870         * tests/test-copy-file.c: Likewise.
11871         * tests/test-count-one-bits.c: Likewise.
11872         * tests/test-dprintf-posix.c: Likewise.
11873         * tests/test-dup2.c: Likewise.
11874         * tests/test-dup3.c: Likewise.
11875         * tests/test-duplocale.c: Likewise.
11876         * tests/test-fbufmode.c: Likewise.
11877         * tests/test-fchdir.c: Likewise.
11878         * tests/test-fchownat.c: Likewise.
11879         * tests/test-fcntl-safer.c: Likewise.
11880         * tests/test-fcntl.c: Likewise.
11881         * tests/test-fdopendir.c: Likewise.
11882         * tests/test-fdutimensat.c: Likewise.
11883         * tests/test-fflush2.c: Likewise.
11884         * tests/test-file-has-acl.c: Likewise.
11885         * tests/test-filevercmp.c: Likewise.
11886         * tests/test-flock.c: Likewise.
11887         * tests/test-floorf1.c: Likewise.
11888         * tests/test-floorf2.c: Likewise.
11889         * tests/test-floorl.c: Likewise.
11890         * tests/test-fnmatch.c: Likewise.
11891         * tests/test-fopen.h: Likewise.
11892         * tests/test-fpending.c: Likewise.
11893         * tests/test-fprintf-posix.c: Likewise.
11894         * tests/test-fpurge.c: Likewise.
11895         * tests/test-freadable.c: Likewise.
11896         * tests/test-freadahead.c: Likewise.
11897         * tests/test-freading.c: Likewise.
11898         * tests/test-freadptr.c: Likewise.
11899         * tests/test-freadptr2.c: Likewise.
11900         * tests/test-freadseek.c: Likewise.
11901         * tests/test-freopen.c: Likewise.
11902         * tests/test-frexp.c: Likewise.
11903         * tests/test-frexpl.c: Likewise.
11904         * tests/test-fseek.c: Likewise.
11905         * tests/test-fseeko.c: Likewise.
11906         * tests/test-fstatat.c: Likewise.
11907         * tests/test-fstrcmp.c: Likewise.
11908         * tests/test-fsync.c: Likewise.
11909         * tests/test-ftell.c: Likewise.
11910         * tests/test-ftello.c: Likewise.
11911         * tests/test-func.c: Likewise.
11912         * tests/test-futimens.c: Likewise.
11913         * tests/test-fwritable.c: Likewise.
11914         * tests/test-fwriting.c: Likewise.
11915         * tests/test-getcwd.c: Likewise.
11916         * tests/test-getdate.c: Likewise.
11917         * tests/test-getdelim.c: Likewise.
11918         * tests/test-getdtablesize.c: Likewise.
11919         * tests/test-getgroups.c: Likewise.
11920         * tests/test-getline.c: Likewise.
11921         * tests/test-getndelim2.c: Likewise.
11922         * tests/test-glob.c: Likewise.
11923         * tests/test-hash.c: Likewise.
11924         * tests/test-i-ring.c: Likewise.
11925         * tests/test-iconv-utf.c: Likewise.
11926         * tests/test-iconv.c: Likewise.
11927         * tests/test-idpriv-drop.c: Likewise.
11928         * tests/test-idpriv-droptemp.c: Likewise.
11929         * tests/test-inet_ntop.c: Likewise.
11930         * tests/test-inet_pton.c: Likewise.
11931         * tests/test-isblank.c: Likewise.
11932         * tests/test-isfinite.c: Likewise.
11933         * tests/test-isinf.c: Likewise.
11934         * tests/test-isnan.c: Likewise.
11935         * tests/test-isnand.h: Likewise.
11936         * tests/test-isnanf.h: Likewise.
11937         * tests/test-isnanl.h: Likewise.
11938         * tests/test-lchown.c: Likewise.
11939         * tests/test-ldexpl.c: Likewise.
11940         * tests/test-link.c: Likewise.
11941         * tests/test-linkat.c: Likewise.
11942         * tests/test-linked_list.c: Likewise.
11943         * tests/test-linkedhash_list.c: Likewise.
11944         * tests/test-localename.c: Likewise.
11945         * tests/test-lseek.c: Likewise.
11946         * tests/test-lstat.c: Likewise.
11947         * tests/test-mbmemcasecmp.c: Likewise.
11948         * tests/test-mbmemcasecoll.c: Likewise.
11949         * tests/test-mbrtowc.c: Likewise.
11950         * tests/test-mbscasecmp.c: Likewise.
11951         * tests/test-mbscasestr1.c: Likewise.
11952         * tests/test-mbscasestr2.c: Likewise.
11953         * tests/test-mbscasestr3.c: Likewise.
11954         * tests/test-mbscasestr4.c: Likewise.
11955         * tests/test-mbschr.c: Likewise.
11956         * tests/test-mbscspn.c: Likewise.
11957         * tests/test-mbsinit.c: Likewise.
11958         * tests/test-mbsncasecmp.c: Likewise.
11959         * tests/test-mbsnrtowcs.c: Likewise.
11960         * tests/test-mbspbrk.c: Likewise.
11961         * tests/test-mbspcasecmp.c: Likewise.
11962         * tests/test-mbsrchr.c: Likewise.
11963         * tests/test-mbsrtowcs.c: Likewise.
11964         * tests/test-mbsspn.c: Likewise.
11965         * tests/test-mbsstr1.c: Likewise.
11966         * tests/test-mbsstr2.c: Likewise.
11967         * tests/test-mbsstr3.c: Likewise.
11968         * tests/test-memchr.c: Likewise.
11969         * tests/test-memchr2.c: Likewise.
11970         * tests/test-memcmp.c: Likewise.
11971         * tests/test-memmem.c: Likewise.
11972         * tests/test-memrchr.c: Likewise.
11973         * tests/test-mkdir.c: Likewise.
11974         * tests/test-mkdirat.c: Likewise.
11975         * tests/test-mkfifo.c: Likewise.
11976         * tests/test-mkfifoat.c: Likewise.
11977         * tests/test-mknod.c: Likewise.
11978         * tests/test-nanosleep.c: Likewise.
11979         * tests/test-nl_langinfo.c: Likewise.
11980         * tests/test-obstack-printf.c: Likewise.
11981         * tests/test-open.c: Likewise.
11982         * tests/test-openat.c: Likewise.
11983         * tests/test-pipe-filter-gi1.c: Likewise.
11984         * tests/test-pipe-filter-gi2-main.c: Likewise.
11985         * tests/test-pipe-filter-ii1.c: Likewise.
11986         * tests/test-pipe-filter-ii2-main.c: Likewise.
11987         * tests/test-pipe2.c: Likewise.
11988         * tests/test-popen.h: Likewise.
11989         * tests/test-posixtm.c: Likewise.
11990         * tests/test-pread.c: Likewise.
11991         * tests/test-printf-frexp.c: Likewise.
11992         * tests/test-printf-frexpl.c: Likewise.
11993         * tests/test-printf-posix.c: Likewise.
11994         * tests/test-priv-set.c: Likewise.
11995         * tests/test-quotearg.c: Likewise.
11996         * tests/test-random_r.c: Likewise.
11997         * tests/test-rawmemchr.c: Likewise.
11998         * tests/test-rbtree_list.c: Likewise.
11999         * tests/test-rbtree_oset.c: Likewise.
12000         * tests/test-rbtreehash_list.c: Likewise.
12001         * tests/test-readlink.c: Likewise.
12002         * tests/test-remove.c: Likewise.
12003         * tests/test-rename.c: Likewise.
12004         * tests/test-renameat.c: Likewise.
12005         * tests/test-rmdir.c: Likewise.
12006         * tests/test-round1.c: Likewise.
12007         * tests/test-roundf1.c: Likewise.
12008         * tests/test-roundl.c: Likewise.
12009         * tests/test-safe-alloc.c: Likewise.
12010         * tests/test-sameacls.c: Likewise.
12011         * tests/test-set-mode-acl.c: Likewise.
12012         * tests/test-setenv.c: Likewise.
12013         * tests/test-sigaction.c: Likewise.
12014         * tests/test-signbit.c: Likewise.
12015         * tests/test-sleep.c: Likewise.
12016         * tests/test-snprintf-posix.c: Likewise.
12017         * tests/test-snprintf.c: Likewise.
12018         * tests/test-sprintf-posix.c: Likewise.
12019         * tests/test-stat-time.c: Likewise.
12020         * tests/test-stat.c: Likewise.
12021         * tests/test-strcasestr.c: Likewise.
12022         * tests/test-strchrnul.c: Likewise.
12023         * tests/test-strerror.c: Likewise.
12024         * tests/test-striconv.c: Likewise.
12025         * tests/test-striconveh.c: Likewise.
12026         * tests/test-striconveha.c: Likewise.
12027         * tests/test-strsignal.c: Likewise.
12028         * tests/test-strstr.c: Likewise.
12029         * tests/test-strtod.c: Likewise.
12030         * tests/test-strverscmp.c: Likewise.
12031         * tests/test-symlink.c: Likewise.
12032         * tests/test-symlinkat.c: Likewise.
12033         * tests/test-trunc1.c: Likewise.
12034         * tests/test-trunc2.c: Likewise.
12035         * tests/test-truncf1.c: Likewise.
12036         * tests/test-truncf2.c: Likewise.
12037         * tests/test-truncl.c: Likewise.
12038         * tests/test-uname.c: Likewise.
12039         * tests/test-unlink.c: Likewise.
12040         * tests/test-unlinkat.c: Likewise.
12041         * tests/test-unsetenv.c: Likewise.
12042         * tests/test-usleep.c: Likewise.
12043         * tests/test-utimens.c: Likewise.
12044         * tests/test-utimensat.c: Likewise.
12045         * tests/test-vasnprintf-posix.c: Likewise.
12046         * tests/test-vasnprintf-posix2.c: Likewise.
12047         * tests/test-vasnprintf.c: Likewise.
12048         * tests/test-vasprintf-posix.c: Likewise.
12049         * tests/test-vasprintf.c: Likewise.
12050         * tests/test-vdprintf-posix.c: Likewise.
12051         * tests/test-vfprintf-posix.c: Likewise.
12052         * tests/test-vprintf-posix.c: Likewise.
12053         * tests/test-vsnprintf-posix.c: Likewise.
12054         * tests/test-vsnprintf.c: Likewise.
12055         * tests/test-vsprintf-posix.c: Likewise.
12056         * tests/test-wcrtomb.c: Likewise.
12057         * tests/test-wcsnrtombs.c: Likewise.
12058         * tests/test-wcsrtombs.c: Likewise.
12059         * tests/test-wctype.c: Likewise.
12060         * tests/test-wcwidth.c: Likewise.
12061         * tests/test-xfprintf-posix.c: Likewise.
12062         * tests/test-xmemdup0.c: Likewise.
12063         * tests/test-xprintf-posix.c: Likewise.
12064         * tests/test-xvasprintf.c: Likewise.
12065         * tests/unicase/test-locale-language.c: Likewise.
12066         * tests/unicase/test-mapping-part1.h: Likewise.
12067         * tests/unicase/test-predicate-part1.h: Likewise.
12068         * tests/unicase/test-u8-casecmp.c: Likewise.
12069         * tests/unicase/test-u8-casecoll.c: Likewise.
12070         * tests/unicase/test-u8-casefold.c: Likewise.
12071         * tests/unicase/test-u8-is-cased.c: Likewise.
12072         * tests/unicase/test-u8-is-casefolded.c: Likewise.
12073         * tests/unicase/test-u8-is-lowercase.c: Likewise.
12074         * tests/unicase/test-u8-is-titlecase.c: Likewise.
12075         * tests/unicase/test-u8-is-uppercase.c: Likewise.
12076         * tests/unicase/test-u8-tolower.c: Likewise.
12077         * tests/unicase/test-u8-totitle.c: Likewise.
12078         * tests/unicase/test-u8-toupper.c: Likewise.
12079         * tests/unicase/test-u16-casecmp.c: Likewise.
12080         * tests/unicase/test-u16-casecoll.c: Likewise.
12081         * tests/unicase/test-u16-casefold.c: Likewise.
12082         * tests/unicase/test-u16-is-cased.c: Likewise.
12083         * tests/unicase/test-u16-is-casefolded.c: Likewise.
12084         * tests/unicase/test-u16-is-lowercase.c: Likewise.
12085         * tests/unicase/test-u16-is-titlecase.c: Likewise.
12086         * tests/unicase/test-u16-is-uppercase.c: Likewise.
12087         * tests/unicase/test-u16-tolower.c: Likewise.
12088         * tests/unicase/test-u16-totitle.c: Likewise.
12089         * tests/unicase/test-u16-toupper.c: Likewise.
12090         * tests/unicase/test-u32-casecmp.c: Likewise.
12091         * tests/unicase/test-u32-casecoll.c: Likewise.
12092         * tests/unicase/test-u32-casefold.c: Likewise.
12093         * tests/unicase/test-u32-is-cased.c: Likewise.
12094         * tests/unicase/test-u32-is-casefolded.c: Likewise.
12095         * tests/unicase/test-u32-is-lowercase.c: Likewise.
12096         * tests/unicase/test-u32-is-titlecase.c: Likewise.
12097         * tests/unicase/test-u32-is-uppercase.c: Likewise.
12098         * tests/unicase/test-u32-tolower.c: Likewise.
12099         * tests/unicase/test-u32-totitle.c: Likewise.
12100         * tests/unicase/test-u32-toupper.c: Likewise.
12101         * tests/unicase/test-ulc-casecmp.c: Likewise.
12102         * tests/unicase/test-ulc-casecoll.c: Likewise.
12103         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
12104         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
12105         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
12106         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
12107         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
12108         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
12109         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
12110         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
12111         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
12112         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
12113         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
12114         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
12115         * tests/unictype/test-bidi_byname.c: Likewise.
12116         * tests/unictype/test-bidi_name.c: Likewise.
12117         * tests/unictype/test-bidi_of.c: Likewise.
12118         * tests/unictype/test-bidi_test.c: Likewise.
12119         * tests/unictype/test-block_list.c: Likewise.
12120         * tests/unictype/test-block_of.c: Likewise.
12121         * tests/unictype/test-block_test.c: Likewise.
12122         * tests/unictype/test-categ_and.c: Likewise.
12123         * tests/unictype/test-categ_and_not.c: Likewise.
12124         * tests/unictype/test-categ_byname.c: Likewise.
12125         * tests/unictype/test-categ_name.c: Likewise.
12126         * tests/unictype/test-categ_none.c: Likewise.
12127         * tests/unictype/test-categ_of.c: Likewise.
12128         * tests/unictype/test-categ_or.c: Likewise.
12129         * tests/unictype/test-categ_test_withtable.c: Likewise.
12130         * tests/unictype/test-combining.c: Likewise.
12131         * tests/unictype/test-decdigit.c: Likewise.
12132         * tests/unictype/test-digit.c: Likewise.
12133         * tests/unictype/test-mirror.c: Likewise.
12134         * tests/unictype/test-numeric.c: Likewise.
12135         * tests/unictype/test-pr_byname.c: Likewise.
12136         * tests/unictype/test-pr_test.c: Likewise.
12137         * tests/unictype/test-predicate-part1.h: Likewise.
12138         * tests/unictype/test-scripts.c: Likewise.
12139         * tests/unictype/test-sy_c_ident.c: Likewise.
12140         * tests/unictype/test-sy_java_ident.c: Likewise.
12141         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
12142         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
12143         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
12144         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
12145         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
12146         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
12147         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
12148         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
12149         * tests/uninorm/test-canonical-decomposition.c: Likewise.
12150         * tests/uninorm/test-compat-decomposition.c: Likewise.
12151         * tests/uninorm/test-composition.c: Likewise.
12152         * tests/uninorm/test-decomposing-form.c: Likewise.
12153         * tests/uninorm/test-decomposition.c: Likewise.
12154         * tests/uninorm/test-u8-nfc.c: Likewise.
12155         * tests/uninorm/test-u8-nfd.c: Likewise.
12156         * tests/uninorm/test-u8-nfkc.c: Likewise.
12157         * tests/uninorm/test-u8-nfkd.c: Likewise.
12158         * tests/uninorm/test-u8-normcmp.c: Likewise.
12159         * tests/uninorm/test-u8-normcoll.c: Likewise.
12160         * tests/uninorm/test-u16-nfc.c: Likewise.
12161         * tests/uninorm/test-u16-nfd.c: Likewise.
12162         * tests/uninorm/test-u16-nfkc.c: Likewise.
12163         * tests/uninorm/test-u16-nfkd.c: Likewise.
12164         * tests/uninorm/test-u16-normcmp.c: Likewise.
12165         * tests/uninorm/test-u16-normcoll.c: Likewise.
12166         * tests/uninorm/test-u32-nfc.c: Likewise.
12167         * tests/uninorm/test-u32-nfd.c: Likewise.
12168         * tests/uninorm/test-u32-nfkc.c: Likewise.
12169         * tests/uninorm/test-u32-nfkd.c: Likewise.
12170         * tests/uninorm/test-u32-normalize-big.c: Likewise.
12171         * tests/uninorm/test-u32-normcmp.c: Likewise.
12172         * tests/uninorm/test-u32-normcoll.c: Likewise.
12173         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
12174         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
12175         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
12176         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
12177         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
12178         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
12179         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
12180         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
12181         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
12182         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
12183         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
12184         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
12185         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
12186         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
12187         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
12188         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
12189         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
12190         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
12191         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
12192         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
12193         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
12194         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
12195         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
12196         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
12197         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
12198         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
12199         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
12200         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
12201         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
12202         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
12203         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
12204         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
12205         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
12206         * tests/uniwidth/test-u8-strwidth.c: Likewise.
12207         * tests/uniwidth/test-u8-width.c: Likewise.
12208         * tests/uniwidth/test-u16-strwidth.c: Likewise.
12209         * tests/uniwidth/test-u16-width.c: Likewise.
12210         * tests/uniwidth/test-u32-strwidth.c: Likewise.
12211         * tests/uniwidth/test-u32-width.c: Likewise.
12212         * tests/uniwidth/test-uc_width.c: Likewise.
12213         * tests/uniwidth/test-uc_width2.c: Likewise.
12214         * modules/acl-tests (Files): Add tests/macros.h.
12215         * modules/areadlink-tests (Files): Likewise.
12216         * modules/areadlink-with-size-tests (Files): Likewise.
12217         * modules/areadlinkat-tests (Files): Likewise.
12218         * modules/areadlinkat-with-size-tests (Files): Likewise.
12219         * modules/argmatch-tests (Files): Likewise.
12220         * modules/argv-iter-tests (Files): Likewise.
12221         * modules/array-list-tests (Files): Likewise.
12222         * modules/array-mergesort-tests (Files): Likewise.
12223         * modules/array-oset-tests (Files): Likewise.
12224         * modules/avltree-list-tests (Files): Likewise.
12225         * modules/avltree-oset-tests (Files): Likewise.
12226         * modules/avltreehash-list-tests (Files): Likewise.
12227         * modules/base64-tests (Files): Likewise.
12228         * modules/binary-io-tests (Files): Likewise.
12229         * modules/bitrotate-tests (Files): Likewise.
12230         * modules/btowc-tests (Files): Likewise.
12231         * modules/byteswap-tests (Files): Likewise.
12232         * modules/c-ctype-tests (Files): Likewise.
12233         * modules/c-stack-tests (Files): Likewise.
12234         * modules/c-strcase-tests (Files): Likewise.
12235         * modules/c-strcasestr-tests (Files): Likewise.
12236         * modules/c-strstr-tests (Files): Likewise.
12237         * modules/canonicalize-lgpl-tests (Files): Likewise.
12238         * modules/canonicalize-tests (Files): Likewise.
12239         * modules/carray-list-tests (Files): Likewise.
12240         * modules/ceilf-tests (Files): Likewise.
12241         * modules/ceill-tests (Files): Likewise.
12242         * modules/chown-tests (Files): Likewise.
12243         * modules/cloexec-tests (Files): Likewise.
12244         * modules/copy-file-tests (Files): Likewise.
12245         * modules/count-one-bits-tests (Files): Likewise.
12246         * modules/dprintf-posix-tests (Files): Likewise.
12247         * modules/dup2-tests (Files): Likewise.
12248         * modules/dup3-tests (Files): Likewise.
12249         * modules/duplocale-tests (Files): Likewise.
12250         * modules/fbufmode-tests (Files): Likewise.
12251         * modules/fchdir-tests (Files): Likewise.
12252         * modules/fcntl-safer-tests (Files): Likewise.
12253         * modules/fcntl-tests (Files): Likewise.
12254         * modules/fdopendir-tests (Files): Likewise.
12255         * modules/fdutimensat-tests (Files): Likewise.
12256         * modules/fflush-tests (Files): Likewise.
12257         * modules/filevercmp-tests (Files): Likewise.
12258         * modules/flock-tests (Files): Likewise.
12259         * modules/floorf-tests (Files): Likewise.
12260         * modules/floorl-tests (Files): Likewise.
12261         * modules/fnmatch-tests (Files): Likewise.
12262         * modules/fopen-safer-tests (Files): Likewise.
12263         * modules/fopen-tests (Files): Likewise.
12264         * modules/fpending-tests (Files): Likewise.
12265         * modules/fprintf-posix-tests (Files): Likewise.
12266         * modules/fpurge-tests (Files): Likewise.
12267         * modules/freadable-tests (Files): Likewise.
12268         * modules/freadahead-tests (Files): Likewise.
12269         * modules/freading-tests (Files): Likewise.
12270         * modules/freadptr-tests (Files): Likewise.
12271         * modules/freadseek-tests (Files): Likewise.
12272         * modules/freopen-tests (Files): Likewise.
12273         * modules/frexp-nolibm-tests (Files): Likewise.
12274         * modules/frexp-tests (Files): Likewise.
12275         * modules/frexpl-nolibm-tests (Files): Likewise.
12276         * modules/frexpl-tests (Files): Likewise.
12277         * modules/fseek-tests (Files): Likewise.
12278         * modules/fseeko-tests (Files): Likewise.
12279         * modules/fstrcmp-tests (Files): Likewise.
12280         * modules/fsync-tests (Files): Likewise.
12281         * modules/ftell-tests (Files): Likewise.
12282         * modules/ftello-tests (Files): Likewise.
12283         * modules/func-tests (Files): Likewise.
12284         * modules/futimens-tests (Files): Likewise.
12285         * modules/fwritable-tests (Files): Likewise.
12286         * modules/fwriting-tests (Files): Likewise.
12287         * modules/getcwd-tests (Files): Likewise.
12288         * modules/getdate-tests (Files): Likewise.
12289         * modules/getdelim-tests (Files): Likewise.
12290         * modules/getdtablesize-tests (Files): Likewise.
12291         * modules/getgroups-tests (Files): Likewise.
12292         * modules/getline-tests (Files): Likewise.
12293         * modules/getndelim2-tests (Files): Likewise.
12294         * modules/glob-tests (Files): Likewise.
12295         * modules/hash-tests (Files): Likewise.
12296         * modules/i-ring-tests (Files): Likewise.
12297         * modules/iconv-tests (Files): Likewise.
12298         * modules/iconv_open-utf-tests (Files): Likewise.
12299         * modules/idpriv-drop-tests (Files): Likewise.
12300         * modules/idpriv-droptemp-tests (Files): Likewise.
12301         * modules/inet_ntop-tests (Files): Likewise.
12302         * modules/inet_pton-tests (Files): Likewise.
12303         * modules/isblank-tests (Files): Likewise.
12304         * modules/isfinite-tests (Files): Likewise.
12305         * modules/isinf-tests (Files): Likewise.
12306         * modules/isnan-tests (Files): Likewise.
12307         * modules/isnand-nolibm-tests (Files): Likewise.
12308         * modules/isnand-tests (Files): Likewise.
12309         * modules/isnanf-nolibm-tests (Files): Likewise.
12310         * modules/isnanf-tests (Files): Likewise.
12311         * modules/isnanl-nolibm-tests (Files): Likewise.
12312         * modules/isnanl-tests (Files): Likewise.
12313         * modules/lchown-tests (Files): Likewise.
12314         * modules/ldexpl-tests (Files): Likewise.
12315         * modules/link-tests (Files): Likewise.
12316         * modules/linkat-tests (Files): Likewise.
12317         * modules/linked-list-tests (Files): Likewise.
12318         * modules/linkedhash-list-tests (Files): Likewise.
12319         * modules/localename-tests (Files): Likewise.
12320         * modules/lseek-tests (Files): Likewise.
12321         * modules/lstat-tests (Files): Likewise.
12322         * modules/mbmemcasecmp-tests (Files): Likewise.
12323         * modules/mbmemcasecoll-tests (Files): Likewise.
12324         * modules/mbrtowc-tests (Files): Likewise.
12325         * modules/mbscasecmp-tests (Files): Likewise.
12326         * modules/mbscasestr-tests (Files): Likewise.
12327         * modules/mbschr-tests (Files): Likewise.
12328         * modules/mbscspn-tests (Files): Likewise.
12329         * modules/mbsinit-tests (Files): Likewise.
12330         * modules/mbsncasecmp-tests (Files): Likewise.
12331         * modules/mbsnrtowcs-tests (Files): Likewise.
12332         * modules/mbspbrk-tests (Files): Likewise.
12333         * modules/mbspcasecmp-tests (Files): Likewise.
12334         * modules/mbsrchr-tests (Files): Likewise.
12335         * modules/mbsrtowcs-tests (Files): Likewise.
12336         * modules/mbsspn-tests (Files): Likewise.
12337         * modules/mbsstr-tests (Files): Likewise.
12338         * modules/memchr-tests (Files): Likewise.
12339         * modules/memchr2-tests (Files): Likewise.
12340         * modules/memcmp-tests (Files): Likewise.
12341         * modules/memmem-tests (Files): Likewise.
12342         * modules/memrchr-tests (Files): Likewise.
12343         * modules/mkdir-tests (Files): Likewise.
12344         * modules/mkfifo-tests (Files): Likewise.
12345         * modules/mkfifoat-tests (Files): Likewise.
12346         * modules/mknod-tests (Files): Likewise.
12347         * modules/nanosleep-tests (Files): Likewise.
12348         * modules/nl_langinfo-tests (Files): Likewise.
12349         * modules/obstack-printf-tests (Files): Likewise.
12350         * modules/open-tests (Files): Likewise.
12351         * modules/openat-tests (Files): Likewise.
12352         * modules/pipe-filter-gi-tests (Files): Likewise.
12353         * modules/pipe-filter-ii-tests (Files): Likewise.
12354         * modules/pipe2-tests (Files): Likewise.
12355         * modules/popen-safer-tests (Files): Likewise.
12356         * modules/popen-tests (Files): Likewise.
12357         * modules/posixtm-tests (Files): Likewise.
12358         * modules/pread-tests (Files): Likewise.
12359         * modules/printf-frexp-tests (Files): Likewise.
12360         * modules/printf-frexpl-tests (Files): Likewise.
12361         * modules/printf-posix-tests (Files): Likewise.
12362         * modules/priv-set-tests (Files): Likewise.
12363         * modules/quotearg-tests (Files): Likewise.
12364         * modules/random_r-tests (Files): Likewise.
12365         * modules/rawmemchr-tests (Files): Likewise.
12366         * modules/rbtree-list-tests (Files): Likewise.
12367         * modules/rbtree-oset-tests (Files): Likewise.
12368         * modules/rbtreehash-list-tests (Files): Likewise.
12369         * modules/readlink-tests (Files): Likewise.
12370         * modules/remove-tests (Files): Likewise.
12371         * modules/rename-tests (Files): Likewise.
12372         * modules/renameat-tests (Files): Likewise.
12373         * modules/rmdir-tests (Files): Likewise.
12374         * modules/round-tests (Files): Likewise.
12375         * modules/roundf-tests (Files): Likewise.
12376         * modules/roundl-tests (Files): Likewise.
12377         * modules/safe-alloc-tests (Files): Likewise.
12378         * modules/setenv-tests (Files): Likewise.
12379         * modules/sigaction-tests (Files): Likewise.
12380         * modules/signbit-tests (Files): Likewise.
12381         * modules/sleep-tests (Files): Likewise.
12382         * modules/snprintf-posix-tests (Files): Likewise.
12383         * modules/snprintf-tests (Files): Likewise.
12384         * modules/sprintf-posix-tests (Files): Likewise.
12385         * modules/stat-tests (Files): Likewise.
12386         * modules/stat-time-tests (Files): Likewise.
12387         * modules/strcasestr-tests (Files): Likewise.
12388         * modules/strchrnul-tests (Files): Likewise.
12389         * modules/strerror-tests (Files): Likewise.
12390         * modules/striconv-tests (Files): Likewise.
12391         * modules/striconveh-tests (Files): Likewise.
12392         * modules/striconveha-tests (Files): Likewise.
12393         * modules/strsignal-tests (Files): Likewise.
12394         * modules/strstr-tests (Files): Likewise.
12395         * modules/strtod-tests (Files): Likewise.
12396         * modules/strverscmp-tests (Files): Likewise.
12397         * modules/symlink-tests (Files): Likewise.
12398         * modules/symlinkat-tests (Files): Likewise.
12399         * modules/trunc-tests (Files): Likewise.
12400         * modules/truncf-tests (Files): Likewise.
12401         * modules/truncl-tests (Files): Likewise.
12402         * modules/uname-tests (Files): Likewise.
12403         * modules/unicase/cased-tests (Files): Likewise.
12404         * modules/unicase/ignorable-tests (Files): Likewise.
12405         * modules/unicase/locale-language-tests (Files): Likewise.
12406         * modules/unicase/tolower-tests (Files): Likewise.
12407         * modules/unicase/totitle-tests (Files): Likewise.
12408         * modules/unicase/toupper-tests (Files): Likewise.
12409         * modules/unicase/u8-casecmp-tests (Files): Likewise.
12410         * modules/unicase/u8-casecoll-tests (Files): Likewise.
12411         * modules/unicase/u8-casefold-tests (Files): Likewise.
12412         * modules/unicase/u8-is-cased-tests (Files): Likewise.
12413         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
12414         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
12415         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
12416         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
12417         * modules/unicase/u8-tolower-tests (Files): Likewise.
12418         * modules/unicase/u8-totitle-tests (Files): Likewise.
12419         * modules/unicase/u8-toupper-tests (Files): Likewise.
12420         * modules/unicase/u16-casecmp-tests (Files): Likewise.
12421         * modules/unicase/u16-casecoll-tests (Files): Likewise.
12422         * modules/unicase/u16-casefold-tests (Files): Likewise.
12423         * modules/unicase/u16-is-cased-tests (Files): Likewise.
12424         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
12425         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
12426         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
12427         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
12428         * modules/unicase/u16-tolower-tests (Files): Likewise.
12429         * modules/unicase/u16-totitle-tests (Files): Likewise.
12430         * modules/unicase/u16-toupper-tests (Files): Likewise.
12431         * modules/unicase/u32-casecmp-tests (Files): Likewise.
12432         * modules/unicase/u32-casecoll-tests (Files): Likewise.
12433         * modules/unicase/u32-casefold-tests (Files): Likewise.
12434         * modules/unicase/u32-is-cased-tests (Files): Likewise.
12435         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
12436         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
12437         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
12438         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
12439         * modules/unicase/u32-tolower-tests (Files): Likewise.
12440         * modules/unicase/u32-totitle-tests (Files): Likewise.
12441         * modules/unicase/u32-toupper-tests (Files): Likewise.
12442         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
12443         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
12444         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
12445         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
12446         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
12447         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
12448         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
12449         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
12450         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
12451         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
12452         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
12453         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
12454         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
12455         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
12456         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
12457         * modules/unictype/bidicategory-name-tests (Files): Likewise.
12458         * modules/unictype/bidicategory-of-tests (Files): Likewise.
12459         * modules/unictype/bidicategory-test-tests (Files): Likewise.
12460         * modules/unictype/block-list-tests (Files): Likewise.
12461         * modules/unictype/block-of-tests (Files): Likewise.
12462         * modules/unictype/block-test-tests (Files): Likewise.
12463         * modules/unictype/category-C-tests (Files): Likewise.
12464         * modules/unictype/category-Cc-tests (Files): Likewise.
12465         * modules/unictype/category-Cf-tests (Files): Likewise.
12466         * modules/unictype/category-Cn-tests (Files): Likewise.
12467         * modules/unictype/category-Co-tests (Files): Likewise.
12468         * modules/unictype/category-Cs-tests (Files): Likewise.
12469         * modules/unictype/category-L-tests (Files): Likewise.
12470         * modules/unictype/category-Ll-tests (Files): Likewise.
12471         * modules/unictype/category-Lm-tests (Files): Likewise.
12472         * modules/unictype/category-Lo-tests (Files): Likewise.
12473         * modules/unictype/category-Lt-tests (Files): Likewise.
12474         * modules/unictype/category-Lu-tests (Files): Likewise.
12475         * modules/unictype/category-M-tests (Files): Likewise.
12476         * modules/unictype/category-Mc-tests (Files): Likewise.
12477         * modules/unictype/category-Me-tests (Files): Likewise.
12478         * modules/unictype/category-Mn-tests (Files): Likewise.
12479         * modules/unictype/category-N-tests (Files): Likewise.
12480         * modules/unictype/category-Nd-tests (Files): Likewise.
12481         * modules/unictype/category-Nl-tests (Files): Likewise.
12482         * modules/unictype/category-No-tests (Files): Likewise.
12483         * modules/unictype/category-P-tests (Files): Likewise.
12484         * modules/unictype/category-Pc-tests (Files): Likewise.
12485         * modules/unictype/category-Pd-tests (Files): Likewise.
12486         * modules/unictype/category-Pe-tests (Files): Likewise.
12487         * modules/unictype/category-Pf-tests (Files): Likewise.
12488         * modules/unictype/category-Pi-tests (Files): Likewise.
12489         * modules/unictype/category-Po-tests (Files): Likewise.
12490         * modules/unictype/category-Ps-tests (Files): Likewise.
12491         * modules/unictype/category-S-tests (Files): Likewise.
12492         * modules/unictype/category-Sc-tests (Files): Likewise.
12493         * modules/unictype/category-Sk-tests (Files): Likewise.
12494         * modules/unictype/category-Sm-tests (Files): Likewise.
12495         * modules/unictype/category-So-tests (Files): Likewise.
12496         * modules/unictype/category-Z-tests (Files): Likewise.
12497         * modules/unictype/category-Zl-tests (Files): Likewise.
12498         * modules/unictype/category-Zp-tests (Files): Likewise.
12499         * modules/unictype/category-Zs-tests (Files): Likewise.
12500         * modules/unictype/category-and-not-tests (Files): Likewise.
12501         * modules/unictype/category-and-tests (Files): Likewise.
12502         * modules/unictype/category-byname-tests (Files): Likewise.
12503         * modules/unictype/category-name-tests (Files): Likewise.
12504         * modules/unictype/category-none-tests (Files): Likewise.
12505         * modules/unictype/category-of-tests (Files): Likewise.
12506         * modules/unictype/category-or-tests (Files): Likewise.
12507         * modules/unictype/category-test-withtable-tests (Files): Likewise.
12508         * modules/unictype/combining-class-tests (Files): Likewise.
12509         * modules/unictype/ctype-alnum-tests (Files): Likewise.
12510         * modules/unictype/ctype-alpha-tests (Files): Likewise.
12511         * modules/unictype/ctype-blank-tests (Files): Likewise.
12512         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
12513         * modules/unictype/ctype-digit-tests (Files): Likewise.
12514         * modules/unictype/ctype-graph-tests (Files): Likewise.
12515         * modules/unictype/ctype-lower-tests (Files): Likewise.
12516         * modules/unictype/ctype-print-tests (Files): Likewise.
12517         * modules/unictype/ctype-punct-tests (Files): Likewise.
12518         * modules/unictype/ctype-space-tests (Files): Likewise.
12519         * modules/unictype/ctype-upper-tests (Files): Likewise.
12520         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
12521         * modules/unictype/decimal-digit-tests (Files): Likewise.
12522         * modules/unictype/digit-tests (Files): Likewise.
12523         * modules/unictype/mirror-tests (Files): Likewise.
12524         * modules/unictype/numeric-tests (Files): Likewise.
12525         * modules/unictype/property-alphabetic-tests (Files): Likewise.
12526         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
12527         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
12528         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
12529         Likewise.
12530         * modules/unictype/property-bidi-block-separator-tests (Files):
12531         Likewise.
12532         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
12533         Likewise.
12534         * modules/unictype/property-bidi-common-separator-tests (Files):
12535         Likewise.
12536         * modules/unictype/property-bidi-control-tests (Files): Likewise.
12537         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
12538         Likewise.
12539         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
12540         Likewise.
12541         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
12542         Likewise.
12543         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
12544         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
12545         Likewise.
12546         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
12547         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
12548         Likewise.
12549         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
12550         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
12551         * modules/unictype/property-bidi-segment-separator-tests (Files):
12552         Likewise.
12553         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
12554         * modules/unictype/property-byname-tests (Files): Likewise.
12555         * modules/unictype/property-combining-tests (Files): Likewise.
12556         * modules/unictype/property-composite-tests (Files): Likewise.
12557         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
12558         * modules/unictype/property-dash-tests (Files): Likewise.
12559         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
12560         * modules/unictype/property-default-ignorable-code-point-tests (Files):
12561         Likewise.
12562         * modules/unictype/property-deprecated-tests (Files): Likewise.
12563         * modules/unictype/property-diacritic-tests (Files): Likewise.
12564         * modules/unictype/property-extender-tests (Files): Likewise.
12565         * modules/unictype/property-format-control-tests (Files): Likewise.
12566         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
12567         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
12568         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
12569         * modules/unictype/property-hex-digit-tests (Files): Likewise.
12570         * modules/unictype/property-hyphen-tests (Files): Likewise.
12571         * modules/unictype/property-id-continue-tests (Files): Likewise.
12572         * modules/unictype/property-id-start-tests (Files): Likewise.
12573         * modules/unictype/property-ideographic-tests (Files): Likewise.
12574         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
12575         * modules/unictype/property-ids-trinary-operator-tests (Files):
12576         Likewise.
12577         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
12578         * modules/unictype/property-iso-control-tests (Files): Likewise.
12579         * modules/unictype/property-join-control-tests (Files): Likewise.
12580         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
12581         * modules/unictype/property-line-separator-tests (Files): Likewise.
12582         * modules/unictype/property-logical-order-exception-tests (Files):
12583         Likewise.
12584         * modules/unictype/property-lowercase-tests (Files): Likewise.
12585         * modules/unictype/property-math-tests (Files): Likewise.
12586         * modules/unictype/property-non-break-tests (Files): Likewise.
12587         * modules/unictype/property-not-a-character-tests (Files): Likewise.
12588         * modules/unictype/property-numeric-tests (Files): Likewise.
12589         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
12590         * modules/unictype/property-other-default-ignorable-code-point-tests
12591         (Files): Likewise.
12592         * modules/unictype/property-other-grapheme-extend-tests (Files):
12593         Likewise.
12594         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
12595         * modules/unictype/property-other-id-start-tests (Files): Likewise.
12596         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
12597         * modules/unictype/property-other-math-tests (Files): Likewise.
12598         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
12599         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
12600         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
12601         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
12602         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
12603         * modules/unictype/property-private-use-tests (Files): Likewise.
12604         * modules/unictype/property-punctuation-tests (Files): Likewise.
12605         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
12606         * modules/unictype/property-radical-tests (Files): Likewise.
12607         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
12608         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
12609         * modules/unictype/property-space-tests (Files): Likewise.
12610         * modules/unictype/property-terminal-punctuation-tests (Files):
12611         Likewise.
12612         * modules/unictype/property-test-tests (Files): Likewise.
12613         * modules/unictype/property-titlecase-tests (Files): Likewise.
12614         * modules/unictype/property-unassigned-code-value-tests (Files):
12615         Likewise.
12616         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
12617         * modules/unictype/property-uppercase-tests (Files): Likewise.
12618         * modules/unictype/property-variation-selector-tests (Files): Likewise.
12619         * modules/unictype/property-white-space-tests (Files): Likewise.
12620         * modules/unictype/property-xid-continue-tests (Files): Likewise.
12621         * modules/unictype/property-xid-start-tests (Files): Likewise.
12622         * modules/unictype/property-zero-width-tests (Files): Likewise.
12623         * modules/unictype/scripts-tests (Files): Likewise.
12624         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
12625         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
12626         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
12627         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
12628         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
12629         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
12630         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
12631         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
12632         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
12633         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
12634         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
12635         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
12636         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
12637         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
12638         * modules/uninorm/composition-tests (Files): Likewise.
12639         * modules/uninorm/decomposing-form-tests (Files): Likewise.
12640         * modules/uninorm/decomposition-tests (Files): Likewise.
12641         * modules/uninorm/filter-tests (Files): Likewise.
12642         * modules/uninorm/nfc-tests (Files): Likewise.
12643         * modules/uninorm/nfd-tests (Files): Likewise.
12644         * modules/uninorm/nfkc-tests (Files): Likewise.
12645         * modules/uninorm/nfkd-tests (Files): Likewise.
12646         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
12647         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
12648         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
12649         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
12650         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
12651         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
12652         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
12653         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
12654         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
12655         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
12656         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
12657         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
12658         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
12659         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
12660         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
12661         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
12662         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
12663         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
12664         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
12665         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
12666         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
12667         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
12668         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
12669         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
12670         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
12671         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
12672         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
12673         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
12674         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
12675         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
12676         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
12677         * modules/uniwidth/u8-width-tests (Files): Likewise.
12678         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
12679         * modules/uniwidth/u16-width-tests (Files): Likewise.
12680         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
12681         * modules/uniwidth/u32-width-tests (Files): Likewise.
12682         * modules/uniwidth/width-tests (Files): Likewise.
12683         * modules/unlink-tests (Files): Likewise.
12684         * modules/unsetenv-tests (Files): Likewise.
12685         * modules/usleep-tests (Files): Likewise.
12686         * modules/utimens-tests (Files): Likewise.
12687         * modules/utimensat-tests (Files): Likewise.
12688         * modules/vasnprintf-posix-tests (Files): Likewise.
12689         * modules/vasnprintf-tests (Files): Likewise.
12690         * modules/vasprintf-posix-tests (Files): Likewise.
12691         * modules/vasprintf-tests (Files): Likewise.
12692         * modules/vdprintf-posix-tests (Files): Likewise.
12693         * modules/vfprintf-posix-tests (Files): Likewise.
12694         * modules/vprintf-posix-tests (Files): Likewise.
12695         * modules/vsnprintf-posix-tests (Files): Likewise.
12696         * modules/vsnprintf-tests (Files): Likewise.
12697         * modules/vsprintf-posix-tests (Files): Likewise.
12698         * modules/wcrtomb-tests (Files): Likewise.
12699         * modules/wcsnrtombs-tests (Files): Likewise.
12700         * modules/wcsrtombs-tests (Files): Likewise.
12701         * modules/wctype-tests (Files): Likewise.
12702         * modules/wcwidth-tests (Files): Likewise.
12703         * modules/xmemdup0-tests (Files): Likewise.
12704         * modules/xprintf-posix-tests (Files): Likewise.
12705         * modules/xvasprintf-tests (Files): Likewise.
12706
12707 2009-12-24  Eric Blake  <ebb9@byu.net>
12708
12709         test-nanosleep: fix typo
12710         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
12711         patch.
12712         Reported by Bruno Haible.
12713
12714 2009-12-24  Bruno Haible  <bruno@clisp.org>
12715
12716         Reduce namespace pollution on glibc systems.
12717         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
12718         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
12719         systems.
12720         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
12721         <getopt.h> on glibc systems.
12722         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
12723         systems.
12724         * lib/fcntl.c: Include <unistd.h> here instead.
12725
12726 2009-12-24  Bruno Haible  <bruno@clisp.org>
12727
12728         * lib/stdlib.in.h (includes): Fix typo in today's commit.
12729
12730 2009-12-24  Eric Blake  <ebb9@byu.net>
12731
12732         tests: add signature checks
12733         * tests/signature.h (SIGNATURE_CHECK): New file.
12734         * modules/atexit-tests (Files): Use it.
12735         * modules/btowc-tests (Files): Likewise.
12736         * modules/canonicalize-lgpl-tests (Files): Likewise.
12737         * modules/ceilf-tests (Files): Likewise.
12738         * modules/ceill-tests (Files): Likewise.
12739         * modules/chown-tests (Files): Likewise.
12740         * modules/dprintf-posix-tests (Files): Likewise.
12741         * modules/dup2-tests (Files): Likewise.
12742         * modules/dup3-tests (Files): Likewise.
12743         * modules/duplocale-tests (Files): Likewise.
12744         * modules/fchdir-tests (Files): Likewise.
12745         * modules/fcntl-tests (Files): Likewise.
12746         * modules/fdopendir-tests (Files): Likewise.
12747         * modules/fflush-tests (Files): Likewise.
12748         * modules/flock-tests (Files): Likewise.
12749         * modules/floorf-tests (Files): Likewise.
12750         * modules/floorl-tests (Files): Likewise.
12751         * modules/fnmatch-tests (Files): Likewise.
12752         * modules/fopen-tests (Files): Likewise.
12753         * modules/fprintf-posix-tests (Files): Likewise.
12754         * modules/freopen-tests (Files): Likewise.
12755         * modules/frexp-nolibm-tests (Files): Likewise.
12756         * modules/frexp-tests (Files): Likewise.
12757         * modules/frexpl-nolibm-tests (Files): Likewise.
12758         * modules/frexpl-tests (Files): Likewise.
12759         * modules/fseek-tests (Files): Likewise.
12760         * modules/fseeko-tests (Files): Likewise.
12761         * modules/fsync-tests (Files): Likewise.
12762         * modules/ftell-tests (Files): Likewise.
12763         * modules/ftello-tests (Files): Likewise.
12764         * modules/futimens-tests (Files): Likewise.
12765         * modules/getaddrinfo-tests (Files): Likewise.
12766         * modules/getcwd-tests (Files): Likewise.
12767         * modules/getdelim-tests (Files): Likewise.
12768         * modules/getdtablesize-tests (Files): Likewise.
12769         * modules/getgroups-tests (Files): Likewise.
12770         * modules/gethostname-tests (Files): Likewise.
12771         * modules/getline-tests (Files): Likewise.
12772         * modules/getopt-posix-tests (Files): Likewise.
12773         * modules/gettimeofday-tests (Files): Likewise.
12774         * modules/glob-tests (Files): Likewise.
12775         * modules/iconv-tests (Files): Likewise.
12776         * modules/inet_ntop-tests (Files): Likewise.
12777         * modules/inet_pton-tests (Files): Likewise.
12778         * modules/isblank-tests (Files): Likewise.
12779         * modules/lchown-tests (Files): Likewise.
12780         * modules/ldexpl-tests (Files): Likewise.
12781         * modules/link-tests (Files): Likewise.
12782         * modules/linkat-tests (Files): Likewise.
12783         * modules/lseek-tests (Files): Likewise.
12784         * modules/lstat-tests (Files): Likewise.
12785         * modules/mbrtowc-tests (Files): Likewise.
12786         * modules/mbsinit-tests (Files): Likewise.
12787         * modules/mbsnrtowcs-tests (Files): Likewise.
12788         * modules/mbsrtowcs-tests (Files): Likewise.
12789         * modules/memchr-tests (Files): Likewise.
12790         * modules/memcmp-tests (Files): Likewise.
12791         * modules/memmem-tests (Files): Likewise.
12792         * modules/memrchr-tests (Files): Likewise.
12793         * modules/mkdir-tests (Files): Likewise.
12794         * modules/mkfifo-tests (Files): Likewise.
12795         * modules/mkfifoat-tests (Files): Likewise.
12796         * modules/mknod-tests (Files): Likewise.
12797         * modules/nanosleep-tests (Files): Likewise.
12798         * modules/nl_langinfo-tests (Files): Likewise.
12799         * modules/obstack-printf-tests (Files): Likewise.
12800         * modules/open-tests (Files): Likewise.
12801         * modules/openat-tests (Files): Likewise.
12802         * modules/perror-tests (Files): Likewise.
12803         * modules/pipe2-tests (Files): Likewise.
12804         * modules/poll-tests (Files): Likewise.
12805         * modules/popen-tests (Files): Likewise.
12806         * modules/posix_spawn-tests (Files): Likewise.
12807         * modules/posix_spawnp-tests (Files): Likewise.
12808         * modules/pread-tests (Files): Likewise.
12809         * modules/printf-posix-tests (Files): Likewise.
12810         * modules/pty-tests (Files): Likewise.
12811         * modules/random_r-tests (Files): Likewise.
12812         * modules/rawmemchr-tests (Files): Likewise.
12813         * modules/readlink-tests (Files): Likewise.
12814         * modules/remove-tests (Files): Likewise.
12815         * modules/rename-tests (Files): Likewise.
12816         * modules/renameat-tests (Files): Likewise.
12817         * modules/rmdir-tests (Files): Likewise.
12818         * modules/round-tests (Files): Likewise.
12819         * modules/roundf-tests (Files): Likewise.
12820         * modules/roundl-tests (Files): Likewise.
12821         * modules/select-tests (Files): Likewise.
12822         * modules/setenv-tests (Files): Likewise.
12823         * modules/sigaction-tests (Files): Likewise.
12824         * modules/sleep-tests (Files): Likewise.
12825         * modules/snprintf-posix-tests (Files): Likewise.
12826         * modules/snprintf-tests (Files): Likewise.
12827         * modules/sprintf-posix-tests (Files): Likewise.
12828         * modules/stat-tests (Files): Likewise.
12829         * modules/strcasestr-tests (Files): Likewise.
12830         * modules/strchrnul-tests (Files): Likewise.
12831         * modules/strerror-tests (Files): Likewise.
12832         * modules/strsignal-tests (Files): Likewise.
12833         * modules/strstr-tests (Files): Likewise.
12834         * modules/strtod-tests (Files): Likewise.
12835         * modules/strverscmp-tests (Files): Likewise.
12836         * modules/symlink-tests (Files): Likewise.
12837         * modules/symlinkat-tests (Files): Likewise.
12838         * modules/times-tests (Files): Likewise.
12839         * modules/trunc-tests (Files): Likewise.
12840         * modules/truncf-tests (Files): Likewise.
12841         * modules/truncl-tests (Files): Likewise.
12842         * modules/tsearch-tests (Files): Likewise.
12843         * modules/uname-tests (Files): Likewise.
12844         * modules/unlink-tests (Files): Likewise.
12845         * modules/unsetenv-tests (Files): Likewise.
12846         * modules/usleep-tests (Files): Likewise.
12847         * modules/utimensat-tests (Files): Likewise.
12848         * modules/vasprintf-tests (Files): Likewise.
12849         * modules/vdprintf-posix-tests (Files): Likewise.
12850         * modules/vfprintf-posix-tests (Files): Likewise.
12851         * modules/vprintf-posix-tests (Files): Likewise.
12852         * modules/vsnprintf-posix-tests (Files): Likewise.
12853         * modules/vsnprintf-tests (Files): Likewise.
12854         * modules/vsprintf-posix-tests (Files): Likewise.
12855         * modules/wcrtomb-tests (Files): Likewise.
12856         * modules/wcsnrtombs-tests (Files): Likewise.
12857         * modules/wcsrtombs-tests (Files): Likewise.
12858         * modules/wcwidth-tests (Files): Likewise.
12859         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
12860         * tests/test-isinf.c (isinf): Likewise.
12861         * tests/test-isnan.c (isnan): Likewise.
12862         * tests/test-signbit.c (signbit): Likewise.
12863         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
12864         declaration, either as macro or with correct signature.
12865         (select): Ensure function under test is declared with correct
12866         signature in correct header.
12867         * tests/test-atexit.c (atexit): Likewise.
12868         * tests/test-btowc.c (btowc): Likewise.
12869         * tests/test-canonicalize-lgpl.c (realpath)
12870         (canonicalize_file_name): Likewise.
12871         * tests/test-ceilf1.c (ceilf): Likewise.
12872         * tests/test-ceill.c (ceill): Likewise.
12873         * tests/test-chown.c (chown): Likewise.
12874         * tests/test-dprintf-posix.c (dprintf): Likewise.
12875         * tests/test-dup2.c (dup2): Likewise.
12876         * tests/test-dup3.c (dup3): Likewise.
12877         * tests/test-duplocale.c (duplocale): Likewise.
12878         * tests/test-fchdir.c (fchdir): Likewise.
12879         * tests/test-fchownat.c (fchownat): Likewise.
12880         * tests/test-fcntl.c (fcntl): Likewise.
12881         * tests/test-fdopendir.c (fdopendir): Likewise.
12882         * tests/test-fflush.c (fflush): Likewise.
12883         * tests/test-flock.c (flock): Likewise.
12884         * tests/test-floorf1.c (floorf): Likewise.
12885         * tests/test-floorl.c (floorl): Likewise.
12886         * tests/test-fnmatch.c (fnmatch): Likewise.
12887         * tests/test-fopen.c (fopen): Likewise.
12888         * tests/test-fprintf-posix.c (fprintf): Likewise.
12889         * tests/test-freopen.c (freopen): Likewise.
12890         * tests/test-frexp.c (frexp): Likewise.
12891         * tests/test-frexpl.c (frexpl): Likewise.
12892         * tests/test-fseek.c (fseek): Likewise.
12893         * tests/test-fseeko.c (fseeko): Likewise.
12894         * tests/test-fstatat.c (fstatat): Likewise.
12895         * tests/test-fsync.c (fsync): Likewise.
12896         * tests/test-ftell.c (ftell): Likewise.
12897         * tests/test-ftello.c (ftello): Likewise.
12898         * tests/test-futimens.c (futimens): Likewise.
12899         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
12900         (gai_strerror): Likewise.
12901         * tests/test-getcwd.c (getcwd): Likewise.
12902         * tests/test-getdelim.c (getdelim): Likewise.
12903         * tests/test-getdtablesize.c (getdtablesize): Likewise.
12904         * tests/test-getgroups.c (getgroups): Likewise.
12905         * tests/test-gethostname.c (gethostname): Likewise.
12906         * tests/test-getline.c (getline): Likewise.
12907         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
12908         Likewise.
12909         * tests/test-gettimeofday.c (gettimeofday): Likewise.
12910         * tests/test-glob.c (glob, globfree): Likewise.
12911         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
12912         * tests/test-inet_ntop.c (inet_ntop): Likewise.
12913         * tests/test-inet_pton.c (inet_pton): Likewise.
12914         * tests/test-isblank.c (isblank): Likewise.
12915         * tests/test-lchown.c (lchown): Likewise.
12916         * tests/test-ldexpl.c (ldexpl): Likewise.
12917         * tests/test-link.c (link): Likewise.
12918         * tests/test-linkat.c (linkat): Likewise.
12919         * tests/test-lseek.c (lseek): Likewise.
12920         * tests/test-lstat.c (lstat): Likewise.
12921         * tests/test-mbrtowc.c (mbrtowc): Likewise.
12922         * tests/test-mbsinit.c (mbsinit): Likewise.
12923         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
12924         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
12925         * tests/test-memchr.c (memchr): Likewise.
12926         * tests/test-memcmp.c (memcmp): Likewise.
12927         * tests/test-memmem.c (memmem): Likewise.
12928         * tests/test-memrchr.c (memrchr): Likewise.
12929         * tests/test-mkdir.c (mkdir): Likewise.
12930         * tests/test-mkdirat.c (mkdirat): Likewise.
12931         * tests/test-mkfifo.c (mkfifo): Likewise.
12932         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
12933         * tests/test-mknod.c (mknod): Likewise.
12934         * tests/test-nanosleep.c (nanosleep): Likewise.
12935         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
12936         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
12937         Likewise.
12938         * tests/test-open.c (open): Likewise.
12939         * tests/test-openat.c (openat): Likewise.
12940         * tests/test-perror.c (perror): Likewise.
12941         * tests/test-pipe2.c (pipe2): Likewise.
12942         * tests/test-poll.c (poll): Likewise.
12943         * tests/test-popen.c (popen, pclose): Likewise.
12944         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
12945         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
12946         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
12947         (posix_spawn_file_actions_destroy)
12948         (posix_spawn_file_actions_addclose)
12949         (posix_spawn_file_actions_addopen)
12950         (posix_spawn_file_actions_adddup2): Likewise.
12951         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
12952         * tests/test-pread.c (pread): Likewise.
12953         * tests/test-printf-posix.c (printf): Likewise.
12954         * tests/test-pty.c (openpty, forkpty): Likewise.
12955         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
12956         (random_r): Likewise.
12957         * tests/test-rawmemchr.c (rawmemchr): Likewise.
12958         * tests/test-readlink.c (readlink): Likewise.
12959         * tests/test-remove.c (remove): Likewise.
12960         * tests/test-rename.c (rename): Likewise.
12961         * tests/test-renameat.c (renameat): Likewise.
12962         * tests/test-rmdir.c (rmdir): Likewise.
12963         * tests/test-round1.c (round): Likewise.
12964         * tests/test-roundf1.c (roundf): Likewise.
12965         * tests/test-roundl.c (roundl): Likewise.
12966         * tests/test-setenv.c (setenv): Likewise.
12967         * tests/test-sigaction.c (sigaction): Likewise.
12968         * tests/test-sleep.c (sleep): Likewise.
12969         * tests/test-snprintf.c (snprintf): Likewise.
12970         * tests/test-sprintf-posix.c (sprintf): Likewise.
12971         * tests/test-stat.c (stat): Likewise.
12972         * tests/test-stpncpy.c (stpncpy): Likewise.
12973         * tests/test-strcasestr.c (strcasestr): Likewise.
12974         * tests/test-strchrnul.c (strchrnul): Likewise.
12975         * tests/test-strerror.c (strerror): Likewise.
12976         * tests/test-strsignal.c (strsignal): Likewise.
12977         * tests/test-strstr.c (strstr): Likewise.
12978         * tests/test-strtod.c (strtod): Likewise.
12979         * tests/test-strverscmp.c (strverscmp): Likewise.
12980         * tests/test-symlink.c (symlink): Likewise.
12981         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
12982         * tests/test-times.c (times): Likewise.
12983         * tests/test-trunc1.c (trunc): Likewise.
12984         * tests/test-truncf1.c (truncf): Likewise.
12985         * tests/test-truncl.c (truncl): Likewise.
12986         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
12987         Likewise.
12988         * tests/test-uname.c (uname): Likewise.
12989         * tests/test-unlink.c (unlink): Likewise.
12990         * tests/test-unlinkat.c (unlinkat): Likewise.
12991         * tests/test-unsetenv.c (unsetenv): Likewise.
12992         * tests/test-usleep.c (usleep): Likewise.
12993         * tests/test-utimensat.c (utimensat): Likewise.
12994         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
12995         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
12996         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
12997         * tests/test-vprintf-posix.c (vprintf): Likewise.
12998         * tests/test-vsnprintf.c (vsnprintf): Likewise.
12999         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
13000         * tests/test-wcrtomb.c (wcrtomb): Likewise.
13001         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
13002         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
13003         * tests/test-wcwidth.c (wcwidth): Likewise.
13004
13005         build: pull in conditional headers during GNULIB_POSIXCHECK
13006         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
13007         definitions from any conditionally-included headers.
13008         * lib/stdlib.in.h (includes): Likewise.
13009         * lib/unistd.in.h (includes): Likewise.
13010
13011 2009-12-24  Bruno Haible  <bruno@clisp.org>
13012
13013         * tests/test-argv-iter.c: Include header file being tested immediately
13014         after config.h.
13015         * tests/test-base64.c: Likewise.
13016         * tests/test-flock.c: Likewise.
13017         * tests/test-fsync.c: Likewise.
13018         * tests/test-getdate.c: Likewise.
13019         * tests/test-getndelim2.c: Likewise.
13020         * tests/test-isfinite.c: Likewise.
13021         * tests/test-isinf.c: Likewise.
13022         * tests/test-strerror.c: Likewise.
13023         * tests/test-strsignal.c: Likewise.
13024
13025 2009-12-23  Eric Blake  <ebb9@byu.net>
13026
13027         unistd: work around cygwin bug
13028         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
13029         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
13030         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
13031
13032 2009-12-23  Bruno Haible  <bruno@clisp.org>
13033
13034         localename: More tests.
13035         * tests/test-localename.c (SIZEOF): New macro.
13036         (categories): New variable.
13037         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
13038         test_locale_name_default): Add test w.r.t. thread locale.
13039         (test_locale_name_thread): New function.
13040         (main): Invoke it.
13041
13042         localename: Make aware of thread locale.
13043         * lib/localename.h (gl_locale_name_thread): New declaration.
13044         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
13045         behaviour with respect to thread locale.
13046         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
13047         <langinfo.h>, glthread/lock.h.
13048         (SIZE_BITS): New macro.
13049         (string_hash): New function.
13050         (struct hash_node): New type.
13051         (HASH_TABLE_SIZE): New macro.
13052         (struniq_hash_table, struniq_lock): New variables.
13053         (struniq): New function.
13054         (gl_locale_name_thread): New function.
13055         (gl_locale_name): Invoke it.
13056         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
13057         * modules/localename (Depends-on): Add lock.
13058         Reported by Mike Gran <spk121@yahoo.com>.
13059
13060 2009-12-23  Eric Blake  <ebb9@byu.net>
13061
13062         va-args: new module
13063         * modules/va-args: New file.
13064         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
13065         * MODULES.html.sh (Core language properties): Mention it.
13066
13067         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
13068         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
13069         named alias for __attribute__((__unused__)).
13070         * lib/chown.c: Update client.
13071         * lib/fchmodat.c: Likewise.
13072         * lib/fts.c: Likewise.
13073         * lib/getdate.y: Likewise.
13074         * lib/getgroups.c: Likewise.
13075         * lib/getopt.c: Likewise.
13076         * lib/getugroups.c: Likewise.
13077         * lib/mkdir.c: Likewise.
13078         * lib/mkfifo.c: Likewise.
13079         * lib/mkfifoat.c: Likewise.
13080         * lib/mknod.c: Likewise.
13081         * lib/mknodat.c: Likewise.
13082         * lib/readlink.c: Likewise.
13083         * lib/se-context.in.h: Likewise.
13084         * lib/se-selinux.in.h: Likewise.
13085         * lib/sockets.c: Likewise.
13086         * lib/symlink.c: Likewise.
13087         * lib/symlinkat.c: Likewise.
13088         * lib/unicodeio.c: Likewise.
13089         * lib/unistr.h: Likewise.
13090         * tests/test-areadlink.c: Likewise.
13091         * tests/test-areadlinkat.c: Likewise.
13092         * tests/test-filenamecat.c: Likewise.
13093         * tests/test-fseeko.c: Likewise.
13094         * tests/test-ftello.c: Likewise.
13095         * tests/test-getdate.c: Likewise.
13096         * tests/test-getgroups.c: Likewise.
13097         * tests/test-gethostname.c: Likewise.
13098         * tests/test-quotearg.c: Likewise.
13099         * tests/test-version-etc.c: Likewise.
13100         * tests/test-xalloc-die.c: Likewise.
13101         * tests/test-xfprintf-posix.c: Likewise.
13102         * tests/test-xprintf-posix.c: Likewise.
13103         * tests/test-xvasprintf.c: Likewise.
13104
13105         tests: avoid compiler warnings
13106         * tests/test-fcntl.c (main): Delete unused parameters.
13107         * tests/test-freopen-safer.c (main): Likewise.
13108         * tests/test-xalloc-die.c (main): Mark unused parameters.
13109         * tests/test-fseeko.c (main): Likewise.
13110         * tests/test-ftello.c (main): Likewise.
13111         * tests/test-nanosleep.c (main): Avoid declaration warning.
13112         * tests/test-sleep.c (main): Likewise.
13113         * tests/test-unsetenv.c (main): Silence warning about string
13114         literal.
13115         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13116
13117 2009-12-23  Bruno Haible  <bruno@clisp.org>
13118
13119         * tests/test-localename.c (test_locale_name): New function, extracted
13120         from main. Also test mixed situations.
13121         (test_locale_name_posix, test_locale_name_environ,
13122         test_locale_name_default): New functions.
13123         (main): Invoke them all.
13124         * modules/localename-tests (configure.ac): Test for newlocale.
13125
13126 2009-12-23  Bruno Haible  <bruno@clisp.org>
13127
13128         unistd: Ensure getcwd gets declared before being overridden.
13129         * lib/unistd.in.h: Conditionally include <io.h>.
13130
13131 2009-12-22  Bruno Haible  <bruno@clisp.org>
13132
13133         wchar: Diagnose broken combination of glibc and gcc versions and flags.
13134         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
13135         (gl_WCHAR_H): Invoke it.
13136         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
13137         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
13138         Reported by Karl Berry <karl@freefriends.org>.
13139
13140 2009-12-22  Eric Blake  <ebb9@byu.net>
13141
13142         math, unistd: avoid redundant includes
13143         * lib/math.in.h (isnan): No need to re-include <math.h>.
13144         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
13145
13146         getsubopt: work around cygwin bug
13147         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
13148         avoid conflicting with system getsubopt.
13149         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
13150         bug.
13151
13152         getopt: synchronize from glibc
13153         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
13154         parameter order.  Adjust all callers.
13155         (_getopt_internal_r, main): Adjust quoting in error messages.
13156         Drop considerations for outdated POSIX 1003.2 error message.
13157         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
13158         callers.
13159         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
13160
13161         test-getopt: test stderr behavior
13162         * modules/getopt-posix-tests (Depends-on): Add dup2.
13163         * tests/test-getopt.c (ASSERT): Avoid stderr.
13164         (main): Move stderr to a temporary file.
13165         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
13166         Instead, add parameter to inform caller if output occurred.
13167         (test_getopt): Adjust all existing tests to expect silence, and
13168         add new tests of leading ":".
13169         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
13170         glibc shortcomings with leading "-:" or "+:" in optstring.
13171         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13172         Likewise.
13173         * doc/posix-functions/getopt.texi (getopt): Likewise.
13174
13175         test-getopt: enhance test
13176         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
13177         supports optind=0.
13178         * tests/test-getopt.c (OPTIND_MIN): Move...
13179         * tests/test-getopt.h (OPTIND_MIN): ...here.
13180         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
13181         Require that optind=0 works, since modern BSD supports it in
13182         addition to optreset, and since coreutils expects it.
13183         (test_getopt_long_only): New test.
13184         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
13185         glibc shortcomings with 'W;', and enforcement of optind=0.
13186         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13187         Likewise.
13188
13189 2009-12-21  Bruno Haible  <bruno@clisp.org>
13190
13191         localename: Improvements for MacOS X and Cygwin.
13192         * lib/localename.h (gl_locale_name_environ): New declaration.
13193         * lib/localename.c (gl_locale_name_environ): New function, extracted from
13194         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
13195         (gl_locale_name_posix): Invoke it.
13196         (gl_locale_name_default): Add comments. Use Windows native API also on
13197         Cygwin.
13198
13199 2009-12-21  Bruno Haible  <bruno@clisp.org>
13200
13201         Update list of Win32 locale ids.
13202         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
13203         (LANG_SAMI): Renamed from LANG_SAAMI.
13204         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
13205         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
13206         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
13207         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
13208         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
13209         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
13210         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
13211         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
13212         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
13213         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
13214         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
13215         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
13216         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
13217         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
13218         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
13219         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
13220         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
13221         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
13222         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
13223         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
13224         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
13225         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
13226         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
13227         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
13228         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
13229         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
13230         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
13231         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
13232         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
13233         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
13234         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
13235         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
13236         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
13237         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
13238         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
13239         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
13240         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
13241         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
13242         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
13243         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
13244         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
13245         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
13246         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
13247         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
13248         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
13249         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
13250         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
13251         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
13252         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
13253         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
13254         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
13255         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
13256         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
13257         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
13258         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
13259         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
13260         Add more languages and countries for Sami, Sorbian. Add more countries
13261         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
13262         for Pashto. Change country for Syriac, Tswana.
13263
13264 2009-12-21  Eric Blake  <ebb9@byu.net>
13265
13266         test-utimens: avoid spurious failure
13267         * tests/test-chown.h (nap): Factor...
13268         * tests/nap.h: ...into new file.
13269         * tests/test-lchown.h (nap): Avoid duplication.
13270         * tests/test-utimens-common.h (nap): Use shared implementation,
13271         necessary on file systems with 1-second resolution.
13272         * modules/chown-tests (Files): Include new file.
13273         * modules/fdutimensat-tests (Files): Likewise.
13274         * modules/futimens-tests (Files): Likewise.
13275         * modules/lchown-tests (Files): Likewise.
13276         * modules/openat-tests (Files): Likewise.
13277         * modules/utimens-tests (Files): Likewise.
13278         * modules/utimensat-tests (Files): Likewise.
13279
13280 2009-12-19  Eric Blake  <ebb9@byu.net>
13281
13282         futimens, utimensat: work around Linux bug
13283         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
13284         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13285         * lib/utimensat.c (rpl_utimensat): Work around it.
13286         * lib/futimens.c (rpl_futimens): Adjust comment.
13287
13288         utimens: work around Linux ctime bug
13289         * lib/utimens.c (detect_ctime_bug): New helper function.
13290         (update_timespec): Differentiate between workaround needed for
13291         this bug vs. what is needed for systems that lack utimensat.
13292         (fdutimens, lutimens): Work around bug.
13293
13294         utimens: check for ctime update
13295         * tests/test-utimens-common.h (check_ctime): Define.
13296         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
13297         * tests/test-futimens.h (test_futimens): Likewise.
13298         * tests/test-lutimens.h (test_lutimens): Likewise.
13299         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13300         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13301
13302 2009-12-19  Bruno Haible  <bruno@clisp.org>
13303
13304         dprintf-posix: Check against memory leak fixed on 2009-12-15.
13305         * tests/test-dprintf-posix2.sh: New file.
13306         * tests/test-dprintf-posix2.c: New file.
13307         * modules/dprintf-posix-tests (Files): Add them.
13308         (configure.ac): Check for getrlimit and setrlimit.
13309         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
13310
13311 2009-12-19  Bruno Haible  <bruno@clisp.org>
13312
13313         fprintf-posix: Check against memory leak fixed on 2009-12-15.
13314         * tests/test-fprintf-posix3.sh: New file.
13315         * tests/test-fprintf-posix3.c: New file.
13316         * modules/fprintf-posix-tests (Files): Add them.
13317         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
13318
13319 2009-12-19  Eric Blake  <ebb9@byu.net>
13320
13321         dirfd: fix prototype
13322         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
13323         * lib/dirfd.c (dirfd): Likewise.
13324
13325         canonicalize: reduce memory usage
13326         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
13327         allocation to size.
13328         Reported by Solar Designer <solar@openwall.com>.
13329
13330 2009-12-19  Bruno Haible  <bruno@clisp.org>
13331
13332         New module attribute 'Applicability'.
13333         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
13334         * gnulib-tool: New option --extract-applicability.
13335         (func_usage): Document it.
13336         (sed_extract_prog): Recognize it.
13337         (func_get_applicability): New function.
13338         (func_import): Generalize handling of 'link-warning' module.
13339         * modules/link-warning (Applicability): New section.
13340         * modules/arg-nonnull (Applicability): New section.
13341         Repoted by Simon Josefsson <simon@josefsson.org>.
13342
13343 2009-12-19  Bruno Haible  <bruno@clisp.org>
13344
13345         fflush: tweak
13346         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
13347         * lib/fseeko.c (rpl_fseeko): Likewise.
13348
13349 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
13350
13351         * lib/gl_list.h: Fix typo in comment.
13352
13353 2009-12-16  Eric Blake  <ebb9@byu.net>
13354
13355         fcntl: use to simplify other modules
13356         * modules/cloexec (Depends-on): Add fcntl.
13357         * modules/fchdir (Depends-on): Likewise.
13358         * modules/fd-safer-flag (Depends-on): Likewise.
13359         * modules/unistd-safer (Depends-on): Likewise.
13360         * modules/dup3 (configure.ac): Set module indicator.
13361         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
13362         missing.
13363         * lib/fchdir.c (_gl_register_dup): Fix comment.
13364         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
13365         * lib/dup-safer.c (dup_safer): Likewise.
13366         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
13367         * lib/dup3.c (dup3): Likewise.
13368         * tests/test-fchdir.c (main): Enhance test.
13369         Fixes a dup_cloexec bug reported by Ondřej Vašík.
13370
13371         fcntl: port portions of fcntl to mingw
13372         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
13373         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
13374         replacement for mingw.
13375         * modules/fcntl (Description): Update.
13376         (Depends-on): Add dup2.
13377         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
13378         * modules/fcntl-h (Makefile.am): Substitute it.
13379         * lib/fcntl.in.h (fcntl): Update declaration.
13380         (F_DUPFD, F_GETFD): New macros, when needed.
13381         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
13382         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
13383         * tests/test-fcntl.c (check_flags, main): Enhance test for items
13384         we now guarantee.
13385
13386         fcntl: work around cygwin bug in F_DUPFD
13387         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
13388         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
13389         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
13390         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
13391         * doc/posix-functions/fcntl.texi (fcntl): Document it.
13392
13393         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
13394         * modules/fcntl (Files): List new files.
13395         (configure.ac): Run a test.
13396         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
13397         * lib/fcntl.c (rpl_fcntl): Likewise.
13398         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
13399         (gl_FCNTL_H): Always replace fcntl.h.
13400         * modules/fcntl-h (Makefile.am): Substitute witnesses.
13401         * lib/fcntl.in.h (fcntl): Declare replacement.
13402         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
13403         needed, plus a witness.
13404         * doc/posix-functions/fcntl.texi (fcntl): Document this.
13405         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
13406         * tests/test-fcntl.c: New file.
13407         * modules/fcntl-tests: Likewise.
13408
13409         binary-io: avoid potential compilation warning
13410         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
13411         directives.
13412
13413         fflush: avoid compilation error on NetBSD
13414         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
13415         between off_t and fpos_t, since the latter is sometimes a struct.
13416         * lib/fseeko.c (rpl_fseeko): Likewise.
13417         Reported by Alexander Nasonov <alnsn@yandex.ru>.
13418
13419 2009-12-15  Eric Blake  <ebb9@byu.net>
13420
13421         fcntl-h, stdio, sys_ioctl: fix declarations
13422         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
13423         function must not take arguments.
13424         * lib/sys_ioctl.in.h (ioctl): Likewise.
13425         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
13426         (open): Add a link warning.
13427
13428 2009-12-15  Jim Meyering  <meyering@redhat.com>
13429
13430         areadlink, areadlink-with-size: relax license to LGPLv2+
13431         * modules/areadlink (License): Relax to LGPLv2+.
13432         * modules/areadlink-with-size (License): Likewise.
13433
13434 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
13435             Bruno Haible  <bruno@clisp.org>
13436
13437         *printf: Fix memory leak.
13438         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
13439         * lib/vfprintf.c (vfprintf): Likewise.
13440         * lib/dprintf.c (dprintf): Likewise.
13441         * lib/vdprintf.c (vdprintf): Likewise.
13442
13443 2009-12-14  Eric Blake  <ebb9@byu.net>
13444
13445         accept4: adjust module dependencies
13446         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
13447
13448         utimens: one more try at avoiding compiler warning
13449         * lib/utimens.c (lutimens): Lower scope of result.
13450
13451 2009-12-13  Bruno Haible  <bruno@clisp.org>
13452
13453         Move the malloc checking from module 'list' to new module 'xlist'.
13454         * modules/xlist: New file.
13455         * lib/gl_xlist.h: New file.
13456         * lib/gl_xlist.c: New file.
13457         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
13458         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
13459         gl_list_add_last, gl_list_add_before, gl_list_add_after,
13460         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
13461         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
13462         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
13463         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
13464         gl_sortedlist_nx_add): New declarations.
13465         (struct gl_list_implementation): Rename and change methods accordingly.
13466         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
13467         (gl_list_nx_create): Renamed from gl_list_create.
13468         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13469         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13470         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13471         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13472         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13473         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13474         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13475         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13476         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
13477         gl_list_create_empty.
13478         (gl_list_nx_create): Renamed from gl_list_create.
13479         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13480         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13481         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13482         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13483         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13484         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13485         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13486         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13487         * lib/gl_array_list.c: Don't include xalloc.h.
13488         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
13489         NULL upon out-of-memory.
13490         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
13491         out-of-memory.
13492         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
13493         Change return type to 'int'.
13494         (gl_array_nx_set_at): Renamed from gl_array_set_at.
13495         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13496         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
13497         upon out-of-memory.
13498         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
13499         upon out-of-memory.
13500         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
13501         upon out-of-memory.
13502         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
13503         upon out-of-memory.
13504         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
13505         out-of-memory.
13506         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
13507         Update.
13508         (gl_array_list_implementation): Update.
13509         * lib/gl_carray_list.c: Don't include xalloc.h.
13510         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
13511         Return NULL upon out-of-memory.
13512         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
13513         out-of-memory.
13514         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
13515         Change return type to 'int'.
13516         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
13517         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13518         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
13519         upon out-of-memory.
13520         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
13521         upon out-of-memory.
13522         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
13523         out-of-memory.
13524         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
13525         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
13526         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
13527         Update.
13528         (gl_carray_list_implementation): Update.
13529         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
13530         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
13531         gl_linked_create_empty. Return NULL upon out-of-memory.
13532         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
13533         out-of-memory.
13534         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
13535         Change return type to 'int'. Return -1 upon out-of-memory.
13536         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
13537         out-of-memory.
13538         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
13539         upon out-of-memory.
13540         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
13541         upon out-of-memory.
13542         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
13543         NULL upon out-of-memory.
13544         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
13545         upon out-of-memory.
13546         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
13547         out-of-memory.
13548         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
13549         Update.
13550         * lib/gl_linked_list.c: Don't include xalloc.h.
13551         (gl_linked_list_implementation): Update.
13552         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
13553         (add_to_bucket): Change return type to 'int'.
13554         (gl_linkedhash_list_implementation): Update.
13555         * lib/gl_anytree_list1.h (free_subtree): New function.
13556         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
13557         gl_tree_create_empty. Return NULL upon out-of-memory.
13558         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
13559         Change return type to 'int'. Return -1 upon out-of-memory.
13560         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
13561         out-of-memory.
13562         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
13563         (gl_tree_remove_node): New function, moved here from
13564         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
13565         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
13566         Update.
13567         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
13568         malloc, not xmalloc. Return NULL upon out-of-memory.
13569         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13570         out-of-memory.
13571         (gl_tree_remove_node_from_tree): New function, extracted from
13572         gl_tree_remove_node.
13573         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13574         upon out-of-memory.
13575         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13576         out-of-memory.
13577         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13578         upon out-of-memory.
13579         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13580         upon out-of-memory.
13581         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13582         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
13583         not xmalloc. Return NULL upon out-of-memory.
13584         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13585         out-of-memory.
13586         (gl_tree_remove_node_from_tree): New function, extracted from
13587         gl_tree_remove_node.
13588         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13589         upon out-of-memory.
13590         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13591         out-of-memory.
13592         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13593         upon out-of-memory.
13594         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13595         upon out-of-memory.
13596         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13597         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
13598         gl_anytree_list1.h before gl_anyavltree_list2.h.
13599         (gl_avltree_list_implementation): Update.
13600         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
13601         gl_anytree_list1.h before gl_anyavltree_list2.h.
13602         (gl_rbtree_list_implementation): Update.
13603         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
13604         Change return type to 'int'. Return -1 upon out-of-memory. Use
13605         __builtin_expect.
13606         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
13607         (gl_avltreehash_list_implementation): Update.
13608         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
13609         (gl_rbtreehash_list_implementation): Update.
13610         * modules/array-list (Depends-on): Remove xalloc.
13611         * modules/carray-list (Depends-on): Likewise.
13612         * modules/linked-list (Depends-on): Likewise.
13613         * modules/linkedhash-list (Depends-on): Likewise.
13614         * modules/avltree-list (Depends-on): Likewise.
13615         * modules/rbtree-list (Depends-on): Likewise.
13616         * modules/avltreehash-list (Depends-on): Likewise.
13617         * modules/rbtreehash-list (Depends-on): Likewise.
13618
13619         * modules/xsublist: New file.
13620         * lib/gl_xsublist.h: New file.
13621         * lib/gl_xsublist.c: New file.
13622         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
13623         (gl_sublist_nx_create): New declaration.
13624         * lib/gl_sublist.c: Don't include xalloc.h.
13625         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
13626         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
13627         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
13628         Change return type to 'int'. Return -1 upon out-of-memory.
13629         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
13630         upon out-of-memory.
13631         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
13632         NULL upon out-of-memory.
13633         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
13634         upon out-of-memory.
13635         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
13636         NULL upon out-of-memory.
13637         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
13638         NULL upon out-of-memory.
13639         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
13640         upon out-of-memory.
13641         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
13642         (gl_sublist_list_implementation): Update.
13643         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
13644         upon out-of-memory.
13645         * modules/sublist (Depends-on): Remove xalloc.
13646
13647         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
13648         * tests/test-carray_list.c: Likewise.
13649         * tests/test-linked_list.c: Likewise.
13650         * tests/test-linkedhash_list.c: Likewise.
13651         * tests/test-avltree_list.c: Likewise.
13652         * tests/test-rbtree_list.c: Likewise.
13653         * tests/test-avltreehash_list.c: Likewise.
13654         * tests/test-rbtreehash_list.c: Likewise.
13655         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
13656         * modules/carray-list-tests (Makefile.am): Likewise.
13657         * modules/linked-list-tests (Makefile.am): Likewise.
13658         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13659         * modules/avltree-list-tests (Makefile.am): Likewise.
13660         * modules/rbtree-list-tests (Makefile.am): Likewise.
13661         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13662         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13663
13664         * NEWS: Mention the changes.
13665
13666         * lib/clean-temp.c: Include gl_xlist.h.
13667         * modules/clean-temp (Depends-on): Add xlist.
13668
13669         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
13670         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
13671
13672         * tests/test-array_oset.c: Include gl_xlist.h.
13673         * modules/array-oset-tests (Depends-on): Add xlist.
13674
13675         Reported by José E. Marchesi <jemarch@gnu.org>.
13676
13677 2009-12-13  Bruno Haible  <bruno@clisp.org>
13678
13679         Move the malloc checking from module 'oset' to new module 'xoset'.
13680         * modules/xoset: New file.
13681         * lib/gl_xoset.h: New file.
13682         * lib/gl_xoset.c: New file.
13683         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
13684         declarations.
13685         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
13686         (struct gl_oset_implementation): Rename and change methods accordingly.
13687         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
13688         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13689         'int'. Mark as __warn_unused_result__.
13690         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
13691         gl_oset_create_empty.
13692         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13693         'int'.
13694         * lib/gl_array_oset.c: Don't include xalloc.h.
13695         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
13696         malloc, not xmalloc.
13697         (grow): Change return type to 'int'. Don't call xalloc_die.
13698         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
13699         to 'int'.
13700         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
13701         'int'.
13702         (gl_array_oset_implementation): Update.
13703         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
13704         gl_tree_create_empty.
13705         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
13706         'int'.
13707         * lib/gl_avltree_oset.c: Don't include xalloc.h.
13708         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13709         xmalloc.
13710         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13711         not xmalloc.
13712         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13713         xmalloc.
13714         (gl_avltree_oset_implementation): Update.
13715         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
13716         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13717         xmalloc.
13718         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13719         not xmalloc.
13720         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13721         xmalloc.
13722         (gl_rbtree_oset_implementation): Update.
13723         * modules/array-oset (Depends-on): Remove xalloc.
13724         * modules/avltree-oset (Depends-on): Likewise.
13725         * modules/rbtree-oset (Depends-on): Likewise.
13726         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
13727         * tests/test-avltree_oset.c: Likewise.
13728         * tests/test-rbtree_oset.c: Likewise.
13729         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
13730         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
13731         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13732         * NEWS: Mention the change.
13733
13734 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
13735
13736         maint.mk: allow a project to override release-prep commands
13737         * top/maint.mk (alpha, beta, stable): Move release-preparatory
13738         commands into a new rule.
13739         (release-prep): New rule.
13740         (release-prep-hook): New overridable variable.
13741
13742 2009-12-13  Bruno Haible  <bruno@clisp.org>
13743
13744         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
13745
13746 2009-12-13  Jim Meyering  <meyering@redhat.com>
13747
13748         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
13749         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
13750
13751 2009-12-12  Bruno Haible  <bruno@clisp.org>
13752
13753         duplocale: Tweak.
13754         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
13755
13756 2009-12-12  Karl Berry  <karl@gnu.org>
13757
13758         * config/srclist.txt (strtoll.c): tab changes, no more sync.
13759
13760 2009-12-12  Bruno Haible  <bruno@clisp.org>
13761
13762         * m4/po.m4: Undo incorrect untabification.
13763
13764 2009-12-12  Bruno Haible  <bruno@clisp.org>
13765
13766         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
13767         * modules/c-strtod (Depends-on): Add locale.
13768         * modules/c-strtold (Depends-on): Likewise.
13769
13770 2009-12-12  Bruno Haible  <bruno@clisp.org>
13771
13772         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
13773
13774 2009-12-11  Eric Blake  <ebb9@byu.net>
13775
13776         setenv: relax requirement in light of POSIX ruling
13777         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
13778         not NULL.
13779         * tests/test-setenv.c (main): Relax test.
13780         * tests/test-unsetenv.c (main): Likewise.
13781         * doc/posix-functions/setenv.texi (setenv): Document this.
13782         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13783
13784 2009-12-11  Bruno Haible  <bruno@clisp.org>
13785
13786         New module 'fd-safer-flag'.
13787         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
13788         * lib/dup-safer.c (dup_safer_flag): Remove function.
13789         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
13790         * lib/fd-safer.c (fd_safer_flag): Remove function.
13791         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
13792         * modules/cloexec (configure.ac): Drop indicator macro.
13793         * modules/fd-safer-flag: New file.
13794         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
13795         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
13796         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
13797
13798 2009-12-11  Bruno Haible  <bruno@clisp.org>
13799
13800         Tests for module 'nl_langinfo'.
13801         * modules/nl_langinfo-tests: New file.
13802         * tests/test-nl_langinfo.sh: New file.
13803         * tests/test-nl_langinfo.c: New file.
13804
13805         New module 'nl_langinfo'.
13806         * lib/nl_langinfo.c: New file.
13807         * m4/nl_langinfo.m4: New file.
13808         * modules/nl_langinfo: New file.
13809         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
13810
13811 2009-12-11  Bruno Haible  <bruno@clisp.org>
13812
13813         Tests for module 'langinfo'.
13814         * modules/langinfo-tests: New file.
13815         * tests/test-langinfo.c: New file.
13816
13817         New module 'langinfo'.
13818         * lib/langinfo.in.h: New file.
13819         * m4/langinfo_h.m4: New file.
13820         * modules/langinfo: New file.
13821         * doc/posix-headers/langinfo.texi: Mention the new module.
13822
13823 2009-12-11  Bruno Haible  <bruno@clisp.org>
13824
13825         * lib/config.charset: Untabify.
13826
13827 2009-12-11  Bruno Haible  <bruno@clisp.org>
13828
13829         * modules/unistd-safer (configure.ac): Drop indicator macro.
13830
13831 2009-12-11  Bruno Haible  <bruno@clisp.org>
13832
13833         Move pipe2-safer code to its own file.
13834         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
13835         * lib/pipe-safer.c (pipe2_safer): Remove function.
13836         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
13837         (Makefile.am): Add it to lib_SOURCES.
13838
13839 2009-12-10  Bruno Haible  <bruno@clisp.org>
13840
13841         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
13842
13843 2009-12-10  Bruno Haible  <bruno@clisp.org>
13844
13845         Declare which arguments expect non-NULL values, for GCC and clang.
13846         * build-aux/arg-nonnull.h: New file.
13847         * modules/arg-nonnull: New file.
13848         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
13849         (inet_ntop, inet_pton): Use it.
13850         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
13851         (closedir, dirfd, opendir, scandir, alphasort): Use it.
13852         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
13853         (open, openat): Use it.
13854         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
13855         (fnmatch): Use it.
13856         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
13857         (getopt, getopt_long, getopt_long_only): Use it.
13858         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
13859         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
13860         Use it.
13861         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
13862         (iconv_open): Use it.
13863         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
13864         (strtoimax, strtoumax): Use it.
13865         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
13866         (duplocale): Use it.
13867         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
13868         (frexp, frexpl): Use it.
13869         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
13870         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
13871         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
13872         (tsearch, tfind, tdelete, twalk): Use it.
13873         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
13874         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
13875         sigpending): Use it.
13876         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
13877         (posix_spawn, posix_spawnp, posix_spawnattr_init,
13878         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
13879         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
13880         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
13881         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
13882         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
13883         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
13884         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
13885         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
13886         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
13887         Use it.
13888         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
13889         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
13890         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
13891         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
13892         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
13893         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
13894         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
13895         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
13896         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
13897         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
13898         strtoull, unsetenv): Use it.
13899         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
13900         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
13901         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
13902         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
13903         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
13904         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
13905         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
13906         (strcasecmp, strncasecmp): Use it.
13907         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
13908         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
13909         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
13910         rpl_setsockopt): Use it.
13911         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
13912         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
13913         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
13914         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
13915         (gettimeofday): Use it.
13916         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
13917         (times): Use it.
13918         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
13919         (uname): Use it.
13920         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
13921         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
13922         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
13923         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
13924         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
13925         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
13926         unlinkat, write): Use it.
13927         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
13928         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
13929         * lib/argv-iter.h: Include arg-nonnull.h.
13930         (_ATTRIBUTE_NONNULL_): Remove macro.
13931         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
13932         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
13933         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
13934         optimization.
13935         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
13936         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
13937         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
13938         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
13939         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
13940         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
13941         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
13942         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
13943         * modules/arpa_inet (Depends-on): Add arg-nonnull.
13944         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
13945         * modules/dirent (Depends-on): Add arg-nonnull.
13946         (Makefile.am): Insert arg-nonnull.h into dirent.h.
13947         * modules/fcntl-h (Depends-on): Add arg-nonnull.
13948         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
13949         * modules/fnmatch (Depends-on): Add arg-nonnull.
13950         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
13951         * modules/getopt-posix (Depends-on): Add arg-nonnull.
13952         (Makefile.am): Insert arg-nonnull.h into getopt.h.
13953         * modules/glob (Depends-on): Add arg-nonnull.
13954         (Makefile.am): Insert arg-nonnull.h into glob.h.
13955         * modules/iconv_open (Depends-on): Add arg-nonnull.
13956         (Makefile.am): Insert arg-nonnull.h into iconv.h.
13957         * modules/inttypes (Depends-on): Add arg-nonnull.
13958         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
13959         * modules/locale (Depends-on): Add arg-nonnull.
13960         (Makefile.am): Insert arg-nonnull.h into locale.h.
13961         * modules/math (Depends-on): Add arg-nonnull.
13962         (Makefile.am): Insert arg-nonnull.h into math.h.
13963         * modules/netdb (Depends-on): Add arg-nonnull.
13964         (Makefile.am): Insert arg-nonnull.h into netdb.h.
13965         * modules/search (Depends-on): Add arg-nonnull.
13966         (Makefile.am): Insert arg-nonnull.h into search.h.
13967         * modules/signal (Depends-on): Add arg-nonnull.
13968         (Makefile.am): Insert arg-nonnull.h into signal.h.
13969         * modules/spawn (Depends-on): Add arg-nonnull.
13970         (Makefile.am): Insert arg-nonnull.h into spawn.h.
13971         * modules/stdio (Depends-on): Add arg-nonnull.
13972         (Makefile.am): Insert arg-nonnull.h into stdio.h.
13973         * modules/stdlib (Depends-on): Add arg-nonnull.
13974         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
13975         * modules/string (Depends-on): Add arg-nonnull.
13976         (Makefile.am): Insert arg-nonnull.h into string.h.
13977         * modules/strings (Depends-on): Add arg-nonnull.
13978         (Makefile.am): Insert arg-nonnull.h into strings.h.
13979         * modules/sys_socket (Depends-on): Add arg-nonnull.
13980         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
13981         * modules/sys_stat (Depends-on): Add arg-nonnull.
13982         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
13983         * modules/sys_time (Depends-on): Add arg-nonnull.
13984         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
13985         * modules/sys_times (Depends-on): Add arg-nonnull.
13986         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
13987         * modules/sys_utsname (Depends-on): Add arg-nonnull.
13988         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
13989         * modules/time (Depends-on): Add arg-nonnull.
13990         (Makefile.am): Insert arg-nonnull.h into time.h.
13991         * modules/unistd (Depends-on): Add arg-nonnull.
13992         (Makefile.am): Insert arg-nonnull.h into unistd.h.
13993         * modules/wchar (Depends-on): Add arg-nonnull.
13994         (Makefile.am): Insert arg-nonnull.h into wchar.h.
13995         * modules/argv-iter (Depends-on): Add arg-nonnull.
13996         * tests/test-canonicalize.c (null_ptr): New function.
13997         (main): Use it.
13998         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
13999         (main): Use it.
14000         * tests/test-memmem.c (null_ptr): New function.
14001         (main): Use it.
14002         Reported by Jim Meyering.
14003
14004 2009-12-10  Bruno Haible  <bruno@clisp.org>
14005
14006         Use spaces for indentation, not tabs.
14007         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14008         * m4/*.m4: Untabify.
14009         * build-aux/*.h: Untabify.
14010         * tests/**/*.[hc]: Untabify.
14011         * README: New section "Indent with spaces, not TABs", based on
14012         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
14013         * NEWS: Mention the change.
14014
14015 2009-12-10  Bruno Haible  <bruno@clisp.org>
14016
14017         pty test: Fix link error.
14018         * modules/pty-tests (Makefile.am): Add the default LDADD value to
14019         test_pty_LDADD.
14020
14021 2009-12-07  Simon Josefsson  <simon@josefsson.org>
14022
14023         * modules/pty: New file.
14024         * modules/pty-tests: New file.
14025         * m4/pty.m4: New file.
14026         * tests/test-pty.c: New file.
14027         * doc/glibc-headers/pty.texi: Modified.
14028         * doc/glibc-functions/forkpty.texi: Modified.
14029         * doc/glibc-functions/openpty.texi: Modified.
14030
14031 2009-12-10  Bruno Haible  <bruno@clisp.org>
14032
14033         Avoid syntax error in C++ mode.
14034         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
14035
14036 2009-12-10  Bruno Haible  <bruno@clisp.org>
14037
14038         Use sed with option -e.
14039         * gnulib-tool (func_version, func_emit_copyright_notice,
14040         func_emit_initmacro_end, func_import, func_create_testdir): Pass
14041         option -e to sed.
14042         * modules/link-warning (Makefile.am): Likewise.
14043
14044 2009-12-10  Jim Meyering  <meyering@redhat.com>
14045
14046         mgetgroups: do not write bytes beyond end of malloc'd buffer
14047         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
14048         username, we call getgroups with a one-element-shorter buffer,
14049         but still told it the length was original, max_n_groups.
14050
14051 2009-12-09  Eric Blake  <ebb9@byu.net>
14052
14053         cloexec: relax license
14054         * modules/cloexec (Maintainer): Add myself.
14055         (License): Use LGPL, not GPL.
14056
14057         link-warning: optimize generation
14058         * modules/link-warning (Makefile.am): Reduce process usage.
14059
14060 2009-12-09  Bruno Haible  <bruno@clisp.org>
14061
14062         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
14063         workaround was added on 2009-11-17.
14064
14065 2009-12-09  Jim Meyering  <meyering@redhat.com>
14066             Bruno Haible  <bruno@clisp.org>
14067
14068         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
14069         * modules/link-warning (Makefile.am): Make the comment-removing sed
14070         command more robust in the face of bootstrap-prepended comment lines.
14071
14072 2009-12-09  Bruno Haible  <bruno@clisp.org>
14073
14074         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
14075         most one group.
14076
14077 2009-12-09  Simon Josefsson <simon@josefsson.org>
14078             Bruno Haible  <bruno@clisp.org>
14079
14080         * build-aux/link-warning.h: Add copyright notice.
14081         * modules/link-warning (Makefile.am): Generate link-warning.h from
14082         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
14083         * NEWS: Mention change in link-warning module.
14084         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
14085         * modules/dirent (Makefile.am): Add dependency to dirent.h.
14086         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
14087         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
14088         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
14089         * modules/math (Makefile.am): Add dependency to math.h.
14090         * modules/search (Makefile.am): Add dependency to search.h.
14091         * modules/signal (Makefile.am): Add dependency to signal.h.
14092         * modules/spawn (Makefile.am): Add dependency to spawn.h.
14093         * modules/stdio (Makefile.am): Add dependency to stdio.h.
14094         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
14095         * modules/string (Makefile.am): Add dependency to string.h.
14096         * modules/strings (Makefile.am): Add dependency to strings.h.
14097         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
14098         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
14099         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
14100         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
14101         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
14102         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
14103         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
14104         * modules/unistd (Makefile.am): Add dependency to unistd.h.
14105         * modules/wchar (Makefile.am): Add dependency to wchar.h.
14106
14107 2009-12-09  Bruno Haible  <bruno@clisp.org>
14108
14109         fchdir: Optimize away rpl_fstat when possible.
14110         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
14111         REPLACE_OPEN_DIRECTORY.
14112         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
14113
14114 2009-12-09  Bruno Haible  <bruno@clisp.org>
14115
14116         * lib/fchdir.c: Update comment.
14117
14118 2009-12-09  Bruno Haible  <bruno@clisp.org>
14119
14120         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
14121
14122 2009-12-08  Eric Blake  <ebb9@byu.net>
14123
14124         fchdir: avoid memory leak on re-registration.
14125         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
14126
14127 2009-12-08  Jim Meyering  <meyering@redhat.com>
14128
14129         init.sh: avoid Solaris 10 /bin/sh portability problem
14130         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
14131         sourced script:
14132           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
14133           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
14134           bar
14135         tests/init.sh relied on that, accepting a --set-path=DIR argument,
14136         and two tests used that idiom.
14137         * tests/init.sh: Update suggested usage comments.
14138         (path_prepend_): New function, to be used in place
14139         of the --src-path=DIR option.
14140         (setup_): Move PATH-prepending code into path_prepend_.
14141         * tests/test-pread.sh: Adapt to new usage.
14142         * tests/test-xalloc-die.sh: Likewise.
14143
14144 2009-12-08  Simon Josefsson  <simon@josefsson.org>
14145
14146         * doc/gnulib.texi (Glibc pty.h): Add.
14147         * doc/glibc-functions/forkpty.texi: Add.
14148         * doc/glibc-functions/openpty.texi: Add.
14149         Suggested by Bruno Haible.
14150
14151 2009-12-08  Eric Blake  <ebb9@byu.net>
14152
14153         fchdir: fix logic bugs
14154         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
14155         * tests/test-fchdir.c (main): Enhance test.
14156         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
14157         is in use.
14158
14159         dup2: fix logic bugs
14160         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
14161         REPLACE_DUP2 to decide when rpl_dup2 is needed.
14162         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
14163         exists.
14164         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
14165
14166 2009-12-07  Eric Blake  <ebb9@byu.net>
14167
14168         unlink: fix m4 detection
14169         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
14170
14171         unistd-safer: add unit test
14172         * modules/unistd-safer-tests: New file.
14173         * tests/test-dup-safer.c: Likewise.
14174         * tests/test-cloexec.c (setmode): Avoid compiler warning.
14175         * tests/test-dup2.c (setmode): Likewise.
14176         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
14177
14178         cloexec: preserve text vs. binary across dup_cloexec
14179         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
14180         mode.
14181         * modules/dup2-tests (Depends-on): Add binary-io.
14182         * modules/cloexec-tests (Depends-on): Likewise.
14183         * tests/test-dup2.c (setmode, is_mode): New helpers.
14184         (main): Add tests that translation mode is preserved.
14185         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
14186         Reported by Bruno Haible.
14187
14188         mgetgroups: reduce duplicate listings
14189         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
14190         resulting array.
14191         * tests/test-chown.h (test_chown): Simplify client.
14192         * tests/test-lchown.h (test_lchown): Likewise.
14193
14194 2009-12-06  Bruno Haible  <bruno@clisp.org>
14195
14196         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
14197         value.
14198
14199 2009-12-06  Bruno Haible  <bruno@clisp.org>
14200
14201         * lib/progname.c: Include stdio.h, stdlib.h.
14202         (set_program_name): Reject a NULL argument.
14203
14204 2009-12-05  Eric Blake  <ebb9@byu.net>
14205
14206         pipe2-safer: new module
14207         * modules/pipe2-safer: New file.
14208         * lib/unistd-safer.h (pipe2_safer): New prototype.
14209         * lib/unistd--.h (pipe2): New wrapper.
14210         * lib/pipe-safer.c (pipe2_safer): New function.
14211         * modules/pipe (Depends-on): Add pipe2-safer.
14212         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
14213
14214         stdlib-safer: preserve cloexec flag for mkostemp[s]
14215         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
14216         fd_safer_flag.
14217
14218         unistd-safer: allow preservation of cloexec status via flag
14219         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
14220         prototypes.
14221         * lib/dup-safer.c (dup_safer_flag): New function.
14222         * lib/fd-safer.c (fd_safer_flag): Likewise.
14223         * modules/cloexec (configure.ac): Set witness.
14224
14225         test-dup2: enhance test
14226         * modules/dup2-tests (Depends-on): Add cloexec.
14227         * tests/test-dup2.c (main): Enhance test.
14228
14229         cloexec: add dup_cloexec
14230         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
14231         header and comments.
14232         * lib/cloexec.c (set_cloexec_flag): Add comments.
14233         (dup_cloexec): New function, with mingw implementation borrowed
14234         from...
14235         * lib/w32spawn.h (dup_noinherit): ...here.
14236         * modules/execute (Depends-on): Add cloexec.
14237         * modules/pipe (Depends-on): Likewise.
14238         * modules/cloexec (Depends-on): Add dup2.
14239         * modules/cloexec-tests (Files): New file.
14240         * tests/test-cloexec.c: Likewise.
14241
14242         test-xalloc-die: fix test for mingw
14243         * modules/xalloc-die-tests (Files): Add tests/init.sh.
14244         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
14245         directory and .exe suffix off argv[0] output.
14246
14247         test-fseeko: fix test for mingw
14248         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
14249         than undefining fseek, so test will pass on mingw.
14250
14251 2009-12-05  Bruno Haible  <bruno@clisp.org>
14252
14253         * lib/progname.h (set_program_name): Clarify specification.
14254         * lib/progname.c (set_program_name): Likewise.
14255         Reported by Jim Meyering.
14256
14257 2009-12-05  Jim Meyering  <meyering@redhat.com>
14258
14259         maint.mk: backslash-escape parens in default regexp
14260         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
14261         backslash-escape the literal parentheses.
14262
14263         maint.mk: news-date-check: use grep -E
14264         * top/maint.mk (today): Define a Make variable, not a...
14265         (news-date-check): ...shell variable.
14266         (news-date-regexp): Use the Make variable.
14267         Use grep's -E option.  Change the failing diagnostic to mention
14268         the variable, $(news-date-regexp).
14269
14270 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
14271
14272         maintainer-makefile: allow customization of NEWS entry format
14273         * top/maint.mk (news-date-regexp): New overridable variable.
14274         (news-date-check): Use it.
14275
14276 2009-12-04  Eric Blake  <ebb9@byu.net>
14277
14278         mgetgroups: add xgetgroups, and avoid ENOSYS failures
14279         * lib/mgetgroups.h (xgetgroups): New prototype.
14280         * lib/mgetgroups.c (xgetgroups): New wrapper.
14281         (mgetgroups): Handle ENOSYS.
14282         * modules/mgetgroups (Depends-on): Add realloc.
14283         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
14284
14285         mgetgroups: avoid argument promotion issues with -1
14286         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
14287         for invalid gid_t.
14288         * tests/test-chown.h (getegid, test_chown): Likewise.
14289         * tests/test-lchown.h (getegid, test_lchown): Likewise.
14290
14291 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
14292
14293         exclude: Fix header file problems.
14294         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
14295
14296 2009-12-01  Jim Meyering  <meyering@redhat.com>
14297
14298         fts: fts_open: do not let an empty string cause immediate failure
14299         This is required in support of GNU rm, for which the command
14300         "rm A '' B" must process and remove both A and B, in spite of
14301         the empty string argument.
14302         * lib/fts.c (fts_open): Do not let the presence of an empty string
14303         cause fts_open to fail immediately.  Most fts-using tools must be
14304         able to process all arguments, in order, and can be expected to
14305         diagnose such arguments themselves.
14306
14307 2009-11-30  Eric Blake  <ebb9@byu.net>
14308
14309         utimens: fix compilation error
14310         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
14311         Declare variable at right scope.
14312
14313 2009-11-29  Jim Meyering  <meyering@redhat.com>
14314
14315         bootstrap: handle perl-5.11's changed --version output
14316         * build-aux/bootstrap (get_version): Handle perl separately,
14317         since perl-5.11's --version output is different.
14318
14319 2009-11-28  Jim Meyering  <meyering@redhat.com>
14320
14321         userspec: depend on the inttostr module, too
14322         * modules/userspec (Depends-on): Add inttostr.
14323
14324         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
14325         * lib/userspec.c (parse_with_separator): Do not accept a user ID
14326         number of MAXUID when it evaluates to (uid_t) -1.
14327         Likewise for group ID.  Reported by Matt McCutchen in
14328         <http://savannah.gnu.org/bugs/?28113>
14329
14330         userspec: reformat to use spaces, not TABs
14331         * lib/userspec.c: Expand TABs to spaces.
14332         Add Emacs' "indent-tabs-mode: nil" hint.
14333
14334 2009-11-27  Eric Blake  <ebb9@byu.net>
14335
14336         getopt-gnu: flush out another BSD bug
14337         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
14338         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
14339         flush out BSD bug.
14340         * tests/test-getopt.h (test_getopt): End lists with NULL.
14341         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14342         (test_getopt_long_posix): Enhance test.
14343         * modules/getopt-posix-tests (Depends-on): Add stdbool.
14344         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
14345         getopt-gnu.
14346         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14347         Likewise.
14348
14349 2009-11-27  Simon Josefsson  <simon@josefsson.org>
14350
14351         * modules/idpriv-droptemp-tests (Notice): Fix text.
14352
14353 2009-11-27  Jim Meyering  <meyering@redhat.com>
14354
14355         test-xalloc-die: avoid spurious failure due to libtool argv difference
14356         In a libtool-enabled project, this test would fail due to a difference
14357         in the emitted program name, e.g.,
14358         -test-xalloc-die: memory exhausted
14359         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
14360         Use program to avoid that.
14361         * modules/xalloc-die-tests (Depends-on): Add progname.
14362         * tests/test-xalloc-die.c: Include progname.h".
14363         (program_name): Remove decl.
14364         (main): Call set_program_name.
14365         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
14366
14367 2009-11-26  Richard Jones  <rjones@redhat.com>
14368
14369         w32sock: leave win32 error in place.
14370         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
14371
14372 2009-11-26  Eric Blake  <ebb9@byu.net>
14373
14374         init.sh: suggest to use skip_ and fail_ functions in comments
14375         * tests/init.sh: Add a sentence.
14376
14377 2009-11-25  Bruno Haible  <bruno@clisp.org>
14378
14379         init.sh: add documentation in comments
14380         * tests/init.sh: Add some developer and user documentation.
14381
14382 2009-11-26  Jim Meyering  <meyering@redhat.com>
14383
14384         init.sh: accommodate even those who specify bogus srcdir manually
14385         * tests/init.sh: Normally, srcdir is guaranteed by automake and
14386         configure-time tests to be sanitized, so that there is no need to
14387         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
14388         (with no double quotes) suffices.  However, since tests may be
14389         invoked manually, and since you may explicitly set srcdir to the
14390         name of a directory containing spaces, do quote its uses here.
14391         * tests/test-pread.sh: Likewise.
14392         Suggested by Bruno Haible.
14393
14394         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
14395         * tests/test-pread.sh: Write no data into the pipe, because
14396         test-pread actually reads none.  This avoids a diagnostic,
14397         "bash: echo: write error: Broken pipe", that arises in the unusual
14398         event something is ignoring SIGPIPE, and might be interpreted
14399         as some sort of failure.  Reported by Bruno Haible.
14400
14401 2009-11-25  Jim Meyering  <meyering@redhat.com>
14402
14403         test-pread: cover failure with ESPIPE and EINVAL
14404         * tests/test-pread.c (main): Test for failure, too.
14405         * tests/test-pread.sh: Invoke with stdin on a pipe.
14406         Suggested by Eric Blake.
14407
14408         pread: improvement and fix
14409         * modules/pread (Depends-on): Depend on lseek, for portability to
14410         e.g., mingw.  Suggested by Eric Blake.
14411         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
14412
14413         unistd.in.h: correct declaration of pread
14414         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
14415         Reported by Richard W.M. Jones.
14416
14417         test-pread.sh: distribute the test script
14418         * modules/pread-tests (Files): Include test-pread.sh.
14419
14420         test-pread.sh: clean up
14421         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
14422         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
14423         That is unnecessary, since it's always ".".
14424         Suggestion from Eric Blake.
14425
14426         test-pread.sh: make executable
14427         * tests/test-pread.sh: Set executable bit.
14428         Reported by Eric Blake.
14429
14430         correct typo in test-pread.sh
14431         * tests/test-pread.sh: Add #! line.
14432
14433         test pread
14434         * tests/test-pread.c: New file.
14435         * tests/test-pread.sh: Likewise.
14436         * modules/pread-tests: Likewise.
14437
14438         pread: new module
14439         * modules/pread: New file.
14440         * lib/unistd.in.h (pread): Define/declare.
14441         * lib/pread.c (pread): New file.
14442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
14443         * modules/unistd (Makefile.am): Substitute witnesses.
14444         * doc/posix-functions/pread.texi (pread): Update.
14445         * MODULES.html.sh: Add pread.
14446
14447 2009-11-25  Jim Meyering  <meyering@redhat.com>
14448
14449         tests/init.sh: new file to be used via most *.sh tests
14450         * tests/init.sh: New file.
14451
14452 2009-11-25  Eric Blake  <ebb9@byu.net>
14453
14454         utimens: work around older Linux failure with symlinks
14455         * lib/utimens.c (lutimensat_works_really): New variable.
14456         (fdutimens, lutimens): Use it to manage kernels that support
14457         nanosecond times on files, but not on symlinks.
14458         Reported by Ondřej Vašík.
14459
14460         utimes: fix configure grammar
14461         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
14462
14463 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
14464
14465         regex: Fix fastmap for multibyte character ranges.
14466         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
14467         characters when a multibyte character range is included.
14468
14469 2009-11-22  Andy Wingo  <wingo@pobox.com>
14470
14471         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
14472         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
14473
14474 2009-11-24  Bruno Haible  <bruno@clisp.org>
14475
14476         doc: Most *_l functions exist in MacOS X 10.5.
14477         * doc/posix-functions/duplocale.texi: Update platforms list.
14478         * doc/posix-functions/freelocale.texi: Likewise.
14479         * doc/posix-functions/newlocale.texi: Likewise.
14480         * doc/posix-functions/uselocale.texi: Likewise.
14481         * doc/posix-functions/isalnum_l.texi: Likewise.
14482         * doc/posix-functions/isalpha_l.texi: Likewise.
14483         * doc/posix-functions/isblank_l.texi: Likewise.
14484         * doc/posix-functions/iscntrl_l.texi: Likewise.
14485         * doc/posix-functions/isdigit_l.texi: Likewise.
14486         * doc/posix-functions/isgraph_l.texi: Likewise.
14487         * doc/posix-functions/islower_l.texi: Likewise.
14488         * doc/posix-functions/isprint_l.texi: Likewise.
14489         * doc/posix-functions/ispunct_l.texi: Likewise.
14490         * doc/posix-functions/isspace_l.texi: Likewise.
14491         * doc/posix-functions/isupper_l.texi: Likewise.
14492         * doc/posix-functions/iswalnum_l.texi: Likewise.
14493         * doc/posix-functions/iswalpha_l.texi: Likewise.
14494         * doc/posix-functions/iswblank_l.texi: Likewise.
14495         * doc/posix-functions/iswcntrl_l.texi: Likewise.
14496         * doc/posix-functions/iswctype_l.texi: Likewise.
14497         * doc/posix-functions/iswdigit_l.texi: Likewise.
14498         * doc/posix-functions/iswgraph_l.texi: Likewise.
14499         * doc/posix-functions/iswlower_l.texi: Likewise.
14500         * doc/posix-functions/iswprint_l.texi: Likewise.
14501         * doc/posix-functions/iswpunct_l.texi: Likewise.
14502         * doc/posix-functions/iswspace_l.texi: Likewise.
14503         * doc/posix-functions/iswupper_l.texi: Likewise.
14504         * doc/posix-functions/iswxdigit_l.texi: Likewise.
14505         * doc/posix-functions/isxdigit_l.texi: Likewise.
14506         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
14507         * doc/posix-functions/strcasecmp_l.texi: Likewise.
14508         * doc/posix-functions/strcoll_l.texi: Likewise.
14509         * doc/posix-functions/strfmon_l.texi: Likewise.
14510         * doc/posix-functions/strftime_l.texi: Likewise.
14511         * doc/posix-functions/strncasecmp_l.texi: Likewise.
14512         * doc/posix-functions/strxfrm_l.texi: Likewise.
14513         * doc/posix-functions/tolower_l.texi: Likewise.
14514         * doc/posix-functions/toupper_l.texi: Likewise.
14515         * doc/posix-functions/towctrans_l.texi: Likewise.
14516         * doc/posix-functions/towlower_l.texi: Likewise.
14517         * doc/posix-functions/towupper_l.texi: Likewise.
14518         * doc/posix-functions/wcscoll_l.texi: Likewise.
14519         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14520         * doc/posix-functions/wctrans_l.texi: Likewise.
14521         * doc/posix-functions/wctype_l.texi: Likewise.
14522         * doc/glibc-functions/strptime_l.texi: Likewise.
14523         * doc/glibc-functions/strtod_l.texi: Likewise.
14524         * doc/glibc-functions/strtof_l.texi: Likewise.
14525         * doc/glibc-functions/strtol_l.texi: Likewise.
14526         * doc/glibc-functions/strtold_l.texi: Likewise.
14527         * doc/glibc-functions/strtoll_l.texi: Likewise.
14528         * doc/glibc-functions/strtoul_l.texi: Likewise.
14529         * doc/glibc-functions/strtoull_l.texi: Likewise.
14530         * doc/glibc-functions/wcsftime_l.texi: Likewise.
14531         * doc/glibc-functions/wcstod_l.texi: Likewise.
14532         * doc/glibc-functions/wcstof_l.texi: Likewise.
14533         * doc/glibc-functions/wcstol_l.texi: Likewise.
14534         * doc/glibc-functions/wcstold_l.texi: Likewise.
14535         * doc/glibc-functions/wcstoll_l.texi: Likewise.
14536         * doc/glibc-functions/wcstoul_l.texi: Likewise.
14537         * doc/glibc-functions/wcstoull_l.texi: Likewise.
14538
14539 2009-11-24  Bruno Haible  <bruno@clisp.org>
14540
14541         duplocale: Fix logic bug.
14542         * lib/duplocale.c: Don't include <langinfo.h>.
14543         (_NL_LOCALE_NAME): Remove macro.
14544         (rpl_duplocale): Use setlocale instead of nl_langinfo.
14545         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
14546
14547 2009-11-23  Jim Meyering  <meyering@redhat.com>
14548
14549         test-update-copyright: don't hard-code /usr/bin/perl
14550         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
14551         perl to print the current year.  Gilles Espinasse reported that
14552         the replaced use of perl was hard-coded as /usr/bin/perl.
14553
14554 2009-11-23  Bruno Haible  <bruno@clisp.org>
14555
14556         duplocale: Add support for glibc 2.3.x.
14557         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
14558
14559 2009-11-22  Bruno Haible  <bruno@clisp.org>
14560
14561         vasnprintf: Tiny optimization.
14562         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
14563         MacOS X.
14564
14565 2009-11-22  Bruno Haible  <bruno@clisp.org>
14566
14567         Tests for module 'duplocale'.
14568         * modules/duplocale-tests: New file.
14569         * tests/test-duplocale.c: New file.
14570
14571         New module 'duplocale'.
14572         * m4/duplocale.m4: New file.
14573         * lib/locale.in.h (duplocale): New declaration.
14574         * lib/duplocale.c: New file.
14575         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
14576         gl_LOCALE_H_DEFAULTS): New macros.
14577         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
14578         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
14579         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
14580         REPLACE_DUPLOCALE.
14581         * modules/duplocale: New file.
14582         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
14583
14584 2009-11-22  Bruno Haible  <bruno@clisp.org>
14585
14586         * modules/locale-tests (configure.ac): Test for newlocale function.
14587         * tests/test-locale.c: When the system has extended locale functions,
14588         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
14589
14590         locale: Make locale_t available when possible.
14591         * lib/locale.in.h: Include <xlocale.h> when it exists.
14592         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
14593         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
14594         * modules/locale (Depends-on): Add extensions.
14595         (Makefile.am): Also substitute HAVE_XLOCALE_H.
14596         * doc/posix-headers/locale.texi: Document the problem with locale_t.
14597
14598 2009-11-22  Bruno Haible  <bruno@clisp.org>
14599
14600         Add comments.
14601         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
14602         invocation.
14603         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14604         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14605         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14606
14607 2009-11-22  Bruno Haible  <bruno@clisp.org>
14608
14609         error: account for the possibility of freopen (stdout).
14610         * lib/error.c: Include <unistd.h>.
14611         (flush_stdout): New function, extracted from error and error_at_line.
14612         Determine stdout's fd dynamically.
14613         (error, error_at_line): Invoke flush_stdout.
14614         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
14615         * modules/error (Depends-on): Add unistd.
14616
14617 2009-11-22  Bruno Haible  <bruno@clisp.org>
14618
14619         diffseq: Add comment.
14620         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
14621
14622 2009-11-22  Jim Meyering  <meyering@redhat.com>
14623
14624         c-stack: avoid defining an unused static function
14625         * lib/c-stack.c (find_stack_direction): Do not define this function
14626         when it will not be used.
14627
14628         diffseq: avoid spurious gcc warnings
14629         * lib/diffseq.h (IF_LINT2): Define.
14630         (compareseq): Use it to initialize two members of "part".
14631         This avoids two used-uninitialized warnings.
14632
14633 2009-11-21  Jim Meyering  <meyering@redhat.com>
14634
14635         c-stack: avoid "ignoring return value of `write'" warning
14636         * lib/c-stack.c: Include "ignore-value.h".
14637         (die): Explicitly ignore each write return value.
14638         * modules/c-stack (Depends-on): Add ignore-value.
14639
14640 2009-11-21  Bruno Haible  <bruno@clisp.org>
14641
14642         diffseq: reduce scope of variable 'best'.
14643         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
14644         variable, earlier used for two different purposes.
14645
14646 2009-11-21  Jim Meyering  <meyering@redhat.com>
14647
14648         diffseq: remove useless assignment to "best"
14649         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
14650         assignment.  At that point "best" is already guaranteed to be zero.
14651
14652 2009-11-20  Eric Blake  <ebb9@byu.net>
14653
14654         build: mention ftp redirector in release announcements
14655         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
14656         values that used to come from cfg.mk; mention FTP redirect URL.
14657         * build-aux/announce-gen: Mention the mirror list.
14658         Suggested by Karl Berry.
14659
14660         nanosleep: improve port to mingw
14661         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
14662         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
14663         LIB_NANOSLEEP, but only when needed.
14664         * modules/select (Link): Document LIBSOCKET.
14665         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
14666         enough.
14667
14668         nanosleep: work around cygwin bug
14669         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
14670         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
14671         bug.
14672         (getnow): Delete, not needed.
14673         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
14674         LIB_CLOCK_GETTIME.
14675         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
14676         clock-time, gettime.
14677         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
14678         bug.
14679         * modules/nanosleep-tests: New test.
14680         * tests/test-nanosleep.c: New file.
14681
14682         sleep: work around cygwin bug
14683         * lib/sleep.c (rpl_sleep): Work around the bug.
14684         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
14685         (gl_PREREQ_SLEEP): Delete unused macro.
14686         * modules/sleep (Depends-on): Add verify.
14687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14688         * modules/unistd (Makefile.am): Substitute witness.
14689         * lib/unistd.in.h (sleep): Update prototype.
14690         * doc/posix-functions/sleep.texi (sleep): Document the bug.
14691         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
14692         * modules/sleep-tests (Depends-on): Check for alarm.
14693
14694 2009-11-20  Jim Meyering  <meyering@redhat.com>
14695
14696         maint.mk: improve sc_prohibit_magic_number_exit
14697         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
14698         so it does not match uses like System.exit(1).
14699         Add comments showing how to correct all offenders.
14700
14701 2009-11-19  Eric Blake  <ebb9@byu.net>
14702
14703         xalloc-die-tests: add missing library
14704         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
14705
14706         test-xvasprintf: silence compiler warnings
14707         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
14708         empty string from gcc.
14709
14710 2009-11-19  Jim Meyering  <meyering@redhat.com>
14711
14712         xfreopen: new module, from coreutils
14713         * modules/xfreopen: New module.
14714         * lib/xfreopen.c: New file.
14715         * lib/xfreopen.h: New file.
14716         * MODULES.html.sh (File stream based Input/Output"): Add it.
14717
14718 2009-11-19  Eric Blake  <ebb9@byu.net>
14719
14720         manywarnings: depend on warnings
14721         * modules/manywarnings (Depends-on): Add warnings.
14722
14723         build: avoid compiler warnings
14724         * lib/select.c (rpl_select): Delete unused variable.
14725         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
14726
14727 2009-11-18  Eric Blake  <ebb9@byu.net>
14728
14729         tests: avoid false negative with --with-packager
14730         * tests/test-version-etc.sh: Discard packager information.
14731         * tests/test-argp-version-etc-1.sh: Likewise.
14732         Reported by Mike Frysinger.
14733
14734         utimens: fix regression on Solaris
14735         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
14736         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
14737         can only change fd timestamps via futimesat.  Instead, use an
14738         additional witness macro to avoid BSD bug.
14739         Reported by Jim Meyering.
14740
14741 2009-11-17  Eric Blake  <ebb9@byu.net>
14742
14743         usleep: use it to simplify tests
14744         * modules/stat-time-tests (Depends-on): Add usleep.
14745         (configure.ac): Drop usleep check.
14746         * modules/chown-tests (Depends-on, configure.ac): Likewise.
14747         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
14748         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
14749         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
14750         * modules/openat-tests (Depends-on, configure.ac): Likewise.
14751         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
14752         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
14753         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
14754         Likewise.
14755         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
14756         * tests/test-lchown.h (nap): Likewise.
14757         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
14758         * tests/test-stat-time.c (nap): Likewise.
14759         * tests/test-utimens-common.h (nap): Update comments.
14760
14761         usleep: new module
14762         * modules/usleep: New file.
14763         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14764         * lib/usleep.c (usleep): Likewise.
14765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
14766         * modules/unistd (Makefile.am): Substitute witnesses.
14767         * lib/unistd.in.h (usleep): Add declaration.
14768         * doc/pastposix-functions/usleep.texi (usleep): Document this.
14769         * MODULES.html.sh (Date and time): Likewise.
14770         * modules/usleep-tests (Depends-on): New test.
14771         * tests/test-usleep.c: New file.
14772
14773         chown: work around OpenBSD bug
14774         * lib/chown.c (rpl_chown): Work around the bug.
14775         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
14776         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
14777         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
14778         * modules/chown (Depends-on): Add stdbool.
14779         * modules/lchown (Depends-on): Likewise.
14780         * doc/posix-functions/chown.texi (chown): Document the bug.
14781         * doc/posix-functions/lchown.texi (lchown): Likewise.
14782         * tests/test-lchown.h (test_chown): Relax test.
14783
14784         mkstemp: avoid conflict with C++ keyword template
14785         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
14786         * lib/mkostemp.c (mkostemp): Likewise.
14787         * lib/mkostemps.c (mkostemps): Likewise.
14788         * lib/mkstemp.c (mkstemp): Likewise.
14789         * lib/mkstemps.c (mkstemps): Likewise.
14790
14791         xalloc-die-tests: optimize
14792         * tests/test-xalloc-die.sh: Reduce number of processes.
14793
14794 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14795
14796         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
14797         patch from ludo@gnu.org (Ludovic Courtès).
14798
14799 2009-11-17  Jim Meyering  <meyering@redhat.com>
14800
14801         version-etc: use proper license string
14802         * modules/version-etc (License): Use LGPL, not LGPLv3+.
14803         * modules/version-etc-fsf: Likewise.
14804
14805 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14806
14807         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
14808         printed to stdout.  Deal with EOL differences.
14809
14810 2009-11-17  Eric Blake  <ebb9@byu.net>
14811
14812         unsetenv: work around Solaris bug
14813         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
14814         * lib/unsetenv.c (rpl_unsetenv): Work around it.
14815         Reported by Jim Meyering.
14816
14817         vasnprintf: avoid compiler warnings
14818         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
14819         variables.
14820         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
14821
14822 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14823
14824         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
14825         settings since xalloc-die is no longer the self test,
14826         xalloc-die.sh is.
14827
14828 2009-11-17  Jim Meyering  <meyering@redhat.com>
14829
14830         test-xalloc-die.sh: make the code agree with the commit log
14831         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
14832         at the end, just in case you happen to have a test-xalloc-die
14833         program in some other PATH directory.
14834
14835         test-xalloc-die.sh: fix a portability bug
14836         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
14837         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
14838         Otherwise, argv[0] (as often seen in diagnostics) would be too
14839         system-dependent, sometimes with, and sometimes without the leading "./".
14840
14841         version-etc-fsf: relax license to LGPLv3+
14842         * modules/version-etc-fsf (License): Relax license.
14843
14844 2009-11-16  Eric Blake  <ebb9@byu.net>
14845
14846         xalloc-die-tests: avoid printing null pointer
14847         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
14848         shell script.
14849         * tests/test-xalloc-die.c (program_name): Declare.
14850         * tests/test-xalloc-die.sh (tmpfiles): New file.
14851
14852         setenv, unsetenv: work around various bugs
14853         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
14854         (setenv) [HAVE_SETENV]: Work around bugs.
14855         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
14856         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
14857         for bugs.
14858         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
14859         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
14860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
14861         * modules/stdlib (Makefile.am): Update substitutions.
14862         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
14863         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
14864         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14865         * modules/setenv-tests: New test.
14866         * modules/unsetenv-tests: Likewise.
14867         * tests/test-setenv.c: New file.
14868         * tests/test-unsetenv.c: Likewise.
14869
14870 2009-11-16  Jim Meyering  <meyering@redhat.com>
14871
14872         version-etc: relax license to LGPLv3+
14873         * modules/version-etc (License): Relax license.
14874
14875         better AC_REQUIRE expanded-before-required-warning avoidance
14876         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
14877         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
14878         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
14879         which is no longer needed.
14880
14881 2009-11-16  Eric Blake  <ebb9@byu.net>
14882
14883         test-freading: clean up temporary file
14884         * tests/test-freading.c (main): Remove file on success, and use
14885         ASSERT more liberally.
14886         Reported by Jim Meyering.
14887
14888 2009-11-16  Jim Meyering  <meyering@redhat.com>
14889
14890         avoid new AC_REQUIRE expanded-before-required warnings
14891         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
14892         merely using it.
14893         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
14894         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
14895
14896 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14897
14898         * tests/test-xalloc-die.c: New file.
14899         * modules/xalloc-die-tests: New file.
14900         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
14901         XFAIL_TESTS so it can be appended by modules.
14902
14903 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14904
14905         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
14906         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
14907
14908 2009-11-14  Eric Blake  <ebb9@byu.net>
14909
14910         fnmatch: avoid compiler warning
14911         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
14912         to silence compiler warning about mismatch signedness in ?:.
14913         Reported by Robert Millan.
14914
14915         intprops: add double-inclusion guard
14916         * lib/intprops.h: Allow idempotent includes.
14917         Suggested by Bruce Korb.
14918
14919         openat: detect Solaris fchownat bug
14920         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
14921         penalizing glibc chownat when only lchownat is broken.
14922         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
14923         trailing slash bugs.
14924         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
14925         * modules/openat-tests (Files): Include more files.
14926         (Depends-on): Add mgetgroups, sleep, stat-time.
14927         (configure.ac): Add additional checks.
14928         (Makefile.am): Build new test.
14929         * tests/test-fchownat.c: New file.
14930
14931         lchown: detect Solaris and FreeBSD bug
14932         * lib/lchown.c (rpl_lchown): Work around bug.
14933         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
14934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14935         * modules/unistd (Makefile.am): Populate it.
14936         * lib/unistd.in.h (lchown): Update declaration.
14937         * doc/posix-functions/lchown.texi (lchown): Document the bug.
14938         * modules/lchown-tests: New file.
14939         * tests/test-lchown.h (test_lchown): Likewise.
14940         * tests/test-lchown.c (main): Likewise.
14941
14942         chown: detect Solaris and FreeBSD bug
14943         * lib/chown.c (rpl_chown): Work around bug.
14944         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
14945         (gl_PREREQ_CHOWN): Delete.
14946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14947         * modules/unistd (Makefile.am): Populate it.
14948         * lib/unistd.in.h (chown): Update declaration.
14949         * lib/lchown.c (chown): Update client.
14950         * modules/lchown (Depends-on): Add lstat.
14951         * doc/posix-functions/chown.texi (chown): Document the bug.
14952         * doc/posix-functions/getgroups.texi (getgroups): Document
14953         getgroups pitfall.
14954         * modules/chown-tests: New file.
14955         * tests/test-chown.h (test_chown): Likewise.
14956         * tests/test-chown.c (main): Likewise.
14957
14958 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
14959
14960         gnulib-tool: correctly detect absence of m4 directories
14961         * gnulib-tool: Avoid extra newline on data passed to wc -l.
14962
14963 2009-11-14  Jim Meyering  <meyering@redhat.com>
14964
14965         maint.mk: Prohibit inclusion of "xalloc.h" without use.
14966         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14967
14968 2009-11-14  John W. Eaton  <jwe@gnu.org>
14969
14970         strftime.h: wrap funtion declaration in extern "C" block
14971         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
14972
14973 2009-11-13  Eric Blake  <ebb9@byu.net>
14974
14975         getgroups: avoid compiler warning
14976         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
14977
14978         getgroups: work around FreeBSD bug
14979         * lib/getgroups.c (rpl_getgroups): Work around the bug.
14980         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
14981         * doc/posix-functions/getgroups.texi (getgroups): Document it.
14982         * tests/test-getgroups.c (main): Fix buffer overrun.
14983
14984         getgroups: avoid compilation failure
14985         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
14986         * modules/getgroups (Depends-on): Add stdint.
14987
14988 2009-11-13  Jim Meyering  <meyering@redhat.com>
14989
14990         test-getgroups: avoid compilation failure
14991         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
14992
14993 2009-11-13  Eric Blake  <ebb9@byu.net>
14994
14995         mgetgroups: new module, taken from coreutils
14996         * modules/mgetgroups: New file.
14997         * lib/mgetgroups.h: Likewise.
14998         * lib/mgetgroups.c (mgetgroups): Likewise.
14999         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
15000         * MODULES.html.sh (Users and groups): Mention it.
15001
15002         getgroups: don't expose GETGROUPS_T to user
15003         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
15004         an element at a time if GETGROUPS_T is wrong size.
15005         * lib/getugroups.h (getugroups): Change signature.
15006         * lib/unistd.in.h (getgroups): Likewise.
15007         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
15008         signature needs fixing.
15009         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
15010         AC_TYPE_GETGROUPS.
15011         * modules/group-member (Depends-on): Add getgroups.
15012         * lib/group-member.c (group_info, get_group_info): Use gid_t.
15013         (group_member): Rely on getgroups replacement.
15014         * lib/getugroups.c (getugroups): Use gid_t.
15015         * tests/test-getgroups.c (main): Likewise.
15016         * NEWS: Mention the signature change.
15017         * doc/posix-functions/getgroups.texi (getgroups): Mention the
15018         problem with signature.
15019         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
15020         GETGROUPS_T is still useful for setgroups.
15021
15022         getgroups, getugroups: provide stubs for mingw
15023         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
15024         * lib/getugroups.c (getugroups): Likewise.
15025         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
15026         function.  Modernize replacement scheme.
15027         (gl_PREREQ_GETGROUPS): Delete.
15028         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
15029         * modules/getgroups (configure.ac): Declare witness.
15030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
15031         * modules/unistd (Depends-on): Substitute witness.
15032         * lib/unistd.in.h (getgroups): Declare replacement.
15033
15034         getgroups: avoid calling exit
15035         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
15036         drop xalloc.
15037         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
15038         dependencies.
15039         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
15040         exiting, in the rare case of malloc failure.
15041
15042         getgroups: fix logic error
15043         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
15044         has more than 20 groups.
15045         * modules/getgroups-tests: New test.
15046         * tests/test-getgroups.c: New file.
15047
15048 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15049
15050         * tests/test-base64.c: Improve.
15051
15052 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15053
15054         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
15055         Blake <ebb9@byu.net>.
15056
15057 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15058
15059         * tests/test-xvasprintf.c: Add %s%s related checks.
15060
15061 2009-11-12  Eric Blake  <ebb9@byu.net>
15062
15063         version-etc: match standards.texi style
15064         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
15065         and use <> only for URLs.
15066
15067 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
15068
15069         fts: do not fail on a submount during traversal
15070         * lib/fts.c (fts_build): Read the stat info again after opening
15071         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
15072         Original report at http://bugzilla.redhat.com/501848.
15073
15074 2009-11-12  Jim Meyering  <meyering@redhat.com>
15075
15076         bootstrap: sync from coreutils
15077         * build-aux/bootstrap (bootstrap_epilogue): New function.
15078         Use git_modules_config in one more place.  This make bootstrap's
15079         --gnulib-srcdir option more useful for testing.
15080
15081         bootstrap: generalize autoheader check
15082         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
15083         AC_CONFIG_HEADERS.
15084
15085 2009-11-11  Eric Blake  <ebb9@byu.net>
15086
15087         mkfifoat: use new modules for Solaris and BSD bugs
15088         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
15089         * lib/mkfifoat.c (mknodat): Split...
15090         * lib/mknodat.c (mknodat): ...into new file.
15091         * modules/mkfifoat (Files): Ship new file.
15092         (Depends-on): Add mkfifo, mknod.
15093         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
15094         (Depends-on): Add symlink.
15095         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
15096         redundant with test_mkfifo.h.
15097         (do_mkfifoat, do_mknodat): New helpers.
15098
15099         mknod: new module
15100         * modules/mknod: New file.
15101         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
15102         * lib/mknod.c (mknod): Likewise.
15103         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
15104         defaults.
15105         * modules/sys_stat (Makefile.am): Substitute them.
15106         * lib/sys_stat.in.h (mknod): Declare replacement.
15107         * MODULES.html.sh (Support for systems lacking POSIX:2008):
15108         Document it.
15109         * doc/posix-functions/mknod.texi (mknod): Likewise.
15110         * modules/mknod-tests: New test.
15111         * tests/test-mknod.c: Likewise.
15112
15113         mkfifo: new module
15114         * modules/mkfifo: New file.
15115         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15116         * lib/mkfifo.c (mkfifo): Likewise.
15117         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
15118         defaults.
15119         * modules/sys_stat (Makefile.am): Substitute them.
15120         * lib/sys_stat.in.h (mkfifo): Declare replacement.
15121         * MODULES.html.sh (Support for systems lacking POSIX:2008):
15122         Document it.
15123         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
15124         * modules/mkfifo-tests: New test.
15125         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
15126         from test-mkfifoat.c.
15127         * tests/test-mkfifo.c: New file.
15128
15129         readlink: detect FreeBSD bug
15130         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
15131         slash on symlink.
15132         * doc/posix-functions/readlink.texi (readlink): Document the bug.
15133         * tests/test-readlink.h (test_readlink): Enhance test.
15134
15135         symlink: detect FreeBSD bug
15136         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
15137         slash on symlink.
15138         * doc/posix-functions/symlink.texi (symlink): Document the bug.
15139         * tests/test-symlink.h (test_symlink): Enhance test.
15140
15141 2009-11-10  Eric Blake  <ebb9@byu.net>
15142
15143         link: detect FreeBSD bug
15144         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
15145         symlink.
15146         * doc/posix-functions/link.texi (link): Document the bug.
15147         * tests/test-link.h (test_link): Enhance test.
15148         * tests/test-linkat.c (main): Update caller.
15149
15150         unlink, remove: detect FreeBSD bug
15151         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
15152         slash on symlink.
15153         * doc/posix-functions/unlink.texi (unlink): Document the bug.
15154         * doc/posix-functions/remove.texi (remove): Likewise.
15155         * tests/test-unlink.h (test_unlink): Enhance test.
15156         * tests/test-remove.c (main): Likewise.
15157
15158 2009-11-09  Eric Blake  <ebb9@byu.net>
15159
15160         rename: detect FreeBSD bug
15161         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
15162         slash on symlink.
15163         * modules/renameat-tests (Depends-on): Add filenamecat.
15164         * tests/test-rename.h (test_rename): Allow one more errno.
15165         * tests/test-renameat.c (main): Likewise.
15166         * doc/posix-functions/rename.texi (rename): Document the bug.
15167
15168         open: detect FreeBSD bug
15169         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
15170         symlink.
15171         * doc/posix-functions/open.texi (open): Document the bug.
15172         * doc/posix-functions/utimes.texi (utimes): Likewise.
15173         * tests/test-open.h (test_open): Add parameters, and test symlink
15174         handling.
15175         * tests/test-open.c (main): Adjust caller.
15176         * tests/test-fcntl-safer.c (main): Likewise.
15177         * modules/open-tests (Depends-on): Add stdbool, symlink.
15178         * modules/fcntl-safer-tests (Depends-on): Likewise.
15179         * tests/test-openat.c (main): Add test-open tests.
15180
15181         stat: detect FreeBSD bug
15182         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
15183         symlink.
15184         * doc/posix-functions/stat.texi (stat): Document the bug.
15185         * tests/test-stat.h (test_stat_func): Add argument.
15186         * tests/test-stat.c (main): Adjust caller.
15187         * tests/test-fstatat.c (main): Likewise.
15188         * modules/stat-tests (Depends-on): Add stdbool, symlink.
15189         Reported by Jim Meyering.
15190
15191 2009-11-09  James Youngman  <jay@gnu.org>
15192
15193         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
15194         * lib/strftime.c: Correct placement of #include "ignore-value.h".
15195
15196 2009-11-08  Jim Meyering  <meyering@redhat.com>
15197
15198         utimens: remove invalid futimesat call
15199         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
15200         It used the file descriptor of the target file as the DIR_FD
15201         parameter and NULL as the file name.  That caused failure with
15202         errno == EFAULT on FreeBSD-8.0-rc2
15203
15204 2009-11-07  Eric Blake  <ebb9@byu.net>
15205
15206         fflush, freadseek: use fseeko, not fseek
15207         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
15208         (clear_ungetc_buffer): Avoid potential problems on large files.
15209         * lib/freadseek.c (freadseek): Likewise.
15210         * modules/freadseek (Depends-on): Add fseeko.
15211         * modules/fseek (configure.ac): Set a witness.
15212         * tests/test-fflush.c (main): Use fseeko.
15213         * tests/test-fpurge.c (fseek): Disable link warning.
15214         * tests/test-freadable.c (fseek): Likewise.
15215         * tests/test-freading.c (fseek): Likewise.
15216         * tests/test-fseeko.c (fseek): Likewise.
15217         * tests/test-ftell.c (fseek): Likewise.
15218         * tests/test-ftello.c (fseek): Likewise.
15219         * tests/test-fwritable.c (fseek): Likewise.
15220         * tests/test-fwriting.c (fseek): Likewise.
15221
15222 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15223
15224         * modules/memchr (Depends-on): Drop getpagesize dependency.
15225
15226 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15227
15228         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
15229         Reported by Ludovic Courtès.
15230         * build-aux/pmccabe2html: Improve example usage.
15231         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
15232
15233 2009-11-06  Jim Meyering  <meyering@redhat.com>
15234
15235         do-release-commit-and-tag: New module.
15236         Automate the release-commit and tag process.
15237         * build-aux/do-release-commit-and-tag: New script, from coreutils.
15238         * modules/do-release-commit-and-tag: New file.
15239         * MODULES.html.sh (Support for maintaining and releasing): Add it.
15240
15241 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15242
15243         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
15244         because test-select.c uses inet_pton.
15245
15246 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15247
15248         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
15249         GETADDRINFO_LIB.  Bump serial number.
15250         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
15251         Suggested by Eric Blake <ebb9@byu.net>.
15252
15253 2009-11-05  Eric Blake  <ebb9@byu.net>
15254
15255         strtod: detect darwin bug
15256         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
15257         Reported by Leo Davis.
15258
15259         freopen-safer: new module
15260         * modules/freopen-safer: New module.
15261         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
15262         * lib/freopen-safer.c (freopen_safer): New file.
15263         * lib/stdio-safer.h (freopen_safer): New declaration.
15264         * lib/stdio--.h (freopen): New override.
15265         * MODULES.html.sh (File stream based Input/Output): Mention it.
15266         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
15267         freopen-safer module.
15268         * doc/posix-functions/stderr.texi (stderr): Likewise.
15269         * doc/posix-functions/stdin.texi (stdin): Likewise.
15270         * doc/posix-functions/stdout.texi (stdout): Likewise.
15271         * modules/freopen-safer-tests: New test.
15272         * tests/test-reopen-safer.c: New file.
15273
15274 2009-11-05  Jim Meyering  <meyering@redhat.com>
15275
15276         maint.mk: Prohibit inclusion of "close-stream.h" without use.
15277         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
15278
15279 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15280
15281         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
15282
15283 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15284
15285         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
15286
15287 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15288
15289         Fix link error.
15290         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
15291         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15292
15293 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15294
15295         * tests/test-func.c: Also test value of __func__.
15296
15297 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15298
15299         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
15300         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
15301
15302 2009-11-05  Bruno Haible  <bruno@clisp.org>
15303
15304         Fix link error.
15305         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
15306         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15307         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
15308
15309 2009-11-05  Bruno Haible  <bruno@clisp.org>
15310
15311         Tests for module 'inet_pton'.
15312         * modules/inet_pton-tests: New file.
15313         * tests/test-inet_pton.c: New file.
15314
15315 2009-11-05  Bruno Haible  <bruno@clisp.org>
15316
15317         Tests for module 'inet_ntop'.
15318         * modules/inet_ntop-tests: New file.
15319         * tests/test-inet_ntop.c: New file.
15320
15321 2009-11-04  Eric Blake  <ebb9@byu.net>
15322
15323         stdlib-safer: wrap all mkstemp variants
15324         * modules/mkostemp (configure.ac): Set witness.
15325         * modules/mkostemps (configure.ac): Likewise.
15326         * modules/mkstemps (configure.ac): Likewise.
15327         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
15328         (mkstemps_safer): Wrap more functions.
15329         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
15330         wrapping.
15331         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
15332         (mkstemps_safer): Implement the wrappers.
15333
15334         mkstemps, mkostemps: new modules
15335         * modules/mkostemps: New module.
15336         * modules/mkstemps: Likewise.
15337         * lib/mkostemps.c (mkostemps): New file.
15338         * lib/mkstemps.c (mkstemps): Likewise.
15339         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
15340         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
15341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
15342         * modules/stdlib (Makefile.am): Substitute them.
15343         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
15344         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
15345         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15346         * doc/gnulib.texi (Glibc stdlib.h): Include them.
15347         * MODULES.html.sh (File system functions): Mention them.
15348
15349         tempname: resync from glibc
15350         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
15351         same values for __GT_FILE as glibc.  Abort even when assertions
15352         are disabled.
15353         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
15354         match its value otherwise.  Allow idempotent inclusion.
15355         * lib/mkdtemp.c (mkdtemp): Adjust caller.
15356         * lib/mkostemp.c (mkostemp): Likewise.
15357         * lib/mkstemp.c (mkstemp): Likewise.
15358         * lib/tmpfile.c (tmpfile): Likewise.
15359         * NEWS: Document this.
15360
15361         utimens: fix use of futimens on older Linux
15362         * lib/utimens.c (fdutimens): Use updated, rather than original,
15363         timespec to avoid bug in older Linux kernel.
15364         Reported by Simon Josefsson.
15365
15366 2009-11-04  Bruno Haible  <bruno@clisp.org>
15367
15368         Make num_processors more flexible and consistent.
15369         * lib/nproc.h (enum nproc_query): New type.
15370         (num_processors): Add a 'query' argument.
15371         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
15372         (num_processors): Add a 'query' argument. Test the value of the
15373         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
15374         mingw, count the number of CPUs available for the current process.
15375         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
15376         Check for sched_getaffinity and sched_getaffinity_np.
15377         * modules/nproc (Depends-on): Add c-ctype, extensions.
15378         * NEWS: Mention the change.
15379
15380 2009-11-03  Bruno Haible  <bruno@clisp.org>
15381
15382         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
15383
15384 2009-11-03  Jim Meyering  <meyering@redhat.com>
15385
15386         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
15387         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
15388         if it is defined.
15389
15390 2009-11-02  Eric Blake  <ebb9@byu.net>
15391
15392         mktime, timegm: share common declaration
15393         * lib/mktime-internal.h: New file.
15394         * lib/mktime.c: Use it rather than open-coding a declaration.
15395         * lib/timegm.c: Likewise.
15396         * modules/mktime (Files): Ship it.
15397         * modules/timegm (Files): Likewise.
15398         Suggested by Bruno Haible.
15399
15400         test-update-copyright: update test to match script changes
15401         * tests/test-update-copyright.sh: Avoid hard-coding perl
15402         location.  Don't update *.bak created by earlier runs.
15403
15404 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15405             Simon Josefsson  <simon@josefsson.org>
15406             Bruno Haible  <bruno@clisp.org>
15407
15408         Fix link error on Solaris 8.
15409         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
15410         also in libnsl. Define also INET_PTON_LIB.
15411         * modules/inet_pton (Link): New section.
15412
15413 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15414             Bruno Haible  <bruno@clisp.org>
15415
15416         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
15417         * modules/inet_ntop (Link): New section.
15418         Reported by Boyan Kasarov <bkasarov@gmail.com>.
15419
15420 2009-11-02  Eric Blake  <ebb9@byu.net>
15421
15422         maint: avoid compiler warnings in m4 macros
15423         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
15424         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
15425
15426 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15427
15428         * m4/pmccabe2html.m4: Remove file.
15429         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
15430         function.  Change maintainer.
15431         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
15432         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
15433         Courtès).
15434
15435 2009-10-31  Eric Blake  <ebb9@byu.net>
15436
15437         fseeko: fix m4 regression
15438         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
15439         regression from 2009-10-27.
15440         Reported by Ralf Wildenhues.
15441
15442 2009-10-31  Jim Meyering  <meyering@redhat.com>
15443
15444         inttostr: aesthetics and improved (compile-time) safety
15445         Define inttype_is_signed rather than inttype_is_unsigned,
15446         since the sole use is via "#if inttype_is_signed".
15447         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
15448         inttype_is_unsigned.
15449         * lib/offtostr.c (inttype_is_signed): Likewise.
15450         * lib/uinttostr.c (inttype_is_signed): Likewise.
15451         * lib/umaxtostr.c (inttype_is_signed): Likewise.
15452         * lib/inttostr.c (inttostr): Use verify to cross-check the
15453         inttype_is_signed value and the signedness of the actual type.
15454         * modules/inttostr (Depends-on): Add verify.
15455
15456 2009-10-30  Eric Blake  <ebb9@byu.net>
15457
15458         build: avoid compiler warnings
15459         * lib/fchmodat.c (lchmod): Mark unused variables.
15460         * lib/getopt.c (_getopt_initialize): Likewise.
15461         * lib/mktime.c (__mktime_internal): Provide prototype.
15462         * lib/inttostr.c (inttostr): Avoid compiler warning even with
15463         older gcc that do not understand #pragma GCC diagnostic.
15464         * lib/uinttostr.c (inttype_is_unsigned): Define.
15465         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
15466
15467 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
15468
15469         stat: fix compilation on AIX
15470         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
15471         only see struct stat64.
15472
15473 2009-10-30  Eric Blake  <ebb9@byu.net>
15474
15475         exclude: make more robust
15476         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
15477         rather than masking a coding bug.
15478         Suggested by Bruno Haible.
15479
15480 2009-10-30  Jim Meyering  <meyering@redhat.com>
15481
15482         perl scripts: remove #!/usr/bin/perl in favor of more portable...
15483         Rather than putting #!/usr/bin/perl on the first line,
15484         start with a variant of what's recommended by "man perlrun" that
15485         invokes the first "perl" program from your shell's search path.
15486         * build-aux/gitlog-to-changelog: Replace #!... as above.
15487         Add a "Local Variables" perl mode setting.
15488         Prompted by a patch from Ludovic Courtès.
15489         Improved by Eric Blake.
15490         * build-aux/useless-if-before-free: Likewise.
15491         * build-aux/announce-gen: Likewise.
15492         * build-aux/update-copyright: Likewise.
15493
15494 2009-10-29  Eric Blake  <ebb9@byu.net>
15495
15496         filenamecat-lgpl: adjust clients
15497         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
15498         filenamecat.
15499         * modules/renameat (Depends-on): Likewise.
15500
15501         filenamecat: split into filenamecat-lgpl
15502         * modules/filenamecat-lgpl: New module.
15503         * modules/filenamecat (Files): Move library-safe files into
15504         filenamecat-lgpl.
15505         (Depends-on): Add filenamecat-lgpl.
15506         (configure.ac): Declare witness.
15507         * lib/filenamecat.h (file_name_concat): Only declare when using
15508         GPL module.
15509         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
15510         Move...
15511         * lib/filenamecat-lgpl.c: ...into new file.
15512         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
15513         (gl_FILE_NAME_CONCAT): Use it.
15514         * MODULES.html.sh (File system functions): Mention new module.
15515
15516         argp: avoid memory leak
15517         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
15518         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
15519         base_name, since the latter malloc()s and can call exit().
15520         Leak introduced 2006-07-03.
15521
15522         dirname-lgpl: adjust clients that don't need full dirname
15523         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
15524         * modules/filenamecat (Depends-on): Likewise.
15525         * modules/linkat (Depends-on): Likewise.
15526         * modules/mkancesdirs (Depends-on): Likewise.
15527         * modules/mkdir (Depends-on): Likewise.
15528         * modules/openat (Depends-on): Likewise.
15529         * modules/savewd (Depends-on): Likewise.
15530         * modules/rename (Depends-on): Likewise.
15531         (License): Relax license.
15532         * modules/mkdir-tests (Depends-on): Drop progname.
15533         (Makefile.am): Delete unneeded LDADD.
15534         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
15535
15536         dirname: split into dirname-lgpl
15537         * modules/dirname-lgpl: New module.
15538         * modules/dirname (Files): Move library-safe files into
15539         dirname-lgpl.
15540         (Depends-on): Add dirname-lgpl.
15541         (configure.ac): Declare witness.
15542         * modules/double-slash-root (License): Relax license.
15543         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
15544         module.
15545         * lib/dirname.c (dir_len, mdir_name): Move...
15546         * lib/dirname-lgpl.c: ...into new file.
15547         * lib/basename.c (last_component, base_len): Move...
15548         * lib/basename-lgpl.c: ...into new file.
15549         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
15550         (gl_DIRNAME): Use it.
15551         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
15552         Mention new module.
15553         * modules/dirname-tests (Depends-on): Add progname.
15554         * tests/test-dirname.c (program_name): Delete.
15555
15556         mkdir: make safe for libraries
15557         * modules/mkdir (Depends-on): Drop xalloc.
15558         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
15559         exit.
15560
15561         tests: avoid some compiler warnings
15562         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
15563         literals.
15564         * tests/test-memchr.c (main): Avoid type mismatch.
15565         * tests/test-arpa_inet.c (main): Avoid unused parameters.
15566         * tests/test-base64.c (main): Likewise.
15567         * tests/test-getdelim.c (main): Likewise.
15568         * tests/test-gethostname.c (main): Likewise.
15569         * tests/test-getline.c (main): Likewise.
15570         * tests/test-netinet_in.c (main): Likewise.
15571         * tests/test-select.c (open_server_socket, main): Likewise.
15572         * tests/test-select-stdin.c (main): Likewise.
15573         * tests/test-sockets.c (main): Likewise.
15574         * tests/test-strsignal.c (main): Likewise.
15575         * tests/test-sys_select.c (main): Likewise.
15576         * tests/test-sys_socket.c (main): Likewise.
15577         * tests/test-u64.c (main): Likewise.
15578         * tests/test-xfprintf-posix.c (main): Likewise.
15579         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
15580
15581         sockets: avoid compiler warning
15582         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
15583
15584         maint: detect usage(1) and other suspicious exits
15585         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
15586
15587 2009-10-29  Jim Meyering  <meyering@redhat.com>
15588
15589         timespec: long-to-int truncation could make timespec_cmp malfunction
15590         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
15591         a multiple of 2^32 nanoseconds as no difference.
15592
15593 2009-10-28  Jim Meyering  <meyering@redhat.com>
15594
15595         fprintftime: wrap macro code argument in "do {...} while(0)"
15596         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
15597         cpy macro must be a statement that can be followed by a semicolon.
15598         Now that the else clause contains a comment and is hence longer
15599         than one line, I require curly braces.  That in turn requires
15600         that we wrap this code block in the standard do...while(0).
15601
15602         fprintftime: remove stray semicolon from previous change
15603         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
15604
15605         fprintftime: avoid a warning about ignored fwrite return value
15606         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
15607         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
15608         that is unsafe.
15609         * modules/fprintftime (Depends-on): Add ignore-value.
15610
15611         exclude: avoid an unwarranted warning
15612         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
15613
15614 2009-10-27  Eric Blake  <ebb9@byu.net>
15615
15616         fseek: avoid compilation failure when fflush is replaced
15617         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
15618         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
15619         module is in use.
15620         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
15621         module is not in use; since REPLACE_FSEEK worked otherwise.
15622         (GNULIB_FTELLO): Likewise for ftell.
15623         Reported by Ian Beckwith and others.
15624
15625 2009-10-27  Bruno Haible  <bruno@clisp.org>
15626
15627         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
15628         Reported by Jim Meyering.
15629
15630 2009-10-27  Jim Meyering  <jim@meyering.net>
15631             Bruno Haible  <bruno@clisp.org>
15632
15633         Avoid warning despite dropping the return value of fwrite.
15634         * lib/unicodeio.c: Include ignore-value.h.
15635         (fwrite_success_callback): Explicitly ignore fwrite's return value.
15636         * modules/unicodeio (Depends-on): Add ignore-value.
15637
15638 2009-10-26  Eric Blake  <ebb9@byu.net>
15639
15640         areadlinkat: fix fallback path
15641         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
15642         pointer and zero.
15643
15644 2009-10-22  Pádraig Brady  <P@draigBrady.com>
15645
15646         Use a better IO block size for modern systems
15647         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
15648         * lib/md2.c: Likewise.
15649         * lib/md4.c: Likewise.
15650         * lib/md5.c: Likewise.
15651         * lib/sha1.c: Likewise.
15652         * lib/sha256.c: Likewise.
15653         * lib/sha512.c: Likewise.
15654
15655 2009-10-22  Eric Blake  <ebb9@byu.net>
15656
15657         tests: avoid several compiler warnings
15658         * tests/test-getcwd.c (main): Avoid buffer underflow.
15659         * tests/test-getdate.c (main): String literals are not safe with
15660         putenv, so use setenv.  Declare unused argument.
15661         * modules/getdate-tests (Depends-on): Add setenv.
15662         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
15663         problems with string literals in char *.
15664         * tests/test-hash.c (main): Avoid shadowing declaration.
15665         (insert_new): Treat string literals as char const *.
15666         * tests/test-getopt.h (test_getopt): Likewise.
15667         (getopt_loop): Alter types to minimize casting elsewhere.
15668         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
15669         (test_getopt_long_posix): Likewise.
15670         (do_getopt_long): Add wrapper to minimize casting.
15671         * tests/test-atexit.c (clear_temp_file): Use void.
15672         * tests/test-areadlink-with-size.c (main): Declare unused
15673         arguments.
15674         * tests/test-areadlink.c (main): Likewise.
15675         * tests/test-areadlinkat-with-size.c (main): Likewise.
15676         * tests/test-areadlinkat.c (main): Likewise.
15677         * tests/test-canonicalize-lgpl.c (main): Likewise.
15678         * tests/test-canonicalize.c (main): Likewise.
15679         * tests/test-dirent-safer.c (main): Likewise.
15680         * tests/test-dirname.c (main): Likewise.
15681         * tests/test-dup2.c (main): Likewise.
15682         * tests/test-fchdir.c (main): Likewise.
15683         * tests/test-fcntl-h.c (main): Likewise.
15684         * tests/test-fcntl-safer.c (main): Likewise.
15685         * tests/test-fdopendir.c (main): Likewise.
15686         * tests/test-fdutimensat.c (main): Likewise.
15687         * tests/test-fflush.c (main): Likewise.
15688         * tests/test-filenamecat.c (main): Likewise.
15689         * tests/test-filevercmp.c (main): Likewise.
15690         * tests/test-fopen-safer.c (main): Likewise.
15691         * tests/test-fopen.c (main): Likewise.
15692         * tests/test-fpending.c (main): Likewise.
15693         * tests/test-fpurge.c (main): Likewise.
15694         * tests/test-freading.c (main): Likewise.
15695         * tests/test-fstatat.c (main): Likewise.
15696         * tests/test-fsync.c (main): Likewise.
15697         * tests/test-futimens.c (main): Likewise.
15698         * tests/test-getndelim2.c (main): Likewise.
15699         * tests/test-gettimeofday.c (main): Likewise.
15700         * tests/test-getopt.c (main): Likewise.
15701         * tests/test-i-ring.c (main): Likewise.
15702         * tests/test-inttypes.c (main): Likewise.
15703         * tests/test-link.c (main): Likewise.
15704         * tests/test-lstat.c (main): Likewise.
15705         * tests/test-math.c (main): Likewise.
15706         * tests/test-md5.c (main): Likewise.
15707         * tests/test-memchr2.c (main): Likewise.
15708         * tests/test-memrchr.c (main): Likewise.
15709         * tests/test-mkdir.c (main): Likewise.
15710         * tests/test-mkdirat.c (main): Likewise.
15711         * tests/test-mkfifoat.c (main): Likewise.
15712         * tests/test-open.c (main): Likewise.
15713         * tests/test-openat-safer.c (main): Likewise.
15714         * tests/test-openat.c (main): Likewise.
15715         * tests/test-quotearg.c (main): Likewise.
15716         * tests/test-rawmemchr.c (main): Likewise.
15717         * tests/test-readlink.c (main): Likewise.
15718         * tests/test-remove.c (main): Likewise.
15719         * tests/test-rename.c (main): Likewise.
15720         * tests/test-renameat.c (main): Likewise.
15721         * tests/test-rmdir.c (main): Likewise.
15722         * tests/test-sha1.c (main): Likewise.
15723         * tests/test-signal.c (main): Likewise.
15724         * tests/test-sigaction.c (main): Likewise.
15725         * tests/test-stat.c (main): Likewise.
15726         * tests/test-stat-time.c (main): Likewise.
15727         * tests/test-stddef.c (main): Likewise.
15728         * tests/test-stdint.c (main): Likewise.
15729         * tests/test-stdio.c (main): Likewise.
15730         * tests/test-stdlib.c (main): Likewise.
15731         * tests/test-strchrnul.c (main): Likewise.
15732         * tests/test-strerror.c (main): Likewise.
15733         * tests/test-string.c (main): Likewise.
15734         * tests/test-strtod.c (main): Likewise.
15735         * tests/test-strverscmp.c (main): Likewise.
15736         * tests/test-symlink.c (main): Likewise.
15737         * tests/test-symlinkat.c (main): Likewise.
15738         * tests/test-sys_stat.c (main): Likewise.
15739         * tests/test-sys_time.c (main): Likewise.
15740         * tests/test-time.c (main): Likewise.
15741         * tests/test-unistd.c (main): Likewise.
15742         * tests/test-unlink.c (main): Likewise.
15743         * tests/test-unlinkat.c (main): Likewise.
15744         * tests/test-utimens.c (main): Likewise.
15745         * tests/test-utimensat.c (main): Likewise.
15746         * tests/test-version-etc.c (main): Likewise.
15747         * tests/test-wchar.c (main): Likewise.
15748         * tests/test-wctype.c (main): Likewise.
15749         * tests/test-xprintf-posix.c (main): Likewise.
15750         * tests/test-posixtm.c (main): Likewise.
15751         (STREQ): Delete unused macro.
15752         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
15753         shadowed variables.
15754         * tests/test-memchr.c (main): Likewise.
15755
15756 2009-10-21  Eric Blake  <ebb9@byu.net>
15757
15758         areadlinkat: avoid failure on older glibc
15759         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
15760         rather than mis-comparing 0 against FUNC_RESULT of char*.
15761
15762 2009-10-21  Bruno Haible  <bruno@clisp.org>
15763
15764         * modules/stpncpy (License): Relicense under LGPLv2+.
15765         Reported by David Lutterkort <lutter@redhat.com>.
15766
15767 2009-10-20  Eric Blake  <ebb9@byu.net>
15768
15769         utimensat: work around Solaris 9 bug
15770         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
15771         has trailing slash bugs.
15772         * tests/test-lutimens.h (test_lutimens): Enhance test.
15773         * tests/test-utimens.h (test_utimens): Likewise.
15774         * doc/posix-functions/utime.texi (utime): Enhance documentation.
15775         * doc/posix-functions/utimes.texi (utimes): Likewise.
15776         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15777         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
15778         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
15779         * doc/posix-functions/futimens.texi (futimens): Likewise.
15780
15781         fdutimensat: new module
15782         * modules/fdutimensat: New file.
15783         * lib/fdutimensat.c (fdutimensat): Likewise.
15784         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
15785         * MODULES.html.sh (File system functions): Mention module.
15786         * modules/fdutimensat-tests: New test.
15787         * tests/test-fdutimensat.c: Likewise.
15788
15789         doc: regenerate INSTALL
15790         * doc/INSTALL: Reflect recent autoconf update.
15791         * doc/INSTALL.ISO: Likewise.
15792         * doc/INSTALL.UTF-8: Likewise.
15793
15794 2009-10-20  Pádraig Brady  <P@draigBrady.com>
15795
15796         acl: warn if ACL support is not detected
15797         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
15798
15799 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
15800
15801         * lib/nproc.h: Add extern "C" block for C++.
15802
15803 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
15804             Bruno Haible  <bruno@clisp.org>
15805
15806         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
15807         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
15808         * doc/posix-functions/isalpha.texi: Likewise.
15809         * doc/posix-functions/isblank.texi: Likewise.
15810         * doc/posix-functions/iscntrl.texi: Likewise.
15811         * doc/posix-functions/isdigit.texi: Likewise.
15812         * doc/posix-functions/isgraph.texi: Likewise.
15813         * doc/posix-functions/islower.texi: Likewise.
15814         * doc/posix-functions/isprint.texi: Likewise.
15815         * doc/posix-functions/ispunct.texi: Likewise.
15816         * doc/posix-functions/isspace.texi: Likewise.
15817         * doc/posix-functions/isupper.texi: Likewise.
15818         * doc/posix-functions/isxdigit.texi: Likewise.
15819
15820 2009-10-18  Bruno Haible  <bruno@clisp.org>
15821
15822         Tests for module 'isblank'.
15823         * modules/isblank-tests: New file.
15824         * tests/test-isblank.c: New file.
15825
15826         New module 'isblank'.
15827         * lib/isblank.c: New file.
15828         * m4/isblank.m4: New file.
15829         * modules/isblank: New file.
15830         * doc/posix-functions/isblank.texi: Mention the new module.
15831
15832 2009-10-18  Bruno Haible  <bruno@clisp.org>
15833
15834         New module 'ctype'.
15835         * lib/ctype.in.h: New file.
15836         * m4/ctype.m4: New file.
15837         * modules/ctype: New file.
15838         * doc/posix-headers/ctype.texi: Mention the new module.
15839
15840 2009-10-18  Jim Meyering  <meyering@redhat.com>
15841
15842         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
15843         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
15844         right after its initialization, rather than farther down.
15845         Keeping these in close proximity makes it easier to ensure
15846         that each such variable is initialized.  E.g.,
15847
15848             LIB_CLOCK_GETTIME=
15849             AC_SUBST([LIB_CLOCK_GETTIME])
15850
15851         This change also increments these serial numbers.
15852         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
15853         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15854         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15855
15856 2009-10-18  Bruno Haible  <bruno@clisp.org>
15857
15858         Don't let environment variables perturb build.
15859         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
15860         (gl_PREREQ_GETHRXTIME): ... not here.
15861
15862 2009-10-18  Bruno Haible  <bruno@clisp.org>
15863
15864         Avoid symlink attack in localcharset module.
15865         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
15866         (O_NOFOLLOW): Define fallback.
15867         (get_charset_aliases): Don't open the file if it is a symbolic link.
15868         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
15869         gl_FCNTL_H.
15870         (gl_FCNTL_H): Require it.
15871         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
15872         * modules/localcharset (Files): Add m4/fcntl_h.m4.
15873         Reported by Fergal Glynn <fglynn@veracode.com>.
15874
15875 2009-10-18  Bruno Haible  <bruno@clisp.org>
15876
15877         Implement nproc for mingw.
15878         * lib/nproc.c: Include <windows.h>
15879         (num_processors): On native Windows platforms, try GetSystemInfo.
15880
15881 2009-10-18  Bruno Haible  <bruno@clisp.org>
15882
15883         Implement nproc for IRIX.
15884         * lib/nproc.c: Include <sys/sysmp.h>.
15885         (num_processors): On IRIX systems, try sysmp.
15886         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
15887
15888 2009-10-18  Bruno Haible  <bruno@clisp.org>
15889
15890         Implement nproc for HP-UX.
15891         * lib/nproc.c: Include <sys/pstat.h>
15892         (num_processors): On HP-UX systems, try pstat_getdynamic.
15893         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
15894         pstat_getdynamic.
15895
15896 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
15897             Bruno Haible  <bruno@clisp.org>
15898
15899         Implement nproc for NetBSD, OpenBSD.
15900         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
15901         (ARRAY_SIZE): New macro.
15902         (num_processors): On BSD systems, try sysctl of HW_NCPU.
15903         * m4/nproc.m4: New file.
15904         * modules/nproc (Files): Add m4/nproc.m4.
15905         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
15906         (Makefile.am): Instead, augment lib_SOURCES.
15907
15908 2009-10-18  Bruno Haible  <bruno@clisp.org>
15909
15910         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
15911         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
15912         sys/param.h.
15913
15914 2009-10-16  Eric Blake  <ebb9@byu.net>
15915
15916         utimensat: new module
15917         * modules/utimensat: New file.
15918         * lib/utimensat.c (utimensat): Likewise.
15919         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15920         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
15921         so we can work around Linux bugs.
15922         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15923         * modules/sys_stat (Makefile.am): Substitute them.
15924         * lib/sys_stat.in.h (utimensat): Declare it.
15925         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15926         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15927         * modules/utimensat-tests: New test.
15928         * tests/test-utimensat.c: Likewise.
15929
15930         utimens: let lutimens work on non-symlinks
15931         * lib/utimens.c (lutimens): Fall back to utimens rather than
15932         failing with ENOSYS, when file is not a symlink.
15933         (utimens): Reduce redirection.
15934         * tests/test-lutimens.h (test_lutimens): Update test to cover
15935         non-symlinks.
15936         * tests/test-utimens.h (test_utimens): Update test to cover
15937         symlinks.
15938         * tests/test-utimens.c (main): Update caller.
15939
15940         utimens: cache whether utimensat syscall works
15941         * lib/utimens.c (utimensat_works_really): New cache variable.
15942         (fdutimens, lutimens): Use it to avoid failing syscall.
15943
15944         test-stat-time, test-utimens: improve portability
15945         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
15946         ext4 on alpha, and for cygwin.
15947         * tests/test-utimens-common.h: New file.
15948         (nap): Factor delays into single function.
15949         * tests/test-lutimens.h (test_lutimens): Use new header.
15950         * tests/test-futimens.h (test_futimens): Likewise.
15951         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
15952         timestamps to occur from same machine, as was done previously for
15953         test_utimens.
15954         * modules/utimens-tests (Files): Ship new file.
15955         * modules/futimens-tests (Files): Likewise.
15956         Reported in part by Jim Meyering.
15957
15958         sys_stat: sort replacement declarations
15959         * lib/sys_stat.in.h: Sort declarations.
15960         * lib/futimens.c (futimens): Fix typo.
15961
15962 2009-10-15  Jim Meyering  <meyering@redhat.com>
15963
15964         don't let environment settings perturb build
15965         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
15966         could cause a configure-time and/or build-time malfunction.
15967         Typically, a configure-time function-in-library test is performed
15968         via code like this:
15969
15970           LIB_VAR=
15971           AC_SUBST([LIB_VAR])
15972           prefix_saved_LIBS=$LIBS
15973             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
15974                        [test "$ac_cv_search_FUNC" = "none required" ||
15975                         LIB_VAR=$ac_cv_search_FUNC])
15976           LIBS=$prefix_saved_LIBS
15977
15978         However, in each of the files affected by this change, the LIB_VAR=
15979         initialization was omitted.  Thus, when set in the environment, its
15980         value would propagate into generated Makefiles when FUNC is not found
15981         in LIB_NAME.
15982         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
15983         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15984         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15985
15986 2009-10-14  Eric Blake  <ebb9@byu.net>
15987
15988         fchdir: avoid infinite recursion in mingw
15989         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
15990         recursing.
15991
15992         test-stat-time: port to mingw
15993         * tests/test-stat-time.c (force_unlink): Return a value.
15994         (test_ctime) [W32]: Fix compilation error.
15995         (nap): Don't call usleep with too large an argument.  Use
15996         force_unlink.
15997         * doc/pastposix-functions/usleep.texi (usleep): Document the
15998         portability issue.
15999
16000 2009-10-13  Jim Meyering  <meyering@redhat.com>
16001
16002         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
16003         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
16004         * modules/pipe-filter-ii: Likewise.
16005         * modules/sys_socket-tests: Likewise.
16006         * modules/tsearch-tests: Likewise.
16007         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
16008         (check): Depend on it.
16009
16010 2009-10-12  Eric Blake  <ebb9@byu.net>
16011
16012         utimens-tests: port to NFS file systems
16013         * tests/test-utimens.h (test_utimens): Refactor utimecmp
16014         comparisons to avoid spurious failures from timestamp drift
16015         between NFS machines.
16016
16017 2009-10-12  Eric Blake  <ebb9@byu.net>
16018
16019         stat-time-tests: minor cleanups
16020         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
16021         * tests/test-stat-time.c (nap): Separate assignment from call.
16022         Suggested by Paolo Bonzini and Bruno Haible.
16023
16024         sys_stat: guarantee struct timespec
16025         * lib/sys_stat.in.h (includes): Always include <time.h>
16026         * modules/sys_stat (Depends-on): Add time.
16027         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
16028         mode_t permission values.
16029         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
16030         get at subsecond timestamps.
16031
16032 2009-10-10  Eric Blake  <ebb9@byu.net>
16033
16034         futimens: new module
16035         * modules/futimens: New file.
16036         * lib/futimens.c (futimens): Likewise.
16037         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
16038         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
16039         we can work around Linux bugs.
16040         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16041         * modules/sys_stat (Makefile.am): Substitute them.
16042         * lib/sys_stat.in.h (futimens): Declare it.
16043         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16044         * doc/posix-functions/futimens.texi (futimens): Likewise.
16045         * modules/futimens-tests: New test.
16046         * tests/test-futimens.c: Likewise.
16047
16048         utimens: introduce fdutimens
16049         * lib/utimens.h (fdutimens): New prototype.
16050         * lib/utimens.c (gl_futimens): Move guts...
16051         (fdutimens): ...to new interface.
16052         * tests/test-utimens.c (do_fdutimens): Use it.
16053
16054         utimens: add UTIME_NOW and UTIME_OMIT support
16055         * lib/utimens.c (validate_timespec, update_timespec): New helper
16056         functions.
16057         (gl_futimens, lutimens): Use them.
16058         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
16059         stdbool, sys_stat.
16060         (Link): Mention resulting library dependency.
16061         * modules/utimecmp (Link): Likewise.
16062         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
16063         (Makefile.am): Pick up library dependency.
16064         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
16065         definition.
16066         * tests/test-sys_stat.c: Test the definitions.
16067         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
16068         * NEWS: Document library dependency.
16069
16070         utimecmp: support symlink timestamps
16071         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
16072         hashing when possible.  Use pathconf when available.
16073         (SYSCALL_RESOLUTION): Recognize tighter resolution.
16074         * modules/utimecmp (Depends-on): Add lstat.
16075
16076         utimens: add lutimens interface
16077         * lib/utimens.c (lutimens): New function.
16078         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
16079         * lib/utimens.h (lutimens): Declare new interface.
16080         * tests/test-utimens.c (main): Enhance test.
16081         * tests/test-lutimens.h (test_lutimens): New file.
16082         * modules/utimens-tests (Files): Distribute it.
16083         (Depends-on): Add symlink.
16084         (configure.ac): Check for usleep.
16085
16086         utimens: validate futimens usage
16087         * lib/utimens.c (gl_futimens): Require valid fd up front, using
16088         fewer syscalls on failure later on.  Avoid compiler warning on
16089         mingw.
16090         * modules/utimens (Depends-on): Add dup2.
16091
16092         utimens: add test
16093         * modules/utimens-tests: New test.
16094         * tests/test-utimens.h: New file.
16095         * tests/test-futimens.h: Likewise.
16096         * tests/test-utimens.c: Likewise.
16097
16098         doc: mention timestamp portability issues
16099         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
16100         instead.
16101         * doc/posix-functions/utime.texi (utime): Likewise.
16102         * doc/posix-functions/utimes.texi (utimes): Likewise.
16103         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
16104         instead.
16105         * doc/posix-functions/futimens.texi (futimens): Mention utimens
16106         module.
16107         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16108         Mention weakness with symlink timestamps.
16109         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
16110         to utimensat/futimens instead.
16111         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
16112
16113         test-dup2: enhance test
16114         * tests/test-dup2.c (main): Also check AT_FDCWD.
16115
16116         test-stat-time: avoid more spurious failures
16117         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
16118         xfs; and avoid race if the two timestamps cross quantization edge.
16119
16120         relocatable: prefer 'file system' over 'filesystem'
16121         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
16122         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
16123         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
16124         * doc/relocatable.texi (Enabling Relocatability): Likewise.
16125         * lib/relocatable.c (compute_curr_prefix): Likewise.
16126
16127 2009-10-10  Jim Meyering  <meyering@redhat.com>
16128
16129         stat-time-tests: check for the usleep function
16130         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
16131
16132 2009-10-10  Bruno Haible  <bruno@clisp.org>
16133
16134         * modules/xnanosleep: Put the Link section after the Include section.
16135
16136 2009-10-09  Eric Blake  <ebb9@byu.net>
16137
16138         dup2: work around FreeBSD 6.1 bug
16139         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
16140         * doc/posix-functions/dup2.texi (dup2): Document it.
16141         Reported by Nelson H. F. Beebe and Jim Meyering.
16142
16143         test-stat-time: port to buggy NFS clients
16144         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
16145         (test_ctime): Also skip test if mtime and ctime are skewed.
16146
16147         maint: prefer 'file system' over 'filesystem'
16148         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16149         * doc/posix-functions/lstat.texi (lstat): Likewise.
16150         * lib/file-has-acl.c (file_has_acl): Likewise.
16151         * lib/fwriteerror.c [TEST]: Likewise.
16152         * tests/test-areadlink.h (test_areadlink): Likewise.
16153         * tests/test-areadlinkat-with-size.c (main): Likewise.
16154         * tests/test-areadlinkat.c (main): Likewise.
16155         * tests/test-canonicalize-lgpl.c (main): Likewise.
16156         * tests/test-canonicalize.c (main): Likewise.
16157         * tests/test-fstatat.c (main): Likewise.
16158         * tests/test-linkat.c (main): Likewise.
16159         * tests/test-lstat.h (test_lstat_func): Likewise.
16160         * tests/test-mkdir.h (test_mkdir): Likewise.
16161         * tests/test-readlink.h (test_readlink): Likewise.
16162         * tests/test-remove.c (main): Likewise.
16163         * tests/test-rename.h (test_rename): Likewise.
16164         * tests/test-renameat.c (main): Likewise.
16165         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16166         * tests/test-symlink.h (test_symlink): Likewise.
16167         * tests/test-symlinkat.c (main): Likewise.
16168         * tests/test-unlink.h (test_unlink_func): Likewise.
16169         * tests/test-unlinkat.c (main): Likewise.
16170
16171         maint: make realtime library usage explicit
16172         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
16173         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
16174         * modules/settime (Link): Likewise.
16175         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
16176
16177         test-stat-time: speed up execution
16178         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
16179         warning on mingw.
16180         (nap): New helper function.
16181         (prepare_test): Use it to reduce sleep time.
16182         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
16183         execution.
16184         * modules/stat-time-tests (configure.ac): Check for usleep.
16185
16186 2009-10-09  Jim Meyering  <meyering@redhat.com>
16187
16188         selinux-h: always use getfilecon wrappers
16189         * lib/getfilecon.c: New file.
16190         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
16191         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
16192         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
16193         (fgetfilecon): Provide a stub.
16194         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
16195         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
16196         file unconditionally.
16197         When <selinux/selinux.h> is found, arrange to use wrappers.
16198         * modules/selinux-h (Files): Add getfilecon.c.
16199         (Makefile.am): Substitute include-next-related bits
16200         into the now-always-generated selinux/selinux.h file.
16201         * doc/glibc-functions/lgetfilecon.texi: New file.
16202         * doc/glibc-functions/fgetfilecon.texi: New file.
16203         * doc/glibc-functions/getfilecon.texi: New file.
16204         * doc/glibc-functions/getfilecon-desc.texi: New file.
16205         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
16206         which to pull in the new files.
16207         * MODULES.html.sh (Misc): Add selinux-h.
16208
16209 2009-10-08  Jim Meyering  <meyering@redhat.com>
16210
16211         unistd: fix comment typo
16212         * lib/unistd.in.h (euidaccess): Fix a comment typo.
16213
16214 2009-10-08  Eric Blake  <ebb9@byu.net>
16215
16216         areadlink: use SIZE_MAX consistently
16217         * modules/areadlink (Depends-on): Add stdint.
16218         * modules/areadlink-with-size (Depends-on): Likewise.
16219         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
16220         gives NULL; drop sys/types, since unistd gives size_t; and add
16221         stdint for SIZE_MAX.
16222         (SIZE_MAX): Rely on headers.
16223         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
16224         and add stdint.
16225         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
16226         (SIZE_MAX): Likewise.
16227         (INITIAL_BUF_SIZE): Turn into enum.
16228         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
16229
16230 2009-10-08  Jim Meyering  <meyering@redhat.com>
16231
16232         areadlinkat: avoid compilation failure
16233         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
16234         Fix typo in comment.
16235
16236 2009-10-07  Eric Blake  <ebb9@byu.net>
16237
16238         areadlinkat-with-size: new module
16239         * modules/areadlinkat-with-size: New module.
16240         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
16241         * lib/areadlink.h (areadlinkat): Declare it.
16242         * MODULES.html.sh (File system functions): Mention it.
16243         * modules/areadlinkat-with-size-tests: New test.
16244         * tests/test-areadlinkat-with-size.c: New file.
16245
16246         xreadlinkat: new module
16247         * modules/xreadlinkat: New module.
16248         * lib/xreadlinkat.c (xreadlinkat): New file.
16249         * lib/xreadlink.h (xreadlinkat): Declare it.
16250         * MODULES.html.sh (File system functions): Mention it.
16251
16252         areadlinkat: new module
16253         * lib/at-func.c (FUNC_FAIL): New define.
16254         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
16255         * modules/areadlinkat: New module.
16256         * lib/linkat.c (areadlinkat): Move...
16257         * lib/areadlinkat.c (areadlinkat): ...to new file.
16258         * lib/areadlink.h (areadlinkat): Declare it.
16259         * modules/linkat (Depends-on): Add areadlinkat.
16260         * MODULES.html.sh (File system functions): Mention it.
16261         * modules/areadlinkat-tests: New test.
16262         * tests/test-areadlinkat.c: New file.
16263
16264         areadlink, areadlink-with-size: add tests
16265         * modules/areadlink-tests: New test.
16266         * modules/areadlink-with-size-tests: Likewise.
16267         * tests/test-areadlink.h: New file.
16268         * tests/test-areadlink.c: Likewise.
16269         * tests/test-areadlink-with-size.c: Likewise.
16270
16271         maint: minor cleanups
16272         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
16273         _UNUSED_PARAMETER_ instead.
16274         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
16275         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
16276         * modules/linkat-tests (Files): Distribute test-link.h.
16277
16278         openat, utimens: whitespace cleanup
16279         * lib/openat.c: Prefer space throughout, rather than mix of 8
16280         spaces vs. tabs.
16281         * lib/at-func.c: Likewise.
16282         * lib/utimens.c: Likewise.
16283
16284         openat: avoid using wrong fd
16285         * lib/openat.c (openat_permissive): Reject user's fd if saving the
16286         working directory chooses same fd.
16287         * lib/at-func.c (AT_FUNC_NAME): Likewise.
16288
16289         mkdir, mkdirat: fix cygwin 1.5.x bug
16290         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
16291         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
16292         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
16293         bug.
16294         (gl_PREREQ_MKDIR): Delete unused macro.
16295         * modules/mkdir (Files): Track file rename.
16296         (configure.ac): Update macro name.
16297         * modules/openat (Depends-on): Add mkdir.
16298         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
16299
16300         mkdir, mkdirat: add tests
16301         * modules/mkdir-tests: New test.
16302         * tests/test-mkdir.h: New file.
16303         * tests/test-mkdir.c: Likewise.
16304         * tests/test-mkdirat.c: Likewise.
16305         * modules/openat-tests (Files): Add new files.
16306         (Makefile.am): Run new test.
16307
16308 2009-10-06  Eric Blake  <ebb9@byu.net>
16309
16310         doc: tweak *at function documentation
16311         * doc/posix-functions/faccessat.texi (faccessat): Mention
16312         known issue with replacement.
16313         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
16314         * doc/posix-functions/linkat.texi (linkat): Likewise.
16315         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
16316         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
16317         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16318         * doc/posix-functions/renameat.texi (renameat): Likewise.
16319         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16320
16321         openat: fix GNU/Hurd bug in unlinkat
16322         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
16323         broken.
16324         * doc/posix-functions/unlink.texi (unlink): Document this.
16325         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
16326
16327         fdopendir: fix GNU/Hurd bug
16328         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
16329         allowing non-directory fds.
16330         * lib/fdopendir.c (rpl_fdopendir): Work around it.
16331         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16332         * modules/dirent (Makefile.am): Substitute it.
16333         * lib/dirent.in.h (fdopendir): Declare replacement.
16334         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
16335         * tests/test-fdopendir.c (main): Test something other than
16336         /dev/null, since on Hurd that behaves like a directory.
16337
16338         test-symlink: port to GNU/Hurd
16339         * tests/test-symlink.h (test_symlink): Relax expected errno.
16340
16341         doc: tweak more cygwin information
16342         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
16343         now compatible with glibc.
16344         * doc/posix-functions/getopt.texi (getopt): Likewise.
16345
16346         getopt-gnu: add another test
16347         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
16348         guarantee behavior relied on by m4.
16349         * tests/test-getopt.c (main): Use it.
16350         * modules/getopt-posix-tests (Depends-on): Add setenv.
16351         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
16352
16353         getopt: fix compilation on darwin
16354         * lib/getopt.in.h (includes): Leave breadcrumbs during system
16355         include.
16356         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
16357         Reported by Ludovic Courtès.
16358
16359 2009-10-06  Bruno Haible  <bruno@clisp.org>
16360
16361         * modules/size_max (Description): Discourage its use.
16362         Reported by Simon Josefsson.
16363
16364 2009-10-06  Jim Meyering  <meyering@redhat.com>
16365
16366         linkat: avoid compilation failure
16367         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
16368
16369 2009-10-05  Eric Blake  <ebb9@byu.net>
16370
16371         linkat: support Linux 2.6.17
16372         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
16373         linkat on Linux, but allow cache variable override.
16374         * lib/linkat.c (rpl_linkat): Define override.
16375         * modules/linkat (Depends-on): Add symlinkat.
16376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
16377         * modules/unistd (Makefile.am): Substitute it.
16378         * lib/unistd.in.h (linkat): Declare replacement.
16379         Reported by Pádraig Brady.
16380
16381         quotearg: port test to systems with C.UTF-8 locale
16382         * tests/test-quotearg.c (struct result_strings): Add another
16383         member, differentiating between C.ASCII and C.UTF-8 handling.
16384         (compare_strings): Add parameter.
16385         (main): Adjust all callers.
16386
16387         getopt: avoid clash with FreeBSD _getopt_internal
16388         * lib/getopt.in.h (_getopt_internal): Override the name.
16389         * lib/getopt_int.h (includes): Pick up any overrides.
16390         Reported by Reuben Thomas.
16391
16392         hash: allow C89 compilation
16393         * lib/hash.c (check_tuning): Move declaration before statement.
16394         Reported by Reuben Thomas.
16395
16396 2009-10-05  Karl Berry  <karl@gnu.org>
16397
16398         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
16399
16400 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
16401             Bruno Haible  <bruno@clisp.org>
16402
16403         * lib/uname.c (uname): Use a table-driven algorithm to compute
16404         Windows NT versions.
16405
16406 2009-10-04  Bruno Haible  <bruno@clisp.org>
16407
16408         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
16409         program_invocation_short_name.
16410         * modules/progname (configure.ac): Test for presence of
16411         program_invocation_short_name.
16412         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16413
16414 2009-10-04  Bruno Haible  <bruno@clisp.org>
16415
16416         * lib/progname.c (set_program_name): Fix comment.
16417         Reported by Jim Meyering.
16418
16419 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16420             Bruno Haible  <bruno@clisp.org>
16421
16422         * lib/uname.c: Include <string.h>.
16423         (uname): Do only one call to GetVersionEx in the common case.
16424
16425 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16426             Bruno Haible  <bruno@clisp.org>
16427
16428         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
16429         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
16430         (uname): Add support for Windows CE and various non-x86 CPU types.
16431
16432 2009-10-03  Bruno Haible  <bruno@clisp.org>
16433
16434         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
16435         invocation to tests/configure.ac.
16436         Reported by Ian Beckwith <ianb@erislabs.net>.
16437
16438 2009-10-02  Eric Blake  <ebb9@byu.net>
16439
16440         fchdir: avoid compiler warning
16441         * lib/fchdir.c (canonicalize_file_name)
16442         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
16443
16444         test-open: support mingw errno values
16445         * tests/test-open.h (test_open): Relax test.
16446         * tests/test-fopen.h (test_fopen): Likewise.
16447         * tests/test-openat-safer.c (main): Likewise.
16448
16449         open: fix opening directory on mingw
16450         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
16451
16452         test-open: on GNU/Hurd, /dev/null is a directory
16453         * tests/test-fopen.h (main): Rename...
16454         (test_fopen): ...to this.  Use a guaranteed non-directory when
16455         confirming open behavior on trailing slash.
16456         * tests/test-openat-safer.c (main): Likewise.
16457         * tests/test-open.h (main): Likewise....
16458         (test_open): ...to this.
16459         * tests/test-fopen.c (main): Adjust caller.
16460         * tests/test-fopen-safer.c (main): Likewise.
16461         * tests/test-open.c (main): Likewise.
16462         * tests/test-fcntl-safer.c (main): Likewise.
16463         Reported by Samuel Thibault.
16464
16465         rename, fchdir: don't ignore chdir failure
16466         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
16467         * lib/rename.c (rpl_rename) [W32]: Likewise.
16468         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
16469         an empty destination directory if source cannot be renamed,
16470         although there is still possibility for failure.
16471         * doc/posix-functions/rename.texi (rename): Document the race.
16472         Reported by Jim Meyering.
16473
16474         maint: cleanup whitespace in recent commits
16475         * lib/rename.c (rpl_rename): Remove tabs.
16476         * tests/test-link.h (test_link): Likewise.
16477         * lib/fchdir.c (get_name): Likewise.
16478         Reported by Jim Meyering.
16479
16480 2009-10-02  Ben Pfaff  <blp@gnu.org>
16481
16482         relocatable-prog-wrapper: Add missing dependency on
16483         double-slash-root.
16484         * modules/relocatable-prog-wrapper: Add dependency.
16485         Reported by Ian Beckwith <ianb@erislabs.net>.
16486
16487 2009-10-02  Eric Blake  <ebb9@byu.net>
16488
16489         renameat: fix Solaris bugs
16490         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
16491         needed fixing.
16492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
16493         * modules/stdio (Makefile.am): Substitute it.
16494         * lib/stdio.in.h (renameat): Declare replacement.
16495         * lib/renameat.c (rpl_renameat): Implement fix.
16496
16497         renameat: new module
16498         * modules/renameat: New file.
16499         * lib/renameat.c (renameat): Likewise.
16500         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
16501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16502         * modules/stdio (Makefile.am): Substitute them.
16503         * lib/stdio.in.h (renameat): Declare it.
16504         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16505         * doc/posix-functions/renameat.texi (renameat): Likewise.
16506         * modules/renameat-tests: New test.
16507         * tests/test-renameat.c: Likewise.
16508
16509         rename: fix mingw bugs
16510         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
16511         directory overwrite bugs.
16512
16513         rename: fix another cygwin 1.5 bug
16514         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
16515         checks.
16516         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
16517         unnecessary cygwin workarounds.  Also work around bug with moving
16518         full directory onto an empty one.
16519         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
16520
16521         rename-dest-slash: merge into rename module
16522         * modules/rename-dest-slash (Status): Mark obsolete.
16523         (Depends-on): Add rename.
16524         (Files): Let rename do it all.
16525         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
16526         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
16527         * m4/rename-dest-slash.m4: ...so this file can be deleted.
16528         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
16529         * lib/rename.c (rpl_rename): Update comments.
16530
16531         rename: fix cygwin 1.5.x bugs
16532         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
16533         * lib/rename.c (rpl_rename): Work around them.
16534         * modules/rename (Depends-on): Add same-inode.
16535
16536         rename: fix Solaris 10 bug
16537         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16538         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
16539         was the only bug.
16540
16541         rename: fix Solaris 9 bug
16542         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
16543         on non-directory.  Avoid calling exit.
16544         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
16545         strdup.
16546         * modules/rename-tests (Depends-on): Drop lstat.
16547         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16548         (gl_PREREQ_RENAME): Delete unused macro.
16549
16550         rename-dest-slash: fix NetBSD bug
16551         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
16552         links.
16553         * modules/rename-dest-slash (Depends-on): Add same-inode.
16554
16555         rename-tests: new test, exposes several platform bugs
16556         * modules/rename-tests: New file.
16557         * tests/test-rename.h: Likewise.
16558         * tests/test-rename.c: Likewise.
16559         * doc/posix-functions/rename.texi (rename): Improve documentation,
16560         including bugs that will eventually be fixed in gnulib.
16561
16562 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
16563
16564         * lib/uname.c: Include <stdlib.h>
16565         (uname): Assume version info is available.
16566
16567 2009-10-02  Jim Meyering  <meyering@redhat.com>
16568
16569         gnu-web-doc-update: correct --help output
16570         * build-aux/gnu-web-doc-update: Make --help output relevant.
16571
16572         gnu-web-doc-update: add standard options
16573         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
16574
16575         gnu-web-doc-update: New module.
16576         Use this script to automatically update the on-line web documentation
16577         for your GNU project at http://www.gnu.org/software/$pkg/manual/
16578         * modules/gnu-web-doc-update: New file, from coreutils.
16579         * build-aux/gnu-web-doc-update: New script.
16580
16581 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
16582
16583         link: LoadLibrary is not needed.
16584         * lib/link.c: Use GetModuleHandle.
16585
16586 2009-10-01  Eric Blake  <ebb9@byu.net>
16587
16588         getopt: bump serial number
16589         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
16590         change.
16591
16592         tests: tighten link, rmdir, and remove tests
16593         * tests/test-link.h (includes): No need to use <config.h> here.
16594         Clean up if directory hard link was created, otherwise test for
16595         trailing '.'.
16596         * tests/test-linkat.c (main): Simplify.
16597         * tests/test-remove.c (main): Enhance test for trailing '.'.
16598         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16599
16600 2009-10-01  Jim Meyering  <meyering@redhat.com>
16601
16602         maint.mk: requiring "make major" was annoying, for a "minor" release.
16603         What is intended is "stable", to contrast with alpha and beta,
16604         so require "make stable", not "make major".
16605         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
16606         (get_tool_versions): Likewise.
16607         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
16608
16609 2009-09-30  Ben Pfaff  <blp@gnu.org>
16610
16611         Fix broken build of replacement for Windows tmpfile().
16612         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
16613         flags argument added along with the 'mkostemp' module.
16614
16615 2009-09-28  Bruno Haible  <bruno@clisp.org>
16616
16617         Avoid identifier clash with POSIX function 'remove' defined as a macro.
16618         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
16619         to 'remove_elt'.
16620         (gl_list_remove): Update.
16621         * lib/gl_list.c (gl_list_remove): Update.
16622         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
16623         to 'remove_elt'.
16624         (gl_oset_remove): Update.
16625         * lib/gl_list.c (gl_oset_remove): Update.
16626         Reported by Eric Blake.
16627
16628 2009-09-28  Eric Blake  <ebb9@byu.net>
16629
16630         doc: mention yet more cygwin 1.7 status
16631         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
16632         cygwin.
16633         * doc/glibc-functions/execvpe.texi (execvpe): New file.
16634         * doc/gnulib.texi (Glibc unistd.h): Mention it.
16635
16636         argp: fix test failure
16637         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
16638         that are not upper-case.  Pass correct range to tolower.
16639
16640 2009-09-27  Jim Meyering  <meyering@redhat.com>
16641
16642         test-yesno: work around sparc-dash here-document infelicity
16643         Without this change, the literal \177 byte in a here document
16644         would make dash 0.5.5.1-3 access uninitialized memory.
16645         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
16646         Instead, use a marker, "@", and filter through tr to create the desired
16647         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
16648
16649 2009-09-27  Bruno Haible  <bruno@clisp.org>
16650
16651         Disable untested support for new flavours of ACLs on AIX.
16652         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
16653         progress.
16654         * lib/set-mode-acl.c (qset_acl): Likewise.
16655
16656 2008-12-07  Bruno Haible  <bruno@clisp.org>
16657
16658         Add support for new flavours of ACLs on AIX. (Untested.)
16659         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
16660         (file_has_acl): Add support for newer AIX.
16661         * lib/set-mode-acl.c (qset_acl): Likewise.
16662         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
16663         Rainer Tammer <tammer@tammer.net>.
16664
16665 2009-09-26  Eric Blake  <ebb9@byu.net>
16666
16667         argp: fix compilation of getopt
16668         * lib/getopt.in.h (includes): Use different guard than glibc.
16669         Reported by Sergey Poznyakoff.
16670
16671         doc: mention more cygwin 1.7 status
16672         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
16673         bug.
16674         * doc/posix-functions/execl.texi (execl): Likewise.
16675         * doc/posix-functions/execle.texi (execle): Likewise.
16676         * doc/posix-functions/execlp.texi (execlp): Likewise.
16677         * doc/posix-functions/execv.texi (execv): Likewise.
16678         * doc/posix-functions/execve.texi (execve): Likewise.
16679         * doc/posix-functions/execvp.texi (execvp): Likewise.
16680         * doc/glibc-functions/canonicalize_file_name.texi
16681         (canonicalize_file_name): Cygwin 1.7 now provides this.
16682         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
16683         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
16684         on AT_SYMLINK_NOFOLLOW.
16685
16686 2009-09-24  Eric Blake  <ebb9@byu.net>
16687
16688         test-linkat: make test more robust
16689         * tests/test-linkat.c (main): Avoid collision with EEXIST.
16690
16691         getopt: fix inclusion guards for cygwin
16692         * modules/getopt-posix (Depends-on): Add include-next.
16693         (Makefile.am): Substitute more items in replacement header.
16694         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
16695         <getopt.h>.
16696         * lib/getopt.in.h (includes): Use split inclusion guard, and
16697         prefer <getopt.h> over include <unistd.h> when one is present.
16698         (option): Also override name of 'struct option'.
16699
16700         same-inode: revert prior change; it is not yet ready
16701         * NEWS: Undo mention of this change.
16702         * lib/same-inode.h (same-inode.h): Undo tri-state change.
16703         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16704         * lib/cycle-check.c (cycle_check): Likewise.
16705         * lib/same.c (same_name): Likewise.
16706         * lib/at-func2.c (at_func2): Likewise.
16707
16708 2009-09-23  Eric Blake  <ebb9@byu.net>
16709
16710         linkat: new module
16711         * modules/linkat: New file.
16712         * lib/at-func2.c (at_func2): Likewise.
16713         * lib/linkat.c (linkat): Likewise.
16714         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16715         * lib/openat-priv.h (at_func2): Add declaration.
16716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16717         * modules/unistd (Makefile.am): Substitute them.
16718         * lib/unistd.in.h (linkat): Declare it.
16719         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16720         * doc/posix-functions/linkat.texi (linkat): Likewise.
16721         * doc/posix-functions/link.texi (link): Tweak wording.
16722         * tests/test-link.c (main): Move guts...
16723         * tests/test-link.h (test_link): ...into new file.
16724         * modules/linkat-tests: New test.
16725         * tests/test-linkat.c: Likewise.
16726         * modules/link-tests (Files): Ship new file.
16727         (Depends-on): Add stdbool.
16728
16729         dirname: add library-safe mdir_name
16730         * lib/dirname.h (mdir_name): New prototype.
16731         * lib/dirname.c (dir_name): Move guts...
16732         (mdir_name): ...to new function that avoids xalloc_die.
16733
16734         fchdir: another mingw fix
16735         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
16736         * lib/fchdir.c (get_name): New helper method; skips canonicalize
16737         on mingw (where it has not yet been ported), and make it optional
16738         elsewhere.
16739         (_gl_register_fd): Use it.
16740
16741         same-inode: make SAME_INODE tri-state, to port to mingw
16742         * NEWS: Mention this change.
16743         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
16744         st_ino always being 0.
16745         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16746         * lib/cycle-check.c (cycle_check): Likewise.
16747         * lib/same.c (same_name): Likewise.
16748
16749         lstat: avoid mingw compilation error
16750         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
16751         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
16752         lstat ourselves.
16753         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
16754         was adequate.
16755         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
16756         the checks for lstat.
16757         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
16758
16759         link: fix test failure on Solaris 9
16760         * lib/link.c (rpl_link): Don't assume link will catch bogus
16761         trailing slash on source.
16762
16763         test-symlinkat: enhance test
16764         * tests/test-readlink.c (main): Move guts...
16765         * tests/test-readlink.h (test_readlink): ...into new file.
16766         * tests/test-symlink.c (main): Move guts...
16767         * tests/test-symlink.h (test_symlink): ...into new file.
16768         * tests/test-symlinkat.c (main): Use new files for further
16769         coverage.
16770         (do_symlink, do_readlink): New helper functions.
16771         * modules/symlink-tests (Files): Ship new file.
16772         (Depends-on): Add stdbool.
16773         * modules/readlink-tests (Files): Ship new file.
16774         (Depends-on): Add stdbool.
16775         * modules/symlinkat-tests (Files): Use new files.
16776
16777 2009-09-23  Eric Blake  <ebb9@byu.net>
16778
16779         readlink: document portability issue with symlink length
16780         * doc/posix-functions/lstat.texi (lstat): Mention that some file
16781         systems have bogus st_size on symlinks, and mention the
16782         areadlink-with-size module.
16783         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16784         * doc/posix-functions/readlink.texi (readlink): Mention the
16785         areadlink module, and ERANGE failure.
16786         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16787         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
16788
16789         readlink: fix Solaris 9 bug with trailing slash
16790         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
16791         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
16792         * doc/posix-functions/readlink.texi (readlink): Document this.
16793         * modules/readlink-tests: New test.
16794         * tests/test-readlink.c: Likewise.
16795
16796         readlink: fix cygwin 1.5.x bug with return type
16797         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
16798         * lib/unistd.in.h (readlink): Use ssize_t.
16799         * lib/readlink.c (readlink): Likewise.
16800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16801         * modules/unistd (Makefile.am): Substitute it.
16802         * lib/unistd.in.h (readlink): Declare replacement.
16803         * doc/posix-functions/readlink.texi (readlink): Document this.
16804
16805         symlink: use throughout gnulib
16806         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
16807         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
16808         symlink is not used.
16809         * modules/symlinkat (Depends-on): Add symlink.
16810         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16811         * modules/canonicalize-tests (Depends-on): Likewise.
16812         * modules/lstat-tests (Depends-on): Likewise.
16813         * modules/openat-tests (Depends-on): Likewise.
16814         * modules/remove-tests (Depends-on): Likewise.
16815         * modules/rmdir-tests (Depends-on): Likewise.
16816         * modules/unlink-tests (Depends-on): Likewise.
16817         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
16818         * tests/test-canonicalize.c (symlink): Likewise.
16819         * tests/test-fstatat.c (symlink): Likewise.
16820         * tests/test-lstat.c (symlink): Likewise.
16821         * tests/test-remove.c (symlink): Likewise.
16822         * tests/test-rmdir.c (symlink): Likewise.
16823         * tests/test-unlink.c (symlink): Likewise.
16824         * tests/test-unlinkat.c (symlink): Likewise.
16825
16826         symlink: new module, for Solaris 9 bug
16827         * modules/symlink: New file.
16828         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16829         * lib/symlink.c: Likewise.
16830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
16831         * modules/unistd (Makefile.am): Substitute them.
16832         * lib/unistd.in.h (symlink): Declare replacement.
16833         * MODULES.html.sh (File system functions): Mention it.
16834         * doc/posix-functions/symlink.texi (symlink): Likewise.
16835         * modules/symlink-tests: New test.
16836         * tests/test-symlink.c: Likewise.
16837
16838 2009-09-23  Bruno Haible  <bruno@clisp.org>
16839
16840         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
16841         when needed.
16842         Test case: gnulib-tool --import --with-tests atexit inttypes.
16843         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
16844
16845 2009-09-23  Bruno Haible  <bruno@clisp.org>
16846
16847         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
16848         subcommand, not in a subshell.
16849
16850 2009-09-22  Eric Blake  <ebb9@byu.net>
16851
16852         unistd: sort replacement declarations
16853         * lib/unistd.in.h: Sort declarations.
16854
16855         open, openat: minor optimization
16856         * lib/open.c (open): If open succeeded, len is non-zero.
16857         * lib/openat.c (rpl_openat): Likewise.
16858
16859         link-follow: ensure correct result
16860         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
16861         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
16862         distinguish between possible failures.
16863
16864 2009-09-21  Eric Blake  <ebb9@byu.net>
16865
16866         fts: avoid compiler warning
16867         * lib/fts.c (dirent_inode_sort_may_be_useful)
16868         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
16869
16870 2009-09-19  Bruno Haible  <bruno@clisp.org>
16871
16872         * lib/progreloc.c (canonicalize_file_name): New declaration.
16873
16874 2009-09-19  Eric Blake  <ebb9@byu.net>
16875
16876         link: fix quoting
16877         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
16878
16879         openat: fix openat bugs on Solaris 9
16880         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
16881         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
16882         * modules/openat (Depends-on): Add open.
16883         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
16884         * modules/fcntl-h (Makefile.am): Substitute it.
16885         * lib/fcntl.in.h (openat): Declare replacement.
16886         * doc/posix-functions/openat.texi (openat): Document this.
16887
16888         openat: move fstatat and unlinkat into correct files
16889         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
16890         compiled.
16891         * lib/openat.c (fstatat, unlinkat): Move...
16892         * lib/fstatat.c (fstatat): ...into correct files.
16893         * lib/unlinkat.c (unlinkat): Likewise.
16894
16895         openat: fix unlinkat bugs on Solaris 9
16896         * lib/unlinkat.c (unlinkat): New file.
16897         * modules/openat (Depends-on): Add unlink.
16898         (Files): Distribute it.
16899         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
16900         trailing slash behavior is broken.
16901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16902         * modules/unistd (Makefile.am): Substitute it.
16903         * lib/unistd.in.h (unlinkat): Declare replacement.
16904         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
16905
16906         openat: fix fstatat bugs on Solaris 9
16907         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
16908         stat.
16909         * doc/posix-functions/fstatat.texi (fstatat): Document this.
16910
16911         test-unlinkat: enhance test, to expose Solaris 9 bug
16912         * tests/test-unlink.c (main): Factor guts...
16913         * tests/test-unlink.h (test_rmdir_func): ...into new file.
16914         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
16915         * tests/test-rmdir.c (main): Adjust caller.
16916         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
16917         (unlinker): New helper function.
16918         (rmdirat): Enhance check.
16919         * modules/rmdir-tests (Depends-on): Add stdbool.
16920         * modules/unlink-tests (Depends-on): Likewise.
16921         (Files): Add test-unlink.h.
16922         * modules/openat-tests (Files): Likewise.
16923         (Depends-on): Add unlinkdir.
16924
16925         test-fstatat: new test, to expose Solaris 9 bugs
16926         * tests/test-stat.c (main): Factor guts...
16927         * tests/test-stat.h (test_stat_func): ...into new file.
16928         * tests/test-lstat.c (main): Factor guts...
16929         * tests/test-lstat.h (test_lstat_func): ...into new file.
16930         * tests/test-fstatat.c: New file.
16931         * modules/stat-tests (Files): Add test-stat.h.
16932         * modules/lstat-tests (Files): Add test-lstat.h.
16933         (Depends-on): Add stdbool.
16934         * modules/openat-tests (Depends-on): Add pathmax.
16935         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
16936         (Makefile.am): Run new test.
16937
16938         remove: new module, for mingw and Solaris 9 bugs
16939         * modules/remove: New file.
16940         * lib/remove.c: Likewise.
16941         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
16942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16943         * modules/stdio (Makefile.am): Use them.
16944         * lib/stdio.in.h (remove): Declare replacement.
16945         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16946         * doc/posix-functions/remove.texi (remove): Likewise.
16947         * modules/remove-tests: New test.
16948         * tests/test-remove.c: Likewise.
16949
16950         unlink: new module, for Solaris 9 bug
16951         * modules/unlink: New file.
16952         * lib/unlink.c: Likewise.
16953         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16955         * modules/unistd (Makefile.am): Use them.
16956         * lib/unistd.in.h (stat): Declare replacement.
16957         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16958         * doc/posix-functions/unlink.texi (unlink): Likewise.
16959         * modules/unlink-tests: New test.
16960         * tests/test-unlink.c: Likewise.
16961
16962         lstat: fix Solaris 9 bug
16963         * lib/lstat.c (lstat): Also check for trailing slash on
16964         non-symlink, non-directories.  Use stat module to simplify logic.
16965         * doc/posix-functions/lstat.texi (lstat): Document it.
16966         * modules/lstat-tests (Depends-on): Add errno, same-inode.
16967         (configure.ac): Check for symlink.
16968         * tests/test-lstat.c (main): Add more tests.
16969
16970         stat: add as dependency to other modules
16971         * modules/chown (Depends-on): Add stat.
16972         * modules/euidaccess (Depends-on): Likewise.
16973         * modules/fchdir (Depends-on): Likewise.
16974         * modules/isdir (Depends-on): Likewise.
16975         * modules/link (Depends-on): Likewise.
16976         * modules/lstat (Depends-on): Likewise.
16977         * modules/mkdir-p (Depends-on): Likewise.
16978         * modules/modechange (Depends-on): Likewise.
16979         * modules/open (Depends-on): Likewise.
16980         * modules/readlink (Depends-on): Likewise.
16981         * modules/same (Depends-on): Likewise.
16982
16983         stat: fix Solaris 9 bug
16984         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
16985         slash.
16986         * lib/stat.c (rpl_stat): Work around it.
16987         * doc/posix-functions/stat.texi (stat): Update documentation.
16988
16989         stat: new module, for mingw bug
16990         * modules/stat: New file.
16991         * lib/stat.c: Likewise.
16992         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16993         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16994         * modules/sys_stat (Makefile.am): Use them.
16995         * lib/sys_stat.in.h (stat): Declare replacement.
16996         * lib/openat.c (fstatat): Deal with lstat and stat being function
16997         macros.
16998         * modules/openat (Depends-on): Add inline.
16999         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17000         * doc/posix-functions/stat.texi (stat): Likewise.
17001         * modules/stat-tests: New test.
17002         * tests/test-stat.c: Likewise.
17003
17004 2009-09-19  Jim Meyering  <meyering@redhat.com>
17005
17006         syntax-check: detect unnecessary inclusion of canonicalize.h
17007         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
17008
17009 2009-09-19  Eric Blake  <ebb9@byu.net>
17010
17011         canonicalize-lgpl: adjust clients to use correct header
17012         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
17013         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
17014         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
17015         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
17016         * lib/progreloc.c (includes): Likewise.
17017
17018 2009-09-19  Jim Meyering  <meyering@redhat.com>
17019
17020         test-posixtm.c: correct a comment
17021         * tests/test-posixtm.c: Correct first-line comment.
17022         Spotted by Eric Blake.
17023
17024 2009-09-16  Jim Meyering  <meyering@redhat.com>
17025
17026         posixtm-tests: make T const-correct; add a test case
17027         * tests/test-posixtm.c (T): Declare const.
17028         Add a test for -(2^31+1).
17029         Remove useless can-succeed-only-in-2002 test.
17030
17031         posixtm-tests: adjust the sole failing test
17032         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
17033         expected output matches what mktime now produces.  Cross-checked via
17034         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
17035
17036         posixtm: move #ifdef'd tests into a new module
17037         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
17038         * tests/test-posixtm.c: ... this new file.
17039         * modules/posixtm-tests: New module.
17040
17041 2009-09-19  Eric Blake  <ebb9@byu.net>
17042
17043         openat: simplify use of at-func.c
17044         * lib/at-func.c (includes): Include prerequisites here, to
17045         simplify requirements on client files.
17046         * lib/openat-priv.h: Add double-inclusion guard.
17047         * lib/faccessat.c (includes): Simplify.
17048         * lib/fchmodat.c (includes): Likewise.
17049         * lib/fchownat.c (includes): Likewise.
17050         * lib/mkdirat.c (includes): Likewise.
17051         * lib/mkfifoat.c (includes): Likewise.
17052         * lib/symlinkat.c (includes): Likewise.
17053
17054         openat: allow return of fd 0
17055         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
17056         * modules/save-cwd (Depends-on): Replace fcntl-safer with
17057         unistd-safer.
17058         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
17059         <fcntl.h>; this module does not leak fds.
17060         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
17061         must be allowed to return 0, leaving openat_safer to add the
17062         safety.
17063         (openat_permissive): Avoid writing to just-opened fd 2 if
17064         restoring the current directory fails.
17065         * lib/openat-die.c (openat_restore_fail): Add comment.
17066         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
17067         (save_cwd): Guarantee safe fd, but without use of open_safer.
17068         * tests/test-openat.c: New test.
17069         * modules/openat-tests (Files, Makefile.am): Distribute and build
17070         new file.
17071
17072         relocatable-prog-wrapper: fix build
17073         * modules/relocatable-prog-wrapper (Files): Update name of
17074         canonicalize m4 file, broken on 2009-09-17.
17075         Reported by emad hajjar <aleppos@hotmail.com>.
17076
17077 2009-09-19  Bruno Haible  <bruno@clisp.org>
17078
17079         * lib/safe-alloc.h: Use the standard header with GPL copyright.
17080         * lib/safe-alloc.c: Likewise.
17081         Reported by Ian Beckwith <ianb@erislabs.net>.
17082
17083 2009-09-18  Bruno Haible  <bruno@clisp.org>
17084
17085         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
17086         Reported by <erobles@sensacd.com.mx>.
17087
17088 2009-09-17  Eric Blake  <ebb9@byu.net>
17089
17090         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
17091         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
17092         slashes when checking if last component is missing.
17093         * tests/test-canonicalize.c (main): Test this.
17094
17095         canonicalize, canonicalize-lgpl: honor // if distinct from /
17096         * modules/canonicalize (Files): Add double-slash-root.m4.
17097         * modules/canonicalize-lgpl (Files): Likewise.
17098         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
17099         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
17100         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
17101         fallback definition.
17102         (canonicalize_filename_mode): Use it to protect //.
17103         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
17104         (__realpath): Likewise.
17105         * tests/test-canonicalize.c (main): Test this.
17106         * tests/test-canonicalize-lgpl.c (main): Likewise.
17107         * modules/canonicalize-tests (Depends-on): Add same-inode.
17108         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17109
17110         canonicalize-lgpl: fix glibc bug with trailing slash
17111         * m4/canonicalize-lgpl.m4: Move contents...
17112         * m4/canonicalize.m4: ...here.
17113         (gl_CANONICALIZE_LGPL): Factor realpath check...
17114         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
17115         glibc 2.3.5 bug, fixed 2005-04-27.
17116         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
17117         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
17118         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
17119         * modules/canonicalize-lgpl (Files): Manage file rename.
17120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
17121         * modules/stdlib (Makefile.am): Substitute witness.
17122         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
17123         is needed.
17124         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
17125         replacement is required.
17126         * lib/canonicalize.c (canonicalize_file_name): Likewise.
17127         * doc/glibc-functions/canonicalize_file_name.texi
17128         (canonicalize_file_name): Document this.
17129         * doc/posix-functions/realpath.texi (realpath): Likewise.
17130
17131         canonicalize-lgpl: reject non-directory with trailing slash
17132         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
17133         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
17134         catches failures in glibc 2.3.5.
17135         * tests/test-canonicalize.c (main): Likewise.
17136
17137         canonicalize-lgpl: use native realpath if it works
17138         * lib/canonicalize-lgpl.c (realpath): Guard with
17139         FUNC_REALPATH_WORKS.
17140         * lib/stdlib.in.h (realpath): Make declaration optional based on
17141         HAVE_REALPATH.
17142         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
17143         native realpath works.
17144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
17145         * modules/stdlib (Makefile.am): Substitute witness.
17146
17147         canonicalize, canonicalize-lgpl: use <stdlib.h>
17148         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
17149         (Include): Mention <stdlib.h>.
17150         (configure.ac): Mention functions we provide.
17151         * modules/canonicalize (configure.ac): Likewise.
17152         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
17153         realpath if canonicalize_file_name is missing.
17154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
17155         * modules/stdlib (Makefile.am): Substitute witnesses.
17156         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
17157         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
17158         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
17159         * NEWS: Document this.
17160         * doc/glibc-functions/canonicalize_file_name.texi
17161         (canonicalize_file_name): Likewise.
17162         * doc/posix-functions/realpath.texi (realpath): Likewise.
17163         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
17164
17165         test-canonicalize: consolidate into single C program
17166         * tests/test-canonicalize.sh: Delete; move setup into...
17167         * tests/test-canonicalize.c (main): ...the program, making it
17168         easier to run in debugger.  Add some tests.
17169         * modules/canonicalize-tests (Files): Remove unused file.
17170         (Depends-on): Add progname.
17171         (configure.ac, Makefile.am): Simplify.
17172
17173         test-canonicalize-lgpl: consolidate into single C program
17174         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
17175         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
17176         easier to run in debugger.  Add some tests.
17177         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
17178         (configure.ac, Makefile.am): Simplify.
17179
17180         canonicalize: avoid resolvepath
17181         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
17182         unnecessary checks.
17183         * lib/canonicalize.c (includes): Simplify.
17184         (canonicalize_file_name): Drop resolvepath implementation.
17185         * modules/canonicalize (Depends-on): Drop filenamecat.
17186
17187         canonicalize: don't lose errno
17188         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
17189         over calls to free.
17190
17191         canonicalize: simplify errno handling
17192         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
17193         assignment.
17194
17195         canonicalize, canonicalize-lgpl: update module dependencies
17196         * modules/canonicalize (Depends-on): Add extensions, lstat,
17197         pathmax, stdlib.
17198         (Files): Drop pathmax.h.
17199         (configure.ac): Adjust macro name.
17200         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
17201         lstat, stdlib, sys_stat.
17202         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
17203         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
17204         extensions.
17205         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
17206         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
17207         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
17208         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
17209         declaration, if available.
17210         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
17211         we can rely on the readlink module.
17212         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
17213         (includes): Use <unistd.h> unconditionally.
17214
17215 2009-09-17  Eric Blake  <ebb9@byu.net>
17216
17217         maint: make Include sections of modules consistent
17218         * modules/alloca: Use only header name; no need to list #include.
17219         * modules/alloca-opt: Likewise.
17220         * modules/arpa_inet: Likewise.
17221         * modules/canon-host: Likewise.
17222         * modules/configmake: Likewise.
17223         * modules/dirent: Likewise.
17224         * modules/eealloc: Likewise.
17225         * modules/environ: Likewise.
17226         * modules/fchdir: Likewise.
17227         * modules/fcntl: Likewise.
17228         * modules/fcntl-h: Likewise.
17229         * modules/gethrxtime: Likewise.
17230         * modules/gettime: Likewise.
17231         * modules/ignore-value: Likewise.
17232         * modules/inet_ntop: Likewise.
17233         * modules/inet_pton: Likewise.
17234         * modules/inttypes: Likewise.
17235         * modules/isnand-nolibm: Likewise.
17236         * modules/isnanf-nolibm: Likewise.
17237         * modules/mbchar: Likewise.
17238         * modules/mbfile: Likewise.
17239         * modules/mbiter: Likewise.
17240         * modules/mbuiter: Likewise.
17241         * modules/netdb: Likewise.
17242         * modules/netinet_in: Likewise.
17243         * modules/nproc: Likewise.
17244         * modules/pagealign_alloc: Likewise.
17245         * modules/poll: Likewise.
17246         * modules/printf-frexp: Likewise.
17247         * modules/pthread: Likewise.
17248         * modules/putenv: Likewise.
17249         * modules/random_r: Likewise.
17250         * modules/relocatable-prog: Likewise.
17251         * modules/search: Likewise.
17252         * modules/select: Likewise.
17253         * modules/selinux-h: Likewise.
17254         * modules/settime: Likewise.
17255         * modules/signal: Likewise.
17256         * modules/size_max: Likewise.
17257         * modules/socklen: Likewise.
17258         * modules/ssize_t: Likewise.
17259         * modules/stdarg: Likewise.
17260         * modules/stdbool: Likewise.
17261         * modules/stddef: Likewise.
17262         * modules/stdint: Likewise.
17263         * modules/stdio: Likewise.
17264         * modules/stdlib: Likewise.
17265         * modules/string: Likewise.
17266         * modules/strings: Likewise.
17267         * modules/sys_file: Likewise.
17268         * modules/sys_ioctl: Likewise.
17269         * modules/sys_select: Likewise.
17270         * modules/sys_socket: Likewise.
17271         * modules/sys_stat: Likewise.
17272         * modules/sys_time: Likewise.
17273         * modules/sys_times: Likewise.
17274         * modules/sys_utsname: Likewise.
17275         * modules/sys_wait: Likewise.
17276         * modules/sysexits: Likewise.
17277         * modules/time: Likewise.
17278         * modules/times: Likewise.
17279         * modules/tmpfile: Likewise.
17280         * modules/trim: Likewise.
17281         * modules/unistd: Likewise.
17282         * modules/wchar: Likewise.
17283         * modules/wctype: Likewise.
17284
17285 2009-09-17  Bruno Haible  <bruno@clisp.org>
17286
17287         Make getdate.y compile on QNX and NetBSD 5 / i386.
17288         * m4/getdate.m4 (gl_GETDATE): Conditionally define
17289         TIME_T_FITS_IN_LONG_INT.
17290         * lib/getdate.y (long_time_t): New type.
17291         (relative_time): Change type of 'seconds' field to long_time_t.
17292         (get_date): Update types of local variables. Check against overflow
17293         during conversion from long_time_t to time_t.
17294         Reported by Matt Kraai <kraai@ftbfs.org>
17295         and Hasso Tepper <hasso@netbsd.org>.
17296
17297 2009-09-17  Bruno Haible  <bruno@clisp.org>
17298
17299         * modules/COPYING: Update copyright years.
17300         * modules/README: Likeiwse.
17301         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
17302         Reported by Ian Beckwith <ianb@erislabs.net>.
17303
17304 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
17305
17306         * users.txt: Update references for gnuit package.
17307
17308 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
17309
17310         * m4/getdelim.m4: Fix typo in copyright line.
17311
17312 2009-09-17  Bruno Haible  <bruno@clisp.org>
17313
17314         * lib/atoll.c: Use the standard header with GPL copyright.
17315         * lib/argz.in.h: Likewise.
17316         * lib/glob.c: Likewise.
17317         * lib/glob-libc.h: Likewise.
17318         * lib/random_r.c: Likewise.
17319         * lib/siglist.h: Likewise.
17320         * lib/strsignal.c: Likewise.
17321         Reported by Ian Beckwith <ianb@erislabs.net>.
17322
17323 2009-09-17  Eric Blake  <ebb9@byu.net>
17324
17325         rmdir: ensure correct dependency order
17326         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
17327
17328 2009-09-17  Bruno Haible  <bruno@clisp.org>
17329
17330         Disable assertion that fails on NetBSD 5 / i386.
17331         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
17332         Reported by Sam Steingold <sds@gnu.org>
17333         and Hasso Tepper <hasso@netbsd.org>.
17334
17335 2009-09-16  Eric Blake  <ebb9@byu.net>
17336
17337         unlinkdir: port to mingw
17338         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
17339         on which no one can unlink a directory.
17340
17341         stdlib: sort witness names
17342         * modules/stdlib (Makefile.am): Sort replacements.
17343         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
17344         * lib/stdlib.in.h: Likewise.
17345
17346         parse-duration-tests: avoid link failure
17347         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
17348         LIBINTL.
17349         Reported by Tom G. Christensen.
17350
17351         openat-tests: ensure unlinkat behaves like rmdir
17352         * tests/test-rmdir.c (main): Factor guts...
17353         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
17354         * modules/rmdir-tests (Files): Ship new file.
17355         * modules/openat-tests: New test.
17356         * tests/test-unlinkat.c: Likewise.
17357
17358         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
17359         * modules/rmdir-errno (Status, Notice): Now obsolete.
17360
17361         rmdir: work around cygwin 1.5.x and mingw bugs
17362         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
17363         * lib/rmdir.c (rmdir): Work around it.
17364         * modules/rmdir (Status, Notice): No longer obsolete.
17365         (Files): Add dos.m4.
17366         (Depends-on): Add unistd.
17367         (configure.ac): Set witnesses.
17368         (License): Relax to LGPLv2+.
17369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
17370         * modules/unistd (Makefile.am): Substitute witnesses.
17371         * lib/unistd.in.h (rmdir): Declare replacement.
17372         * doc/posix-functions/rmdir.texi (rmdir): Document this.
17373         * modules/rmdir-tests: New tests.
17374         * tests/test-rmdir.c: Likewise.
17375
17376 2009-09-15  Eric Blake  <ebb9@byu.net>
17377
17378         fchdir: improve use of replacement functions
17379         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
17380         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
17381         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
17382         REPLACE_CLOSEDIR.
17383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
17384         * modules/sys_stat (Makefile.am): Substitute correct witness.
17385         * modules/dirent (Makefile.am): Likewise.
17386         * modules/unistd (Makefile.am): Likewise.
17387         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
17388         * lib/unistd.in.h (dup): Likewise.
17389         * lib/sys_stat.in.h (fstat): Likewise.
17390
17391         maint: ignore gnulib-tool temp files
17392         * .gitignore: Ignore files created during gnulib-tool --test.
17393
17394 2009-09-13  Jim Meyering  <meyering@redhat.com>
17395
17396         posixtm: don't reject a time that specify "60" as the number of seconds
17397         * lib/posixtm.c (posixtime): The code to reject invalid dates
17398         would also reject a time specified with the .60 suffix.
17399         But POSIX allows that, in order to accommodate leap seconds.
17400         So don't reject it.
17401         (main): Adjust tests accordingly.
17402         * modules/posixtm (Depends-on): Add stpcpy.
17403
17404 2009-09-11  Jim Meyering  <meyering@redhat.com>
17405
17406         announce-gen: include [$release_type] in emitted Subject:
17407         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
17408         e.g., [stable] in the emitted Subject: line.
17409
17410 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17411
17412         Remove obsolete macros from several modules.
17413         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
17414         obsolete Autoconf macros with their modern counterparts.
17415         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
17416         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
17417         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
17418         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
17419         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
17420         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17422         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17423         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17424         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
17425         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17426         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17427         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
17428         * m4/sockets.m4 (gl_SOCKETS): Likewise.
17429         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
17430         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
17431         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
17432         * m4/time_r.m4 (gl_TIME_R): Likewise.
17433         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17434         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
17435         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
17436
17437         Fix copyright header in build-aux scripts.
17438         * build-aux/git-version-gen: Fix copyright header to match GPLv3
17439         recommendation.
17440         * build-aux/ncftpput-ftp: Likewise.
17441         * build-aux/update-copyright: Likewise.
17442
17443 2009-09-09  Eric Blake  <ebb9@byu.net>
17444
17445         test-link: allow Linux choice of errno
17446         * tests/test-link.c (main): Relax test for alternate error.
17447
17448         strndup: fix improper m4 caching
17449         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
17450         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
17451         (gl_PREREQ_STRNDUP): Delete.
17452         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
17453         * modules/string (Makefile.am): Substitute it.
17454         * lib/string.in.h (strndup): Modernize prototype.
17455
17456         getcwd: port to mingw
17457         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
17458         different from the POSIX assumptions made throughout the getcwd
17459         module; fortunately, the mingw getcwd does not need replacement.
17460         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
17461         * modules/getcwd-tests: New test.
17462         * tests/test-getcwd.c: Likewise.
17463
17464         link: fix platform bugs
17465         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
17466         * lib/link.c (link): Work around them.  Fix related mingw bug.
17467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
17468         * modules/unistd (Makefile.am): Substitute it.
17469         * lib/unistd.in.h (link): Declare replacement.
17470         * doc/posix-functions/link.texi (link): Document this.
17471         * modules/link (Depends-on): Add strdup-posix, sys_stat.
17472
17473         test-link: consolidate into single C program, test more cases
17474         * tests/test-link.sh: Delete.
17475         * tests/test-link.c: Test more error conditions.  Exposes bugs on
17476         at least Cygwin and Solaris.
17477         * modules/link-tests (Files): Remove unused file.
17478         (Depends-on): Add errno, sys_stat.
17479         (Makefile.am): Simplify.
17480
17481 2009-09-08  Bruno Haible  <bruno@clisp.org>
17482
17483         Work around towlower, towupper bug on mingw.
17484         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
17485         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
17486         * doc/posix-functions/towlower.texi: Mention the mingw bug.
17487         * doc/posix-functions/towupper.texi: Likewise.
17488         Reported by Eric Blake.
17489
17490 2009-09-08  Jim Meyering  <meyering@redhat.com>
17491
17492         build: don't try to run autoheader if we don't use it
17493         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
17494         is not used in configure.ac.
17495
17496 2009-09-08  Eric Blake  <ebb9@byu.net>
17497
17498         euidaccess: fix compilation error
17499         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
17500
17501         rawmemchr: relax license
17502         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
17503         okay.
17504         Reported by Jim Meyering.
17505
17506         mkfifoat: new module
17507         * modules/mkfifoat: New file.
17508         * lib/mkfifoat.c: Likewise.
17509         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
17510         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17511         * modules/sys_stat (Makefile.am): Use them.
17512         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
17513         * MODULES.html.sh (File system functions): Mention module.
17514         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17515         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17516         * modules/mkfifoat-tests: New test.
17517         * tests/test-mkfifoat.c: Likewise.
17518
17519         strchrnul: relax license
17520         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
17521         okay.
17522         Reported by Jim Meyering.
17523
17524 2009-09-08  Eric Blake  <ebb9@byu.net>
17525
17526         fstatat: fix compilation on Solaris
17527         * lib/fstatat.c (includes): Add fcntl.h.
17528         Reported by Pádraig Brady.
17529
17530 2009-09-07  Eric Blake  <ebb9@byu.net>
17531
17532         rename: modernize replacement
17533         * modules/rename (Depends-on): Add stdio.
17534         (configure.ac): Declare witness.
17535         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
17536         stdio take care of replacement.
17537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
17538         * modules/stdio (Makefile.am): Substitute them.
17539         * lib/stdio.in.h (rename): Declare replacement.
17540         * lib/rename.c (includes): Allow cross-compilation to non-windows
17541         machines.
17542         * doc/posix-functions/rename.texi (rename): Improve
17543         documentation.
17544
17545         stdio: sort witness names
17546         * modules/stdio (Makefile.am): Sort replacements.
17547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17548         * lib/stdio.in.h: Likewise.
17549
17550         getcwd: minor cleanups
17551         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
17552         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
17553
17554         openat: provide more convenience names
17555         * modules/faccessat (configure.ac): Add C witness.
17556         * lib/unistd.in.h (readlinkat): Fix typo.
17557         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
17558         convenience wrappers.
17559         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
17560         wrappers in syntax checks.
17561
17562 2009-09-06  Eric Blake  <ebb9@byu.net>
17563
17564         doc: fix comments in recent patches
17565         * lib/faccessat.c: Mention correct function.
17566         * lib/fchmodat.c: Likewise.
17567         * lib/fchownat.c: Likewise.
17568         * lib/symlinkat.c: Likewise.
17569         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
17570         constants.
17571
17572         faccessat, symlinkat: continue cleanup of previous patch
17573         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
17574         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17575         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
17576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
17577         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
17578         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
17579         set.
17580
17581 2009-09-06  Bruno Haible  <bruno@clisp.org>
17582
17583         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
17584         (fstatat): Declare if GNULIB_FSTATAT is set.
17585         (mkdirat): Declare if GNULIB_MKDIRAT is set.
17586         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
17587         (unlinkat): Declare if GNULIB_UNLINKAT is set.
17588         * modules/fcntl-h (Files): Remove m4/openat.m4.
17589         * modules/sys_stat (Files): Remove m4/openat.m4.
17590         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
17591         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
17592         * modules/unistd (Files): Remove m4/openat.m4.
17593         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
17594         GNULIB_OPENAT.
17595         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
17596         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
17597         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
17598         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
17599         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
17600         gl_OPENAT_DEFAULTS.
17601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
17602         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
17603         Don't require gl_OPENAT_DEFAULTS.
17604         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
17605         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
17606         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
17607         (gl_OPENAT_DEFAULTS): Remove macro.
17608
17609 2009-09-06  Bruno Haible  <bruno@clisp.org>
17610
17611         * modules/openat (configure.ac): Remove unneeded witness.
17612
17613 2009-09-06  Bruno Haible  <bruno@clisp.org>
17614
17615         Set errno to ENOSYS when a function is entirely unsupported.
17616         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
17617         EOPNOTSUPP.
17618         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17619         * modules/chown (Depends-on): Remove errno.
17620
17621 2009-09-06  Bruno Haible  <bruno@clisp.org>
17622
17623         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
17624
17625 2009-09-06  Bruno Haible  <bruno@clisp.org>
17626
17627         * lib/sys_stat.in.h: Fix preprocessor command indentation.
17628
17629 2009-09-06  Ben Pfaff  <blp@gnu.org>
17630             Bruno Haible  <bruno@clisp.org>
17631
17632         Work around a glibc bug in strtok_r.
17633         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
17634         Undefine if UNDEFINE_STRTOK_R is set.
17635         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
17636         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17637         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
17638         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
17639         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
17640         UNDEFINE_STRTOK_R.
17641         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
17642
17643 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17644
17645         exclude: minor fix
17646         * lib/exclude.c: Include wctype.h
17647
17648 2009-09-06  Akim Demaille  <demaille@gostai.com>
17649
17650         bootstrap: improve error message
17651         * build-aux/bootstrap (find_tool): Upon failure, report the list
17652         of candidates.
17653         Honor the initial value of the envvar.
17654
17655 2009-09-05  Eric Blake  <ebb9@byu.net>
17656
17657         symlinkat: new module
17658         * modules/symlinkat: New file.
17659         * lib/symlinkat.c: Likewise.
17660         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
17661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17662         * modules/unistd (Makefile.am): Use them.
17663         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
17664         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
17665         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
17666         * MODULES.html.sh (File system functions): Mention module.
17667         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17668         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17669         * modules/symlinkat-tests: New test.
17670         * tests/test-symlinkat.c: Likewise.
17671
17672         test-openat-safer: add more checks
17673         * tests/test-openat-safer.c (main): Check more code paths.
17674
17675 2009-09-05  Jim Meyering  <meyering@redhat.com>
17676
17677         syntax-check: detect unnecessary inclusion of openat.h
17678         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
17679
17680 2009-09-05  Bruno Haible  <bruno@clisp.org>
17681
17682         Support towlower, towupper.
17683         * doc/posix-functions/towlower.texi: Mention module wctype.
17684         * doc/posix-functions/towupper.texi: Likewise.
17685         * lib/wctype.in.h (towlower, towupper): New functions.
17686         * tests/test-wctype.c: Include stdio.h, stdlib.h.
17687         (ASSERT): New macro.
17688         (e): New variable.
17689         (main): Test also towlower, towupper. Test WEOF argument.
17690         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
17691
17692 2009-09-05  Bruno Haible  <bruno@clisp.org>
17693
17694         Fix conversion behaviour when the input is invalid.
17695         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
17696         mark occurring in first pass of indirect conversion.
17697         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
17698         input.
17699         Found by clang's static analyzer.
17700
17701 2009-09-05  Bruno Haible  <bruno@clisp.org>
17702
17703         * tests/test-striconveh.c (main): Test indirect conversion on platforms
17704         where direct conversion is possible.
17705
17706 2009-09-04  Eric Blake  <ebb9@byu.net>
17707
17708         openat: fail with ENOENT on empty name
17709         * lib/openat-proc.c (openat_proc_name): Special-case the empty
17710         buffer.
17711
17712         link-follow: fix logic bug in prior patch
17713         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
17714         reversed sense of yes and no in prior patch.  Avoid confusing
17715         compilation failure with desired semantics.
17716
17717         link-follow: accomodate mingw and cross-compilation
17718         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
17719         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
17720         cross-compilation results to -1, to make linkat easier to
17721         implement when cross-compiling.  Trivially support mingw.
17722         * modules/link-follow (configure.ac): Call new name.
17723         * NEWS: Mention this.
17724
17725 2009-09-03  Eric Blake  <ebb9@byu.net>
17726
17727         faccessat: compile replacement
17728         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
17729         needed.
17730
17731         fts: fix compilation error
17732         * lib/fts.c (includes): Re-add "openat.h", for
17733         openat_needs_fchdir.
17734
17735         faccessat: new module
17736         * modules/faccessat: New file.
17737         * lib/faccessat.c: Likewise.
17738         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17740         * modules/unistd (Makefile.am): Use it.
17741         * lib/unistd.in.h (faccessat): Declare it.
17742         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
17743         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
17744         * MODULES.html.sh (File system functions): Mention it.
17745         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
17746         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
17747
17748         euidaccess: prefer POSIX over non-standard implementation
17749         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
17750         * lib/euidaccess.c (euidaccess): Use it if available.
17751
17752         openat: make template easier to use
17753         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
17754         AT_FUNC_F2 to be undefined.
17755         (VALIDATE_FLAG): New macro; use it to reject bad flags.
17756         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
17757         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
17758         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
17759         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
17760         Likewise.
17761         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
17762         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
17763         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
17764         Likewise.
17765
17766         openat: declare in POSIX headers
17767         * NEWS: Mention this.
17768         * modules/openat (configure.ac): Declare witnesses.
17769         (Depends-on): Add fcntl-h, sys_stat, unistd.
17770         (Include): Mention correct headers.
17771         * modules/fcntl-h (Depends-on): Add link-warning.
17772         (Files): Add openat.m4.
17773         (Makefile.am): Substitute witnesses.
17774         * modules/sys_stat (Files, Makefile.am): Likewise.
17775         * modules/unistd (Files, Makefile.am): Likewise.
17776         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
17777         (gl_OPENAT_DEFAULTS): New macro.
17778         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
17779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
17780         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
17781         (SYS_STAT_H): Remove unused variable.
17782         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
17783         * lib/fcntl--.h (includes): Remove unneeded header.
17784         * lib/openat-safer.c (includes): Likewise.
17785         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
17786         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
17787         appropriate headers.
17788         (__OPENAT_PREFIX): Delete.
17789         * lib/fcntl.in.h (openat): Provide declaration.
17790         (AT_FDCWD): Fix Solaris bug.
17791         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
17792         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
17793         * lib/fchmodat.c (includes):  Adjust to find declaration.
17794         * lib/fchownat.c (includes): Likewise.
17795         * lib/mkdirat.c (includes): Likewise.
17796         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
17797         still visible.
17798
17799 2009-09-02  Eric Blake  <ebb9@byu.net>
17800
17801         errno: use consistently
17802         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
17803         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
17804         * lib/canonicalize.c (ELOOP): Likewise.
17805         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
17806         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
17807         * lib/lchown.c (EOPNOTSUPP): Likewise.
17808         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
17809         * lib/savewd.c (ESTALE): Likewise.
17810         * lib/settime.c (ENOSYS): Likewise.
17811         * lib/utimens.c (ENOSYS): Likewise.
17812         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
17813         * lib/chdir-safer.c (ELOOP): Likewise.
17814         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
17815         * modules/c-stack (Depends-on): Add errno.
17816         * modules/canonicalize (Depends-on): Likewise.
17817         * modules/chdir-safer (Depends-on): Likewise.
17818         * modules/fdopendir (Depends-on): Likewise.
17819         * modules/inet_ntop (Depends-on): Likewise.
17820         * modules/inet_pton (Depends-on): Likewise.
17821         * modules/lchown (Depends-on): Likewise.
17822         * modules/openat (Depends-on): Likewise.
17823         * modules/savewd (Depends-on): Likewise.
17824         * modules/settime (Depends-on): Likewise.
17825         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
17826
17827         fts: avoid leaking fds
17828         * modules/fts (Depends-on): Add cloexec.
17829         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
17830         flag.
17831
17832         fts: make directory fds more robust
17833         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
17834         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
17835
17836         backupfile, chdir-long, fts, savedir: make safer
17837         * lib/backupfile.c (includes): Use "dirent--.h", since
17838         numbered_backup can write to stderr during readdir.
17839         * lib/savedir.c (includes): Likewise.
17840         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
17841         emulation can write to stderr on failure.
17842         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
17843         * lib/getcwd.c: Document why opendir_safer is unused.
17844         * lib/glob.c: Likewise.
17845         * lib/scandir.c: Likewise.
17846         * lib/openat-proc.c: Likewise, for open_safer.
17847         * modules/backupfile (Depends-on): Add dirent-safer.
17848         * modules/savedir (Depends-on): Likewise.
17849         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
17850         * modules/chdir-long (Depends-on): Add openat-safer.
17851
17852         openat-safer: new module
17853         * modules/openat-safer: New file.
17854         * lib/openat-safer.c: Likewise.
17855         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
17856         * lib/fcntl-safer.h (openat_safer): Declare.
17857         * lib/fcntl--.h (openat): Override.
17858         * MODULES.html.sh (File descriptor based I/O): Mention it.
17859         * lib/openat.h: Add double-inclusion guards.
17860         * lib/openat.c (includes): Only include "fcntl-safer.h", not
17861         "fcntl--.h", so we can implement openat.
17862         * modules/openat-safer-tests: New test.
17863         * tests/test-openat-safer.c: New file.
17864
17865         dirent-safer: new module
17866         * modules/dirent-safer: New file.
17867         * lib/dirent--.h: Likewise.
17868         * lib/dirent-safer.h: Likewise.
17869         * lib/opendir-safer.c: Likewise.
17870         * m4/dirent-safer.m4: Likewise.
17871         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
17872         * modules/dirent-safer-tests: New test.
17873         * tests/test-dirent-safer.c: New file.
17874         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
17875
17876         fdopendir: optimize on mingw
17877         * lib/unistd.in.h (_gl_directory_name): New prototype.
17878         * lib/fchdir.c (_gl_directory_name): Implement it.
17879         (fchdir): Use it to simplify implementation.
17880         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
17881         fchdir, when available, to avoid calling [f]chdir().
17882
17883         fdopendir: split into its own module
17884         * lib/openat.c (fdopendir): Move...
17885         * lib/fdopendir.c: ...into new file.
17886         * modules/fdopendir: New module.
17887         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
17888         * modules/openat (Depends-on): Add fdopendir.
17889         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
17890         fdopendir here.
17891         * modules/savedir (Depends-on): Only need fdopendir, not full
17892         openat.
17893         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
17894         * lib/openat.h (fdopendir): Drop prototype.
17895         * lib/dirent.in.h (fdopendir): Provide prototype.
17896         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
17897         * modules/dirent (Makefile.am): Substitute them.
17898         * MODULES.html.sh (File system functions): Mention it.
17899         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
17900         * modules/fdopendir-tests: New file.
17901         * tests/test-fdopendir.c: Likewise.
17902
17903         fchdir: use more consistent macro convention
17904         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
17905         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
17906         REPLACE_FCHDIR, rather than relying on config.h macros.
17907         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
17908         inside a single make-time REPLACE_FCHDIR block, rather than using
17909         the config.h FCHDIR_REPLACEMENT.
17910         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
17911         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
17912         Manage fstat replacement.
17913         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
17914         REPLACE_FCHDIR.
17915         * modules/sys_stat (Files): Add m4/unistd_h.m4.
17916         (Makefile.am): Substitute REPLACE_FCHDIR.
17917         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
17918         FCHDIR_REPLACEMENT.
17919         * lib/dup-safer.c (dup_safer): Likewise.
17920         * lib/dup2.c (rpl_dup2): Likewise.
17921         * lib/dup3.c (rpl_dup3): Likewise.
17922         * lib/open.c (rpl_open): Likewise.
17923
17924         fchdir: simplify error handling, and support dup3
17925         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
17926         stdbool, malloc-posix, realloc-posix.
17927         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
17928         (ensure_dirs_slot): Return false on allocation failure.
17929         (rpl_dup2): Delete.
17930         (_gl_register_dup): New function.
17931         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
17932         (_gl_register_fd): Close fd on allocation failure.
17933         * lib/fcntl.in.h (_gl_register_fd): Update signature.
17934         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
17935         prototype.
17936         (rpl_dup2_fchdir): Delete prototype.
17937         * lib/open.c (open): Update caller.
17938         * lib/dup2.c (dup2): Track fchdir metadata.
17939         * lib/dup3.c (dup3): Likewise.
17940         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
17941         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
17942
17943 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17944
17945         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
17946         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
17947         don't pass arguments to AC_OUTPUT.
17948
17949 2009-09-02  Bruno Haible  <bruno@clisp.org>
17950
17951         * modules/mkdtemp (License): Relicense under LGPLv2+.
17952         Reported by Paolo Bonzini.
17953
17954 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17955
17956         Replace uses of obsolete autoconf macros in Jim's modules.
17957         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
17958         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
17959         can evoke a warning from autoconf when run with -Wobsolete
17960         enabled.  They were declared obsolete for good reasons (see
17961         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
17962         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
17963         should not continue using the deprecated macros.
17964         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
17965         obsolete Autoconf macros with modern counterparts.
17966         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17967         * m4/dos.m4 (gl_AC_DOS): Likewise.
17968         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
17969         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17970         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
17971         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
17972         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
17973         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
17974         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
17975         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
17976         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
17977         Likewise.
17978         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17979         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
17980         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
17981         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
17982         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17983         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
17984
17985 2009-09-01  Eric Blake  <ebb9@byu.net>
17986
17987         fchdir: fix off-by-one bug in previous patch
17988         * lib/fchdir.c (rpl_fstat): Use correct bounds.
17989         (_gl_unregister_fd): Delete useless if.
17990
17991 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
17992
17993         maint.mk: sort the list of syntax-check rules
17994         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
17995         easier to get a sense of progress when the rules are run sequentially
17996         and take a long time.
17997
17998 2009-09-01  Simon Josefsson  <simon@josefsson.org>
17999
18000         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
18001         * modules/netinet_in: Likewise.
18002         * modules/sys_file: Likewise.
18003         * modules/sys_ioctl: Likewise.
18004         * modules/sys_select: Likewise.
18005         * modules/sys_socket: Likewise.
18006         * modules/sys_stat: Likewise.
18007         * modules/sys_time: Likewise.
18008         * modules/sys_times: Likewise.
18009         * modules/sys_utsname: Likewise.
18010         * modules/sys_wait: Likewise.
18011
18012 2009-09-01  Jim Meyering  <meyering@redhat.com>
18013
18014         fts: help ensure that return values are not ignored
18015         * lib/fts_.h (__GNUC_PREREQ): Define.
18016         (__attribute_warn_unused_result__): Define.
18017         (fts_children, fts_close, fts_open, fts_read): Declare with
18018         __attribute_warn_unused_result__.
18019
18020         fts: fts_close now fails also when closing a dir file descriptor fails
18021         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
18022         and propagate to caller, along with errno.
18023
18024         announce-gen: correct formatting in --help output
18025         * build-aux/announce-gen (usage): Move the one-line description in
18026         --help output "up", to where it belongs, just after Usage:.
18027
18028 2009-08-31  Eric Blake  <ebb9@byu.net>
18029
18030         fchdir: port to mingw
18031         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
18032         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
18033         opened, then use a substitute.
18034         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
18035         replacement.
18036         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
18037         (_gl_register_fd): No need to check stat if open already filters
18038         all directories.
18039         (fchdir): Fix error condition to match POSIX.
18040         * modules/fchdir (Depends-on): Add sys_stat.
18041         * doc/posix-functions/open.texi (open): Document the limitation.
18042         * modules/fchdir-tests: New file.
18043         * tests/test-fchdir.c: Likewise.
18044
18045         canonicalize: allow cross-testing from cygwin to mingw
18046         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
18047         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
18048         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
18049         Likewise.
18050         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
18051         target does not support symlinks.
18052         * tests/test-canonicalize-lgpl.sh: Likewise.
18053
18054         chown: avoid compilation warning on mingw
18055         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
18056         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
18057         mingw.
18058         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
18059         * modules/chown (Depends-on): Add errno.
18060
18061 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18062
18063         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
18064         command.
18065
18066 2009-08-31  Jim Meyering  <meyering@redhat.com>
18067
18068         canonicalize: remove useless initialization
18069         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
18070         initialization of local, "end".
18071
18072 2009-08-30  Bruno Haible  <bruno@clisp.org>
18073
18074         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
18075         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
18076         ENOSYS.
18077
18078 2009-08-30  Bruno Haible  <bruno@clisp.org>
18079
18080         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
18081         /usr/xpg4/bin/tr when it exists.
18082         * tests/test-pipe-filter-gi1.sh: Likewise.
18083
18084 2009-08-30  Bruno Haible  <bruno@clisp.org>
18085
18086         Work around deficient /usr/bin/id program on Solaris.
18087         * tests/test-file-has-acl.sh (ID): New variable.
18088         * tests/test-set-mode-acl.sh (ID): Likewise.
18089         * tests/test-copy-acl.sh (ID): Likewise.
18090         * tests/test-copy-file.sh (ID): Likewise.
18091
18092 2009-08-30  Bruno Haible  <bruno@clisp.org>
18093
18094         New module 'xstriconveh'.
18095         * lib/xstriconveh.h: New file.
18096         * lib/xstriconveh.c: New file.
18097         * modules/xstriconveh: New file.
18098
18099 2009-08-30  Bruno Haible  <bruno@clisp.org>
18100
18101         Make it easier to use mem_cd_iconveh.
18102         * lib/striconveh.h (iconveh_t): New type.
18103         (iconveh_open, iconveh_close): New declarations.
18104         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
18105         with a single 'const iconveh_t *' argument.
18106         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
18107         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
18108         with a single 'const iconveh_t *' argument.
18109         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
18110         * tests/test-striconveh.c (main): Update.
18111         * NEWS: Mention the change.
18112
18113 2009-08-30  Bruno Haible  <bruno@clisp.org>
18114
18115         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
18116         problem.
18117
18118 2009-08-30  Bruno Haible  <bruno@clisp.org>
18119
18120         Work around iconv_open problem on Solaris.
18121         * lib/iconv_open-solaris.gperf: New file.
18122         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
18123         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
18124         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
18125         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
18126         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
18127         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
18128
18129 2009-08-29  Jim Meyering  <meyering@redhat.com>
18130
18131         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
18132         * top/maint.mk (cvs-check): Remove target; it was just an alias
18133         to the better-named vc-diff-check.
18134         (maintainer-distcheck): Remove rule.  It was used only from
18135         the (alpha/beta/major) target, and all of its commands but one
18136         were coreutils-specific.
18137         (vc-dist): Remove rule.
18138         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
18139         Run vc-diff-check, not vc-dist.
18140         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
18141
18142 2009-08-27  Bruno Haible  <bruno@clisp.org>
18143
18144         * tests/test-bitrotate.c (main): Remove test that uses a shift count
18145         of 0.
18146
18147 2009-08-27  Bruno Haible  <bruno@clisp.org>
18148
18149         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
18150         compilers.
18151         * doc/func.texi: Document the SunPRO C bug.
18152
18153 2009-08-27  Bruno Haible  <bruno@clisp.org>
18154
18155         Fix link error on Solaris.
18156         * tests/test-parse-duration.c (xstrdup): Remove function.
18157
18158 2009-08-26  Pádraig Brady  <P@draigbrady.com>
18159
18160         ignore-value: handle pointer types, too
18161         * lib/ignore-value.h (__attribute__): Remove definition.
18162         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
18163         of a more concise and more-often effective "(void) i" statement.
18164         (ignore_ptr): New function to suppress warnings from functions that
18165         return pointers, and to make it explicit that one function doesn't
18166         handle all cases.
18167
18168 2009-08-25  Bruno Haible  <bruno@clisp.org>
18169
18170         dup2: work around a Linux bug.
18171         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
18172         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
18173         * doc/posix-functions/dup2.texi: Mention the Linux bug.
18174         Reported by Simon Josefsson.
18175
18176 2009-08-25  Jim Meyering  <meyering@redhat.com>
18177
18178         libguestfs uses gnulib
18179         * users.txt: Add libguestfs.
18180
18181 2009-08-24  Eric Blake  <ebb9@byu.net>
18182
18183         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
18184         * lib/pipe2.c (includes): Add binary-io.h.
18185         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
18186
18187 2009-08-24  Bruno Haible  <bruno@clisp.org>
18188
18189         Tolerate declared but missing accept4 syscall.
18190         * lib/accept4.c (accept4): Invoke original accept4 function first, if
18191         available.
18192         * lib/sys_socket.in.h (accept4): If the function is already present,
18193         override it.
18194         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
18195         * modules/accept4 (Makefile.am): Compile accept4.c always.
18196         Reported by Paolo Bonzini and Eric Blake.
18197
18198 2009-08-23  Bruno Haible  <bruno@clisp.org>
18199
18200         New module 'accept4'.
18201         * lib/sys_socket.in.h (accept4): New declaration.
18202         * lib/accept4.c: New file.
18203         * m4/accept4.m4: New file.
18204         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18205         GNULIB_ACCEPT4, HAVE_ACCEPT4.
18206         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
18207         HAVE_ACCEPT4.
18208         * modules/accept4: New file.
18209         * doc/glibc-functions/accept4.texi: Mention the new module.
18210
18211 2009-08-24  Jim Meyering  <meyering@redhat.com>
18212
18213         progname: also set global program_invocation_name, when possible
18214         Before this change, a libtool-enabled program that calls glibc's
18215         error function would report the program name as
18216         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
18217         * modules/progname (configure.ac): Check for a declaration of
18218         program_invocation_name.
18219         * lib/progname.c:  Include <errno.h>.
18220         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
18221         Set program_invocation_name.
18222
18223 2009-08-23  Bruno Haible  <bruno@clisp.org>
18224
18225         * lib/dup3.c: Include <string.h>.
18226
18227 2009-08-23  Bruno Haible  <bruno@clisp.org>
18228
18229         * lib/dup3.c (dup3): Test only once whether the system actually exists.
18230         * lib/pipe2.c (pipe2): Likewise.
18231         Suggested by Eric Blake.
18232
18233 2009-08-23  Bruno Haible  <bruno@clisp.org>
18234
18235         Tolerate declared but missing dup3 syscall.
18236         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
18237         * lib/unistd.in.h (dup3): If the function is already present,
18238         override it.
18239         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
18240         * modules/dup3 (Makefile.am): Compile dup3.c always.
18241         Reported by Paolo Bonzini.
18242
18243 2009-08-23  Bruno Haible  <bruno@clisp.org>
18244
18245         Tolerate declared but missing pipe2 syscall.
18246         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
18247         available.
18248         * lib/unistd.in.h (pipe2): If the function is already present,
18249         override it.
18250         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
18251         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
18252         Reported by Paolo Bonzini.
18253
18254 2009-08-23  Bruno Haible  <bruno@clisp.org>
18255
18256         * lib/pipe2.c (pipe2): Move #ifs inside function.
18257
18258 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18259
18260         quotearg: document limitations of quote_these_too
18261         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
18262         those limitations are created.
18263         * lib/quotearg.h (set_char_quoting): Document that digits and
18264         letters that are special after backslash are not permitted.
18265         (quotearg_char): Cross-reference set_char_quoting documentation.
18266
18267 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
18268
18269         quotearg: implement custom_quoting_style
18270         * lib/quotearg.c: (struct quoting_options): Add left_quote and
18271         right_quote fields.
18272         (set_custom_quoting): New public function.
18273         (quotearg_buffer_restyled): Add left_quote and right_quote
18274         arguments, handle them very much like locale quoting, and update
18275         all uses.
18276         (quotearg_n_custom): New public function.
18277         (quotearg_n_custom_mem): New public function.
18278         (quotearg_custom): New public function.
18279         (quotearg_custom_mem): New public function.
18280         * lib/quotearg.h: Prototype and document new public functions.
18281         (enum quoting_style): For escape_quoting_style and
18282         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
18283         ignored even though they're otherwise like c_quoting_style.
18284         Add custom_quoting_style member and document with comparison to
18285         clocale_quoting_style.
18286         * tests/test-quotearg.c (custom_quotes): New array.
18287         (custom_results): New array.
18288         (main): Extend to test custom quoting.
18289
18290 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18291
18292         quotearg: fix right quote escaping when it's in quote_these_too
18293         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
18294         quote, be sure to prepend only one backslash.
18295         * tests/test-quotearg.c (use_quote_double_quotes): New function.
18296         (main): Test it.
18297
18298 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18299
18300         quotearg-tests: test escaping of embedded locale quotes
18301         * tests/test-quotearg.c (struct result_strings): Add member for
18302         new input.
18303         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
18304         (inputs): Add new input.
18305         (results_g): Add expected results.
18306         (flag_results): Likewise.
18307         (locale_results): Likewise.
18308         (compare_strings): Check those.
18309
18310 2009-08-23  Bruno Haible  <bruno@clisp.org>
18311
18312         Tests for module 'dup3'.
18313         * modules/dup3-tests: New file.
18314         * tests/test-dup3.c: New file.
18315
18316         New module 'dup3'.
18317         * lib/unistd.in.h (dup3): New declaration.
18318         * lib/dup3.c: New file.
18319         * m4/dup3.m4: New file.
18320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
18321         HAVE_DUP3.
18322         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
18323         * modules/dup3: New file.
18324         * doc/glibc-functions/dup3.texi: Mention the new module.
18325
18326 2009-08-23  Bruno Haible  <bruno@clisp.org>
18327
18328         Tweak the dup2 test.
18329         * tests/test-dup2.c (main): Create the test file empty. Verify that an
18330         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
18331         the test file is still empty. Fix argument order of lseek.
18332
18333 2009-08-23  Bruno Haible  <bruno@clisp.org>
18334
18335         Avoid test link errors when the modules getopt-gnu, gettext are used.
18336         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
18337         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18338
18339 2009-08-23  Bruno Haible  <bruno@clisp.org>
18340
18341         Fix getdtablesize() on mingw.
18342         * lib/getdtablesize.c (getdtablesize): Implement differently.
18343         * lib/unistd.in.h (getdtablesize): Improve comment.
18344
18345 2009-08-23  Bruno Haible  <bruno@clisp.org>
18346
18347         New module 'mkostemp'.
18348         Based on Ulrich Drepper's 2007-08-10 change in glibc.
18349         * lib/stdlib.in.h (mksotemp): New declaration.
18350         * lib/mkostemp.c: New file, from glibc with modifications.
18351         * lib/tempname.h (GT_FILE): Remove outdated comment.
18352         (gen_tempname): Add flags argument.
18353         * lib/tempname.c (__GT_BIGFILE): Remove macro.
18354         (__GT_FILE): Map to 1.
18355         (small_open, large_open): Remove macros.
18356         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
18357         * lib/mkstemp.c (mkstemp): Update.
18358         * lib/mkdtemp.c (mkdtemp): Likewise.
18359         * m4/mkostemp.m4: New file.
18360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
18361         HAVE_MKOSTEMP.
18362         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
18363         HAVE_MKOSTEMP.
18364         * modules/mkostemp: New file, based on modules/mkstemp.
18365         * doc/glibc-functions/mkostemp.texi: Mention the new module.
18366         * NEWS: Mention the change.
18367
18368 2009-08-23  Bruno Haible  <bruno@clisp.org>
18369
18370         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
18371         Reported by Eric Blake.
18372
18373 2009-08-23  Bruno Haible  <bruno@clisp.org>
18374
18375         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
18376         Reported by Eric Blake.
18377
18378 2009-08-23  Bruno Haible  <bruno@clisp.org>
18379
18380         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
18381         * modules/pipe2 (Depends-on): Likewise.
18382
18383 2009-08-23  Eric Blake  <ebb9@byu.net>
18384
18385         fcntl-h: add O_TTY_INIT support
18386         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
18387         * tests/test-fcntl-h.c (o): Test it.
18388         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18389
18390         fcntl-h: rename from fcntl, in preparation for fcntl(2)
18391         * modules/fcntl: Move <fcntl.h> header replacement...
18392         * modules/fcntl-h: ...to new name, so as not to collide with
18393         like-named function.
18394         * tests/test-fcntl.c: Rename...
18395         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
18396         * modules/fcntl-tests: Rename...
18397         * modules/fcntl-h-tests: ...to this.  Update test file name.
18398         * modules/chdir-long (Depends-on): Update clients.
18399         * modules/chdir-safer (Depends-on): Likewise.
18400         * modules/fcntl-safer (Depends-on): Likewise.
18401         * modules/fts (Depends-on): Likewise.
18402         * modules/mkancesdirs (Depends-on): Likewise.
18403         * modules/mkdir-p (Depends-on): Likewise.
18404         * modules/open (Depends-on): Likewise.
18405         * modules/savewd (Depends-on): Likewise.
18406         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
18407         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18408
18409 2009-08-22  Bruno Haible  <bruno@clisp.org>
18410
18411         * modules/binary-io (License): Relicense under LGPL.
18412         * modules/pipe2 (License): Likewise.
18413
18414 2009-08-22  Bruno Haible  <bruno@clisp.org>
18415
18416         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
18417         return value.
18418         * lib/pipe-filter-gi.c (filter_init): Likewise.
18419         Reported by Eric Blake.
18420
18421 2009-08-22  Bruno Haible  <bruno@clisp.org>
18422
18423         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
18424         * modules/pipe (Depends-on): Add pipe2.
18425
18426 2009-08-22  Bruno Haible  <bruno@clisp.org>
18427
18428         Tests for module 'pipe2'.
18429         * modules/pipe2-tests: New file.
18430         * tests/test-pipe2.c: New file.
18431
18432         New module 'pipe2'.
18433         * lib/unistd.in.h (pipe2): New declaration.
18434         * lib/pipe2.c: New file.
18435         * m4/pipe2.m4: New file.
18436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
18437         HAVE_PIPE2.
18438         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
18439         * modules/pipe2: New file.
18440         * doc/glibc-functions/pipe2.texi: Mention the new module.
18441
18442 2009-08-22  Bruno Haible  <bruno@clisp.org>
18443
18444         Reference some new glibc functions.
18445         * doc/glibc-functions/accept4.texi: New file.
18446         * doc/glibc-functions/dup3.texi: New file.
18447         * doc/glibc-functions/mkostemp.texi: New file.
18448         * doc/glibc-functions/pipe2.texi: New file.
18449         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
18450         (Glibc sys/socket.h): Refer to accept4.
18451         (Glibc unistd.h): Refer to dup3, pipe2.
18452         Reported by Eric Blake.
18453
18454 2009-08-22  Jim Meyering  <meyering@redhat.com>
18455             Bruno Haible  <bruno@clisp.org>
18456
18457         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
18458         This makes it so packages using automake-1.11's silent-rules option
18459         can print e.g., a single "GEN    configmake.h" line, rather than
18460         the 30+ statements that perform the job.  If you want to see the
18461         actual commands, you can still run "make V=1".
18462         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
18463         so that make output is abbreviated when those variables are defined
18464         appropriately.
18465         * modules/argz: Likewise.
18466         * modules/arpa_inet: Likewise.
18467         * modules/byteswap: Likewise.
18468         * modules/configmake: Likewise.
18469         * modules/dirent: Likewise.
18470         * modules/errno: Likewise.
18471         * modules/fcntl: Likewise.
18472         * modules/float: Likewise.
18473         * modules/fnmatch: Likewise.
18474         * modules/getopt-posix: Likewise.
18475         * modules/glob: Likewise.
18476         * modules/iconv_open: Likewise.
18477         * modules/inttypes: Likewise.
18478         * modules/localcharset: Likewise.
18479         * modules/locale: Likewise.
18480         * modules/math: Likewise.
18481         * modules/netdb: Likewise.
18482         * modules/netinet_in: Likewise.
18483         * modules/poll: Likewise.
18484         * modules/posix_spawnp-tests: Likewise.
18485         * modules/sched: Likewise.
18486         * modules/search: Likewise.
18487         * modules/selinux-h: Likewise.
18488         * modules/signal: Likewise.
18489         * modules/spawn: Likewise.
18490         * modules/stdarg: Likewise.
18491         * modules/stdbool: Likewise.
18492         * modules/stddef: Likewise.
18493         * modules/stdint: Likewise.
18494         * modules/stdio: Likewise.
18495         * modules/stdlib: Likewise.
18496         * modules/string: Likewise.
18497         * modules/strings: Likewise.
18498         * modules/sys_file: Likewise.
18499         * modules/sys_ioctl: Likewise.
18500         * modules/sys_select: Likewise.
18501         * modules/sys_socket: Likewise.
18502         * modules/sys_stat: Likewise.
18503         * modules/sys_time: Likewise.
18504         * modules/sys_times: Likewise.
18505         * modules/sys_utsname: Likewise.
18506         * modules/sys_wait: Likewise.
18507         * modules/sysexits: Likewise.
18508         * modules/time: Likewise.
18509         * modules/unistd: Likewise.
18510         * modules/wchar: Likewise.
18511         * modules/wctype: Likewise.
18512
18513 2009-08-22  Jim Meyering  <meyering@redhat.com>
18514
18515         announce-gen: detect write failure
18516         * build-aux/announce-gen: Add Coda at end.
18517         Remove equivalent-but-more-verbose block at top.
18518
18519 2009-08-19  Akim Demaille  <demaille@gostai.com>
18520
18521         bootstrap: --help to stdout.
18522         * bootstrap (usage): Don't send --help to stderr.
18523         Use a here doc instead of a long string.
18524
18525 2009-08-21  Eric Blake  <ebb9@byu.net>
18526
18527         test-popen-safer: split from test-popen
18528         * tests/test-popen.c (main): Move...
18529         * tests/test-popen.h: ...into new file.
18530         * tests/test-popen-safer2.c: New file.
18531         * modules/popen-tests (Files): Add test-popen.h.
18532         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
18533         Suggested by Bruno Haible.
18534
18535         test-fcntl-safer: split from test-open
18536         * tests/test-open.c (main): Move...
18537         * tests/test-open.h: ...into new file.
18538         * tests/test-fcntl-safer.c: New file.
18539         * modules/open-tests (Files): Add test-open.h.
18540         * modules/fcntl-safer-tests: New file.
18541         Suggested by Bruno Haible.
18542
18543         test-fopen-safer: split from test-fopen
18544         * tests/test-fopen.c (main): Move...
18545         * tests/test-fopen.h: ...into new file.
18546         * tests/test-fopen-safer.c: New file.
18547         * modules/fopen-tests (Files): Add test-fopen.h.
18548         * modules/fopen-safer-tests: New file.
18549         Suggested by Bruno Haible.
18550
18551 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18552
18553         popen-safer: test O_CLOEXEC at run-time.
18554         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
18555
18556 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18557
18558         fcntl: move more flags to the header
18559         * lib/cloexec.c: Do not define FD_CLOEXEC here.
18560         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
18561         * lib/fcntl.in.h: Do both things here.
18562
18563 2009-08-21  Jim Meyering  <meyering@redhat.com>
18564
18565         consistently remove $@-t before redirecting to it
18566         * modules/argz: Remove $@-t and $@ before redirecting to the former.
18567         * modules/alloca-opt: Likewise.
18568         * modules/byteswap: Likewise.
18569         * modules/fnmatch: Likewise.
18570         * modules/getopt-posix: Likewise.
18571         * modules/glob: Likewise.
18572         * modules/poll: Likewise.
18573         * modules/posix_spawnp-tests: Likewise.
18574         * modules/sys_socket: Likewise.
18575         * modules/sysexits: Likewise.
18576
18577 2009-08-21  Eric Blake  <ebb9@byu.net>
18578
18579         popen: simplify access to original popen
18580         * lib/popen.c (rpl_popen): No need to worry about popen being a
18581         macro.
18582         Reported by Bruno Haible.
18583
18584 2009-08-20  Eric Blake  <ebb9@byu.net>
18585
18586         build: avoid some compiler warnings
18587         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
18588         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
18589         type.
18590         (new_exclude_segment, excluded_file_pattern_p)
18591         (excluded_file_name_p): Reduce scope.
18592         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
18593         old-style declaration.
18594
18595 2009-08-20  Simon Josefsson  <simon@josefsson.org>
18596
18597         * tests/test-exclude1.sh: Handle Windows EOL.
18598         * tests/test-exclude2.sh: Likewise.
18599         * tests/test-exclude3.sh: Likewise.
18600         * tests/test-exclude4.sh: Likewise.
18601         * tests/test-exclude5.sh: Likewise.
18602         * tests/test-exclude6.sh: Likewise.
18603         * tests/test-exclude7.sh: Likewise.
18604
18605 2009-08-19  Akim Demaille  <demaille@gostai.com>
18606
18607         bootstrap: find sha1sum when named gsha1sum.
18608         * bootstrap (find_tool): New.
18609         ($SHA1SUM): New.
18610         Use it.
18611
18612 2009-08-20  Jim Meyering  <meyering@redhat.com>
18613
18614         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
18615         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
18616         expression that converts "." in a file name to "\." in the resulting
18617         regexp.  Start with a dummy statement, so that prior shell variable
18618         definitions are expanded portably.  Reported by Simon Josefsson.
18619
18620 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
18621
18622         Fix polling for writeability of a screen buffer.
18623         * lib/poll.c: Distinguish input and screen buffers for the
18624         Win32 implementation.
18625         * lib/select.c: Likewise.
18626
18627 2009-08-19  Eric Blake  <ebb9@byu.net>
18628
18629         popen-safer: prevent popen from clobbering std descriptors
18630         * modules/popen-safer: New file.
18631         * lib/popen-safer.c: Likewise.
18632         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
18633         * lib/stdio--.h (popen): Provide override.
18634         * lib/stdio-safer.h (popen_safer): Provide declaration.
18635         * tests/test-popen.c (includes): Partially test this.
18636         * modules/popen-safer-tests: New file, for more tests.
18637         * tests/test-popen-safer.c: Likewise.
18638         * MODULES.html.sh (file stream based Input/Output): Mention it.
18639
18640         tests: test some of the *-safer modules
18641         * modules/fopen-safer (Depends-on): Add fopen.
18642         * modules/fcntl-safer (Depends-on): Add fcntl.
18643         * modules/stdlib-safer (Depends-on): Add stdlib.
18644         (configure.ac): Set indicator.
18645         * modules/unistd-safer (configure.ac): Likewise.
18646         * modules/tmpfile-safer (configure.ac): Likewise.
18647         (Depends-on): Add tmpfile.
18648         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
18649         active.
18650         * tests/test-fopen.c (includes): Test safer versions when they are
18651         in use.
18652         * tests/test-open.c (includes): Likewise.
18653
18654         popen: fix cygwin 1.5 bug when stdin closed
18655         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
18656         * modules/popen: New file.
18657         * modules/popen-tests: Likewise.
18658         * tests/test-popen.c: Likewise.
18659         * m4/popen.m4: Likewise.
18660         * lib/popen.c: Likewise.
18661         * lib/stdio.in.h (popen): New declaration.
18662         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
18663         * modules/stdio (Makefile.am): Likewise.
18664         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
18665
18666 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
18667
18668         maint.mk: give full control over update-copyright exclusions
18669         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
18670         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
18671         (update-copyright): Don't force inclusion of top-level
18672         ChangeLog.  Don't force exclusion of all COPYING files, but make
18673         them the default exclusion instead.
18674
18675 2009-08-16  Bruno Haible  <bruno@clisp.org>
18676
18677         Fix test failures on Solaris 10.
18678         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
18679         tests when Solaris iconv() is used.
18680         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
18681         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
18682         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
18683         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
18684         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
18685
18686 2009-08-16  Bruno Haible  <bruno@clisp.org>
18687
18688         Fix test failures on Solaris 10.
18689         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
18690         'tr' program and pass it as first argument.
18691         * tests/test-pipe-filter-gi1.sh: Likewise.
18692         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
18693         program as first argument.
18694         * tests/test-pipe-filter-gi1.c (main): Likewise.
18695
18696 2009-08-16  Eric Blake  <ebb9@byu.net>
18697
18698         fpurge: fix previous commits
18699         * modules/fpurge (Makefile.am): Make replacement conditional,
18700         partially reverting 2007-04-29 change; missed in previous
18701         attempt.
18702         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
18703         is missing.
18704
18705 2009-08-16  Bruno Haible  <bruno@clisp.org>
18706
18707         Clarify fpurge's effect on the file position.
18708         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
18709         * tests/test-fpurge.c (main): Make a second pass for checking the file
18710         position.
18711
18712 2009-08-16  Bruno Haible  <bruno@clisp.org>
18713
18714         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
18715         declaration of fpurge is missing.
18716         * tests/test-fpurge.c (main): Check that the file has not more contents
18717         than expected. Close the file before removing it.
18718
18719 2009-08-15  Eric Blake  <ebb9@byu.net>
18720
18721         fpurge: don't wrap working cygwin implementation
18722         * lib/fpurge.c (fpurge): Fix comment typo.
18723         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
18724         1.7 to avoid replacement.
18725         * tests/test-fpurge.c (main): Enhance test.
18726
18727 2009-08-15  Eric Blake  <ebb9@byu.net>
18728         and Jim Meyering  <meyering@redhat.com>
18729
18730         test-update-copyright: skip if perl is insufficient
18731         * tests/test-update-copyright.sh: Failure to run maintainer tool
18732         should not cause testsuite failure on cygwin 1.5.
18733
18734 2009-08-14  Eric Blake  <ebb9@byu.net>
18735
18736         doc: mention more functions added in cygwin 1.7.0
18737         * doc/posix-headers/limits.texi (limits.h): Update for recent
18738         cygwin additions.
18739         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
18740         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18741         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
18742         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
18743         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
18744
18745 2009-08-14  Eric Blake  <ebb9@byu.net>
18746
18747         maint.mk: simplify update-copyright rule
18748         * top/maint.mk (update-copyright-local): Delete, and document how
18749         to do it in cfg.mk instead.
18750         (update-copyright-exclude-regexp): Delete, and document how to do
18751         it in .x-update-copyright instead.
18752         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
18753         exclude ChangeLog.
18754
18755 2009-08-14  Bruno Haible  <bruno@clisp.org>
18756
18757         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
18758
18759 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18760
18761         maint.mk: support update-copyright-env
18762         * top/maint.mk (update-copyright-env): Define place-holder.
18763         (update-copyright): Expand $(update-copyright-env) before
18764         invoking update-copyright.
18765
18766 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18767
18768         update-copyright: implement forced reformatting
18769         * build-aux/update-copyright: Implement and document
18770         UPDATE_COPYRIGHT_FORCE.
18771         * tests/test-update-copyright.sh: Test it.
18772
18773 2009-08-14  Eric Blake  <ebb9@byu.net>
18774         and Bruno Haible  <bruno@clisp.org>
18775
18776         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
18777         * tests/test-locale.c: Revert previous patch related to NULL.
18778         * tests/test-stdio.c: Likewise.
18779         * tests/test-stdlib.c: Likewise.
18780         * tests/test-string.c: Likewise.
18781         * tests/test-unistd.c: Likewise.
18782         * modules/time-tests (Depends-on): Add verify.
18783         * modules/wchar-tests (Depends-on): Likewise.
18784         * tests/test-time.c: Test for NULL compliance.
18785         * tests/test-wchar.c: Likewise.
18786         * modules/locale (Depends-on): Add stddef.
18787         * modules/stdio (Depends-on): Likewise.
18788         * modules/stdlib (Depends-on): Likewise.
18789         * modules/string (Depends-on): Likewise.
18790         * modules/time (Depends-on): Likewise.
18791         * modules/unistd (Depends-on): Likewise.
18792         * modules/wchar (Depends-on): Likewise.
18793         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
18794         * lib/stdlib.in.h (includes): Likewise.
18795         * lib/string.in.h (includes): Likewise.
18796         * lib/time.in.h (includes): Likewise.
18797         * lib/unistd.in.h (includes): Likewise.
18798         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
18799         replaced.
18800         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18801         * m4/stddef_h.m4: New file.
18802         * modules/stddef: Likewise.
18803         * lib/stddef.in.h: Likewise.
18804         * modules/stddef-tests: Likewise.
18805         * tests/test-stddef.c: Likewise.
18806         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
18807         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
18808         * doc/posix-headers/locale.texi (locale.h): Likewise.
18809         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
18810         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18811         * doc/posix-headers/string.texi (string.h): Likewise.
18812         * doc/posix-headers/time.texi (time.h): Likewise.
18813         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
18814         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
18815
18816 2009-08-14  Eric Blake  <ebb9@byu.net>
18817
18818         doc: improve git diff of texinfo files
18819         * .gitattributes: Add rule for *.texi files, with hint on how to
18820         use it.
18821         Copied from m4, and based on a report by Bruno Haible.
18822
18823 2009-08-14  Bruno Haible  <bruno@clisp.org>
18824
18825         Disable multithread support by default on Cygwin 1.5.x for real.
18826         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
18827
18828 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18829
18830         update-copyright: much ado about intervals
18831         * build-aux/update-copyright: Implement and document
18832         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
18833         of copyright year intervals.
18834         Also, document UPDATE_COPYRIGHT_YEAR.
18835         * tests/test-update-copyright.sh: Test it.
18836
18837         update-copyright: convert 2-digit to 4-digit years
18838         * build-aux/update-copyright: Implement and document.
18839         * tests/test-update-copyright.sh: Update.
18840
18841 2009-08-14  Jim Meyering  <meyering@redhat.com>
18842
18843         test-exclude: avoid coreutils "make check" failure
18844         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
18845         just as in test-argmatch.c.
18846
18847 2009-08-13  Eric Blake  <ebb9@byu.net>
18848
18849         test-dup2: fix bad assumption
18850         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
18851         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
18852
18853         test-version-etc: fix CRLF portability issue
18854         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
18855         recognize \r.
18856         * tests/test-argp-version-etc-1.sh: Likewise.
18857
18858         getopt: update client modules
18859         * modules/argp (Depends-on): Use getopt-gnu.
18860         * modules/git-merge-changelog (Depends-on): Likewise.
18861         * modules/long-options (Depends-on): Likewise.
18862         * modules/xstrtol (Depends-on): Likewise.
18863
18864 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18865
18866         * tests/test-version-etc.sh: Don't fail on different
18867         project/version.  Don't fail on CRLF differences.  Rewrite to use
18868         multiple -e instead of multiple sed forks, suggested by Eric Blake
18869         <ebb9@byu.net>.
18870         * tests/test-argp-version-etc-1.sh: Likewise.
18871
18872 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18873
18874         * tests/test-version-etc.sh: Don't fail on different
18875         project/version.
18876
18877 2009-08-12  Bruno Haible  <bruno@clisp.org>
18878
18879         Tests for modules 'getopt-posix', 'getopt-gnu'.
18880         * modules/getopt-posix-tests: New file.
18881         * tests/test-getopt.c: New file.
18882         * tests/test-getopt.h: New file.
18883         * tests/test-getopt_long.h: New file.
18884
18885         New modules 'getopt-posix', 'getopt-gnu'.
18886         * modules/getopt-gnu: New file, renamed from modules/getopt.
18887         * modules/getopt-posix: New file.
18888         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
18889         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
18890         (gl_GETOPT): Remove macro.
18891         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
18892         Disable the test against BSD systems that declare optreset. Test
18893         against mingw bug. Test against lack of support of optional arguments
18894         on many platforms.
18895         * doc/glibc-headers/getopt.texi: Update module name and list of
18896         relevant platforms.
18897         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
18898         'getopt-gnu' and more portability problems.
18899         * NEWS: Mention the changes.
18900
18901 2009-08-12  Bruno Haible  <bruno@clisp.org>
18902
18903         Ensure that optarg etc. get declared by <unistd.h>.
18904         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
18905         AC_USE_SYSTEM_EXTENSIONS.
18906         * modules/getopt (Depends-on): Add 'extensions'.
18907
18908 2009-08-12  Bruno Haible  <bruno@clisp.org>
18909
18910         Avoid test link errors.
18911         * modules/pipe-filter-ii-tests (Makefile.am): Define
18912         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
18913         * modules/pipe-filter-gi-tests (Makefile.am): Define
18914         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
18915         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18916
18917 2009-08-12  Bruno Haible  <bruno@clisp.org>
18918
18919         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
18920         gl_GETOPT_SUBSTITUTE before.
18921         (gl_GETOPT): Use it.
18922         * m4/argp.m4 (gl_ARGP): Update.
18923         Reported by Sergey Poznyakoff.
18924
18925         * m4/getopt.m4: Reorder macros.
18926         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
18927         (gl_GETOPT_SUBSTITUTE): Remove macro.
18928
18929 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18930
18931         Minor improvement in gitlog-to-changelog
18932
18933         * build-aux/gitlog-to-changelog: New option `--format' makes
18934         output format string configurable.
18935
18936 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18937
18938         Optimize exclude: use hash tables for non-wildcard patterns.
18939
18940         * lib/exclude.c: Include hash.h and mbuiter.h
18941         (struct exclude_pattern, exclude_segment): New data types.
18942         (struct exclude): Rewrite.
18943         (fnmatch_pattern_has_wildcards): New function.
18944         (new_exclude_segment, free_exclude_segment): New functions.
18945         (excluded_file_pattern_p, excluded_file_name_p): New functions.
18946         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
18947         * lib/exclude.h (is_fnmatch_pattern): New prototype.
18948         * modules/exclude: Depend on hash and mbuiter.
18949
18950         * modules/exclude-tests: New file.
18951         * tests/test-exclude.c: New file.
18952         * tests/test-exclude1.sh: New file.
18953         * tests/test-exclude2.sh: New file.
18954         * tests/test-exclude3.sh: New file.
18955         * tests/test-exclude4.sh: New file.
18956         * tests/test-exclude5.sh: New file.
18957         * tests/test-exclude6.sh: New file.
18958         * tests/test-exclude7.sh: New file.
18959
18960 2009-08-12  Bruno Haible  <bruno@clisp.org>
18961
18962         Ensure that getopt() gets declared by <unistd.h>.
18963         * lib/unistd.in.h: Conditionally include getopt.h.
18964         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
18965         Set GNULIB_UNISTD_H_GETOPT.
18966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18967         GNULIB_UNISTD_H_GETOPT.
18968         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
18969
18970 2009-08-12  Bruno Haible  <bruno@clisp.org>
18971
18972         Clarify logic.
18973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
18974         gl_replace_getopt instead of GETOPT_H.
18975
18976 2009-08-12  Bruno Haible  <bruno@clisp.org>
18977
18978         * m4/getopt.m4: Add comments.
18979
18980 2009-08-12  Bruno Haible  <bruno@clisp.org>
18981
18982         Disable multithread support by default on Cygwin 1.5.x.
18983         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
18984         set gl_use_threads=no if not specified otherwise.
18985
18986 2009-08-11  Bruno Haible  <bruno@clisp.org>
18987
18988         Avoid compilation error on NetBSD 5.0.
18989         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
18990         * tests/test-stdio.c: Likewise.
18991         * tests/test-stdlib.c: Likewise.
18992         * tests/test-string.c: Likewise.
18993         * tests/test-unistd.c: Likewise.
18994         Reported by Greg Troxel <gdt@ir.bbn.com>
18995         at <https://savannah.gnu.org/support/?106973>.
18996
18997 2009-08-11  Bruno Haible  <bruno@clisp.org>
18998
18999         * modules/dup2-tests (Depends-on): Remove close.
19000
19001         Undo 2009-07-19 commit.
19002         * modules/acl-tests (Depends-on): Remove close.
19003         * modules/binary-io-tests (Depends-on): Likewise.
19004         * modules/closein-tests (Depends-on): Likewise.
19005         * modules/flock-tests (Depends-on): Likewise.
19006         * modules/fsync-tests (Depends-on): Likewise.
19007         * modules/lseek-tests (Depends-on): Likewise.
19008         * modules/pipe-tests (Depends-on): Likewise.
19009         * modules/posix_spawn-tests (Depends-on): Likewise.
19010         * modules/posix_spawnp-tests (Depends-on): Likewise.
19011         * modules/stat-time-tests (Depends-on): Likewise.
19012         * modules/yesno-tests (Depends-on): Likewise.
19013
19014 2009-08-10  Bruno Haible  <bruno@clisp.org>
19015
19016         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
19017
19018 2009-08-10  Bruno Haible  <bruno@clisp.org>
19019
19020         Fix a gcc warning.
19021         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
19022
19023 2009-08-10  Bruno Haible  <bruno@clisp.org>
19024
19025         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
19026         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
19027         not only the first time.
19028         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
19029         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
19030         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
19031         is 1, not only the the first time.
19032
19033 2009-08-10  Bruno Haible  <bruno@clisp.org>
19034
19035         Make it possible to use module 'gethostname' without module 'close'.
19036         * lib/unistd.in.h (close): Evoke a link error only if
19037         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
19038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19039         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19040         * modules/unistd (Makefile.am): Substitute
19041         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19042         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
19043         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
19044         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19045         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19046         * modules/sys_ioctl (Makefile.am): Substitute
19047         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19048         * modules/socket (configure.ac): On native Windows, set
19049         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
19050         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19051         Reported by Sam Steingold <sds@gnu.org>.
19052
19053 2009-08-10  Bruno Haible  <bruno@clisp.org>
19054
19055         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
19056         * modules/ioctl (configure.ac): Likewise.
19057
19058 2009-08-10  Bruno Haible  <bruno@clisp.org>
19059
19060         Avoid collision between gnulib wrapper and libintl wrapper.
19061         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
19062         already defined in intl/printf.c.
19063         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
19064         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
19065
19066 2009-08-09  Bruno Haible  <bruno@clisp.org>
19067
19068         Make <sys/select.h> really self-contained, also on Solaris 10.
19069         * lib/sys_select.in.h: Include <string.h>.
19070         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
19071         Solaris 10 problem.
19072         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
19073         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
19074         Reported by Jim Meyering.
19075
19076 2009-08-09  Bruno Haible  <bruno@clisp.org>
19077
19078         Avoid warnings from 'aclocal' that are due to a use of macro name
19079         AM_XGETTEXT_OPTION that is not defined in automake.
19080         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
19081         automake.
19082         * modules/error (configure.ac): Likewise.
19083         * modules/propername (configure.ac): Likewise.
19084         * modules/vasprintf (configure.ac): Likewise.
19085         * modules/verror (configure.ac): Likewise.
19086         * modules/xprintf (configure.ac): Likewise.
19087         * modules/xvasprintf (configure.ac): Likewise.
19088
19089 2009-08-08  Bruno Haible  <bruno@clisp.org>
19090
19091         Avoid compilation error in C++ mode.
19092         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
19093         Reported by Sam Steingold <sds@gnu.org>.
19094
19095 2009-08-08  Bruno Haible  <bruno@clisp.org>
19096
19097         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
19098         for the various Unix platforms.
19099         * doc/posix-headers/limits.texi: Update platforms list regarding
19100         HOST_NAME_MAX.
19101         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19102
19103 2009-08-07  Jim Meyering  <meyering@redhat.com>
19104
19105         selinux-at: fix typo in a comment
19106         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
19107         Spotted by Paolo Bonzini.
19108
19109         selinux-at: remove redundant m4 code, add documentation
19110         * modules/selinux-at (configure.ac): Remove redundant code.
19111         LIB_SELINUX is already set via the dependent module, selinux-h.
19112         (Include): Add quotes around selinux-at.h.
19113         * lib/selinux-at.h: Add documentation.
19114         Reported by Bruno Haible in
19115         http://marc.info/?l=gnulib-bug&m=124958988300749
19116
19117 2009-08-07  Bruno Haible  <bruno@clisp.org>
19118
19119         Avoid link error on MacOS X 10.3 and 10.4.
19120         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
19121         on non-ELF systems.
19122         * lib/argp-pv.c (argp_program_version): Likewise.
19123         Reported by Simon Josefsson.
19124
19125 2009-08-07  Simon Josefsson  <simon@josefsson.org>
19126
19127         * tests/test-version-etc.sh: Use $EXEEXT.
19128
19129 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
19130
19131         update-copyright: update documentation to point to maint.mk
19132         * build-aux/update-copyright: Here.
19133
19134 2009-08-06  Jim Meyering  <meyering@redhat.com>
19135
19136         maint.mk: support update-copyright-local
19137         * top/maint.mk (update-copyright-local): Define place-holder.
19138         (update-copyright): Depend on $(update-copyright-local).
19139
19140 2009-08-06  Jim Meyering  <meyering@redhat.com>
19141
19142         selinux-at: new module
19143         Initially written for coreutils, this module will soon be
19144         used by findutils, too.
19145         * MODULES.html.sh [Misc]: Add selinux-at.
19146         * lib/selinux-at.h: New file, from coreutils.
19147         * lib/selinux-at.c: Likewise.
19148         * modules/selinux-at: Likewise.
19149         (License): Change from LGPL to GPL, since it depends
19150         on the GPL'd openat module.
19151
19152         doc: update README
19153         * README: Remove references to cogito.
19154         Remove cvs-repo-updating instructions from 2007.
19155         Don't imply that CVS is better if you have limited disk space.
19156
19157 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19158
19159         update-copyright: support C-style comments
19160         * build-aux/update-copyright: Implement and document.
19161         * tests/test-update-copyright.sh: Test.
19162
19163 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19164
19165         update-copyright: support omitted "(C)"
19166         * build-aux/update-copyright: Implement and document.  Also,
19167         allow variable whitespace before "(C)".
19168         * tests/test-update-copyright.sh: Test.
19169
19170 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19171
19172         update-copyright: don't trip on non-FSF copyright statements
19173         * build-aux/update-copyright: Fix so that the first correctly
19174         formatted FSF copyright statement is recognized no matter what
19175         appears before it.  Update documentation.
19176         * tests/test-update-copyright.sh: Test that.
19177
19178 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19179
19180         update-copyright: clean up code a little
19181         * build-aux/update-copyright: Append "_re" to the name of any
19182         variable holding a regular expression.
19183         Replace "old" and "new" with "stmt" in variable names.
19184         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
19185         handled correctly.
19186         Format code more consistently.
19187
19188 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19189
19190         update-copyright-tests: improve portability
19191         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
19192         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
19193
19194 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
19195
19196         update-copyright: support @copyright{} and &copy;
19197         * build-aux/update-copyright: Implement and document.
19198         * tests/test-update-copyright.sh: Test.
19199
19200 2009-08-04  Jim Meyering  <meyering@redhat.com>
19201
19202         update-copyright-tests: correctly test EOL=\r\n handling
19203         * tests/test-update-copyright.sh: Put \r at the end of some lines
19204         for the dos-eol tests.  Based on a patch by Joel E. Denny.
19205
19206         maint.mk: make update-copyright exclusion list more configurable
19207         * top/maint.mk (update-copyright): Default to excluding COPYING,
19208         but allow an override, in case someone does want to update that file.
19209
19210         maint.mk: don't update copyright date in COPYING
19211         * top/maint.mk (update-copyright): Exclude COPYING.
19212
19213         maint.mk: add a copyright-updating rule
19214         * top/maint.mk (update-copyright): New rule.
19215         Derived from coreutils/Makefile.am.
19216
19217         update-copyright: rename some variables
19218         * build-aux/update-copyright: Rename a few variables for clarity.
19219         Tweak syntax.  List Joel E. Denny as coauthor.
19220
19221 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
19222
19223         update-copyright: fix bug for 2-digit last year and add tests
19224         * build-aux/update-copyright: Fix bug.
19225         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
19226         specified.
19227         * modules/update-copyright-tests: New
19228         * tests/test-update-copyright.sh: New.
19229
19230 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19231
19232         update-copyright: handle leading tabs in line prefix
19233         * build-aux/update-copyright: Count leading tabs as 8 spaces
19234         when computing margin.  This helps with the formatting of
19235         ChangeLogs, for example.
19236         Fix documentation a little.
19237
19238 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19239
19240         update-copyright: support EOL=\r\n
19241         * build-aux/update-copyright: Implement that.
19242
19243 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19244
19245         update-copyright: automatically format copyright statements
19246         * build-aux/update-copyright: Implement that.
19247         Also, be a little more predictable and safer by always failing
19248         when the full copyright format is not perfectly recognized as an
19249         unbroken whole.  Discussed at
19250         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
19251         Rewrite documentation.
19252
19253 2009-08-03  Bruno Haible  <bruno@clisp.org>
19254
19255         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
19256
19257 2009-08-02  Bruno Haible  <bruno@clisp.org>
19258
19259         Tests for module 'uname'.
19260         * modules/uname-tests: New file.
19261         * tests/test-uname.c: New file.
19262
19263         New module 'uname'.
19264         * lib/uname.c: New file.
19265         * m4/uname.m4: New file.
19266         * modules/uname: New file.
19267         * doc/posix-functions/uname.texi: Mention the new module.
19268
19269 2009-08-02  Bruno Haible  <bruno@clisp.org>
19270
19271         Tests for module 'sys_utsname'.
19272         * modules/sys_utsname-tests: New file.
19273         * tests/test-sys_utsname.c: New file.
19274
19275         New module 'sys_utsname'.
19276         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
19277         * m4/sys_utsname_h.m4: New file.
19278         * modules/sys_utsname: New file.
19279         * doc/posix-headers/sys_utsname.texi: Mention the new module.
19280
19281 2009-08-02  Bruno Haible  <bruno@clisp.org>
19282
19283         Implicitly initialize the sockets library.
19284         * lib/gethostname.c: Include sockets.h.
19285         (rpl_gethostname): Invoke gl_sockets_startup.
19286         * lib/socket.c: Include sockets.h.
19287         (rpl_socket): Invoke gl_sockets_startup.
19288         * modules/gethostname (Depends-on): Add sockets.
19289         * modules/socket (Depends-on): Likewise.
19290         * tests/test-poll.c: Don't include sockets.h.
19291         (main): Don't invoke gl_sockets_startup.
19292         * tests/test-select.c: Don't include sockets.h.
19293         (main): Don't invoke gl_sockets_startup.
19294
19295 2009-08-02  Bruno Haible  <bruno@clisp.org>
19296
19297         Allow multiple calls to gl_sockets_startup.
19298         * lib/sockets.c (initialized_sockets_version): New variable.
19299         (gl_sockets_startup): Do nothing if already called for this or a higher
19300         version.
19301         (gl_sockets_cleanup): Reset initialized_sockets_version.
19302
19303 2009-08-03  Simon Josefsson  <simon@josefsson.org>
19304
19305         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
19306         different project/version.
19307
19308 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
19309             Bruno Haible  <bruno@clisp.org>
19310
19311         Tests for module 'pipe-filter-gi'.
19312         * modules/pipe-filter-gi-tests: New file.
19313         * tests/test-pipe-filter-gi1.sh: New file.
19314         * tests/test-pipe-filter-gi1.c: New file.
19315         * tests/test-pipe-filter-gi2.sh: New file.
19316         * tests/test-pipe-filter-gi2-main.c: New file.
19317         * tests/test-pipe-filter-gi2-child.c: New file.
19318
19319         New module 'pipe-filter-gi'.
19320         * lib/pipe-filter-gi.c: New file.
19321         * modules/pipe-filter-gi: New file.
19322
19323 2009-08-02  Bruno Haible  <bruno@clisp.org>
19324             Paolo Bonzini  <bonzini@gnu.org>
19325
19326         Tests for module 'pipe-filter-ii'.
19327         * modules/pipe-filter-ii-tests: New file.
19328         * tests/test-pipe-filter-ii1.sh: New file.
19329         * tests/test-pipe-filter-ii1.c: New file.
19330         * tests/test-pipe-filter-ii2.sh: New file.
19331         * tests/test-pipe-filter-ii2-main.c: New file.
19332         * tests/test-pipe-filter-ii2-child.c: New file.
19333
19334         New module 'pipe-filter-ii'.
19335         * lib/pipe-filter.h: New file.
19336         * lib/pipe-filter-ii.c: New file.
19337         * lib/pipe-filter-aux.h: New file.
19338         * modules/pipe-filter-ii: New file.
19339
19340 2009-08-02  Simon Josefsson  <simon@josefsson.org>
19341
19342         * lib/gc-libgcrypt.c: Change copyright to FSF.
19343         * lib/gc-gnulib.c: Likewise.
19344
19345 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
19346
19347         * lib/gethostname.c: Include limits.h.
19348
19349 2009-08-02  Simon Josefsson  <simon@josefsson.org>
19350             Bruno Haible  <bruno@clisp.org>
19351
19352         Ensure HOST_NAME_MAX as part of the gethostname module.
19353         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
19354         define also HOST_NAME_MAX.
19355         * tests/test-gethostname.c: Include <limits.h>.
19356         (main): Check also HOST_NAME_MAX.
19357         * doc/posix-headers/limits.texi: Document the mingw problem.
19358
19359 2009-08-02  Bruno Haible  <bruno@clisp.org>
19360
19361         * lib/gethostname.c (gethostname): Fix handling of large len argument.
19362         Add comments.
19363
19364 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19365
19366         * lib/gethostname.c: Add Windows wrapper.
19367         * m4/gethostname.m4: Look for gethostname in -lws2_32.
19368         * modules/gethostname: Depend on sys_socket & errno, for also
19369         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
19370         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
19371
19372 2009-07-31  Jim Meyering  <meyering@redhat.com>
19373
19374         getloadavg: fix symbol name in comment
19375         * lib/getloadavg.c: Correct a typo I introduced when adding
19376         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
19377         Matt Kraai spotted the problem.
19378
19379 2009-07-29  Matt Kraai  <mkraai@beckman.com>
19380
19381         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
19382         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
19383         code also if ! defined N_NAME_POINTER.
19384         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
19385         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
19386         but the n_name member is a 12-byte array.
19387
19388 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
19389
19390         update-copyright: generalize comment handling
19391         * build-aux/update-copyright: Handle copyright statements
19392         within more comment styles.
19393         Document usage.
19394         Report any file with an external copyright holder or parse failure.
19395
19396 2009-07-29  Jim Meyering  <meyering@redhat.com>
19397
19398         mktime: correct setting of REPLACE_MKTIME
19399         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
19400
19401         update-copyright: new module
19402         * modules/update-copyright: New file.
19403         * build-aux/update-copyright: New file.
19404         * MODULES.html.sh (maint+release support): Add update-copyright.
19405
19406 2009-07-27  Bruno Haible  <bruno@clisp.org>
19407
19408         Fix compilation error when <ctime> is used and mktime is replaced.
19409         * lib/time.in.h (mktime): New declaration.
19410         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
19411         REPLACE_MKTIME instead of defining mktime in config.h.
19412         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
19413         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
19414         Reported by Ross McFarland <rwmcfa1@neces.com>.
19415
19416 2009-07-27  Bruno Haible  <bruno@clisp.org>
19417
19418         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
19419         Reported by Matt Kraai <mkraai@beckman.com>.
19420
19421 2009-07-25  Jim Meyering  <meyering@redhat.com>
19422
19423         maint.mk: avoid warnings about missing files
19424         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
19425         diagnostic when .prev-version does not exist.
19426         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
19427         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
19428         nonexistent cfg.mk.
19429         Suggestions from Simon Josefsson.
19430
19431 2009-07-25  Bruno Haible  <bruno@clisp.org>
19432
19433         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
19434         defined as macros. Needed on QNX 6.4.1.
19435         Reported by Matt Kraai <mkraai@beckman.com>.
19436
19437 2009-07-23  Jim Meyering  <meyering@redhat.com>
19438
19439         maint.mk: invoke "make dist" with a working value of XZ_OPT
19440         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
19441
19442 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
19443
19444         Make fseeko.c compile on QNX.
19445         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
19446
19447 2009-07-22  Peter Simons  <simons@cryp.to>
19448
19449         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
19450         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
19451         * lib/md4.h: Likewise.
19452         * lib/md5.h: Likewise.
19453         * lib/sha1.h: Likewise.
19454         * lib/sha256.h: Likewise.
19455         * lib/sha512.h: Likewise.
19456
19457         tests-sha1: don't assign literal string to 'char *' variable
19458         * tests/test-sha1.c (main): Declare locals with "const" to match
19459         attributes of the right hand side.
19460
19461 2009-07-21  Eric Blake  <ebb9@byu.net>
19462
19463         dup2: fix more mingw problems
19464         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
19465         fd to itself.
19466         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19467         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
19468         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
19469         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
19470         care of mingw bugs.
19471
19472 2009-07-21  Jim Meyering  <meyering@redhat.com>
19473
19474         vc-list-files: avoid failure when /bin/sh is dash
19475         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
19476         On some Debian based systems, /bin/sh is a symlink to dash, and running
19477         this command would omit the "/" following each 'tests' prefix:
19478           dash -x build-aux/vc-list-files -C . tests
19479         That is because bash and dash work differently:
19480           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
19481           bash ok
19482           dash odd
19483
19484 2009-07-21  Eric Blake  <ebb9@byu.net>
19485
19486         dup2-tests: test previous patch
19487         * modules/dup2-tests: New file.
19488         * tests/test-dup2.c: Likewise.
19489         * tests/test-open.c (main): Avoid unspecified behavior.
19490         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
19491         test.
19492
19493         dup2: work around mingw and cygwin 1.5 bug
19494         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
19495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19496         * modules/unistd (Makefile.am): Substitute it.
19497         * lib/unistd.in.h (dup2): Declare the replacement.
19498         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
19499         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
19500         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
19501         * modules/execute (Depends-on): Add dup2.
19502         * modules/fseterr (Depends-on): Likewise.
19503         * modules/pipe (Depends-on): Likewise.
19504         * modules/posix_spawn-internal (Depends-on): Likewise.
19505
19506 2009-07-21  Bruno Haible  <bruno@clisp.org>
19507
19508         * modules/.gitattributes: New file.
19509
19510 2009-07-20  Bruno Haible  <bruno@clisp.org>
19511
19512         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
19513         (main): Use it.
19514
19515 2009-07-20  Eric Blake  <ebb9@byu.net>
19516
19517         test-pipe: make a bit more robust.
19518         * tests/test-pipe.c (myerr): Allow error messages regardless of
19519         what we do to stderr.
19520         (test_pipe): Rearrange to avoid deadlock.
19521         (child_main): Try a larger read, to ensure we avoided deadlock.
19522         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
19523         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
19524         if misused.
19525
19526 2009-07-19  Jim Meyering  <meyering@redhat.com>
19527
19528         fts: avoid false-positive cycle-detection
19529         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
19530         for each new command line argument.
19531
19532 2009-07-19  Bruno Haible  <bruno@clisp.org>
19533
19534         Fix build error on mingw with the modules sys_select and unistd.
19535         * modules/acl-tests (Depends-on): Add close.
19536         * modules/binary-io-tests (Depends-on): Likewise.
19537         * modules/closein-tests (Depends-on): Likewise.
19538         * modules/flock-tests (Depends-on): Likewise.
19539         * modules/fsync-tests (Depends-on): Likewise.
19540         * modules/lseek-tests (Depends-on): Likewise.
19541         * modules/pipe-tests (Depends-on): Likewise.
19542         * modules/posix_spawn-tests (Depends-on): Likewise.
19543         * modules/posix_spawnp-tests (Depends-on): Likewise.
19544         * modules/stat-time-tests (Depends-on): Likewise.
19545         * modules/yesno-tests (Depends-on): Likewise.
19546
19547 2009-07-19  Bruno Haible  <bruno@clisp.org>
19548
19549         Unify conditionals.
19550         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
19551         macros, not at the compiler macros.
19552         * lib/pipe.c: Likewise.
19553         * lib/execute.c: Likewise.
19554         * lib/spawni.c: Likewise.
19555
19556 2009-07-19  Bruno Haible  <bruno@clisp.org>
19557
19558         Fix handling of closed stdin/stdout/stderr on mingw.
19559         * lib/w32spawn.h: Include unistd.h.
19560         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
19561         file descriptor with O_NOINHERIT flag.
19562         (fd_safer_noinherit): New function, based on fd-safer.c.
19563         (dup_safer_noinherit): New function, based on dup-safer.c.
19564         (undup_safer_noinherit): New function.
19565         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
19566         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
19567         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
19568         instead of fd_safer.
19569         * tests/test-pipe.c: Include <windows.h>.
19570         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
19571
19572         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
19573         from main.
19574         (test_pipe): Pass an extra argument for disambiguation.
19575         (main): Invoke parent_main or child_main.
19576
19577         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
19578         consistently.
19579
19580 2009-07-18  Eric Blake  <ebb9@byu.net>
19581
19582         test-pipe: fix mingw build
19583         * tests/test-pipe.c (main): Avoid fcntl on mingw.
19584
19585 2009-07-18  Bruno Haible  <bruno@clisp.org>
19586
19587         * modules/pipe-tests (Makefile.am): Fix typo.
19588
19589 2009-07-18  Eric Blake  <ebb9@byu.net>
19590
19591         error: fix mingw build
19592         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
19593         Reported by Bruno Haible.
19594
19595         error: avoid undefined use of stdout
19596         * lib/error.c (error, error_at_line): Check that fd 1 is open
19597         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
19598         is handling faults and the close_stdout module wants to report the
19599         detection of closed stdout as an error.
19600
19601 2009-07-17  Eric Blake  <ebb9@byu.net>
19602
19603         pipe: be robust in face of closed fds
19604         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
19605         should cause child to misbehave.
19606         * modules/pipe-tests: New module.
19607         * tests/test-pipe.c: New file.
19608         * tests/test-pipe.sh: New file.
19609         Reported by Akim Demaille.
19610
19611 2009-07-14  Bruno Haible  <bruno@clisp.org>
19612
19613         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
19614         Reported by anonymous kc.
19615
19616 2009-07-07  Jim Meyering  <meyering@redhat.com>
19617
19618         maint.mk: don't look for translatable strings in *.m4 or *.mk
19619         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
19620         when searching for translatable strings.
19621
19622 2009-07-05  Jim Meyering  <meyering@redhat.com>
19623
19624         remove superfluous parentheses in STREQ definition
19625         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
19626         * lib/getugroups.c (STREQ): Likewise.
19627         * lib/fnmatch.c (STREQ): Likewise.
19628         Spotted by Bruno Haible.
19629
19630 2009-07-04  Jim Meyering  <meyering@redhat.com>
19631
19632         argv-iter: new module
19633         * MODULES.html.sh: Add argv-iter.
19634         * lib/argv-iter.c, lib/argv-iter.h: New files.
19635         * modules/argv-iter: New file.
19636         * modules/argv-iter-tests: New file.
19637         * tests/test-argv-iter.c: Test it.
19638
19639 2009-07-04  Bruno Haible  <bruno@clisp.org>
19640
19641         Fix assertion.
19642         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
19643         contains more exact copies of a given entry than file2, leave the extra
19644         copies unpaired rather than aborting.
19645         Reported by Eric Blake.
19646
19647 2009-07-02  Bruno Haible  <bruno@clisp.org>
19648
19649         Speedup git-merge-changelog for git cherry-pick.
19650         * lib/git-merge-changelog.c (struct entries_mapping): New type.
19651         (entries_mapping_get): New function, extracted from compute_mapping.
19652         (entries_mapping_reverse_get): New function.
19653         (compute_mapping): Add a 'full' argument. Return the result in a
19654         'struct entries_mapping'.
19655         (main): Update. Access the mappings through entries_mapping_get.
19656         Reported by Eric Blake.
19657
19658 2009-07-02  Bruno Haible  <bruno@clisp.org>
19659
19660         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
19661         best_i.
19662
19663 2009-07-02  Bruno Haible  <bruno@clisp.org>
19664
19665         Speed up approximate search for matching ChangeLog entries.
19666         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
19667         argument. Call fstrcmp_bounded instead of fstrcmp.
19668         (compute_mapping, try_split_merged_entry, main): Update callers.
19669
19670 2009-07-02  Bruno Haible  <bruno@clisp.org>
19671
19672         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
19673
19674 2009-06-30  Bruno Haible  <bruno@clisp.org>
19675
19676         Reduce the number of uc_is_cased calls.
19677         * lib/unicase.h (casing_suffix_context_t): Add
19678         'first_char_except_ignorable' field.
19679         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
19680         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
19681         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
19682         Update initializer.
19683         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
19684         case-ignorable characters.
19685         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
19686         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
19687         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
19688         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
19689         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
19690
19691 2009-06-30  Bruno Haible  <bruno@clisp.org>
19692
19693         Tests for module 'unicase/ignorable'.
19694         * modules/unicase/ignorable-tests: New file.
19695         * tests/unicase/test-ignorable.c: New file, generated by
19696         gen-uni-tables.
19697
19698         Tests for module 'unicase/cased'.
19699         * modules/unicase/cased-tests: New file.
19700         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
19701         * tests/unicase/test-predicate-part1.h: New file, derived from
19702         tests/unictype/test-predicate-part1.h.
19703         * tests/unicase/test-predicate-part2.h: New file, same as
19704         tests/unictype/test-predicate-part2.h.
19705
19706         Fix evaluation of "Before C" condition of FINAL_SIGMA.
19707         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
19708         (output_casing_properties): New function.
19709         (main): Call it.
19710         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
19711         * lib/unicase/cased.c: Include unictype/bitmap.h.
19712         (uc_is_cased): Define through a bitmap lookup.
19713         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
19714         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
19715         (uc_is_case_ignorable): Define through a bitmap lookup.
19716         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
19717         lib/unictype/bitmap.h.
19718         (Depends-on): Add inline. Clean up.
19719         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
19720         lib/unictype/bitmap.h.
19721         (Depends-on): Add inline. Clean up.
19722         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
19723         recognition.
19724         * tests/unicase/test-u16-tolower.c (main): Likewise.
19725         * tests/unicase/test-u32-tolower.c (main): Likewise.
19726
19727 2009-06-30  Bruno Haible  <bruno@clisp.org>
19728
19729         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
19730         * lib/unicase/u16-casemap.c: Likewise.
19731         * lib/unicase/u32-casemap.c: Likewise.
19732
19733 2009-06-29  Bruno Haible  <bruno@clisp.org>
19734
19735         Define u32_casefold as a wrapper around u32_ct_casefold.
19736         * lib/unicase/u32-casefold.c: Update.
19737         * modules/unicase/u32-casefold (Depends-on): Add
19738         unicase/u32-ct-casefold, unicase/empty-prefix-context,
19739         unicase/empty-suffix-context. Clean up.
19740
19741         Define u16_casefold as a wrapper around u16_ct_casefold.
19742         * lib/unicase/u16-casefold.c: Update.
19743         * modules/unicase/u16-casefold (Depends-on): Add
19744         unicase/u16-ct-casefold, unicase/empty-prefix-context,
19745         unicase/empty-suffix-context. Clean up.
19746
19747         Define u8_casefold as a wrapper around u8_ct_casefold.
19748         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
19749         * lib/unicase/u8-casefold.c: Update.
19750         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
19751         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19752
19753         Define u32_totitle as a wrapper around u32_ct_totitle.
19754         * lib/unicase/u32-totitle.c: Update.
19755         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
19756         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19757
19758         Define u16_totitle as a wrapper around u16_ct_totitle.
19759         * lib/unicase/u16-totitle.c: Update.
19760         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
19761         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19762
19763         Define u8_totitle as a wrapper around u8_ct_totitle.
19764         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
19765         functions.
19766         (FUNC): Delegate to U_CT_TOTITLE.
19767         * lib/unicase/u8-totitle.c: Update.
19768         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
19769         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19770
19771         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
19772         invocation.
19773         * modules/unicase/u32-tolower (Depends-on): Add
19774         unicase/empty-prefix-context, unicase/empty-suffix-context.
19775
19776         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
19777         invocation.
19778         * modules/unicase/u16-tolower (Depends-on): Add
19779         unicase/empty-prefix-context, unicase/empty-suffix-context.
19780
19781         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
19782         * modules/unicase/u8-tolower (Depends-on): Add
19783         unicase/empty-prefix-context, unicase/empty-suffix-context.
19784
19785         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
19786         invocation.
19787         * modules/unicase/u32-toupper (Depends-on): Add
19788         unicase/empty-prefix-context, unicase/empty-suffix-context.
19789
19790         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
19791         invocation.
19792         * modules/unicase/u16-toupper (Depends-on): Add
19793         unicase/empty-prefix-context, unicase/empty-suffix-context.
19794
19795         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
19796         * modules/unicase/u8-toupper (Depends-on): Add
19797         unicase/empty-prefix-context, unicase/empty-suffix-context.
19798
19799         New module 'unicase/u32-ct-casefold'.
19800         * lib/unicase/u32-ct-casefold.c: New file.
19801         * modules/unicase/u32-ct-casefold: New file.
19802
19803         New module 'unicase/u16-ct-casefold'.
19804         * lib/unicase/u16-ct-casefold.c: New file.
19805         * modules/unicase/u16-ct-casefold: New file.
19806
19807         New module 'unicase/u8-ct-casefold'.
19808         * lib/unicase/u8-ct-casefold.c: New file.
19809         * lib/unicase/u-ct-casefold.h: New file, derived from
19810         lib/unicase/u-casefold.h.
19811         * modules/unicase/u8-ct-casefold: New file.
19812
19813         New module 'unicase/u32-ct-totitle'.
19814         * lib/unicase/u32-ct-totitle.c: New file.
19815         * modules/unicase/u32-ct-totitle: New file.
19816
19817         New module 'unicase/u16-ct-totitle'.
19818         * lib/unicase/u16-ct-totitle.c: New file.
19819         * modules/unicase/u16-ct-totitle: New file.
19820
19821         New module 'unicase/u8-ct-totitle'.
19822         * lib/unicase/u8-ct-totitle.c: New file.
19823         * lib/unicase/u-ct-totitle.h: New file, derived from
19824         lib/unicase/u-totitle.h.
19825         * modules/unicase/u8-ct-totitle: New file.
19826
19827         New module 'unicase/u32-ct-tolower'.
19828         * lib/unicase/u32-ct-tolower.c: New file.
19829         * modules/unicase/u32-ct-tolower: New file.
19830
19831         New module 'unicase/u16-ct-tolower'.
19832         * lib/unicase/u16-ct-tolower.c: New file.
19833         * modules/unicase/u16-ct-tolower: New file.
19834
19835         New module 'unicase/u8-ct-tolower'.
19836         * lib/unicase/u8-ct-tolower.c: New file.
19837         * modules/unicase/u8-ct-tolower: New file.
19838
19839         New module 'unicase/u32-ct-toupper'.
19840         * lib/unicase/u32-ct-toupper.c: New file.
19841         * modules/unicase/u32-ct-toupper: New file.
19842
19843         New module 'unicase/u16-ct-toupper'.
19844         * lib/unicase/u16-ct-toupper.c: New file.
19845         * modules/unicase/u16-ct-toupper: New file.
19846
19847         New module 'unicase/u8-ct-toupper'.
19848         * lib/unicase/u8-ct-toupper.c: New file.
19849         * modules/unicase/u8-ct-toupper: New file.
19850
19851         Add context arguments to u*_casemap functions.
19852         * lib/unicase/unicasemap.h: Include unicase.h.
19853         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
19854         suffix_context arguments.
19855         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
19856         functions.
19857         (FUNC): Add prefix_context and suffix_context arguments. Use
19858         uc_is_cased and uc_is_case_ignorable.
19859         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
19860         * lib/unicase/u16-casemap.c: Likewise.
19861         * lib/unicase/u32-casemap.c: Likewise.
19862         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
19863         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19864         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
19865         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19866         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
19867         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19868
19869         New module 'unicase/u32-suffix-context'.
19870         * lib/unicase/u32-suffix-context.c: New file.
19871         * modules/unicase/u32-suffix-context: New file.
19872
19873         New module 'unicase/u16-suffix-context'.
19874         * lib/unicase/u16-suffix-context.c: New file.
19875         * modules/unicase/u16-suffix-context: New file.
19876
19877         New module 'unicase/u8-suffix-context'.
19878         * lib/unicase/u8-suffix-context.c: New file.
19879         * lib/unicase/u-suffix-context.h: New file.
19880         * modules/unicase/u8-suffix-context: New file.
19881
19882         New module 'unicase/empty-suffix-context'.
19883         * lib/unicase/empty-suffix-context.c: New file.
19884         * modules/unicase/empty-suffix-context: New file.
19885
19886         New module 'unicase/u32-prefix-context'.
19887         * lib/unicase/u32-prefix-context.c: New file.
19888         * modules/unicase/u32-prefix-context: New file.
19889
19890         New module 'unicase/u16-prefix-context'.
19891         * lib/unicase/u16-prefix-context.c: New file.
19892         * modules/unicase/u16-prefix-context: New file.
19893
19894         New module 'unicase/u8-prefix-context'.
19895         * lib/unicase/u8-prefix-context.c: New file.
19896         * lib/unicase/u-prefix-context.h: New file.
19897         * lib/unicase/context.h: New file.
19898         * modules/unicase/u8-prefix-context: New file.
19899
19900         New module 'unicase/empty-prefix-context'.
19901         * lib/unicase/empty-prefix-context.c: New file.
19902         * modules/unicase/empty-prefix-context: New file.
19903
19904         New module 'unicase/ignorable'.
19905         * lib/unicase/ignorable.c: New file.
19906         * modules/unicase/ignorable: New file.
19907
19908         New module 'unicase/cased'.
19909         * lib/unicase/caseprop.h: New file.
19910         * lib/unicase/cased.c: New file.
19911         * modules/unicase/cased: New file.
19912
19913         New functions for case mapping of substrings.
19914         * lib/unicase.h (casing_prefix_context_t): New type.
19915         (unicase_empty_prefix_context): New variable.
19916         (u8_casing_prefix_context, u16_casing_prefix_context,
19917         u32_casing_prefix_context, u8_casing_prefixes_context,
19918         u16_casing_prefixes_context, u32_casing_prefixes_context): New
19919         declarations.
19920         (casing_suffix_context_t): New type.
19921         (unicase_empty_suffix_context): New variable.
19922         (u8_casing_suffix_context, u16_casing_suffix_context,
19923         u32_casing_suffix_context, u8_casing_suffixes_context,
19924         u16_casing_suffixes_context, u32_casing_suffixes_context,
19925         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
19926         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
19927         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
19928         declarations.
19929
19930 2009-06-28  Jim Meyering  <meyering@redhat.com>
19931
19932         boostrap: indent only with spaces
19933         * build-aux/bootstrap: Indent only with spaces, never TABs.
19934
19935         bootstrap: split long lines
19936         * build-aux/bootstrap: Keep line length < 80.
19937
19938         bootstrap: sync from coreutils
19939         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
19940         just as autoreconf does.  Verify a list of prerequisite
19941         package-name,version-number pairs if defined in bootstrap.conf.
19942         Refer to README-prereq, if prerequisites are not satisfied.
19943
19944 2009-06-27  Eric Blake  <ebb9@byu.net>
19945
19946         tests: add test for bogus NULL definition
19947         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
19948         * tests/test-stdlib.c: Likewise.
19949         * tests/test-string.c: Likewise.
19950         * tests/test-locale.c: Likewise.
19951         * tests/test-unistd.c: Likewise.
19952         * modules/stdio-tests (Depends-on): Add verify.
19953         * modules/stdlib-tests (Depends-on): Likewise.
19954         * modules/string-tests (Depends-on): Likewise.
19955         * modules/locale-tests (Depends-on): Likewise.
19956         * modules/unistd-tests (Depends-on): Likewise.
19957
19958 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
19959
19960         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
19961         self-explaining comment.
19962         * m4/selinux-selinux-h: Update serial.
19963         (gl_LIBSELINUX): New macro, adding a warning for missing development
19964         packages to code extracted from...
19965         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
19966         Add warning for missing development packages here, too.
19967
19968 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
19969
19970         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
19971
19972 2009-06-25  Eric Blake  <ebb9@byu.net>
19973
19974         version-etc: fix regression
19975         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
19976         gcc.
19977         (version_etc): Use it, to catch bugs with trailing NULL.
19978         * lib/version-etc.c (version_etc_arn): Delete unused argument.
19979         (version_etc_va): Fix logic bug.
19980         * modules/version-etc-tests: Add test.
19981         * tests/test-version-etc.c: New file.
19982         * tests/test-version-etc.sh: Likewise.
19983
19984 2009-06-25  Sam Steingold  <sds@gnu.org>
19985
19986         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
19987         mbtowc declaration.
19988
19989 2009-06-25  Eric Blake  <ebb9@byu.net>
19990
19991         fpurge: migrate into <stdio.h>
19992         * lib/fpurge.h: Delete...
19993         * lib/stdio.in.h (fpurge): ...and declare here, instead.
19994         * lib/fpurge.c (fpurge): Change declaring header.
19995         * modules/fpurge (Files): Drop deleted file.
19996         (Depends-on): Add stdio.
19997         (configure.ac): Set witness.
19998         * modules/stdio (Makefile.am): Support fpurge macros.
19999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20000         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
20001         * lib/fflush.c: Update client.
20002         * tests/test-fpurge.c: Likewise.
20003         * NEWS: Mention the change.
20004
20005 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20006
20007         * lib/argp-version-etc.c (program_authors): Add const
20008         qualifier.
20009         * lib/version-etc.c: Fix typos in the comments.
20010         * modules/argp-version-etc: Depends on version-etc.
20011
20012 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20013
20014         argp-version-etc: new module.
20015
20016         * lib/argp-version-etc.c: New file.
20017         * lib/argp-version-etc.h: New file.
20018         * modules/argp-version-etc: New file.
20019         * modules/argp-version-etc-tests: New file.
20020         * tests/test-argp-version-etc.c: New test.
20021         * tests/test-argp-version-etc-1.sh: New test.
20022
20023 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20024
20025         Provide additional interfaces and documentation for version-etc
20026         module.
20027
20028         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
20029         interfaces.
20030         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
20031         prototypes.
20032
20033 2009-06-24  Bruno Haible  <bruno@clisp.org>
20034
20035         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
20036         HAVE_LIB${NAME} macro.
20037         Reported by Sam Steingold <sds@gnu.org>.
20038
20039 2009-06-23  Simon Josefsson  <simon@josefsson.org>
20040
20041         * modules/hash-tests (test_hash_LDADD): Link to libintl when
20042         needed.
20043
20044 2009-06-21  Bruno Haible  <bruno@clisp.org>
20045
20046         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
20047         work.
20048         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
20049         together with LIB${NAME}, LTLIB${NAME}.
20050         Reported by Sam Steingold <sds@gnu.org>.
20051
20052 2009-06-20  Jim Meyering  <meyering@redhat.com>
20053
20054         tests: make sc_require_test_exit_idiom more generic
20055         * top/maint.mk (Exit_witness_file): New overridable variable.
20056         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
20057         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
20058
20059 2009-06-19  Jim Meyering  <meyering@redhat.com>
20060
20061         hash: reverse order of src/dst parameters in an internal interface
20062         * lib/hash.c (transfer_entries): Reverse order of parameters to
20063         put DST before SRC.  Adjust callers.
20064
20065         tests: test-hash: avoid wholesale duplication
20066         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
20067         Instead, use a loop and add a single conditional.
20068
20069         tests: test-hash: allow seed selection via a command line argument
20070         * tests/test-hash.c (get_seed): New function.
20071         (main): Use it.
20072
20073 2009-06-19  Eric Blake  <ebb9@byu.net>
20074
20075         hash: avoid memory leak on allocation failure
20076         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
20077         failure.  Factor repeated algorithm...
20078         (transfer_entries): ...into new helper routine.
20079         (hash_delete): React to hash_rehash return value.
20080
20081         hash: reduce memory pressure in hash_rehash no-op case
20082         * lib/hash.c (next_prime): Avoid overflow.
20083         (hash_initialize): Factor bucket size computation...
20084         (compute_bucket_size): ...into new helper function.
20085         (hash_rehash): Use new function and open coding to reduce memory
20086         pressure, and avoid a memory leak in USE_OBSTACK code.
20087         Reported by Jim Meyering.
20088
20089 2009-06-18  Eric Blake  <ebb9@byu.net>
20090
20091         hash: make rotation more obvious
20092         * modules/hash (Depends-on): Add bitrotate and stdint.
20093         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
20094         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
20095         (SIZE_MAX): Rely on headers for definition.
20096         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
20097         (raw_hasher): Use rotr_sz.
20098         Suggested by Jim Meyering.
20099
20100         hash: fix memory leak in last patch
20101         * lib/hash.c (hash_rehash): Avoid memory leak.
20102
20103         hash: avoid no-op rehashing
20104         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
20105
20106         hash: provide default callback functions
20107         * lib/hash.c (raw_hasher, raw_comparator): New functions.
20108         (hash_initialize): Use them as defaults.
20109         * tests/test-hash.c (main): Test this.
20110
20111         hash: minor optimization
20112         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
20113         when possible.
20114         (hash_initialize): Document this promise.
20115         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
20116         * tests/test-hash.c (hash_compare_strings): Test this.
20117
20118 2009-06-18  Bruno Haible  <bruno@clisp.org>
20119
20120         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
20121         going to be replaced anyway.
20122
20123 2009-06-18  Bruno Haible  <bruno@clisp.org>
20124
20125         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
20126         in one place.
20127         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
20128         be replaced anyway.
20129
20130 2009-06-18  Eric Blake  <ebb9@byu.net>
20131
20132         hash: check for resize before insertion
20133         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
20134         threshold before insertion, so that a pathological hash_rehash
20135         that fills every bucket can still trigger another rehash.
20136
20137 2009-06-18  Jim Meyering  <meyering@redhat.com>
20138
20139         hash-tests: add a loop around the small tests
20140         * tests/test-hash.c (main): Repeat small tests with selected
20141         small initial table sizes.
20142
20143 2009-06-17  Eric Blake  <ebb9@byu.net>
20144
20145         hash: minor cleanups
20146         * lib/hash.h (hash_entry): Make opaque, by moving...
20147         * lib/hash.c (hash_entry): ...here.
20148         (hash_insert): Clarify restrictions on what can be inserted.
20149         (hash_get_next): Clarify when it is safe to remove an element
20150         during traversal.
20151         (check_tuning): Skip verification when tuning is known safe.
20152         (hash_initialize): Clarify restrictions on tuning.
20153
20154 2009-06-17  Jim Meyering  <jim@meyering.net>
20155         and Eric Blake  <ebb9@byu.net>
20156
20157         hash-tests: new module
20158         * modules/hash-tests: New file.
20159         * tests/test-hash.c: New file.
20160
20161 2009-06-17  Eric Blake  <ebb9@byu.net>
20162
20163         strstr-simple: document new module
20164         * MODULES.html.sh: Document new module.
20165
20166         strstr, strcasestr: replace on platforms with broken memchr
20167         * modules/strstr: Split into...
20168         * modules/strstr-simple: ...new module that does not care about
20169         performance, but does care about glibc bug.
20170         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
20171         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
20172         if platform memchr is broken, per Debian bug 521737.
20173         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
20174         memchr.
20175         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
20176         * doc/posix-functions/strstr.texi (strstr): Document the fix.
20177         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20178         * modules/mountlist (Depends-on): Add strstr-simple.
20179         * modules/gen-uni-tables (Depends-on): Likewise.
20180         * modules/argz (Depends-on): Add strstr.
20181
20182 2009-06-17  Bruno Haible  <bruno@clisp.org>
20183
20184         * modules/posix_spawn-internal (Depends-on): Add errno.
20185
20186 2009-06-17  Bruno Haible  <bruno@clisp.org>
20187
20188         Define missing ESTALE on Interix 3.5.
20189         * lib/errno.in.h (ESTALE): Assign a value if missing.
20190         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
20191         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
20192         missing.
20193         * doc/posix-headers/errno.texi: Mention the Interix bug.
20194         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
20195
20196 2009-06-15  Eric Blake  <ebb9@byu.net>
20197
20198         memchr, memchr2: add valgrind exception
20199         * lib/memchr.valgrind: New file.
20200         * lib/memchr2.valgrind: New file.
20201         * modules/memchr (Files): Distribute valgrind file.
20202         * modules/memchr2 (Files): Likewise.
20203
20204         docs: memchr is no longer obsolete
20205         * MODULES.html.sh: Move memchr from obsolete to string.h section.
20206         * lib/string.in.h (memchr): Simplify logic.
20207
20208 2009-06-14  Jim Meyering  <meyering@redhat.com>
20209
20210         link-follow: fix the "checking..." message to not mention trailing slash
20211         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
20212         never considered trailing slashes.
20213
20214 2009-06-14  Bruno Haible  <bruno@clisp.org>
20215
20216         * m4/memchr.m4: Mention also the bug on IA-64.
20217         * doc/posix-functions/memchr.texi: Likewise.
20218
20219 2009-06-12  Eric Blake  <ebb9@byu.net>
20220
20221         memchr: detect broken x86_64 and alpha implementations
20222         * modules/memchr-tests (Depends-on): Move mmap detection...
20223         * modules/memchr (Depends-on): ...here.
20224         (configure.ac): Set indicator.
20225         * lib/string.in.h (memchr): Declare replacement.
20226         * modules/string (Makefile.am): Trigger replacement.
20227         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
20228         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
20229         bugs.
20230         * doc/posix-functions/memchr.texi (memchr): Document the bug.
20231         * modules/getpagesize (License): Relax license.
20232
20233 2009-06-11  Bruno Haible  <bruno@clisp.org>
20234
20235         * lib/idpriv.h: Add more references.
20236
20237 2009-06-08  Bruno Haible  <bruno@clisp.org>
20238
20239         Tests for module 'idpriv-droptemp'.
20240         * modules/idpriv-droptemp-tests: New file.
20241         * tests/test-idpriv-droptemp.sh: New file.
20242         * tests/test-idpriv-droptemp.su.sh: New file.
20243         * tests/test-idpriv-droptemp.c: New file.
20244
20245         New module 'idpriv-droptemp'.
20246         * lib/idpriv-droptemp.c: New file.
20247         * modules/idpriv-droptemp: New file.
20248
20249 2009-06-08  Bruno Haible  <bruno@clisp.org>
20250
20251         Tests for module 'idpriv-drop'.
20252         * modules/idpriv-drop-tests: New file.
20253         * tests/test-idpriv-drop.sh: New file.
20254         * tests/test-idpriv-drop.su.sh: New file.
20255         * tests/test-idpriv-drop.c: New file.
20256
20257         New module 'idpriv-drop'.
20258         * lib/idpriv.h: New file.
20259         * lib-idpriv-drop.c: New file.
20260         * m4/idpriv.m4: New file.
20261         * modules/idpriv-drop: New file.
20262
20263 2009-06-08  Bruno Haible  <bruno@clisp.org>
20264
20265         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
20266         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20267         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20268         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20269         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20270         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20271         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20272
20273 2009-06-08  Eric Blake  <ebb9@byu.net>
20274
20275         test-strstr: use memory fence, when possible
20276         * tests/test-strstr.c (main): Use memory fence, in order to be
20277         more likely to trigger Debian bug 521737.
20278         * modules/strstr-tests (Files): Pull in additional files.
20279
20280         memchr: no longer obsolete, for wider field testing
20281         * modules/memchr (Status, Notice): Delete, this module is no
20282         longer obsolete.
20283         * modules/vasnprintf (Depends-on): Add memchr.
20284
20285 2009-06-07  Jim Meyering  <meyering@redhat.com>
20286
20287         hash: declare some functions with the warn_unused_result attribute
20288         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
20289
20290 2009-06-07  Bruno Haible  <bruno@clisp.org>
20291
20292         * tests/test-alignof.c: Don't test int64_t if it does not exist.
20293         Reported by Eric Blake.
20294
20295 2009-06-06  Eric Blake  <ebb9@byu.net>
20296
20297         test-alignof: fix typo with long double
20298         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
20299         compiler error.
20300
20301 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
20302
20303         Escape non-texinfo { and }s.
20304         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
20305         markup error.
20306
20307 2009-06-04  Jim Meyering  <meyering@redhat.com>
20308
20309         gitlog-to-changelog: don't infloop on an empty commit log
20310         * build-aux/gitlog-to-changelog: Warn about an empty log message.
20311         Reported by Boris Petersen <transacid@centerim.org>.
20312
20313 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
20314
20315         version-etc: extend for packagers
20316         Add three new configure options, intended for packagers:
20317           --with-packager="packager name"
20318           --with-packager-version="packager-specific version"
20319           --with-packager-bug-reports="packager bug reporting"
20320         An example with coreutils:
20321           $ ./configure \
20322             --with-packager=Gentoo \
20323             --with-packager-bug-report=http://bugs.gentoo.org/ \
20324             --with-packager-version="patchset 1.6"
20325           $ ./src/ls --version | head -n2
20326           ls (GNU coreutils) 7.1-dirty
20327           Packaged by Gentoo (patchset 1.6)
20328         Note that the bug reporting info via --help doesn't show up because
20329         coreutils uses its own custom emit_bug_reporting_address() implementation
20330         in src/system.h.  If it didn't, it'd look like:
20331           $ ./src/ls --help | tail -n4
20332           Report bugs to <bug-coreutils@gnu.org>.
20333           Report Gentoo bugs to <http://bugs.gentoo.org/>.
20334           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
20335           General help using GNU software: <http://www.gnu.org/gethelp/>.
20336         * lib/version-etc.c: Print new information, if provided.
20337         * m4/version-etc.m4: New file.
20338         * modules/version-etc (Files): Add m4/version-etc.m4.
20339         (configure.ac): Add gl_VERSION_ETC.
20340
20341 2009-05-31  Bruno Haible  <bruno@clisp.org>
20342
20343         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
20344         and 'int64_t'.
20345         * modules/alignof-tests (Dependencies): Add stdint.
20346         Reported by Eric Blake.
20347
20348 2009-05-31  Bruno Haible  <bruno@clisp.org>
20349
20350         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
20351         restriction due to compiler bugs.
20352         Reported by Eric Blake.
20353
20354 2009-05-31  Simon Josefsson  <simon@josefsson.org>
20355             Bruno Haible  <bruno@clisp.org>
20356
20357         Fix test-alignof failure.
20358         * lib/alignof.h (alignof_slot): New macro.
20359         (alignof_type): New macro, with the same semantics as the previous
20360         'alignof'.
20361         (alignof): Alias to alignof_slot.
20362         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
20363         check that the results are usable as constant expressions.
20364
20365 2009-05-31  Bruno Haible  <bruno@clisp.org>
20366
20367         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
20368         * tests/test-memchr.c (main): Check that memchr does not read past the
20369         first occurrence of the byte.
20370         * tests/test-strstr.c (main): Update comment.
20371         Suggested by Eric Blake.
20372
20373 2009-05-30  Bruno Haible  <bruno@clisp.org>
20374
20375         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
20376         detail how to use dumpbin.
20377         Reported by David Byron <dbyron@dbyron.com>.
20378
20379 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20380
20381         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
20382
20383 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20384
20385         * m4/manywarnings.m4: Add GCC 4.4 warnings.
20386
20387 2009-05-28  Bruno Haible  <bruno@clisp.org>
20388
20389         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
20390         build-aux/ files.
20391
20392 2009-05-28  Simon Josefsson  <simon@josefsson.org>
20393
20394         * gnulib-tool (func_import): Transform license on build-aux/ files too.
20395
20396 2009-05-27  Simon Josefsson  <simon@josefsson.org>
20397
20398         * gnulib-tool (sed_transform_main_lib_file)
20399         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
20400         regexps.
20401
20402 2009-05-26  Simon Josefsson  <simon@josefsson.org>
20403
20404         * tests/test-strstr.c: Add another self-test.
20405         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
20406         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
20407
20408 2009-05-23  Bruno Haible  <bruno@clisp.org>
20409
20410         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
20411         change.
20412
20413 2009-05-21  Bruno Haible  <bruno@clisp.org>
20414
20415         Simplify use of mode_t varargs.
20416         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
20417         uses 'mode_t' or 'int'.
20418         * lib/openat.c (openat): Likewise.
20419         * lib/open-safer.c (open_safer): Likewise.
20420         * m4/mode_t.m4: New file.
20421         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
20422         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
20423         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
20424         * modules/open (Files): Add m4/mode_t.m4.
20425         * modules/openat (Files): Likewise.
20426         * modules/fcntl-safer (Files): Likewise.
20427         Suggested by Eric Blake.
20428
20429 2009-05-21  Pádraig Brady  <P@draigbrady.com>
20430
20431         * doc/glibc-functions/fallocate.texi: New file.
20432         * doc/gnulib.texi: Include it.
20433
20434 2009-05-21  Eric Blake  <ebb9@byu.net>
20435             Bruno Haible  <bruno@clisp.org>
20436
20437         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
20438         invocations.
20439         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20440
20441 2009-05-21  Eric Blake  <ebb9@byu.net>
20442             Bruno Haible  <bruno@clisp.org>
20443
20444         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
20445         include_next. Fix of 2008-11-20 commit.
20446         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
20447         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
20448         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
20449         NEXT_MATH_H.
20450         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
20451         instead of NEXT_MATH_H.
20452
20453 2009-05-21  Bruno Haible  <bruno@clisp.org>
20454
20455         Avoid redefinition warnings for SIZE_MAX.
20456         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
20457         Reported by Simon Josefsson.
20458
20459 2009-05-21  Bruno Haible  <bruno@clisp.org>
20460
20461         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
20462         AC_CACHE_VAL.
20463
20464 2009-05-20  Bruno Haible  <bruno@clisp.org>
20465
20466         Make zeroptr.h work on mingw.
20467         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
20468         mprotect.
20469         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
20470         * modules/memchr2-tests (configure.ac): Likewise.
20471         * modules/memcmp-tests (configure.ac): Likewise.
20472         * modules/memmem-tests (configure.ac): Likewise.
20473         * modules/memrchr-tests (configure.ac): Likewise.
20474         Reported by Simon Josefsson.
20475
20476 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20477
20478         * tests/test-glob.c: Include string.h for strcmp prototype.
20479
20480 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20481
20482         * modules/getdelim (Depends-on): Add explicit stdint, although it
20483         was implicitly already pulled in via realloc-posix.
20484         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
20485
20486 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20487
20488         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
20489         G. Christensen" <tgc@jupiterrise.com>.
20490         * m4/sys_socket_h.m4: Check for sa_family_t.
20491         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
20492         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
20493         * tests/test-sys_socket.c: Check that sa_family_t works.
20494
20495 2009-05-18  Eric Blake  <ebb9@byu.net>
20496
20497         maint.mk: allow gnulib_dir in VPATH build
20498         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
20499
20500 2009-05-15  Jim Meyering  <meyering@redhat.com>
20501
20502         maint.mk: Give gnulib_dir a default definition.
20503         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
20504         Thus, most packages no longer need to specify this variable in cfg.mk
20505
20506 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
20507
20508         rename.m4: fix typos that would make non-mingw cross-configure fail
20509         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
20510
20511 2009-05-13  Eric Blake  <ebb9@byu.net>
20512
20513         mmap-anon: avoid out-of-order autoconf expansion
20514         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
20515         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
20516         * modules/memchr-tests (Depends-on): Add extensions.
20517         * modules/memchr2-tests (Depends-on): Add extensions.
20518         * modules/memcmp-tests (Depends-on): Add extensions.
20519         * modules/memmem-tests (Depends-on): Add extensions.
20520         * modules/memrchr-tests (Depends-on): Add extensions.
20521
20522 2009-05-13  Bruno Haible  <bruno@clisp.org>
20523
20524         Make some tests ISO C 99 compliant.
20525         * tests/zerosize-ptr.h: New file.
20526         * tests/test-memchr.c: Include zerosize-ptr.h.
20527         (main): Use a zero-size object pointer instead of NULL.
20528         * tests/test-memchr2.c: Include zerosize-ptr.h.
20529         (main): Use a zero-size object pointer instead of NULL.
20530         * tests/test-memcmp.c: Include zerosize-ptr.h.
20531         (main): Use a zero-size object pointer instead of NULL.
20532         * tests/test-memmem.c: Include zerosize-ptr.h.
20533         (main): Use a zero-size object pointer instead of NULL.
20534         * tests/test-memrchr.c: Include zerosize-ptr.h.
20535         (main): Use a zero-size object pointer instead of NULL.
20536         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
20537         m4/mmap-anon.m4.
20538         (Depends-on): Add getpagesize.
20539         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20540         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
20541         m4/mmap-anon.m4.
20542         (Depends-on): Add getpagesize.
20543         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20544         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
20545         m4/mmap-anon.m4.
20546         (Depends-on): Add getpagesize.
20547         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20548         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
20549         m4/mmap-anon.m4.
20550         (Depends-on): Add getpagesize.
20551         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20552         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
20553         m4/mmap-anon.m4.
20554         (Depends-on): Add getpagesize.
20555         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20556
20557 2009-05-12  Bruno Haible  <bruno@clisp.org>
20558
20559         Tests for module 'alignof'.
20560         * modules/alignof-tests: New file.
20561         * tests/test-alignof.c: New file.
20562
20563 2009-05-12  Bruno Haible  <bruno@clisp.org>
20564
20565         Fix alignof macro.
20566         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
20567         vendor compilers that are always correct.
20568
20569 2009-05-12  Bruno Haible  <bruno@clisp.org>
20570
20571         Make the MAP_ANONYMOUS detection work on HP-UX 11.
20572         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
20573         not whether its fully works.
20574
20575 2009-05-12  Bruno Haible  <bruno@clisp.org>
20576
20577         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
20578
20579 2009-05-12  Jim Meyering  <meyering@redhat.com>
20580
20581         * top/maint.mk: Adjust backslash alignment.
20582
20583 2009-05-11  Simon Josefsson  <simon@josefsson.org>
20584
20585         * top/maint.mk: Make $(srcdir)/build-aux configurable.
20586
20587 2009-05-11  Eric Blake  <ebb9@byu.net>
20588
20589         argp: avoid undefined behavior
20590         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
20591         macros.
20592
20593 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20594
20595         * tests/test-vc-list-files-git.sh: Do git config of user.email and
20596         user.name to prevent git commit from complaining.
20597
20598 2009-05-10  Bruno Haible  <bruno@clisp.org>
20599
20600         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
20601         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
20602         it rewrites every file name only once.
20603         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
20604
20605 2009-05-08  Bruno Haible  <bruno@clisp.org>
20606
20607         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
20608         instead of 'max'.
20609
20610 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20611
20612         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
20613         sockaddr_storage test.
20614
20615 2009-05-07  Simon Josefsson  <simon@josefsson.org>
20616
20617         * modules/sys_socket (Makefile.am): Substitute
20618         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
20619         * m4/sys_socket_h.m4: Check for sockaddr_storage.
20620         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
20621         * tests/test-sys_socket.c: Check sockaddr_storage.
20622
20623 2009-05-08  Bruno Haible  <bruno@clisp.org>
20624
20625         New module 'alignof'.
20626         * lib/alignof.h: New file.
20627         * modules/alignof: New file.
20628
20629 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20630             Bruno Haible  <bruno@clisp.org>
20631
20632         Fix test-file-has-acl on FreeBSD.
20633         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
20634         mask is implicitly added.
20635         * tests/test-file-has-acl.c: Include <signal.h>.
20636         (main): Terminate the test after 5 seconds.
20637         * modules/acl-tests (configure.ac): Check for alarm function.
20638
20639 2009-05-04  Bruno Haible  <bruno@clisp.org>
20640
20641         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
20642         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
20643         * modules/errno (configure.ac): Drop AC_REQUIRE.
20644         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
20645         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
20646
20647 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20648
20649         * modules/glob-tests: New module.
20650         * tests/test-glob.c: Add.
20651
20652 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20653
20654         * modules/fnmatch-tests: New module.
20655         * tests/test-fnmatch.c: Add.
20656
20657 2009-05-04  Eric Blake  <ebb9@byu.net>
20658
20659         maint: make the new no-submodule-changes rule VPATH-safe
20660         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
20661
20662 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20663             Bruno Haible  <bruno@clisp.org>
20664
20665         acl: Fix infinite loop on FreeBSD.
20666         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
20667         of return value from acl_get_entry.
20668         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
20669         Likewise.
20670
20671 2009-05-03  Bruno Haible  <bruno@clisp.org>
20672
20673         * lib/acl-internal.h (acl_entries): Clarify return value.
20674         * lib/acl_entries.c (acl_entries): Likewise.
20675
20676 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20677
20678         Bug fix in acl module.
20679         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
20680
20681 2009-05-03  Bruno Haible  <bruno@clisp.org>
20682
20683         Create gperf-generated file in the source dir, not in the build dir.
20684         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
20685         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
20686         * modules/unicase/locale-language (unicase/locale-languages.h):
20687         Likewise.
20688         * modules/unicase/special-casing (unicase/special-casing-table.h):
20689         Likewise.
20690         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
20691         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
20692         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
20693         Reported by Ralf Wildenhues.
20694
20695 2009-05-03  Bruno Haible  <bruno@clisp.org>
20696
20697         * modules/fnmatch (Description, configure.ac): Taken from
20698         fnmatch-posix.
20699         * modules/fnmatch-posix: Turn into a symbolic reference to the
20700         'fnmatch' module, and deprecate.
20701         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
20702
20703 2009-05-03  Bruno Haible  <bruno@clisp.org>
20704
20705         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
20706         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
20707         Reported by Ralf Wildenhues.
20708
20709 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20710
20711         * m4/fnmatch.m4: Fix fnmatch re-define.
20712
20713 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20714
20715         priv-set: new module and tests; adapt write-any-file
20716         * lib/priv-set.c: New file.
20717         * lib/priv-set.h: New file.
20718         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
20719         * lib/write-any-file.c: Simplify by using priv-set module.
20720         * m4/priv-set.m4: New file.
20721         * modules/priv-set: New file.
20722         * modules/unlinkdir: Add dependency on priv-set module.
20723         * modules/write-any-file: Likewise.
20724
20725         Tests for module 'priv-set'.
20726         * modules/priv-set-tests: New file.
20727         * tests/test-priv-set.c: New file.
20728
20729 2009-05-03  Jim Meyering  <meyering@redhat.com>
20730             Bruno Haible  <bruno@clisp.org>
20731
20732         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
20733         use the converted UTF-8 variant of the name instead.
20734
20735 2009-05-03  Jim Meyering  <meyering@redhat.com>
20736
20737         tests: tighten some getdate tests
20738         * tests/test-getdate.c (main): Tighten tests: require equality,
20739         not just greater than.  Set TZ envvar to UTC0.
20740
20741 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20742
20743         getdate: correctly interpret "next monday" when run on a Monday
20744         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
20745         that e.g., "next tues" (when run on a tuesday) results in a date
20746         that is one week in the future, and not today's date.
20747         I.e., add a week when the wday is the same as the current one.
20748         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
20749         and earlier by Martin Bernreuther and Jan Minář.
20750         * tests/test-getdate.c (main): Check that "next DAY" is always in
20751         the future and that "last DAY" is always in the past.
20752
20753 2009-05-02  Jim Meyering  <meyering@redhat.com>
20754
20755         build: ensure that a release build fails when a submodule is unclean
20756         * top/maint.mk (no-submodule-changes): New rule.
20757         (alpha beta major): Depend on it.
20758
20759 2009-05-02  Bruno Haible  <bruno@clisp.org>
20760
20761         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
20762         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
20763         shell variable gl_fnmatch_required to detect which variant is
20764         requested.
20765         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
20766         gl_FUNC_FNMATCH_POSIX.
20767         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
20768         exclude fnmatch-posix.
20769
20770 2009-05-02  Bruno Haible  <bruno@clisp.org>
20771
20772         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
20773         * modules/mbsrtowcs (License): Change to LGPLv2+.
20774         * modules/strnlen1 (License): Likewise.
20775         Reported by Simon Josefsson.
20776
20777 2009-05-02  Bruno Haible  <bruno@clisp.org>
20778
20779         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
20780         "cross".
20781         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
20782         gnulib-tool was called with option --source-base=lib.
20783
20784 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20785
20786         Use automake *-local hooks without commands, for extensibility.
20787         * modules/localcharset (Makefile.am): Rename install-exec-local
20788         rule to install-exec-localcharset, and make it a prerequisite of
20789         install-exec-local.  Likewise, rename the uninstall-local rule to
20790         uninstall-localcharset, and make it a prerequisite of the former.
20791
20792 2009-05-01  Bruno Haible  <bruno@clisp.org>
20793
20794         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
20795         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20796         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
20797         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
20798         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
20799         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20800         m4/locale-zh.m4, m4/codeset.m4.
20801
20802         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20803         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
20804         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20805         m4/locale-zh.m4.
20806
20807         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
20808         REPLACE_WCRTOMB if mbstate_t must be replaced.
20809         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
20810         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
20811
20812 2009-05-01  Bruno Haible  <bruno@clisp.org>
20813
20814         Avoid compiler warnings when redefining macros defined by <libintl.h>.
20815         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
20816         dngettext, dcngettext, textdomain, bindtextdomain,
20817         bind_textdomain_codeset): Undefine before redefining.
20818
20819 2009-04-30  Bruno Haible  <bruno@clisp.org>
20820
20821         Fix bug introduced on 2009-04-25.
20822         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
20823         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
20824         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
20825         is defined.
20826         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
20827         is defined.
20828         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
20829         is defined.
20830         Reported by Elbert_Pol <elbert.pol@gmail.com>.
20831
20832 2009-04-28  Bruno Haible  <bruno@clisp.org>
20833
20834         Comment tweaks.
20835         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
20836         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
20837         * lib/unicase.h (u*_casexfrm): Likewise.
20838         Reported by Paolo Bonzini.
20839
20840 2009-04-28  Bruno Haible  <bruno@clisp.org>
20841
20842         Fix a compilation error.
20843         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
20844         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20845         Reported by Jim Meyering.
20846
20847 2009-04-27  Bruno Haible  <bruno@clisp.org>
20848
20849         New module 'libunistring'.
20850         * modules/libunistring: New file.
20851         * m4/libunistring.m4: New file.
20852         * MODULES.html.sh (Unicode string functions): Add it.
20853
20854 2009-04-27  Eric Blake  <ebb9@byu.net>
20855
20856         maint.mk: allow package-specific header to provide <config.h>
20857         * top/maint.mk (sc_require_config_h): New variable.
20858         (sc_require_config_h, sc_require_config_h_first): Use it.
20859
20860 2009-04-27  Simon Josefsson  <simon@josefsson.org>
20861
20862         * top/maint.mk (sc_avoid_if_before_free): Except
20863         useless-if-before-free script.
20864
20865 2009-04-27  Eric Blake  <ebb9@byu.net>
20866
20867         maintainer-makefile: depend on all required helper scripts
20868         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
20869         useless-if-before-free.
20870         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
20871         version, rather than assuming gnulib checkout is available.
20872         Reported by Simen Josefsson.
20873
20874 2009-04-26  Bruno Haible  <bruno@clisp.org>
20875
20876         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
20877         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
20878         "../" or "..".
20879
20880 2009-04-26  Bruno Haible  <bruno@clisp.org>
20881
20882         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
20883         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
20884         AC_LIB_HAVE_LINKFLAGS.
20885
20886 2009-04-26  Bruno Haible  <bruno@clisp.org>
20887
20888         Simplify calling convention of u*_conv_from_encoding.
20889         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
20890         u32_conv_from_encoding): Expect a resultbuf argument and return the
20891         result directly as a pointer.
20892         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
20893         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
20894         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
20895         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
20896         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
20897         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20898         Update.
20899         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
20900         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
20901         * lib/vasnprintf.c (VASNPRINTF): Update.
20902         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
20903         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
20904         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
20905         * NEWS: Mention the change.
20906
20907 2009-04-26  Bruno Haible  <bruno@clisp.org>
20908
20909         Simplify calling convention of u*_conv_to_encoding.
20910         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
20911         u32_conv_to_encoding): Expect a resultbuf argument and return the
20912         result directly as a pointer.
20913         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20914         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
20915         freeing scaled_offsets if mem_iconveha failed.
20916         * lib/unicase/u-casexfrm.h (FUNC): Update.
20917         * lib/uninorm/u-normxfrm.h (FUNC): Update.
20918         * lib/vasnprintf.c (VASNPRINTF): Update.
20919         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
20920         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
20921         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
20922         * NEWS: Mention the change.
20923
20924 2009-04-26  Bruno Haible  <bruno@clisp.org>
20925
20926         Avoid test failures on AIX and OSF/1.
20927         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
20928         malloc(0).
20929         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20930         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20931         Likewise.
20932         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
20933         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
20934         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
20935         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
20936         * doc/posix-functions/malloc.texi: Document the portability problem
20937         related to malloc(0).
20938
20939 2009-04-26  Bruno Haible  <bruno@clisp.org>
20940
20941         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
20942         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
20943         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
20944
20945 2009-04-25  Bruno Haible  <bruno@clisp.org>
20946
20947         Avoid link error when creating a namespace clean library.
20948         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
20949         as macro with arguments if already defined as an alias.
20950         * lib/signbitf.c (gl_signbitf): Don't undefine.
20951         * lib/signbitd.c (gl_signbitd): Don't undefine.
20952         * lib/signbitl.c (gl_signbitl): Don't undefine.
20953
20954 2009-04-25  Jim Meyering  <meyering@redhat.com>
20955
20956         vc-list-files: fix another quoting bug
20957         * build-aux/vc-list-files: Avoid sed backslash expansion
20958         of pathological directory names.
20959
20960 2009-04-25  Eric Blake  <ebb9@byu.net>
20961
20962         vc-list-files: fix shell quoting error
20963         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
20964         timestamp.
20965
20966 2009-04-25  Jim Meyering  <meyering@redhat.com>
20967
20968         vc-list-files: restore lost functionality with subdir argument
20969         * build-aux/vc-list-files: When given a non-"." sub-directory
20970         argument, substitute the $dir/ prefix back onto each resulting name.
20971         Otherwise, coreutils' root_tests check would fail.
20972
20973 2009-04-24  Eric Blake  <ebb9@byu.net>
20974
20975         vc-list-files: ignore git symlinks
20976         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
20977         than ls-files, to ignore git symlinks.
20978
20979         maint.mk: import improvements from m4
20980         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
20981         (move_if_change): Delete unused macro.
20982         (news-date-check, vc-diff-check): Support VPATH builds.
20983         (announcement): Likewise.  Split --bootstrap-tools list...
20984         (boostrap-tools): ...into separate list, which can be overridden
20985         in cfg.mk.
20986         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
20987         requiring dependency on useless-if-before-free module.
20988         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
20989         Support VPATH builds.
20990
20991 2009-04-24  Jim Meyering  <meyering@redhat.com>
20992
20993         maint.mk: remove coreutils-specific rules and variables
20994         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
20995         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
20996         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
20997
20998         maint.mk: remove obsolete rule
20999         * top/maint.mk (rel-check): Remove rule.
21000         (WGET, WGETFLAGS): Remove now-unused variables.
21001
21002 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21003
21004         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
21005         consistency.
21006
21007         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
21008         '$(PATH_SEPARATOR)' instead of ':'.
21009
21010 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21011
21012         * lib/getopt1.c (main): Use 'const' for static array.
21013
21014 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21015
21016         * top/maint.mk: Sync with coreutils.
21017         * NEWS: Explain incompatibilities.
21018
21019 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21020             Bruno Haible  <bruno@clisp.org>
21021
21022         Fix cross-compilation results.
21023         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
21024         statement, as third argument of AC_TRY_RUN.
21025         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21026         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21027         Likewise.
21028         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21029         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21030         Likewise.
21031         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21032         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
21033         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
21034
21035 2009-04-20  Bruno Haible  <bruno@clisp.org>
21036
21037         Avoid test failure on mingw.
21038         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
21039
21040 2009-04-20  Bruno Haible  <bruno@clisp.org>
21041
21042         Avoid compilation error on mingw.
21043         * modules/localename-tests (Depends-on): Add locale.
21044
21045 2009-04-19  Bruno Haible  <bruno@clisp.org>
21046
21047         Support for building a shared library on Windows platforms.
21048         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
21049         (main): Test the presence of UNINORM_NFC here.
21050         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
21051         (main): Test the presence of UNINORM_NFD here.
21052         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
21053         (main): Test the presence of UNINORM_NFKC here.
21054         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
21055         (main): Test the presence of UNINORM_NFKD here.
21056
21057 2009-04-19  Bruno Haible  <bruno@clisp.org>
21058
21059         Avoid a compiler warning.
21060         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
21061         Change type of variable 'sequence'.
21062
21063 2009-04-19  Bruno Haible  <bruno@clisp.org>
21064
21065         * modules/configmake (Makefile.am): When the contents of configmake.h
21066         does not change, arrange to preserve its modification time.
21067
21068 2009-04-17  Simon Josefsson  <simon@josefsson.org>
21069
21070         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
21071         gettext domain.
21072
21073 2009-04-16  Jim Meyering  <meyering@redhat.com>
21074
21075         useless-if-before-free: improve conversion code
21076         * build-aux/useless-if-before-free: Adjust code-in-comment to match
21077         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
21078
21079 2009-04-14  Bruno Haible  <bruno@clisp.org>
21080
21081         * modules/fcntl (Depends-on): Add extensions.
21082         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
21083
21084 2009-04-12  Ben Pfaff  <blp@gnu.org>
21085
21086         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
21087         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
21088
21089 2009-03-20  Ben Pfaff  <blp@gnu.org>
21090
21091         Make rename replace existing destinations on Windows.
21092         * m4/rename.m4: Add test for Mingw.
21093         * lib/rename.c: Add rename replacement that uses MoveFileEx with
21094         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
21095         * doc/posix-functions/rename.texi: Document.
21096
21097 2009-04-10  Bruno Haible  <bruno@clisp.org>
21098
21099         New include file "iconveh.h".
21100         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
21101         * lib/striconveh.h: Include it.
21102         (enum iconv_ilseq_handler): Remove definition.
21103         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
21104         striconveh.h.
21105         * lib/striconveha.c: Include striconveh.h.
21106         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
21107         * modules/striconveh (Files): Add lib/iconveh.h.
21108         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
21109         lib/striconveh.h.
21110
21111 2009-04-10  Bruno Haible  <bruno@clisp.org>
21112
21113         * lib/uniconv.h: Update comment.
21114
21115 2009-04-10  Bruno Haible  <bruno@clisp.org>
21116
21117         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
21118         always.
21119         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
21120         * lib/unistr/u16-mbtouc-aux.c: Likewise.
21121         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
21122         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
21123         "unistring-notinline.h", so that the function gets defined always.
21124         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
21125         * lib/unistr/u8-uctomb.c: Likewise.
21126         * lib/unistr/u16-mbtouc.c: Likewise.
21127         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
21128         * lib/unistr/u16-uctomb.c: Likewise.
21129         * lib/unistr/u32-mbtouc.c: Likewise.
21130         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
21131         * lib/unistr/u32-uctomb.c: Likewise.
21132
21133 2009-04-10  Bruno Haible  <bruno@clisp.org>
21134
21135         Mark 'utime' obsolete.
21136         * modules/utime (Status, Notice): New sections.
21137         Suggested by Jim Meyering.
21138
21139         Fix cross-compile guess for utime test.
21140         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
21141         autoconf.
21142         * doc/posix-functions/utime.texi: Give more precisions.
21143         Reported by Jan <ipif@ymail.com>.
21144
21145 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
21146
21147         filevercmp: correct today's change
21148         * lib/filevercmp.c: Also handle coreutils' test inputs.
21149         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
21150
21151         Fix regression in 'filevercmp' module. Thanks Sven Joachim
21152         for reporting it.
21153         * lib/filevercmp.c: Special handle for "", "." and "..".
21154         * tests/test-filevercmp.c: Enlarge the set suite.
21155
21156 2009-04-07  Jim Meyering  <meyering@redhat.com>
21157
21158         useless-if-before-free: show how to remove braced useless free, too
21159         * build-aux/useless-if-before-free: still only in a comment, though.
21160
21161 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
21162
21163         maint.mk: import changes to syntax-check macros from coreutils
21164         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
21165         Use them in the relevant macros.
21166
21167 2009-04-06  Bruno Haible  <bruno@clisp.org>
21168
21169         Fix unportable use of bit-fields.
21170         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
21171         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
21172         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
21173
21174 2009-04-06  Bruno Haible  <bruno@clisp.org>
21175
21176         Avoid test failures on AIX and OSF/1.
21177         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
21178         that malloc(0) = NULL.
21179         * tests/unicase/test-u8-tolower.c (check): Likewise.
21180         * tests/unicase/test-u8-totitle.c (check): Likewise.
21181         * tests/unicase/test-u8-toupper.c (check): Likewise.
21182         * tests/unicase/test-u16-casefold.c (check): Likewise.
21183         * tests/unicase/test-u16-tolower.c (check): Likewise.
21184         * tests/unicase/test-u16-totitle.c (check): Likewise.
21185         * tests/unicase/test-u16-toupper.c (check): Likewise.
21186         * tests/unicase/test-u32-casefold.c (check): Likewise.
21187         * tests/unicase/test-u32-tolower.c (check): Likewise.
21188         * tests/unicase/test-u32-totitle.c (check): Likewise.
21189         * tests/unicase/test-u32-toupper.c (check): Likewise.
21190         * tests/uninorm/test-u8-nfc.c (check): Likewise.
21191         * tests/uninorm/test-u8-nfd.c (check): Likewise.
21192         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
21193         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
21194         * tests/uninorm/test-u16-nfc.c (check): Likewise.
21195         * tests/uninorm/test-u16-nfd.c (check): Likewise.
21196         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
21197         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
21198         * tests/uninorm/test-u32-nfc.c (check): Likewise.
21199         * tests/uninorm/test-u32-nfd.c (check): Likewise.
21200         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
21201         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
21202
21203 2009-04-05  Bruno Haible  <bruno@clisp.org>
21204
21205         Work around an autoconf limitation.
21206         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
21207         comment line if it would be longer than 3 KB.
21208
21209 2009-04-05  Bruno Haible  <bruno@clisp.org>
21210
21211         Avoid test failure with libiconv-1.13.
21212         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
21213         of the expected test results.
21214
21215 2009-04-05  Bruno Haible  <bruno@clisp.org>
21216
21217         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
21218         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
21219         that it should be installed.
21220
21221 2009-04-05  Bruno Haible  <bruno@clisp.org>
21222
21223         * gnulib-tool: New option --copy-file.
21224         (func_usage): Document it.
21225         (func_dest_tmpfilename): Moved out of func_import.
21226         (func_add_file, func_update_file): New functions, extracted from
21227         func_import.
21228         (func_import): Update.
21229
21230 2009-04-05  Karl Berry  <karl@gnu.org>
21231
21232         * README: prominently mention gnulib-tool.
21233         Rearrange sections so getting the code is near the top.
21234
21235 2009-04-05  Bruno Haible  <bruno@clisp.org>
21236
21237         * lib/unicase.h: Mention u*_cmp2.
21238         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
21239         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
21240         * lib/unicase/ulc-casecmp.c: Likewise.
21241         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
21242         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
21243         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
21244         unistr/u8-cmp.
21245         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
21246         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
21247         unistr/u16-cmp.
21248         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
21249         unistr/u32-cmp.
21250
21251         * lib/uninorm.h: Mention u*_cmp2.
21252         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
21253         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
21254         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
21255         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
21256         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
21257         unistr/u8-cmp.
21258         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
21259         unistr/u16-cmp.
21260         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
21261         unistr/u32-cmp.
21262
21263         New module 'unistr/u32-cmp2'.
21264         * lib/unistr/u32-cmp2.c: New file.
21265         * modules/unistr/u32-cmp2: New file.
21266
21267         New module 'unistr/u16-cmp2'.
21268         * lib/unistr/u16-cmp2.c: New file.
21269         * modules/unistr/u16-cmp2: New file.
21270
21271         New module 'unistr/u8-cmp2'.
21272         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
21273         * lib/unistr/u8-cmp2.c: New file.
21274         * lib/unistr/u-cmp2.h: New file.
21275         * modules/unistr/u8-cmp2: New file.
21276
21277 2009-04-05  Bruno Haible  <bruno@clisp.org>
21278
21279         * lib/unictype.h (uc_property_is_valid): New macro.
21280         * tests/unictype/test-pr_byname.c (main): Use it.
21281
21282         * lib/unistr.h: Doc fixes.
21283         * lib/uniconv.h: Doc fixes.
21284         * lib/unictype.h: Doc fixes.
21285
21286 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
21287
21288         Port coreutils 7.2 to Solaris 8.
21289
21290         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
21291         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
21292         for Solaris 8.  This is a bit of a hack, as it means it's the
21293         caller's responsibility to add -lnsl if needed, but most likely it
21294         won't be needed since only getaddrinfo uses this and getaddrinfo
21295         isn't needed on Solaris 8.
21296
21297         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
21298         problem to Solaris 8 encountered with coreutils 7.2, which
21299         resulted in a message "fnmatch.c:292: warning: passing argument 4
21300         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
21301         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
21302
21303 2009-04-03  Simon Josefsson  <simon@josefsson.org>
21304
21305         * m4/ld-version-script.m4: Add FIXME comment.
21306
21307 2009-04-02  Simon Josefsson  <simon@josefsson.org>
21308
21309         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
21310         SOVERSION variable.
21311
21312 2009-04-02  Bruno Haible  <bruno@clisp.org>
21313
21314         * Makefile (info, html, dvi, pdf): Combine the rules.
21315         Suggested by Jim Meyering.
21316
21317 2009-04-01  Bruno Haible  <bruno@clisp.org>
21318
21319         * Makefile (info, html, dvi, pdf): New targets.
21320         Reported by Reuben Thomas <rrt@sc3d.org>.
21321
21322 2009-04-01  Bruno Haible  <bruno@clisp.org>
21323
21324         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
21325         can be put into PATH.
21326         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
21327
21328 2009-04-01  Bruno Haible  <bruno@clisp.org>
21329
21330         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
21331
21332 2009-04-01  Bruno Haible  <bruno@clisp.org>
21333
21334         Rename module 'visibility'.
21335         * modules/lib-symbol-visibility: Renamed from modules/visibility.
21336         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
21337         * doc/gnulib.texi: Update.
21338         * MODULES.html.sh (Misc): Update.
21339         * NEWS: Mention the change.
21340
21341 2009-04-01  Simon Josefsson  <simon@josefsson.org>
21342
21343         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
21344         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
21345         Eric Blake <ebb9@byu.net> for review.
21346         * MODULES.html.sh: Add lib-msvc-compat.
21347         * doc/gnulib.texi: Link to new section.
21348         * m4/ld-output-def.m4: New file.
21349         * doc/ld-output-def.texi: New file.
21350
21351 2009-04-01  Simon Josefsson  <simon@josefsson.org>
21352
21353         Rename ld-version-script to lib-symbol-versions.  Suggested by
21354         Bruno Haible <bruno@clisp.org>.
21355         * modules/ld-version-script: Renamed to lib-symbol-versions.
21356         * doc/ld-version-script.texi: Fix module name.
21357         * MODULES.html.sh: Add lib-symbol-versions.
21358
21359 2009-03-31  Simon Josefsson  <simon@josefsson.org>
21360
21361         * modules/u64-tests: New file.
21362         * tests/test-u64.c: New file.
21363
21364 2009-03-04  Simon Josefsson  <simon@josefsson.org>
21365
21366         * MODULES.html.sh: Mention u64.
21367         * modules/u64: New module.
21368         * modules/crypto/sha512: Depend on u64 module instead of providing
21369         u64.h.
21370
21371 2009-03-27  Eric Blake  <ebb9@byu.net>
21372
21373         test-strerror: make debugging EAI_SYSTEM easier
21374         * modules/getaddrinfo-tests (Depends-on): Add strerror.
21375         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
21376         failure was EAI_SYSTEM.
21377
21378 2009-03-25  Bruno Haible  <bruno@clisp.org>
21379
21380         Fix a problem with --enable-relocatable on Solaris 7.
21381         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
21382         since 2008-02-24.
21383
21384 2009-03-25  Eric Blake  <ebb9@byu.net>
21385
21386         test-sockets: avoid gcc warning
21387         * tests/test-sockets.c (main): Silence compiler warning.
21388
21389 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
21390
21391         New modules nproc, pthread, contributed by Glen Lenker.
21392
21393         * MODULES.html.sh: Add pthread, nproc.
21394         * lib/nproc.c: New file.
21395         * lib/nproc.h: New file.
21396         * lib/pthread.in.h: New file.
21397         * m4/pthread.m4: New file.
21398         * modules/nproc: New file.
21399         * modules/pthread: New file.
21400
21401 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21402
21403         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
21404         New variable.
21405
21406 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
21407
21408         filevercmp: handle simple~ and numbered.~3~ backup suffixes
21409         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
21410         * tests/test-filevercmp.c: Add tests for backup suffixes.
21411
21412 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21413
21414         * modules/stdlib (Depends-on): Add stdint, needed when defining
21415         struct random_data on, for example, HP-UX 10.20.  Reported by
21416         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21417
21418 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21419
21420         * lib/readline.c (readline): Call fflush on stdout after printing
21421         prompt.
21422
21423 2009-03-20  Bruno Haible  <bruno@clisp.org>
21424
21425         Remove dependency from 'close' module to -lws2_32 on native Windows.
21426         * lib/close-hook.h: New file.
21427         * lib/close-hook.c: New file.
21428         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
21429         w32sock.h.
21430         (_gl_close_fd_maybe_socket): Remove function.
21431         (rpl_close): Invoke execute_all_close_hooks instead of
21432         _gl_close_fd_maybe_socket.
21433         * lib/sockets.c: Include close-hook.h, w32sock.h.
21434         (close_fd_maybe_socket): New function, essentially from lib/close.c.
21435         (close_sockets_hook): New variable.
21436         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
21437         (gl_sockets_cleanup): Unregister it.
21438         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
21439         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
21440         * modules/close-hook: New file.
21441         * modules/close (Files): Remove lib/w32sock.h.
21442         (Depends-on): Add close-hook.
21443         (Link): Remove section.
21444         * modules/sockets (Files): Add lib/w32sock.h.
21445         (Depends-on): Add close-hook.
21446         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
21447         invocation.
21448         * NEWS: Mention that LIB_CLOSE is gone.
21449
21450 2009-03-23  Eric Blake  <ebb9@byu.net>
21451
21452         signal-tests: test previous patch
21453         * tests/test-signal.c: New file.
21454         * modules/signal-tests: Likewise.
21455
21456         signal.h: always support 'volatile sig_atomic_t'
21457         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
21458         (gl_SIGNAL_H_DEFAULTS): Add a default.
21459         * modules/signal (Makefile.am): Substitute if needed.
21460         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
21461         users can blindly add volatile.
21462         * doc/posix-headers/signal.texi (signal.h): Document it.
21463         Reported by Matthew Woehlke.
21464
21465 2009-03-23  Jim Meyering  <meyering@redhat.com>
21466
21467         pathmax: PATH_MAX: use pathconf only when available
21468         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
21469         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
21470         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
21471         This avoids a link failure in a PSP cross-compilation environment
21472         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
21473
21474         * lib/vasnprintf.c (divide): Fix typo in comment.
21475
21476 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21477
21478         * gnulib-tool (func_filter_filelist): Fix comment.
21479
21480 2009-03-20  Bruno Haible  <bruno@clisp.org>
21481
21482         Make sockets.h self-contained.
21483         * lib/sockets.c: Include sockets.h first.
21484         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
21485
21486 2009-03-19  Eric Blake  <ebb9@byu.net>
21487
21488         doc: mention more functions added in cygwin 1.7.0
21489         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
21490         addition.
21491         * doc/posix-functions/log2f.texi: Likewise.
21492
21493 2009-03-19  Jim Meyering  <meyering@redhat.com>
21494
21495         fsusage: avoid syntax error due to statement-before-declaration
21496         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
21497         after all declarations.  Reported by Matthew Woehlke in
21498         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
21499
21500 2009-03-18  Eric Blake  <ebb9@byu.net>
21501
21502         build-aux/compile: sync from automake
21503         * build-aux/compile: New file, from automake.
21504         * config/srclist.txt: Mention build-aux/compile.
21505
21506 2009-03-17  Bruno Haible  <bruno@clisp.org>
21507
21508         * lib/git-merge-changelog.c: Fix typo in comment.
21509         Reported by Reuben Thomas <rrt@sc3d.org>.
21510
21511 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
21512
21513         * m4/regex.m4: update and improve help for
21514         --without-included-regex.
21515
21516 2009-03-17  Simon Josefsson  <simon@josefsson.org>
21517
21518         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
21519         failure on missing include files.
21520
21521 2009-03-17  Eric Blake  <ebb9@byu.net>
21522
21523         doc: mention more functions added in cygwin 1.7.0
21524         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
21525         addition.
21526         * doc/posix-functions/fwscanf.texi: Likewise.
21527         * doc/posix-functions/swprintf.texi: Likewise.
21528         * doc/posix-functions/swscanf.texi: Likewise.
21529         * doc/posix-functions/vfwprintf.texi: Likewise.
21530         * doc/posix-functions/vfwscanf.texi: Likewise.
21531         * doc/posix-functions/vswprintf.texi: Likewise.
21532         * doc/posix-functions/vswscanf.texi: Likewise.
21533         * doc/posix-functions/vwprintf.texi: Likewise.
21534         * doc/posix-functions/vwscanf.texi: Likewise.
21535         * doc/posix-functions/wcscasecmp.texi: Likewise.
21536         * doc/posix-functions/wcsdup.texi: Likewise.
21537         * doc/posix-functions/wcsftime.texi: Likewise.
21538         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21539         * doc/posix-functions/wprintf.texi: Likewise.
21540         * doc/posix-functions/wscanf.texi: Likewise.
21541         * doc/glibc-functions/gethostbyname2.texi: Likewise.
21542
21543 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21544
21545         maint.mk: really add $(AM_MAKEFLAGS)
21546         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
21547         was inadvertently omitted in the last commit.
21548         Spotted by Bruno Haible.
21549
21550         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
21551         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
21552         $(AM_MAKEFLAGS)' rather than plain `make'.
21553
21554         gnulib-tool: execute $MAKE not make
21555         * gnulib-tool: Default $MAKE to 'make'.
21556         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
21557         than make.  Initialize $MAKE in the do-autobuild script.
21558
21559         gnulib-tool: use $MAKE not make in generated files
21560         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
21561         make, in generated files.  Initialize $MAKE in the do-autobuild
21562         script.
21563
21564         * top/GNUmakefile (_have-git-version-gen): Fix typo.
21565
21566         GNUmakefile: disable parallelism only for multiple, recursive targets
21567         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
21568         additions in the Makefile.
21569         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
21570         by Automake.
21571         (.NOTPARALLEL): Only disable parallel builds if multiple targets
21572         are listed on the command line and at least one of them is
21573         listed in $(ALL_RECURSIVE_TARGETS).
21574
21575 2009-03-14  Bruno Haible  <bruno@clisp.org>
21576
21577         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
21578         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
21579         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
21580         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
21581         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
21582         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
21583         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
21584         unistr/u8-uctomb.
21585         * modules/unistr/u8-strchr (Depends-on): Likewise.
21586         * modules/unistr/u8-strrchr (Depends-on): Likewise.
21587         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
21588         unistr/u16-uctomb.
21589         * modules/unistr/u16-strchr (Depends-on): Likewise.
21590         * modules/unistr/u16-strrchr (Depends-on): Likewise.
21591
21592 2009-03-12  Bruno Haible  <bruno@clisp.org>
21593
21594         Work around select() bug on Interix 3.5.
21595         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
21596         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
21597         * m4/select.m4: New file.
21598         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
21599         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
21600         * modules/select (Files): Add m4/select.m4.
21601         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
21602         * modules/nanosleep (Depends-on): Add select.
21603         * modules/poll (Depends-on): Likewise.
21604         * doc/posix-functions/select.texi: Mention the Interix bug.
21605         Reported by Markus Duft <mduft@gentoo.org>.
21606
21607         * lib/select.c: Renamed from lib/winsock-select.c.
21608         * modules/select (Files): Add lib/select.c, remove
21609         lib/winsock-select.c.
21610         (configure.ac): Update.
21611
21612 2009-03-12  Jim Meyering  <meyering@redhat.com>
21613
21614         avoid gcc warnings about unused macro definitions
21615         * lib/readtokens.c (STREQ): Remove unused definition.
21616         * lib/xmalloc.c (SIZE_MAX): Likewise.
21617         * lib/openat-die.c (N_): Likewise.
21618         * lib/mountlist.c (SIZE_MAX): Remove definition.
21619         Instead, include <stdint.h>.
21620         * lib/readutmp.c: Likewise.
21621         * modules/readutmp (Depends-on): Add stdint.
21622         * modules/mountlist (Depends-on): Add stdint.
21623         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
21624
21625 2009-03-10  Bruno Haible  <bruno@clisp.org>
21626
21627         Tests for module 'mbmemcasecoll'.
21628         * modules/mbmemcasecoll-tests: New file.
21629         * tests/test-mbmemcasecoll1.sh: New file.
21630         * tests/test-mbmemcasecoll2.sh: New file.
21631         * tests/test-mbmemcasecoll3.sh: New file.
21632         * tests/test-mbmemcasecoll.c: New file.
21633
21634         New module 'mbmemcasecoll'.
21635         * lib/mbmemcasecoll.h: New file.
21636         * lib/mbmemcasecoll.c: New file.
21637         * modules/mbmemcasecoll: New file.
21638
21639         * tests/test-mbmemcasecmp.h: New file, extracted from
21640         tests/test-mbmemcasecmp.c.
21641         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
21642         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
21643         (main): Update.
21644         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
21645
21646 2009-03-09  Bruno Haible  <bruno@clisp.org>
21647
21648         Tests for module 'mbmemcasecmp'.
21649         * modules/mbmemcasecmp-tests: New file.
21650         * tests/test-mbmemcasecmp1.sh: New file.
21651         * tests/test-mbmemcasecmp2.sh: New file.
21652         * tests/test-mbmemcasecmp3.sh: New file.
21653         * tests/test-mbmemcasecmp.c: New file.
21654
21655         New module 'mbmemcasecmp'.
21656         * lib/mbmemcasecmp.h: New file.
21657         * lib/mbmemcasecmp.c: New file.
21658         * modules/mbmemcasecmp: New file.
21659
21660 2009-03-09  Bruno Haible  <bruno@clisp.org>
21661
21662         Tests for module 'unicase/ulc-casecoll'.
21663         * modules/unicase/ulc-casecoll-tests: New file.
21664         * tests/unicase/test-ulc-casecoll1.sh: New file.
21665         * tests/unicase/test-ulc-casecoll2.sh: New file.
21666         * tests/unicase/test-ulc-casecoll.c: New file.
21667
21668         New module 'unicase/ulc-casecoll'.
21669         * lib/unicase.h (ulc_casecoll): New declaration.
21670         * lib/unicase/ulc-casecoll.c: New file.
21671         * modules/unicase/ulc-casecoll: New file.
21672
21673         New module 'unicase/ulc-casexfrm'.
21674         * lib/unicase.h (ulc_casexfrm): New declaration.
21675         * lib/unicase/ulc-casexfrm.c: New file.
21676         * modules/unicase/ulc-casexfrm: New file.
21677
21678 2009-03-09  Bruno Haible  <bruno@clisp.org>
21679
21680         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
21681         invocations.
21682
21683         * m4/mbscasecmp.m4: Remove file.
21684         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
21685         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
21686
21687         * m4/mbscasestr.m4: Remove file.
21688         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
21689         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
21690
21691         * m4/mbschr.m4: Remove file.
21692         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
21693         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
21694
21695         * m4/mbscspn.m4: Remove file.
21696         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
21697         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
21698
21699         * m4/mbslen.m4: Remove file.
21700         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
21701         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
21702
21703         * m4/mbsncasecmp.m4: Remove file.
21704         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
21705         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
21706
21707         * m4/mbsnlen.m4: Remove file.
21708         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
21709         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
21710
21711         * m4/mbspbrk.m4: Remove file.
21712         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
21713         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
21714
21715         * m4/mbspcasecmp.m4: Remove file.
21716         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
21717         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
21718
21719         * m4/mbsrchr.m4: Remove file.
21720         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
21721         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
21722
21723         * m4/mbssep.m4: Remove file.
21724         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
21725         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
21726
21727         * m4/mbsspn.m4: Remove file.
21728         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
21729         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
21730
21731         * m4/mbsstr.m4: Remove file.
21732         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
21733         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
21734
21735         * m4/mbstok_r.m4: Remove file.
21736         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
21737         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
21738
21739         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
21740
21741         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
21742         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
21743
21744         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
21745
21746 2009-03-08  Bruno Haible  <bruno@clisp.org>
21747
21748         Tests for module 'unicase/ulc-casecmp'.
21749         * modules/unicase/ulc-casecmp-tests: New file.
21750         * tests/unicase/test-ulc-casecmp1.sh: New file.
21751         * tests/unicase/test-ulc-casecmp2.sh: New file.
21752         * tests/unicase/test-ulc-casecmp.c: New file.
21753
21754         New module 'unicase/ulc-casecmp'.
21755         * lib/unicase.h (ulc_casecmp): New declaration.
21756         * lib/unicase/ulc-casecmp.c: New file.
21757         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
21758         'const SRC_UNIT *'.
21759         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
21760         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
21761         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
21762         * modules/unicase/ulc-casecmp: New file.
21763
21764         Tests for module 'unicase/u32-is-cased'.
21765         * modules/unicase/u32-is-cased-tests: New file.
21766         * tests/unicase/test-u32-is-cased.c: New file.
21767
21768         Tests for module 'unicase/u16-is-cased'.
21769         * modules/unicase/u16-is-cased-tests: New file.
21770         * tests/unicase/test-u16-is-cased.c: New file.
21771
21772         Tests for module 'unicase/u8-is-cased'.
21773         * modules/unicase/u8-is-cased-tests: New file.
21774         * tests/unicase/test-u8-is-cased.c: New file.
21775         * tests/unicase/test-is-cased.h: New file.
21776
21777         New module 'unicase/u32-is-cased'.
21778         * lib/unicase/u32-is-cased.c: New file.
21779         * modules/unicase/u32-is-cased: New file.
21780
21781         New module 'unicase/u16-is-cased'.
21782         * lib/unicase/u16-is-cased.c: New file.
21783         * modules/unicase/u16-is-cased: New file.
21784
21785         New module 'unicase/u8-is-cased'.
21786         * lib/unicase/u8-is-cased.c: New file.
21787         * lib/unicase/u-is-cased.h: New file.
21788         * modules/unicase/u8-is-cased: New file.
21789
21790         Tests for module 'unicase/u32-is-casefolded'.
21791         * modules/unicase/u32-is-casefolded-tests: New file.
21792         * tests/unicase/test-u32-is-casefolded.c: New file.
21793
21794         Tests for module 'unicase/u16-is-casefolded'.
21795         * modules/unicase/u16-is-casefolded-tests: New file.
21796         * tests/unicase/test-u16-is-casefolded.c: New file.
21797
21798         Tests for module 'unicase/u8-is-casefolded'.
21799         * modules/unicase/u8-is-casefolded-tests: New file.
21800         * tests/unicase/test-u8-is-casefolded.c: New file.
21801         * tests/unicase/test-is-casefolded.h: New file.
21802
21803         New module 'unicase/u32-is-casefolded'.
21804         * lib/unicase/u32-is-casefolded.c: New file.
21805         * modules/unicase/u32-is-casefolded: New file.
21806
21807         New module 'unicase/u16-is-casefolded'.
21808         * lib/unicase/u16-is-casefolded.c: New file.
21809         * modules/unicase/u16-is-casefolded: New file.
21810
21811         New module 'unicase/u8-is-casefolded'.
21812         * lib/unicase/u8-is-casefolded.c: New file.
21813         * modules/unicase/u8-is-casefolded: New file.
21814
21815         Tests for module 'unicase/u32-is-titlecase'.
21816         * modules/unicase/u32-is-titlecase-tests: New file.
21817         * tests/unicase/test-u32-is-titlecase.c: New file.
21818
21819         Tests for module 'unicase/u16-is-titlecase'.
21820         * modules/unicase/u16-is-titlecase-tests: New file.
21821         * tests/unicase/test-u16-is-titlecase.c: New file.
21822
21823         Tests for module 'unicase/u8-is-titlecase'.
21824         * modules/unicase/u8-is-titlecase-tests: New file.
21825         * tests/unicase/test-u8-is-titlecase.c: New file.
21826         * tests/unicase/test-is-titlecase.h: New file.
21827
21828         New module 'unicase/u32-is-titlecase'.
21829         * lib/unicase/u32-is-titlecase.c: New file.
21830         * modules/unicase/u32-is-titlecase: New file.
21831
21832         New module 'unicase/u16-is-titlecase'.
21833         * lib/unicase/u16-is-titlecase.c: New file.
21834         * modules/unicase/u16-is-titlecase: New file.
21835
21836         New module 'unicase/u8-is-titlecase'.
21837         * lib/unicase/u8-is-titlecase.c: New file.
21838         * modules/unicase/u8-is-titlecase: New file.
21839
21840         Tests for module 'unicase/u32-is-lowercase'.
21841         * modules/unicase/u32-is-lowercase-tests: New file.
21842         * tests/unicase/test-u32-is-lowercase.c: New file.
21843
21844         Tests for module 'unicase/u16-is-lowercase'.
21845         * modules/unicase/u16-is-lowercase-tests: New file.
21846         * tests/unicase/test-u16-is-lowercase.c: New file.
21847
21848         Tests for module 'unicase/u8-is-lowercase'.
21849         * modules/unicase/u8-is-lowercase-tests: New file.
21850         * tests/unicase/test-u8-is-lowercase.c: New file.
21851         * tests/unicase/test-is-lowercase.h: New file.
21852
21853         New module 'unicase/u32-is-lowercase'.
21854         * lib/unicase/u32-is-lowercase.c: New file.
21855         * modules/unicase/u32-is-lowercase: New file.
21856
21857         New module 'unicase/u16-is-lowercase'.
21858         * lib/unicase/u16-is-lowercase.c: New file.
21859         * modules/unicase/u16-is-lowercase: New file.
21860
21861         New module 'unicase/u8-is-lowercase'.
21862         * lib/unicase/u8-is-lowercase.c: New file.
21863         * modules/unicase/u8-is-lowercase: New file.
21864
21865         Tests for module 'unicase/u32-is-uppercase'.
21866         * modules/unicase/u32-is-uppercase-tests: New file.
21867         * tests/unicase/test-u32-is-uppercase.c: New file.
21868
21869         Tests for module 'unicase/u16-is-uppercase'.
21870         * modules/unicase/u16-is-uppercase-tests: New file.
21871         * tests/unicase/test-u16-is-uppercase.c: New file.
21872
21873         Tests for module 'unicase/u8-is-uppercase'.
21874         * modules/unicase/u8-is-uppercase-tests: New file.
21875         * tests/unicase/test-u8-is-uppercase.c: New file.
21876         * tests/unicase/test-is-uppercase.h: New file.
21877
21878         New module 'unicase/u32-is-uppercase'.
21879         * lib/unicase/u32-is-uppercase.c: New file.
21880         * modules/unicase/u32-is-uppercase: New file.
21881
21882         New module 'unicase/u16-is-uppercase'.
21883         * lib/unicase/u16-is-uppercase.c: New file.
21884         * modules/unicase/u16-is-uppercase: New file.
21885
21886         New module 'unicase/u8-is-uppercase'.
21887         * lib/unicase/u8-is-uppercase.c: New file.
21888         * modules/unicase/u8-is-uppercase: New file.
21889
21890         New module 'unicase/u32-is-invariant'.
21891         * lib/unicase/u32-is-invariant.c: New file.
21892         * modules/unicase/u32-is-invariant: New file.
21893
21894         New module 'unicase/u16-is-invariant'.
21895         * lib/unicase/u16-is-invariant.c: New file.
21896         * modules/unicase/u16-is-invariant: New file.
21897
21898         New module 'unicase/u8-is-invariant'.
21899         * lib/unicase/u8-is-invariant.c: New file.
21900         * lib/unicase/invariant.h: New file.
21901         * lib/unicase/u-is-invariant.h: New file.
21902         * modules/unicase/u8-is-invariant: New file.
21903
21904         Tests for module 'unicase/u32-casecoll'.
21905         * modules/unicase/u32-casecoll-tests: New file.
21906         * tests/unicase/test-u32-casecoll.c: New file.
21907
21908         Tests for module 'unicase/u16-casecoll'.
21909         * modules/unicase/u16-casecoll-tests: New file.
21910         * tests/unicase/test-u16-casecoll.c: New file.
21911
21912         Tests for module 'unicase/u8-casecoll'.
21913         * modules/unicase/u8-casecoll-tests: New file.
21914         * tests/unicase/test-u8-casecoll.c: New file.
21915
21916         New module 'unicase/u32-casecoll'.
21917         * lib/unicase/u32-casecoll.c: New file.
21918         * modules/unicase/u32-casecoll: New file.
21919
21920         New module 'unicase/u16-casecoll'.
21921         * lib/unicase/u16-casecoll.c: New file.
21922         * modules/unicase/u16-casecoll: New file.
21923
21924         New module 'unicase/u8-casecoll'.
21925         * lib/unicase/u8-casecoll.c: New file.
21926         * lib/unicase/u-casecoll.h: New file.
21927         * modules/unicase/u8-casecoll: New file.
21928
21929         New module 'unicase/u32-casexfrm'.
21930         * lib/unicase/u32-casexfrm.c: New file.
21931         * modules/unicase/u32-casexfrm: New file.
21932
21933         New module 'unicase/u16-casexfrm'.
21934         * lib/unicase/u16-casexfrm.c: New file.
21935         * modules/unicase/u16-casexfrm: New file.
21936
21937         New module 'unicase/u8-casexfrm'.
21938         * lib/unicase/u8-casexfrm.c: New file.
21939         * lib/unicase/u-casexfrm.h: New file.
21940         * modules/unicase/u8-casexfrm: New file.
21941
21942         Tests for module 'unicase/u32-casecmp'.
21943         * modules/unicase/u32-casecmp-tests: New file.
21944         * tests/unicase/test-u32-casecmp.c: New file.
21945
21946         Tests for module 'unicase/u16-casecmp'.
21947         * modules/unicase/u16-casecmp-tests: New file.
21948         * tests/unicase/test-u16-casecmp.c: New file.
21949
21950         Tests for module 'unicase/u8-casecmp'.
21951         * modules/unicase/u8-casecmp-tests: New file.
21952         * tests/unicase/test-u8-casecmp.c: New file.
21953         * tests/unicase/test-casecmp.h: New file.
21954
21955         New module 'unicase/u32-casecmp'.
21956         * lib/unicase/u32-casecmp.c: New file.
21957         * modules/unicase/u32-casecmp: New file.
21958
21959         New module 'unicase/u16-casecmp'.
21960         * lib/unicase/u16-casecmp.c: New file.
21961         * modules/unicase/u16-casecmp: New file.
21962
21963         New module 'unicase/u8-casecmp'.
21964         * lib/unicase/u8-casecmp.c: New file.
21965         * lib/unicase/u-casecmp.h: New file.
21966         * modules/unicase/u8-casecmp: New file.
21967
21968         Tests for module 'unicase/u32-casefold'.
21969         * modules/unicase/u32-casefold-tests: New file.
21970         * tests/unicase/test-u32-casefold.c: New file.
21971
21972         Tests for module 'unicase/u16-casefold'.
21973         * modules/unicase/u16-casefold-tests: New file.
21974         * tests/unicase/test-u16-casefold.c: New file.
21975
21976         Tests for module 'unicase/u8-casefold'.
21977         * modules/unicase/u8-casefold-tests: New file.
21978         * tests/unicase/test-u8-casefold.c: New file.
21979
21980         New module 'unicase/u32-casefold'.
21981         * lib/unicase/u32-casefold.c: New file.
21982         * modules/unicase/u32-casefold: New file.
21983
21984         New module 'unicase/u16-casefold'.
21985         * lib/unicase/u16-casefold.c: New file.
21986         * modules/unicase/u16-casefold: New file.
21987
21988         New module 'unicase/u8-casefold'.
21989         * lib/unicase/u8-casefold.c: New file.
21990         * lib/unicase/u-casefold.h: New file.
21991         * modules/unicase/u8-casefold: New file.
21992
21993         New module 'unicase/tocasefold'.
21994         * lib/unicase/casefold.h: New file.
21995         * lib/unicase/tocasefold.c: New file.
21996         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
21997         * modules/unicase/tocasefold: New file.
21998
21999         Tests for module 'unicase/u32-totitle'.
22000         * modules/unicase/u32-totitle-tests: New file.
22001         * tests/unicase/test-u32-totitle.c: New file.
22002
22003         Tests for module 'unicase/u16-totitle'.
22004         * modules/unicase/u16-totitle-tests: New file.
22005         * tests/unicase/test-u16-totitle.c: New file.
22006
22007         Tests for module 'unicase/u8-totitle'.
22008         * modules/unicase/u8-totitle-tests: New file.
22009         * tests/unicase/test-u8-totitle.c: New file.
22010
22011         New module 'unicase/u32-totitle'.
22012         * lib/unicase/u32-totitle.c: New file.
22013         * modules/unicase/u32-totitle: New file.
22014
22015         New module 'unicase/u16-totitle'.
22016         * lib/unicase/u16-totitle.c: New file.
22017         * modules/unicase/u16-totitle: New file.
22018
22019         New module 'unicase/u8-totitle'.
22020         * lib/unicase/u8-totitle.c: New file.
22021         * lib/unicase/u-totitle.h: New file.
22022         * modules/unicase/u8-totitle: New file.
22023
22024         Tests for module 'unicase/u32-tolower'.
22025         * modules/unicase/u32-tolower-tests: New file.
22026         * tests/unicase/test-u32-tolower.c: New file.
22027
22028         Tests for module 'unicase/u16-tolower'.
22029         * modules/unicase/u16-tolower-tests: New file.
22030         * tests/unicase/test-u16-tolower.c: New file.
22031
22032         Tests for module 'unicase/u8-tolower'.
22033         * modules/unicase/u8-tolower-tests: New file.
22034         * tests/unicase/test-u8-tolower.c: New file.
22035
22036         New module 'unicase/u32-tolower'.
22037         * lib/unicase/u32-tolower.c: New file.
22038         * modules/unicase/u32-tolower: New file.
22039
22040         New module 'unicase/u16-tolower'.
22041         * lib/unicase/u16-tolower.c: New file.
22042         * modules/unicase/u16-tolower: New file.
22043
22044         New module 'unicase/u8-tolower'.
22045         * lib/unicase/u8-tolower.c: New file.
22046         * modules/unicase/u8-tolower: New file.
22047
22048         Tests for module 'unicase/u32-toupper'.
22049         * modules/unicase/u32-toupper-tests: New file.
22050         * tests/unicase/test-u32-toupper.c: New file.
22051
22052         Tests for module 'unicase/u16-toupper'.
22053         * modules/unicase/u16-toupper-tests: New file.
22054         * tests/unicase/test-u16-toupper.c: New file.
22055
22056         Tests for module 'unicase/u8-toupper'.
22057         * modules/unicase/u8-toupper-tests: New file.
22058         * tests/unicase/test-u8-toupper.c: New file.
22059
22060         New module 'unicase/u32-toupper'.
22061         * lib/unicase/u32-toupper.c: New file.
22062         * modules/unicase/u32-toupper: New file.
22063
22064         New module 'unicase/u16-toupper'.
22065         * lib/unicase/u16-toupper.c: New file.
22066         * modules/unicase/u16-toupper: New file.
22067
22068         New module 'unicase/u8-toupper'.
22069         * lib/unicase/u8-toupper.c: New file.
22070         * modules/unicase/u8-toupper: New file.
22071
22072         New module 'unicase/u32-casemap'.
22073         * lib/unicase/u32-casemap.c: New file.
22074         * modules/unicase/u32-casemap: New file.
22075
22076         New module 'unicase/u16-casemap'.
22077         * lib/unicase/u16-casemap.c: New file.
22078         * modules/unicase/u16-casemap: New file.
22079
22080         New module 'unicase/u8-casemap'.
22081         * lib/unicase/unicasemap.h: New file.
22082         * lib/unicase/u8-casemap.c: New file.
22083         * lib/unicase/u-casemap.h: New file.
22084         * modules/unicase/u8-casemap: New file.
22085
22086         New module 'unicase/special-casing'.
22087         * lib/unicase/special-casing.h: New file.
22088         * lib/unicase/special-casing.c: New file.
22089         * lib/unicase/special-casing-table.gperf: New file, generated by
22090         gen-uni-tables.c.
22091         * modules/unicase/special-casing: New file.
22092
22093         Tests for module 'unicase/locale-language'.
22094         * modules/unicase/locale-language-tests: New file.
22095         * tests/unicase/test-locale-language.sh: New file.
22096         * tests/unicase/test-locale-language.c: New file.
22097
22098         New module 'unicase/locale-language'.
22099         * lib/unicase/locale-language.c: New file.
22100         * lib/unicase/locale-languages.gperf: New file.
22101         * modules/unicase/locale-language: New file.
22102
22103         Generate more tables for case conversion and case folding.
22104         * lib/gen-uni-tables.c (SCC_*): New enum items.
22105         (struct special_casing_rule): New type.
22106         (casing_rules, num_casing_rules, allocated_casing_rules): New
22107         variables.
22108         (add_casing_rule, fill_casing_rules): New functions.
22109         (struct casefold_rule): New type.
22110         (casefolding_rules, num_casefolding_rules,
22111         allocated_casefolding_rules): New variables.
22112         (fill_casefolding_rules): New function.
22113         (unicode_casefold): New variable.
22114         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
22115         sort_casing_rules, output_casing_rules): New functions.
22116         (main): Accept to more arguments: SpecialCasing.txt and
22117         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
22118         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
22119         Output mapping for casefolding.
22120
22121         * lib/unicase.h: Include stdbool.h, uninorm.h.
22122         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
22123         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
22124         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
22125         arguments.
22126         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
22127         resultp arguments.
22128         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
22129         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
22130         resultp arguments.
22131         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
22132         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
22133         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
22134         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
22135         declarations.
22136         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
22137
22138 2009-03-08  Bruno Haible  <bruno@clisp.org>
22139
22140         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
22141         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
22142         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
22143         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
22144
22145 2009-03-07  Bruno Haible  <bruno@clisp.org>
22146
22147         Adjust u*_normcmp, u*_normcoll API.
22148         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
22149         u16_normcoll, u32_normcoll): Change failure conventions.
22150         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
22151         errno and return -1.
22152         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
22153
22154 2009-03-07  Bruno Haible  <bruno@clisp.org>
22155
22156         Tests for module 'uninorm/u32-normcoll'.
22157         * modules/uninorm/u32-normcoll-tests: New file.
22158         * tests/uninorm/test-u32-normcoll.c: New file.
22159
22160         Tests for module 'uninorm/u16-normcoll'.
22161         * modules/uninorm/u16-normcoll-tests: New file.
22162         * tests/uninorm/test-u16-normcoll.c: New file.
22163
22164         Tests for module 'uninorm/u8-normcoll'.
22165         * modules/uninorm/u8-normcoll-tests: New file.
22166         * tests/uninorm/test-u8-normcoll.c: New file.
22167
22168 2009-03-07  Bruno Haible  <bruno@clisp.org>
22169
22170         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
22171         tests/uninorm/test-u32-normcmp.c.
22172         * tests/uninorm/test-u32-normcmp.c: Include it.
22173         (test_nonascii): New function, extracted from main. Add some more
22174         tests.
22175         (main): Invoke test_ascii and test_nonascii.
22176         * modules/uninorm/u32-normcmp-tests (Files): Add
22177         tests/uninorm/test-u32-normcmp.h.
22178         (Depends-on): Remove uninorm/u32-normcmp.
22179
22180         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
22181         tests/uninorm/test-u16-normcmp.c.
22182         * tests/uninorm/test-u16-normcmp.c: Include it.
22183         (test_nonascii): New function, extracted from main. Add some more
22184         tests.
22185         (main): Invoke test_ascii and test_nonascii.
22186         * modules/uninorm/u16-normcmp-tests (Files): Add
22187         tests/uninorm/test-u16-normcmp.h.
22188         (Depends-on): Remove uninorm/u16-normcmp.
22189
22190         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
22191         tests/uninorm/test-u8-normcmp.c.
22192         * tests/uninorm/test-u8-normcmp.c: Include it.
22193         (test_nonascii): New function, extracted from main. Add some more
22194         tests.
22195         (main): Invoke test_ascii and test_nonascii.
22196         * modules/uninorm/u8-normcmp-tests (Files): Add
22197         tests/uninorm/test-u8-normcmp.h.
22198         (Depends-on): Remove uninorm/u8-normcmp.
22199
22200 2009-03-07  Bruno Haible  <bruno@clisp.org>
22201
22202         New module 'uninorm/u32-normcoll'.
22203         * lib/uninorm/u32-normcoll.c: New file.
22204         * modules/uninorm/u32-normcoll: New file.
22205
22206         New module 'uninorm/u16-normcoll'.
22207         * lib/uninorm/u16-normcoll.c: New file.
22208         * modules/uninorm/u16-normcoll: New file.
22209
22210         New module 'uninorm/u8-normcoll'.
22211         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
22212         declarations.
22213         * lib/uninorm/u8-normcoll.c: New file.
22214         * lib/uninorm/u-normcoll.h: New file.
22215         * modules/uninorm/u8-normcoll: New file.
22216
22217         New module 'uninorm/u32-normxfrm'.
22218         * lib/uninorm/u32-normxfrm.c: New file.
22219         * modules/uninorm/u32-normxfrm: New file.
22220
22221         New module 'uninorm/u16-normxfrm'.
22222         * lib/uninorm/u16-normxfrm.c: New file.
22223         * modules/uninorm/u16-normxfrm: New file.
22224
22225         New module 'uninorm/u8-normxfrm'.
22226         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
22227         declarations.
22228         * lib/uninorm/u8-normxfrm.c: New file.
22229         * lib/uninorm/u-normxfrm.h: New file.
22230         * modules/uninorm/u8-normxfrm: New file.
22231
22232 2009-03-07  Bruno Haible  <bruno@clisp.org>
22233
22234         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
22235         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
22236         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
22237
22238 2009-03-07  Bruno Haible  <bruno@clisp.org>
22239
22240         New module 'memxfrm'.
22241         * lib/memxfrm.h: New file.
22242         * lib/memxfrm.c: New file.
22243         * modules/memxfrm: New file.
22244
22245 2009-03-07  Bruno Haible  <bruno@clisp.org>
22246
22247         New module 'memcmp2'.
22248         * lib/memcmp2.h: New file.
22249         * lib/memcmp2.c: New file.
22250         * modules/memcmp2: New file.
22251
22252 2009-03-07  Bruno Haible  <bruno@clisp.org>
22253
22254         Tests for module 'uninorm/decomposing-form'.
22255         * modules/uninorm/decomposing-form-tests: New file.
22256         * tests/uninorm/test-decomposing-form.c: New file.
22257
22258         New module 'uninorm/decomposing-form'.
22259         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
22260         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
22261         Add 'decomposing_variant' field.
22262         * lib/uninorm/decomposing-form.c: New file.
22263         * lib/uninorm/nfc.c (uninorm_nfc): Update.
22264         * lib/uninorm/nfd.c (uninorm_nfd): Update.
22265         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
22266         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
22267         * modules/uninorm/decomposing-form: New file.
22268         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
22269         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
22270
22271 2009-03-07  Bruno Haible  <bruno@clisp.org>
22272
22273         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
22274         strings.
22275
22276 2009-03-06  Bruno Haible  <bruno@clisp.org>
22277
22278         Tests for module 'uninorm/u32-normcmp'.
22279         * tests/uninorm/test-u32-normcmp.c: New file.
22280         * modules/uninorm/u32-normcmp-tests: New file.
22281
22282         Tests for module 'uninorm/u16-normcmp'.
22283         * tests/uninorm/test-u16-normcmp.c: New file.
22284         * modules/uninorm/u16-normcmp-tests: New file.
22285
22286         Tests for module 'uninorm/u8-normcmp'.
22287         * tests/uninorm/test-u8-normcmp.c: New file.
22288         * modules/uninorm/u8-normcmp-tests: New file.
22289
22290         New module 'uninorm/u32-normcmp'.
22291         * lib/uninorm/u32-normcmp.c: New file.
22292         * modules/uninorm/u32-normcmp: New file.
22293
22294         New module 'uninorm/u16-normcmp'.
22295         * lib/uninorm/u16-normcmp.c: New file.
22296         * modules/uninorm/u16-normcmp: New file.
22297
22298         New module 'uninorm/u8-normcmp'.
22299         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
22300         declarations.
22301         * lib/uninorm/u8-normcmp.c: New file.
22302         * lib/uninorm/u-normcmp.h: New file.
22303         * modules/uninorm/u8-normcmp: New file.
22304
22305 2009-03-06  Bruno Haible  <bruno@clisp.org>
22306
22307         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
22308         Reported by Eric Blake.
22309
22310 2009-03-06  Eric Blake  <ebb9@byu.net>
22311             Bruno Haible  <bruno@clisp.org>
22312
22313         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
22314         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
22315         condition.
22316         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
22317         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
22318         condition.
22319         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
22320
22321 2009-03-06  Eric Blake  <ebb9@byu.net>
22322
22323         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
22324         to avoid compiler warnings.
22325         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
22326
22327 2009-03-05  Bruno Haible  <bruno@clisp.org>
22328
22329         * tests/test-ftell.c (main): Disable test beyond end of file on
22330         FreeMiNT.
22331         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22332
22333 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
22334
22335         * lib/filevercmp.c: Move hidden files up in ordering.
22336         * tests/test-filevercmp.c: Add tests for hidden files.
22337
22338 2009-03-04  Bruno Haible  <bruno@clisp.org>
22339
22340         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
22341         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
22342         AM_CFLAGS.
22343         Reported by Simon Josefsson.
22344
22345 2009-03-03  Bruno Haible  <bruno@clisp.org>
22346
22347         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
22348         Reported by Simon Josefsson.
22349
22350         * doc/ld-version-script.texi: Update node reference.
22351
22352 2009-03-03  Bruno Haible  <bruno@clisp.org>
22353
22354         * modules/visibility (License): Change to 'unlimited'.
22355         Suggested by Simon Josefsson.
22356
22357 2009-03-03  Jim Meyering  <meyering@redhat.com>
22358
22359         unlinkdir: cannot_unlink_dir may modify process state
22360         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
22361         it's neither thread-safe nor appropriate for use in a library.
22362
22363 2009-03-03  Eric Blake  <ebb9@byu.net>
22364
22365         test-closein: silence test under Darwin
22366         * tests/test-closein.sh: Ignore stderr from cat, since we don't
22367         care if it dies from EPIPE or EBADF.
22368
22369 2009-03-03  Bruno Haible  <bruno@clisp.org>
22370
22371         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
22372         earlier.
22373         * doc/visibility.texi: Fix @node and @section.
22374
22375 2009-03-03  Simon Josefsson  <simon@josefsson.org>
22376
22377         * doc/gnulib.texi: Link to sections for ld version script and
22378         visibility.
22379         * doc/visibility.texi: Add @node and @section.
22380         * modules/ld-version-script: New module.
22381         * m4/ld-version-script.m4: New file.
22382         * doc/ld-version-script.texi: New file.
22383
22384 2009-03-02  David Lutterkort  <lutter@redhat.com>
22385
22386         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
22387         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22388
22389 2009-03-02  Bruno Haible  <bruno@clisp.org>
22390
22391         * doc/visibility.texi: Mention libtool's -export-symbols option.
22392
22393 2009-03-02  Jim Meyering  <meyering@redhat.com>
22394
22395         announce-gen: new option: --no-print-checksums
22396         * build-aux/announce-gen (usage): Describe it.
22397         (print_checksums): Print a newline here, not in the [*] footnote.
22398         (main): Honor it.
22399
22400 2009-03-01  Bruno Haible  <bruno@clisp.org>
22401
22402         Use socklen_t in the native Windows replacements prototypes.
22403         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
22404         instead of 'int'.
22405         * lib/getsockopt.c (rpl_getsockopt): Likewise.
22406         * lib/setsockopt.c (rpl_setsockopt): Likewise.
22407         * modules/getsockopt (Depends-on): Add socklen.
22408         * modules/setsockopt (Depends-on): Add socklen.
22409
22410 2009-03-01  Bruno Haible  <bruno@clisp.org>
22411
22412         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
22413         least 4.2.
22414
22415 2009-03-01  Eric Blake  <ebb9@byu.net>
22416             Bruno Haible  <bruno@clisp.org>
22417
22418         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
22419         error messages.
22420         * lib/wait-process.c (wait_subprocess): Omit error message about
22421         deadly signal sent to the child of termsigp != NULL.
22422
22423 2009-03-01  Eric Blake  <ebb9@byu.net>
22424
22425         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
22426
22427 2009-03-01  Bruno Haible  <bruno@clisp.org>
22428
22429         Avoid a gcc warning.
22430         * tests/test-sched.c (b): Make global.
22431         Reported by Eric Blake.
22432
22433 2009-01-19  Martin Lambers  <marlam@marlam.de>
22434
22435         Provide POSIX semantics for socket timeout options on W32.
22436         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
22437         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
22438         * modules/setsockopt: Depend on sys_time module for struct timeval.
22439         * modules/getsockopt: Depend on sys_time module for struct timeval.
22440
22441 2009-03-01  Simon Josefsson  <simon@josefsson.org>
22442
22443         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
22444         __USE_GNU, for consistency with netdb.in.h.
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/fseeko.c (rpl_fseeko): Complete last commit.
22451         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22452
22453 2009-03-01  Bruno Haible  <bruno@clisp.org>
22454
22455         More support for FreeMiNT.
22456         * lib/fpurge.c (fpurge): Correct last commit.
22457         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22458
22459 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22460
22461         Fix unportable awk script in vc-list-files.
22462         * build-aux/vc-list-files: In the replacement awk script, use
22463         substr with a second argument of 1, not zero.
22464         Report by Simon Josefsson.
22465
22466 2009-02-28  Bruno Haible  <bruno@clisp.org>
22467
22468         More support for FreeMiNT.
22469         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
22470         to FreeMiNT today.
22471         * lib/fwriting.c (fwriting): Likewise.
22472         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
22473
22474 2009-02-28  Bruno Haible  <bruno@clisp.org>
22475
22476         * tests/test-freadseek.c (main): Disable test beyond end of file on
22477         FreeMiNT.
22478         * tests/test-ftello.c (main): Likewise.
22479         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22480
22481 2009-02-28  Bruno Haible  <bruno@clisp.org>
22482
22483         Add tentative support for FreeMiNT.
22484         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
22485         * lib/fpurge.c (fpurge): Likewise.
22486         * lib/freadable.c (freadable): Likewise.
22487         * lib/freading.c (freading): Likewise.
22488         * lib/freadptr.c (freadptr): Likewise.
22489         * lib/freadseek.c (freadptrinc): Likewise.
22490         * lib/fseeko.c (rpl_fseeko): Likewise.
22491         * lib/fseterr.c (fseterr): Likewise.
22492         * lib/fwritable.c (fwritable): Likewise.
22493         * lib/fwriting.c (fwriting): Likewise.
22494         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
22495         Hourihane.
22496         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22497
22498 2009-02-28  Bruno Haible  <bruno@clisp.org>
22499
22500         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
22501         SIGCHLD.
22502         Reported by Jim Meyering.
22503
22504 2009-02-28  Bruno Haible  <bruno@clisp.org>
22505
22506         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
22507         Mention the results of these tests on various platforms.
22508         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
22509         order.
22510         * doc/posix-functions/printf.texi: Likewise.
22511         * doc/posix-functions/snprintf.texi: Likewise.
22512         * doc/posix-functions/sprintf.texi: Likewise.
22513         * doc/posix-functions/vfprintf.texi: Likewise.
22514         * doc/posix-functions/vprintf.texi: Likewise.
22515         * doc/posix-functions/vsnprintf.texi: Likewise.
22516         * doc/posix-functions/vsprintf.texi: Likewise.
22517         * doc/glibc-functions/obstack_printf.texi: Likewise.
22518         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22519
22520 2009-02-28  Bruno Haible  <bruno@clisp.org>
22521
22522         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
22523         Reported by Loïc Minier <lool@dooz.org>.
22524
22525 2009-02-27  Bruno Haible  <bruno@clisp.org>
22526
22527         * gnulib-tool (func_import): Make the sed expression used to create the
22528         sed script for updating the .gitignore file POSIX compliant.
22529         Reported by Eric Blake.
22530
22531 2009-02-27  Bruno Haible  <bruno@clisp.org>
22532
22533         * gnulib-tool (sed): Don't alias as "sed --posix".
22534         Reported by Eric Blake.
22535
22536 2009-02-27  Bruno Haible  <bruno@clisp.org>
22537
22538         Avoid test link errors.
22539         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
22540         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
22541         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
22542         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
22543         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22544
22545 2009-02-27  Bruno Haible  <bruno@clisp.org>
22546
22547         Avoid spurious "(cached)" in configure output.
22548         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
22549         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
22550         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22551         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22552         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22553         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22554         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22555         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22556         Reported by Eric Blake.
22557
22558 2009-02-27  Eric Blake  <ebb9@byu.net>
22559
22560         printf: fix regression in previous patch
22561         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
22562
22563 2009-02-27  Bruno Haible  <bruno@clisp.org>
22564
22565         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
22566         value.
22567         * lib/stdint.in.h: Likewise.
22568         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
22569
22570 2009-02-27  Eric Blake  <ebb9@byu.net>
22571
22572         doc: mention more functions added in cygwin 1.7.0
22573         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
22574         addition.
22575         * doc/posix-functions/open_wmemstream.texi: Likewise.
22576         * doc/posix-functions/wcsnlen.texi: Likewise.
22577         * doc/posix-functions/wcsnrtombs.texi: Likewise.
22578         * doc/posix-functions/wcstod.texi: Likewise.
22579         * doc/posix-functions/wcstof.texi: Likewise.
22580         * doc/posix-functions/wcstoimax.texi: Likewise.
22581         * doc/posix-functions/wcstok.texi: Likewise.
22582         * doc/posix-functions/wcstoumax.texi: Likewise.
22583
22584         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
22585         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
22586         * doc/posix-functions/fprintf.texi: Update.
22587         * doc/posix-functions/printf.texi: Update.
22588         * doc/posix-functions/snprintf.texi: Update.
22589         * doc/posix-functions/sprintf.texi: Update.
22590         * doc/posix-functions/vfprintf.texi: Update.
22591         * doc/posix-functions/vprintf.texi: Update.
22592         * doc/posix-functions/vsnprintf.texi: Update.
22593         * doc/posix-functions/vsprintf.texi: Update.
22594         * doc/glibc-functions/obstack_printf.texi: Update.
22595         * doc/glibc-functions/obstack_vprintf.texi: Update.
22596
22597 2009-02-26  Eric Blake  <ebb9@byu.net>
22598
22599         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
22600         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
22601         compilation bug by using runtime conversion.
22602         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22603         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
22604         * modules/ceill-tests (Files): Use nan.h.
22605         * modules/floorl-tests (Files): Likewise.
22606         * modules/frexpl-tests (Files): Likewise.
22607         * modules/isnanl-tests (Files): Likewise.
22608         * modules/ldexpl-tests (Files): Likewise.
22609         * modules/roundl-tests (Files): Likewise.
22610         * modules/truncl-tests (Files): Likewise.
22611         * tests/test-ceill.c (main): Use a working NaN.
22612         * tests/test-floorl.c (main): Likewise.
22613         * tests/test-frexpl.c (main): Likewise.
22614         * tests/test-isnan.c (test_long_double): Likewise.
22615         * tests/test-isnanl.h (main): Likewise.
22616         * tests/test-ldexpl.h (main): Likewise.
22617         * tests/test-roundl.h (main): Likewise.
22618         * tests/test-truncl.h (main): Likewise.
22619         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
22620
22621 2009-02-26  Eric Blake  <ebb9@byu.net>
22622             Bruno Haible  <bruno@clisp.org>
22623
22624         Work around a *printf bug with %ls on Solaris.
22625         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
22626         precision is specified, sprintf stops converting the wide string
22627         argument when the number of bytes that have been produced by this
22628         conversion equals or exceeds the precision.
22629         * doc/posix-functions/fprintf.texi: Update.
22630         * doc/posix-functions/printf.texi: Update.
22631         * doc/posix-functions/snprintf.texi: Update.
22632         * doc/posix-functions/sprintf.texi: Update.
22633         * doc/posix-functions/vfprintf.texi: Update.
22634         * doc/posix-functions/vprintf.texi: Update.
22635         * doc/posix-functions/vsnprintf.texi: Update.
22636         * doc/posix-functions/vsprintf.texi: Update.
22637         * doc/glibc-functions/obstack_printf.texi: Update.
22638         * doc/glibc-functions/obstack_vprintf.texi: Update.
22639
22640 2009-02-26  Eric Blake  <ebb9@byu.net>
22641
22642         stdlib: favor compiler check of random.h
22643         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
22644         to avoid an ObjC random.h installed by Swarm.
22645
22646 2009-02-26  Bruno Haible  <bruno@clisp.org>
22647
22648         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
22649         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
22650         Reported by Gary V. Vaughan <gary@gnu.org>.
22651
22652 2009-02-26  Bruno Haible  <bruno@clisp.org>
22653
22654         Fix *printf behaviour regarding the %ls directive.
22655         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
22656         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
22657         NEED_PRINTF_DIRECTIVE_LS.
22658         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
22659         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
22660         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22661         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
22662         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
22663         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
22664         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22665         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22666         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22667         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22668         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22669         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
22670         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22671         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22672         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22673         * doc/posix-functions/fprintf.texi: Update.
22674         * doc/posix-functions/printf.texi: Update.
22675         * doc/posix-functions/snprintf.texi: Update.
22676         * doc/posix-functions/sprintf.texi: Update.
22677         * doc/posix-functions/vfprintf.texi: Update.
22678         * doc/posix-functions/vprintf.texi: Update.
22679         * doc/posix-functions/vsnprintf.texi: Update.
22680         * doc/posix-functions/vsprintf.texi: Update.
22681         * doc/glibc-functions/obstack_printf.texi: Update.
22682         * doc/glibc-functions/obstack_vprintf.texi: Update.
22683         Reported by Eric Blake.
22684
22685 2009-02-25  Bruno Haible  <bruno@clisp.org>
22686
22687         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
22688         with known value.
22689         Reported by Gary V. Vaughan <gary@gnu.org>.
22690
22691 2009-02-25  Bruno Haible  <bruno@clisp.org>
22692
22693         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
22694         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
22695         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
22696         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
22697         Reported by Gary V. Vaughan <gary@gnu.org>.
22698
22699 2009-02-25  Bruno Haible  <bruno@clisp.org>
22700
22701         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
22702         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
22703         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
22704         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
22705         Reported by Gary V. Vaughan <gary@gnu.org>.
22706
22707 2009-02-25  Eric Blake  <ebb9@byu.net>
22708
22709         tests: skip fseek/ftell tests if ungetc is broken
22710         * m4/ungetc.m4: New file.
22711         * modules/fseek-tests: Split test, so ungetc dependency is
22712         separate from rest of test.
22713         * modules/fseeko-tests: Likewise.
22714         * modules/ftell-tests: Likewise.
22715         * modules/ftello-tests: Likewise.
22716         * tests/test-fseek.c (main): Isolate ungetc dependency.
22717         * tests/test-fseeko.c (main): Likewise.
22718         * tests/test-ftell.c (main): Likewise.
22719         * tests/test-ftello.c (main): Likewise.
22720         * tests/test-fseek2.sh: New file.
22721         * tests/test-fseeko2.sh: Likewise.
22722         * tests/test-ftell2.sh: Likewise.
22723         * tests/test-ftello2.sh: Likewise.
22724
22725 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
22726
22727         test-getaddrinfo: fix usage of skip return code 77
22728         * tests/test-gettaddrinfo.c: Return skip code 77 only
22729         for first occurance of skip (4x77 is not 77)
22730
22731 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
22732
22733         strtod: avoid C99 decl-after-statement
22734         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
22735
22736 2009-02-24  Eric Blake  <ebb9@byu.net>
22737
22738         strtod: detect HP-UX 11.31 bug
22739         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
22740         Reported by Gary V. Vaughan.
22741
22742 2009-02-23  Bruno Haible  <bruno@clisp.org>
22743
22744         Fix invalid read past end of memory block.
22745         * lib/vasnprintf.c (DCHAR_SET): Define.
22746         (local_wcslen): Define only when needed.
22747         (local_strnlen, local_wcsnlen): New functions.
22748         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
22749         directives that involve a conversion ourselves.
22750         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
22751         wcsnlen, mbrtowc, wcrtomb.
22752         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
22753         * tests/test-vasprintf-posix.c (test_function): Likewise.
22754         * tests/test-snprintf-posix.h (test_function): Likewise.
22755         * tests/test-sprintf-posix.h (test_function): Likewise.
22756         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22757
22758 2009-02-22  Bruno Haible  <bruno@clisp.org>
22759
22760         Implement new clarified decomposition of Hangul syllables.
22761         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
22762         of type LTV, return only a pairwise decomposition.
22763         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
22764         Likewise.
22765         * tests/uninorm/test-decomposition.c (main): Updated expected result.
22766         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
22767         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
22768
22769 2009-02-22  Bruno Haible  <bruno@clisp.org>
22770
22771         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
22772         zero-length results and shrink excess allocated memory.
22773         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
22774         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
22775         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
22776         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
22777         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
22778         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
22779         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
22780         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
22781         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
22782         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
22783         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
22784         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
22785
22786 2009-02-21  Bruno Haible  <bruno@clisp.org>
22787
22788         * doc/gnulib.texi: Include safe-alloc.texi earlier.
22789         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
22790         spaces after a period. Put a space between a macro name and its
22791         argument list. Trivial rewordings.
22792         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
22793         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
22794         (main): Return 0 explicitly.
22795
22796 2009-02-21  Bruno Haible  <bruno@clisp.org>
22797
22798         Tests for module 'uninorm/filter'.
22799         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
22800         * modules/uninorm/filter-tests: New file.
22801
22802         New module 'uninorm/filter'.
22803         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
22804         uninorm_filter_flush, uninorm_filter_free): New declarations.
22805         * lib/uninorm/uninorm-filter.c: New file.
22806         * modules/uninorm/filter: New file.
22807
22808 2009-02-21  Bruno Haible  <bruno@clisp.org>
22809
22810         Tests for module 'uninorm/nfkc'.
22811         * tests/uninorm/test-nfkc.c: New file.
22812         * tests/uninorm/test-u8-nfkc.c: New file.
22813         * tests/uninorm/test-u16-nfkc.c: New file.
22814         * tests/uninorm/test-u32-nfkc.c: New file.
22815         * tests/uninorm/test-u32-nfkc-big.sh: New file.
22816         * tests/uninorm/test-u32-nfkc-big.c: New file.
22817         * modules/uninorm/nfkc-tests: New file.
22818
22819         New module 'uninorm/nfkc'.
22820         * lib/uninorm/nfkc.c: New file.
22821         * modules/uninorm/nfkc: New file.
22822
22823         Tests for module 'uninorm/nfkd'.
22824         * tests/uninorm/test-nfkd.c: New file.
22825         * tests/uninorm/test-u8-nfkd.c: New file.
22826         * tests/uninorm/test-u16-nfkd.c: New file.
22827         * tests/uninorm/test-u32-nfkd.c: New file.
22828         * tests/uninorm/test-u32-nfkd-big.sh: New file.
22829         * tests/uninorm/test-u32-nfkd-big.c: New file.
22830         * modules/uninorm/nfkd-tests: New file.
22831
22832         New module 'uninorm/nfkd'.
22833         * lib/uninorm/nfkd.c: New file.
22834         * modules/uninorm/nfkd: New file.
22835
22836         Tests for module 'uninorm/nfc'.
22837         * tests/uninorm/test-nfc.c: New file.
22838         * tests/uninorm/test-u8-nfc.c: New file.
22839         * tests/uninorm/test-u16-nfc.c: New file.
22840         * tests/uninorm/test-u32-nfc.c: New file.
22841         * tests/uninorm/test-u32-nfc-big.sh: New file.
22842         * tests/uninorm/test-u32-nfc-big.c: New file.
22843         * modules/uninorm/nfc-tests: New file.
22844
22845         New module 'uninorm/nfc'.
22846         * lib/uninorm/nfc.c: New file.
22847         * modules/uninorm/nfc: New file.
22848
22849         Tests for module 'uninorm/nfd'.
22850         * tests/uninorm/test-nfd.c: New file.
22851         * tests/uninorm/test-u8-nfd.c: New file.
22852         * tests/uninorm/test-u16-nfd.c: New file.
22853         * tests/uninorm/test-u32-nfd.c: New file.
22854         * tests/uninorm/test-u32-nfd-big.sh: New file.
22855         * tests/uninorm/test-u32-nfd-big.c: New file.
22856         * tests/uninorm/test-u32-normalize-big.h: New file.
22857         * tests/uninorm/test-u32-normalize-big.c: New file.
22858         * tests/uninorm/NormalizationTest.txt: New file, created from
22859         Unicode 5.1.0 NormalizationTest.txt.
22860         * modules/uninorm/nfd-tests: New file.
22861
22862         New module 'uninorm/nfd'.
22863         * lib/uninorm/nfd.c: New file.
22864         * modules/uninorm/nfd: New file.
22865
22866         New module 'uninorm/u32-normalize'.
22867         * lib/uninorm/u32-normalize.c: New file.
22868         * modules/uninorm/u32-normalize: New file.
22869
22870         New module 'uninorm/u16-normalize'.
22871         * lib/uninorm/u16-normalize.c: New file.
22872         * modules/uninorm/u16-normalize: New file.
22873
22874         New module 'uninorm/u8-normalize'.
22875         * lib/uninorm/u8-normalize.c: New file.
22876         * lib/uninorm/normalize-internal.h: New file.
22877         * lib/uninorm/u-normalize-internal.h: New file.
22878         * modules/uninorm/u8-normalize: New file.
22879
22880         New module 'uninorm/decompose-internal'.
22881         * lib/uninorm/decompose-internal.c: New file.
22882         * modules/uninorm/decompose-internal: New file.
22883
22884         Tests for module 'uninorm/composition'.
22885         * tests/uninorm/test-composition.c: New file.
22886         * modules/uninorm/composition-tests: New file.
22887
22888         New module 'uninorm/composition'.
22889         * lib/uninorm/composition.c: New file.
22890         * lib/uninorm/composition-table.gperf: New file, generated by
22891         gen-uni-tables.
22892         * modules/uninorm/composition: New file.
22893
22894         Tests for module 'uninorm/compat-decomposition'.
22895         * tests/uninorm/test-compat-decomposition.c: New file.
22896         * modules/uninorm/compat-decomposition-tests: New file.
22897
22898         New module 'uninorm/compat-decomposition'.
22899         * lib/uninorm/decompose-internal.h: New file.
22900         * lib/uninorm/compat-decomposition.c: New file.
22901         * modules/uninorm/compat-decomposition: New file.
22902
22903         Tests for module 'uninorm/canonical-decomposition'.
22904         * tests/uninorm/test-canonical-decomposition.c: New file.
22905         * modules/uninorm/canonical-decomposition-tests: New file.
22906
22907         New module 'uninorm/canonical-decomposition'.
22908         * lib/uninorm/canonical-decomposition.c: New file.
22909         * modules/uninorm/canonical-decomposition: New file.
22910
22911         Tests for module 'uninorm/decomposition'.
22912         * tests/uninorm/test-decomposition.c: New file.
22913         * modules/uninorm/decomposition-tests: New file.
22914
22915         New module 'uninorm/decomposition'.
22916         * lib/uninorm/decomposition.c: New file.
22917         * modules/uninorm/decomposition: New file.
22918
22919         New module 'uninorm/decomposition-table'.
22920         * lib/uninorm/decomposition-table.h: New file.
22921         * lib/uninorm/decomposition-table.c: New file.
22922         * lib/uninorm/decomposition-table1.h: New file, generated by
22923         gen-uni-tables.
22924         * lib/uninorm/decomposition-table2.h: New file, generated by
22925         gen-uni-tables.
22926         * modules/uninorm/decomposition-table: New file.
22927
22928         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
22929         (UC_DECOMP_*): New enumeration items.
22930         (get_decomposition): New function.
22931         (struct decomp_table): New type.
22932         (output_decomposition, output_decomposition_tables): New functions.
22933         (unicode_composition_exclusions): New variable.
22934         (fill_composition_exclusions, debug_output_composition_tables): New
22935         functions.
22936         (main): Accept one more argument. Invoke fill_composition_exclusions.
22937         Output decomposition and composition tables.
22938
22939         New module 'uninorm/base'.
22940         * lib/uninorm.h: New file.
22941         * lib/unictype.h: Update comment.
22942         * modules/uninorm/base: New file.
22943
22944 2009-02-21  David Lutterkort  <lutter@redhat.com>
22945
22946         Tests for module 'safe-alloc'.
22947         * tests/test-safe-alloc.c: New file.
22948         * modules/safe-alloc-tests: New file.
22949
22950         New module 'safe-alloc'.
22951         * lib/safe-alloc.h: New file.
22952         * lib/safe-alloc.c: New file.
22953         * m4/safe-alloc.m4: New file.
22954         * modules/safe-alloc: New file.
22955         * doc/safe-alloc.texi: New file.
22956         * doc/gnulib.texi: Include it.
22957         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22958         safe-alloc.
22959
22960 2009-02-18  Bruno Haible  <bruno@clisp.org>
22961
22962         Fix link error on non-glibc systems.
22963         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
22964         variable.
22965         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22966
22967 2009-02-18  Jim Meyering  <meyering@redhat.com>
22968
22969         fts: avoid used-uninitialized error due to recent change
22970         * lib/fts.c (fts_read): Guard uses of the new member,
22971         parent->fts_n_dirs_remaining, since it's not relevant for
22972         the parent of a directory specified on the command-line.
22973
22974 2009-02-17  James Youngman  <jay@gnu.org>
22975             Bruno Haible  <bruno@clisp.org>
22976
22977         * m4/include_next.m4: Reformulate comment.
22978
22979 2009-02-16  Jim Meyering  <meyering@redhat.com>
22980
22981         fts: add #if guards so that the fts_lgpl module still builds
22982         * lib/fts.c: Guard just-added hash-table-using parts with
22983         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
22984         Reported by Simon Josefsson.
22985
22986 2009-02-15  Bruno Haible  <bruno@clisp.org>
22987
22988         * modules/array-mergesort-tests: New file.
22989         * tests/test-array-mergesort.c: New file.
22990
22991         New module 'array-mergesort'.
22992         * modules/array-mergesort: New file.
22993         * lib/array-mergesort.h: New file.
22994
22995 2009-02-15  Bruno Haible  <bruno@clisp.org>
22996
22997         Fix 2009-02-07 commit.
22998         * lib/gen-uni-tables.c (output_predicate, output_category,
22999         output_combclass, output_bidi_category, output_decimal_digit,
23000         output_digit, output_numeric, output_mirror, output_scripts,
23001         output_ident_category, output_simple_mapping): Fix format directives.
23002         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
23003
23004 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
23005
23006         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
23007         fixes are available from IBM.
23008
23009 2009-02-13  Jim Meyering  <meyering@redhat.com>
23010
23011         fts: arrange not to stat non-directories in more cases
23012         This makes GNU find (when it doesn't need to stat each file)
23013         *much* more efficient at traversing reiserfs file systems.
23014         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
23015         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
23016         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
23017         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
23018         (leaf_optimization_applies): New function.
23019         (LCO_hash, LCO_compare): New helper functions.
23020         (link_count_optimize_ok): New function.
23021         (fts_stat): Initialize new member (if dir).
23022         (fts_read): Decrement parent's fts_n_dirs_remaining count if
23023         we've just stat'ed a directory.  Skip the stat call when possible.
23024         ---
23025         Note this AFS-related exchange:
23026         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
23027         and note find's pioctl call in find/fstype.c.
23028         But that is necessary only if you want to enable the
23029         optimization for AFS, and for now, I don't.
23030
23031         fts: move a function definition "up" (no semantic change)
23032         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
23033         "up" to precede upcoming use of a related function.
23034
23035 2009-02-11  Jim Meyering  <meyering@redhat.com>
23036
23037         fts: correct internal computation of nlinks (optimization-related)
23038         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
23039         whether the current entry is a directory, so don't test it.
23040
23041 2009-02-10  Bruno Haible  <bruno@clisp.org>
23042
23043         Tests for module 'uniwbrk/ulc-wordbreaks'.
23044         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
23045         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
23046         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
23047
23048         Tests for module 'uniwbrk/u32-wordbreaks'.
23049         * modules/uniwbrk/u32-wordbreaks-tests: New file.
23050         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
23051
23052         Tests for module 'uniwbrk/u16-wordbreaks'.
23053         * modules/uniwbrk/u16-wordbreaks-tests: New file.
23054         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
23055
23056         Tests for module 'uniwbrk/u8-wordbreaks'.
23057         * modules/uniwbrk/u8-wordbreaks-tests: New file.
23058         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
23059
23060 2009-02-10  Bruno Haible  <bruno@clisp.org>
23061
23062         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
23063         property.
23064         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
23065         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
23066         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
23067
23068 2009-02-10  Simon Josefsson  <simon@josefsson.org>
23069
23070         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
23071         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
23072
23073 2009-02-10  Bruno Haible  <bruno@clisp.org>
23074
23075         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
23076         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
23077         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
23078         * lib/unilbrk/u8-possible-linebreaks.c: Update.
23079         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
23080         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
23081
23082 2009-02-09  Simon Josefsson  <simon@josefsson.org>
23083
23084         * lib/sockets.h (gl_fd_to_handle): New function.
23085
23086         * tests/test-sockets.c: Call gl_fd_to_handle.
23087
23088 2009-02-09  Bruno Haible  <bruno@clisp.org>
23089
23090         * doc/havelib.texi: Document the conventions on bi-arch systems.
23091
23092 2009-02-08  Bruno Haible  <bruno@clisp.org>
23093
23094         Document the AC_LIB_LINKFLAGS macro.
23095         * doc/havelib.texi: New file, mostly written on 2005-05-24.
23096         * doc/gnulib.texi: Include it.
23097
23098 2009-02-08  Bruno Haible  <bruno@clisp.org>
23099
23100         Fix wrong order of sections, compared to TOC.
23101         * doc/gnulib.texi: Include relocatable-maint.texi after the
23102         "Regular expressions" node, not before.
23103
23104 2009-02-08  Bruno Haible  <bruno@clisp.org>
23105
23106         Tests for module 'unicase/totitle'.
23107         * modules/unicase/totitle-tests: New file.
23108
23109         Tests for module 'unicase/tolower'.
23110         * modules/unicase/tolower-tests: New file.
23111
23112         Tests for module 'unicase/toupper'.
23113         * modules/unicase/toupper-tests: New file.
23114         * tests/unicase/test-mapping-part1.h: New file.
23115         * tests/unicase/test-mapping-part2.h: New file.
23116
23117         New module 'unicase/totitle'.
23118         * modules/unicase/totitle: New file.
23119         * lib/unicase/totitle.c: New file.
23120
23121         New module 'unicase/tolower'.
23122         * modules/unicase/tolower: New file.
23123         * lib/unicase/tolower.c: New file.
23124
23125         New module 'unicase/toupper'.
23126         * modules/unicase/toupper: New file.
23127         * lib/unicase/toupper.c: New file.
23128         * lib/unicase/simple-mapping.h: New file.
23129
23130         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
23131         (mapping_table): New structure.
23132         (output_simple_mapping): New function.
23133         (main): Invoke output_simple_mapping_test and output_simple_mapping.
23134         * modules/gen-uni-tables (Description): Update.
23135         * lib/unicase/toupper.h: New file, automatically generated by
23136         gen-uni-tables.
23137         * lib/unicase/tolower.h: New file, automatically generated by
23138         gen-uni-tables.
23139         * lib/unicase/totitle.h: New file, automatically generated by
23140         gen-uni-tables.
23141         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
23142         gen-uni-tables.
23143         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
23144         gen-uni-tables.
23145         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
23146         gen-uni-tables.
23147
23148         New module 'unicase/base'.
23149         * modules/unicase/base: New file.
23150         * lib/unicase.h: New file.
23151
23152 2009-02-08  Bruno Haible  <bruno@clisp.org>
23153
23154         New module 'uniwbrk/ulc-wordbreaks'.
23155         * modules/uniwbrk/ulc-wordbreaks: New file.
23156         * lib/uniwbrk/ulc-wordbreaks.c: New file.
23157
23158         New module 'uniwbrk/u32-wordbreaks'.
23159         * modules/uniwbrk/u32-wordbreaks: New file.
23160         * lib/uniwbrk/u32-wordbreaks.c: New file.
23161
23162         New module 'uniwbrk/u16-wordbreaks'.
23163         * modules/uniwbrk/u16-wordbreaks: New file.
23164         * lib/uniwbrk/u16-wordbreaks.c: New file.
23165
23166         New module 'uniwbrk/u8-wordbreaks'.
23167         * modules/uniwbrk/u8-wordbreaks: New file.
23168         * lib/uniwbrk/u8-wordbreaks.c: New file.
23169         * lib/uniwbrk/u-wordbreaks.h: New file.
23170
23171         New module 'uniwbrk/table'.
23172         * modules/uniwbrk/table: New file.
23173         * lib/uniwbrk/wbrktable.h: New file.
23174         * lib/uniwbrk/wbrktable.c: New file.
23175
23176         New module 'uniwbrk/wordbreak-property'.
23177         * modules/uniwbrk/wordbreak-property: New file.
23178         * lib/uniwbrk/wordbreak-property.c: New file.
23179
23180         * lib/gen-uni-tables.c (WBP_*): New enum items.
23181         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
23182         (unicode_org_wbp): New variable.
23183         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
23184         New functions.
23185         (wbp_table): New structure.
23186         (output_wbp, output_wbrk_tables): New functions.
23187         (main): Accept additional argument. Invoke fill_org_wbp,
23188         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
23189         output_wbrk_tables.
23190         * modules/gen-uni-tables (Description): Update.
23191         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
23192         gen-uni-tables.
23193
23194         New module 'uniwbrk/base'.
23195         * modules/uniwbrk/base: New file.
23196         * lib/uniwbrk.h: New file.
23197
23198 2009-02-08  Bruno Haible  <bruno@clisp.org>
23199
23200         Update to Unicode 5.1.0.
23201         * lib/gen-uni-tables.c (is_property_alphabetic): Include
23202         U+2185..U+2188.
23203         (is_property_default_ignorable_code_point): Don't include characters
23204         of category Cc or Cs and not-a-characters.
23205         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
23206         U+0D79, U+109E, U+109F, U+A60C.
23207         * lib/unictype/bidi_of.h: Regenerated.
23208         * lib/unictype/blocks.h: Regenerated.
23209         * lib/unictype/categ_C.h: Regenerated.
23210         * lib/unictype/categ_Cf.h: Regenerated.
23211         * lib/unictype/categ_Cn.h: Regenerated.
23212         * lib/unictype/categ_L.h: Regenerated.
23213         * lib/unictype/categ_Ll.h: Regenerated.
23214         * lib/unictype/categ_Lm.h: Regenerated.
23215         * lib/unictype/categ_Lo.h: Regenerated.
23216         * lib/unictype/categ_Lu.h: Regenerated.
23217         * lib/unictype/categ_M.h: Regenerated.
23218         * lib/unictype/categ_Mc.h: Regenerated.
23219         * lib/unictype/categ_Me.h: Regenerated.
23220         * lib/unictype/categ_Mn.h: Regenerated.
23221         * lib/unictype/categ_N.h: Regenerated.
23222         * lib/unictype/categ_Nd.h: Regenerated.
23223         * lib/unictype/categ_Nl.h: Regenerated.
23224         * lib/unictype/categ_No.h: Regenerated.
23225         * lib/unictype/categ_P.h: Regenerated.
23226         * lib/unictype/categ_Pd.h: Regenerated.
23227         * lib/unictype/categ_Pe.h: Regenerated.
23228         * lib/unictype/categ_Pf.h: Regenerated.
23229         * lib/unictype/categ_Pi.h: Regenerated.
23230         * lib/unictype/categ_Po.h: Regenerated.
23231         * lib/unictype/categ_Ps.h: Regenerated.
23232         * lib/unictype/categ_S.h: Regenerated.
23233         * lib/unictype/categ_Sk.h: Regenerated.
23234         * lib/unictype/categ_Sm.h: Regenerated.
23235         * lib/unictype/categ_So.h: Regenerated.
23236         * lib/unictype/categ_of.h: Regenerated.
23237         * lib/unictype/combining.h: Regenerated.
23238         * lib/unictype/ctype_alnum.h: Regenerated.
23239         * lib/unictype/ctype_alpha.h: Regenerated.
23240         * lib/unictype/ctype_graph.h: Regenerated.
23241         * lib/unictype/ctype_lower.h: Regenerated.
23242         * lib/unictype/ctype_print.h: Regenerated.
23243         * lib/unictype/ctype_punct.h: Regenerated.
23244         * lib/unictype/ctype_upper.h: Regenerated.
23245         * lib/unictype/decdigit.h: Regenerated.
23246         * lib/unictype/digit.h: Regenerated.
23247         * lib/unictype/mirror.h: Regenerated.
23248         * lib/unictype/numeric.h: Regenerated.
23249         * lib/unictype/pr_alphabetic.h: Regenerated.
23250         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
23251         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
23252         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
23253         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
23254         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
23255         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
23256         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
23257         * lib/unictype/pr_combining.h: Regenerated.
23258         * lib/unictype/pr_dash.h: Regenerated.
23259         * lib/unictype/pr_decimal_digit.h: Regenerated.
23260         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
23261         * lib/unictype/pr_deprecated.h: Regenerated.
23262         * lib/unictype/pr_diacritic.h: Regenerated.
23263         * lib/unictype/pr_extender.h: Regenerated.
23264         * lib/unictype/pr_format_control.h: Regenerated.
23265         * lib/unictype/pr_grapheme_base.h: Regenerated.
23266         * lib/unictype/pr_grapheme_extend.h: Regenerated.
23267         * lib/unictype/pr_grapheme_link.h: Regenerated.
23268         * lib/unictype/pr_id_continue.h: Regenerated.
23269         * lib/unictype/pr_id_start.h: Regenerated.
23270         * lib/unictype/pr_ideographic.h: Regenerated.
23271         * lib/unictype/pr_ignorable_control.h: Regenerated.
23272         * lib/unictype/pr_lowercase.h: Regenerated.
23273         * lib/unictype/pr_math.h: Regenerated.
23274         * lib/unictype/pr_numeric.h: Regenerated.
23275         * lib/unictype/pr_other_alphabetic.h: Regenerated.
23276         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
23277         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
23278         * lib/unictype/pr_other_id_continue.h: Regenerated.
23279         * lib/unictype/pr_other_lowercase.h: Regenerated.
23280         * lib/unictype/pr_other_math.h: Regenerated.
23281         * lib/unictype/pr_punctuation.h: Regenerated.
23282         * lib/unictype/pr_sentence_terminal.h: Regenerated.
23283         * lib/unictype/pr_soft_dotted.h: Regenerated.
23284         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
23285         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
23286         * lib/unictype/pr_unified_ideograph.h: Regenerated.
23287         * lib/unictype/pr_uppercase.h: Regenerated.
23288         * lib/unictype/pr_xid_continue.h: Regenerated.
23289         * lib/unictype/pr_xid_start.h: Regenerated.
23290         * lib/unictype/pr_zero_width.h: Regenerated.
23291         * lib/unictype/scripts.h: Regenerated.
23292         * lib/unictype/scripts_byname.gperf: Regenerated.
23293         * lib/unictype/sy_java_ident.h: Regenerated.
23294         * lib/unilbrk/lbrkprop1.h: Regenerated.
23295         * lib/unilbrk/lbrkprop2.h: Regenerated.
23296         * tests/unictype/test-categ_C.c: Regenerated.
23297         * tests/unictype/test-categ_Cf.c: Regenerated.
23298         * tests/unictype/test-categ_Cn.c: Regenerated.
23299         * tests/unictype/test-categ_L.c: Regenerated.
23300         * tests/unictype/test-categ_Ll.c: Regenerated.
23301         * tests/unictype/test-categ_Lm.c: Regenerated.
23302         * tests/unictype/test-categ_Lo.c: Regenerated.
23303         * tests/unictype/test-categ_Lu.c: Regenerated.
23304         * tests/unictype/test-categ_M.c: Regenerated.
23305         * tests/unictype/test-categ_Mc.c: Regenerated.
23306         * tests/unictype/test-categ_Me.c: Regenerated.
23307         * tests/unictype/test-categ_Mn.c: Regenerated.
23308         * tests/unictype/test-categ_N.c: Regenerated.
23309         * tests/unictype/test-categ_Nd.c: Regenerated.
23310         * tests/unictype/test-categ_Nl.c: Regenerated.
23311         * tests/unictype/test-categ_No.c: Regenerated.
23312         * tests/unictype/test-categ_P.c: Regenerated.
23313         * tests/unictype/test-categ_Pd.c: Regenerated.
23314         * tests/unictype/test-categ_Pe.c: Regenerated.
23315         * tests/unictype/test-categ_Pf.c: Regenerated.
23316         * tests/unictype/test-categ_Pi.c: Regenerated.
23317         * tests/unictype/test-categ_Po.c: Regenerated.
23318         * tests/unictype/test-categ_Ps.c: Regenerated.
23319         * tests/unictype/test-categ_S.c: Regenerated.
23320         * tests/unictype/test-categ_Sk.c: Regenerated.
23321         * tests/unictype/test-categ_Sm.c: Regenerated.
23322         * tests/unictype/test-categ_So.c: Regenerated.
23323         * tests/unictype/test-ctype_alnum.c: Regenerated.
23324         * tests/unictype/test-ctype_alpha.c: Regenerated.
23325         * tests/unictype/test-ctype_graph.c: Regenerated.
23326         * tests/unictype/test-ctype_lower.c: Regenerated.
23327         * tests/unictype/test-ctype_print.c: Regenerated.
23328         * tests/unictype/test-ctype_punct.c: Regenerated.
23329         * tests/unictype/test-ctype_upper.c: Regenerated.
23330         * tests/unictype/test-decdigit.h: Regenerated.
23331         * tests/unictype/test-digit.h: Regenerated.
23332         * tests/unictype/test-numeric.h: Regenerated.
23333         * tests/unictype/test-pr_alphabetic.c: Regenerated.
23334         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
23335         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
23336         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
23337         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
23338         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
23339         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
23340         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
23341         * tests/unictype/test-pr_combining.c: Regenerated.
23342         * tests/unictype/test-pr_dash.c: Regenerated.
23343         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
23344         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
23345         * tests/unictype/test-pr_deprecated.c: Regenerated.
23346         * tests/unictype/test-pr_diacritic.c: Regenerated.
23347         * tests/unictype/test-pr_extender.c: Regenerated.
23348         * tests/unictype/test-pr_format_control.c: Regenerated.
23349         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
23350         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
23351         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
23352         * tests/unictype/test-pr_id_continue.c: Regenerated.
23353         * tests/unictype/test-pr_id_start.c: Regenerated.
23354         * tests/unictype/test-pr_ideographic.c: Regenerated.
23355         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
23356         * tests/unictype/test-pr_lowercase.c: Regenerated.
23357         * tests/unictype/test-pr_math.c: Regenerated.
23358         * tests/unictype/test-pr_numeric.c: Regenerated.
23359         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
23360         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
23361         Regenerated.
23362         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
23363         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
23364         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
23365         * tests/unictype/test-pr_other_math.c: Regenerated.
23366         * tests/unictype/test-pr_punctuation.c: Regenerated.
23367         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
23368         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
23369         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
23370         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
23371         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
23372         * tests/unictype/test-pr_uppercase.c: Regenerated.
23373         * tests/unictype/test-pr_xid_continue.c: Regenerated.
23374         * tests/unictype/test-pr_xid_start.c: Regenerated.
23375         * tests/unictype/test-pr_zero_width.c: Regenerated.
23376
23377         Update to Unicode 5.1.0.
23378         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
23379         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
23380         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
23381         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
23382         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
23383         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
23384         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
23385         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
23386         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
23387         (nonspacing_table_ind): Update.
23388         * tests/uniwidth/test-uc_width2.sh: Update expected result.
23389
23390         Update to Unicode 5.1.0.
23391         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
23392         code transform.
23393         * lib/uniname/uniname.c (unicode_character_name,
23394         unicode_name_character): Add the range 0x1Fxxx to the code transform.
23395         * lib/uniname/uninames.h: Regenerated.
23396         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
23397
23398 2009-02-07  Bruno Haible  <bruno@clisp.org>
23399
23400         Merge gen-ctype and gen-lbrk into a single program.
23401         * lib/gen-uni-tables.c: New file, incorporating
23402         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
23403         Add directory prefixes to the names of the generated files.
23404         * lib/unictype/gen-ctype.c: Remove file.
23405         * lib/unilbrk/gen-lbrk.c: Remove file.
23406         * modules/gen-uni-tables: New file.
23407         * modules/unictype/gen-ctype: Remove file.
23408         * modules/unilbrk/gen-lbrk: Remove file.
23409
23410 2009-02-07  Bruno Haible  <bruno@clisp.org>
23411
23412         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
23413
23414         New module 'unistr/u32-strcoll'.
23415         * modules/unistr/u32-strcoll: New file.
23416         * lib/unistr/u32-strcoll.c: New file.
23417
23418         New module 'unistr/u16-strcoll'.
23419         * modules/unistr/u16-strcoll: New file.
23420         * lib/unistr/u16-strcoll.c: New file.
23421
23422         New module 'unistr/u8-strcoll'.
23423         * modules/unistr/u8-strcoll: New file.
23424         * lib/unistr/u8-strcoll.c: New file.
23425         * lib/unistr/u-strcoll.h: New file.
23426
23427 2009-02-07  Bruno Haible  <bruno@clisp.org>
23428
23429         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
23430         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23431         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23432         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
23433         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
23434         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
23435
23436 2009-02-07  Bruno Haible  <bruno@clisp.org>
23437
23438         Make 64-bit clean.
23439         * lib/unictype/gen-ctype.c (output_predicate, output_category,
23440         output_combclass, output_bidi_category, output_decimal_digit,
23441         output_digit, output_numeric, output_mirror, output_scripts,
23442         output_ident_category): Use proper width specifier in format strings.
23443
23444 2009-02-07  Bruno Haible  <bruno@clisp.org>
23445
23446         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
23447         failure behaviour.
23448
23449 2009-02-07  Jim Meyering  <meyering@redhat.com>
23450
23451         regex: avoid compilation failure with upcoming gcc-4.4
23452         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
23453         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
23454         "... error: integer overflow in preprocessor expression".
23455
23456 2009-02-05  Ben Pfaff  <blp@gnu.org>
23457
23458         Fix link errors on Windows when close module is used.
23459         * modules/close: Add $(LIB_CLOSE) to Link section.
23460         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
23461         $(LIB_CLOSE) on Windows.
23462
23463 2009-02-05  Jim Meyering  <meyering@redhat.com>
23464
23465         still avoid unused-parameter warnings, but do it cleanly
23466         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
23467         (get_fs_usage): Cast to void instead.
23468         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
23469         (dev_from_mount_options, read_file_system_list): Cast to void.
23470         Prompted by Bruno Haible.
23471
23472 2009-02-04  Jim Meyering  <meyering@redhat.com>
23473
23474         fsusage.c: correct copyright year
23475         * lib/fsusage.c: Reflect year in which the change is pushed into
23476
23477         avoid misc. warnings
23478         * lib/fsusage.c (UNUSED_PARAM): Define.
23479         (get_fs_usage): Mark parameter "disk" as unused.
23480         * lib/getugroups.c (getgrent): Use "void" in prototype.
23481         * lib/mountlist.c: Mark unused parameters.
23482         (read_file_system_list): Declare a local with "const".
23483         * lib/nanosleep.c (getnow): Declare static.
23484         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
23485
23486         dirfd: set errno upon failure
23487         * lib/dirfd.c: Include <errno.h>.
23488         Set errno to ENOTSUP when returning -1.
23489         * modules/dirfd (Depends-on): Add errno.
23490         Suggested by John Kodis <kodis@comcast.net>.
23491
23492 2009-02-01  Bruno Haible  <bruno@clisp.org>
23493
23494         Don't assume sizeof (long) >= sizeof (void *).
23495         * lib/memcmp.c: Include stdint.h.
23496         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
23497         srcp2 to 'const byte *'.
23498         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
23499         types to uintptr_t.
23500         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
23501         * modules/memcmp (Depends-on): Add stdint.
23502         Reported by Ozkan Sezer <sezeroz@gmail.com>.
23503
23504 2009-01-30  Eric Blake  <ebb9@byu.net>
23505
23506         fix more require-before-expand issues
23507         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
23508         expand, AC_PROG_AWK.
23509         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
23510
23511 2009-01-28  Eric Blake  <ebb9@byu.net>
23512
23513         version-etc: use consistent URL formatting
23514         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
23515         Improve formatting.  Use fputs for string without %.
23516
23517 2009-01-28  Jim Meyering  <meyering@redhat.com>
23518
23519         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
23520         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
23521         "underquoted definition of NAME" from autoconf-2.59.
23522
23523 2009-01-28  Bruno Haible  <bruno@clisp.org>
23524
23525         * doc/gnulib.texi: Add "Obsolete modules" to index.
23526
23527 2009-01-28  Jim Meyering  <meyering@redhat.com>
23528
23529         useless-if-before-free: recognize more variants
23530         * build-aux/useless-if-before-free: Also recognize e.g.,
23531         if (NULL != p) free (p);
23532
23533 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
23534
23535         test-getaddrinfo: skip (don't fail) this test when there's no network
23536         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
23537         on the presumption that it means you lack network access.
23538
23539 2009-01-26  Jim Meyering  <meyering@redhat.com>
23540
23541         fflush: avoid warnings on modern systems
23542         * lib/fflush.c (rpl_fflush): Move declarations of locals,
23543         pos and result, into scopes where they're used.
23544
23545 2009-01-26  Eric Blake  <ebb9@byu.net>
23546
23547         Silence warning reintroduced by recent extensions patch.
23548         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
23549         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
23550         autoconf.
23551
23552         Backport improved autoconf semantics of AC_DEFUN_ONCE.
23553         * m4/00gnulib.m4: New file.
23554         * gnulib-tool (func_get_filelist): Always use it.
23555         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
23556         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
23557
23558 2009-01-25  Bruno Haible  <bruno@clisp.org>
23559
23560         Make test-quotearg work on MacOS X and AIX.
23561         * tests/test-quotearg.sh: New file.
23562         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
23563         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
23564         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
23565         include <libintl.h>.
23566         (fake_locale): Remove variable.
23567         (gettext, dgettext, dcgettext): Remove functions.
23568         (main): Instead of setting a fake locale, set a real locale. Call
23569         textdomain and bindtextdomain.
23570         * modules/quotearg-tests (Files): Add the new files.
23571         (Depends-on): Add gettext, setenv, unsetenv.
23572         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
23573         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
23574         Augment TESTS_ENVIRONMENT.
23575
23576 2009-01-25  Bruno Haible  <bruno@clisp.org>
23577
23578         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
23579         fr_FR.ISO8859-1 locale on MacOS X.
23580         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
23581         ja_JP.eucJP locale on MacOS X.
23582         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
23583         zh_CN.GB18030 locale on MacOS X.
23584
23585 2009-01-25  Bruno Haible  <bruno@clisp.org>
23586
23587         Avoid link errors on MacOS X 10.3.
23588         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
23589         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23590
23591 2009-01-25  Bruno Haible  <bruno@clisp.org>
23592
23593         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23594         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
23595         * modules/pipe (Files): Remove m4/posix_spawn.m4.
23596         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23597         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
23598         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23599         posix_spawnattr_init, posix_spawnattr_setsigmask,
23600         posix_spawnattr_setflags, posix_spawnattr_destroy.
23601
23602         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23603         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
23604         * modules/execute (Files): Remove m4/posix_spawn.m4.
23605         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23606         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23607         posix_spawnattr_init, posix_spawnattr_setsigmask,
23608         posix_spawnattr_setflags, posix_spawnattr_destroy.
23609
23610 2009-01-25  Bruno Haible  <bruno@clisp.org>
23611
23612         * lib/glthread/threadlib.c: Include <stdlib.h>.
23613
23614 2009-01-25  Bruno Haible  <bruno@clisp.org>
23615
23616         * lib/glthread/threadlib.c (dummy): New declaration.
23617
23618 2009-01-25  Bruno Haible  <bruno@clisp.org>
23619
23620         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
23621         multibyte characters also for the GB18030 encoding. Don't crash when
23622         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
23623
23624 2009-01-25  Bruno Haible  <bruno@clisp.org>
23625
23626         Avoid redefining 'struct random_data' on OSF/1 5.1.
23627         * lib/stdlib.in.h: Include <random.h> if it exists.
23628         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
23629         HAVE_RANDOM_H. Include <random.h> when testing whether
23630         'struct random_data' exists.
23631         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
23632
23633 2009-01-25  Bruno Haible  <bruno@clisp.org>
23634
23635         Don't install charset.alias on MacOS X >= 10.3.
23636         * lib/localcharset.c (DARWIN7): New macro.
23637         (get_charset_aliases): Hardcode the result for Darwin7.
23638         * modules/localcharset (install-exec-local): Don't install
23639         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
23640
23641 2009-01-25  Bruno Haible  <bruno@clisp.org>
23642
23643         Don't install charset.alias on mingw and Cygwin.
23644         * modules/localcharset (install-exec-local): Don't install
23645         charset.alias on mingw and Cygwin, if the file does not yet exist.
23646         The result for these platforms is hardcoded in localcharset.c.
23647
23648 2009-01-25  Bruno Haible  <bruno@clisp.org>
23649
23650         Make it possible again to use AC_GNU_SOURCE together with gnulib.
23651         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
23652         before requiring AC_USE_SYSTEM_EXTENSIONS.
23653
23654 2009-01-25  Jim Meyering  <meyering@redhat.com>
23655
23656         c-strtod: avoid warnings
23657         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
23658         "assignment discards qualifiers from pointer target type" warnings.
23659
23660 2009-01-24  Bruno Haible  <bruno@clisp.org>
23661
23662         Add support for non-UTF-8 locales on MacOS X.
23663         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
23664         canonical encodings. For Darwin 7 and newer, don't map traditional
23665         encodings to UTF-8.
23666         Reported by Vincent Lefevre <vincent@vinc17.org>
23667         at <http://savannah.gnu.org/bugs/?25235>.
23668
23669 2009-01-24  Bruno Haible  <bruno@clisp.org>
23670
23671         * doc/gnulib.texi (Obsolete modules): New section.
23672         Reported by Mike Frysinger <vapier@gentoo.org>.
23673
23674 2009-01-24  Bruno Haible  <bruno@clisp.org>
23675
23676         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
23677         (%.dvi): New rule.
23678
23679 2009-01-24  Bruno Haible  <bruno@clisp.org>
23680
23681         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
23682         Reported by Eric Blake.
23683
23684 2009-01-24  Bruno Haible  <bruno@clisp.org>
23685
23686         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
23687         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
23688         Reported by Gary V. Vaughan <gary@gnu.org>.
23689
23690 2009-01-24  Bruno Haible  <bruno@clisp.org>
23691
23692         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
23693
23694 2009-01-23  Bruno Haible  <bruno@clisp.org>
23695
23696         Make c-strtod, c-strtold usable in libraries.
23697         * lib/c-strtod.c: Include string.h instead of xalloc.h.
23698         (C_STRTOD): Call strdup instead of xstrdup.
23699         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
23700         * modules/c-strtold (Depends-on): Likewise.
23701         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
23702         * NEWS: Mention the change.
23703         Reported by Michael Gold <mgold@ncf.ca>.
23704
23705 2009-01-23  Jim Meyering  <meyering@redhat.com>
23706
23707         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
23708         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
23709         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
23710
23711 2009-01-23  Simon Josefsson  <simon@josefsson.org>
23712
23713         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
23714         GNU CoreUtils.
23715         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
23716         * modules/version-etc (Description): Update.
23717
23718 2009-01-22  Bruno Haible  <bruno@clisp.org>
23719
23720         Cache the C locale object.
23721         * lib/c-strtod.c (c_locale_cache): New variable.
23722         (c_locale): New function.
23723         (C_STRTOD): Use it, and don't call freelocale.
23724         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
23725         Suggested by Paolo Bonzini.
23726
23727 2009-01-21  Bruno Haible  <bruno@clisp.org>
23728
23729         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
23730         conditions other than overflow.
23731
23732 2009-01-21  Bruno Haible  <bruno@clisp.org>
23733
23734         * lib/c-strtod.c: Include errno.h.
23735         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
23736         value from STRTOD_L and STRTOD.
23737
23738 2009-01-21  Bruno Haible  <bruno@clisp.org>
23739         and Jim Meyering  <meyering@redhat.com>
23740
23741         nanosleep: skip configure test (fail it) for apple universal builds
23742         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
23743         universal builds, assume that nanosleep does not work.
23744         * modules/nanosleep (Depends-on): Add multiarch.
23745
23746         mktime: skip configure test (fail it) for apple universal builds
23747         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
23748         universal builds, assume that mktime does not work.
23749         * modules/mktime (Depends-on): Add multiarch.
23750
23751 2009-01-21  Eric Blake  <ebb9@byu.net>
23752
23753         multiarch: avoid expand-before-require warning
23754         * modules/multiarch (configure.ac): Require, rather than expand,
23755         gl_MULTIARCH.
23756         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
23757         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
23758         enforce that all clients require it.  Partial reversion of
23759         2008-12-29 patch.
23760
23761         error: avoid expand-before-require warning
23762         * modules/errno (configure.ac): Require, rather than expand,
23763         gl_HEADER_ERRNO_H.
23764         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
23765         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
23766         enforce that all clients require it.
23767
23768         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
23769         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
23770         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
23771         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
23772
23773 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
23774
23775         Revert:
23776         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23777
23778         regex: do not depend on obsolete modules.
23779         * modules/regex: Remove memcmp and memmove.
23780
23781 2009-01-20  Bruno Haible  <bruno@clisp.org>
23782
23783         Make the 'link' module link on Windows NT 4.
23784         * lib/link.c (_WIN32_WINNT): Don't define.
23785         (CreateHardLinkFuncType): New type.
23786         (CreateHardLinkFunc, initialized): New variables.
23787         (initialize): New function.
23788         (link): Invoke CreateHardLink indirectly through the function pointer.
23789
23790 2009-01-20  Bruno Haible  <bruno@clisp.org>
23791
23792         Fix compilation failure on mingw.
23793         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
23794
23795 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
23796
23797         * doc/c-strtod.texi: Mention a couple of restrictions.
23798
23799 2009-01-20  Jim Meyering  <meyering@redhat.com>
23800
23801         gettimeofday: move more declarations out of functions
23802         * lib/gettimeofday.c: Move extern declarations of tzset and
23803         gmtime out of containing functions.  Prompted by Bruno Haible.
23804
23805 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23806
23807         regex: do not depend on obsolete modules.
23808         * modules/regex: Remove memcmp and memmove.
23809
23810 2009-01-19  Bruno Haible  <bruno@clisp.org>
23811
23812         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23813         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
23814         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23815         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
23816         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
23817
23818 2009-01-19  Bruno Haible  <bruno@clisp.org>
23819
23820         * tests/test-link.c: Include <errno.h>.
23821         (main): Exit with code 77 when a hard link cannot be created due to
23822         the file system.
23823         * tests/test-link.sh: Skip test when a hard link cannot be created due
23824         to the file system.
23825         Suggested by Eric Blake.
23826
23827 2009-01-19  Martin Lambers  <marlam@marlam.de>
23828
23829         * modules/link-tests: New file.
23830         * tests/test-link.sh: New file.
23831         * tests/test-link.c: New file.
23832
23833 2009-01-19  Eric Blake  <ebb9@byu.net>
23834
23835         doc: mention another function added in cygwin 1.7.0
23836         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
23837         Another new function in cygwin 1.7.
23838
23839 2009-01-19  Bruno Haible  <bruno@clisp.org>
23840
23841         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23842         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
23843         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
23844         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23845         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23846         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
23847         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23848         * m4/md4.m4 (gl_MD4): Likewise.
23849         * m4/md5.m4 (gl_MD5): Likewise.
23850         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
23851         * m4/sha1.m4 (gl_SHA1): Likewise.
23852         * m4/sha256.m4 (gl_SHA256): Likewise.
23853         * m4/sha512.m4 (gl_SHA512): Likewise.
23854
23855 2009-01-19  Bruno Haible  <bruno@clisp.org>
23856
23857         * modules/uniname/uniname-tests (Depends-on): Add progname.
23858         * tests/uniname/test-uninames.c: Include progname.h.
23859         (main): Call set_program_name.
23860
23861         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
23862         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
23863         (main): Call set_program_name.
23864
23865         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
23866         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
23867         (main): Call set_program_name.
23868
23869         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
23870         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
23871         (main): Call set_program_name.
23872
23873         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
23874         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
23875         (main): Call set_program_name.
23876
23877         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
23878         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
23879         (main): Call set_program_name.
23880
23881         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
23882         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
23883         (main): Call set_program_name.
23884
23885         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
23886         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
23887         (main): Call set_program_name.
23888
23889         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
23890         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
23891         (main): Call set_program_name.
23892
23893 2009-01-19  Eric Blake  <ebb9@byu.net>
23894
23895         test-unistd: test previous patch
23896         * tests/test-unistd.c: Test *_FILENO macros.
23897
23898         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
23899         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23900         Guarantee a definition.
23901         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
23902         * modules/unistd-safer (Depends-on): Add dependency on unistd.
23903         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
23904         * lib/dup-safer.c (STDERR_FILENO): Likewise.
23905         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23906         Likewise.
23907         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
23908         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
23909         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23910         Likewise.
23911         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
23912         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
23913         (STDERR_FILENO): Likewise.
23914         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
23915         (STDERR_FILENO): Likewise.
23916         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
23917         (STDERR_FILENO): Likewise.
23918         Reported by Elbert Pol.
23919
23920 2009-01-19  Eric Blake  <ebb9@byu.net>
23921
23922         doc: mention more functions added in cygwin 1.7.0
23923         * doc/posix-functions/abort.texi (abort): Update wording related
23924         to cygwin.
23925         * doc/posix-functions/daylight.texi (daylight): Likewise.
23926         * doc/posix-functions/optarg.texi (optarg): Likewise.
23927         * doc/posix-functions/optarg.texi (opterr): Likewise.
23928         * doc/posix-functions/optarg.texi (optind): Likewise.
23929         * doc/posix-functions/optarg.texi (optopt): Likewise.
23930         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
23931         worked in 1.5.x, and was withdrawn in 1.7.
23932         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
23933         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
23934         cygwin versions.
23935         * doc/posix-functions/perror.texi (perror): Likewise.
23936         * doc/posix-functions/printf.texi (printf): Likewise.
23937         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
23938         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
23939         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
23940         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
23941         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23942         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
23943         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23944         Likewise.
23945         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23946         Likewise.
23947         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
23948         this function.
23949         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
23950         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
23951         Likewise.
23952         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
23953         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
23954         * doc/posix-functions/confstr.texi (confstr): Likewise.
23955         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
23956         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
23957         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
23958         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
23959         * doc/posix-functions/fputws.texi (fputws): Likewise.
23960         * doc/posix-functions/fwide.texi (fwide): Likewise.
23961         * doc/posix-functions/getwc.texi (getwc): Likewise.
23962         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
23963         * doc/posix-functions/putwc.texi (putwc): Likewise.
23964         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
23965         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
23966         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
23967         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
23968         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
23969         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
23970         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
23971         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
23972         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
23973         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
23974         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
23975
23976 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23977
23978         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
23979         * lib/ioctl.c: Include <sys/ioctl.h>.
23980
23981 2009-01-19  Simon Josefsson  <simon@josefsson.org>
23982
23983         * modules/getdate-tests (Depends-on): Add progname.
23984         * tests/test-getdate.c: Use progname module, to avoid link errors
23985         on non-glibc systems.
23986
23987 2009-01-18  Simon Josefsson  <simon@josefsson.org>
23988
23989         * modules/filenamecat-tests (Depends-on): Add progname.
23990         * modules/fstrcmp-tests (Depends-on): Likewise.
23991
23992         * tests/test-filenamecat.c: Use progname module, to avoid link
23993         errors on non-glibc systems.
23994         * tests/test-fstrcmp.c: Likewise.
23995
23996 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23997
23998         gettimeofday: avoid warning: nested extern declaration of 'localtime'
23999         * lib/gettimeofday.c: Move extern declaration out of function.
24000
24001 2009-01-18  Bruno Haible  <bruno@clisp.org>
24002
24003         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
24004         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
24005         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
24006
24007 2009-01-18  Bruno Haible  <bruno@clisp.org>
24008
24009         * lib/strftime.c (MEMPCPY): Remove unused macro.
24010         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
24011
24012 2009-01-18  Martin Lambers  <marlam@marlam.de>
24013
24014         New module 'link'.
24015         * lib/unistd.in.h (link): New declaration.
24016         * lib/link.c: New file.
24017         * m4/link.m4: New file.
24018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
24019         HAVE_LINK.
24020         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
24021         * modules/link: New file.
24022         * doc/posix-functions/link.texi: Mention the new module.
24023
24024 2009-01-18  Bruno Haible  <bruno@clisp.org>
24025
24026         * tests/test-avltree_list.c (main): Call set_program_name.
24027         * tests/test-avltree_oset.c (main): Likewise.
24028         * tests/test-obstack-printf.c: Include progname.h.
24029         (main): Call set_program_name.
24030         * tests/test-quotearg.c: Include progname.h.
24031         (main): Call set_program_name.
24032         * tests/test-xmemdup0.c: Include progname.h.
24033         (main): Call set_program_name.
24034
24035 2009-01-18  Bruno Haible  <bruno@clisp.org>
24036
24037         New module 'alphasort'.
24038         * lib/dirent.in.h (alphasort): New declaration.
24039         * lib/alphasort.c: New file, from glibc with modifications.
24040         * m4/alphasort.m4: New file.
24041         * modules/alphasort: New file.
24042         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
24043         HAVE_ALPHASORT.
24044         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
24045         HAVE_ALPHASORT.
24046         * doc/posix-functions/alphasort.texi: Mention the new module and the
24047         portability problems.
24048
24049 2009-01-18  Bruno Haible  <bruno@clisp.org>
24050
24051         New module 'scandir'.
24052         * lib/dirent.in.h (scandir): New declaration.
24053         * lib/scandir.c: New file, from glibc with modifications.
24054         * m4/scandir.m4: New file.
24055         * modules/scandir: New file.
24056         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
24057         HAVE_SCANDIR.
24058         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
24059         HAVE_SCANDIR.
24060         * doc/posix-functions/scandir.texi: Mention the new module and the
24061         portability problems.
24062
24063 2009-01-17  Bruno Haible  <bruno@clisp.org>
24064
24065         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
24066         Update documentation.
24067         (func_remove_suffix): Escape all dots in the suffix. Update
24068         documentation.
24069         (func_filter_filelist): Update documentation.
24070         Reported by Ralf Wildenhues.
24071
24072 2009-01-17  Bruno Haible  <bruno@clisp.org>
24073
24074         * modules/dprintf-posix-tests: New file.
24075         * tests/test-dprintf-posix.sh: New file.
24076         * tests/test-dprintf-posix.c: New file.
24077
24078         New modules 'dprintf', 'dprintf-posix'.
24079         * lib/stdio.in.h (dprintf): New declaration.
24080         * lib/dprintf.c: New file.
24081         * m4/dprintf.m4: New file.
24082         * m4/dprintf-posix.m4: New file.
24083         * modules/dprintf: New file.
24084         * modules/dprintf-posix: New file.
24085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
24086         HAVE_DPRINTF, REPLACE_DPRINTF.
24087         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
24088         HAVE_DPRINTF, REPLACE_DPRINTF.
24089         * doc/posix-functions/dprintf.texi: Mention the new modules.
24090
24091 2009-01-17  Bruno Haible  <bruno@clisp.org>
24092
24093         * modules/vdprintf-posix-tests: New file.
24094         * tests/test-vdprintf-posix.sh: New file.
24095         * tests/test-vdprintf-posix.c: New file.
24096
24097         New modules 'vdprintf', 'vdprintf-posix'.
24098         * lib/stdio.in.h (vdprintf): New declaration.
24099         * lib/vdprintf.c: New file.
24100         * m4/vdprintf.m4: New file.
24101         * m4/vdprintf-posix.m4: New file.
24102         * modules/vdprintf: New file.
24103         * modules/vdprintf-posix: New file.
24104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
24105         HAVE_VDPRINTF, REPLACE_VDPRINTF.
24106         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
24107         HAVE_VDPRINTF, REPLACE_VDPRINTF.
24108         * doc/posix-functions/vdprintf.texi: Mention the new modules.
24109
24110 2009-01-17  Bruno Haible  <bruno@clisp.org>
24111
24112         Fix replacement of fopen on mingw.
24113         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
24114         mingw.
24115
24116 2009-01-17  Bruno Haible  <bruno@clisp.org>
24117
24118         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
24119         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
24120
24121 2009-01-17  Bruno Haible  <bruno@clisp.org>
24122
24123         Avoid test-fflush2.sh failure on mingw.
24124         * tests/test-fflush2.c: Include binary-io.h.
24125         (main): Put standard input into binary mode.
24126         * modules/fflush-tests (Depends-on): Add binary-io.
24127
24128 2009-01-17  Bruno Haible  <bruno@clisp.org>
24129
24130         * lib/wchar.in.h: In another particular situation, include only the
24131         system's <wchar.h> file.
24132         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
24133         Reported by Albert Chin-A-Young <china@thewrittenword.com>
24134         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
24135
24136 2009-01-17  Bruno Haible  <bruno@clisp.org>
24137
24138         Support for stripping executables in --enable-relocatable.
24139         * build-aux/install-reloc: Expect one more argument, or an environment
24140         variable RELOC_STRIP_PROG. If set, strip the destination program and
24141         its wrapper.
24142         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
24143         RELOC_STRIP_PROG.
24144         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
24145         to set RELOCATABLE_STRIP.
24146         * NEWS: Mention the new Makefile requirement.
24147
24148 2009-01-17  Bruno Haible  <bruno@clisp.org>
24149
24150         * build-aux/install-reloc: Remove debugging information left over by
24151         C compiler on MacOS X.
24152
24153 2009-01-17  Bruno Haible  <bruno@clisp.org>
24154
24155         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
24156         * lib/progreloc.c (find_executable): Fix type of pointer passed to
24157         _NSGetExecutablePath.
24158
24159 2009-01-16  Jim Meyering  <meyering@redhat.com>
24160
24161         strerror: avoid warnings about discarding "const"
24162         * lib/strerror.c (rpl_strerror): Instead of returning a const
24163         string from each and every "case", use a variable, and add a single
24164         cast after the switch.
24165
24166 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
24167
24168         * lib/arpa_inet.in.h: Add extern "C" block for C++.
24169
24170 2009-01-16  Bruno Haible  <bruno@clisp.org>
24171
24172         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
24173         array initializer syntax that also works in C++ mode.
24174         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24175
24176 2009-01-16  Jim Meyering  <meyering@redhat.com>
24177
24178         poll: suppress a warning
24179         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
24180         to ignore "...unsigned expression < 0 is always false" warnings.
24181
24182 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
24183
24184         poll: remove declarations of unused variables
24185         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
24186         sockbuf and optlen.
24187
24188 2009-01-15  Bruno Haible  <bruno@clisp.org>
24189
24190         Make fflush-after-ungetc POSIX compliant on BSD systems.
24191         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
24192         (clear_ungetc_buffer): Implement also for other systems.
24193         (rpl_fflush): On glibc systems, invoke
24194         clear_ungetc_buffer_preserving_position. Otherwise, invoke
24195         clear_ungetc_buffer after fetching the stream's position, not before.
24196
24197 2009-01-15  Bruno Haible  <bruno@clisp.org>
24198
24199         Make fflush-after-ungetc POSIX compliant on glibc systems.
24200         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
24201         after ungetc.
24202         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
24203         (rpl_fflush): On glibc systems, simply call the system's fflush
24204         function after clearing the ungetc buffer.
24205         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
24206         Instead, lseek only to the end of file, then use the system's fseeko
24207         for the rest. On glibc systems, reset the EOF indicator bit.
24208
24209 2009-01-15  Jim Meyering  <meyering@redhat.com>
24210
24211         openmp.m4: revert quote-adding change, for portability to older autoconf
24212         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
24213         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
24214         Simon Josefsson noticed the problem when using autoconf-2.61.
24215
24216 2009-01-15  Bruno Haible  <bruno@clisp.org>
24217
24218         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
24219         * tests/test-fflush2.c (ASSERT): Always fail.
24220         (main): Add two tests for fflush() after ungetc(), taking into account
24221         the Austin Group's clarification.
24222         Suggested by Eric Blake.
24223
24224 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
24225
24226         mktime.m4: remove K&R-style function prototypes
24227         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
24228         for the Sun C++ compiler.
24229
24230 2009-01-14  Bruno Haible  <bruno@clisp.org>
24231
24232         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
24233         while including <wchar.h>.
24234         * lib/wchar.in.h: In two particular situations on HP-UX, include only
24235         the system's <wchar.h> file.
24236         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24237
24238 2009-01-14  Bruno Haible  <bruno@clisp.org>
24239
24240         * m4/csharp.m4: Don't mention gettext on the serial number line.
24241         * m4/csharpexec.m4: Likewise.
24242         * m4/eaccess.m4: Likewise.
24243         * m4/javaexec.m4: Likewise.
24244         * m4/sig_atomic_t.m4: Likewise.
24245         * m4/tmpdir.m4: Likewise.
24246         * m4/intldir.m4: Bump gettext version.
24247         * m4/lib-ld.m4: Likewise.
24248
24249 2009-01-14  Bruno Haible  <bruno@clisp.org>
24250
24251         * lib/progname.c (set_program_name): Add more comments.
24252         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24253
24254 2009-01-14  Simon Josefsson  <simon@josefsson.org>
24255
24256         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
24257         were sys/stat.h does not define it.
24258
24259 2009-01-14  Jim Meyering  <meyering@redhat.com>
24260
24261         many *.m4 files: improve m4 quoting
24262         99% of this change was performed by running the following commands:
24263         git ls-files | grep '\.m4$' | xargs perl -pi \
24264           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
24265           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
24266           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
24267           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
24268         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
24269         The remainder were to add Copyright dates, increment serial numbers,
24270         undo some changes in comments, exclude m4/intl.m4, and add quotes
24271         around the "1" in ",1" where the unusual spacing prohibited the
24272         above regexps from doing the job.  For more details, see
24273         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
24274         * m4/acl.m4: Modified.
24275         * m4/afs.m4: Likewise.
24276         * m4/alloca.m4: Likewise.
24277         * m4/argp.m4: Likewise.
24278         * m4/argz.m4: Likewise.
24279         * m4/atexit.m4: Likewise.
24280         * m4/bison-i18n.m4: Likewise.
24281         * m4/bison.m4: Likewise.
24282         * m4/byteswap.m4: Likewise.
24283         * m4/c-stack.m4: Likewise.
24284         * m4/c-strtod.m4: Likewise.
24285         * m4/calloc.m4: Likewise.
24286         * m4/canonicalize-lgpl.m4: Likewise.
24287         * m4/chown.m4: Likewise.
24288         * m4/clock_time.m4: Likewise.
24289         * m4/codeset.m4: Likewise.
24290         * m4/copy-file.m4: Likewise.
24291         * m4/csharp.m4: Likewise.
24292         * m4/csharpcomp.m4: Likewise.
24293         * m4/csharpexec.m4: Likewise.
24294         * m4/d-ino.m4: Likewise.
24295         * m4/d-type.m4: Likewise.
24296         * m4/dirfd.m4: Likewise.
24297         * m4/double-slash-root.m4: Likewise.
24298         * m4/eaccess.m4: Likewise.
24299         * m4/eealloc.m4: Likewise.
24300         * m4/environ.m4: Likewise.
24301         * m4/errno_h.m4: Likewise.
24302         * m4/euidaccess.m4: Likewise.
24303         * m4/execute.m4: Likewise.
24304         * m4/fatal-signal.m4: Likewise.
24305         * m4/fchdir.m4: Likewise.
24306         * m4/fcntl_h.m4: Likewise.
24307         * m4/fileblocks.m4: Likewise.
24308         * m4/filenamecat.m4: Likewise.
24309         * m4/findprog.m4: Likewise.
24310         * m4/flexmember.m4: Likewise.
24311         * m4/fnmatch.m4: Likewise.
24312         * m4/fopen.m4: Likewise.
24313         * m4/fpending.m4: Likewise.
24314         * m4/fprintf-posix.m4: Likewise.
24315         * m4/free.m4: Likewise.
24316         * m4/frexp.m4: Likewise.
24317         * m4/frexpl.m4: Likewise.
24318         * m4/fsusage.m4: Likewise.
24319         * m4/ftruncate.m4: Likewise.
24320         * m4/gc-camellia.m4: Likewise.
24321         * m4/gc-random.m4: Likewise.
24322         * m4/gc.m4: Likewise.
24323         * m4/getaddrinfo.m4: Likewise.
24324         * m4/getcwd-abort-bug.m4: Likewise.
24325         * m4/getcwd-path-max.m4: Likewise.
24326         * m4/getdate.m4: Likewise.
24327         * m4/getdomainname.m4: Likewise.
24328         * m4/getgroups.m4: Likewise.
24329         * m4/gethostname.m4: Likewise.
24330         * m4/gethrxtime.m4: Likewise.
24331         * m4/getline.m4: Likewise.
24332         * m4/getloadavg.m4: Likewise.
24333         * m4/getndelim2.m4: Likewise.
24334         * m4/getpass.m4: Likewise.
24335         * m4/gettext.m4: Likewise.
24336         * m4/gettime.m4: Likewise.
24337         * m4/gettimeofday.m4: Likewise.
24338         * m4/gnulib-common.m4: Likewise.
24339         * m4/group-member.m4: Likewise.
24340         * m4/host-os.m4: Likewise.
24341         * m4/iconv.m4: Likewise.
24342         * m4/iconv_open.m4: Likewise.
24343         * m4/inet_ntop.m4: Likewise.
24344         * m4/inet_pton.m4: Likewise.
24345         * m4/inline.m4: Likewise.
24346         * m4/intldir.m4: Likewise.
24347         * m4/intlmacosx.m4: Likewise.
24348         * m4/intmax.m4: Likewise.
24349         * m4/intmax_t.m4: Likewise.
24350         * m4/inttypes.m4: Likewise.
24351         * m4/inttypes_h.m4: Likewise.
24352         * m4/inttypes-pri.m4: Likewise.
24353         * m4/isapipe.m4: Likewise.
24354         * m4/isnand.m4: Likewise.
24355         * m4/isnanf.m4: Likewise.
24356         * m4/isnanl.m4: Likewise.
24357         * m4/javacomp.m4: Likewise.
24358         * m4/javaexec.m4: Likewise.
24359         * m4/jm-winsz1.m4: Likewise.
24360         * m4/jm-winsz2.m4: Likewise.
24361         * m4/lchown.m4: Likewise.
24362         * m4/lcmessage.m4: Likewise.
24363         * m4/ldexpl.m4: Likewise.
24364         * m4/lib-ld.m4: Likewise.
24365         * m4/lib-link.m4: Likewise.
24366         * m4/libsigsegv.m4: Likewise.
24367         * m4/link-follow.m4: Likewise.
24368         * m4/localcharset.m4: Likewise.
24369         * m4/locale-fr.m4: Likewise.
24370         * m4/locale-ja.m4: Likewise.
24371         * m4/locale-tr.m4: Likewise.
24372         * m4/locale-zh.m4: Likewise.
24373         * m4/lock.m4: Likewise.
24374         * m4/longlong.m4: Likewise.
24375         * m4/ls-mntd-fs.m4: Likewise.
24376         * m4/lstat.m4: Likewise.
24377         * m4/malloc.m4: Likewise.
24378         * m4/mathl.m4: Likewise.
24379         * m4/mbrtowc.m4: Likewise.
24380         * m4/mbstate_t.m4: Likewise.
24381         * m4/mbswidth.m4: Likewise.
24382         * m4/memchr.m4: Likewise.
24383         * m4/memcmp.m4: Likewise.
24384         * m4/memcpy.m4: Likewise.
24385         * m4/memmem.m4: Likewise.
24386         * m4/memmove.m4: Likewise.
24387         * m4/mempcpy.m4: Likewise.
24388         * m4/memrchr.m4: Likewise.
24389         * m4/memset.m4: Likewise.
24390         * m4/minmax.m4: Likewise.
24391         * m4/mkdir-slash.m4: Likewise.
24392         * m4/mkdtemp.m4: Likewise.
24393         * m4/mktime.m4: Likewise.
24394         * m4/mmap-anon.m4: Likewise.
24395         * m4/mountlist.m4: Likewise.
24396         * m4/nanosleep.m4: Likewise.
24397         * m4/nls.m4: Likewise.
24398         * m4/nocrash.m4: Likewise.
24399         * m4/open.m4: Likewise.
24400         * m4/openat.m4: Likewise.
24401         * m4/openmp.m4: Likewise.
24402         * m4/pathmax.m4: Likewise.
24403         * m4/perl.m4: Likewise.
24404         * m4/physmem.m4: Likewise.
24405         * m4/pipe.m4: Likewise.
24406         * m4/po.m4: Likewise.
24407         * m4/poll.m4: Likewise.
24408         * m4/posixtm.m4: Likewise.
24409         * m4/posixver.m4: Likewise.
24410         * m4/printf-frexp.m4: Likewise.
24411         * m4/printf-frexpl.m4: Likewise.
24412         * m4/printf-posix.m4: Likewise.
24413         * m4/printf-posix-rpl.m4: Likewise.
24414         * m4/printf.m4: Likewise.
24415         * m4/progtest.m4: Likewise.
24416         * m4/putenv.m4: Likewise.
24417         * m4/readline.m4: Likewise.
24418         * m4/readlink.m4: Likewise.
24419         * m4/readutmp.m4: Likewise.
24420         * m4/realloc.m4: Likewise.
24421         * m4/regex.m4: Likewise.
24422         * m4/relocatable.m4: Likewise.
24423         * m4/relocatable-lib.m4: Likewise.
24424         * m4/rename-dest-slash.m4: Likewise.
24425         * m4/rename.m4: Likewise.
24426         * m4/rmdir-errno.m4: Likewise.
24427         * m4/rmdir.m4: Likewise.
24428         * m4/roundf.m4: Likewise.
24429         * m4/roundl.m4: Likewise.
24430         * m4/rpmatch.m4: Likewise.
24431         * m4/save-cwd.m4: Likewise.
24432         * m4/selinux-selinux-h.m4: Likewise.
24433         * m4/setenv.m4: Likewise.
24434         * m4/settime.m4: Likewise.
24435         * m4/sig2str.m4: Likewise.
24436         * m4/sig_atomic_t.m4: Likewise.
24437         * m4/signalblocking.m4: Likewise.
24438         * m4/signbit.m4: Likewise.
24439         * m4/sigpipe.m4: Likewise.
24440         * m4/sockets.m4: Likewise.
24441         * m4/sockpfaf.m4: Likewise.
24442         * m4/st_dm_mode.m4: Likewise.
24443         * m4/stat-time.m4: Likewise.
24444         * m4/stdbool.m4: Likewise.
24445         * m4/stdint.m4: Likewise.
24446         * m4/stdint_h.m4: Likewise.
24447         * m4/stpcpy.m4: Likewise.
24448         * m4/stpncpy.m4: Likewise.
24449         * m4/strcase.m4: Likewise.
24450         * m4/strchrnul.m4: Likewise.
24451         * m4/strcspn.m4: Likewise.
24452         * m4/strdup.m4: Likewise.
24453         * m4/strftime.m4: Likewise.
24454         * m4/strndup.m4: Likewise.
24455         * m4/strnlen.m4: Likewise.
24456         * m4/strpbrk.m4: Likewise.
24457         * m4/strptime.m4: Likewise.
24458         * m4/strsep.m4: Likewise.
24459         * m4/strtod.m4: Likewise.
24460         * m4/strtoimax.m4: Likewise.
24461         * m4/strtok_r.m4: Likewise.
24462         * m4/strtol.m4: Likewise.
24463         * m4/strtoll.m4: Likewise.
24464         * m4/strtoul.m4: Likewise.
24465         * m4/strtoull.m4: Likewise.
24466         * m4/strtoumax.m4: Likewise.
24467         * m4/strverscmp.m4: Likewise.
24468         * m4/threadlib.m4: Likewise.
24469         * m4/timegm.m4: Likewise.
24470         * m4/tm_gmtoff.m4: Likewise.
24471         * m4/tmpdir.m4: Likewise.
24472         * m4/tmpfile.m4: Likewise.
24473         * m4/tzset.m4: Likewise.
24474         * m4/uintmax_t.m4: Likewise.
24475         * m4/unlinkdir.m4: Likewise.
24476         * m4/unlocked-io.m4: Likewise.
24477         * m4/uptime.m4: Likewise.
24478         * m4/userspec.m4: Likewise.
24479         * m4/utimbuf.m4: Likewise.
24480         * m4/utime.m4: Likewise.
24481         * m4/utimes-null.m4: Likewise.
24482         * m4/utimes.m4: Likewise.
24483         * m4/vararrays.m4: Likewise.
24484         * m4/vasnprintf.m4: Likewise.
24485         * m4/vfprintf-posix.m4: Likewise.
24486         * m4/vprintf-posix.m4: Likewise.
24487         * m4/wait-process.m4: Likewise.
24488         * m4/wchar_t.m4: Likewise.
24489         * m4/wint_t.m4: Likewise.
24490         * m4/write-any-file.m4: Likewise.
24491         * m4/yield.m4: Likewise.
24492
24493 2009-01-13  Bruno Haible  <bruno@clisp.org>
24494
24495         Avoid test-copy-file.sh failures when ACL support insufficient.
24496         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
24497         TESTS_ENVIRONMENT.
24498         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
24499         Reported by Jim Meyering.
24500
24501 2009-01-13  Bruno Haible  <bruno@clisp.org>
24502
24503         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
24504         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
24505         * modules/unistdio/u8-printf-parse (Files): Likewise.
24506         * modules/unistdio/u32-printf-parse (Files): Likewise.
24507         * modules/unistdio/ulc-printf-parse (Files): Likewise.
24508
24509 2009-01-13  Simon Josefsson  <simon@josefsson.org>
24510
24511         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
24512         and m4/inttypes_h.m4 too.
24513
24514 2009-01-12  Eric Blake  <ebb9@byu.net>
24515
24516         tests: IRIX 6.2 cc can't compile -0.0 into .data
24517         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
24518         rather than at compile-time.
24519         * tests/test-floorl.c (minus_zero): Likewise.
24520         * tests/test-frexpl.c (minus_zero): Likewise.
24521         * tests/test-isnan.c (minus_zerol): Likewise.
24522         * tests/test-isnanl.h (minus_zero): Likewise.
24523         * tests/test-ldexpl.c (minus_zero): Likewise.
24524         * tests/test-roundl.c (minus_zero): Likewise.
24525         * tests/test-signbit.c (minus_zerol): Likewise.
24526         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24527         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24528         * tests/test-truncl.c (minus_zero): Likewise.
24529         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24530         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24531         Reported by Tom G. Christensen and Nelson H. F. Beebe.
24532
24533 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24534
24535         regex: fix glibc bug 9697
24536         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
24537         handling.
24538
24539 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24540
24541         regex: fix glibc bug 697
24542         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
24543         being NULL also if there are no backreferences.
24544
24545 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24546
24547         regex: merge glibc changes
24548         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
24549         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
24550         re_string_skip_chars, re_string_reconstruct): Likewise.
24551         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
24552
24553 2009-01-07  Jim Meyering  <meyering@redhat.com>
24554
24555         poll: filter through cppi
24556         * lib/poll.c: Indent cpp directives to reflect nesting.
24557
24558 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
24559
24560         poll: don't return uninitialized
24561         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
24562
24563 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
24564
24565         avoid compile failure on AIX 6.1
24566         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
24567         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
24568
24569 2009-01-04  Jim Meyering  <meyering@redhat.com>
24570
24571         remove duplicate inclusion of <stdio.h>
24572         * tests/test-fprintf-posix.c: Likewise.
24573         * tests/test-printf-posix.c: Likewise.
24574         * tests/test-snprintf-posix.c: Likewise.
24575         * tests/test-sprintf-posix.c: Likewise.
24576         * tests/test-vasprintf-posix.c: Likewise.
24577         * tests/test-vfprintf-posix.c: Likewise.
24578         * tests/test-vprintf-posix.c: Likewise.
24579         * tests/test-vsnprintf-posix.c: Likewise.
24580         * tests/test-vsprintf-posix.c: Likewise.
24581
24582 2009-01-03  Jim Meyering  <meyering@redhat.com>
24583
24584         gnulib-tool: fix sed-based filtering
24585         * gnulib-tool (func_filter_filelist): Remove extra backslash
24586         in sed_fff_filter definition.
24587
24588 2009-01-02  Jim Meyering  <meyering@redhat.com>
24589
24590         strftime: avoid compilation failure on Solaris 2.6
24591         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
24592         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
24593         Don't #define mbrlen or mbsinit, since now they're guaranteed to
24594         be available.  Reported by Tom G. Christensen.  Details in
24595         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
24596
24597 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24598             Bruno Haible  <bruno@clisp.org>
24599
24600         Speed up gnulib-tool by doing more string processing through shell
24601         built-ins.
24602         * gnulib-tool (fast_func_append): New variable.
24603         (func_remove_prefix, func_remove_suffix): New functions.
24604         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
24605         (func_filter_filelist): New function.
24606         (func_get_dependencies): Use func_remove_suffix instead of sed.
24607         (func_get_automake_snippet): Use func_filter_filelist instead of a
24608         subshell and sed invocation.
24609
24610 2009-01-01  Bruno Haible  <bruno@clisp.org>
24611
24612         Fix a security bug.
24613         * gnulib-tool (func_import, import, update): Don't allow the characters
24614         '"', '$', '`', '\' in macro arguments that become part of commands that
24615         are evaluated.
24616
24617 2009-01-01  Bruno Haible  <bruno@clisp.org>
24618
24619         * gnulib-tool (func_reset_sigpipe): Add more comments.
24620
24621 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24622
24623         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
24624         func_emit_tests_Makefile_am, func_import): Abort loops early if we
24625         already know the answer.
24626
24627 2009-01-01  Jim Meyering  <meyering@redhat.com>
24628
24629         * lib/version-etc.c (version_etc_va): Update copyright year.
24630
24631 2008-12-30  Bruno Haible  <bruno@clisp.org>
24632
24633         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
24634         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
24635         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
24636
24637 2008-12-29  Eric Blake  <ebb9@byu.net>
24638
24639         multiarch: avoid autoconf AC_REQUIRE bug
24640         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
24641         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
24642         2.63 and older.
24643         Reported by Bruno Haible, and analyzed in
24644         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
24645
24646 2008-12-29  Bruno Haible  <bruno@clisp.org>
24647
24648         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
24649         files in subdirectories correctly.
24650         Reported by Ralf Wildenhues.
24651
24652 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24653
24654         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
24655         rather than 'join FILE -', for Solaris join.
24656
24657 2008-12-29  Bruno Haible  <bruno@clisp.org>
24658
24659         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
24660         quoting.
24661         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
24662         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24663         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24664         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
24665         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24666         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
24667         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
24668         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
24669         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24670         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
24671         * m4/nls.m4 (AM_NLS): Likewise.
24672         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
24673         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
24674         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24675         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
24676         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
24677         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24678         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
24679         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
24680         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
24681         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
24682         * m4/xsize.m4 (gl_XSIZE): Likewise.
24683         Suggested by Jim Meyering.
24684
24685 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24686
24687         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
24688         * lib/parse-duration.c: use a switch instead of cascading if's.
24689
24690 2008-12-29  Eric Blake  <ebb9@byu.net>
24691
24692         wchar.h: supply WEOF on Irix 5.3
24693         * lib/wchar.in.h (wint_t): Also supply WEOF.
24694         * lib/wctype.in.h (wint_t): Likewise.
24695         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
24696         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
24697         Reported by Tom G. Christensen.
24698
24699 2008-12-26  Bruno Haible  <bruno@clisp.org>
24700
24701         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
24702         i486, i586, i686.
24703
24704 2008-12-26  Bruno Haible  <bruno@clisp.org>
24705
24706         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
24707
24708 2008-12-26  Bruno Haible  <bruno@clisp.org>
24709
24710         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
24711         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
24712         not __STDC_CONSTANT_MACROS.
24713         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24714
24715 2008-12-25  Bruno Haible  <bruno@clisp.org>
24716
24717         Add support for universal builds to vasnprintf.
24718         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
24719         universal builds, guess no.
24720         * modules/vasnprintf-posix (Depends-on): Add multiarch.
24721         * modules/vasprintf-posix (Depends-on): Likewise.
24722         * modules/fprintf-posix (Depends-on): Likewise.
24723         * modules/vfprintf-posix (Depends-on): Likewise.
24724         * modules/snprintf-posix (Depends-on): Likewise.
24725         * modules/vsnprintf-posix (Depends-on): Likewise.
24726         * modules/sprintf-posix (Depends-on): Likewise.
24727         * modules/vsprintf-posix (Depends-on): Likewise.
24728         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24729         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24730         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24731         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24732         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24733         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24734         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24735
24736         Add support for universal builds to <inttypes.h>.
24737         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
24738         _SCNu64_PREFIX): In Apple
24739         universal builds, define directly, using _LP64.
24740         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
24741         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
24742         * modules/inttypes (Depends-on): Add multiarch.
24743         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24744
24745         Add support for universal builds to <stdint.h>.
24746         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
24747         universal builds, define directly, using _LP64.
24748         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
24749         Apple universal builds, don't test for the size and suffix of ptrdiff_t
24750         and size_t.
24751         * modules/stdint (Depends-on): Add multiarch.
24752         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24753
24754         New module 'multiarch'.
24755         * modules/multiarch: New file.
24756         * m4/multiarch.m4: New file.
24757
24758 2008-12-25  Bruno Haible  <bruno@clisp.org>
24759
24760         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
24761
24762 2008-12-25  Bruno Haible  <bruno@clisp.org>
24763
24764         * modules/btowc (License): Relicense under LGPLv2+.
24765         * modules/mbsinit (License): Likewise.
24766         * modules/mbrtowc (License): Likewise.
24767         * modules/wcrtomb (License): Likewise.
24768         * modules/streq (License): Likewise.
24769         Reported by David Lutterkort <lutter@redhat.com>.
24770
24771 2008-12-23  Bruno Haible  <bruno@clisp.org>
24772
24773         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
24774
24775 2008-12-23  Bruno Haible  <bruno@clisp.org>
24776
24777         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
24778         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
24779         GETADDRINFO_LIB, not in LIBS.
24780         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
24781         * modules/canon-host (Link): Likewise.
24782         * NEWS: Mention the change.
24783         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
24784         GETADDRINFO_LIB.
24785
24786 2008-12-22  Bruno Haible  <bruno@clisp.org>
24787
24788         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
24789         * doc/posix-functions/iswalpha_l.texi: Likewise.
24790         * doc/posix-functions/iswblank_l.texi: Likewise.
24791         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24792         * doc/posix-functions/iswctype_l.texi: Likewise.
24793         * doc/posix-functions/iswdigit_l.texi: Likewise.
24794         * doc/posix-functions/iswgraph_l.texi: Likewise.
24795         * doc/posix-functions/iswlower_l.texi: Likewise.
24796         * doc/posix-functions/iswprint_l.texi: Likewise.
24797         * doc/posix-functions/iswpunct_l.texi: Likewise.
24798         * doc/posix-functions/iswspace_l.texi: Likewise.
24799         * doc/posix-functions/iswupper_l.texi: Likewise.
24800         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24801         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
24802         * doc/posix-functions/open_wmemstream.texi: Likewise.
24803         * doc/posix-functions/swscanf.texi: Likewise.
24804         * doc/posix-functions/towctrans_l.texi: Likewise.
24805         * doc/posix-functions/towlower.texi: Likewise.
24806         * doc/posix-functions/towlower_l.texi: Likewise.
24807         * doc/posix-functions/towupper.texi: Likewise.
24808         * doc/posix-functions/towupper_l.texi: Likewise.
24809         * doc/posix-functions/vfwprintf.texi: Likewise.
24810         * doc/posix-functions/vfwscanf.texi: Likewise.
24811         * doc/posix-functions/vswscanf.texi: Likewise.
24812         * doc/posix-functions/vwprintf.texi: Likewise.
24813         * doc/posix-functions/vwscanf.texi: Likewise.
24814         * doc/posix-functions/wcpcpy.texi: Likewise.
24815         * doc/posix-functions/wcpncpy.texi: Likewise.
24816         * doc/posix-functions/wcscasecmp.texi: Likewise.
24817         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
24818         * doc/posix-functions/wcscoll_l.texi: Likewise.
24819         * doc/posix-functions/wcsdup.texi: Likewise.
24820         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24821         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
24822         * doc/posix-functions/wcsnlen.texi: Likewise.
24823         * doc/posix-functions/wcsnrtombs.texi: Likewise.
24824         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24825         * doc/posix-functions/wctrans_l.texi: Likewise.
24826         * doc/posix-functions/wctype_l.texi: Likewise.
24827         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
24828         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
24829         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
24830         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
24831         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
24832         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
24833         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
24834         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
24835         * doc/glibc-functions/wcschrnul.texi: Likewise.
24836         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24837         * doc/glibc-functions/wcstod_l.texi: Likewise.
24838         * doc/glibc-functions/wcstof_l.texi: Likewise.
24839         * doc/glibc-functions/wcstol_l.texi: Likewise.
24840         * doc/glibc-functions/wcstold_l.texi: Likewise.
24841         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24842         * doc/glibc-functions/wcstoq.texi: Likewise.
24843         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24844         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24845         * doc/glibc-functions/wcstouq.texi: Likewise.
24846         * doc/glibc-functions/wmempcpy.texi: Likewise.
24847
24848 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
24849             Eric Blake  <ebb9@byu.net>
24850             Paolo Bonzini  <bonzini@gnu.org>
24851             Bruno Haible  <bruno@clisp.org>
24852
24853         Make c-stack work on Haiku.
24854         * lib/c-stack.c (SA_ONSTACK): Define fallback.
24855         (c_stack_action): Use SA_ONSTACK flag.
24856
24857 2008-12-22  Bruno Haible  <bruno@clisp.org>
24858
24859         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
24860
24861 2008-12-22  Bruno Haible  <bruno@clisp.org>
24862
24863         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
24864         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
24865         being overridden.
24866         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
24867         New macros.
24868         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
24869         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
24870         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
24871         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
24872
24873 2008-12-22  Bruno Haible  <bruno@clisp.org>
24874
24875         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
24876         from test code.
24877
24878 2008-12-22  Eric Blake  <ebb9@byu.net>
24879
24880         Avoid gcc warnings on cygwin.
24881         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
24882         Avoid unused variable.
24883         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
24884         Likewise.
24885
24886 2008-12-22  Bruno Haible  <bruno@clisp.org>
24887
24888         Remove HAVE_MBRTOWC conditionals.
24889         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
24890         (mbscasecmp): Assume mbrtowc function.
24891         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
24892         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
24893         * lib/mbschr.c: Include mbuiter.h unconditionally.
24894         (mbschr): Assume mbrtowc function.
24895         * lib/mbscspn.c: Include mbuiter.h unconditionally.
24896         (mbscspn): Assume mbrtowc function.
24897         * lib/mbslen.c: Include mbuiter.h unconditionally.
24898         (mbslen): Assume mbrtowc function.
24899         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
24900         (mbsncasecmp): Assume mbrtowc function.
24901         * lib/mbsnlen.c: Include mbiter.h unconditionally.
24902         (mbsnlen): Assume mbrtowc function.
24903         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
24904         (mbspbrk): Assume mbrtowc function.
24905         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
24906         (mbspcasecmp): Assume mbrtowc function.
24907         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
24908         (mbsrchr): Assume mbrtowc function.
24909         * lib/mbssep.c: Include mbuiter.h unconditionally.
24910         (mbssep): Assume mbrtowc function.
24911         * lib/mbsspn.c: Include mbuiter.h unconditionally.
24912         (mbsspn): Assume mbrtowc function.
24913         * lib/mbsstr.c: Include mbuiter.h unconditionally.
24914         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
24915         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
24916         (mbstok_r): Assume mbrtowc function.
24917         * lib/propername.c: Include mbuiter.h unconditionally.
24918         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
24919         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
24920         (trim2): Assume mbrtowc function.
24921         * lib/mbswidth.c (mbsinit): Remove fallback definition.
24922         (mbsnwidth): Assume mbrtowc function.
24923         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
24924         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
24925         fallback definitions.
24926         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
24927
24928 2008-12-22  Bruno Haible  <bruno@clisp.org>
24929
24930         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
24931
24932 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
24933
24934         * modules/regex: Request emulations for the mb*/wc* functions we need.
24935         * m4/regex.m4: Don't look for those functions here.
24936         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
24937
24938 2008-12-22  Bruno Haible  <bruno@clisp.org>
24939
24940         * modules/fnmatch (Depends-on): Remove duplicated dependency.
24941
24942 2008-12-21  Bruno Haible  <bruno@clisp.org>
24943
24944         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
24945         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
24946         (Include): Remove conditionalization.
24947         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
24948         (Include): Remove conditionalization.
24949         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
24950         (Include): Remove conditionalization.
24951         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
24952         * m4/mbfile.m4 (gl_MBFILE): Likewise.
24953         * NEWS: Mention the change.
24954         Reported by Alan Hourihane <alanh@fairlite.co.uk>
24955         via Sergey Poznyakoff <gray@gnu.org.ua>.
24956
24957 2008-12-21  Bruno Haible  <bruno@clisp.org>
24958
24959         * MODULES.html.sh (Extended multibyte and wide character utilities
24960         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
24961         wcrtomb, wcsrtombs.
24962         (Support for systems lacking POSIX:2008): Add accept, bind, close,
24963         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
24964         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
24965         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
24966
24967 2008-12-21  Bruno Haible  <bruno@clisp.org>
24968
24969         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
24970
24971 2008-12-21  Bruno Haible  <bruno@clisp.org>
24972
24973         * modules/wcsnrtombs-tests: New file.
24974         * tests/test-wcsnrtombs1.sh: New file.
24975         * tests/test-wcsnrtombs2.sh: New file.
24976         * tests/test-wcsnrtombs3.sh: New file.
24977         * tests/test-wcsnrtombs4.sh: New file.
24978         * tests/test-wcsnrtombs.c: New file.
24979
24980         New module 'wcsnrtombs'.
24981         * lib/wchar.in.h (wcsnrtombs): New declaration.
24982         * lib/wcsnrtombs.c: New file.
24983         * lib/wcsrtombs-state.c: New file.
24984         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
24985         (internal_state): Remove variable.
24986         * m4/wcsnrtombs.m4: New file.
24987         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
24988         compilation units.
24989         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
24990         HAVE_WCSNRTOMBS.
24991         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
24992         HAVE_WCSNRTOMBS.
24993         * modules/wcsnrtombs: New file.
24994         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
24995         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
24996
24997 2008-12-21  Bruno Haible  <bruno@clisp.org>
24998
24999         * modules/wcsrtombs-tests: New file.
25000         * tests/test-wcsrtombs1.sh: New file.
25001         * tests/test-wcsrtombs2.sh: New file.
25002         * tests/test-wcsrtombs3.sh: New file.
25003         * tests/test-wcsrtombs4.sh: New file.
25004         * tests/test-wcsrtombs.c: New file.
25005
25006         New module 'wcsrtombs'.
25007         * lib/wchar.in.h (wcsrtombs): New declaration.
25008         * lib/wcsrtombs.c: New file.
25009         * m4/wcsrtombs.m4: New file.
25010         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
25011         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25012         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
25013         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25014         * modules/wcsrtombs: New file.
25015         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
25016         bugs.
25017
25018 2008-12-21  Bruno Haible  <bruno@clisp.org>
25019
25020         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
25021         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
25022         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
25023         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
25024         if not correct.
25025         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
25026         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
25027         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25028         m4/locale-zh.m4, m4/codeset.m4.
25029         * doc/posix-functions/wcrtomb.texi: Document the bug.
25030
25031 2008-12-21  Bruno Haible  <bruno@clisp.org>
25032
25033         Work around a btowc() bug on IRIX 6.5.
25034         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
25035         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
25036         REPLACE_WTOBC if not.
25037         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
25038         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
25039         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
25040
25041 2008-12-21  Bruno Haible  <bruno@clisp.org>
25042
25043         * modules/wcrtomb-tests: New file.
25044         * tests/test-wcrtomb.sh: New file.
25045         * tests/test-wcrtomb.c: New file.
25046
25047         New module 'wcrtomb'.
25048         * lib/wchar.in.h (wcrtomb): New declaration.
25049         * lib/wcrtomb.c: New file.
25050         * m4/wcrtomb.m4: New file.
25051         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
25052         HAVE_WCRTOMB.
25053         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
25054         HAVE_WCRTOMB.
25055         * modules/wcrtomb: New file.
25056         * doc/posix-functions/wcrtomb.texi: Mention the new module.
25057
25058 2008-12-21  Bruno Haible  <bruno@clisp.org>
25059
25060         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
25061         * modules/mbsrtowcs (Files): Likewise.
25062         * modules/wctob (Files): Likewise.
25063         * modules/c-strcase-tests (Files): Likewise.
25064         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25065         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25066         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25067         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25068         * modules/vasnprintf-posix-tests (Files): Likewise.
25069
25070 2008-12-21  William Pursell  <bill.pursell@gmail.com>
25071
25072         gitlog-to-changelog: pass all command-line arguments to git-log
25073         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
25074         it is sometimes convenient to filter the commits in various ways.
25075         gitlog-to-changelog only allows --since to specify a start date,
25076         but git-log itself supports many other filtering mechanisms.
25077         At the moment, I want to filter by branch name.  Rather than
25078         adding a --branch option to gitlog-to-changelog, it seems more
25079         flexible to simply pass all options directly to git-log and let
25080         git do the work.  Notice that this effectively makes --since a
25081         redundant option for gitlog-to-changelog, but removing it would
25082         require current usage to change since calls would then require
25083         an additional '--'.
25084
25085 2008-12-21  Bruno Haible  <bruno@clisp.org>
25086
25087         * modules/mbsnrtowcs-tests: New file.
25088         * tests/test-mbsnrtowcs1.sh: New file.
25089         * tests/test-mbsnrtowcs2.sh: New file.
25090         * tests/test-mbsnrtowcs3.sh: New file.
25091         * tests/test-mbsnrtowcs4.sh: New file.
25092         * tests/test-mbsnrtowcs.c: New file.
25093
25094         New module 'mbsnrtowcs'.
25095         * lib/wchar.in.h (mbsnrtowcs): New declaration.
25096         * lib/mbsnrtowcs.c: New file.
25097         * lib/mbsrtowcs-state.c: New file.
25098         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
25099         (internal_state): Remove variable.
25100         * m4/mbsnrtowcs.m4: New file.
25101         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
25102         compilation units.
25103         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
25104         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
25105         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
25106         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
25107         * modules/mbsnrtowcs: New file.
25108         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
25109         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
25110         portability problem.
25111
25112 2008-12-21  Bruno Haible  <bruno@clisp.org>
25113
25114         Work around mbsrtowcs bug.
25115         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
25116         (gl_FUNC_MBSRTOWCS): Invoke it.
25117         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25118         m4/locale-zh.m4.
25119         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
25120
25121 2008-12-21  Bruno Haible  <bruno@clisp.org>
25122
25123         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
25124
25125 2008-12-21  Bruno Haible  <bruno@clisp.org>
25126
25127         Update doc for AIX.
25128         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
25129         16-bit wchar_t type.
25130         * doc/posix-functions/btowc.texi: Likewise.
25131         * doc/posix-functions/fgetwc.texi: Likewise.
25132         * doc/posix-functions/fgetws.texi: Likewise.
25133         * doc/posix-functions/fputwc.texi: Likewise.
25134         * doc/posix-functions/fputws.texi: Likewise.
25135         * doc/posix-functions/fwide.texi: Likewise.
25136         * doc/posix-functions/fwprintf.texi: Likewise.
25137         * doc/posix-functions/fwscanf.texi: Likewise.
25138         * doc/posix-functions/getwchar.texi: Likewise.
25139         * doc/posix-functions/getwc.texi: Likewise.
25140         * doc/posix-functions/iswalnum.texi: Likewise.
25141         * doc/posix-functions/iswalpha.texi: Likewise.
25142         * doc/posix-functions/iswblank.texi: Likewise.
25143         * doc/posix-functions/iswcntrl.texi: Likewise.
25144         * doc/posix-functions/iswctype.texi: Likewise.
25145         * doc/posix-functions/iswdigit.texi: Likewise.
25146         * doc/posix-functions/iswgraph.texi: Likewise.
25147         * doc/posix-functions/iswlower.texi: Likewise.
25148         * doc/posix-functions/iswprint.texi: Likewise.
25149         * doc/posix-functions/iswpunct.texi: Likewise.
25150         * doc/posix-functions/iswspace.texi: Likewise.
25151         * doc/posix-functions/iswupper.texi: Likewise.
25152         * doc/posix-functions/iswxdigit.texi: Likewise.
25153         * doc/posix-functions/mbrtowc.texi: Likewise.
25154         * doc/posix-functions/mbsrtowcs.texi: Likewise.
25155         * doc/posix-functions/mbstowcs.texi: Likewise.
25156         * doc/posix-functions/mbtowc.texi: Likewise.
25157         * doc/posix-functions/putwchar.texi: Likewise.
25158         * doc/posix-functions/putwc.texi: Likewise.
25159         * doc/posix-functions/swprintf.texi: Likewise.
25160         * doc/posix-functions/tolower.texi: Likewise.
25161         * doc/posix-functions/toupper.texi: Likewise.
25162         * doc/posix-functions/towctrans.texi: Likewise.
25163         * doc/posix-functions/ungetwc.texi: Likewise.
25164         * doc/posix-functions/vswprintf.texi: Likewise.
25165         * doc/posix-functions/wcrtomb.texi: Likewise.
25166         * doc/posix-functions/wcscat.texi: Likewise.
25167         * doc/posix-functions/wcschr.texi: Likewise.
25168         * doc/posix-functions/wcscmp.texi: Likewise.
25169         * doc/posix-functions/wcscoll.texi: Likewise.
25170         * doc/posix-functions/wcscpy.texi: Likewise.
25171         * doc/posix-functions/wcscspn.texi: Likewise.
25172         * doc/posix-functions/wcsftime.texi: Likewise.
25173         * doc/posix-functions/wcslen.texi: Likewise.
25174         * doc/posix-functions/wcsncat.texi: Likewise.
25175         * doc/posix-functions/wcsncmp.texi: Likewise.
25176         * doc/posix-functions/wcsncpy.texi: Likewise.
25177         * doc/posix-functions/wcspbrk.texi: Likewise.
25178         * doc/posix-functions/wcsrchr.texi: Likewise.
25179         * doc/posix-functions/wcsrtombs.texi: Likewise.
25180         * doc/posix-functions/wcsspn.texi: Likewise.
25181         * doc/posix-functions/wcsstr.texi: Likewise.
25182         * doc/posix-functions/wcstod.texi: Likewise.
25183         * doc/posix-functions/wcstof.texi: Likewise.
25184         * doc/posix-functions/wcstoimax.texi: Likewise.
25185         * doc/posix-functions/wcstok.texi: Likewise.
25186         * doc/posix-functions/wcstold.texi: Likewise.
25187         * doc/posix-functions/wcstoll.texi: Likewise.
25188         * doc/posix-functions/wcstol.texi: Likewise.
25189         * doc/posix-functions/wcstombs.texi: Likewise.
25190         * doc/posix-functions/wcstoull.texi: Likewise.
25191         * doc/posix-functions/wcstoul.texi: Likewise.
25192         * doc/posix-functions/wcstoumax.texi: Likewise.
25193         * doc/posix-functions/wcswidth.texi: Likewise.
25194         * doc/posix-functions/wcsxfrm.texi: Likewise.
25195         * doc/posix-functions/wctob.texi: Likewise.
25196         * doc/posix-functions/wctomb.texi: Likewise.
25197         * doc/posix-functions/wctrans.texi: Likewise.
25198         * doc/posix-functions/wctype.texi: Likewise.
25199         * doc/posix-functions/wcwidth.texi: Likewise.
25200         * doc/posix-functions/wmemchr.texi: Likewise.
25201         * doc/posix-functions/wmemcmp.texi: Likewise.
25202         * doc/posix-functions/wmemcpy.texi: Likewise.
25203         * doc/posix-functions/wmemmove.texi: Likewise.
25204         * doc/posix-functions/wmemset.texi: Likewise.
25205         * doc/posix-functions/wprintf.texi: Likewise.
25206         * doc/posix-functions/wscanf.texi: Likewise.
25207
25208 2008-12-21  Bruno Haible  <bruno@clisp.org>
25209
25210         Update doc for HP-UX 11.11.
25211         * doc/posix-functions/btowc.texi: Clarify that the function is missing
25212         in HP-UX version 11.00, not in all versions of HP-UX 11.
25213         * doc/posix-functions/fwide.texi: Likewise.
25214         * doc/posix-functions/fwprintf.texi: Likewise.
25215         * doc/posix-functions/fwscanf.texi: Likewise.
25216         * doc/posix-functions/inet_ntop.texi: Likewise.
25217         * doc/posix-functions/inet_pton.texi: Likewise.
25218         * doc/posix-functions/mbrlen.texi: Likewise.
25219         * doc/posix-functions/mbrtowc.texi: Likewise.
25220         * doc/posix-functions/mbsinit.texi: Likewise.
25221         * doc/posix-functions/mbsrtowcs.texi: Likewise.
25222         * doc/posix-functions/swprintf.texi: Likewise.
25223         * doc/posix-functions/swscanf.texi: Likewise.
25224         * doc/posix-functions/towctrans.texi: Likewise.
25225         * doc/posix-functions/vfwprintf.texi: Likewise.
25226         * doc/posix-functions/vswprintf.texi: Likewise.
25227         * doc/posix-functions/vwprintf.texi: Likewise.
25228         * doc/posix-functions/wcrtomb.texi: Likewise.
25229         * doc/posix-functions/wcsrtombs.texi: Likewise.
25230         * doc/posix-functions/wcsstr.texi: Likewise.
25231         * doc/posix-functions/wctob.texi: Likewise.
25232         * doc/posix-functions/wctrans.texi: Likewise.
25233         * doc/posix-functions/wmemchr.texi: Likewise.
25234         * doc/posix-functions/wmemcmp.texi: Likewise.
25235         * doc/posix-functions/wmemcpy.texi: Likewise.
25236         * doc/posix-functions/wmemmove.texi: Likewise.
25237         * doc/posix-functions/wmemset.texi: Likewise.
25238         * doc/posix-functions/wprintf.texi: Likewise.
25239         * doc/posix-functions/wscanf.texi: Likewise.
25240
25241 2008-12-21  Bruno Haible  <bruno@clisp.org>
25242
25243         Work around a portability problem.
25244         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
25245         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
25246
25247 2008-12-20  Bruno Haible  <bruno@clisp.org>
25248
25249         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
25250         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
25251         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
25252         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
25253         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
25254
25255         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
25256         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
25257         set.
25258         (GNULIB_defined_mbstate_t): New macro.
25259         (mbsinit): Redefine if REPLACE_MBSINIT is set.
25260         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
25261         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
25262         reuses the system's mbrtowc function but works around the bugs.
25263         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
25264         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
25265         macros.
25266         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
25267         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
25268         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
25269         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
25270         REPLACE_MBSINIT if mbsinit needs to be overridden.
25271         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
25272         REPLACE_MBSINIT, REPLACE_MBRTOWC.
25273         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
25274         REPLACE_MBSINIT, REPLACE_MBRTOWC.
25275         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25276         m4/locale-zh.m4.
25277         (Depends): Add mbsinit.
25278         * modules/mbsinit (Depends): Add mbrtowc.
25279         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
25280
25281 2008-12-20  Bruno Haible  <bruno@clisp.org>
25282
25283         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
25284         so that there are no conversion errors on AIX.
25285         * tests/test-mbsrtowcs.c (main): LIkewise.
25286
25287 2008-12-20  Bruno Haible  <bruno@clisp.org>
25288
25289         Work around wctob bug on Solaris <= 9.
25290         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
25291         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
25292         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
25293         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
25294         * modules/wctob (Files): Add m4/locale-fr.m4.
25295         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
25296
25297 2008-12-20  Bruno Haible  <bruno@clisp.org>
25298
25299         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
25300         /dev/null.
25301         * tests/test-select-in.sh: Likewise.
25302         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25303
25304 2008-12-20  Bruno Haible  <bruno@clisp.org>
25305
25306         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
25307         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
25308         Cygwin 1.5.x.
25309
25310 2008-12-20  Bruno Haible  <bruno@clisp.org>
25311
25312         Ensure mbstate_t is defined on HP-UX 11.11.
25313         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
25314         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
25315         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
25316         AC_USE_SYSTEM_EXTENSIONS.
25317         * modules/fnmatch (Depends-on): Add extensions.
25318         * modules/mbrlen (Depends-on): Likewise.
25319         * modules/mbrtowc (Depends-on): Likewise.
25320         * modules/mbsinit (Depends-on): Likewise.
25321         * modules/mbsrtowcs (Depends-on): Likewise.
25322         * modules/mbswidth (Depends-on): Likewise.
25323         * modules/quotearg (Depends-on): Likewise.
25324         * modules/strftime (Depends-on): Likewise.
25325
25326 2008-12-20  Bruno Haible  <bruno@clisp.org>
25327
25328         Ensure wctob is declared on IRIX 6.5.
25329         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
25330         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
25331         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
25332         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
25333         of HAVE_WCTOB.
25334         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
25335         HAVE_WCTOB.
25336         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
25337
25338 2008-12-19  Bruno Haible  <bruno@clisp.org>
25339
25340         * modules/mbsrtowcs-tests: New file.
25341         * tests/test-mbsrtowcs1.sh: New file.
25342         * tests/test-mbsrtowcs2.sh: New file.
25343         * tests/test-mbsrtowcs3.sh: New file.
25344         * tests/test-mbsrtowcs4.sh: New file.
25345         * tests/test-mbsrtowcs.c: New file.
25346
25347         New module 'mbsrtowcs'.
25348         * lib/wchar.in.h (mbsrtowcs): New declaration.
25349         * lib/mbsrtowcs.c: New file.
25350         * m4/mbsrtowcs.m4: New file.
25351         * modules/mbsrtowcs: New file.
25352         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
25353         HAVE_MBSRTOWCS.
25354         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
25355         HAVE_MBSRTOWCS.
25356         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
25357
25358 2008-12-19  Bruno Haible  <bruno@clisp.org>
25359
25360         New module 'mbrlen'.
25361         * lib/wchar.in.h (mbrlen): New declaration.
25362         * lib/mbrlen.c: New file.
25363         * m4/mbrlen.m4: New file.
25364         * modules/mbrlen: New file.
25365         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
25366         HAVE_MBRLEN.
25367         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
25368         HAVE_MBRLEN.
25369         * doc/posix-functions/mbrlen.texi: Document the new module.
25370
25371 2008-12-19  Bruno Haible  <bruno@clisp.org>
25372
25373         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
25374         * modules/mbrtowc (Depends-on): Add verify.
25375         Suggested by Paul Eggert.
25376
25377 2008-12-18  Bruno Haible  <bruno@clisp.org>
25378
25379         * modules/mbsinit-tests: New file.
25380         * tests/test-mbsinit.sh: New file.
25381         * tests/test-mbsinit.c: New file.
25382
25383 2008-12-18  Bruno Haible  <bruno@clisp.org>
25384
25385         * modules/mbrtowc-tests: New file.
25386         * tests/test-mbrtowc1.sh: New file.
25387         * tests/test-mbrtowc2.sh: New file.
25388         * tests/test-mbrtowc3.sh: New file.
25389         * tests/test-mbrtowc4.sh: New file.
25390         * tests/test-mbrtowc.c: New file.
25391
25392         New module 'mbrtowc'.
25393         * lib/wchar.in.h (mbstate_t): Override when the system does not have
25394         mbsinit and mbrtowc.
25395         (mbrtowc): New declaration.
25396         * lib/mbrtowc.c: New file.
25397         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
25398         * modules/mbrtowc: New file.
25399         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
25400         HAVE_MBRTOWC.
25401         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
25402         HAVE_MBRTOWC.
25403         * doc/posix-functions/mbrtowc.texi: Document the new module.
25404
25405 2008-12-18  Bruno Haible  <bruno@clisp.org>
25406
25407         New module 'wctob'.
25408         * lib/wchar.in.h (wctob): New declaration.
25409         * lib/wctob.c: New file.
25410         * m4/wctob.m4: New file.
25411         * modules/wctob: New file.
25412         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
25413         HAVE_WCTOB.
25414         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
25415         * doc/posix-functions/wctob.texi: Document the new module.
25416
25417 2008-12-18  Bruno Haible  <bruno@clisp.org>
25418
25419         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
25420         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
25421
25422 2008-12-18  Simon Josefsson  <simon@josefsson.org>
25423
25424         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
25425         G. Christensen" <tgc@jupiterrise.com>.
25426
25427         * lib/flock.c: Need to include errno.h.  Reported by "Tom
25428         G. Christensen" <tgc@jupiterrise.com>.
25429
25430         * lib/flock.c: Need to include string.h.  Reported by "Tom
25431         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
25432         <ebb9@byu.net>.
25433
25434 2008-12-18  Bruno Haible  <bruno@clisp.org>
25435
25436         * m4/locale-ja.m4: New file, from GNU gettext.
25437
25438 2008-12-17  Bruno Haible  <bruno@clisp.org>
25439
25440         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
25441         Suggested by Eric Blake.
25442
25443 2008-12-17  Bruno Haible  <bruno@clisp.org>
25444
25445         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
25446
25447 2008-12-17  Bruno Haible  <bruno@clisp.org>
25448
25449         * lib/mbsinit.c: Include verify.h. Verify an assumption.
25450         * modules/mbsinit (Depends-on): Add verify.
25451         Suggested by Paul Eggert.
25452
25453 2008-12-17  Bruno Haible  <bruno@clisp.org>
25454
25455         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
25456         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
25457         gl_FUNC_MBRTOWC.
25458         * m4/mbiter.m4 (gl_MBITER): LIkewise.
25459         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
25460         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
25461         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
25462         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
25463         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
25464         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
25465         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
25466         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
25467         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
25468         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
25469         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
25470         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
25471         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
25472         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
25473         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25474         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
25475         * modules/trim (configure.ac): Likewise.
25476
25477 2008-12-17  Bruno Haible  <bruno@clisp.org>
25478
25479         * modules/btowc-tests: New file.
25480         * tests/test-btowc1.sh: New file.
25481         * tests/test-btowc2.sh: New file.
25482         * tests/test-btowc.c: New file.
25483
25484         New module 'btowc'.
25485         * lib/wchar.in.h (btowc): New declaration.
25486         * lib/btowc.c: New file.
25487         * m4/btowc.m4: New file.
25488         * modules/btowc: New file.
25489         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
25490         HAVE_BTOWC.
25491         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
25492         * doc/posix-functions/btowc.texi: Document the new module.
25493
25494 2008-12-17  Bruno Haible  <bruno@clisp.org>
25495
25496         New module 'mbsinit'.
25497         * lib/wchar.in.h (mbsinit): New declaration.
25498         * lib/mbsinit.c: New file.
25499         * m4/mbsinit.m4: New file.
25500         * modules/mbsinit: New file.
25501         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
25502         HAVE_MBSINIT.
25503         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
25504         HAVE_MBSINIT.
25505         * doc/posix-functions/mbsinit.texi: Document the new module.
25506
25507 2008-12-16  Bruno Haible  <bruno@clisp.org>
25508
25509         * lib/unistd.in.h: Add comment.
25510         * tests/test-environ.c: Don't include <stdlib.h>.
25511
25512 2008-12-16  Bruno Haible  <bruno@clisp.org>
25513
25514         * lib/parse-duration.h (parse_duration): Document return value
25515         convention.
25516         * lib/parse-duration.c: Include specification header first. Add
25517         comments.
25518         (_): Remove macro.
25519         (parse_year_month_day, parse_hour_minute_second): Move side effects
25520         outside of strchr call.
25521         (parse_non_iso8601): Move side effects outside of isspace call.
25522         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
25523         call.
25524
25525 2008-12-16  Bruno Haible  <bruno@clisp.org>
25526
25527         * tests/test-parse-duration.sh: Produce no output when the test
25528         succeeds.
25529
25530 2008-12-16  Bruno Haible  <bruno@clisp.org>
25531
25532         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
25533         expressions.
25534
25535 2008-12-15  Bruno Haible  <bruno@clisp.org>
25536
25537         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
25538         * doc/glibc-functions/flistxattr.texi: Likewise.
25539         * doc/glibc-functions/fopencookie.texi: Likewise.
25540         * doc/glibc-functions/fremovexattr.texi: Likewise.
25541         * doc/glibc-functions/fsetxattr.texi: Likewise.
25542         * doc/glibc-functions/getxattr.texi: Likewise.
25543         * doc/glibc-functions/lgetxattr.texi: Likewise.
25544         * doc/glibc-functions/listxattr.texi: Likewise.
25545         * doc/glibc-functions/llistxattr.texi: Likewise.
25546         * doc/glibc-functions/lremovexattr.texi: Likewise.
25547         * doc/glibc-functions/lsetxattr.texi: Likewise.
25548         * doc/glibc-functions/removexattr.texi: Likewise.
25549         * doc/glibc-functions/setxattr.texi: Likewise.
25550         * doc/posix-functions/open_memstream.texi: Likewise.
25551
25552 2008-12-15  Eric Blake  <ebb9@byu.net>
25553
25554         Update doc for cygwin 1.7.
25555         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
25556         functions.
25557         * doc/posix-functions/fchmodat.texi: Likewise.
25558         * doc/posix-functions/fchownat.texi: Likewise.
25559         * doc/posix-functions/fdopendir.texi: Likewise.
25560         * doc/posix-functions/fmemopen.texi: Likewise.
25561         * doc/posix-functions/freeaddrinfo.texi: Likewise.
25562         * doc/posix-functions/fstatat.texi: Likewise.
25563         * doc/posix-functions/futimens.texi: Likewise.
25564         * doc/posix-functions/gai_strerror.texi: Likewise.
25565         * doc/posix-functions/getaddrinfo.texi: Likewise.
25566         * doc/posix-functions/getnameinfo.texi: Likewise.
25567         * doc/posix-functions/if_freenameindex.texi: Likewise.
25568         * doc/posix-functions/if_indextoname.texi: Likewise.
25569         * doc/posix-functions/if_nameindex.texi: Likewise.
25570         * doc/posix-functions/if_nametoindex.texi: Likewise.
25571         * doc/posix-functions/insque.texi: Likewise.
25572         * doc/posix-functions/linkat.texi: Likewise.
25573         * doc/posix-functions/llrint.texi: Likewise.
25574         * doc/posix-functions/llrintf.texi: Likewise.
25575         * doc/posix-functions/llrintl.texi: Likewise.
25576         * doc/posix-functions/lockf.texi: Likewise.
25577         * doc/posix-functions/lrintl.texi: Likewise.
25578         * doc/posix-functions/mkdirat.texi: Likewise.
25579         * doc/posix-functions/mkfifoat.texi: Likewise.
25580         * doc/posix-functions/mknodat.texi: Likewise.
25581         * doc/posix-functions/mq_close.texi: Likewise.
25582         * doc/posix-functions/mq_getattr.texi: Likewise.
25583         * doc/posix-functions/mq_notify.texi: Likewise.
25584         * doc/posix-functions/mq_open.texi: Likewise.
25585         * doc/posix-functions/mq_receive.texi: Likewise.
25586         * doc/posix-functions/mq_send.texi: Likewise.
25587         * doc/posix-functions/mq_setattr.texi: Likewise.
25588         * doc/posix-functions/mq_timedreceive.texi: Likewise.
25589         * doc/posix-functions/mq_timedsend.texi: Likewise.
25590         * doc/posix-functions/mq_unlink.texi: Likewise.
25591         * doc/posix-functions/open_memstream.texi: Likewise.
25592         * doc/posix-functions/openat.texi: Likewise.
25593         * doc/posix-functions/posix_fadvise.texi: Likewise.
25594         * doc/posix-functions/posix_fallocate.texi: Likewise.
25595         * doc/posix-functions/posix_madvise.texi: Likewise.
25596         * doc/posix-functions/posix_memalign.texi: Likewise.
25597         * doc/posix-functions/posix_openpt.texi: Likewise.
25598         * doc/posix-functions/readlinkat.texi: Likewise.
25599         * doc/posix-functions/remque.texi: Likewise.
25600         * doc/posix-functions/renameat.texi: Likewise.
25601         * doc/posix-functions/rintl.texi: Likewise.
25602         * doc/posix-functions/sem_unlink.texi: Likewise.
25603         * doc/posix-functions/shm_open.texi: Likewise.
25604         * doc/posix-functions/shm_unlink.texi: Likewise.
25605         * doc/posix-functions/signgam.texi: Likewise.
25606         * doc/posix-functions/sigset.texi: Likewise.
25607         * doc/posix-functions/stpcpy.texi: Likewise.
25608         * doc/posix-functions/stpncpy.texi: Likewise.
25609         * doc/posix-functions/strerror.texi: Likewise.
25610         * doc/posix-functions/strtod.texi: Likewise.
25611         * doc/posix-functions/symlinkat.texi: Likewise.
25612         * doc/posix-functions/unlinkat.texi: Likewise.
25613         * doc/posix-functions/utimensat.texi: Likewise.
25614         * doc/glibc-functions/bindresvport.texi: Likewise.
25615         * doc/glibc-functions/dn_expand.texi: Likewise.
25616         * doc/glibc-functions/exp10.texi: Likewise.
25617         * doc/glibc-functions/exp10f.texi: Likewise.
25618         * doc/glibc-functions/fgetxattr.texi: Likewise.
25619         * doc/glibc-functions/flistxattr.texi: Likewise.
25620         * doc/glibc-functions/fopencookie.texi: Likewise.
25621         * doc/glibc-functions/freeifaddrs.texi: Likewise.
25622         * doc/glibc-functions/fremovexattr.texi: Likewise.
25623         * doc/glibc-functions/fsetxattr.texi: Likewise.
25624         * doc/glibc-functions/getifaddrs.texi: Likewise.
25625         * doc/glibc-functions/getxattr.texi: Likewise.
25626         * doc/glibc-functions/lgetxattr.texi: Likewise.
25627         * doc/glibc-functions/listxattr.texi: Likewise.
25628         * doc/glibc-functions/llistxattr.texi: Likewise.
25629         * doc/glibc-functions/lremovexattr.texi: Likewise.
25630         * doc/glibc-functions/lsetxattr.texi: Likewise.
25631         * doc/glibc-functions/pow10.texi: Likewise.
25632         * doc/glibc-functions/pow10f.texi: Likewise.
25633         * doc/glibc-functions/rcmd_af.texi: Likewise.
25634         * doc/glibc-functions/removexattr.texi: Likewise.
25635         * doc/glibc-functions/res_init.texi: Likewise.
25636         * doc/glibc-functions/res_mkquery.texi: Likewise.
25637         * doc/glibc-functions/res_query.texi: Likewise.
25638         * doc/glibc-functions/res_querydomain.texi: Likewise.
25639         * doc/glibc-functions/res_send.texi: Likewise.
25640         * doc/glibc-functions/rresvport_af.texi: Likewise.
25641         * doc/glibc-functions/setxattr.texi: Likewise.
25642         * doc/glibc-functions/strcasestr.texi: Likewise.
25643
25644 2008-12-15  Bruno Haible  <bruno@clisp.org>
25645
25646         Fix compilation error on OSF/1 4.0.
25647         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
25648         <sys/time.h>, simply delegate to the system header.
25649         Reported by Daniel Richard G. <oss@teragram.com>.
25650
25651 2008-12-15  Bruno Haible  <bruno@clisp.org>
25652
25653         * doc/posix-functions/openat.texi: Mention the 'openat' module.
25654         * doc/posix-functions/fchmodat.texi: Likewise.
25655         * doc/posix-functions/fchownat.texi: Likewise.
25656         * doc/posix-functions/fdopendir.texi: Likewise.
25657         * doc/posix-functions/fstatat.texi: Likewise.
25658         * doc/posix-functions/mkdirat.texi: Likewise.
25659         * doc/posix-functions/unlinkat.texi: Likewise.
25660
25661 2008-12-14  Bruno Haible  <bruno@clisp.org>
25662
25663         Update doc for POSIX:2008.
25664         * doc/posix-functions/faccessat.texi: New file.
25665         * doc/posix-functions/fchmodat.texi: New file.
25666         * doc/posix-functions/fchownat.texi: New file.
25667         * doc/posix-functions/fdopendir.texi: New file.
25668         * doc/posix-functions/fstatat.texi: New file.
25669         * doc/posix-functions/futimens.texi: New file.
25670         * doc/posix-functions/linkat.texi: New file.
25671         * doc/posix-functions/mkdirat.texi: New file.
25672         * doc/posix-functions/mkfifoat.texi: New file.
25673         * doc/posix-functions/mknodat.texi: New file.
25674         * doc/posix-functions/open_wmemstream.texi: New file.
25675         * doc/posix-functions/openat.texi: New file.
25676         * doc/posix-functions/psiginfo.texi: New file.
25677         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
25678         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
25679         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
25680         * doc/posix-functions/readlinkat.texi: New file.
25681         * doc/posix-functions/renameat.texi: New file.
25682         * doc/posix-functions/strerror_l.texi: New file.
25683         * doc/posix-functions/symlinkat.texi: New file.
25684         * doc/posix-functions/unlinkat.texi: New file.
25685         * doc/posix-functions/utimensat.texi: New file.
25686         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25687
25688 2008-12-14  Bruno Haible  <bruno@clisp.org>
25689
25690         Update doc for POSIX:2008.
25691         * doc/posix-functions/alphasort.texi: Renamed from
25692         doc/glibc-functions/alphasort.texi.
25693         * doc/posix-functions/dirfd.texi: Renamed from
25694         doc/glibc-functions/dirfd.texi.
25695         * doc/posix-functions/dprintf.texi: Renamed from
25696         doc/glibc-functions/dprintf.texi.
25697         * doc/posix-functions/duplocale.texi: Renamed from
25698         doc/glibc-functions/duplocale.texi.
25699         * doc/posix-functions/fexecve.texi: Renamed from
25700         doc/glibc-functions/fexecve.texi.
25701         * doc/posix-functions/fmemopen.texi: Renamed from
25702         doc/glibc-functions/fmemopen.texi.
25703         * doc/posix-functions/freelocale.texi: Renamed from
25704         doc/glibc-functions/freelocale.texi.
25705         * doc/posix-functions/getdate_err.texi: Renamed from
25706         doc/glibc-functions/getdate_err.texi.
25707         * doc/posix-functions/isalnum_l.texi: Renamed from
25708         doc/glibc-functions/isalnum_l.texi.
25709         * doc/posix-functions/isalpha_l.texi: Renamed from
25710         doc/glibc-functions/isalpha_l.texi.
25711         * doc/posix-functions/isblank_l.texi: Renamed from
25712         doc/glibc-functions/isblank_l.texi.
25713         * doc/posix-functions/iscntrl_l.texi: Renamed from
25714         doc/glibc-functions/iscntrl_l.texi.
25715         * doc/posix-functions/isdigit_l.texi: Renamed from
25716         doc/glibc-functions/isdigit_l.texi.
25717         * doc/posix-functions/isgraph_l.texi: Renamed from
25718         doc/glibc-functions/isgraph_l.texi.
25719         * doc/posix-functions/islower_l.texi: Renamed from
25720         doc/glibc-functions/islower_l.texi.
25721         * doc/posix-functions/isprint_l.texi: Renamed from
25722         doc/glibc-functions/isprint_l.texi.
25723         * doc/posix-functions/ispunct_l.texi: Renamed from
25724         doc/glibc-functions/ispunct_l.texi.
25725         * doc/posix-functions/isspace_l.texi: Renamed from
25726         doc/glibc-functions/isspace_l.texi.
25727         * doc/posix-functions/isupper_l.texi: Renamed from
25728         doc/glibc-functions/isupper_l.texi.
25729         * doc/posix-functions/iswalnum_l.texi: Renamed from
25730         doc/glibc-functions/iswalnum_l.texi.
25731         * doc/posix-functions/iswalpha_l.texi: Renamed from
25732         doc/glibc-functions/iswalpha_l.texi.
25733         * doc/posix-functions/iswblank_l.texi: Renamed from
25734         doc/glibc-functions/iswblank_l.texi.
25735         * doc/posix-functions/iswcntrl_l.texi: Renamed from
25736         doc/glibc-functions/iswcntrl_l.texi.
25737         * doc/posix-functions/iswctype_l.texi: Renamed from
25738         doc/glibc-functions/iswctype_l.texi.
25739         * doc/posix-functions/iswdigit_l.texi: Renamed from
25740         doc/glibc-functions/iswdigit_l.texi.
25741         * doc/posix-functions/iswgraph_l.texi: Renamed from
25742         doc/glibc-functions/iswgraph_l.texi.
25743         * doc/posix-functions/iswlower_l.texi: Renamed from
25744         doc/glibc-functions/iswlower_l.texi.
25745         * doc/posix-functions/iswprint_l.texi: Renamed from
25746         doc/glibc-functions/iswprint_l.texi.
25747         * doc/posix-functions/iswpunct_l.texi: Renamed from
25748         doc/glibc-functions/iswpunct_l.texi.
25749         * doc/posix-functions/iswspace_l.texi: Renamed from
25750         doc/glibc-functions/iswspace_l.texi.
25751         * doc/posix-functions/iswupper_l.texi: Renamed from
25752         doc/glibc-functions/iswupper_l.texi.
25753         * doc/posix-functions/iswxdigit_l.texi: Renamed from
25754         doc/glibc-functions/iswxdigit_l.texi.
25755         * doc/posix-functions/isxdigit_l.texi: Renamed from
25756         doc/glibc-functions/isxdigit_l.texi.
25757         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
25758         doc/glibc-functions/mbsnrtowcs.texi.
25759         * doc/posix-functions/mkdtemp.texi: Renamed from
25760         doc/glibc-functions/mkdtemp.texi.
25761         * doc/posix-functions/newlocale.texi: Renamed from
25762         doc/glibc-functions/newlocale.texi.
25763         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
25764         doc/glibc-functions/nl_langinfo_l.texi.
25765         * doc/posix-functions/open_memstream.texi: Renamed from
25766         doc/glibc-functions/open_memstream.texi.
25767         * doc/posix-functions/opterr.texi: Renamed from
25768         doc/glibc-functions/opterr.texi.
25769         * doc/posix-functions/optind.texi: Renamed from
25770         doc/glibc-functions/optind.texi.
25771         * doc/posix-functions/optopt.texi: Renamed from
25772         doc/glibc-functions/optopt.texi.
25773         * doc/posix-functions/psignal.texi: Renamed from
25774         doc/glibc-functions/psignal.texi.
25775         * doc/posix-functions/scandir.texi: Renamed from
25776         doc/glibc-functions/scandir.texi.
25777         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
25778         doc/glibc-functions/sched_get_priority_min.texi.
25779         * doc/posix-functions/signgam.texi: Renamed from
25780         doc/glibc-functions/signgam.texi.
25781         * doc/posix-functions/stpcpy.texi: Renamed from
25782         doc/glibc-functions/stpcpy.texi.
25783         * doc/posix-functions/stpncpy.texi: Renamed from
25784         doc/glibc-functions/stpncpy.texi.
25785         * doc/posix-functions/strcasecmp_l.texi: Renamed from
25786         doc/glibc-functions/strcasecmp_l.texi.
25787         * doc/posix-functions/strcoll_l.texi: Renamed from
25788         doc/glibc-functions/strcoll_l.texi.
25789         * doc/posix-functions/strfmon_l.texi: Renamed from
25790         doc/glibc-functions/strfmon_l.texi.
25791         * doc/posix-functions/strftime_l.texi: Renamed from
25792         doc/glibc-functions/strftime_l.texi.
25793         * doc/posix-functions/strncasecmp_l.texi: Renamed from
25794         doc/glibc-functions/strncasecmp_l.texi.
25795         * doc/posix-functions/strndup.texi: Renamed from
25796         doc/glibc-functions/strndup.texi.
25797         * doc/posix-functions/strnlen.texi: Renamed from
25798         doc/glibc-functions/strnlen.texi.
25799         * doc/posix-functions/strsignal.texi: Renamed from
25800         doc/glibc-functions/strsignal.texi.
25801         * doc/posix-functions/strxfrm_l.texi: Renamed from
25802         doc/glibc-functions/strxfrm_l.texi.
25803         * doc/posix-functions/timer_gettime.texi: Renamed from
25804         doc/glibc-functions/timer_gettime.texi.
25805         * doc/posix-functions/tolower_l.texi: Renamed from
25806         doc/glibc-functions/tolower_l.texi.
25807         * doc/posix-functions/toupper_l.texi: Renamed from
25808         doc/glibc-functions/toupper_l.texi.
25809         * doc/posix-functions/towctrans_l.texi: Renamed from
25810         doc/glibc-functions/towctrans_l.texi.
25811         * doc/posix-functions/towlower_l.texi: Renamed from
25812         doc/glibc-functions/towlower_l.texi.
25813         * doc/posix-functions/towupper_l.texi: Renamed from
25814         doc/glibc-functions/towupper_l.texi.
25815         * doc/posix-functions/uselocale.texi: Renamed from
25816         doc/glibc-functions/uselocale.texi.
25817         * doc/posix-functions/vdprintf.texi: Renamed from
25818         doc/glibc-functions/vdprintf.texi.
25819         * doc/posix-functions/wcpcpy.texi:
25820         Renamed from doc/glibc-functions/wcpcpy.texi.
25821         * doc/posix-functions/wcpncpy.texi: Renamed from
25822         doc/glibc-functions/wcpncpy.texi.
25823         * doc/posix-functions/wcscasecmp.texi: Renamed from
25824         doc/glibc-functions/wcscasecmp.texi.
25825         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
25826         doc/glibc-functions/wcscasecmp_l.texi.
25827         * doc/posix-functions/wcscoll_l.texi: Renamed from
25828         doc/glibc-functions/wcscoll_l.texi.
25829         * doc/posix-functions/wcsdup.texi: Renamed from
25830         doc/glibc-functions/wcsdup.texi.
25831         * doc/posix-functions/wcsncasecmp.texi: Renamed from
25832         doc/glibc-functions/wcsncasecmp.texi.
25833         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
25834         doc/glibc-functions/wcsncasecmp_l.texi.
25835         * doc/posix-functions/wcsnlen.texi: Renamed from
25836         doc/glibc-functions/wcsnlen.texi.
25837         * doc/posix-functions/wcsnrtombs.texi: Renamed from
25838         doc/glibc-functions/wcsnrtombs.texi.
25839         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
25840         doc/glibc-functions/wcsxfrm_l.texi.
25841         * doc/posix-functions/wctrans_l.texi: Renamed from
25842         doc/glibc-functions/wctrans_l.texi.
25843         * doc/posix-functions/wctype_l.texi: Renamed from
25844         doc/glibc-functions/wctype_l.texi.
25845         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25846         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
25847         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
25848         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
25849         these subsections.
25850         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
25851         Remove sections.
25852
25853 2008-12-14  Bruno Haible  <bruno@clisp.org>
25854
25855         Update doc for POSIX:2008.
25856         * doc/posix-functions/*.texi: Update URL of POSIX specification.
25857
25858 2008-12-14  Bruno Haible  <bruno@clisp.org>
25859
25860         Update doc for POSIX:2008.
25861         * doc/pastposix-functions/bcmp.texi: Renamed from
25862         doc/posix-functions/bcmp.texi.
25863         * doc/pastposix-functions/bcopy.texi: Renamed from
25864         doc/posix-functions/bcopy.texi.
25865         * doc/pastposix-functions/bsd_signal.texi: Renamed from
25866         doc/posix-functions/bsd_signal.texi.
25867         * doc/pastposix-functions/bzero.texi: Renamed from
25868         doc/posix-functions/bzero.texi.
25869         * doc/pastposix-functions/ecvt.texi: Renamed from
25870         doc/posix-functions/ecvt.texi.
25871         * doc/pastposix-functions/fcvt.texi: Renamed from
25872         doc/posix-functions/fcvt.texi.
25873         * doc/pastposix-functions/ftime.texi: Renamed from
25874         doc/posix-functions/ftime.texi.
25875         * doc/pastposix-functions/gcvt.texi: Renamed from
25876         doc/posix-functions/gcvt.texi.
25877         * doc/pastposix-functions/getcontext.texi: Renamed from
25878         doc/posix-functions/getcontext.texi.
25879         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
25880         doc/posix-functions/gethostbyaddr.texi.
25881         * doc/pastposix-functions/gethostbyname.texi: Renamed from
25882         doc/posix-functions/gethostbyname.texi.
25883         * doc/pastposix-functions/getwd.texi: Renamed from
25884         doc/posix-functions/getwd.texi.
25885         * doc/pastposix-functions/h_errno.texi: Renamed from
25886         doc/posix-functions/h_errno.texi.
25887         * doc/pastposix-functions/index.texi: Renamed from
25888         doc/posix-functions/index.texi.
25889         * doc/pastposix-functions/makecontext.texi: Renamed from
25890         doc/posix-functions/makecontext.texi.
25891         * doc/pastposix-functions/mktemp.texi: Renamed from
25892         doc/posix-functions/mktemp.texi.
25893         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
25894         doc/posix-functions/pthread_attr_getstackaddr.texi.
25895         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
25896         doc/posix-functions/pthread_attr_setstackaddr.texi.
25897         * doc/pastposix-functions/rindex.texi: Renamed from
25898         doc/posix-functions/rindex.texi.
25899         * doc/pastposix-functions/scalb.texi: Renamed from
25900         doc/posix-functions/scalb.texi.
25901         * doc/pastposix-functions/setcontext.texi: Renamed from
25902         doc/posix-functions/setcontext.texi.
25903         * doc/pastposix-functions/swapcontext.texi: Renamed from
25904         doc/posix-functions/swapcontext.texi.
25905         * doc/pastposix-functions/ualarm.texi: Renamed from
25906         doc/posix-functions/ualarm.texi.
25907         * doc/pastposix-functions/usleep.texi: Renamed from
25908         doc/posix-functions/usleep.texi.
25909         * doc/pastposix-functions/vfork.texi: Renamed from
25910         doc/posix-functions/vfork.texi.
25911         * doc/pastposix-functions/wcswcs.texi: Renamed from
25912         doc/posix-functions/wcswcs.texi.
25913         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
25914         (Function Substitutes): Update.
25915
25916 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25917
25918         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
25919         m4/strerror.m4.
25920
25921 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25922             Bruno Haible  <bruno@clisp.org>
25923
25924         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
25925
25926 2008-12-13  Bruno Haible  <bruno@clisp.org>
25927
25928         * modules/strtoull (Depends-on): Remove unistd.
25929
25930 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25931
25932         * modules/strtoull (Depends-on): Add stdlib.
25933
25934 2008-12-11  Simon Josefsson  <simon@josefsson.org>
25935
25936         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
25937
25938 2008-12-10  Jim Meyering  <meyering@redhat.com>
25939
25940         gl_ASSERT: don't say assertions are disabled when they're not
25941         * m4/assert.m4 (gl_ASSERT): Do not make configure report
25942         "checking whether to enable assertions... no", when they are in
25943         fact enabled.  This is solely a bug in the output of configure.
25944         In spite of saying "no", NDEBUG was not defined in that case.
25945         Also, as noted by Eric Blake, leave assertions enabled upon
25946         --enable-assert=INVALID.
25947
25948 2008-12-10  Bruno Haible  <bruno@clisp.org>
25949
25950         Change MODULES.html to refer to POSIX:2008 where possible.
25951         * MODULES.html.sh (POSIX2008_URL): New variable.
25952         (posix_headers): Remove sys/timeb, ucontext.
25953         (posix2001_headers): New variable.
25954         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
25955         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
25956         index, makecontext, mktemp, pthread_attr_getstackaddr,
25957         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
25958         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
25959         (posix2001_functions): New variable.
25960         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
25961         otherwise.
25962
25963 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25964
25965         add missing include to parse-duration.c
25966         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
25967         * modules/parse-duration (Depends-on): Add xalloc.
25968
25969         fix sed script reading maint.mk
25970         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
25971         (syntax-check-rules): Use it.
25972
25973 2008-12-09  Bruno Haible  <bruno@clisp.org>
25974
25975         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
25976         MacOS X 10.4/PowerPC.
25977         Reported by Simon Josefsson.
25978
25979 2008-12-08  Jim Meyering  <meyering@redhat.com>
25980
25981         work around mingw's lack of some S_IF definitions
25982         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
25983         Reported by Simon Josefsson.
25984
25985 2008-12-08  Bruno Haible  <bruno@clisp.org>
25986
25987         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
25988         applied to variables. Needed on MacOS X 10.4/PowerPC.
25989         Reported by Simon Josefsson.
25990
25991 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
25992         and Eric Blake  <ebb9@byu.net>
25993
25994         assert: honor --enable-assert
25995         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
25996         order to honor --enable-assert, rather than treating it as a
25997         synonym for --disable-assert.
25998
25999 2008-12-08  Jim Meyering  <meyering@redhat.com>
26000
26001         * lib/posixtm.c: Remove now-useless declaration of mktime.
26002
26003         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
26004
26005 2008-12-07  Bruno Haible  <bruno@clisp.org>
26006
26007         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
26008         test_once): Mark functions as static.
26009         * tests/test-tls.c (test_tls): Likewise.
26010
26011 2008-12-07  Bruno Haible  <bruno@clisp.org>
26012
26013         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
26014         iconv_register_autodetect.
26015
26016 2008-12-07  Jim Meyering  <meyering@redhat.com>
26017
26018         posixtm.c: avoid a warning
26019         * lib/posixtm.c (posixtime): Don't initialize tm0.
26020         It's no longer needed to placate gcc4's -Wuninitialized,
26021         and the attempt to placate would elicit a new warning.
26022
26023         unicodeio.c: mark unused parameters
26024         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
26025         (fallback_failure_callback): Likewise.
26026
26027 2008-12-07  Bruno Haible  <bruno@clisp.org>
26028
26029         * gnulib-tool (func_create_testdir): When building the tests
26030         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
26031         Reported by Simon Josefsson.
26032
26033 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26034
26035         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
26036
26037 2008-12-06  Bruno Haible  <bruno@clisp.org>
26038
26039         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
26040         Suggested by Eric Blake.
26041
26042 2008-12-06  Bruno Haible  <bruno@clisp.org>
26043
26044         Fix a c-stack test failure on MacOS X.
26045         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
26046         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
26047         handler for SIGBUS as well.
26048         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
26049         install a signal handler for SIGBUS as well.
26050         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
26051
26052 2008-12-06  Bruno Haible  <bruno@clisp.org>
26053
26054         Advocacy documentation.
26055         * doc/gnulib-intro.texi (Benefits): New section.
26056         * doc/gnulib.texi: Update.
26057
26058 2008-12-06  Bruno Haible  <bruno@clisp.org>
26059
26060         Document the 'manywarnings' module.
26061         * doc/manywarnings.texi: New file.
26062         * doc/gnulib.texi: Include it.
26063
26064 2008-12-05  Eric Blake  <ebb9@byu.net>
26065
26066         tests: silence some gcc warnings
26067         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
26068         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
26069         type mismatches.
26070
26071 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26072             Bruno Haible  <bruno@clisp.org>
26073
26074         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
26075
26076 2008-11-29  Jim Meyering  <meyering@redhat.com>
26077
26078         unicodeio.c: mark unused parameters
26079         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
26080         (fallback_failure_callback): Likewise.
26081
26082         fts: fix a thinko
26083         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
26084         (set_stat_type): Return S_IF*-valued "type" directly.
26085         Prompted by James Youngman's spotting a related bug.
26086         Confirmed by further testing through find.
26087
26088         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
26089         * lib/fts.c (D_TYPE): Define.
26090         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
26091         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
26092         (s_ifmt_shift_bits): New function.
26093         (set_stat_type): New function.
26094         (fts_build): When not calling fts_stat, call set_stat_type
26095         to propagate dirent.d_type info to fts_read caller.
26096         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
26097         fts_statp->st_mode type information may be valid.
26098
26099 2008-11-28  Simon Josefsson  <simon@josefsson.org>
26100
26101         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
26102         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
26103         <sds@gnu.org>.
26104
26105 2008-11-20  Bruno Haible  <bruno@clisp.org>
26106
26107         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
26108         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
26109         INCLUDE_NEXT.
26110         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
26111         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
26112         * modules/math (Makefile.am): Substitute
26113         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
26114         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26115
26116 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
26117             Bruno Haible  <bruno@clisp.org>
26118
26119         * lib/stdint.in.h: Define all type macros so that their expansion is
26120         a single typedef'ed token. Fixes a compilation failure in Boost which
26121         does "using ::int8_t;".
26122
26123 2008-11-18  Simon Josefsson  <simon@josefsson.org>
26124
26125         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
26126         gl_MANYWARN_ALL_GCC.
26127         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
26128         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
26129         * modules/manywarnings: New file.
26130         * MODULES.html.sh: Mention manywarnings module.
26131
26132 2008-11-18  Bruno Haible  <bruno@clisp.org>
26133
26134         * doc/gnulib-tool.texi (Unit tests): New section.
26135
26136 2008-11-18  Simon Josefsson  <simon@josefsson.org>
26137
26138         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
26139         paths like 'lib/po/foo.po'.
26140
26141 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26142
26143         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
26144         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
26145
26146 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26147
26148         * m4/warnings.m4: Use CPPFLAGS to really check whether the
26149         parameter works.
26150
26151 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26152
26153         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
26154
26155 2008-11-17  Bruce Korb  <bkorb@gnu.org>
26156
26157         * modules/parse-duration-tests: New file.
26158         * tests/test-parse-duration.sh: New file.
26159         * tests/test-parse-duration.c: New file.
26160
26161         New module 'parse-duration'.
26162         * lib/parse-duration.h: New file.
26163         * lib/parse-duration.c: New file.
26164         * modules/parse-duration: New file.
26165
26166 2008-11-17  Bruno Haible  <bruno@clisp.org>
26167
26168         * tests/test-select-out.sh: Comment out the first pipe test.
26169         Reported by Simon Josefsson.
26170
26171 2008-11-17  Bruno Haible  <bruno@clisp.org>
26172
26173         * modules/getaddrinfo (Depends-on): Add servent, hostent.
26174         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
26175         gl_HOSTENT.
26176
26177 2008-11-17  Bruno Haible  <bruno@clisp.org>
26178
26179         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
26180         -lnetwork and -lnet. Needed for Haiku and BeOS.
26181
26182 2008-11-16  Bruno Haible  <bruno@clisp.org>
26183
26184         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
26185
26186 2008-11-16  Bruno Haible  <bruno@clisp.org>
26187
26188         Avoid test failure on Haiku.
26189         * tests/test-fsync.c: Include <errno.h>.
26190         (main): Don't require that fsync (0) fails.
26191
26192 2008-11-15  Bruno Haible  <bruno@clisp.org>
26193
26194         New module 'hostent'.
26195         * modules/hostent: New file.
26196         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
26197
26198 2008-11-15  Bruno Haible  <bruno@clisp.org>
26199
26200         New module 'servent'.
26201         * modules/servent: New file.
26202         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
26203
26204 2008-11-15  Bruno Haible  <bruno@clisp.org>
26205
26206         Avoid generating same test program with two different rules.
26207         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
26208         test-frexp to test-frexp-nolibm.
26209         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
26210         test-frexpl to test-frexpl-nolibm.
26211
26212 2008-11-15  Bruno Haible  <bruno@clisp.org>
26213
26214         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
26215         $(FREXPL_LIBM).
26216
26217 2008-11-15  Bruno Haible  <bruno@clisp.org>
26218
26219         * lib/netdb.in.h: Activate the definitions also when the system's
26220         <netdb.h> has 'struct addrinfo'.
26221         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
26222         EAI_OVERFLOW or AI_NUMERICSERV.
26223         * doc/posix-headers/netdb.texi: Document the problem.
26224
26225 2008-11-15  Bruno Haible  <bruno@clisp.org>
26226
26227         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
26228
26229         Make the 'sched' module work on platforms where <sched.h> exists but
26230         is incomplete (such as Haiku).
26231         * lib/sched.in.h; Include the system's <sched.h> if it exists.
26232         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
26233         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
26234         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
26235         HAVE_STRUCT_SCHED_PARAM.
26236         * modules/sched (Depends-on): Add include_next.
26237         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
26238         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
26239         * doc/posix-headers/sched.texi: Document the issue.
26240
26241 2008-11-13  Jim Meyering  <meyering@redhat.com>
26242
26243         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
26244         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
26245         test would fail due to the difference in the Report bugs to ...
26246         line.  The expected address is empty, "<>", while the actual
26247         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
26248
26249 2008-11-12  Bruno Haible  <bruno@clisp.org>
26250
26251         lstat: don't compile lstat.c on systems lacking lstat
26252         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
26253         which don't have lstat; this is handled by lib/sys_stat.in.h already.
26254         Reported by Daniel P. Berrange via Jim Meyering.
26255
26256 2008-11-12  Jim Meyering  <meyering@redhat.com>
26257
26258         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
26259
26260 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26261
26262         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
26263         instead.
26264
26265 2008-11-12  Bruno Haible  <bruno@clisp.org>
26266
26267         * lib/unicodeio.c: Include unistr.h.
26268         (utf8_wctomb): Remove function.
26269         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
26270
26271 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26272
26273         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
26274         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
26275         <bruno@clisp.org>.
26276         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
26277
26278 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26279
26280         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
26281         * doc/gnulib.texi: Add section for warnings.
26282
26283 2008-11-11  Bruno Haible  <bruno@clisp.org>
26284
26285         * lib/sockets.h: Add a comment.
26286
26287 2008-11-11  Karl Berry  <karl@gnu.org>
26288
26289         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
26290
26291 2008-11-11  Eric Blake  <ebb9@byu.net>
26292
26293         fdl.texi: avoid git symlinks
26294         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
26295
26296 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26297
26298         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
26299
26300 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26301
26302         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
26303         (gl_WARN_ADD): Substitute $2 if literal.
26304
26305 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26306
26307         * m4/warning.m4: Remove.
26308
26309 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26310
26311         * m4/warnings.m4: Almost complete rewrite. :-)
26312
26313 2008-11-10  Simon Josefsson  <simon@josefsson.org>
26314
26315         * modules/warnings: New module.
26316         * m4/warnings.m4: New file.
26317         * MODULES.html.sh: Mention warnings module.
26318         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
26319         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26320
26321 2008-11-10  Eric Blake  <ebb9@byu.net>
26322
26323         fdl.texi: make a symlink to the latest version
26324         * doc/standards.texi: Revert today's earlier change.
26325         * doc/fdl-1.2.texi: Rename from old fdl.texi...
26326         * doc/fdl.texi: ...and replace this with a symlink to the newer
26327         fdl-1.3.texi.
26328
26329 2008-11-10  Bruno Haible  <bruno@clisp.org>
26330
26331         * tests/test-select-fd.c (main): Accept the result file name as fourth
26332         argument.
26333         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
26334         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
26335
26336 2008-11-10  Bruno Haible  <bruno@clisp.org>
26337
26338         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
26339         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
26340         as autoconf-substituted macros.
26341         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
26342         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
26343         gl_NETDB_H_DEFAULTS. Set these variables.
26344         * modules/netdb (Makefile.am): Substitute these variables.
26345
26346 2008-11-10  Eric Blake  <ebb9@byu.net>
26347
26348         standards.texi: include correct file for FDL 1.3
26349         * doc/standards.texi (GNU Free Documentation License): Change
26350         include file to pull in FDL 1.3, not 1.2.
26351
26352         fdl.texi: revert accidental change to license
26353         * doc/fdl.texi: This is FDL 1.2, not 1.3.
26354
26355 2008-11-10  Bruno Haible  <bruno@clisp.org>
26356
26357         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
26358         cross-compiling guesses also when the native compile gives no result.
26359
26360 2008-11-10  Bruno Haible  <bruno@clisp.org>
26361
26362         * lib/spawni.c (__spawni): Force variable into the stack.
26363
26364 2008-11-10  Bruno Haible  <bruno@clisp.org>
26365
26366         Add support for Haiku.
26367         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
26368         glibc and BeOS, but also on Haiku.
26369         * lib/fpurge.c (fpurge): Likewise.
26370         * lib/freadable.c (freadable): Likewise.
26371         * lib/freadahead.c (freadahead): Likewise.
26372         * lib/freading.c (freading): Likewise.
26373         * lib/freadptr.c (freadptr): Likewise.
26374         * lib/freadseek.c (freadptrinc): Likewise.
26375         * lib/fseeko.c (rpl_fseeko): Likewise.
26376         * lib/fseterr.c (fseterr): Likewise.
26377         * lib/fwritable.c (fwritable): Likewise.
26378         * lib/fwriting.c (fwriting): Likewise.
26379         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
26380
26381 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26382
26383         * lib/config.charset: Treat Haiku like BeOS.
26384
26385 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26386
26387         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
26388         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
26389
26390 2008-11-08  Bruno Haible  <bruno@clisp.org>
26391
26392         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
26393         AC_CACHE_CHECK.
26394
26395 2008-11-08  Bruno Haible  <bruno@clisp.org>
26396
26397         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
26398
26399 2008-11-08  Bruno Haible  <bruno@clisp.org>
26400
26401         * tests/test-select-fd.c: New file.
26402         * tests/test-select-in.sh: New file.
26403         * tests/test-select-out.sh: New file.
26404         * tests/test-select-stdin.c: New file.
26405         * modules/select-tests (Files): Add the new files.
26406         (Depends-on): Add gettimeofday.
26407         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
26408         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
26409         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
26410
26411 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
26412             Bruno Haible  <bruno@clisp.org>
26413
26414         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
26415
26416 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
26417
26418         * build-aux/pmccabe2html: Added support for C++ source files.
26419
26420 2008-11-05  Ben Pfaff  <blp@gnu.org>
26421
26422         Fix lib/close.c build on Windows.
26423         * modules/close (Files): Add lib/w32sock.h.
26424
26425 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
26426
26427         Accept Bison's NEWS format.
26428         * build-aux/announce-gen (print_news_deltas): Tweak
26429         $re_prefix.
26430
26431 2008-11-04  Bruno Haible  <bruno@clisp.org>
26432
26433         * modules/random_r (Maintainer): Add glibc.
26434
26435 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26436
26437         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
26438         by karl@freefriends.org (Karl Berry).
26439         * doc/alloca.texi: Likewise.
26440         * doc/c-ctype.texi: Likewise.
26441         * doc/c-strcase.texi: Likewise.
26442         * doc/c-strcaseeq.texi: Likewise.
26443         * doc/c-strcasestr.texi: Likewise.
26444         * doc/c-strstr.texi: Likewise.
26445         * doc/c-strtod.texi: Likewise.
26446         * doc/c-strtold.texi: Likewise.
26447         * doc/ctime.texi: Likewise.
26448         * doc/error.texi: Likewise.
26449         * doc/fdl.texi: Likewise.
26450         * doc/gcd.texi: Likewise.
26451         * doc/getdate.texi: Likewise.
26452         * doc/gnulib-intro.texi: Likewise.
26453         * doc/gnulib-tool.texi: Likewise.
26454         * doc/gnulib.texi: Likewise.
26455         * doc/inet_ntoa.texi: Likewise.
26456         * doc/maintain.texi: Likewise.
26457         * doc/make-stds.texi: Likewise.
26458         * doc/quote.texi: Likewise.
26459         * doc/regexprops-generic.texi: Likewise.
26460         * doc/standards.texi: Likewise.
26461         * doc/verify.texi: Likewise.
26462         * doc/visibility.texi: Likewise.
26463         * doc/gnulib.texi (GNU Free Documentation License): Include
26464         fdl-1.3.texi instead of fdl.texi.
26465
26466 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26467
26468         * doc/fdl-1.3.texi: New file, from
26469         <http://www.gnu.org/licenses/fdl-1.3.texi>.
26470         * modules/fdl-1.3: Add.
26471         * MODULES.html.sh: Add fdl-1.3.
26472
26473 2008-11-03  Bruno Haible  <bruno@clisp.org>
26474
26475         Make determination of absolute name of header file work with AIX xlc.
26476         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
26477         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
26478         preprocessing.
26479         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26480         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
26481
26482 2008-11-03  Simon Josefsson  <simon@josefsson.org>
26483
26484         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
26485         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
26486         <ludo@gnu.org>.
26487
26488 2008-11-02  Bruno Haible  <bruno@clisp.org>
26489
26490         Mark 'strpbrk' obsolete.
26491         * modules/strpbrk (Status, Notice): New sections.
26492         * modules/strtok_r (Depends-on): Add strpbrk.
26493
26494 2008-11-02  Bruno Haible  <bruno@clisp.org>
26495
26496         Mark 'strdup' obsolete.
26497         * modules/strdup (Status, Notice): New sections.
26498         * modules/findprog (Depends-on): Add strdup.
26499         * modules/getaddrinfo (Depends-on): Likewise.
26500         * modules/localename (Depends-on): Likewise.
26501         * modules/relocatable-lib (Depends-on): Likewise.
26502         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
26503         * modules/relocatable-prog (Depends-on): Likewise.
26504         * modules/trim (Depends-on): Likewise.
26505         * modules/unictype/gen-ctype (Depends-on): Likewise.
26506         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26507
26508 2008-11-02  Bruno Haible  <bruno@clisp.org>
26509
26510         Mark 'strcspn' obsolete.
26511         * modules/strcspn (Status, Notice): New sections.
26512
26513 2008-11-02  Bruno Haible  <bruno@clisp.org>
26514
26515         Mark 'rmdir' obsolete.
26516         * modules/rmdir (Status, Notice): New sections.
26517         * modules/clean-temp (Depends-on): Add rmdir.
26518         * modules/openat (Depends-on): Likewise.
26519
26520 2008-11-02  Bruno Haible  <bruno@clisp.org>
26521
26522         Mark 'raise' obsolete.
26523         * modules/raise (Status, Notice): New sections.
26524         (Include): Specify <signal.h>.
26525         * modules/stdio (Depends-on): Add raise.
26526         * modules/write (Depends-on): Likewise.
26527
26528 2008-11-02  Bruno Haible  <bruno@clisp.org>
26529
26530         Mark 'memset' obsolete.
26531         * modules/memset (Status, Notice): New sections.
26532
26533 2008-11-02  Bruno Haible  <bruno@clisp.org>
26534
26535         Mark 'memmove' obsolete.
26536         * modules/memmove (Status, Notice): New sections.
26537         * modules/argp (Depends-on): Add memmove.
26538         * modules/argz (Depends-on): Likewise.
26539         * modules/canonicalize (Depends-on): Likewise.
26540         * modules/canonicalize-lgpl (Depends-on): Likewise.
26541         * modules/fts (Depends-on): Likewise.
26542         * modules/getcwd (Depends-on): Likewise.
26543         * modules/human (Depends-on): Likewise.
26544         * modules/regex (Depends-on): Likewise.
26545         * modules/striconveh (Depends-on): Likewise.
26546         * modules/trim (Depends-on): Likewise.
26547         * modules/unistr/u8-move (Depends-on): Likewise.
26548         * modules/unistr/u16-move (Depends-on): Likewise.
26549         * modules/unistr/u32-move (Depends-on): Likewise.
26550
26551 2008-11-02  Bruno Haible  <bruno@clisp.org>
26552
26553         Mark 'memcpy' obsolete.
26554         * modules/memcpy (Status, Notice): New sections.
26555
26556 2008-11-02  Bruno Haible  <bruno@clisp.org>
26557
26558         Mark 'memcmp' obsolete.
26559         * modules/memcmp (Status, Notice): New sections.
26560         * modules/argmatch (Depends-on): Add memchr.
26561         * modules/backupfile (Depends-on): Likewise.
26562         * modules/c-strcasestr (Depends-on): Likewise.
26563         * modules/crypto/des (Depends-on): Likewise.
26564         * modules/csharpcomp (Depends-on): Likewise.
26565         * modules/fnmatch (Depends-on): Likewise.
26566         * modules/git-merge-changelog (Depends-on): Likewise.
26567         * modules/isnand (Depends-on): Likewise.
26568         * modules/isnand-nolibm (Depends-on): Likewise.
26569         * modules/isnanf (Depends-on): Likewise.
26570         * modules/isnanf-nolibm (Depends-on): Likewise.
26571         * modules/isnanl (Depends-on): Likewise.
26572         * modules/isnanl-nolibm (Depends-on): Likewise.
26573         * modules/mbchar (Depends-on): Likewise.
26574         * modules/memcoll (Depends-on): Likewise.
26575         * modules/quotearg (Depends-on): Likewise.
26576         * modules/regex (Depends-on): Likewise.
26577         * modules/relocatable-prog (Depends-on): Likewise.
26578         * modules/same (Depends-on): Likewise.
26579         * modules/signbit (Depends-on): Likewise.
26580         * modules/strcasestr-simple (Depends-on): Likewise.
26581         * modules/unictype/gen-ctype (Depends-on): Likewise.
26582         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26583         * modules/uniname/uniname (Depends-on): Likewise.
26584         * modules/unistr/u8-cmp (Depends-on): Likewise.
26585
26586 2008-11-02  Bruno Haible  <bruno@clisp.org>
26587
26588         Mark 'memchr' obsolete.
26589         * modules/memchr (Status, Notice): New sections.
26590         * modules/argp (Depends-on): Add memchr.
26591         * modules/base64 (Depends-on): Likewise.
26592         * modules/c-strcasestr (Depends-on): Likewise.
26593         * modules/chdir-long (Depends-on): Likewise.
26594         * modules/fnmatch (Depends-on): Likewise.
26595         * modules/getsubopt (Depends-on): Likewise.
26596         * modules/git-merge-changelog (Depends-on): Likewise.
26597         * modules/glob (Depends-on): Likewise.
26598         * modules/strcasestr-simple (Depends-on): Likewise.
26599         * modules/strnlen (Depends-on): Likewise.
26600
26601 2008-11-02  Bruno Haible  <bruno@clisp.org>
26602
26603         Mark 'atexit' obsolete.
26604         * modules/atexit (Status, Notice): New sections.
26605         * modules/chdir-long (Depends-on): Add atexit.
26606         * modules/wait-process (Depends-on): Likewise.
26607
26608 2008-11-02  Bruno Haible  <bruno@clisp.org>
26609
26610         * gnulib-tool: New option --with-obsolete.
26611         (func_usage): Document it.
26612         (func_modules_transitive_closure): Drop obsolete dependencies if
26613         incobsolete is not true.
26614         (func_import): Read and save the incobsolete variable to the cache.
26615
26616 2008-11-02  Bruno Haible  <bruno@clisp.org>
26617
26618         * modules/TEMPLATE-EXTENDED: New field 'Status'.
26619         * gnulib-tool: New option --extract-status.
26620         (func_usage): Document it.
26621         (sed_extract_prog): Recognize it.
26622         (func_get_status): New function.
26623
26624 2008-10-30  Simon Josefsson  <simon@josefsson.org>
26625
26626         * modules/sockets (License): Change from LGPL to LGPLv2+.
26627
26628 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26629
26630         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
26631
26632 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26633
26634         * MODULES.html.sh (Support for systems lacking POSIX:2001):
26635         Mention times and sys_times.
26636         * modules/sys_times, modules/sys_times-tests: New modules.
26637         * modules/times, modules/times-tests: Likewise
26638         * m4/sys_times_h.m4: New file.
26639         * lib/sys_times.in.h: Likewise
26640         * lib/times.c: Likewise.
26641         * tests/test-sys_times.c: Likewise.
26642         * tests/test-times.c: Likewise.
26643         * doc/posix-headers/sys_times.texi: Update.
26644         * doc/posix-functions/times.texi: Update.
26645
26646 2008-10-28  Jim Meyering  <meyering@redhat.com>
26647
26648         * modules/tempname (Depends-on): Add lstat.
26649
26650         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
26651
26652 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26653
26654         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
26655         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
26656         using idiom used elsewhere in gnulib.
26657
26658 2008-10-27  Jim Meyering  <meyering@redhat.com>
26659
26660         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
26661
26662 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26663
26664         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
26665         TESTS_ENVIRONMENT, for shell scripts that needs to call built
26666         programs.
26667         * tests/test-argp-2.sh: Use $EXEEXT when needed.
26668
26669 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26670
26671         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
26672
26673 2008-10-27  Bruno Haible  <bruno@clisp.org>
26674
26675         * tests/test-lstat.c: Include <stdio.h>.
26676
26677 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26678
26679         * modules/lstat-tests: New module.
26680         * tests/test-lstat.c: New file.
26681
26682 2008-10-26  Jim Meyering  <meyering@redhat.com>
26683
26684         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
26685
26686 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26687             Bruno Haible  <bruno@clisp.org>
26688
26689         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
26690         * modules/configmake (Include): Add a note that the include must come
26691         after all system headers.
26692         * lib/javaversion.c: Include configmake.h after all other includes.
26693
26694 2008-10-26  Bruno Haible  <bruno@clisp.org>
26695
26696         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
26697         HAVE_STRUCT_RANDOM_DATA to 1.
26698         (gl_STDLIB_H): Simplify.
26699
26700 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26701
26702         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
26703         substitute HAVE_STRUCT_RANDOM_DATA.
26704         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
26705         random_data.
26706         * modules/stdlib (Makefile.am): Substitute
26707         HAVE_STRUCT_RANDOM_DATA.
26708
26709 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26710
26711         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
26712         * doc/gnulib-intro.texi (Copyright): Likewise.
26713
26714 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26715
26716         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
26717         findings.
26718
26719 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
26720             Bruno Haible  <bruno@clisp.org>
26721
26722         * lib/unistd.in.h: Include <winsock2.h>.
26723         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
26724         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
26725         Provide dummy declarations.
26726         (gethostname): Override.
26727         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
26728         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
26729         gl_PREREQ_SYS_H_WINSOCK2.
26730         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
26731         * doc/posix-functions/gethostname.texi: More details.
26732
26733 2008-10-25  Bruno Haible  <bruno@clisp.org>
26734
26735         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
26736         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
26737         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
26738
26739         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
26740         here ...
26741         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
26742         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
26743         gl_UNISTD_H_DEFAULTS.
26744
26745 2008-10-25  Eric Blake  <ebb9@byu.net>
26746
26747         signbit: avoid spurious compiler failure
26748         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
26749         declarations inside function.
26750
26751 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26752             Bruno Haible  <bruno@clisp.org>
26753
26754         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
26755         * modules/random_r (Depends-on): Add stdint.
26756
26757 2008-10-24  Bruno Haible  <bruno@clisp.org>
26758
26759         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
26760         Eggert.
26761         * modules/strerror (License): Likewise.
26762
26763 2008-10-24  Jim Meyering  <meyering@redhat.com>
26764
26765         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
26766         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
26767
26768 2008-10-24  Eric Blake  <ebb9@byu.net>
26769
26770         getgroups: fix compilation when getgroups is available
26771         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
26772         but with <config.h> override of getgroups disabled.
26773
26774 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26775
26776         * doc/gnulib.texi (Header files): Add note about C++ problems.
26777         Explained by Bruno Haible <bruno@clisp.org>.
26778
26779 2008-10-23  Bruno Haible  <bruno@clisp.org>
26780
26781         Define a dummy SA_NODEFER macro on Interix.
26782         * lib/signal.in.h (SA_NODEFER): Define fallback.
26783         Reported by Aleksey Cheusov <cheusov@tut.by> via
26784         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
26785
26786 2008-10-23  Bruno Haible  <bruno@clisp.org>
26787
26788         * modules/freadahead (License): Change to LGPLv2+.
26789         Suggested by Simon Josefsson.
26790
26791 2008-10-23  Jim Meyering  <meyering@redhat.com>
26792
26793         random_r: new module
26794         * modules/random_r: New file.
26795         * m4/random_r.m4: New file.
26796         * lib/random_r.c: New file, from glibc.
26797         * modules/random_r-tests: New file.
26798         * tests/test-random_r.c: New file.
26799         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
26800          Declare.
26801         (RAND_MAX): Define.
26802         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
26803         * modules/stdlib: Substitute them, too.
26804         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
26805         * doc/glibc-functions/initstate_r.texi: Mention the new module.
26806         * doc/glibc-functions/random_r.texi: Likewise.
26807         * doc/glibc-functions/setstate_r.texi: Likewise.
26808         * doc/glibc-functions/srandom_r.texi: Likewise.
26809         * config/srclist.txt: Mention it.
26810
26811 2008-10-23  David Lutterkort  <lutter@redhat.com>
26812
26813         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
26814         link requirement
26815
26816 2008-10-23  Jim Meyering  <meyering@redhat.com>
26817
26818         selinux-h: mark parameters of stub functions as intentionally unused
26819         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
26820         * lib/se-context.in.h: Likewise.
26821
26822 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26823
26824         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
26825
26826 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26827
26828         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
26829
26830 2008-10-22  Eric Blake  <ebb9@byu.net>
26831
26832         glthread/thread: avoid compiler warning
26833         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
26834         Add unreachable abort to silence compiler.
26835
26836 2008-10-22  Eric Blake  <ebb9@byu.net>
26837
26838         netdb: also supply struct addrinfo for cygwin 1.5.x
26839         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
26840         older cygwin.
26841         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
26842         cygwin.
26843         * doc/posix-headers/netdb.texi (netdb.h): Document this.
26844
26845 2008-10-22  Bruno Haible  <bruno@clisp.org>
26846
26847         * users.txt: Update entry about pspp.
26848
26849 2008-10-21  Bruno Haible  <bruno@clisp.org>
26850
26851         Simplification.
26852         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
26853         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
26854
26855         Simplification.
26856         * lib/ioctl.c (ioctl): Don't undefine.
26857         * lib/socket.c (socket): Don't undefine.
26858
26859         Remove unused module indicator macros.
26860         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
26861         GNULIB_$1 as a C macro.
26862
26863         * doc/posix-functions/close.texi: Undo last change.
26864         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
26865         Windows platforms.
26866
26867 2008-10-21  Bruno Haible  <bruno@clisp.org>
26868
26869         Add gethostname() declaration to <unistd.h>.
26870         * lib/unistd.in.h (gethostname): New declaration.
26871         * lib/gethostname.c: Include <unistd.h>.
26872         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
26873         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
26874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
26875         and HAVE_GETHOSTNAME.
26876         * modules/gethostname (Depends-on): Add unistd.
26877         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26878         (Include): Specify <unistd.h>.
26879         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
26880         HAVE_GETHOSTNAME.
26881         * tests/test-gethostname.c: Include <unistd.h> first.
26882
26883 2008-10-21  Bruno Haible  <bruno@clisp.org>
26884
26885         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
26886         * modules/select-tests (Depends-on): Likewise.
26887         Reported by Simon Josefsson.
26888
26889 2008-10-21  Simon Josefsson  <simon@josefsson.org>
26890
26891         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
26892         * lib/accept.c: New file, based on winsock.c.
26893         * lib/bind.c: New file, based on winsock.c.
26894         * lib/connect.c: New file, based on winsock.c.
26895         * lib/getpeername.c: New file, based on winsock.c.
26896         * lib/getsockname.c: New file, based on winsock.c.
26897         * lib/getsockopt.c: New file, based on winsock.c.
26898         * lib/ioctl.c: New file, based on winsock.c.
26899         * lib/listen.c: New file, based on winsock.c.
26900         * lib/recv.c: New file, based on winsock.c.
26901         * lib/recvfrom.c: New file, based on winsock.c.
26902         * lib/send.c: New file, based on winsock.c.
26903         * lib/sendto.c: New file, based on winsock.c.
26904         * lib/setsockopt.c: New file, based on winsock.c.
26905         * lib/shutdown.c: New file, based on winsock.c.
26906         * lib/socket.c: New file, based on winsock.c.
26907         * lib/w32sock.h: New file, based on winsock.c.
26908         * lib/winsock.c: Remove file.
26909         * modules/accept: Likewise.
26910         * modules/bind: Likewise.
26911         * modules/connect: Likewise.
26912         * modules/getpeername: Likewise.
26913         * modules/getsockname: Likewise.
26914         * modules/getsockopt: Likewise.
26915         * modules/ioctl: Likewise.
26916         * modules/listen: Likewise.
26917         * modules/recv: Likewise.
26918         * modules/recvfrom: Likewise.
26919         * modules/send: Likewise.
26920         * modules/sendto: Likewise.
26921         * modules/setsockopt: Likewise.
26922         * modules/shutdown: Likewise.
26923         * modules/socket: Use socket.c instead of winsock.c.
26924         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
26925         * doc/posix-functions/accept.texi: Doc fix.
26926         * doc/posix-functions/bind.texi: Doc fix.
26927         * doc/posix-functions/close.texi: Doc fix.
26928         * doc/posix-functions/connect.texi: Doc fix.
26929         * doc/posix-functions/getpeername.texi: Doc fix.
26930         * doc/posix-functions/getsockname.texi: Doc fix.
26931         * doc/posix-functions/getsockopt.texi: Doc fix.
26932         * doc/posix-functions/ioctl.texi: Doc fix.
26933         * doc/posix-functions/listen.texi: Doc fix.
26934         * doc/posix-functions/recv.texi: Doc fix.
26935         * doc/posix-functions/recvfrom.texi: Doc fix.
26936         * doc/posix-functions/send.texi: Doc fix.
26937         * doc/posix-functions/sendto.texi: Doc fix.
26938         * doc/posix-functions/setsockopt.texi: Doc fix.
26939         * doc/posix-functions/shutdown.texi: Doc fix.
26940         * doc/posix-functions/socket.texi: Doc fix.
26941
26942 2008-10-20  Bruno Haible  <bruno@clisp.org>
26943
26944         Take into account the role of SIGABRT_COMPAT on Windows 2008.
26945         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
26946         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
26947         as an alias for SIGABRT.
26948         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
26949         (sigaction): Map it to SIGABRT.
26950         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
26951
26952 2008-10-20  Bruno Haible  <bruno@clisp.org>
26953
26954         * lib/fts.c: Don't include lstat.h.
26955         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
26956
26957         Move the lstat() declaration to <sys/stat.h>.
26958         * lib/lstat.h: Remove file.
26959         * lib/sys_stat.in.h: Add special invocation convention.
26960         (lstat): New declaration.
26961         * lib/lstat.c (orig_lstat): New function.
26962         (rpl_lstat): Use orig_lstat instead of lstat.
26963         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
26964         AC_C_INLINE. Set REPLACE_LSTAT.
26965         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
26966         and REPLACE_LSTAT.
26967         * modules/lstat (Files): Remove lib/lstat.h.
26968         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26969         (Include): Specify <sys/stat.h> instead of lstat.h.
26970         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
26971         REPLACE_LSTAT.
26972         * NEWS: Mention the change.
26973
26974 2008-10-20  Bruno Haible  <bruno@clisp.org>
26975
26976         * modules/posix_spawn-tests: New file.
26977         * tests/test-posix_spawn3.c: New file.
26978
26979 2008-10-20  Bruno Haible  <bruno@clisp.org>
26980
26981         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
26982         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26983         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
26984         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26985         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
26986
26987 2008-10-20  Bruno Haible  <bruno@clisp.org>
26988
26989         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
26990         of posix_spawn on AIX 5.3.
26991
26992 2008-10-20  Bruno Haible  <bruno@clisp.org>
26993
26994         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
26995
26996 2008-10-20  Bruno Haible  <bruno@clisp.org>
26997
26998         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
26999         of AC_LANG_PROGRAM.
27000
27001 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27002
27003         * lib/netdb.in.h: Don't define GNU specific constants until they
27004         are supported or needed.  Reported by Bruno Haible
27005         <bruno@clisp.org>.
27006
27007 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27008
27009         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
27010
27011 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27012
27013         * lib/getaddrinfo.h: Remove file.
27014         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
27015         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
27016         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
27017         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
27018         * modules/netdb: Substitute GNULIB_GETADDRINFO.
27019         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
27020         * tests/test-getaddrinfo.c: Likewise.
27021         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
27022         * NEWS: Mention change.
27023
27024 2008-10-19  Bruno Haible  <bruno@clisp.org>
27025
27026         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
27027
27028 2008-10-19  Bruno Haible  <bruno@clisp.org>
27029
27030         * lib/wait-process.c: Include simply <sys/wait.h>.
27031         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
27032         WIFSTOPPED): Remove fallback definitions.
27033         * modules/wait-process (Depends-on): Add sys_wait.
27034
27035         New module 'sys_wait'.
27036         * modules/sys_wait: New file.
27037         * lib/sys_wait.in.h: New file, partially copied from
27038         lib/wait-process.c.
27039         * m4/sys_wait_h.m4: New file.
27040         * doc/posix-headers/sys_wait.texi: Mention the new module.
27041
27042 2008-10-19  Bruno Haible  <bruno@clisp.org>
27043
27044         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
27045
27046 2008-10-19  Bruno Haible  <bruno@clisp.org>
27047
27048         Assume that waitpid() fills an 'int' status, not a 'union wait'.
27049         * lib/wait-process.c (WAIT_T): Remove type.
27050         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
27051         (wait_subprocess): Update.
27052
27053 2008-10-19  Bruno Haible  <bruno@clisp.org>
27054
27055         New module 'atoll'.
27056         * modules/atoll: New file.
27057         * lib/stdlib.in.h (atoll): New declaration.
27058         * lib/atoll.c: New file, from glibc with modifications.
27059         * m4/atoll.m4: New file.
27060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
27061         HAVE_ATOLL.
27062         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
27063         * doc/posix-functions/atoll.texi: Mention the new module.
27064
27065 2008-10-19  Bruno Haible  <bruno@clisp.org>
27066
27067         Add strtoull() declaration to <stdlib.h>.
27068         * lib/stdlib.in.h (strtoull): New declaration.
27069         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
27070         Set HAVE_STRTOULL.
27071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
27072         HAVE_STRTOULL.
27073         * modules/strtoull (Depends-on): Add stdlib.
27074         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27075         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
27076         HAVE_STRTOULL.
27077
27078 2008-10-19  Bruno Haible  <bruno@clisp.org>
27079
27080         Add strtoll() declaration to <stdlib.h>.
27081         * lib/stdlib.in.h (strtoll): New declaration.
27082         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
27083         Set HAVE_STRTOLL.
27084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
27085         HAVE_STRTOLL.
27086         * modules/strtoll (Depends-on): Add stdlib.
27087         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27088         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
27089
27090 2008-10-19  Bruno Haible  <bruno@clisp.org>
27091
27092         * modules/bcopy (Depends-on): Add strings.
27093         (Include): Specify <strings.h>.
27094
27095 2008-10-19  Bruno Haible  <bruno@clisp.org>
27096
27097         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
27098
27099 2008-10-19  Bruno Haible  <bruno@clisp.org>
27100
27101         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
27102         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
27103         mingw.
27104
27105 2008-10-19  Bruno Haible  <bruno@clisp.org>
27106
27107         * lib/atanl.c: Don't include isnanl.h.
27108         * lib/cosl.c: Likewise.
27109         * lib/ldexpl.c: Likewise.
27110         * lib/logl.c: Likewise.
27111         * lib/sinl.c: Likewise.
27112         * lib/sqrtl.c: Likewise.
27113         * lib/tanl.c: Likewise.
27114
27115         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
27116         * lib/isnanf.h: Remove file.
27117         * lib/isnand.h: Remove file.
27118         * lib/isnanl.h: Remove file.
27119         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
27120         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
27121         macros.
27122         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
27123         HAVE_ISNANF, don't define it as a C macro.
27124         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
27125         HAVE_ISNAND, don't define it as a C macro.
27126         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
27127         HAVE_ISNANL, don't define it as a C macro.
27128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
27129         HAVE_ISNAN[FDL].
27130         * modules/isnanf (Files): Remove lib/isnanf.h.
27131         (Depends-on): Add math.
27132         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27133         (Include): Specify <math.h> instead of isnanf.h.
27134         * modules/isnand (Files): Remove lib/isnand.h.
27135         (Depends-on): Add math.
27136         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27137         (Include): Specify <math.h> instead of isnand.h.
27138         * modules/isnanl (Files): Remove lib/isnanl.h.
27139         (Depends-on): Add math.
27140         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27141         (Include): Specify <math.h> instead of isnanl.h.
27142         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
27143         HAVE_ISNAN[FDL].
27144         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
27145         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
27146         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
27147         * NEWS: Mention the change.
27148
27149 2008-10-18  Bruno Haible  <bruno@clisp.org>
27150
27151         Add getusershell(), setusershell(), endusershell() declarations to
27152         <unistd.h>.
27153         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
27154         declarations.
27155         * lib/getusershell.c: Include unistd.h.
27156         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
27157         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
27158         HAVE_GETUSERSHELL.
27159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
27160         and HAVE_GETUSERSHELL.
27161         * modules/getusershell (Depends-on): Add unistd, extensions.
27162         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27163         (Include): Specify <unistd.h>.
27164         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
27165         HAVE_GETUSERSHELL.
27166
27167 2008-10-18  Bruno Haible  <bruno@clisp.org>
27168
27169         Add a getloadavg() declaration to <stdlib.h>.
27170         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
27171         getloadavg declaration.
27172         (getloadavg): New declaration.
27173         * lib/getloadavg.c: Include <stdlib.h> first.
27174         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
27175         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
27176         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
27177         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
27178         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
27179         * modules/getloadavg (Depends-on): Add stdlib, extensions.
27180         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27181         (Include): Specify <stdlib.h>.
27182         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
27183         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
27184
27185 2008-10-18  Bruno Haible  <bruno@clisp.org>
27186
27187         * lib/dirchownmod.c: Don't include lchmod.h.
27188
27189         Move the lchmod() declaration to <sys/stat.h>.
27190         * lib/lchmod.h: Remove file.
27191         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
27192         (lchmod): New declaration, moved here from lib/lchown.h.
27193         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
27194         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
27195         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
27196         and HAVE_LCHMOD.
27197         * modules/lchmod (Files): Remove lib/lchmod.h.
27198         (Depends-on): Add sys_stat, extensions.
27199         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
27200         (Include): Specify <sys/stat.h> instead of lchmod.h.
27201         * modules/sys_stat (Depends-on): Add link-warning.
27202         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
27203         definition of GL_LINK_WARNING.
27204         * NEWS: Mention the change.
27205
27206 2008-10-18  Bruno Haible  <bruno@clisp.org>
27207
27208         * lib/fchdir.c: Don't include dirfd.h.
27209         * lib/fts.c: Likewise.
27210         * lib/getcwd.c: Likewise.
27211         * lib/glob.c: Likewise.
27212
27213         Move the dirfd() declaration to <dirent.h>.
27214         * lib/dirfd.h: Remove file.
27215         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
27216         (dirfd): New declaration.
27217         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
27218         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
27219         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
27220         HAVE_DECL_DIRFD.
27221         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
27222         HAVE_DECL_DIRFD.
27223         * modules/dirfd (Files): Remove lib/dirfd.h.
27224         (Depends-on): Add dirent, extensions.
27225         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
27226         (Include): Specify <dirent.h> instead of dirfd.h.
27227         * modules/dirent (Depends-on): Add link-warning.
27228         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
27229         definition of GL_LINK_WARNING.
27230         * NEWS: Mention the change.
27231
27232 2008-10-18  Bruno Haible  <bruno@clisp.org>
27233
27234         Move the euidaccess() declaration to <unistd.h>.
27235         * lib/euidaccess.h: Remove file.
27236         * lib/unistd.in.h (euidaccess): New declaration.
27237         * lib/euidaccess.c: Don't include euidaccess.h.
27238         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
27239         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
27240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
27241         and HAVE_EUIDACCESS.
27242         * modules/euidaccess (Files): Remove lib/euidaccess.h.
27243         (Depends-on): Add unistd.
27244         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27245         (Include): Specify <unistd.h> instead of euidaccess.h.
27246         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
27247         HAVE_EUIDACCESS.
27248         * NEWS: Mention the change.
27249
27250 2008-10-18  Bruno Haible  <bruno@clisp.org>
27251
27252         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
27253
27254         Move the getdomainname() declaration to <unistd.h>.
27255         * lib/getdomainname.h: Remove file.
27256         * lib/unistd.in.h (getdomainname): New declaration.
27257         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
27258         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27259         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
27260         HAVE_GETDOMAINNAME.
27261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27262         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
27263         * modules/getdomainname (Files): Remove lib/getdomainname.h.
27264         (Depends-on): Add unistd, extensions.
27265         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27266         (Includes): Specify <unistd.h> instead of getdomainname.h.
27267         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
27268         HAVE_GETDOMAINNAME.
27269         * NEWS: Mention the change.
27270
27271 2008-10-18  Bruno Haible  <bruno@clisp.org>
27272
27273         * modules/dirent: New file.
27274         * m4/dirent_h.m4: New file.
27275         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
27276         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
27277         * modules/fchdir (Files): Remove lib/dirent.in.h.
27278         (Depends-on): Add dirent.
27279         (Makefile.am): Move rules to modules/dirent.
27280         * doc/posix-headers/dirent.texi: Mention the new module.
27281
27282 2008-10-18  Bruno Haible  <bruno@clisp.org>
27283
27284         Avoid -Wunused-parameter warnings in public gnulib header files.
27285         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
27286         macro.
27287         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
27288
27289 2008-10-18  Bruno Haible  <bruno@clisp.org>
27290
27291         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
27292         * doc/glibc-functions/error.texi: Mention the module 'error'.
27293         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
27294         * doc/glibc-functions/getdomainname.texi: Mention the module
27295         'getdomainname'.
27296         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
27297         * doc/glibc-functions/getpagesize.texi: Mention the module
27298         'getpagesize'.
27299         * doc/glibc-functions/getusershell.texi: Mention the module
27300         'getusershell'.
27301         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
27302         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
27303         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
27304         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
27305         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
27306         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
27307         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
27308         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
27309         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
27310         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
27311         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
27312         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
27313         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
27314         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
27315
27316 2008-10-17  Bruno Haible  <bruno@clisp.org>
27317
27318         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
27319         HP-UX and IRIX, use -0.0L.
27320         * tests/test-ceill.c (minus_zero): Likewise.
27321         * tests/test-floorl.c (minus_zero): Likewise.
27322         * tests/test-frexpl.c (minus_zero): Likewise.
27323         * tests/test-isnan.c (minus_zerol): Likewise.
27324         * tests/test-isnanl.h (minus_zero): Likewise.
27325         * tests/test-ldexpl.c (minus_zero): Likewise.
27326         * tests/test-roundl.c (minus_zero): Likewise.
27327         * tests/test-signbit.c (minus_zerol): Likewise.
27328         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27329         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27330         * tests/test-truncl.c (minus_zero): Likewise.
27331         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27332         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27333         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
27334         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27335
27336 2008-10-17  Bruno Haible  <bruno@clisp.org>
27337
27338         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
27339         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
27340         that it gets activated only for gcc >= 3.0.
27341         * lib/dirent.in.h: Likewise.
27342         * lib/errno.in.h: Likewise.
27343         * lib/fcntl.in.h: Likewise.
27344         * lib/float.in.h: Likewise.
27345         * lib/iconv.in.h: Likewise.
27346         * lib/inttypes.in.h: Likewise.
27347         * lib/locale.in.h: Likewise.
27348         * lib/math.in.h: Likewise.
27349         * lib/netdb.in.h: Likewise.
27350         * lib/netinet_in.in.h: Likewise.
27351         * lib/search.in.h: Likewise.
27352         * lib/signal.in.h: Likewise.
27353         * lib/spawn.in.h: Likewise.
27354         * lib/stdarg.in.h: Likewise.
27355         * lib/stdint.in.h: Likewise.
27356         * lib/stdio.in.h: Likewise.
27357         * lib/stdlib.in.h: Likewise.
27358         * lib/string.in.h: Likewise.
27359         * lib/strings.in.h: Likewise.
27360         * lib/sys_file.in.h: Likewise.
27361         * lib/sys_ioctl.in.h: Likewise.
27362         * lib/sys_select.in.h: Likewise.
27363         * lib/sys_socket.in.h: Likewise.
27364         * lib/sys_stat.in.h: Likewise.
27365         * lib/sys_time.in.h: Likewise.
27366         * lib/sysexits.in.h: Likewise.
27367         * lib/time.in.h: Likewise.
27368         * lib/unistd.in.h: Likewise.
27369         * lib/wchar.in.h: Likewise.
27370         * lib/wctype.in.h: Likewise.
27371         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27372
27373 2008-10-17  Jim Meyering  <meyering@redhat.com>
27374
27375         ignore-value: don't depend on inline module
27376         * modules/ignore-value (Depends-on): Remove 'inline'.
27377         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
27378         Suggestion from Bruno Haible.
27379
27380 2008-10-17  Bruno Haible  <bruno@clisp.org>
27381
27382         New implementation of condition variables for Win32.
27383         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
27384         (gl_linked_waitqueue_t): New type.
27385         (gl_cond_t): Use it.
27386         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
27387         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
27388         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
27389         (glthread_cond_init_func, glthread_cond_wait_func,
27390         glthread_cond_timedwait_func, glthread_cond_signal_func,
27391         glthread_cond_broadcast_func, glthread_cond_destroy_func):
27392         Reimplemented on the basis of gl_linked_waitqueue_t.
27393         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
27394         gl_waitqueue_t.
27395         (gl_rwlock_t): Update.
27396         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
27397
27398 2008-10-17  Simon Josefsson  <simon@josefsson.org>
27399
27400         * modules/recvfrom (Depends-on): Add dependency on getpeername.
27401         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27402
27403 2008-10-17  Jim Meyering  <meyering@redhat.com>
27404
27405         ignore-value: new module
27406         * modules/ignore-value: New file.
27407         * lib/ignore-value.h: New file.
27408         * MODULES.html.sh (Compiler warning management): New section,
27409         just for this module.  More to come.
27410
27411 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27412
27413         open-safer.c: avoid 'signed and unsigned in conditional...' warning
27414         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
27415         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
27416
27417 2008-10-16  Jim Meyering  <meyering@redhat.com>
27418
27419         openat-die.c: avoid 'no previous prototype' warning
27420         * lib/openat-die.c: Include "openat.h".
27421         Reported by Reuben Thomas <rrt@sc3d.org>.
27422
27423 2008-10-16  Simon Josefsson  <simon@josefsson.org>
27424
27425         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
27426         * lib/netdb.in.h: Fix typo.
27427         Reported by Bruno Haible  <bruno@clisp.org>
27428
27429         * lib/netdb.in.h: Include sys/socket.h for platforms without
27430         netdb.h, to get structures like hostent on MinGW.
27431         * modules/netdb (Depends-on): Add sys_socket.
27432
27433 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27434
27435         * modules/netdb, modules/netdb-tests: New file.
27436         * m4/netdb_h.m4: New file.
27437         * lib/netdb.in.h: Add, currently just an empty file pending
27438         definitions.
27439         * tests/test-netdb.c: New file.
27440         * doc/posix-headers/netdb.texi: Mention that we replace it if
27441         needed.
27442         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27443         netdb.
27444
27445 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27446
27447         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
27448         with code.
27449
27450 2008-10-13  Bruno Haible  <bruno@clisp.org>
27451
27452         * lib/glthread/cond.c (glthread_cond_wait_func,
27453         glthread_cond_timedwait_func): Add a comment.
27454
27455 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27456
27457         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
27458         * tests/test-select.c: Likewise,
27459
27460 2008-10-13  Bruno Haible  <bruno@clisp.org>
27461
27462         * lib/glthread/cond.c (glthread_cond_wait_func,
27463         glthread_cond_timedwait_func): Fix variable name.
27464         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27465
27466 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
27467
27468         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
27469         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
27470         struct sockaddr.sa_len.
27471         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
27472
27473 2008-10-13  Simon Josefsson  <simon@josefsson.org>
27474
27475         * build-aux/pmccabe2html: Add css and css_url parameters.
27476
27477 2008-10-12  Bruno Haible  <bruno@clisp.org>
27478
27479         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
27480         calling aclx_get.
27481         Reported by Rainer Tammer <tammer@tammer.net>.
27482
27483 2008-10-12  Bruno Haible  <bruno@clisp.org>
27484
27485         Use msvcrt aware primitives for creation/termination of Win32 threads.
27486         * lib/glthread/thread.c: Include <process.h>.
27487         (glthread_create_func): Use _beginthreadex instead of CreateThread.
27488         (wrapper_func): Update signature.
27489         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
27490
27491 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27492             Bruno Haible  <bruno@clisp.org>
27493
27494         Provide a Win32 implementation of the 'cond' module.
27495         * lib/glthread/cond.h [USE_WIN32]: New implementation.
27496         * lib/glthread/cond.c (glthread_cond_init_func,
27497         glthread_cond_wait_func, glthread_cond_timedwait_func,
27498         glthread_cond_signal_func, glthread_cond_broadcast_func,
27499         glthread_cond_destroy_func) [USE_WIN32]: New functions.
27500         * modules/cond (Dependencies): Add gettimeofday.
27501
27502 2008-10-11  Bruno Haible  <bruno@clisp.org>
27503
27504         Make sleep work on older versions of mingw.
27505         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
27506         only whether it exists.
27507         * doc/posix-functions/sleep.texi: Mention the problem with older
27508         versions of mingw.
27509
27510 2008-10-11  Bruno Haible  <bruno@clisp.org>
27511
27512         New module 'shutdown'.
27513         * modules/shutdown: New file.
27514         * lib/sys_socket.in.h (shutdown): New declaration.
27515         * lib/winsock.c (shutdown): New function.
27516         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27517         GNULIB_SHUTDOWN.
27518         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
27519         * doc/posix-functions/shutdown.texi: Document the new module.
27520
27521 2008-10-11  Jim Meyering  <meyering@redhat.com>
27522
27523         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
27524
27525 2008-10-11  Bruno Haible  <bruno@clisp.org>
27526
27527         New module 'fclose'.
27528         * modules/fclose: New file.
27529         * lib/stdio.in.h (fclose): New declaration.
27530         * lib/fclose.c: New file.
27531         * m4/fclose.m4: New file.
27532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
27533         REPLACE_FCLOSE.
27534         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
27535         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
27536         REPLACE_FCLOSE.
27537         * modules/close (Depends-on): fclose.
27538         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
27539
27540 2008-10-11  Bruno Haible  <bruno@clisp.org>
27541
27542         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
27543         set errno and don't call _close.
27544
27545 2008-10-10  Bruno Haible  <bruno@clisp.org>
27546
27547         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
27548         ACL, not afterwards. Fixes test failure on Cygwin.
27549
27550 2008-10-09  Ben Pfaff  <blp@gnu.org>
27551
27552         * build-aux/announce-gen: Fix gnulib version related part of usage
27553         message.  Die with a useful error message if no tarballs are
27554         found.
27555
27556 2008-10-10  Jim Meyering  <meyering@redhat.com>
27557
27558         bootstrap: use git's --depth=N option only if it's supported
27559         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
27560         recognize the --depth option.  Reported by Pádraig Brady.
27561
27562 2008-10-09  Bruno Haible  <bruno@clisp.org>
27563
27564         New module 'ioctl'.
27565         * modules/ioctl: New file.
27566         * lib/sys_socket.in.h (ioctl): Remove declaration.
27567         * lib/winsock.c: Include <sys/ioctl.h>.
27568         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
27569         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27570         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
27571         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
27572         * doc/posix-functions/ioctl.texi: Mention the new module.
27573
27574 2008-10-09  Bruno Haible  <bruno@clisp.org>
27575
27576         New module 'sys_ioctl'.
27577         * lib/sys_ioctl.in.h: New file.
27578         * m4/sys_ioctl_h.m4: New file.
27579         * modules/sys_ioctl: New file.
27580         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
27581
27582 2008-10-09  Bruno Haible  <bruno@clisp.org>
27583
27584         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
27585         * lib/winsock.c: Include <stdarg.h>.
27586         (rpl_ioctl): Change to second argument 'int' and then varargs.
27587
27588 2008-10-09  Bruno Haible  <bruno@clisp.org>
27589
27590         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
27591         when the sys_socket module is present and the system has <winsock2.h>.
27592
27593 2008-10-09  Bruno Haible  <bruno@clisp.org>
27594
27595         * doc/posix-functions/close.texi: Mention module 'close' instead of
27596         module 'sys_socket'.
27597
27598 2008-10-09  Bruno Haible  <bruno@clisp.org>
27599
27600         * doc/glibc-headers/sys_ioctl.texi: New file.
27601         * doc/gnulib.texi: Include it.
27602
27603 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27604             Bruno Haible  <bruno@clisp.org>
27605
27606         Combine the two replacements of 'close'.
27607         * lib/sys_socket.in.h (close): Define to a reminder to include
27608         <unistd.h>.
27609         (_gl_close_fd_maybe_socket): New declaration.
27610         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
27611         * lib/winsock.c (close): Remove undefinition.
27612         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
27613         needed for the gnulib module 'close'.
27614         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
27615         define to an error symbol or to a warning, if suitable.
27616         * lib/close.c: Include <sys/socket.h>.
27617         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
27618         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
27619         UNISTD_H_HAVE_WINSOCK2_H.
27620         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
27621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27622         UNISTD_H_HAVE_WINSOCK2_H.
27623         * modules/sys_socket (Files): Add m4/unistd_h.m4.
27624         (configure.ac): Set a module indicator.
27625         (Makefile.am): Substitute GNULIB_CLOSE.
27626         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
27627         * modules/poll-tests (Depends-on): Add close.
27628         * modules/select-tests (Depends-on): Likewise.
27629
27630 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27631             Bruno Haible  <bruno@clisp.org>
27632
27633         New module 'close'.
27634         * modules/close: New file.
27635         * lib/unistd.in.h (close): Move declaration out of the
27636         FCHDIR_REPLACEMENT scope.
27637         (_gl_unregister_fd): New declaration.
27638         * lib/close.c: New file.
27639         * lib/fchdir.c (rpl_close): Remove function.
27640         * m4/close.m4: New file.
27641         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27642         close.
27643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
27644         REPLACE_CLOSE.
27645         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
27646         REPLACE_CLOSE.
27647         * modules/fchdir (Depends-on): Add close.
27648
27649 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27650             Bruno Haible  <bruno@clisp.org>
27651
27652         * lib/fcntl.in.h (open): Simplify conditionals.
27653         (_gl_register_fd): New declaration.
27654         * lib/fchdir.c (rpl_open): Remove function.
27655         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
27656         also.
27657         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
27658         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27659         open.
27660
27661 2008-10-09  Jim Meyering  <meyering@redhat.com>
27662
27663         GNUmakefile: use the more name-space-friendly "_version"
27664         * top/GNUmakefile (_dummy): Update.
27665         (_version): Rename from "version".
27666
27667 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27668             Bruno Haible  <bruno@clisp.org>
27669
27670         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
27671         rpl_close.
27672         (_gl_register_fd): New function, extracted from rpl_open.
27673         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
27674         (rpl_open, rpl_opendir): Use _gl_register_fd.
27675
27676 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27677
27678         Fix organization of 'open' replacement.
27679         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
27680         (gl_FUNC_OPEN): Use it.
27681         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
27682
27683 2008-10-08  Bruno Haible  <bruno@clisp.org>
27684
27685         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
27686
27687 2008-10-08  Simon Josefsson  <simon@josefsson.org>
27688
27689         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
27690         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
27691         listen).
27692
27693 2008-10-08  Eric Blake  <ebb9@byu.net>
27694
27695         GNUmakefile: add 'make version' target
27696         * top/GNUmakefile (_curr-ver): Split version update rules...
27697         (version): ...into a target.
27698
27699 2008-10-07  Bruno Haible  <bruno@clisp.org>
27700
27701         Use a more portable replacement expression for -0.0L.
27702         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
27703         instead of -0.0L. Fix m4 quotation.
27704
27705         * tests/test-signbit.c: Include <float.h>.
27706         (minus_zero): New variable.
27707         (test_signbitl): Use minus_zero instead of -zero.
27708         * modules/signbit-tests (Depends-on): Add float.
27709
27710         * tests/test-ceill.c: Include <float.h>.
27711         (zero): Remove variable.
27712         (minus_zero): New variable.
27713         (main): Use minus_zero instead of -zero.
27714         * modules/ceill-tests (Depends-on): Add float.
27715
27716         * tests/test-floorl.c: Include <float.h>.
27717         (zero): Remove variable.
27718         (minus_zero): New variable.
27719         (main): Use minus_zero instead of -zero.
27720         * modules/floorl-tests (Depends-on): Add float.
27721
27722         * tests/test-roundl.c: Include <float.h>.
27723         (zero): Remove variable.
27724         (minus_zero): New variable.
27725         (main): Use minus_zero instead of -zero.
27726         * modules/roundl-tests (Depends-on): Add float.
27727
27728         * tests/test-truncl.c: Include <float.h>.
27729         (zero): Remove variable.
27730         (minus_zero): New variable.
27731         (main): Use minus_zero instead of -zero.
27732         * modules/truncl-tests (Depends-on): Add float.
27733
27734         * tests/test-frexpl.c (zero): Remove variable.
27735         (minus_zero): New variable.
27736         (main): Use minus_zero instead of -zero.
27737         * modules/frexpl-tests (Depends-on): Add float.
27738
27739         * tests/test-isnan.c (zerol): Remove variable.
27740         (minus_zerol): New variable.
27741         (test_long_double): Use minus_zerol instead of -zerol.
27742         * modules/isnan-tests (Depends-on): Add float.
27743
27744         * tests/test-isnanl.h (zero): Remove variable.
27745         (minus_zero): New variable.
27746         (main): Use minus_zero instead of -zero.
27747         * modules/isnanl-nolibm-tests (Depends-on): Add float.
27748         * modules/isnanl-tests (Depends-on): Add float.
27749
27750         * tests/test-ldexpl.c (zero): Remove variable.
27751         (minus_zero): New variable.
27752         (main): Use minus_zero instead of -zero.
27753         * modules/ldexpl-tests (Depends-on): Add float.
27754
27755         * tests/test-snprintf-posix.h (zerol): Remove variable.
27756         (minus_zerol): New variable.
27757         (test_function): Use minus_zerol instead of -zerol.
27758         * modules/snprintf-posix-tests (Depends-on): Add float.
27759         * modules/vsnprintf-posix-tests (Depends-on): Add float.
27760
27761         * tests/test-sprintf-posix.h (zerol): Remove variable.
27762         (minus_zerol): New variable.
27763         (test_function): Use minus_zerol instead of -zerol.
27764         * modules/sprintf-posix-tests (Depends-on): Add float.
27765         * modules/vsprintf-posix-tests (Depends-on): Add float.
27766
27767         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
27768         (minus_zerol): New variable.
27769         (test_function): Use minus_zerol instead of -zerol.
27770         * modules/vasnprintf-posix-tests (Depends-on): Add float.
27771
27772         * tests/test-vasprintf-posix.c (zerol): Remove variable.
27773         (minus_zerol): New variable.
27774         (test_function): Use minus_zerol instead of -zerol.
27775         * modules/vasprintf-posix-tests (Depends-on): Add float.
27776
27777 2008-10-07  Simon Josefsson  <simon@josefsson.org>
27778
27779         * MODULES.html.sh (Support for building documentation): Mention
27780         pmccabe2html.  Sort entries.
27781
27782         Add pmccabe2html module, from gnupdf.
27783         * build-aux/pmccabe.css: New file.
27784         * build-aux/pmccabe2html: New file.
27785         * m4/pmccabe2html.m4: New file.
27786         * modules/pmccabe2html: New file.
27787
27788 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
27789
27790         flock: new module
27791         * MODULES.html.sh: Add to list of modules.
27792         * lib/flock.c: flock implementation for Windows and Unix systems
27793         which have fcntl.
27794         * doc/glibc-functions/flock.texi: Update documentation.
27795         * lib/sys_file.in.h: <sys/file.h> header file.
27796         * m4/flock.m4: M4 macros.
27797         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
27798         * modules/flock: flock module.
27799         * modules/flock-tests: flock tests module.
27800         * modules/sys_file: sys/file.h module.
27801         * tests/test-flock.c: test suite for flock.
27802
27803 2008-10-06  Jim Meyering  <meyering@redhat.com>
27804
27805         bootstrap: check for LT_INIT more portably still ;-)
27806         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
27807         Spotted by Bruno Haible.
27808
27809 2008-10-06  Eric Blake  <ebb9@byu.net>
27810
27811         test-signbit: avoid tripping Irix cc bug on -0.0L
27812         * tests/test-signbit.c (minus_zerol): Delete, and replace with
27813         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
27814         entire testsuite consistent and avoids an Irix 6.2 bug.
27815
27816 2008-10-05  Bruno Haible  <bruno@clisp.org>
27817             Jim Meyering  <jim@meyering.net>
27818
27819         Add an option for ignoring EPIPE during close_stdout.
27820         * lib/closeout.h: Include <stdbool.h>.
27821         (close_stdout_set_ignore_EPIPE): New declaration.
27822         * lib/closeout.c: Include <stdbool.h>.
27823         (ignore_EPIPE): New variable.
27824         (close_stdout_set_ignore_EPIPE): New function.
27825         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
27826         * lib/close-stream.c (close_stream): Mention the possible EPIPE
27827         failure.
27828         * modules/closeout (Depends-on): Add stdbool.
27829
27830 2008-10-05  Bruno Haible  <bruno@clisp.org>
27831
27832         * modules/accept: New file.
27833         * modules/bind: New file.
27834         * modules/connect: New file.
27835         * modules/getpeername: New file.
27836         * modules/getsockname: New file.
27837         * modules/getsockopt: New file.
27838         * modules/listen: New file.
27839         * modules/recv: New file.
27840         * modules/recvfrom: New file.
27841         * modules/send: New file.
27842         * modules/sendto: New file.
27843         * modules/setsockopt: New file.
27844         * modules/socket: New file.
27845         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
27846         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27847         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
27848         the particular module is requested. Add a link warning when the
27849         particular module is not requested.
27850         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
27851         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
27852         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
27853         the particular module is requested.
27854         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
27855         gl_SYS_SOCKET_H_DEFAULTS): New macros.
27856         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
27857         * modules/sys_socket (Depends-on): Add link-warning.
27858         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
27859         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
27860         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
27861         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
27862         GL_LINK_WARNING.
27863         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
27864         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
27865         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
27866         * doc/posix-functions/getpeername.texi: Mention the new module
27867         'getpeername'.
27868         * doc/posix-functions/getsockname.texi: Mention the new module
27869         'getsockname'.
27870         * doc/posix-functions/getsockopt.texi: Mention the new module
27871         'getsockopt'.
27872         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
27873         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
27874         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
27875         * doc/posix-functions/send.texi: Mention the new module 'send'.
27876         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
27877         * doc/posix-functions/setsockopt.texi: Mention the new module
27878         'setsockopt'.
27879         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
27880         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
27881         listen, connect, accept.
27882         * modules/select-tests (Depends-on): Likewise.
27883
27884 2008-10-05  Bruno Haible  <bruno@clisp.org>
27885
27886         * lib/winsock.c (strerror): Remove unused #undef.
27887         (rpl_close): Remove unused local variable.
27888
27889         * modules/sys_socket (Depends-on); Add errno.
27890
27891 2008-10-05  Bruno Haible  <bruno@clisp.org>
27892
27893         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
27894         (select): Add a link warning when the 'select' module is not used.
27895         * modules/sys_select (Depends-on): Add link-warning.
27896         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
27897         Suggested by Paolo Bonzini.
27898
27899 2008-10-05  Jim Meyering  <meyering@redhat.com>
27900
27901         bootstrap: check for LT_INIT more portably
27902         * build-aux/bootstrap: Avoid using grep -E, since it's not
27903         portable enough.  Suggestion from Bruno Haible.
27904
27905 2008-10-05  Bruno Haible  <bruno@clisp.org>
27906
27907         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
27908         as being fixed by gnulib.
27909
27910 2008-10-05  Bruno Haible  <bruno@clisp.org>
27911
27912         * modules/select-tests: New file, mostly copied from
27913         modules/sys_select-tests.
27914         * tests/test-select.c: New file, mostly copied from
27915         tests/test-sys_select.c.
27916         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
27917         * modules/sys_select-tests (Depends-on): Remove all dependencies.
27918         (Makefile.am): Remove test_sys_select_LDADD.
27919
27920         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
27921         to an undefined symbol, for an error message.
27922         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
27923         (gl_SYS_SELECT_H_DEFAULTS): New macro.
27924         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
27925         winsock-select.c here.
27926         * modules/sys_select (Files): Remove lib/winsock-select.c.
27927         (Depends-on): Remove alloca.
27928         (Makefile.am): Substitute GNULIB_SELECT.
27929         * modules/select: New file.
27930         * doc/posix-functions/select.texi: Update.
27931
27932 2008-10-05  Bruno Haible  <bruno@clisp.org>
27933
27934         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
27935         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
27936         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
27937         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
27938         getdtablesize.
27939         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
27940         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
27941
27942 2008-10-05  Bruno Haible  <bruno@clisp.org>
27943
27944         * modules/getdtablesize-tests: New file.
27945         * tests/test-getdtablesize.c: New file.
27946
27947         New module 'getdtablesize'.
27948         * lib/unistd.in.h (getdtablesize): New declaration.
27949         * lib/getdtablesize.c: New file.
27950         * m4/getdtablesize.m4: New file.
27951         * modules/getdtablesize: New file.
27952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27953         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
27954         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
27955         HAVE_GETDTABLESIZE.
27956         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
27957
27958 2008-10-05  Bruno Haible  <bruno@clisp.org>
27959
27960         * modules/sched (Makefile.am): Fix typo.
27961         Reported by Simon Josefsson.
27962
27963 2008-10-05  Jim Meyering  <meyering@redhat.com>
27964
27965         bootstrap: check for LT_INIT, too
27966         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
27967         are deprecated.  Suggestion from Ralf Wildenhues.
27968
27969 2008-10-05  Bruno Haible  <bruno@clisp.org>
27970
27971         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
27972         overriding them by ours.
27973         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
27974
27975 2008-10-05  Jim Meyering  <meyering@redhat.com>
27976
27977         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
27978         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
27979         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
27980
27981 2008-10-04  Bruno Haible  <bruno@clisp.org>
27982
27983         * modules/dup2 (License): Change to LGPLv2+.
27984         * modules/sleep (License): Likewise.
27985         * modules/perror (License): Likewise.
27986         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
27987         Blake.
27988         * modules/signal (License): Likewise.
27989         * modules/sigprocmask (License): Likewise.
27990         * modules/raise (License): Change to LGPLv2+, with approval by Jim
27991         Meyering.
27992
27993 2008-10-04  Bruno Haible  <bruno@clisp.org>
27994
27995         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
27996         Reported by Rainer Tammer <tammer@tammer.net>.
27997
27998 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
27999             Bruno Haible  <bruno@clisp.org>
28000
28001         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
28002         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
28003         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
28004
28005 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
28006
28007         filevercmp: new module
28008         * lib/filevercmp.h: New function filevercmp comparing version strings.
28009         * lib/filevercmp.c: Implementation of filevercmp function.
28010         * modules/filevercmp: Module metadata.
28011         * tests/test-filevercmp.c: Unit test for new module.
28012         * modules/filevercmp-tests: Unit test metadata.
28013         * MODULES.html.sh: Add filevercmp module.
28014
28015 2008-10-03  Bruno Haible  <bruno@clisp.org>
28016
28017         * lib/c-ctype.h: Add comment.
28018         Reported by Jim Meyering.
28019
28020 2008-10-02  Bruno Haible  <bruno@clisp.org>
28021
28022         * modules/posix_spawn-internal (Depends-on): Add 'open'.
28023
28024 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28025
28026         * build-aux/bootstrap: Allow renaming bootstrap, and change the
28027         name of bootstrap.conf accordingly.
28028
28029 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28030
28031         * build-aux/bootstrap: Install git-merge-changelog configuration
28032         items into .gitconfig if needed.
28033
28034 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28035
28036         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
28037         git repository, and initialize/update it accordingly.
28038
28039 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
28040
28041         * modules/fsync-tests: New file.
28042         * tests/test-fsync.c: New file.
28043
28044         New module 'fsync'.
28045         * lib/fsync.c: New file.
28046         * m4/fsync.m4: New file.
28047         * modules/fsync: New file.
28048         * lib/unistd.in.h (fsync): New declaration.
28049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
28050         GNULIB_FSYNC and HAVE_FSYNC.
28051         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
28052         * MODULES.html.sh (posix_functions): Add fsync.
28053         * doc/posix-functions/fsync.texi: Mention the new module.
28054
28055 2008-10-02  Jim Meyering  <meyering@redhat.com>
28056
28057         fts.c: sync with similar code from coreutils' remove.c
28058         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
28059         Guard also with "#if defined __linux__", since for now at least,
28060         this code is Linux-kernel-specific.
28061
28062 2008-10-02  Jim Meyering  <meyering@redhat.com>
28063
28064         fts: bug fixes
28065         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
28066         Include <sys/vfs.h>, not <sys/statfs.h>.
28067
28068         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
28069         Include <sys/vfs.h>, not <sys/statfs.h>.
28070
28071 2008-10-01  Bruno Haible  <bruno@clisp.org>
28072
28073         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
28074         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
28075         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
28076         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
28077         * doc/posix-functions/posix_spawnp.texi: Likewise.
28078         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
28079         whether posix_spawn actually works.
28080         * m4/pipe.m4 (gl_PIPE): Likewise.
28081         * modules/execute (Files): Add m4/posix_spawn.m4.
28082         * modules/pipe (Files): Add m4/posix_spawn.m4.
28083         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
28084
28085 2008-10-01  Jim Meyering  <meyering@redhat.com>
28086
28087         remove trailing spaces
28088         * NEWS: Likewise.
28089         * lib/poll.c (poll): Likewise.
28090         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
28091         * lib/winsock.c (rpl_close): Likewise.
28092         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
28093         * modules/yield: Likewise.
28094         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
28095         * tests/test-sys_select.c (connect_to_socket): Likewise.
28096
28097         fts.c: adjust a new interface to be more generally useful
28098         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
28099         (fts_build): Adjust caller.
28100
28101 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28102
28103         * modules/cond-tests: New file.
28104         * tests/test-cond.c: New file.
28105
28106 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28107             Bruno Haible  <bruno@clisp.org>
28108
28109         * modules/cond (Dependencies): Add errno, time.
28110         * lib/glthread/cond.h: Include <time.h>.
28111         (gl_cond_define, gl_cond_define_initialized): Use the same definition
28112         across platforms.
28113
28114 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28115             Bruno Haible  <bruno@clisp.org>
28116
28117         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
28118
28119 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28120             Bruno Haible  <bruno@clisp.org>
28121
28122         * modules/tls-tests (Depends-on): Add thread, yield.
28123         (configure.ac): Remove all checks.
28124         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
28125         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
28126         gl_thread_self): Remove definitions. Include glthread/thread.h and
28127         glthread/yield.h instead.
28128         (test_tls): Pass an additional NULL argument to gl_thread_join.
28129
28130 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28131             Bruno Haible  <bruno@clisp.org>
28132
28133         * modules/lock-tests (Depends-on): Add thread, yield.
28134         (configure.ac): Remove all checks.
28135         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
28136         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
28137         gl_thread_self): Remove definitions. Include glthread/thread.h and
28138         glthread/yield.h instead.
28139         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
28140         additional NULL argument to gl_thread_join.
28141
28142 2008-09-30  Bruno Haible  <bruno@clisp.org>
28143
28144         Fix the Win32 implementation of the 'thread' module.
28145         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
28146         pointer type.
28147         (gl_thread_self): Invoke gl_thread_self_func.
28148         (gl_thread_self_func): New declaration.
28149         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
28150         (do_init_self_key, init_self_key): New functions.
28151         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
28152         Remove some fields.
28153         (running_threads, running_lock): Remove variables.
28154         (get_current_thread_handle): New function.
28155         (gl_thread_self_func, wrapper_func, glthread_create_func,
28156         glthread_join_func, gl_thread_exit_func): Largely rewritten and
28157         simplified.
28158
28159 2008-09-30  Bruno Haible  <bruno@clisp.org>
28160
28161         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
28162         files.
28163
28164 2008-09-30  Jim Meyering  <meyering@redhat.com>
28165
28166         fts.m4: correct the test for statfs.f_type
28167         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
28168         when checking for statfs.f_type.
28169
28170 2008-09-15  Simon Josefsson  <simon@josefsson.org>
28171
28172         tests: avoid some compiler warnings
28173         * tests/test-memchr.c (main): Pass NULL indirectly.
28174         * tests/test-getdate.c (main): Remove unused variable 'ret'.
28175
28176 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
28177
28178         getdate.y: disallow countable dayshifts like "4 yesterday ago"
28179         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
28180         exactly specified dayshifts.
28181         (dayshift): New rule.
28182         (rel): Add dayshift.
28183         (relative_time_table) [tomorrow, yesterday, today, now]:
28184         Use tDAY_SHIFT in place of tDAY_UNIT.
28185         * tests/test-getdate.c: Add tests for now-disallowed countable
28186         dayshifts, e.g., "4 yesterday ago".
28187
28188 2008-09-29  Bruno Haible  <bruno@clisp.org>
28189
28190         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
28191         * tests/test-posix_spawn1.in.sh: Renamed from
28192         tests/test-posix_spawn.in.sh.
28193         * tests/test-posix_spawn2.c: New file.
28194         * tests/test-posix_spawn2.in.sh: New file.
28195         * modules/posix_spawnp-tests (Files): Update.
28196         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
28197
28198 2008-09-29  Bruno Haible  <bruno@clisp.org>
28199
28200         Propagate effects of putenv/setenv/unsetenv to child processes.
28201         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
28202         * lib/pipe.c (create_pipe): Likewise.
28203
28204 2008-09-29  Bruno Haible  <bruno@clisp.org>
28205
28206         Enable use of shell scripts as executables in mingw.
28207         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
28208         run the program as a shell script.
28209         * lib/pipe.c (create_pipe): Likewise.
28210         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
28211         resulting array.
28212
28213 2008-09-29  Eric Blake  <ebb9@byu.net>
28214
28215         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
28216
28217 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
28218
28219         * doc/posix-functions/accept.texi: Update mingw problems.
28220         * doc/posix-functions/bind.texi: Update mingw problems.
28221         * doc/posix-functions/close.texi: Update mingw problems.
28222         * doc/posix-functions/connect.texi: Update mingw problems.
28223         * doc/posix-functions/getpeername.texi: Update mingw problems.
28224         * doc/posix-functions/getsockname.texi: Update mingw problems.
28225         * doc/posix-functions/getsockopt.texi: Update mingw problems.
28226         * doc/posix-functions/ioctl.texi: Update mingw problems.
28227         * doc/posix-functions/listen.texi: Update mingw problems.
28228         * doc/posix-functions/recv.texi: Update mingw problems.
28229         * doc/posix-functions/recvfrom.texi: Update mingw problems.
28230         * doc/posix-functions/select.texi: Update mingw problems.
28231         * doc/posix-functions/send.texi: Update mingw problems.
28232         * doc/posix-functions/sendto.texi: Update mingw problems.
28233         * doc/posix-functions/setsockopt.texi: Update mingw problems.
28234         * doc/posix-functions/socket.texi: Update mingw problems.
28235
28236 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
28237             Bruno Haible  <bruno@clisp.org>
28238
28239         * lib/sys_select.in.h: Include sys/time.h.
28240         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
28241         * modules/sys_select: Depend on sys_time.
28242         * tests/test-sys_select.c: Test that sys/select.h defines struct
28243         timeval fully.
28244
28245 2008-09-29  Bruno Haible  <bruno@clisp.org>
28246
28247         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
28248         * lib/sys_select.in.h: Likewise.
28249
28250 2008-09-29  Bruno Haible  <bruno@clisp.org>
28251
28252         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
28253
28254 2008-09-29  Bruno Haible  <bruno@clisp.org>
28255
28256         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
28257         Set LIBSOCKET instead of augmenting LIBS.
28258         * modules/sockets (Link): New section.
28259         * modules/sockets-tests (test_sockets_LDADD): New variable.
28260         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
28261         * modules/poll-tests (test_poll_LDADD): New variable.
28262         * NEWS: Document the change.
28263
28264 2008-09-29  Bruno Haible  <bruno@clisp.org>
28265
28266         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
28267         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
28268         ARPA_INET_H directly.
28269         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28270
28271 2008-09-28  Bruno Haible  <bruno@clisp.org>
28272
28273         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
28274         from gl_HEADER_SYS_SOCKET.
28275         (gl_HEADER_SYS_SOCKET): Invoke it.
28276         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28277
28278 2008-09-28  Bruno Haible  <bruno@clisp.org>
28279
28280         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
28281         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
28282         Needed on OSF/1 4.0.
28283
28284 2008-09-28  Bruno Haible  <bruno@clisp.org>
28285
28286         Override open more carefully.
28287         * lib/open.c (orig_open): New function.
28288         (rpl_open): Use orig_open instead of open.
28289         * lib/fcntl.in.h: Add special invocation convention.
28290         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
28291         (gl_FUNC_OPEN): Invoke it.
28292
28293         Override freopen more carefully.
28294         * lib/freopen.c (orig_freopen): New function.
28295         (rpl_freopen): Use orig_freopen instead of freopen.
28296         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
28297         (gl_FUNC_FREOPEN): Invoke it.
28298
28299         Override fopen more carefully.
28300         * lib/fopen.c (orig_fopen): New function.
28301         (rpl_fopen): Use orig_fopen instead of fopen.
28302         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
28303         (gl_FUNC_FOPEN): Invoke it.
28304         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
28305
28306 2008-09-28  Bruno Haible  <bruno@clisp.org>
28307
28308         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
28309         SIGPIPE.
28310
28311 2008-09-28  Bruno Haible  <bruno@clisp.org>
28312
28313         * tests/test-sigaction.c (handler, main): Disable the check whether
28314         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
28315         glibc systems with LinuxThreads.
28316
28317 2008-09-28  Bruno Haible  <bruno@clisp.org>
28318
28319         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
28320
28321         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
28322         with AIX xlc.
28323         * lib/fcntl.in.h (open): Likewise.
28324         Reported by Rainer Tammer <tammer@tammer.net>.
28325
28326 2008-09-28  Bruno Haible  <bruno@clisp.org>
28327
28328         * modules/posix_spawnp-tests: New file.
28329         * tests/test-posix_spawn.c: New file.
28330         * tests/test-posix_spawn.in.sh: New file.
28331
28332         New module 'posix_spawnp'.
28333         * modules/posix_spawnp: New file.
28334         * lib/spawnp.c: New file, from GNU libc with modifications.
28335         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
28336
28337         New module 'posix_spawn'.
28338         * modules/posix_spawn: New file.
28339         * lib/spawn.c: New file, from GNU libc with modifications.
28340         * doc/posix-functions/posix_spawn.texi: Mention the new module.
28341
28342         New module 'posix_spawnattr_destroy'.
28343         * modules/posix_spawnattr_destroy: New file.
28344         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
28345         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
28346         module.
28347
28348         New module 'posix_spawnattr_setsigmask'.
28349         * modules/posix_spawnattr_setsigmask: New file.
28350         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
28351         modifications.
28352         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
28353         new module.
28354
28355         New module 'posix_spawnattr_getsigmask'.
28356         * modules/posix_spawnattr_getsigmask: New file.
28357         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
28358         modifications.
28359         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
28360         new module.
28361
28362         New module 'posix_spawnattr_setsigdefault'.
28363         * modules/posix_spawnattr_setsigdefault: New file.
28364         * lib/spawnattr_setdefault.c: New file, from GNU libc with
28365         modifications.
28366         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
28367         new module.
28368
28369         New module 'posix_spawnattr_getsigdefault'.
28370         * modules/posix_spawnattr_getsigdefault: New file.
28371         * lib/spawnattr_getdefault.c: New file, from GNU libc with
28372         modifications.
28373         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
28374         new module.
28375
28376         New module 'posix_spawnattr_setschedpolicy'.
28377         * modules/posix_spawnattr_setschedpolicy: New file.
28378         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
28379         modifications.
28380         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
28381         new module.
28382
28383         New module 'posix_spawnattr_getschedpolicy'.
28384         * modules/posix_spawnattr_getschedpolicy: New file.
28385         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
28386         modifications.
28387         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
28388         new module.
28389
28390         New module 'posix_spawnattr_setschedparam'.
28391         * modules/posix_spawnattr_setschedparam: New file.
28392         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
28393         modifications.
28394         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
28395         new module.
28396
28397         New module 'posix_spawnattr_getschedparam'.
28398         * modules/posix_spawnattr_getschedparam: New file.
28399         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
28400         modifications.
28401         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
28402         new module.
28403
28404         New module 'posix_spawnattr_setpgroup'.
28405         * modules/posix_spawnattr_setpgroup: New file.
28406         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
28407         modifications.
28408         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
28409         module.
28410
28411         New module 'posix_spawnattr_getpgroup'.
28412         * modules/posix_spawnattr_getpgroup: New file.
28413         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
28414         modifications.
28415         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
28416         module.
28417
28418         New module 'posix_spawnattr_setflags'.
28419         * modules/posix_spawnattr_setflags: New file.
28420         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
28421         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
28422         module.
28423
28424         New module 'posix_spawnattr_getflags'.
28425         * modules/posix_spawnattr_getflags: New file.
28426         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
28427         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
28428         module.
28429
28430         New module 'posix_spawnattr_init'.
28431         * modules/posix_spawnattr_init: New file.
28432         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
28433         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
28434         module.
28435
28436         New module 'posix_spawn_file_actions_destroy'.
28437         * modules/posix_spawn_file_actions_destroy: New file.
28438         * lib/spawn_faction_destroy.c: New file, from GNU libc with
28439         modifications.
28440         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
28441         the new module.
28442
28443         New module 'posix_spawn_file_actions_addopen'.
28444         * modules/posix_spawn_file_actions_addopen: New file.
28445         * lib/spawn_faction_addopen.c: New file, from GNU libc with
28446         modifications.
28447         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
28448         the new module.
28449
28450         New module 'posix_spawn_file_actions_adddup2'.
28451         * modules/posix_spawn_file_actions_adddup2: New file.
28452         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
28453         modifications.
28454         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
28455         the new module.
28456
28457         New module 'posix_spawn_file_actions_addclose'.
28458         * modules/posix_spawn_file_actions_addclose: New file.
28459         * lib/spawn_faction_addclose.c: New file, from GNU libc with
28460         modifications.
28461         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
28462         the new module.
28463
28464         New module 'posix_spawn_file_actions_init'.
28465         * modules/posix_spawn_file_actions_init: New file.
28466         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
28467         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
28468         new module.
28469
28470         New module 'posix_spawn-internal'.
28471         * modules/posix_spawn-internal: New file.
28472         * lib/spawn_int.h: New file, from GNU libc with modifications.
28473         * lib/spawni.c: New file, from GNU libc with modifications.
28474         * m4/posix_spawn.m4: New file.
28475
28476         New module 'spawn'.
28477         * modules/spawn: New file.
28478         * lib/spawn.in.h: New file, from GNU libc with modifications.
28479         * m4/spawn_h.m4: New file.
28480         * doc/posix-headers/spawn.texi: Mention the new module.
28481
28482 2008-09-28  Bruno Haible  <bruno@clisp.org>
28483
28484         * modules/sched-tests: New file.
28485         * tests/test-sched.c: New file.
28486
28487         New module 'sched'.
28488         * modules/sched: New file.
28489         * lib/sched.in.h: New file.
28490         * m4/sched_h.m4: New file.
28491         * doc/posix-headers/sched.texi: Mention the new module.
28492
28493 2008-09-27  Eric Blake  <ebb9@byu.net>
28494
28495         Fix previous patch, and tweak references to $0.
28496         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
28497         (func_version, func_gnulib_dir): Don't call this program
28498         gnulib-tool.
28499         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
28500         with using $0 in function.
28501         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
28502         (func_fatal_error): Reuse the name the user invoked us with.
28503
28504 2008-09-27  Bruno Haible  <bruno@clisp.org>
28505
28506         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
28507         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
28508         (gl_ICONV_H): Not here.
28509         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28510         instead of assigning ICONV_H directly.
28511
28512         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
28513         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
28514         WCHAR_H directly.
28515
28516 2008-09-27  Bruno Haible  <bruno@clisp.org>
28517
28518         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
28519         * modules/arpa_inet (Depends-on): Add link-warning.
28520         (Makefile.am): Insert the definition of GL_LINK-WARNING.
28521         * modules/unistd (Makefile.am): Likewise.
28522
28523 2008-09-26  Bruno Haible  <bruno@clisp.org>
28524
28525         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
28526         variables.
28527         (func_version): Essentially copied from gnulib-tool.
28528         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
28529         func_readlink): Copied from gnulib-tool.
28530
28531 2008-09-26  Bruno Haible  <bruno@clisp.org>
28532
28533         * gnulib-tool (func_version): Change directory to $gnulib_dir before
28534         invoking git-version-gen.
28535
28536 2008-09-26  Bruno Haible  <bruno@clisp.org>
28537
28538         * posix-modules: Update to directory names changed on 2008-01-19.
28539         Remove commas in output before splitting into words. No more need to
28540         avoid 'ftruncate' since 2007-02-19.
28541
28542 2008-09-26  Bruno Haible  <bruno@clisp.org>
28543
28544         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
28545
28546 2008-09-26  Bruno Haible  <bruno@clisp.org>
28547
28548         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
28549         * modules/fwriteerror (Depends-on): Add errno.
28550
28551 2008-09-26  Bruno Haible  <bruno@clisp.org>
28552
28553         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
28554         * tests/test-vc-list-files-cvs.sh: Likewise.
28555
28556 2008-09-26  Bruno Haible  <bruno@clisp.org>
28557
28558         * doc/posix-headers/sys_resource.texi: Reorder items.
28559
28560 2008-09-26  Jim Meyering  <meyering@redhat.com>
28561
28562         fts: tweak inode comparison function
28563         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
28564         inode numbers, as documented.
28565
28566         fts: sort dirent entries on inode number before traversing
28567         This avoids a quadratic, seek-related performance penalty when
28568         operating on a directory containing many entries (measurable at 10k;
28569         3.5 hours at 2 million entries with a cold cache) on certain types
28570         of file systems, including ext3 and ext4, but not tmpfs.
28571         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
28572         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
28573         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
28574         (fs_handles_readdir_ordered_dirents_efficiently): New function.
28575         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
28576         (fts_build): Set the stat.st_ino member from D_INO.
28577         If it is likely to be useful, sort dirent entries on inode number.
28578
28579         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
28580         and the struct statfs.f_type member.
28581         * modules/fts (Depends-on): Add d-ino.
28582
28583 2008-09-26  Bruno Haible  <bruno@clisp.org>
28584
28585         * modules/sigpipe-die (Depends-on): Add sigpipe.
28586
28587         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
28588         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
28589         and GNULIB_STDIO_H_SIGPIPE are set.
28590         * lib/stdio-write.c: New file.
28591         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
28592         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28593         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28594         REPLACE_STDIO_WRITE_FUNCS.
28595         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
28596         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28597         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28598         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28599         * modules/stdio (Files): Add lib/stdio-write.c.
28600         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
28601         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28602         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28603         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28604         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
28605         REPLACE_FPRINTF_POSIX.
28606         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
28607         REPLACE_PRINTF_POSIX.
28608         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
28609         REPLACE_VFPRINTF_POSIX.
28610         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
28611         REPLACE_VPRINTF_POSIX.
28612         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
28613         SIGPIPE issue.
28614         * doc/posix-functions/fputc.texi: Likewise.
28615         * doc/posix-functions/fputs.texi: Likewise.
28616         * doc/posix-functions/fwrite.texi: Likewise.
28617         * doc/posix-functions/printf.texi: Likewise.
28618         * doc/posix-functions/putc.texi: Likewise.
28619         * doc/posix-functions/putchar.texi: Likewise.
28620         * doc/posix-functions/puts.texi: Likewise.
28621         * doc/posix-functions/vfprintf.texi: Likewise.
28622         * doc/posix-functions/vprintf.texi: Likewise.
28623
28624         * modules/safe-write (Depends-on): Add write.
28625
28626         * modules/sigpipe-tests: New file.
28627         * tests/test-sigpipe.c: New file.
28628         * tests/test-sigpipe.sh: New file.
28629
28630         * modules/write: New file.
28631         * lib/unistd.in.h: Include <sys/types.h>.
28632         (write): New declaration.
28633         * lib/write.c: New file.
28634         * m4/write.m4: New file.
28635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28636         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
28637         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
28638         GNULIB_WRITE, REPLACE_WRITE.
28639         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
28640         and the SIGPIPE issue.
28641
28642         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
28643         (raise): New declaration.
28644         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
28645         (ext_signal): New function.
28646         (rpl_raise): New function.
28647         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
28648         GNULIB_SIGNAL_H_SIGPIPE.
28649         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
28650         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
28651
28652         * modules/sigpipe: New file.
28653         * m4/sigpipe.m4: New file.
28654
28655 2008-09-25  Derek Price  <derek@ximbiot.com>
28656             Bruno Haible  <bruno@clisp.org>
28657
28658         * gnulib-tool (func_import): Report all license incompatibilities, not
28659         just the first one.
28660
28661 2008-09-25  Bruno Haible  <bruno@clisp.org>
28662
28663         * gnulib-tool (func_import): When computing the edits, consider not
28664         only the Makefile.ams that exist but also those that will be generated.
28665
28666 2008-09-25  Simon Josefsson  <simon@josefsson.org>
28667
28668         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
28669         fixes gnulib-tool --test warning about duplicate dependency.
28670
28671 2008-09-25  Bruno Haible  <bruno@clisp.org>
28672
28673         * gnulib-tool: Don't ask the user to perform edits in the generated
28674         Makefile.ams.
28675         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
28676         apply to the Makefile.am being generated.
28677         (func_emit_tests_Makefile_am): Execute edits that apply to the
28678         Makefile.am being generated.
28679         (func_import): Setup list of Makefile.am edits before emitting the
28680         Makefile.ams, not at the end.
28681         (func_create_testdir): Update.
28682         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28683
28684 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28685
28686         * gnulib-tool (func_import): Store the --tests-base option in the
28687         comment in gnulib-cache.m4.
28688
28689 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
28690
28691         * NEWS: Document increased portability that sys_select now provides.
28692
28693         * lib/sys_select.in.h: Install select wrapper.
28694         * lib/sys_socket.in.h: Use more descriptive name when there is no
28695         select wrapper.
28696         * lib/winsock-select.c: New.
28697         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
28698         Require gl_HEADER_SYS_SOCKET.
28699         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
28700         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
28701         * tests/test-sys_select.c: Add functional tests.
28702
28703 2008-09-24  Eric Blake  <ebb9@byu.net>
28704
28705         open, fopen: close fd leak in last patch
28706         * lib/open.c (rpl_open): Close fd before returning error.
28707         * lib/fopen.c (rpl_fopen): Close fd before returning error.
28708         * doc/posix-functions/open.texi (open): Document that Irix also
28709         has the bug.
28710         * doc/posix-functions/fopen.texi (fopen): Likewise.
28711         Reported by Paolo Bonzini.
28712
28713 2008-09-24  Bruno Haible  <bruno@clisp.org>
28714
28715         Ensure that a filename ending in a slash cannot be used to access a
28716         non-directory.
28717         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
28718         to check whether it's really a directory.
28719         * lib/fopen.c: Include fcntl.h, unistd.h.
28720         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
28721         and fdopen().
28722         * modules/fopen (Depends-on): Add unistd.
28723         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
28724         * tests/test-fopen.c (main): Likewise.
28725         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
28726         * doc/posix-functions/fopen.texi: Likewise.
28727         Reported by Eric Blake.
28728
28729 2008-09-23  Eric Blake  <ebb9@byu.net>
28730
28731         c-stack: avoid compiler optimizations when provoking overflow
28732         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
28733         recursion harder to optimize, to ensure a stack overflow occurs.
28734         * tests/test-c-stack.c (recurse): Likewise.
28735         Borrowed from libsigsegv.
28736
28737         c-stack: work around Irix sigaltstack bug
28738         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
28739         whether sigaltstack uses wrong end of stack_t (copied in part from
28740         libsigsegv).
28741         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
28742         Irix bug, without requiring an over-allocation.
28743         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
28744         bug.
28745
28746         fopen: document mingw bug on directories
28747         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
28748         not allowing a stream visiting a directory, even though reading
28749         from such a stream is not portable.
28750
28751 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28752
28753         * lib/poll.c: Rewrite.
28754         * modules/poll: Depend on alloca.
28755
28756 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28757
28758         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
28759         instead define prototypes for a full set of wrappers.  Ensure
28760         that Cygwin does not use the compatibility code, which is only
28761         for MinGW.
28762         * lib/winsock.c: New.
28763         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
28764         * modules/sys_socket: Add lib/winsock.c.
28765
28766         * modules/poll-tests: Add errno and perror.
28767         * tests/test-poll.c: Use ioctl, not ioctlsocket.
28768
28769 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28770
28771         * tests/test-poll.c: Downgrade minimum needed Winsock version.
28772
28773 2008-09-23  Bruno Haible  <bruno@clisp.org>
28774
28775         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
28776         * doc/glibc-functions/*: Likewise.
28777
28778 2008-09-23  Simon Josefsson  <simon@josefsson.org>
28779
28780         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
28781         success.
28782
28783 2008-09-22  Eric Blake  <ebb9@byu.net>
28784             Bruno Haible  <bruno@clisp.org>
28785
28786         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
28787         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
28788         supply %A but mishandle pseudo-NaN.
28789         Reported by Simon Josefsson.
28790
28791 2008-09-21  Bruno Haible  <bruno@clisp.org>
28792
28793         * tests/test-lock.c (main): Tweak skip message.
28794         * tests/test-tls.c (main): Likewise.
28795
28796 2008-09-21  Bruno Haible  <bruno@clisp.org>
28797
28798         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
28799         whether 'struct sigaction' has sa_sigaction here...
28800         (gl_PREREQ_SIG_HANDLER_H): ... not here.
28801         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
28802
28803 2008-09-21  Bruno Haible  <bruno@clisp.org>
28804
28805         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
28806         section.
28807         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
28808         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
28809         the new section.
28810         (Support for obsolete systems lacking POSIX:2001): New section.
28811         (String handling <string.h>): Move strdup to the new section.
28812         Suggested by Simon Josefsson and Paolo Bonzini.
28813
28814 2008-09-21  Bruno Haible  <bruno@clisp.org>
28815
28816         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
28817         exponents in %e and %g results on 'long double'. Needed for mingw's
28818         improved *printf functions.
28819         * tests/test-vasprintf-posix.c (test_function): Likewise.
28820         * tests/test-snprintf-posix.h (test_function): Likewise.
28821         * tests/test-sprintf-posix.h (test_function): Likewise.
28822         Reported by Eric Blake.
28823
28824 2008-09-21  Bruno Haible  <bruno@clisp.org>
28825
28826         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
28827         * tests/test-sprintf-posix.h (test_function): Likewise.
28828
28829 2008-09-21  Bruno Haible  <bruno@clisp.org>
28830
28831         * modules/getpass (Depends-on): Add strdup-posix.
28832
28833         New module 'strdup-posix'.
28834         * modules/strdup-posix: New file.
28835         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
28836         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
28837         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28838         REPLACE_STRDUP.
28839         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
28840         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
28841         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28842         strdup-posix.
28843
28844         * modules/strdup (Depends-on): Remove malloc-posix.
28845
28846 2008-09-20  Bruno Haible  <bruno@clisp.org>
28847
28848         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
28849         Wildenhues.
28850
28851 2008-09-20  Bruno Haible  <bruno@clisp.org>
28852
28853         Ensure that wint_t gets defined on IRIX 5.3.
28854         * lib/wchar.in.h (wint_t): Define if not defined by the system.
28855         * lib/wctype.in.h (wint_t): Likewise.
28856         (__wctype_wint_t): Remove type.
28857         (isw*): Use wint_t instead of __wctype_wint_t.
28858         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
28859         * modules/wchar (Files): Add m4/wint_t.m4.
28860         (Makefile.am): Substitute HAVE_WINT_T.
28861         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
28862         * tests/test-wctype.c: Check that wint_t is defined.
28863         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
28864         * doc/posix-headers/wctype.texi: Likewise.
28865         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28866
28867 2008-09-18  Bruno Haible  <bruno@clisp.org>
28868
28869         * gnulib-tool (func_exit): Update comment.
28870
28871 2008-09-18  Simon Josefsson  <simon@josefsson.org>
28872
28873         * modules/getaddrinfo (Depends-on): Remove strdup, this module
28874         assumes strdup exists and does not depend on strdup to return
28875         ENOMEM on out of memory conditions.
28876
28877 2008-09-18  Bruno Haible  <bruno@clisp.org>
28878
28879         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
28880         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
28881         digits for the exponent.
28882
28883 2008-09-18  Jim Meyering  <meyering@redhat.com>
28884             Bruno Haible  <bruno@clisp.org>
28885
28886         * lib/vasnprintf.c (decimal_point_char): Define also if
28887         NEED_PRINTF_INFINITE_LONG_DOUBLE.
28888
28889 2008-09-16  Bruno Haible  <bruno@clisp.org>
28890         and Eric Blake  <ebb9@byu.net>
28891
28892         vasnprintf: support Irix 5.3
28893         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
28894         that mishandle long double infinity.
28895         Reported by Tom G. Christensen.
28896
28897 2008-09-16  Bruno Haible  <bruno@clisp.org>
28898
28899         * doc/glibc-functions/scandir.texi: Mention the function is missing on
28900         Solaris 9.
28901         * doc/glibc-functions/alphasort.texi: Likewise.
28902         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
28903
28904 2008-09-16  Jim Meyering  <meyering@redhat.com>
28905
28906         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
28907         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
28908         a umask modification leak out of a subshell.  Otherwise, the
28909         opensolaris /bin/sh would be accepted and thus cause unwarranted
28910         failures in the coreutils test suite.
28911
28912 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
28913
28914         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
28915         to succeed.
28916
28917 2008-09-16  Jim Meyering  <meyering@redhat.com>
28918
28919         avoid spurious test failure when library is built without ACL support
28920         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
28921         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
28922         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
28923         * tests/test-copy-acl.sh: Likewise.
28924
28925 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28926
28927         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
28928         based on character occurrence counts.
28929
28930 2008-09-15  Eric Blake  <ebb9@byu.net>
28931
28932         tests: avoid some compiler warnings
28933         * tests/test-memchr.c (main): Pass NULL indirectly.
28934         * tests/test-closein.c (main): Avoid unused variable.
28935
28936 2008-09-15  Bruno Haible  <bruno@clisp.org>
28937
28938         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
28939         are missing on OpenBSD 4.0 individually.
28940         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28941
28942 2008-09-15  Bruno Haible  <bruno@clisp.org>
28943
28944         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
28945         * doc/posix-functions/strerror.texi: Mention also Cygwin.
28946         * doc/posix-functions/perror.texi: Likewise.
28947         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
28948         is missing.
28949         Reported by Eric Blake.
28950
28951         * lib/errno.in.h: Use replacement values >= 2000.
28952         Reported by Eric Blake.
28953
28954 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28955
28956         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
28957         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
28958         limit.
28959         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
28960         compareseq was aborted.
28961
28962 2008-09-14  Bruno Haible  <bruno@clisp.org>
28963
28964         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
28965         yvec_edit_count.
28966         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
28967         (fstrcmp_bounded): Simplify result computation accordingly.
28968
28969 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28970
28971         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
28972         (fstrcmp): Define in terms of fstrcmp_bounded.
28973         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
28974         lower_bound argument.
28975         Return quickly if the result is certainly < lower_bound.
28976         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
28977
28978 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28979
28980         * lib/diffseq.h (EARLY_ABORT): New macro.
28981         (compareseq): Change return type to bool. Return true when EARLY_ABORT
28982         evaluates to true.
28983
28984 2008-09-14  Bruno Haible  <bruno@clisp.org>
28985
28986         * modules/perror-tests: New file.
28987         * tests/test-perror.sh: New file.
28988         * tests/test-perror.c: New file.
28989
28990         New module 'perror'.
28991         * lib/stdio.in.h (perror): New declaration.
28992         * lib/perror.c: New file.
28993         * m4/perror.m4: New file.
28994         * modules/perror: New file.
28995         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
28996         * doc/posix-functions/perror.texi: Mention the perror module.
28997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
28998         REPLACE_PERROR.
28999         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
29000         REPLACE_PERROR.
29001
29002 2008-09-14  Bruno Haible  <bruno@clisp.org>
29003
29004         * modules/stdio (Makefile.am): Reorder to match the order in
29005         lib/stdio.in.h.
29006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29007
29008 2008-09-13  Bruno Haible  <bruno@clisp.org>
29009
29010         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
29011
29012 2008-09-13  Bruno Haible  <bruno@clisp.org>
29013
29014         Extend strerror to cover the added errno values.
29015         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
29016         (rpl_strerror): Provide error messages for the added errno values and
29017         for the WSA* values.
29018         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
29019         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
29020         strerror.
29021         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
29022         * modules/strerror (Depends-on): Add errno.
29023         * doc/posix-functions/strerror.texi: Document the change.
29024         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
29025         and EOVERFLOW.
29026
29027 2008-09-13  Bruno Haible  <bruno@clisp.org>
29028
29029         * modules/EOVERFLOW: Remove file.
29030         * m4/eoverflow.m4: Remove file.
29031         * modules/EOVERFLOW-tests: Remove file.
29032         * tests/test-EOVERFLOW.c: Remove file.
29033         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
29034         * modules/ftell (Depends-on): Likewise.
29035         * modules/getdelim (Depends-on): Likewise.
29036         * modules/getugroups (Depends-on): Likewise.
29037         * modules/poll (Depends-on): Likewise.
29038         * modules/snprintf (Depends-on): Likewise.
29039         * modules/sprintf-posix (Depends-on): Likewise.
29040         * modules/vasnprintf (Depends-on): Likewise.
29041         * modules/vasprintf (Depends-on): Likewise.
29042         * modules/vfprintf-posix (Depends-on): Likewise.
29043         * modules/vsnprintf (Depends-on): Likewise.
29044         * modules/vsprintf-posix (Depends-on): Likewise.
29045         * modules/xvasprintf (Depends-on): Likewise.
29046         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29047         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
29048         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
29049         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
29050         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29051         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
29052         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
29053         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
29054         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29055         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
29056         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
29057         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
29058         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29059         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
29060         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
29061         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
29062         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29063         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
29064         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
29065         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
29066         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29067         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
29068         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
29069         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
29070         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
29071         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29072         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
29073         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
29074         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
29075         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
29076         * MODULES.html.sh: Remove EOVERFLOW.
29077         * NEWS: Mention the change.
29078
29079 2008-09-13  Bruno Haible  <bruno@clisp.org>
29080
29081         * modules/errno-tests: New file.
29082         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
29083
29084         * lib/errno.in.h: New file.
29085         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
29086         * modules/errno: New file.
29087         * doc/posix-headers/errno.texi: Update documentation.
29088         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
29089
29090 2008-09-13  Bruno Haible  <bruno@clisp.org>
29091
29092         * tests/test-poll.c: Use #if for native Windows, rather than testing
29093         __MSVCRT__.
29094
29095 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29096             Bruno Haible  <bruno@clisp.org>
29097
29098         * lib/glob.c: Don't include <pwd.h> on native Windows.
29099         (WINDOWS32): New macro.
29100         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
29101
29102 2008-09-13  Bruno Haible  <bruno@clisp.org>
29103
29104         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
29105         (ETIMEDOUT): Remove macro.
29106         (glthread_cond_timedwait_multithreaded): New declaration.
29107         (glthread_cond_timedwait): Use it.
29108         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
29109         (glthread_cond_timedwait_multithreaded): New function.
29110
29111 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29112
29113         * modules/poll-tests: Do not check for io.h.
29114         * tests/test-poll.c: Check for __MSVCRT__ instead.
29115
29116 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29117
29118         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
29119         * modules/poll-tests: Add inet_pton, stdbool, sockets.
29120         * tests/test-poll.c: Use them.  Use _pipe on Windows.
29121
29122 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29123
29124         * modules/poll-tests: New.
29125         * tests/test-poll.c: New.
29126
29127 2008-09-12  Eric Blake  <ebb9@byu.net>
29128
29129         frexp: test for NetBSD failure on -0.0
29130         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
29131         not all, bugs from NetBSD 3.0 have been fixed.
29132         * doc/posix-functions/frexp.texi (frexp): Document bug.
29133         Reported by Thomas Klausner.
29134
29135         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
29136         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
29137         literal -0.0.
29138         Reported by Jonathan C. Patschke <jp@centtech.com>.
29139
29140 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29141
29142         * lib/glthread/cond.h: Use dummy implementation also if
29143         USE_WIN32_THREADS.
29144
29145 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29146
29147         * modules/fnmatch-posix (License): Change to LGPLv2+.
29148         * modules/fnmatch-gnu (License): Likewise.
29149
29150 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29151
29152         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
29153
29154 2008-09-11  Jim Meyering  <meyering@redhat.com>
29155
29156         * users.txt: Add gtk-vnc.
29157
29158 2008-09-08  Simon Josefsson  <simon@josefsson.org>
29159
29160         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
29161         rotate amounts.
29162
29163         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
29164         required for 16-bit and 8-bit rotates.
29165         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
29166         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
29167         UINT8_MAX instead of hard-coded constants.
29168         Suggested by Paul Eggert.
29169
29170 2008-09-07  Bruno Haible  <bruno@clisp.org>
29171
29172         * tests/test-striconveh.c (main): Check behaviour when converting from
29173         UTF-7.
29174
29175         Make striconveh work better with stateful encodings.
29176         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
29177         that iconv does not increment the inptr when returning -1/EINVAL.
29178
29179 2008-09-07  Bruno Haible  <bruno@clisp.org>
29180
29181         * build-aux/config.rpath: Update according to libtool-2.2.6.
29182         * build-aux/config.libpath: Likewise.
29183
29184 2008-09-06  Bruno Haible  <bruno@clisp.org>
29185
29186         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
29187         * lib/freadptr.c (freadptr): Likewise.
29188         * lib/freadseek.c (freadptrinc): Likewise.
29189         Reported by Simon Josefsson.
29190
29191 2008-09-06  Bruno Haible  <bruno@clisp.org>
29192
29193         * modules/freadptr (License): Change to LGPLv2+.
29194         * modules/freadseek (License): Likewise.
29195         Suggested by Eric Blake.
29196
29197         * modules/memchr2 (License): Change to LGPLv2+.
29198         Approved by Eric Blake.
29199
29200 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29201             Bruno Haible  <bruno@clisp.org>
29202
29203         Make gnulib-tool work with native 'sed' on AIX.
29204         * gnulib-tool (sed_noop): New variable.
29205         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
29206         func_add_or_update, func_create_testdir): Use it to initialize sed
29207         script variables.
29208         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29209
29210 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
29211             Bruno Haible  <bruno@clisp.org>
29212
29213         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
29214         also works after #include directives.
29215
29216 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
29217
29218         getdate.y: reject an out-of-range timezone value
29219         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
29220         the range [-24...+24].  When specified with only one or two digits,
29221         * tests/test-getdate.c: Tests for the fix.
29222         * doc/getdate.texi: Document this change.
29223
29224 2008-09-03  Bruno Haible  <bruno@clisp.org>
29225
29226         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
29227
29228 2008-09-02  Simon Josefsson  <simon@josefsson.org>
29229
29230         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
29231         <bruce.korb@gmail.com> with ideas from Ben Pfaff
29232         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
29233         Blake <ebb9@byu.net>.
29234
29235         * tests/test-bitrotate.c: Add more test vectors.
29236
29237 2008-09-02  Eric Blake  <ebb9@byu.net>
29238
29239         vasnprintf-posix: handle large precision via %.*d
29240         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
29241         when handling it ourselves.
29242         * tests/test-vasnprintf-posix.c (test_function): Add test.
29243         * tests/test-snprintf-posix.h (test_function): Likewise.
29244         * tests/test-sprintf-posix.h (test_function): Likewise.
29245         * tests/test-vasprintf-posix.c (test_function): Likewise.
29246         Reported by Alain Guibert.
29247
29248 2008-09-01  Eric Blake  <ebb9@byu.net>
29249
29250         c-stack: make configure-time check more robust
29251         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
29252         successful sigaction call.
29253         Reported by Tom G. Christensen.
29254
29255 2008-09-01  Bruno Haible  <bruno@clisp.org>
29256
29257         New module 'findprog-lgpl'.
29258         * modules/findprog-lgpl: New file.
29259         * lib/findprog-lgpl.c: New file.
29260         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
29261         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
29262         to decide whether to use strdup or xstrdup, concatenated_filename or
29263         xconcatenated_filename.
29264
29265 2008-09-01  Bruno Haible  <bruno@clisp.org>
29266
29267         Split module 'concat-filename' into 'concat-filename' (LGPL) and
29268         'xconcat-filename' (GPL).
29269         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
29270         (License): Change to LGPLv2+.
29271         * modules/xconcat-filename: New file.
29272         * lib/concat-filename.h (concatenated_filename): Change specification.
29273         (xconcatenated_filename): New declaration.
29274         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
29275         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
29276         memory situations.
29277         * lib/xconcat-filename.c: New file.
29278         * NEWS: Mention the change.
29279         * lib/findprog.c: Include concat-filename.h, not filename.h.
29280         (find_in_path): Use xconcatenated_filename instead of
29281         concatenated_filename.
29282         * lib/javacomp.c: Include concat-filename.h, not filename.h.
29283         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
29284         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
29285         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
29286         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
29287         instead of concatenated_filename.
29288         * lib/javaexec.c: Include concat-filename.h, not filename.h.
29289         (execute_java_class): Use xconcatenated_filename instead of
29290         concatenated_filename.
29291         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
29292         * modules/javacomp (Depends-on): Likewise.
29293         * modules/javaexec (Depends-on): Likewise.
29294
29295 2008-09-01  Bruno Haible  <bruno@clisp.org>
29296
29297         Split module 'filename' into 'filename' and 'concat-filename'.
29298         * modules/filename: Keep only lib/filename.h.
29299         (License): Change to LGPLv2+.
29300         * modules/concat-filename: New file, extracted from modules/filename.
29301         * lib/filename.h (concatenated_filename): Remove declaration.
29302         * lib/concat-filename.h: New file, extracted from lib/filename.h.
29303         * lib/concat-filename.c: Include concat-filename.h.
29304         * NEWS: Mention the change.
29305
29306 2008-09-01  Simon Josefsson  <simon@josefsson.org>
29307
29308         * lib/bitrotate.h (rotl8, rotr8): Add.
29309
29310         * modules/bitrotate (configure.ac): Need
29311         AC_REQUIRE([AC_C_INLINE]).
29312         (Description): Mention stdint.h.  Reported by Bruno Haible
29313         <bruno@clisp.org>.
29314
29315         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
29316         Paolo Bonzini <bonzini@gnu.org>.
29317
29318 2008-08-31  Bruno Haible  <bruno@clisp.org>
29319
29320         Assume Solaris specific bi-arch conventions on Solaris systems.
29321         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
29322         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
29323         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
29324         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
29325         like acl_libdirstem.
29326         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
29327         acl_libdirstem.
29328         * NEWS: Mention the change.
29329         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
29330
29331 2008-08-31  Jim Meyering  <meyering@redhat.com>
29332
29333         * lib/strftime.h: Add comments describing the two added arguments.
29334
29335         remove duplicate #include directives
29336         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
29337         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
29338
29339 2008-08-31  Bruno Haible  <bruno@clisp.org>
29340
29341         New module 'sigpipe-die'.
29342         * modules/sigpipe-die: New file.
29343         * lib/sigpipe-die.h: New file.
29344         * lib/sigpipe-die.c: New file.
29345         * MODULES.html.sh (Signal handling): Add sigpipe-die.
29346
29347 2008-08-31  Bruno Haible  <bruno@clisp.org>
29348
29349         Don't override previously installed signal handlers.
29350         * lib/fatal-signal.c (saved_sigactions): New variable.
29351         (uninstall_handlers): Reset the signal to the saved handler, not
29352         to SIG_DFL (except when ignored).
29353         (install_handlers): Save the previous handlers.
29354
29355 2008-08-30  Bruno Haible  <bruno@clisp.org>
29356
29357         * gnulib-tool (func_reset_sigpipe): New function.
29358         (func_get_automake_snippet, func_modules_transitive_closure,
29359         func_import): Invoke it before a join command that reads from stdin,
29360         to avoid "echo: write error: Broken pipe" error messages on stderr.
29361         Reported by Sam Steingold <sds@gnu.org>.
29362
29363 2008-08-30  Bruno Haible  <bruno@clisp.org>
29364
29365         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
29366         Code copied from m4/open.m4.
29367         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
29368         access and the filename ends in a slash. Code copied from lib/open.c.
29369         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
29370         * tests/test-fopen.c (main): Check against bug with trailing slash.
29371
29372 2008-08-29  Bruno Haible  <bruno@clisp.org>
29373
29374         Avoid some "gcc -pedantic" warnings.
29375         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
29376         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
29377         * lib/dirent.in.h: Likewise.
29378         * lib/fcntl.in.h: Likewise.
29379         * lib/float.in.h: Likewise.
29380         * lib/iconv.in.h: Likewise.
29381         * lib/inttypes.in.h: Likewise.
29382         * lib/locale.in.h: Likewise.
29383         * lib/math.in.h: Likewise.
29384         * lib/netinet_in.in.h: Likewise.
29385         * lib/search.in.h: Likewise.
29386         * lib/signal.in.h: Likewise.
29387         * lib/stdarg.in.h: Likewise.
29388         * lib/stdint.in.h: Likewise.
29389         * lib/stdio.in.h: Likewise.
29390         * lib/stdlib.in.h: Likewise.
29391         * lib/string.in.h: Likewise.
29392         * lib/strings.in.h: Likewise.
29393         * lib/sys_select.in.h: Likewise.
29394         * lib/sys_socket.in.h: Likewise.
29395         * lib/sys_stat.in.h: Likewise.
29396         * lib/sys_time.in.h: Likewise.
29397         * lib/sysexits.in.h: Likewise.
29398         * lib/time.in.h: Likewise.
29399         * lib/unistd.in.h: Likewise.
29400         * lib/wchar.in.h: Likewise.
29401         * lib/wctype.in.h: Likewise.
29402         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
29403         * modules/fchdir (Makefile.am): Likewise.
29404         * modules/fcntl (Makefile.am): Likewise.
29405         * modules/float (Makefile.am): Likewise.
29406         * modules/iconv_open (Makefile.am): Likewise.
29407         * modules/inttypes (Makefile.am): Likewise.
29408         * modules/locale (Makefile.am): Likewise.
29409         * modules/math (Makefile.am): Likewise.
29410         * modules/netinet_in (Makefile.am): Likewise.
29411         * modules/search (Makefile.am): Likewise.
29412         * modules/signal (Makefile.am): Likewise.
29413         * modules/stdarg (Makefile.am): Likewise.
29414         * modules/stdint (Makefile.am): Likewise.
29415         * modules/stdio (Makefile.am): Likewise.
29416         * modules/stdlib (Makefile.am): Likewise.
29417         * modules/string (Makefile.am): Likewise.
29418         * modules/strings (Makefile.am): Likewise.
29419         * modules/sys_select (Makefile.am): Likewise.
29420         * modules/sys_socket (Makefile.am): Likewise.
29421         * modules/sys_stat (Makefile.am): Likewise.
29422         * modules/sys_time (Makefile.am): Likewise.
29423         * modules/sysexits (Makefile.am): Likewise.
29424         * modules/time (Makefile.am): Likewise.
29425         * modules/unistd (Makefile.am): Likewise.
29426         * modules/wchar (Makefile.am): Likewise.
29427         * modules/wctype (Makefile.am): Likewise.
29428         Reported by Reuben Thomas <rrt@sc3d.org>.
29429
29430 2008-08-29  Bruno Haible  <bruno@clisp.org>
29431
29432         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
29433         any more.
29434
29435 2008-08-29  Simon Josefsson  <simon@josefsson.org>
29436
29437         * MODULES.html.sh (Misc): Add bitrotate.
29438
29439         * modules/bitrotate: New file.
29440
29441         * lib/bitrotate.h: New file.
29442
29443         * modules/bitrotate-tests: New file.
29444
29445         * tests/test-bitrotate.c: New file.
29446
29447         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
29448         on the bitrotate module.
29449
29450         * lib/arctwo.c: Use new bitrotate module.
29451
29452 2008-08-29  Jim Meyering  <meyering@redhat.com>
29453
29454         bootstrap: merge changes from coreutils
29455         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
29456         of copied files.  Remove a kludge, now that this is fixed.
29457         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
29458         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
29459         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
29460
29461 2008-08-29  Bruno Haible  <bruno@clisp.org>
29462
29463         * MODULES.html.sh: Remove --cvs-urls option.
29464
29465 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
29466
29467         maint.mk: adjust to file name change
29468         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
29469
29470 2008-08-28  Jim Meyering  <meyering@redhat.com>
29471
29472         * modules/getndelim2 (License): Relicense to LGPLv2+.
29473         Approved by Richard Stallman for the version of 1995, and by
29474         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
29475
29476 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
29477
29478         * lib/getdelim.c (flockfile, funlockfile): Make all of them
29479         dummy if one is not available.  Do not touch them if
29480         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
29481         (getc_maybe_unlocked): New.
29482         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
29483
29484 2008-08-26  Eric Blake  <ebb9@byu.net>
29485
29486         doc/INSTALL: resync from autoconf
29487         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
29488         (INSTALL_PRELUDE): Delete; this is done more efficiently by
29489         moving...
29490         * install.texi [!autoconf]: ...here.  Resync from autoconf.
29491         * INSTALL: Regenerate.
29492         * INSTALL.ISO: New file.
29493         * INSTALL.UTF-8: Likewise.
29494
29495 2008-08-26  Jim Meyering  <meyering@redhat.com>
29496
29497         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
29498         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
29499         these definitions conditional, so that they may be overridden, too.
29500
29501 2008-08-26  Bruno Haible  <bruno@clisp.org>
29502
29503         Generate INSTALL file variants with prettier quotes.
29504         * doc/Makefile (INSTALL_PRELUDE): New macro.
29505         (INSTALL): Use it.
29506         (INSTALL.ISO, INSTALL.UTF-8): New rules.
29507
29508 2008-08-26  Bruno Haible  <bruno@clisp.org>
29509
29510         Run makeinfo in an English locale.
29511         * doc/Makefile (MAKEINFO): New variable.
29512
29513 2008-08-26  Bruno Haible  <bruno@clisp.org>
29514
29515         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
29516         Suggested by Eric Blake.
29517
29518 2008-08-25  Bruno Haible  <bruno@clisp.org>
29519
29520         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
29521
29522 2008-08-25  Eric Blake  <ebb9@byu.net>
29523
29524         c-stack: test that stack overflow can be caught
29525         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
29526         that platform allows handling stack overflow; at least OS/2 EMX
29527         has sigaltstack, but crashes before transferring control to
29528         handler on stack overflow.
29529         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
29530         check for HAVE_STACK_OVERFLOW_HANDLING.
29531         Reported by Elbert Pol.
29532
29533 2008-08-25  Bruno Haible  <bruno@clisp.org>
29534
29535         * doc/posix-functions/strftime.texi: Fix description of strftime
29536         module.
29537
29538 2008-08-24  Bruno Haible  <bruno@clisp.org>
29539
29540         * tests/uniwidth/test-uc_width2.c: New file.
29541         * tests/uniwidth/test-uc_width2.sh: New file.
29542         * modules/uniwidth/width-tests (Files): Add the new files.
29543         (TESTS): Add uniwidth/test-uc_width2.sh.
29544         (TESTS_ENVIRONMENT): New variable.
29545         (check_PROGRAMS): Add test-uc_width2.
29546         (test_uc_width2_SOURCES): New variable.
29547
29548         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
29549         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
29550         not 0x00AB.
29551         Reported by Alexander V. Lukyanov <lav@netis.ru>.
29552
29553 2008-08-22  Eric Blake  <ebb9@byu.net>
29554
29555         test-lock, test-tls: mention why a test is skipped
29556         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
29557         skipped.
29558         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
29559
29560         count-one-bits: relax license
29561         * modules/count-one-bits (License): Relicense to LGPLv2+.
29562         Suggested by Ludovic Courtès, approved by Ben Pfaff.
29563
29564 2008-08-22  Andreas Schwab  <schwab@suse.de>
29565
29566         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29567         Remove spurious space in assignment.
29568
29569 2008-08-21  Simon Josefsson  <simon@josefsson.org>
29570
29571         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
29572         Paul Eggert <eggert@CS.UCLA.EDU>.
29573
29574 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
29575
29576         * modules/gettext: Add m4/threadlib.m4.
29577
29578 2008-08-19  Eric Blake  <ebb9@byu.net>
29579
29580         test-c-stack: fix compilation failure on FreeBSD 5.0
29581         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
29582         headers before <sys/resource.h>.
29583         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
29584         the bug.
29585         Reported by Nelson H. F. Beebe.
29586
29587         strverscmp: migrate from "strverscmp.h" to <string.h>
29588         * modules/string (Makefile.am): Add new hooks.
29589         * modules/strverscmp (Files): Remove strverscmp.h.
29590         (Depends-on): Add string.
29591         (configure.ac): Add indicator.
29592         (Include): Mention new header.
29593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
29594         defaults.
29595         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
29596         results.
29597         * lib/strverscmp.h: Delete.
29598         * lib/string.in.h (strverscmp): Provide declaration, when needed.
29599         * tests/test-strverscmp.c (includes): Adjust client.
29600         * lib/check-version.c (includes): Likewise.
29601         * NEWS: Document the change.
29602
29603         strverscmp: add unit test
29604         * modules/strverscmp-tests: New file.
29605         * tests/test-strverscmp.c: Likewise.
29606
29607 2008-08-19  Simon Josefsson  <simon@josefsson.org>
29608
29609         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
29610         regarding Windows crypto stuff, from Mono.
29611
29612 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
29613
29614         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
29615         if present, for intel RND.  Return error on failures.
29616
29617 2008-08-18  Ben Pfaff  <blp@gnu.org>
29618
29619         gitlog-to-changelog: give better diagnostic for failed pipe-open
29620         * build-aux/gitlog-to-changelog: Improve error message: suggest
29621         that the version of Git may be too old.
29622
29623 2008-08-18  Simon Josefsson  <simon@josefsson.org>
29624
29625         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
29626         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
29627
29628 2008-08-18  Bruno Haible  <bruno@clisp.org>
29629
29630         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
29631         pthread_in_use().
29632
29633 2008-08-18  Bruno Haible  <bruno@clisp.org>
29634
29635         * lib/glthread/threadlib.c: Include <pthread.h>.
29636
29637 2008-08-18  Bruno Haible  <bruno@clisp.org>
29638
29639         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
29640         glthread_recursive_lock_* macros.
29641         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
29642         Fix syntax error.
29643
29644 2008-08-18  Bruno Haible  <bruno@clisp.org>
29645
29646         * lib/glthread/thread.c: Avoid forcing a context switch right after
29647         thread creation.
29648
29649 2008-08-17  Bruno Haible  <bruno@clisp.org>
29650
29651         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
29652         * lib/glthread/thread.h: Provide Win32 specific implementation.
29653         * modules/thread (Files): Add lib/glthread/thread.c.
29654         (Depends-on): Add lock.
29655         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
29656
29657 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29658
29659         New module 'yield'.
29660         * modules/yield: New file.
29661         * lib/glthread/yield.h: New file.
29662         * m4/yield.m4: New file.
29663         * MODULES.html.sh (Multithreading): Add yield.
29664
29665 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29666
29667         New module 'thread'.
29668         * modules/thread: New file.
29669         * lib/glthread/thread.h: New file.
29670         * m4/thread.m4: New file.
29671         * MODULES.html.sh (Multithreading): Add thread.
29672
29673 2008-08-17  Bruno Haible  <bruno@clisp.org>
29674
29675         * lib/glthread/lock.h: Include <stdlib.h> always.
29676         * lib/glthread/tls.h: Likewise.
29677         * lib/glthread/cond.h: Likewise.
29678
29679 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29680
29681         New module 'cond'.
29682         * modules/cond: New file.
29683         * lib/glthread/cond.h: New file.
29684         * lib/glthread/cond.c: New file.
29685         * m4/cond.m4: New file.
29686         * MODULES.html.sh (Multithreading): Add cond.
29687
29688 2008-08-16  Eric Blake  <ebb9@byu.net>
29689
29690         c-stack: fix regression on Irix 5.3 from 2008-06-21
29691         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
29692         sa_sigaction...
29693         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
29694         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
29695         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
29696         * modules/signal (Makefile.am): Use the value.
29697         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
29698         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
29699         * doc/posix-headers/signal.texi (signal.h): Document this
29700         portability issue.
29701         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
29702         Reported by Tom G. Christensen.
29703
29704 2008-08-17  Bruno Haible  <bruno@clisp.org>
29705
29706         New module 'threadlib'.
29707         * modules/threadlib: New file.
29708         * lib/glthread/threadlib.c: New file, extracted from
29709         lib/glthread/lock.c.
29710         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
29711         functions.
29712         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
29713         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
29714         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
29715         macros.
29716         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
29717         (gl_DISABLE_THREADS): Remove macro.
29718         * modules/lock (Files): Remove build-aux/config.rpath.
29719         (Depends-on): Remove havelib. Add threadlib.
29720         (configure.ac-early): Remove section.
29721         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
29722         * modules/tls (Depends-on): Remove lock. Add threadlib.
29723         (Link): New section, copied from threadlib.
29724         * MODULES.html.sh (Multithreading): Add threadlib.
29725
29726 2008-08-14  Bruno Haible  <bruno@clisp.org>
29727
29728         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
29729         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
29730         glthread_rwlock_unlock, glthread_rwlock_destroy,
29731         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
29732         glthread_recursive_lock_destroy): Define as macros always.
29733         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
29734         glthread_lock_lock.
29735         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
29736         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
29737         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
29738         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
29739         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
29740         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
29741         (glthread_recursive_lock_lock_func): Renamed from
29742         glthread_recursive_lock_lock.
29743         (glthread_recursive_lock_unlock_func): Renamed from
29744         glthread_recursive_lock_unlock.
29745         (glthread_recursive_lock_destroy_func): Renamed from
29746         glthread_recursive_lock_destroy.
29747
29748 2008-08-14  Bruno Haible  <bruno@clisp.org>
29749
29750         * lib/glthread/lock.h: Renamed from lib/lock.h.
29751         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
29752         * lib/glthread/tls.h: Renamed from lib/tls.h.
29753         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
29754         * lib/fstrcmp.c: Update includes.
29755         * lib/strsignal.c: Update includes.
29756         * modules/lock (Files, Makefile.am): Update.
29757         (Include): Change to "glthread/lock.h".
29758         * modules/tls (Files, Makefile.am): Update.
29759         (Include): Change to "glthread/tls.h".
29760         * tests/test-lock.c: Update includes.
29761         * tests/test-tls.c: Update includes.
29762         * NEWS: Mention the renamed header files.
29763
29764 2008-08-11  Jim Meyering  <meyering@redhat.com>
29765
29766         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
29767
29768 2008-08-11  Eric Blake  <ebb9@byu.net>
29769
29770         test-c-stack: avoid C99-ism
29771         * tests/test-c-stack.c (main): Fix whitespace, move declaration
29772         before statement.
29773         Reported by Alain Guibert.
29774
29775 2008-08-10  Jim Meyering  <meyering@redhat.com>
29776
29777         ensure that return value of uinttostr et al are not ignored
29778         * lib/inttostr.h (__GNUC_PREREQ): Define.
29779         (__attribute_warn_unused_result__): Define.
29780         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
29781
29782 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
29783
29784         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
29785         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
29786
29787 2008-08-07  Jim Meyering  <meyering@redhat.com>
29788
29789         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
29790
29791         * modules/mkstemp (License): Relicense under LGPLv2+.
29792         * modules/tempname (License): Likewise.
29793
29794 2008-08-06  Bruno Haible  <bruno@clisp.org>
29795
29796         * lib/poll.c (poll): Further micro-optimization.
29797
29798 2008-08-06  Jim Meyering  <meyering@redhat.com>
29799
29800         inet_pton.c: use locale-independent tolower
29801         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
29802         (inet_pton6): Use c_tolower rather than tolower.
29803         * modules/inet_pton (Depends-on): Add c-ctype.
29804
29805 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
29806
29807         * lib/poll.c (poll): Avoid division when timeout is 0, cache
29808         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
29809
29810 2008-08-06  Jim Meyering  <meyering@redhat.com>
29811
29812         * modules/inet_pton (License): Relicense under LGPLv2+.
29813
29814 2008-08-03  Bruno Haible  <bruno@clisp.org>
29815
29816         Additional non-aborting API for lock and tls.
29817         * lib/lock.h: Include <errno.h>.
29818         (glthread_lock_init): New macro/function.
29819         (gl_lock_init): Define as wrapper around glthread_lock_init.
29820         (glthread_lock_lock): New macro/function.
29821         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
29822         (glthread_lock_unlock): New macro/function.
29823         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
29824         (glthread_lock_destroy): New macro/function.
29825         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
29826         (glthread_rwlock_init): New macro/function.
29827         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
29828         (glthread_rwlock_rdlock): New macro/function.
29829         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
29830         (glthread_rwlock_wrlock): New macro/function.
29831         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
29832         (glthread_rwlock_unlock): New macro/function.
29833         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
29834         (glthread_rwlock_destroy): New macro/function.
29835         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
29836         (glthread_recursive_lock_init): New macro/function.
29837         (gl_recursive_lock_init): Define as wrapper around
29838         glthread_recursive_lock_init.
29839         (glthread_recursive_lock_lock): New macro/function.
29840         (gl_recursive_lock_lock): Define as wrapper around
29841         glthread_recursive_lock_lock.
29842         (glthread_recursive_lock_unlock): New macro/function.
29843         (gl_recursive_lock_unlock): Define as wrapper around
29844         glthread_recursive_lock_unlock.
29845         (glthread_recursive_lock_destroy): New macro/function.
29846         (gl_recursive_lock_destroy): Define as wrapper around
29847         glthread_recursive_lock_destroy.
29848         (glthread_once): New macro/function.
29849         (gl_once): Define as wrapper around glthread_once.
29850         Update function declarations.
29851         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
29852         glthread_rwlock_init. Return error code.
29853         (glthread_rwlock_rdlock_multithreaded): Renamed from
29854         glthread_rwlock_rdlock. Return error code.
29855         (glthread_rwlock_wrlock_multithreaded): Renamed from
29856         glthread_rwlock_wrlock. Return error code.
29857         (glthread_rwlock_unlock_multithreaded): Renamed from
29858         glthread_rwlock_unlock. Return error code.
29859         (glthread_rwlock_destroy_multithreaded): Renamed from
29860         glthread_rwlock_destroy. Return error code.
29861         (glthread_recursive_lock_init_multithreaded): Renamed from
29862         glthread_recursive_lock_init. Return error code.
29863         (glthread_recursive_lock_lock_multithreaded): Renamed from
29864         glthread_recursive_lock_lock. Return error code.
29865         (glthread_recursive_lock_unlock_multithreaded): Renamed from
29866         glthread_recursive_lock_unlock. Return error code.
29867         (glthread_recursive_lock_destroy_multithreaded): Renamed from
29868         glthread_recursive_lock_destroy. Return error code.
29869         (glthread_once_call): Make static.
29870         (glthread_once_multithreaded): Renamed from glthread_once.
29871         * lib/tls.h: Include <errno.h>.
29872         (glthread_tls_key_init): New macro/function.
29873         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
29874         (glthread_tls_set): New macro/function.
29875         (gl_tls_set): Define as wrapper around glthread_tls_set.
29876         (glthread_tls_key_destroy): New macro/function.
29877         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
29878         Update function declarations.
29879         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
29880         glthread_tls_get.
29881         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29882
29883 2008-08-04  Eric Blake  <ebb9@byu.net>
29884
29885         gnumakefile: use space, not TAB, outside of targets
29886         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
29887
29888 2008-08-02  Jim Meyering  <meyering@redhat.com>
29889
29890         getdate.y: avoid locale-dependent date parsing failure
29891         In Turkish locales, getdate would fail to recognize keywords
29892         containing a lowercase "i".  The solution is not to rely on
29893         locale-sensitive case-conversion.
29894         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
29895         (lookup_word): Use c_toupper in place of toupper.
29896         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
29897         Reported by Vefa Bicakci <bicave@superonline.com> in
29898         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
29899         * modules/getdate (Depends-on): Add c-ctype.
29900
29901 2008-08-02  Bruno Haible  <bruno@clisp.org>
29902
29903         * gnulib-tool (func_import): When updating or creating a .gitignore
29904         file, prepend each added line with a slash, and ignore leading slashes
29905         from the existing lines.
29906         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29907
29908 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29909
29910         Portability fix for GNU make 3.79.1.
29911         * top/GNUmakefile: Avoid 'else COND', which older GNU make
29912         versions do not understand.
29913
29914 2008-08-01  Bruno Haible  <bruno@clisp.org>
29915
29916         Work around bug of HP-UX 10.20 cc with -0.0 literal.
29917         * tests/test-isnanf.h (zero): New variable.
29918         (main): Avoid literal -0.0f.
29919         * tests/test-isnand.h (zero): New variable.
29920         (main): Avoid literal -0.0.
29921         * tests/test-isnanl.h (zero): New variable.
29922         (main): Avoid literal -0.0L.
29923         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
29924         (test_float, test_double, test_long_double): Avoid literals -0.0f,
29925         -0.0, -0.0L.
29926         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
29927         (test_signbitd): Avoid literal -0.0.
29928         (test_signbitl): Avoid literal -0.0L.
29929         * tests/test-ceilf1.c (zero): New variable.
29930         (main): Avoid literal -0.0f.
29931         * tests/test-ceill.c (zero): New variable.
29932         (main): Avoid literal -0.0L.
29933         * tests/test-floorf1.c (zero): New variable.
29934         (main): Avoid literal -0.0f.
29935         * tests/test-floorl.c (zero): New variable.
29936         (main): Avoid literal -0.0L.
29937         * tests/test-roundf1.c (zero): New variable.
29938         (main): Avoid literal -0.0f.
29939         * tests/test-round1.c (zero): New variable.
29940         (main): Avoid literal -0.0.
29941         * tests/test-roundl.c (zero): New variable.
29942         (main): Avoid literal -0.0L.
29943         * tests/test-truncf1.c (zero): New variable.
29944         (main): Avoid literal -0.0f.
29945         * tests/test-trunc1.c (zero): New variable.
29946         (main): Avoid literal -0.0.
29947         * tests/test-truncl.c (zero): New variable.
29948         (main): Avoid literal -0.0L.
29949         * tests/test-frexp.c (zero): New variable.
29950         (main): Avoid literal -0.0.
29951         * tests/test-frexpl.c (zero): New variable.
29952         (main): Avoid literal -0.0L.
29953         * tests/test-ldexpl.c (zero): New variable.
29954         (main): Avoid literal -0.0L.
29955         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29956         (zerod, zerol): New variables.
29957         (test_function): Avoid literals -0.0, -0.0L.
29958         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29959         (zerod, zerol): New variables.
29960         (test_function): Avoid literals -0.0, -0.0L.
29961         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29962         (zerod, zerol): New variables.
29963         (test_function): Avoid literals -0.0, -0.0L.
29964         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29965         (zerod, zerol): New variables.
29966         (test_function): Avoid literals -0.0, -0.0L.
29967         * tests/test-strtod.c (zero): New variable.
29968         (main): Avoid literal -0.0.
29969         Reported by Jonathan C. Patschke <jp@centtech.com>.
29970
29971 2008-07-31  Jim Meyering  <meyering@redhat.com>
29972
29973         sha256.h: correct definition of SHA224_DIGEST_SIZE
29974         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
29975         Reported by Paulie Pena IV <paulie4@gmail.com>.
29976         Define as 224 / 8, rather than as a literal.
29977         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
29978         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
29979         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
29980
29981 2008-07-31  Bruno Haible  <bruno@clisp.org>
29982
29983         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
29984         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
29985         Reported by Jonathan Patschke <jp@centtech.com>.
29986
29987 2008-07-31  Bruno Haible  <bruno@clisp.org>
29988
29989         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
29990         Reported by Paolo Bonzini <bonzini@gnu.org>.
29991
29992 2008-07-30  Eric Blake  <ebb9@byu.net>
29993
29994         test-strtod: allow compilation without -lm
29995         * tests/test-strtod.c (main): Avoid link dependence on fabs.
29996         Reported by Dennis Clarke <blastwave@gmail.com>.
29997
29998 2008-07-28  Jim Meyering  <meyering@redhat.com>
29999
30000         bootstrap: work also when there are no .po files in po/
30001         * build-aux/bootstrap (update_po_files): Complete the change
30002         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
30003
30004 2008-07-27  Jim Meyering  <meyering@redhat.com>
30005
30006         * users.txt: Add zile.
30007
30008 2008-07-26  Ben Pfaff  <blp@gnu.org>
30009
30010         Add missing dependencies on new m4/exponent[fdl].m4 files.
30011         * modules/isnanf-nolibm: Add m4/exponentf.m4.
30012         * modules/isnand-nolibm: Add m4/exponentd.m4.
30013         * modules/isnanl-nolibm: Add m4/exponentl.m4.
30014         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
30015         m4/isnan[fdl].m4, because the macros actually used moved.
30016         Reported by Jim Meyering.
30017
30018 2008-07-14  Ben Pfaff  <blp@gnu.org>
30019
30020         Add isinf module.
30021         * lib/isinf.c: New file.
30022         * lib/math.in.h: Define isinf macro if we have decided to replace
30023         it.
30024         * m4/isinf.m4: New file.
30025         * m4/math_h.m4: Initialize and substitute variables for isinf
30026         module.
30027         * modules/isinf: New file.
30028         * modules/isinf-tests: New file.
30029         * modules/math: Add substitutions for new module.
30030         * tests/test-isinf.c: New file.
30031         * doc/posix-functions/isinf.texi: Mention new module.
30032         * MODULES.html.sh: Mention new module.
30033
30034 2008-07-14  Ben Pfaff  <blp@gnu.org>
30035
30036         Factor out some macros for use by additional modules.
30037         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
30038         exponentf.m4.
30039         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
30040         exponentd.m4.
30041         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
30042         file exponentl.m4.
30043         * m4/exponentf.m4: New file.
30044         * m4/exponentd.m4: New file.
30045         * m4/exponentl.m4: New file.
30046         * modules/isnanf: Use new file m4/exponentf.m4.
30047         * modules/isnand: Use new file m4/exponentd.m4.
30048         * modules/isnanl: Use new file m4/exponentl.m4.
30049
30050 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
30051
30052         mktime.c: normalize tp->tm_isdst value to -1/0/1.
30053         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
30054         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
30055         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
30056
30057         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
30058         readlink on platforms without PATH_MAX.
30059
30060 2008-07-21  Eric Blake  <ebb9@byu.net>
30061
30062         Warn, not fail, on stale version.
30063         * top/GNUmakefile (_curr-ver): Tone down previous patch.
30064
30065         Don't allow installation with stale devel version number.
30066         * top/GNUmakefile (_is-install-target): New macro.
30067         (_curr-ver): Forbid installation with stale version number.
30068
30069 2008-07-20  Bruno Haible  <bruno@clisp.org>
30070
30071         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
30072         TESTS_ENVIRONMENT.
30073         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
30074
30075 2008-07-20  Bruno Haible  <bruno@clisp.org>
30076
30077         * lib/c-stack.h (c_stack_action): Add documentation.
30078         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
30079
30080 2008-07-20  Bruno Haible  <bruno@clisp.org>
30081
30082         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
30083         * modules/readlink (License): Likewise.
30084
30085 2008-07-17  Eric Blake  <ebb9@byu.net>
30086
30087         * modules/c-stack (Link): Fix typo.
30088
30089         Make c-stack use libsigsegv, when available.
30090         * modules/c-stack (Depends-on): Add libsigsegv.
30091         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
30092         needed.
30093         * lib/c-stack.c (SIGSTKSZ): Define fallback.
30094         (segv_handler, overflow_handler, c_stack_action)
30095         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
30096         implementation when libsigsegv is available, but only when using
30097         the library is necessary.
30098         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
30099         comment, explaining why XSI check fails on Linux.
30100         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
30101         * tests/test-c-stack2.sh: Tweak skip message.
30102         * NEWS: Document new link-time requirements.
30103
30104 2008-07-16  Eric Blake  <ebb9@byu.net>
30105
30106         c-stack: Expose false positives when not using libsigsegv.
30107         * modules/c-stack-tests (Files): Expand test.
30108         * tests/test-c-stack.c (main): Add means to conditionally trigger
30109         non-overflow SIGSEGV.
30110         * tests/test-c-stack2.sh: New file.
30111
30112 2008-07-14  Bruno Haible  <bruno@clisp.org>
30113
30114         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
30115         Reported by Eric Blake.
30116
30117 2008-07-14  Sam Steingold  <sds@gnu.org>
30118             Bruno Haible  <bruno@clisp.org>
30119
30120         New module libsigsegv.
30121         * modules/libsigsegv: New file.
30122         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
30123         modifications.
30124         * MODULES.html.sh (Signal handling): New section.
30125
30126 2008-07-14  Bruno Haible  <bruno@clisp.org>
30127
30128         * modules/unictype/ctype-* (Description): Add the word "function".
30129         Improves the resulting doc in MODULES.html.
30130
30131 2008-07-12  Ben Pfaff  <blp@gnu.org>
30132
30133         Add longlong module.
30134         * modules/longlong: New file.
30135
30136 2008-07-12  Bruno Haible  <bruno@clisp.org>
30137
30138         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
30139         to empty.
30140
30141 2008-07-10  Ben Pfaff  <blp@gnu.org>
30142
30143         Add isnan module.
30144         * doc/posix-functions/isnan.texi: Mention new module.
30145         * lib/math.in.h: Define isnan macro if we have decided to replace
30146         it.
30147         * m4/isnan.m4: New file.
30148         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
30149         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
30150         also.
30151         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
30152         redundancy.
30153         * m4/math_h.m4: Initialize and substitute variables for isnan
30154         module.
30155         * modules/isnan: New file.
30156         * modules/isnan-tests: New file.
30157         * modules/math: Add substitutions for new module.
30158         * tests/test-isnan.c: New file.
30159         * MODULES.html.sh: Mention new module.
30160
30161 2008-07-10  Ben Pfaff  <blp@gnu.org>
30162
30163         Add isnanf module.
30164         * lib/isnanf.m4: New file.
30165         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
30166         (gl_HAVE_ISNANF_IN_LIBM): New macro.
30167         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
30168         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
30169         * modules/isnanf: New file.
30170         * modules/isnanf-tests: New file.
30171         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
30172         files.
30173         * tests/test-isnanf-nolibm.c: factored most of its contents into
30174         new file tests/test-isnanf.h.
30175         * tests/test-isnanf.h: New file.
30176         * tests/test-isnanf.c: New file.
30177         * MODULES.html.sh: Mention new module.
30178         * doc/glibc-functions/isnanf.texi: Mention new module.
30179
30180 2008-07-10  Ben Pfaff  <blp@gnu.org>
30181
30182         Add isnand module.
30183         * lib/isnand.h: New file.
30184         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
30185         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
30186         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
30187         functionality also.
30188         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
30189         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
30190         (gl_HAVE_ISNAND_IN_LIBM): New macro.
30191         * modules/isnand: New file.
30192         * modules/isnand-tests: New file.
30193         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
30194         files.
30195         * tests/test-isnand-nolibm.c: factored most of its contents into
30196         new file tests/test-isnand.h.
30197         * tests/test-isnand.h: New file.
30198         * tests/test-isnand.c: New file.
30199         * MODULES.html.sh: Mention new module.
30200
30201 2008-07-10  Ben Pfaff  <blp@gnu.org>
30202
30203         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
30204         * lib/isnand.h: Rename lib/isnand-nolibm.h.
30205         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
30206         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
30207         * modules/isnanf-nolibm: Update references to renamed files.
30208         * modules/isnand-nolibm: Likewise.
30209         * modules/isnanf-nolibm-tests: Likewise.
30210         * modules/isnand-nolibm-tests: Likewise.
30211         * lib/frexp.c: Likewise.
30212         * lib/isfinite.c: Likewise.
30213         * lib/signbitd.c: Likewise.
30214         * lib/signbitf.c: Likewise.
30215         * lib/vasnprintf.c: Likewise.
30216         * tests/test-ceilf1.c: Likewise.
30217         * tests/test-ceilf2.c: Likewise.
30218         * tests/test-floorf1.c: Likewise.
30219         * tests/test-floorf2.c: Likewise.
30220         * tests/test-frexp.c: Likewise.
30221         * tests/test-round1.c: Likewise.
30222         * tests/test-round2.c: Likewise.
30223         * tests/test-roundf1.c: Likewise.
30224         * tests/test-strtod.c: Likewise.
30225         * tests/test-trunc1.c: Likewise.
30226         * tests/test-trunc2.c: Likewise.
30227         * tests/test-truncf1.c: Likewise.
30228         * tests/test-truncf2.c: Likewise.
30229         * NEWS: Mention the renamed header files.
30230
30231 2008-07-11  Jim Meyering  <meyering@redhat.com>
30232
30233         vc-list-files: make the last-resort awk code more portable
30234         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
30235         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
30236         does not support it.
30237
30238 2008-07-10  Eric Blake  <ebb9@byu.net>
30239
30240         Work with tar's bootstrap.
30241         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
30242         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
30243         an m4 comment.
30244
30245 2008-07-09  Jim Meyering  <meyering@redhat.com>
30246
30247         posix-shell.m4: fix typo that made this test malfunction
30248         * m4/posix-shell.m4: Remove capitalization in variable name.
30249
30250 2008-07-08  Bruno Haible  <bruno@clisp.org>
30251
30252         * m4/onceonly.m4: Update comments.
30253         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30254
30255 2008-07-04  Jim Meyering  <meyering@redhat.com>
30256
30257         * users.txt: Add vc-dwim.
30258         (bison, coreutils): Use the gitweb URL.
30259
30260 2008-07-03  Jim Meyering  <meyering@redhat.com>
30261
30262         * users.txt: Add libffcall.  From Sam Steingold.
30263
30264 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
30265
30266         getdate.y: do not ignore TZ with relative day, month or year offset
30267         * lib/getdate.y (get_date): Move the tz-handling block to follow the
30268         relative-date-handling, since otherwise, the latter would clobber the
30269         sole output (an updated Start value) of the tz-handling block.
30270         * tests/test-getdate.c: Tests for the fix
30271
30272 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30273
30274         Recognize 'foo_LIBRARIES += libgnu.a'.
30275         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
30276         makefile snippet has already specified an installation location,
30277         also using '+='.
30278
30279 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
30280
30281         getdate.y: factor out common actions
30282         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
30283         Use them in place of open-coded actions.
30284
30285 2008-07-01  Simon Josefsson  <simon@josefsson.org>
30286
30287         Add self-test for getdate module.
30288         * modules/getdate-tests: New file.
30289         * tests/test-getdate.c: New file.
30290
30291 2008-06-29  Bruno Haible  <bruno@clisp.org>
30292
30293         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
30294         .gitignore.
30295         Reported by Sylvain Beucler <beuc@beuc.net>.
30296
30297 2008-06-29  Bruno Haible  <bruno@clisp.org>
30298
30299         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
30300         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
30301
30302 2008-06-29  Bruno Haible  <bruno@clisp.org>
30303
30304         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
30305         EXTRA_DIST.
30306         Reported by Sylvain Beucler <beuc@beuc.net>.
30307
30308 2008-06-26  Jim Meyering  <meyering@redhat.com>
30309
30310         make several modules depend on the "open" module
30311         This provides slightly increased consistency when opening-for-write
30312         the name of a non-directory spelled with a trailing slash.
30313         * modules/chdir-safer: Likewise.
30314         * modules/chown: Likewise.
30315         * modules/clean-temp: Likewise.
30316         * modules/copy-file: Likewise.
30317         * modules/fchdir: Likewise.
30318         * modules/fcntl-safer: Likewise.
30319         * modules/pipe: Likewise.
30320         * modules/utime: Likewise.
30321         Prompted by Eric Blake and Bruno Haible.
30322
30323 2008-06-24  Andreas Schwab  <schwab@suse.de>
30324
30325         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
30326         literals can be used as initializers for global variables.
30327
30328 2008-06-23  Eric Blake  <ebb9@byu.net>
30329
30330         Make gnulib-cache.m4 easier to diff.
30331         * gnulib-tool (func_import): Allow newlines when reading cached
30332         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
30333
30334 2008-06-23  Bruno Haible  <bruno@clisp.org>
30335
30336         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
30337         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
30338         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
30339         m4/signalblocking.m4.
30340         (gl_PREREQ_SIGACTION): Don't invoke it.
30341         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
30342         gl_PREREQ_SIG_HANDLER_H.
30343         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30344         Don't check for sigaction here.
30345
30346 2008-06-23  Bruno Haible  <bruno@clisp.org>
30347
30348         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
30349         (install_handlers): Don't set the SA_RESETHAND flag.
30350
30351 2008-06-23  Bruno Haible  <bruno@clisp.org>
30352
30353         * m4/sigaction.m4: Comment fixes.
30354         * lib/signal.in.h: Likewise.
30355
30356 2008-06-23  Eric Blake  <ebb9@byu.net>
30357
30358         Fix typo.
30359         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
30360
30361         Avoid SA_ namespace.
30362         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
30363         Reported by Ralf Wildenhues.
30364
30365         Avoid test failure due to SA_RESTORER.
30366         * tests/test-sigaction.c (SA_MASK): New macro.
30367         (main): Avoid failing due to extension flags being set.
30368         Reported by Jim Meyering.
30369
30370         Revert use of sig-handler.h in sigprocmask.c.
30371         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
30372         it requires the existence of struct sigaction.
30373         * lib/sigprocmask.c (handler_t): Restore typedef.
30374         (rpl_signal, old_handlers): Use local type.
30375
30376 2008-06-22  Bruno Haible  <bruno@clisp.org>
30377
30378         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
30379         conditionally.
30380         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30381
30382 2008-06-22  Bruno Haible  <bruno@clisp.org>
30383
30384         * doc/posix-functions/siginterrupt.texi: Move note.
30385
30386         * lib/signal.in.h (SA_RESTART): New macro.
30387         * lib/sigaction.c: Update comment.
30388
30389         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
30390
30391         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
30392         (gl_PREREQ_SIGPROCMASK): Invoke it.
30393         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
30394
30395         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
30396
30397         * lib/sigprocmask.c: Update a comment.
30398
30399 2008-06-21  Eric Blake  <ebb9@byu.net>
30400
30401         Use sigaction module rather than signal().
30402         * modules/c-stack (Depends-on): Add sigaction.
30403         * modules/fatal-signal (Depends-on): Likewise.
30404         * modules/nanosleep (Depends-on): Likewise.
30405         * modules/sigprocmask (Files): Add sig-handler.h.
30406         * modules/sigaction (Files): Likewise.
30407         * lib/sig-handler.h (get_handler): New file, suggested by Paul
30408         Eggert.
30409         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
30410         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
30411         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
30412         (init_fatal_signals): Likewise.
30413         * lib/nanosleep.c (rpl_nanosleep): Likewise.
30414         (siginterrupt): Delete fallback.
30415         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
30416         instead.
30417         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
30418         siginterrupt.
30419
30420         New module sigaction, for mingw.
30421         * modules/sigaction: New module...
30422         * modules/sigaction-tests: ...and its test.
30423         * m4/sigaction.m4: New file.
30424         * lib/sigaction.c: Likewise.
30425         * tests/test-sigaction.c: Likewise.
30426         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
30427         * modules/signal (Makefile.am): Likewise.
30428         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
30429         needed.
30430         * doc/posix-headers/signal.texi (signal.h): Mention provided
30431         types.
30432         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
30433         that sigaction is preferable.
30434         * doc/posix-functions/sigaction.texi (sigaction): Mention new
30435         module.
30436         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30437         sigaction.
30438
30439         Improve robustness of sigprocmask by overriding signal.
30440         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
30441         is in use.
30442         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
30443         (SIGKILL, SIGSTOP): Provide fallbacks.
30444         (rpl_signal): Implement.
30445         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
30446         signal can be called inside handlers.
30447
30448         Fix nanosleep module on mingw.
30449         * modules/nanosleep (Depends-on): Add sys_select.
30450         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
30451
30452         Fix licensing of sigprocmask.
30453         * modules/raise (License): Relicense as LGPL.
30454
30455 2008-06-21  Bruno Haible  <bruno@clisp.org>
30456
30457         * lib/propername.c (proper_name_utf8): Don't use the transliterated
30458         result if it contains question marks.
30459         Reported by Michael Geng <linux@michaelgeng.de>.
30460
30461 2008-06-19  Bruno Haible  <bruno@clisp.org>
30462
30463         Fix CVS-ism.
30464         * doc/gnulib.texi: Include updated-stamp.texi.
30465         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
30466         (updated-stamp.texi): New rule.
30467         (gnulib.info): Depend on it.
30468         * doc/.gitignore: Add updated-stamp.texi.
30469         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
30470
30471 2008-06-19  Bruno Haible  <bruno@clisp.org>
30472
30473         * doc/Makefile (gnulib.info): Update and simplify dependencies.
30474         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30475
30476 2008-06-19  Eric Blake  <ebb9@byu.net>
30477
30478         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
30479         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
30480         Reported by Stepan Kasal.
30481
30482 2008-06-18  Bruno Haible  <bruno@clisp.org>
30483
30484         * lib/fatal-signal.c (init_fatal_signals): Add comment.
30485         Reported by Eric Blake.
30486
30487 2008-06-18  Eric Blake  <ebb9@byu.net>
30488
30489         Work around cygwin 1.5.25 strsignal bug.
30490         * tests/test-strsignal.c: Allow for const char *.
30491         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
30492
30493 2008-06-18  Simon Josefsson  <simon@josefsson.org>
30494
30495         * users.txt: Update URL to article and add author/date
30496         information.
30497
30498 2008-06-17  Bruno Haible  <bruno@clisp.org>
30499
30500         New macro gl_DISABLE_THREADS.
30501         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
30502         if the user did not pass --enable-threads or --disable-threads option.
30503         (gl_DISABLE_THREADS): New macro.
30504         Reported by Eric Blake <ebb9@byu.net>.
30505
30506 2008-06-17  Bruno Haible  <bruno@clisp.org>
30507
30508         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
30509         when the macro ignores it.
30510         Based on a patch by Eric Blake <ebb9@byu.net>.
30511
30512 2008-06-17  Bruno Haible  <bruno@clisp.org>
30513
30514         * modules/tls (License): Change to LGPLv2+.
30515         Reported by Eric Blake.
30516
30517 2008-06-17  Eric Blake  <ebb9@byu.net>
30518
30519         Simplify c-stack prerequisites.
30520         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
30521         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
30522         no longer requires <ucontext.h> to exist.  Optimize setrlimit
30523         check.
30524         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
30525         <sys/resource.h>.
30526
30527         Move c-stack test into testsuite.
30528         * modules/c-stack-tests: New file.
30529         * lib/c-stack.c [DEBUG]: Move test program...
30530         * tests/test-c-stack.c: ...into this new file.  Skip rather than
30531         fail test if sigaltstack is lacking.
30532         * tests/test-c-stack.sh: New driver file.
30533
30534 2008-06-16  Eric Blake  <ebb9@byu.net>
30535
30536         Use raise module consistently.
30537         * modules/fatal-signal (Depends-on): Add raise.
30538         * modules/sigprocmask (Depends-on): Likewise.
30539         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
30540         * lib/sigprocmask.c (sigprocmask): Likewise.
30541         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30542         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
30543
30544         Fix compliance bug in sigpending.
30545         * lib/sigprocmask.c (sigpending): Return pending array via
30546         parameter, not return value.
30547
30548 2008-06-14  Eric Blake  <ebb9@byu.net>
30549
30550         Improve obstack-printf test code.
30551         * tests/test-obstack-printf.c (test_function): Fix comment, and
30552         simplify usage of obstack_* in macros.  Add a test for coverage.
30553         Reported by Bruno Haible.
30554
30555 2008-06-14  Bruno Haible  <bruno@clisp.org>
30556
30557         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
30558         array size as a constant, not as a const variable.
30559         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
30560         AC_USE_SYSTEM_EXTENSIONS.
30561         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30562         Test whether the obstack_printf function actually exists.
30563         * modules/obstack-printf (Depends-on): Add extensions.
30564         (Include): Remove obstack.h.
30565         * modules/obstack-printf-posix (Depends-on): Add extensions.
30566         (Include): Remove obstack.h.
30567
30568 2008-06-13  Eric Blake  <ebb9@byu.net>
30569
30570         Add obstack-printf and obstack-printf-posix modules.
30571         * modules/obstack-printf: New file.
30572         * modules/obstack-printf-posix: Likewise.
30573         * MODULES.html.sh (Misc): Mention them.
30574         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30575         Likewise.
30576         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30577         Likewise.
30578         * modules/stdio (Makefile.am): Accomodate new modules.
30579         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30580         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
30581         Declare.
30582         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
30583         functions.
30584         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
30585         (gl_REPLACE_OBSTACK_PRINTF): New macros
30586         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
30587         * tests/test-obstack-printf.c: New file.
30588         * modules/obstack-printf-tests: Likewise.
30589         * modules/obstack-printf-posix-tests: Likewise.
30590
30591 2008-06-11  Bruno Haible  <bruno@clisp.org>
30592
30593         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
30594         * lib/open.c: Include errno.h.
30595         (open): Fail when attempting to write to a file that has a trailing
30596         slash.
30597         * tests/test-open.c (main): Test against trailing slash bug.
30598         * doc/posix-functions/open.texi: Mention the trailing slash bug.
30599
30600 2008-06-10  Bruno Haible  <bruno@clisp.org>
30601
30602         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
30603         for $? to work inside the trap command, with various /bin/sh-s.
30604         * tests/test-vc-list-files-cvs.sh: Likewise.
30605
30606 2008-06-10  Bruno Haible  <bruno@clisp.org>
30607
30608         * lib/acl-internal.h: Don't include gettext.h here.
30609         * lib/set-mode-acl.c: Include gettext.h here.
30610         * lib/copy-acl.c: Likewise.
30611
30612 2008-06-10  Bruno Haible  <bruno@clisp.org>
30613
30614         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
30615         * lib/wait-process.c (wait_subprocess): Likewise.
30616         * lib/execute.h (execute): Add termsigp argument.
30617         * lib/execute.c (execute): Likewise.
30618         * lib/csharpcomp.c (compile_csharp_using_pnet,
30619         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
30620         * lib/csharpexec.c (execute_csharp_using_pnet,
30621         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
30622         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
30623         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
30624         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
30625         is_jikes_present): Update.
30626         * lib/javaexec.c (execute_java_class): Update.
30627         * lib/javaversion.c (execute_and_read_line): Update.
30628         * NEWS: Document the changes.
30629         Reported by Eric Blake.
30630
30631 2008-06-10  Eric Blake  <ebb9@byu.net>
30632
30633         Add missing include.
30634         * tests/test-strstr.c (includes): Add <signal.h>.
30635         * tests/test-strcasestr.c (includes): Likewise.
30636         * tests/test-memmem.c (includes): Likewise.
30637
30638 2008-06-10  Bruno Haible  <bruno@clisp.org>
30639
30640         * lib/wait-process.c (wait_subprocess): Add an assertion.
30641
30642 2008-06-10  Bruno Haible  <bruno@clisp.org>
30643
30644         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
30645
30646 2008-06-10  Bruno Haible  <bruno@clisp.org>
30647
30648         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
30649         using alarm().
30650         * tests/test-strcasestr.c (main): Likewise.
30651         * tests/test-strstr.c (main): Likewise.
30652
30653 2008-06-09  Bruno Haible  <bruno@clisp.org>
30654
30655         Work around the Solaris 10 ACE ACLs ABI change.
30656         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
30657         declare if ACL_NO_TRIVIAL is present.
30658         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
30659         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
30660         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
30661         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
30662         define if ACL_NO_TRIVIAL is present.
30663         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
30664         and use the current ABI.
30665         (file_has_acl): Use same #if condition as elsewhere.
30666         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
30667         in use, and use the current ABI.
30668         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
30669         Reported by Jim Meyering.
30670
30671 2008-06-09  Eric Blake  <ebb9@byu.net>
30672
30673         Work around environments that (stupidly) ignore SIGALRM.
30674         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
30675         before using alarm().
30676         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30677         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30678         Reported by Ian Beckwith <ianb@erislabs.net>.
30679
30680         Produce autobuild blurb earlier in log.
30681         * modules/autobuild (configure.ac-early): Move AB_INIT here.
30682
30683 2008-06-09  Jim Meyering  <meyering@redhat.com>
30684         and Ondřej Vašík  <ovasik@redhat.com>
30685
30686         utimens.c: correct kernel bug work-around
30687         Ondřej Vašík found that the invalid return value of 280 indicates
30688         failure, not success, and the kernel bug we're trying to work
30689         around affects not just the utimensat call, but also the fallback
30690         futimens call.
30691         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
30692         not success.
30693         [HAVE_FUTIMENS]: Use the same work-around, here.
30694
30695 2008-06-09  Jim Meyering  <meyering@redhat.com>
30696
30697         add more guards around definition of ACE_-related code
30698         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
30699         ALLOW and ACE_OWNER are also defined.
30700
30701 2008-06-08  Bruno Haible  <bruno@clisp.org>
30702
30703         * lib/acl-internal.h: Add me as co-author.
30704         * lib/file-has-acl.c: Likewise.
30705         * lib/set-mode-acl.c: Likewise.
30706         * lib/copy-acl.c: Likewise.
30707
30708 2008-06-08  Bruno Haible  <bruno@clisp.org>
30709
30710         Add support for AIX ACLs.
30711         * lib/acl-internal.h (acl_nontrivial): New declaration.
30712         * lib/file-has-acl.c (acl_nontrivial): New function.
30713         (file_has_acl): Add implementation using AIX 4 ACL API.
30714         * lib/set-mode-acl.c (qset_acl): Likewise.
30715         * lib/copy-acl.c (qcopy_acl): Likewise.
30716
30717 2008-06-08  Bruno Haible  <bruno@clisp.org>
30718
30719         Add support for HP-UX ACLs.
30720         * lib/acl-internal.h (acl_nontrivial): New declaration.
30721         * lib/file-has-acl.c (acl_nontrivial): New function.
30722         (file_has_acl): Add implementation using HP-UX 11 ACL API.
30723         * lib/set-mode-acl.c (qset_acl): Likewise.
30724         * lib/copy-acl.c (qcopy_acl): Likewise.
30725
30726 2008-06-08  Bruno Haible  <bruno@clisp.org>
30727
30728         Add support for Cygwin ACLs.
30729         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
30730         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
30731         the chmod_or_fchmod call.
30732         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
30733
30734 2008-06-08  Bruno Haible  <bruno@clisp.org>
30735
30736         Fix bug with setuid modes in Solaris 10+ code.
30737         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
30738         succeeded, when the mode contains some special bits.
30739
30740 2008-06-08  Bruno Haible  <bruno@clisp.org>
30741
30742         Add support for Solaris 7..10 ACLs.
30743         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
30744         declarations.
30745         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
30746         functions.
30747         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
30748         * lib/set-mode-acl.c (qset_acl): Likewise.
30749         * lib/copy-acl.c (qcopy_acl): Likewise.
30750
30751 2008-06-08  Bruno Haible  <bruno@clisp.org>
30752
30753         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
30754         declaration.
30755         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
30756         (acl_access_nontrivial): Remove MacOS X case.
30757         (file_has_acl): Use acl_extended_nontrivial.
30758         * lib/copy-acl.c (qcopy_acl): Likewise.
30759
30760 2008-06-08  Bruno Haible  <bruno@clisp.org>
30761
30762         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
30763
30764 2008-06-08  Jim Meyering  <meyering@redhat.com>
30765
30766         * modules/acl (Maintainer): Add Bruno Haible.
30767
30768 2008-06-07  Bruno Haible  <bruno@clisp.org>
30769
30770         Improve support for Tru64 ACLs.
30771         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
30772         ACL on OSF/1.
30773
30774 2008-06-07  Bruno Haible  <bruno@clisp.org>
30775
30776         Add support for MacOS X ACLs.
30777         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
30778         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
30779         * lib/set-mode-acl.c (qset_acl): Likewise.
30780         * lib/copy-acl.c (qcopy_acl): Likewise.
30781
30782 2008-06-07  Bruno Haible  <bruno@clisp.org>
30783
30784         Fix memory leak introduced on 2008-05-22.
30785         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
30786         use.
30787
30788 2008-06-07  Bruno Haible  <bruno@clisp.org>
30789
30790         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
30791         to construct an empty ACL.
30792
30793 2008-06-07  Bruno Haible  <bruno@clisp.org>
30794
30795         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
30796         precisely.
30797         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
30798
30799 2008-06-07  Bruno Haible  <bruno@clisp.org>
30800
30801         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
30802         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
30803
30804 2008-06-07  Bruno Haible  <bruno@clisp.org>
30805
30806         * doc/posix-functions/_setjmp.texi: Explain the use of this function
30807         regardless of POSIX.
30808         * doc/posix-functions/_longjmp.texi: Likewise.
30809         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
30810         SystemV platform in this case.
30811
30812 2008-06-06  Eric Blake  <ebb9@byu.net>
30813
30814         Document abort() bugs.
30815         * doc/posix-functions/abort.texi (abort): Mention anomalies.
30816
30817         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
30818         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
30819         sigsetjmp.
30820         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
30821         siglongjmp, but only as a macro.
30822         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
30823         is obsolete.
30824         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
30825
30826         Tweak documentation to cover cygwin argz bugs.
30827         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
30828         argz bug fix; no code change needed since no cygwin releases
30829         occurred between the last fix and the bug being tested.
30830         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
30831         module and recently fixed cygwin bugs.
30832         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
30833         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
30834         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
30835         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
30836         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
30837         Likewise.
30838         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
30839         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
30840         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
30841         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
30842         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
30843         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
30844         Likewise.
30845
30846         Avoid gcc warning on cygwin.
30847         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
30848         !ACL_NO_TRIVIAL]: Avoid unused variable.
30849
30850 2008-06-05  Eric Blake  <ebb9@byu.net>
30851
30852         Be tolerant of UNKNOWN version in gnulib-tool test dir.
30853         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
30854         git-version-gen fails to come up with a version.
30855         Reported by Simon Josefsson.
30856
30857 2008-06-05  Jim Meyering  <meyering@redhat.com>
30858             Paul Eggert  <eggert@cs.ucla.edu>
30859
30860         utimens.c: work around a probable Linux kernel bug
30861         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
30862         appears to be a kernel bug that causes utimensat to return 280
30863         instead of 0, indicating success.
30864
30865 2008-06-04  Bruno Haible  <bruno@clisp.org>
30866
30867         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
30868         2008-06-01 commit.
30869
30870 2008-06-04  Bruno Haible  <bruno@clisp.org>
30871
30872         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
30873         * lib/file-has-acl.c (acl_access_nontrivial): New function.
30874         (file_has_acl): Use it. Save errno afterwards.
30875         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
30876
30877 2008-06-03  Bruno Haible  <bruno@clisp.org>
30878
30879         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
30880         draft code. Simplify #ifs.
30881         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
30882         Put Solaris code after POSIX-draft code. Fix comments regarding
30883         Solaris 10, HP-UX. Mention Cygwin.
30884         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
30885
30886 2008-06-03  Eric Blake  <ebb9@byu.net>
30887
30888         Provide fallback for older kernels.
30889         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
30890         Provide runtime fallback if kernel lacks support.
30891         Reported by Mike Frysinger.
30892
30893 2008-06-02  Bruno Haible  <bruno@clisp.org>
30894
30895         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
30896         it exists.
30897
30898 2008-06-02  Bruno Haible  <bruno@clisp.org>
30899
30900         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
30901         * lib/copy-acl.c (qcopy_acl): Update comment.
30902
30903 2008-06-02  Bruno Haible  <bruno@clisp.org>
30904
30905         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
30906         like ACL APIs.
30907
30908 2008-06-02  Bruno Haible  <bruno@clisp.org>
30909
30910         * tests/test-file-has-acl.sh: Use different code for Cygwin.
30911         * tests/test-set-mode-acl.sh: Likewise.
30912         * tests/test-copy-acl.sh: Likewise.
30913         * tests/test-copy-file.sh: Likewise.
30914
30915 2008-06-02  Bruno Haible  <bruno@clisp.org>
30916
30917         * tests/test-file-has-acl.sh: Remove unused code.
30918
30919 2008-06-01  Bruno Haible  <bruno@clisp.org>
30920
30921         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
30922         (copy_acl): Just a wrapper around qcopy_acl that emits the error
30923         messages.
30924         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
30925
30926 2008-06-01  Bruno Haible  <bruno@clisp.org>
30927
30928         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
30929         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
30930         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
30931         APIs.
30932         * modules/acl-tests (configure.ac): Remove tests now contained in
30933         m4/acl.m4.
30934
30935 2008-06-02  Jim Meyering  <meyering@redhat.com>
30936
30937         announce-gen: use a better key-server host name
30938         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
30939         it may be more consistently reliable.  Suggested by Werner Koch
30940         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
30941
30942 2008-06-01  Bruno Haible  <bruno@clisp.org>
30943
30944         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
30945         Reported by Voroskoi Andras <voroskoi@gmail.com>.
30946
30947 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
30948
30949         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
30950
30951 2008-06-01  Bruno Haible  <bruno@clisp.org>
30952
30953         New ACL tests.
30954         * tests/test-file-has-acl.sh: New file.
30955         * tests/test-file-has-acl.c: New file.
30956         * tests/test-set-mode-acl.sh: New file.
30957         * tests/test-set-mode-acl.c: New file.
30958         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
30959         * tests/test-copy-acl.c: New file.
30960         * modules/acl-tests: New file, based on modules/copy-file-tests.
30961         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
30962         (Depends-on): Add acl-tests.
30963         (configure.ac): Remove checks.
30964         (Makefile.am): Don't create test-sameacls program here any more.
30965
30966 2008-06-01  Bruno Haible  <bruno@clisp.org>
30967
30968         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
30969         * tests/test-sameacls.c: Include progname.h.
30970         (main): Invoke set_program_name. Portability fixes for MacOS X,
30971         Solaris, HP-UX.
30972
30973 2008-06-01  Bruno Haible  <bruno@clisp.org>
30974
30975         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
30976         function.
30977         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
30978
30979 2008-06-01  Bruno Haible  <bruno@clisp.org>
30980
30981         * modules/rpmatch (Depends-on): Add strdup.
30982
30983 2008-06-01  Bruno Haible  <bruno@clisp.org>
30984
30985         * lib/pipe.c: Include unistd-safer.h.
30986         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
30987         * modules/pipe (Depends-on): Add unistd-safer.
30988
30989 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30990
30991         * modules/autobuild (configure.ac): Call AB_INIT.
30992
30993 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30994
30995         * tests/test-getaddrinfo.c: Don't print debug messages by default.
30996         Suggested by Bruno Haible <bruno@clisp.org>.
30997
30998 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30999
31000         * tests/test-base64.c: Cast size_t to unsigned long when invoking
31001         printf.  Use %lu instead of %d.  Reported by Bruno Haible
31002         <bruno@clisp.org>.
31003
31004 2008-05-29  Eric Blake  <ebb9@byu.net>
31005
31006         Prefer new POSIX 200x interfaces over futimesat.
31007         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
31008         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
31009         when available.
31010         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
31011
31012 2008-05-28  Bruno Haible  <bruno@clisp.org>
31013
31014         * modules/stpcpy (License): Change to LGPLv2+.
31015         Requested by David Lutterkort <dlutter@redhat.com>.
31016
31017 2008-05-27  Bruno Haible  <bruno@clisp.org>
31018
31019         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
31020         current mingw.
31021         Reported by Jose E. Marchesi <jemarch@gnu.org>.
31022
31023 2008-05-27  Bruno Haible  <bruno@clisp.org>
31024
31025         * modules/iconv_open (Link): New section, from module 'iconv'.
31026         * modules/striconv (Link): Likewise.
31027         * modules/striconveh (Link): Likewise.
31028         * modules/xstriconv (Link): Likewise.
31029         * modules/unicodeio (Link): Likewise.
31030         * modules/propername (Link): Likewise.
31031         Reported by Jim Meyering.
31032
31033 2008-05-26  Jim Meyering  <meyering@redhat.com>
31034
31035         sha256: do not artificially restrict buffer length to be < 2^32
31036         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
31037         uint32_t to size_t.
31038         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
31039         to match.
31040
31041         avoid unaligned access errors, e.g., on sparc
31042         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
31043         direct access through a possibly-unaligned uint64* pointer.
31044         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
31045         direct access through a possibly-unaligned uint32* pointer.
31046         Prompted by this patch from Tom "spot" Callaway:
31047         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
31048
31049         sha512.c: fix typo in comment
31050         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
31051
31052 2008-05-25  Bruno Haible  <bruno@clisp.org>
31053
31054         * lib/set-mode-acl.c: Renamed from lib/acl.c.
31055         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
31056         (Makefile.am): Update lib_SOURCES.
31057
31058 2008-05-25  Bruno Haible  <bruno@clisp.org>
31059
31060         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
31061
31062 2008-05-25  Jim Meyering  <meyering@redhat.com>
31063
31064         useless-if-before-free: freed expr may have white-space differences
31065         * build-aux/useless-if-before-free: Recognize cases in which the
31066         freed expression differs from the tested one in embedded white
31067         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
31068         $1 was used, so we can't make any regexp shy.  Improved tests now
31069         detect this.
31070
31071         useless-if-before-free: accept white space in the expression.
31072         * build-aux/useless-if-before-free: For now, any white space
31073         in the expression must be identical in the free argument.
31074
31075         useless-if-before-free: efficiency tweak
31076         * build-aux/useless-if-before-free: Make the expression-matching
31077         regexp "shy".
31078         Make the *outer* regexp shy, not the expr-matching one.
31079
31080         update code-in-comment to accept cast of free arg
31081         * build-aux/useless-if-before-free: Update regexp.
31082
31083 2008-05-25  Bruno Haible  <bruno@clisp.org>
31084
31085         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
31086         * modules/copy-file-tests (Files, Makefile.am): Update.
31087         * tests/test-copy-file.c (func_test_copy): Update.
31088
31089 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
31090
31091         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
31092
31093 2008-05-23  Bruno Haible  <bruno@clisp.org>
31094
31095         Improve support for ACLs on OSF/1.
31096         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
31097         Remove fallback for unknown flavors of ACLs.
31098
31099 2008-05-22  Bruno Haible  <bruno@clisp.org>
31100
31101         Add support for ACLs on OSF/1.
31102         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
31103         replacements.
31104         (acl_free_text): New macro fallback.
31105         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
31106         acl_free.
31107         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
31108         acl_free_text function. Require AC_C_INLINE.
31109
31110 2008-05-22  Bruno Haible  <bruno@clisp.org>
31111
31112         Make copy_acl work on MacOS X 10.5.
31113         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
31114         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
31115         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
31116         If MODE_INSIDE_ACL, don't assume that every system has the same text
31117         representation for ACLs as FreeBSD.
31118         * lib/copy-acl.c (copy_acl): Add support for platforms with
31119         !MODE_INSIDE_ACL.
31120         * lib/file-has-acl.c (file_has_acl): Likewise.
31121         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
31122         FreeBSD, MacOS X, or IRIX, respectively.
31123
31124 2008-05-22  Bruno Haible  <bruno@clisp.org>
31125
31126         * lib/acl.h: Don't include <sys/acl.h>.
31127         (GETACLCNT): Move fallback to lib/acl-internal.h.
31128         * lib/acl-internal.h: Include <sys/acl.h> here.
31129         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
31130
31131 2008-05-22  Bruno Haible  <bruno@clisp.org>
31132
31133         Split off copy_acl function to separate file.
31134         * lib/copy-acl.c: New file, extracted from lib/acl.c.
31135         * lib/acl.c (copy_acl): Moved function to separate file.
31136         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
31137         * modules/acl (Files): Add lib/copy-acl.c.
31138         (Makefiles.am): Augment lib_SOURCES.
31139
31140 2008-05-22  Bruno Haible  <bruno@clisp.org>
31141
31142         * modules/copy-file-tests: New file.
31143         * tests/test-copy-file.sh: New file.
31144         * tests/test-copy-file.c: New file.
31145         * tests/test-copy-file-sameacls.c: New file.
31146
31147 2008-05-22  Eric Blake  <ebb9@byu.net>
31148
31149         Avoid gcc warning.
31150         * tests/test-memcmp.c (main): Pass NULL indirectly.
31151
31152 2008-05-21  Bruno Haible  <bruno@clisp.org>
31153
31154         Add reference doc about ACLs.
31155         * doc/acl-resources.txt: New file.
31156         * doc/acl-cygwin.txt: New file.
31157
31158 2008-05-21  Bruno Haible  <bruno@clisp.org>
31159
31160         Avoid one more warning from gcc.
31161         * lib/vasnprintf.c (IF_LINT): Update comments.
31162         (VASNPRINTF): Use it also for the 'prefix' array initializer.
31163
31164 2008-05-21  Jim Meyering  <meyering@redhat.com>
31165
31166         avoid a warning from gcc
31167         * lib/vasnprintf.c (IF_LINT): Define.
31168         (scale10_round_decimal_long_double):
31169         Use it to avoid a "may be used uninitialized" warning.
31170         (scale10_round_decimal_double): Likewise.
31171
31172 2008-05-21  Simon Josefsson  <simon@josefsson.org>
31173
31174         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
31175         declared.
31176
31177 2008-05-20  Bruno Haible  <bruno@clisp.org>
31178
31179         * tests/test-memcmp.c (main): Test also the sign of the result. Test
31180         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
31181
31182 2008-05-20  Simon Josefsson  <simon@josefsson.org>
31183
31184         * modules/memcmp-tests: New file.
31185         * tests/test-memcmp.c: New file.
31186
31187 2008-05-19  Bruno Haible  <bruno@clisp.org>
31188
31189         * modules/propername (Notice, configure.ac): Put quoted "..." into
31190         --keyword option.
31191         * lib/propername.h: Update comments accordingly.
31192         Reported by Eric Blake.
31193
31194 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
31195
31196         * modules/getpass-gnu (Depends-on): Add fseeko.
31197
31198 2008-05-19  Simon Josefsson  <simon@josefsson.org>
31199
31200         * modules/base64-tests: New file.
31201
31202 2008-05-19  Bo Borgerson <gigabo@gmail.com>
31203
31204         * lib/base64.c (base64_decode_ctx): If a decode context structure
31205         was passed in use it to ignore newlines.  If a context structure
31206         was _not_ passed in, continue to treat newlines as garbage (this
31207         is the historical behavior).  Formerly base64_decode.
31208         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
31209         takes a decode context structure.
31210         * lib/base64.h (base64_decode): Macro for four-argument calls.
31211         (base64_decode_alloc): Likewise.
31212         * lib/base64.c (base64_decode_ctx): If a decode context structure
31213         was passed in use it to ignore newlines.  If a context structure
31214         was _not_ passed in, continue to treat newlines as garbage (this
31215         is the historical behavior).  Formerly base64_decode.
31216         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
31217         takes a decode context structure.
31218         * lib/base64.h (base64_decode): Macro for four-argument calls.
31219         (base64_decode_alloc): Likewise.
31220
31221 2008-05-19  Jim Meyering  <meyering@redhat.com>
31222
31223         avoid a warning from gcc
31224         * lib/trim.c (IF_LINT): Define.
31225         (trim2): Use it to avoid a "may be used uninitialized" warning.
31226
31227         Fix doc typo.
31228         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
31229
31230 2008-05-19  Bruno Haible  <bruno@clisp.org>
31231
31232         * doc/glibc-functions/getpass.texi: Document limits of other
31233         implementations.
31234
31235 2008-05-19  Simon Josefsson  <simon@josefsson.org>
31236             Bruno Haible <bruno@clisp.org>
31237
31238         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
31239
31240 2008-05-18  Bruno Haible  <bruno@clisp.org>
31241
31242         * modules/propername: New file, from GNU gettext.
31243         * lib/propername.h: New file, from GNU gettext.
31244         * lib/propername.c: New file, from GNU gettext.
31245         * MODULES.html.sh (Internationalization functions): Add propername.
31246
31247 2008-05-16  Jim Meyering  <meyering@redhat.com>
31248             Bruno Haible  <bruno@clisp.org>
31249
31250         Avoid some warnings from "gcc -Wshadow".
31251         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
31252
31253 2008-05-15  Eric Blake  <ebb9@byu.net>
31254
31255         Extend previous patch to cygwin 1.7.0.
31256         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
31257         fast implementation in cygwin >= 1.7.0.
31258         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31259         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31260
31261 2008-05-15  Bruno Haible  <bruno@clisp.org>
31262
31263         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
31264         implementation in glibc >= 2.9.
31265         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31266         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31267
31268 2008-05-15  Bruno Haible  <bruno@clisp.org>
31269
31270         * MODULES.html.sh (Internationalization functions): Remove linebreak.
31271         (Unicode string functions): Add unilbrk/*.
31272         Reported by Karl Berry.
31273
31274 2008-05-15  Eric Blake  <ebb9@byu.net>
31275
31276         Fix violation of <stdbool.h> replacement in regex.
31277         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
31278         * lib/regexec.c (re_search_internal): Likewise.
31279         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
31280
31281 2008-05-15  Jim Meyering  <meyering@redhat.com>
31282
31283         avoid distracting test output when git or cvs is not found
31284         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
31285         * tests/test-vc-list-files-git.sh: Likewise.
31286
31287 2008-05-15  Eric Blake  <ebb9@byu.net>
31288
31289         Glibc finally accepted the memmem speedup code, bugzilla #5514.
31290         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
31291         glibc version.
31292         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31293         * doc/posix-functions/strstr.texi (strstr): Likewise.
31294         * lib/str-two-way.h (MAX): Sychronize with glibc.
31295
31296 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
31297
31298         * lib/regcomp.c (optimize_utf8): Add a note on why we test
31299         opr.ctx_type.
31300         (calc_first): Initialize constraint field.
31301         (duplicate_node_closure): Use it instead of special casing ANCHORS.
31302         Fix grammar.
31303         (duplicate_node): Merge constraint field for all node types.
31304         (calc_eclosure_iter): Look at constraint field for all node types.
31305         * lib/regex_internal.c (create_cd_newstate): Don't look at
31306         opr.ctx_type.
31307
31308 2008-05-14  Bruno Haible  <bruno@clisp.org>
31309
31310         Help GCC to do better code generation.
31311         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
31312         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
31313         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
31314         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
31315         Declare with attribute 'malloc' if supported.
31316
31317 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
31318
31319         use "echo STR|wc -c" rather than unportable "expr length STR"
31320         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
31321         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
31322
31323 2008-05-14  Jim Meyering  <meyering@redhat.com>
31324
31325         use dd ibs=$n count=1 ... rather than less-portable head -c$n
31326         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
31327         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
31328         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
31329         via Collin Lasse.
31330
31331 2008-05-14  Eric Blake  <ebb9@byu.net>
31332
31333         Avoid quadratic growth in gl_LIBSOURCES.
31334         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
31335         Suggested by Bruno Haible.
31336
31337         Test xmemdup0.
31338         * modules/xmemdup0-tests: New file.
31339         * tests/test-xmemdup0.c: Likewise.
31340
31341 2008-05-13  Eric Blake  <ebb9@byu.net>
31342
31343         Split xmemdup0 into its own module.
31344         * modules/xmemdup0: New file.
31345         * lib/xmemdup0.h: Likewise.
31346         * lib/xmemdup0.c: Likewise.
31347         * MODULES.html.sh (Memory management functions): Add xmemdup0.
31348         * lib/xalloc.h (xmemdup0): Remove.
31349         * lib/xmalloc.c (xmemdup0): Likewise.
31350
31351 2008-05-13  Eric Blake  <ebb9@byu.net>
31352             Bruno Haible  <bruno@clisp.org>
31353
31354         Reduce number of forks required during autoconf.
31355         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
31356         and gl_LIBSOURCES_DIR.
31357         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
31358         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
31359         m4_syscmd per file.
31360         <m4_foreach_w>: Move...
31361         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
31362
31363 2008-05-13  Eric Blake  <ebb9@byu.net>
31364
31365         * gnulib-tool: Fix various comment typos.
31366
31367 2008-05-12  Bruno Haible  <bruno@clisp.org>
31368
31369         Tailor the linebreaking algorithm.
31370         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
31371
31372 2008-05-12  Bruno Haible  <bruno@clisp.org>
31373
31374         Update to Unicode 5.0.0.
31375         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31376         LBP_JV, LBP_JT. Redistribute values.
31377         (unilbrk_table): Change size.
31378         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
31379         Unicode TR#14 rev. 22.
31380         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31381         LBP_JV, LBP_JT. Redistribute values.
31382         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
31383         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
31384         Update.
31385         * lib/unilbrk/lbrkprop1.h: Regenerated.
31386         * lib/unilbrk/lbrkprop2.h: Regenerated.
31387         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
31388         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
31389         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
31390         Likewise.
31391         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
31392         Likewise.
31393         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
31394         result.
31395         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
31396         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
31397         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
31398         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
31399         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
31400         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
31401
31402 2008-05-11  Bruno Haible  <bruno@clisp.org>
31403
31404         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
31405
31406 2008-05-11  Bruno Haible  <bruno@clisp.org>
31407
31408         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
31409         * modules/unilbrk/gen-lbrk: New file.
31410
31411 2008-05-11  Bruno Haible  <bruno@clisp.org>
31412
31413         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
31414         * m4/sha512.m4 (gl_SHA512): Likewise.
31415
31416 2008-05-11  Jim Meyering  <meyering@redhat.com>
31417
31418         New modules: crypto/sha256, crypto/sha512 (from coreutils)
31419         * modules/crypto/sha256: New file.
31420         * modules/crypto/sha512: Likewise.
31421         * lib/sha256.c: Likewise.
31422         * lib/sha256.h: Likewise.
31423         * lib/sha512.c: Likewise.
31424         * lib/sha512.h: Likewise.
31425         * lib/u64.h: Likewise.
31426         * m4/sha256.m4: Likewise.
31427         * m4/sha512.m4: Likewise.
31428         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
31429
31430 2008-05-10  Bruno Haible  <bruno@clisp.org>
31431
31432         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
31433         (Input/Output <stdio.h>): Add xprintf.
31434         (Signal handling <signal.h>): Add strsignal.
31435         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
31436         (Core language properties): Add func.
31437         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
31438         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
31439         strings.
31440         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
31441         (Input/output): New section.
31442         (File system functions): Add openat-die, stat-macros.
31443         (Networking functions): Add sockets.
31444         (Unicode string functions): Add unictype/*.
31445         (Support for building libraries and executables): Add gperf.
31446         (Support for building documentation): Add agpl-3.0.
31447         (Misc): Add nocrash.
31448
31449 2008-05-10  Bruno Haible  <bruno@clisp.org>
31450
31451         * modules/unictype/gen-ctype: New file.
31452
31453 2008-05-10  Jim Meyering  <meyering@redhat.com>
31454
31455         Make chdir-safer.c more efficient on a system with no symlinks.
31456         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
31457         also if ELOOP is zero.  Suggested by Bruno Haible.
31458
31459         Make chdir-safer.c slightly safer.
31460         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
31461         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
31462
31463         Avoid compile failure on systems without ELOOP (like mingw).
31464         * lib/chdir-safer.c (ELOOP): Define if not already defined.
31465         Reported by Bruno Haible.
31466
31467 2008-05-10  Bruno Haible  <bruno@clisp.org>
31468
31469         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
31470         (is_utf8_encoding): Use a case-insensitive comparison.
31471         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
31472         streq.
31473
31474 2008-05-10  Bruno Haible  <bruno@clisp.org>
31475
31476         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
31477         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
31478         * lib/unilbrk/ulc-common.h (iconv_string_length,
31479         iconv_string_keeping_offsets): Remove declarations.
31480         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
31481         Don't include <iconv.h>, streq.h, xsize.h.
31482         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
31483         conversion.
31484         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
31485         <iconv.h>, streq.h, xsize.h.
31486         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
31487         conversion.
31488         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
31489         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
31490         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
31491         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
31492
31493 2008-05-10  Bruno Haible  <bruno@clisp.org>
31494
31495         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
31496         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
31497
31498         * modules/unilbrk/u32-width-linebreaks-tests: New file.
31499         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
31500
31501         * modules/unilbrk/u16-width-linebreaks-tests: New file.
31502         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
31503
31504         * modules/unilbrk/u8-width-linebreaks-tests: New file.
31505         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
31506
31507         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
31508         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
31509
31510         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
31511         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
31512
31513         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
31514         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
31515
31516         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
31517         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
31518
31519 2008-05-10  Bruno Haible  <bruno@clisp.org>
31520
31521         Split up 'linebreak' module.
31522         * lib/unilbrk.h: New file, based on lib/linebreak.h.
31523         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
31524         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
31525         modifications.
31526         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
31527         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
31528         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
31529         lib/linebreak.c.
31530         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
31531         lib/linebreak.c.
31532         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
31533         lib/linebreak.c.
31534         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
31535         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
31536         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
31537         lib/linebreak.c.
31538         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
31539         lib/linebreak.c.
31540         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
31541         lib/linebreak.c.
31542         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
31543         lib/linebreak.c.
31544         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
31545         lib/linebreak.c.
31546         * modules/unilbrk/base: New file.
31547         * modules/unilbrk/tables: New file.
31548         * modules/unilbrk/u8-possible-linebreaks: New file.
31549         * modules/unilbrk/u16-possible-linebreaks: New file.
31550         * modules/unilbrk/u32-possible-linebreaks: New file.
31551         * modules/unilbrk/ulc-common: New file.
31552         * modules/unilbrk/ulc-possible-linebreaks: New file.
31553         * modules/unilbrk/u8-width-linebreaks: New file.
31554         * modules/unilbrk/u16-width-linebreaks: New file.
31555         * modules/unilbrk/u32-width-linebreaks: New file.
31556         * modules/unilbrk/ulc-width-linebreaks: New file.
31557         * lib/linebreak.h: Remove file.
31558         * lib/linebreak.c: Remove file.
31559         * m4/linebreak.m4: Remove file.
31560         * modules/linebreak: Remove file.
31561         * NEWS: Mention the changes.
31562
31563 2008-05-09  Eric Blake  <ebb9@byu.net>
31564
31565         Add xmemdup0.
31566         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
31567         implementation.
31568         * lib/xmalloc.c (xmemdup0): New C implementation.
31569
31570 2008-05-08  Bruno Haible  <bruno@clisp.org>
31571
31572         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
31573
31574 2008-05-07  Eric Blake  <ebb9@byu.net>
31575
31576         Support cross-compilation of <wctype.h>.
31577         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
31578         AC_CACHE_CHECK.
31579
31580 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
31581
31582         * build-aux/vc-list-files: Add support for bzr.
31583
31584 2008-05-03  Jim Meyering  <meyering@redhat.com>
31585
31586         avoid failed assertion with tight malloc
31587         * tests/test-getndelim2.c: Correct an off-by-one assertion.
31588
31589 2008-05-03  Simon Josefsson  <simon@josefsson.org>
31590
31591         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
31592         are needed from arpa/inet.h.
31593         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
31594         Reported by Bruno Haible.
31595
31596 2008-05-02  Jim Meyering  <meyering@redhat.com>
31597
31598         avoid compilation error on FreeBSD 6
31599         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
31600
31601 2008-05-01  Jim Meyering  <meyering@redhat.com>
31602
31603         useless-if-before-free: correct --help's exit status description
31604         * build-aux/useless-if-before-free (usage): Like grep, exit 0
31605         for one or more matches, etc.  Reported by Bruno Haible.
31606
31607         vc-list-files: make the stand-alone gnulib test work
31608         * modules/vc-list-files-tests (configure.ac):
31609         Define and AC_SUBST abs_aux_dir.
31610         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
31611         $(abs_top_srcdir) to each script and having each of them
31612         duplicate the work of setting PATH, set PATH here, using
31613         the new variable, abs_aux_dir instead.
31614         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
31615         * tests/test-vc-list-files-git.sh: Likewise.
31616         Reported by Bruno Haible.
31617
31618 2008-05-01  Bruno Haible  <bruno@clisp.org>
31619
31620         * lib/getndelim2.c (getndelim2): Fix newsize computation during
31621         reallocation. Rename 'done' to 'found_delimiter'.
31622
31623 2008-05-01  Jim Meyering  <meyering@redhat.com>
31624
31625         vc-list-files: accommodate /bin/sh like the one from Solaris 10
31626         * build-aux/vc-list-files: Use `...`, not $(...).
31627
31628 2008-04-30  Jim Meyering  <meyering@redhat.com>
31629
31630         add tests for vc-list-files
31631         * modules/vc-list-files-tests: New module.
31632         * tests/test-vc-list-files-cvs.sh: New file.
31633         * tests/test-vc-list-files-git.sh: New file.
31634
31635         avoid a warning from gcc
31636         * lib/getndelim2.c (IF_LINT): Define.
31637         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
31638
31639         vc-list-files: work properly with build-aux/cvsu, too
31640         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
31641         to all cvs-based clauses.
31642
31643         vc-list-files: work properly in the CVS+awk case, too
31644         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
31645
31646         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
31647         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
31648         take more than one file argument, so .  Add quotes, just in case $dir
31649         ever contains a shell meta-character.  Prompted by Soren Hansen in
31650         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
31651
31652 2008-04-29  Eric Blake  <ebb9@byu.net>
31653
31654         Optimize getndelim2 to use block operations when possible.
31655         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
31656         freadseek, and memchr2.
31657         * lib/getndelim2.c (getndelim2): Use them for block reads.
31658
31659 2008-04-29  Bruno Haible  <bruno@clisp.org>
31660
31661         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
31662         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31663         * modules/inet_ntop (Depends-on): Add extensions.
31664         * modules/inet_pton (Depends-on): Likewise.
31665         Reported by Simon Josefsson.
31666
31667 2008-04-29  Jim Meyering  <meyering@redhat.com>
31668
31669         When the is more than one match in a block, match all of them.
31670         * build-aux/useless-if-before-free: Iterate through each block
31671         until there are no more matches.
31672
31673         Fix broken useless-if-before-free script.
31674         * build-aux/useless-if-before-free: Fix typo: missing "?" after
31675         the expression to match cast of argument to free-like function.
31676
31677 2008-04-29  Eric Blake  <ebb9@byu.net>
31678
31679         Use new header.
31680         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
31681
31682 2008-04-29  Jim Meyering  <meyering@redhat.com>
31683
31684         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
31685         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
31686         by gnulib to exist and to declare e.g., inet_ntop.
31687         Don't include "inet_ntop.h", now removed.
31688
31689         * m4/arpa_inet_h.m4: Remove trailing blanks.
31690
31691 2008-04-29  Eric Blake  <ebb9@byu.net>
31692
31693         Silence valgrind on safe reads beyond potential array bounds.
31694         * lib/rawmemchr.valgrind: New file.
31695         * lib/strchrnul.valgrind: Likewise.
31696         * modules/rawmemchr (Files): Distribute new file.
31697         * modules/strchrnul (Files): Likewise.
31698         Suggested by Bruno Haible.
31699
31700 2008-04-29  Bruno Haible  <bruno@clisp.org>
31701
31702         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
31703         (inet_ntop, inet_pton): Change portability warning's wording.
31704         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
31705         Invoke gl_CHECK_NEXT_HEADERS.
31706         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
31707         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
31708         set ARPA_INET_H.
31709         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31710         * modules/arpa_inet (Description): No longer only for systems that
31711         lack it.
31712         (Depends-on): Add include_next.
31713         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
31714         HAVE_ARPA_INET_H.
31715
31716 2008-04-29  Jim Meyering  <meyering@redhat.com>
31717
31718         * modules/mkdir (License): Re-license as LGPLv2+.
31719
31720 2008-04-29  Bruno Haible  <bruno@clisp.org>
31721
31722         * modules/rawmemchr (Maintainer): Set to Eric.
31723         * modules/strchrnul (Maintainer): Likewise.
31724
31725 2008-04-29  Simon Josefsson  <simon@josefsson.org>
31726
31727         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
31728         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
31729
31730         * modules/arpa_inet (arpa/inet.h): Use them.
31731
31732 2008-04-28  Eric Blake  <ebb9@byu.net>
31733
31734         Test getndelim2.
31735         * modules/getndelim2-tests: New file.
31736         * tests/test-getndelim2.c: Likewise.
31737         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
31738         stream.
31739         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
31740
31741         * MODULES.html.sh: Document new module.
31742
31743 2008-04-20  Bruno Haible  <bruno@clisp.org>
31744
31745         * lib/c-stack.c (die): Use raise.
31746         * modules/c-stack (Depends-on): Add raise.
31747
31748 2008-04-28  Bruno Haible  <bruno@clisp.org>
31749
31750         Expect rpmatch to be declared.
31751         * lib/yesno.c (rpmatch): Remove declaration.
31752
31753         Declare rpmatch.
31754         * lib/stdlib.in.h (rpmatch): New declaration.
31755         * lib/rpmatch.c: Include <stdlib.h> first.
31756         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
31757         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
31758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
31759         HAVE_RPMATCH.
31760         * modules/rpmatch (Depends-on): Add stdlib, extensions.
31761         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31762         (Include): Set to <stdlib.h>.
31763         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
31764         HAVE_RPMATCH.
31765         * NEWS: Document the change.
31766
31767 2008-04-28  Bruno Haible  <bruno@clisp.org>
31768
31769         Change rpmatch to use nl_langinfo when appropriate.
31770         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
31771         (N_): New macro.
31772         (localized_pattern): New function/macro.
31773         (try): Remove match, nomatch arguments. Copy the pattern into safe
31774         memory before caching it.
31775         (rpmatch): Use localized_pattern. Add translator comments.
31776         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
31777         Suggested by Eric Blake.
31778         * modules/rpmatch (Depends-on): Add stdbool.
31779
31780 2008-04-28  Eric Blake  <ebb9@byu.net>
31781
31782         Add rawmemchr module, matching glibc.
31783         * modules/string (Makefile.am): New indicator.
31784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
31785         * lib/string.in.h (rawmemchr): Declare when appropriate.
31786         * modules/rawmemchr: New file.
31787         * m4/rawmemchr.m4: Likewise.
31788         * lib/rawmemchr.c: Likewise.
31789         * modules/rawmemchr-tests: Likewise.
31790         * tests/test-rawmemchr.c: Likewise.
31791         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
31792         module.
31793         * modules/strchrnul (Depends-on): Add rawmemchr.
31794         * lib/strchrnul.c (strchrnul): Optimize a corner case.
31795
31796         Whitespace cleanup.
31797         * tests/test-strchrnul.c: Reindent.
31798         * lib/strchrnul.c: Likewise.
31799
31800         Optimize and test strchrnul.
31801         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
31802         * modules/strchrnul-tests: New file.
31803         * tests/test-strchrnul.c: Likewise.
31804
31805         Remove intprops dependency.
31806         * modules/memchr (Depends-on): Remove intprops.
31807         * modules/memrchr (Depends-on): Likewise.
31808         * modules/memchr2 (Depends-on): Likewise.
31809         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
31810         * lib/memrchr.c (__memrchr): Likewise.
31811         * lib/memrchr2.c (memchr2): Likewise.
31812         Reported by Simon Josefsson.
31813
31814 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31815
31816         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
31817         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31818
31819 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31820
31821         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
31822
31823         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
31824
31825         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
31826
31827         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
31828         declarations.
31829         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
31830
31831         * m4/inet_pton.m4: Don't check for header files.
31832
31833         * m4/inet_ntop.m4: Don't check for header files.
31834
31835 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31836
31837         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
31838         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
31839         trigger for cygwin).
31840         Reported by Bruno Haible  <bruno@clisp.org>.
31841
31842 2008-04-28  Bruno Haible  <bruno@clisp.org>
31843
31844         * doc/posix-functions/strdup.texi: Mention mingw problem.
31845
31846 2008-04-27  Bruno Haible  <bruno@clisp.org>
31847
31848         * modules/stat-time-tests (Depends-on): Add sleep.
31849         * tests/test-stat-time.c (force_unlink): New function.
31850         (cleanup): Use it.
31851         (test_mtime): Remove the ctime related tests.
31852         (test_ctime): New function, containing the ctime related tests.
31853         (main): Call test_ctime, except on native Windows platforms.
31854
31855 2008-04-27  Bruno Haible  <bruno@clisp.org>
31856
31857         * lib/rpmatch.c (rpmatch): Add some comments.
31858         Reported by James Youngman <jay@gnu.org>.
31859
31860 2008-04-27  Bruno Haible  <bruno@clisp.org>
31861
31862         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
31863         quiet NaNs.
31864
31865 2008-04-27  Bruno Haible  <bruno@clisp.org>
31866
31867         Make test-yesno.sh work on mingw.
31868         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
31869         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
31870         (main): Set stdin to binary mode.
31871         * modules/yesno-tests (Depends-on): Add binary-io.
31872
31873 2008-04-27  Bruno Haible  <bruno@clisp.org>
31874
31875         Fix 'isfinite' on x86, x86_64, ia64 platforms.
31876         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
31877         argument that lie outside the IEEE 854 domain.
31878         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
31879         (gl_ISFINITE): Use it.
31880         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
31881
31882 2008-04-27  Bruno Haible  <bruno@clisp.org>
31883
31884         Allow local renaming in config.h.
31885         * lib/memrchr.c (memrchr): Don't undefine outside libc.
31886
31887 2008-04-27  Bruno Haible  <bruno@clisp.org>
31888
31889         * lib/memchr.c (__memchr): Change type of 'i'.
31890         * lib/memchr2.c (memchr2): Likewise.
31891
31892 2008-04-26  Eric Blake  <ebb9@byu.net>
31893         and Bruno Haible  <bruno@clisp.org>
31894
31895         Optimize and test memrchr.
31896         * modules/memrchr (Depends-on): Add intprops.
31897         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
31898         * modules/memrchr-tests: New file.
31899         * tests/test-memrchr.c: New file.
31900
31901 2008-04-26  Bruno Haible  <bruno@clisp.org>
31902
31903         Add tentative support for DragonFly BSD.
31904         * lib/stdio-impl.h: Add macros for DragonFly BSD.
31905         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
31906         fp.
31907         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31908         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
31909         * lib/fpurge.c (fpurge): Likewise.
31910         * lib/freadable.c (freaadable): Likewise.
31911         * lib/freadahead.c (freadahead): Likewise.
31912         * lib/freading.c (freading): Likewise.
31913         * lib/freadptr.c (freadptr): Likewise.
31914         * lib/freadseek.c (freadptrinc): Likewise.
31915         * lib/fseeko.c (fseeko): Likewise.
31916         * lib/fseterr.c (fseterr): Likewise.
31917         * lib/fwritable.c (fwritable): Likewise.
31918         * lib/fwriting.c (fwriting): Likewise.
31919
31920 2008-04-26  Bruno Haible  <bruno@clisp.org>
31921
31922         * lib/stdio-impl.h: New file.
31923         * lib/fbufmode.c: Include stdio-impl.h.
31924         (fbufmode): Use fp_, remove redundant #defines.
31925         * lib/fflush.c: Include stdio-impl.h.
31926         (clear_ungetc_buffer): Remove redundant #defines.
31927         * lib/fpurge.c: Include stdio-impl.h.
31928         (fpurge): Remove redundant #defines.
31929         * lib/freadable.c: Include stdio-impl.h.
31930         (freadable): Remove redundant #defines.
31931         * lib/freadahead.c: Include stdio-impl.h.
31932         (freadahead): Remove redundant #defines.
31933         * lib/freading.c: Include stdio-impl.h.
31934         (freading): Remove redundant #defines.
31935         * lib/freadptr.c: Include stdio-impl.h.
31936         (freadptr): Remove redundant #defines.
31937         * lib/freadseek.c: Include stdio-impl.h.
31938         (freadptrinc): Remove redundant #defines.
31939         * lib/fseeko.c: Include stdio-impl.h.
31940         (rpl_fseeko): Remove redundant #defines.
31941         * lib/fseterr.c: Include stdio-impl.h.
31942         (fseterr): Remove redundant #defines.
31943         * lib/fwritable.c: Include stdio-impl.h.
31944         (fwritable: Remove redundant #defines.
31945         * lib/fwriting.c: Include stdio-impl.h.
31946         (fwriting): Remove redundant #defines.
31947         * modules/fbufmode (Files): Add lib/stdio-impl.h.
31948         * modules/fflush (Files): Likewise.
31949         * modules/fpurge (Files): Likewise.
31950         * modules/freadable (Files): Likewise.
31951         * modules/freadahead (Files): Likewise.
31952         * modules/freading (Files): Likewise.
31953         * modules/freadptr (Files): Likewise.
31954         * modules/freadseek (Files): Likewise.
31955         * modules/fseeko (Files): Likewise.
31956         * modules/fseterr (Files): Likewise.
31957         * modules/fwritable (Files): Likewise.
31958         * modules/fwriting (Files): Likewise.
31959
31960 2008-04-26  Bruno Haible  <bruno@clisp.org>
31961
31962         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31963         restore_seek_optimization, update_fpos_cache): New functions, extracted
31964         from rpl_fflush.
31965         (rpl_fflush): Use them.
31966         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
31967         (gl_REPLACE_FFLUSH): Use it.
31968
31969 2008-04-26  Bruno Haible  <bruno@clisp.org>
31970
31971         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
31972         on Solaris.
31973         * tests/test-xstrtoimax.sh: Likewise.
31974         * tests/test-xstrtoumax.sh: Likewise.
31975         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31976
31977 2008-04-26  Bruno Haible  <bruno@clisp.org>
31978
31979         * modules/memchr-tests: New file.
31980         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
31981
31982 2008-04-26  Eric Blake  <ebb9@byu.net>
31983             Bruno Haible  <bruno@clisp.org>
31984
31985         * lib/memchr.c: Include intprops.h.
31986         (__memchr): Optimize parallel detection of matching bytes. Rename local
31987         variables. Add explanatory comments.
31988
31989 2008-04-26  Bruno Haible  <bruno@clisp.org>
31990
31991         Fix module 'memchr', broken since 2000-10-28.
31992         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
31993
31994 2008-04-26  Bruno Haible  <bruno@clisp.org>
31995
31996         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
31997         comments.
31998
31999 2008-04-25  Eric Blake  <ebb9@byu.net>
32000
32001         Use native fstatat on cygwin 1.7.0.
32002         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
32003         first.
32004
32005 2008-04-23  Eric Blake  <ebb9@byu.net>
32006
32007         Improve memchr2 performance.
32008         * lib/memchr2.c (memchr2): Further optimize parallel detection of
32009         NUL bytes.
32010         * modules/memchr2 (Depends-on): Use intprops.h.
32011
32012 2008-04-23  Simon Josefsson  <simon@josefsson.org>
32013
32014         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
32015         an inline function instead of a CPP macro.  Patch by Ben Pfaff
32016         <blp@cs.stanford.edu>.
32017
32018 2008-04-23  Simon Josefsson  <simon@josefsson.org>
32019
32020         * lib/arpa_inet.in.h: New file.
32021
32022         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
32023         (Makefile.am): Sed in substitute header file.
32024
32025         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
32026         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
32027
32028         * modules/inet_ntop (configure.ac): Use
32029         gl_ARPA_INET_MODULE_INDICATOR.
32030
32031         * modules/inet_pton (configure.ac): Use
32032         gl_ARPA_INET_MODULE_INDICATOR.
32033
32034 2008-04-22  Jim Meyering  <meyering@redhat.com>
32035
32036         * modules/verify (License): Re-license as LGPLv2+.
32037
32038 2008-04-22  Simon Josefsson  <simon@josefsson.org>
32039
32040         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
32041         parameter to void* as per POSIX standard (MinGW uses char*).
32042
32043 2008-04-21  Bruno Haible  <bruno@clisp.org>
32044
32045         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
32046         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
32047         Define to replacements if REPLACE_ISWCNTRL is 1.
32048         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
32049         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
32050         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
32051         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
32052         what it fixes.
32053         * doc/posix-functions/iswalpha.texi: Likewise.
32054         * doc/posix-functions/iswblank.texi: Likewise.
32055         * doc/posix-functions/iswcntrl.texi: Likewise.
32056         * doc/posix-functions/iswdigit.texi: Likewise.
32057         * doc/posix-functions/iswgraph.texi: Likewise.
32058         * doc/posix-functions/iswlower.texi: Likewise.
32059         * doc/posix-functions/iswprint.texi: Likewise.
32060         * doc/posix-functions/iswpunct.texi: Likewise.
32061         * doc/posix-functions/iswspace.texi: Likewise.
32062         * doc/posix-functions/iswupper.texi: Likewise.
32063         * doc/posix-functions/iswxdigit.texi: Likewise.
32064         Reported by Alain Guibert.
32065
32066 2008-04-21  Bruno Haible  <bruno@clisp.org>
32067
32068         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
32069         Patch by Alain Guibert.
32070
32071 2008-04-21  Bruno Haible  <bruno@clisp.org>
32072
32073         Fix test failures on mingw.
32074         * tests/test-xstrtol.c (print_no_progname): New function.
32075         (main): Install it in error_print_progname hook.
32076         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
32077         * tests/test-xstrtoimax.sh: Likewise.
32078         * tests/test-xstrtoumax.sh: Likewise.
32079
32080 2008-04-21  Bruno Haible  <bruno@clisp.org>
32081
32082         Fix test failure on mingw.
32083         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
32084
32085 2008-04-21  Bruno Haible  <bruno@clisp.org>
32086
32087         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
32088         Actually assign a value.
32089
32090 2008-04-20  Bruno Haible  <bruno@clisp.org>
32091
32092         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
32093         take 2.
32094         * lib/canonicalize.c (canonicalize_file_name): Elide if the
32095         'canonicalize-lgpl' module is also used.
32096         * lib/canonicalize-lgpl.c: Undo last change.
32097         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
32098
32099 2008-04-20  Bruno Haible  <bruno@clisp.org>
32100
32101         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
32102         config.h. Provide _mkdir based fallback for mingw.
32103         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
32104         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
32105         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
32106         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
32107         rather than defining mkdir in config.h.
32108         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
32109         (gl_SYS_STAT_H_DEFAULTS): New macro.
32110         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
32111         HAVE_IO_H any more.
32112         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
32113         HAVE_DECL_MKDIR and HAVE_IO_H.
32114
32115 2008-04-20  Bruno Haible  <bruno@clisp.org>
32116
32117         * lib/isapipe.c: Port to native Windows platforms.
32118
32119 2008-04-20  Bruno Haible  <bruno@clisp.org>
32120
32121         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
32122
32123 2008-04-21  Eric Blake  <ebb9@byu.net>
32124
32125         Work around preprocessors that don't handle UINTMAX_MAX.
32126         * lib/memchr2.c (memchr2): Avoid embedded #if.
32127         Reported by Alain Guibert, fix suggested by Bruno Haible.
32128
32129 2008-04-21  Simon Josefsson  <simon@josefsson.org>
32130
32131         * doc/posix-functions/strftime.texi (strftime): Explain better
32132         Windows incompatibility.  Suggested by Micah Cowan
32133         <micah@cowan.name>.
32134
32135 2008-04-20  Bruno Haible  <bruno@clisp.org>
32136
32137         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
32138         unistr/u8-mblen.
32139
32140 2008-04-20  Bruno Haible  <bruno@clisp.org>
32141
32142         Fix test failure on platforms with non-GNU iconv.
32143         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
32144         (U_TO_U8): Use it, rather than u16_to_u8.
32145         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
32146         units at the end of the input string.
32147         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
32148
32149 2008-04-20  Bruno Haible  <bruno@clisp.org>
32150
32151         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
32152         when the resulting length is 0.
32153         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
32154
32155 2008-04-20  Bruno Haible  <bruno@clisp.org>
32156
32157         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
32158         works.
32159         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
32160
32161 2008-04-20  Bruno Haible  <bruno@clisp.org>
32162
32163         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
32164         * modules/tsearch-tests (configure.ac): Test for initstate function.
32165
32166 2008-04-20  Bruno Haible  <bruno@clisp.org>
32167
32168         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
32169         for nlink_t if missing.
32170         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
32171
32172 2008-04-19  Bruno Haible  <bruno@clisp.org>
32173
32174         Work around snprintf bug on Linux libc5.
32175         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
32176         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32177         gl_SNPRINTF_SIZE1.
32178         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32179         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
32180         that test failed.
32181         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
32182         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
32183         * modules/snprintf (Files): Add m4/printf.m4.
32184         * modules/vsnprintf (Files): Likewise.
32185         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
32186         * doc/posix-functions/vsnprintf.texi: Likewise.
32187
32188 2008-04-19  Bruno Haible  <bruno@clisp.org>
32189
32190         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
32191         from 0.0058 to less than 10^-7.
32192
32193 2008-04-19  Bruno Haible  <bruno@clisp.org>
32194
32195         Fix rounding when a precision is given.
32196         * lib/vasnprintf.c (is_borderline): New function.
32197         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
32198         9...9x.
32199         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
32200         %e, %g.
32201         * tests/test-vasprintf-posix.c (test_function): Likewise.
32202         * tests/test-snprintf-posix.h (test_function): Likewise.
32203         * tests/test-sprintf-posix.h (test_function): Likewise.
32204         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
32205         * tests/test-printf-posix.h (test_function): Likewise.
32206         * tests/test-printf-posix.output: Update.
32207         Reported by John Darrington <john@darrington.wattle.id.au> via
32208         Ben Pfaff <blp@cs.stanford.edu>.
32209
32210 2008-04-18  Simon Josefsson  <simon@josefsson.org>
32211
32212         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
32213         Suggested by Bruno Haible <bruno@clisp.org>.
32214
32215 2008-04-17  Bruno Haible  <bruno@clisp.org>
32216
32217         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
32218         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
32219         implementation.
32220         Patch by Bruce Merry <bmerry@gmail.com>.
32221
32222 2008-04-17  Simon Josefsson  <simon@josefsson.org>
32223
32224         * doc/posix-functions/strftime.texi (strftime): Mention that %e
32225         doesn't work under Windows.
32226
32227 2008-04-16  Bruno Haible  <bruno@clisp.org>
32228
32229         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
32230         New macros.
32231         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
32232         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
32233         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
32234         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
32235         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
32236         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
32237         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
32238         macros.
32239         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
32240         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
32241         Northern Sotho, Uighur.
32242
32243 2008-04-16  Bruno Haible  <bruno@clisp.org>
32244
32245         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
32246         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
32247         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
32248         Reported by Daniel Bergström <daniel@octocode.com>.
32249
32250 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
32251             Bruno Haible  <bruno@clisp.org>
32252
32253         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
32254         function.
32255         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
32256         New functions, mostly extracted from gl_locale_name_default.
32257         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
32258
32259 2008-04-16  Eric Blake  <ebb9@byu.net>
32260
32261         Adjust strtod detection to catch glibc 2.7 bug.
32262         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
32263         Reported by John Gatewood Ham.
32264
32265 2008-04-16  Bruno Haible  <bruno@clisp.org>
32266
32267         Add tentative support for Linux libc5.
32268         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
32269         * lib/fpurge.c (fpurge): Likewise.
32270         * lib/freadable.c (freadable): Likewise.
32271         * lib/freadahead.c (freadahead): Likewise.
32272         * lib/freading.c (freading): Likewise.
32273         * lib/freadptr.c (freadptr): Likewise.
32274         * lib/freadseek.c (freadptrinc): Likewise.
32275         * lib/fseeko.c (rpl_fseeko): Likewise.
32276         * lib/fseterr.c (fseterr): Likewise.
32277         * lib/fwritable.c (fwritable): Likewise.
32278         * lib/fwriting.c (fwriting): Likewise.
32279         Reported by Alain Guibert <alguibert+bts@free.fr>.
32280
32281 2008-04-15  Bruno Haible  <bruno@clisp.org>
32282
32283         * modules/mathl (configure.ac): Define module indicator.
32284
32285 2008-04-15  Bruno Haible  <bruno@clisp.org>
32286
32287         * lib/logl.c (logl): Remove unused variables.
32288
32289 2008-04-15  Bruno Haible  <bruno@clisp.org>
32290
32291         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
32292         fails.
32293
32294 2008-04-15  Bruno Haible  <bruno@clisp.org>
32295
32296         * lib/trim.c (trim2): Fix argument of isspace() macro.
32297
32298 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
32299
32300         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
32301         to 0.
32302         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
32303
32304 2008-04-14  Bruno Haible  <bruno@clisp.org>
32305
32306         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
32307         AC_LANG_PROGRAM argument.
32308         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
32309         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
32310         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32311         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32312         * m4/math_h.m4 (gl_MATH_H): Likewise.
32313         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
32314         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32315         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32316         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
32317         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
32318         * m4/regex.m4 (gl_REGEX): Likewise.
32319         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
32320         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
32321         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32322         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
32323         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32324         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32325         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32326         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32327
32328 2008-04-14  Jim Meyering  <meyering@redhat.com>
32329
32330         test-strtod: fix typos: s/abs/fabs/
32331         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
32332
32333 2008-04-13  Bruno Haible  <bruno@clisp.org>
32334
32335         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
32336         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
32337         module is also used and while not building the reloc-wrapper.
32338
32339 2008-04-13  Bruno Haible  <bruno@clisp.org>
32340
32341         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
32342
32343 2008-04-13  Bruno Haible  <bruno@clisp.org>
32344
32345         Fix AIX compilation failure introduced on 2008-04-02.
32346         * tests/test-frexp.c (exp): Undefine before redefining.
32347         * tests/test-frexpl.c (exp): Likewise.
32348
32349 2008-04-13  Bruno Haible  <bruno@clisp.org>
32350
32351         Work around a HP-UX stdio bug.
32352         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
32353         * tests/test-ftello.c (main): Likewise.
32354         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
32355         * doc/posix-functions/ftello.texi: Likewise.
32356
32357 2008-04-13  Bruno Haible  <bruno@clisp.org>
32358
32359         Make test-signbit pass on HP-UX/hppa.
32360         * tests/test-signbit.c (minus_zerol): New variable.
32361         (test_signbitl): Use it.
32362
32363 2008-04-13  Bruno Haible  <bruno@clisp.org>
32364
32365         Make truncl work on OSF/1 4.0.
32366         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
32367         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32368         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
32370         HAVE_DECL_TRUNCL.
32371         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
32372         HAVE_DECL_TRUNCL.
32373         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
32374
32375 2008-04-13  Bruno Haible  <bruno@clisp.org>
32376
32377         * lib/unictype.h: Remove trailing comma from enumeration definitions.
32378
32379 2008-04-13  Bruno Haible  <bruno@clisp.org>
32380
32381         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
32382         expression, so as to avoid HP-UX 11 cc compiler bug.
32383
32384 2008-04-13  Bruno Haible  <bruno@clisp.org>
32385
32386         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
32387
32388 2008-04-13  Bruno Haible  <bruno@clisp.org>
32389
32390         * lib/git-merge-changelog.c: Remove empty declaration outside of
32391         functions.
32392
32393 2008-04-13  Bruno Haible  <bruno@clisp.org>
32394
32395         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
32396
32397 2008-04-13  Bruno Haible  <bruno@clisp.org>
32398
32399         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
32400         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
32401         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
32402         also if it exists but lacks definitions of the SHUT_* macros.
32403         * modules/sys_socket (Description): Update.
32404         Reported by Elbert Pol <e.pol@chello.nl>.
32405
32406 2008-04-13  Bruno Haible  <bruno@clisp.org>
32407
32408         * lib/localcharset.c (OS2): Don't redefine if already defined.
32409         Reported by Elbert Pol <e.pol@chello.nl>.
32410
32411 2008-04-13  Bruno Haible  <bruno@clisp.org>
32412
32413         * lib/binary-io.h [__EMX__]: Include <io.h>.
32414         Reported by Elbert Pol <e.pol@chello.nl>.
32415
32416 2008-04-12  Bruno Haible  <bruno@clisp.org>
32417
32418         * lib/fpucw.h: Enable the definitions also for x86_64.
32419         Needed for NetBSD/x86_64.
32420         Reported by Thomas Klausner <tk@giga.or.at>.
32421
32422 2008-04-12  Bruno Haible  <bruno@clisp.org>
32423
32424         * tests/test-strtod.c: Include isnand.h.
32425         (main): Use isnand instead of isnan.
32426         Reported by Jim Meyering.
32427
32428 2008-04-12  Bruno Haible  <bruno@clisp.org>
32429
32430         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
32431         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32432
32433 2008-04-12  Jim Meyering  <meyering@redhat.com>
32434
32435         * m4/math_h.m4 (gl_MATH_H): Fix typos.
32436
32437 2008-04-12  Bruno Haible  <bruno@clisp.org>
32438
32439         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
32440         Reported by Elbert Pol <e.pol@chello.nl>.
32441
32442 2008-04-12  Eric Blake  <ebb9@byu.net>
32443
32444         Work around Solaris 10 math.h bug.
32445         * m4/math_h.m4 (gl_MATH_H): Check for bug.
32446         (gl_MATH_H_DEFAULTS): Set up default.
32447         * modules/math (Makefile.am): Replace new indicators.
32448         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
32449         * tests/test-math.c (main): Test this.
32450         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
32451         * doc/posix-headers/math.texi (math.h): Mention bug.
32452         Reported by Nelson H. F. Beebe and Jim Meyering.
32453
32454 2008-04-11  Bruno Haible  <bruno@clisp.org>
32455
32456         Adapt to future versions of Apple GCC.
32457         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
32458         Reported by Peter O'Gorman <peter@pogma.com>.
32459
32460 2008-04-11  Bruno Haible  <bruno@clisp.org>
32461
32462         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
32463
32464 2008-04-11  Bruno Haible  <bruno@clisp.org>
32465
32466         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
32467
32468         * modules/getaddrinfo-tests (Makefile.am): Define
32469         test_getaddrinfo_LDADD.
32470
32471 2008-04-11  Bruno Haible  <bruno@clisp.org>
32472
32473         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
32474         (init): Fix syntax error.
32475         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
32476         is declared.
32477
32478 2008-04-11  Bruno Haible  <bruno@clisp.org>
32479
32480         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
32481         * modules/glob (Depends-on): Add stdbool.
32482
32483 2008-04-11  Bruno Haible  <bruno@clisp.org>
32484
32485         * lib/trim.c: Include <string.h>.
32486
32487 2008-04-11  Eric Blake  <ebb9@byu.net>
32488
32489         Avoid compile failure on OS/2.
32490         * lib/regex_internal.h (internal_function): Disable optimization
32491         on OS/2 (__EMX__), where it caused compiler error.
32492         Reported by Elbert Pol.
32493
32494 2008-04-11  Bruno Haible  <bruno@clisp.org>
32495
32496         Flush the standard error stream before aborting. Needed on mingw.
32497         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
32498         * tests/test-array_list.c (ASSERT): Likewise.
32499         * tests/test-array_oset.c (ASSERT): Likewise.
32500         * tests/test-avltree_list.c (ASSERT): Likewise.
32501         * tests/test-avltree_oset.c (ASSERT): Likewise.
32502         * tests/test-avltreehash_list.c (ASSERT): Likewise.
32503         * tests/test-binary-io.c (ASSERT): Likewise.
32504         * tests/test-byteswap.c (ASSERT): Likewise.
32505         * tests/test-c-ctype.c (ASSERT): Likewise.
32506         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
32507         * tests/test-c-strcasestr.c (ASSERT): Likewise.
32508         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
32509         * tests/test-c-strstr.c (ASSERT): Likewise.
32510         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
32511         * tests/test-canonicalize.c (ASSERT): Likewise.
32512         * tests/test-carray_list.c (ASSERT): Likewise.
32513         * tests/test-ceilf1.c (ASSERT): Likewise.
32514         * tests/test-ceilf2.c (ASSERT): Likewise.
32515         * tests/test-ceill.c (ASSERT): Likewise.
32516         * tests/test-count-one-bits.c (ASSERT): Likewise.
32517         * tests/test-fbufmode.c (ASSERT): Likewise.
32518         * tests/test-fflush2.c (ASSERT): Likewise.
32519         * tests/test-floorf1.c (ASSERT): Likewise.
32520         * tests/test-floorf2.c (ASSERT): Likewise.
32521         * tests/test-floorl.c (ASSERT): Likewise.
32522         * tests/test-fopen.c (ASSERT): Likewise.
32523         * tests/test-fpending.c (ASSERT): Likewise.
32524         * tests/test-fprintf-posix.c (ASSERT): Likewise.
32525         * tests/test-fpurge.c (ASSERT): Likewise.
32526         * tests/test-freadable.c (ASSERT): Likewise.
32527         * tests/test-freadahead.c (ASSERT): Likewise.
32528         * tests/test-freading.c (ASSERT): Likewise.
32529         * tests/test-freadptr.c (ASSERT): Likewise.
32530         * tests/test-freadptr2.c (ASSERT): Likewise.
32531         * tests/test-freadseek.c (ASSERT): Likewise.
32532         * tests/test-freopen.c (ASSERT): Likewise.
32533         * tests/test-frexp.c (ASSERT): Likewise.
32534         * tests/test-frexpl.c (ASSERT): Likewise.
32535         * tests/test-fseek.c (ASSERT): Likewise.
32536         * tests/test-fseeko.c (ASSERT): Likewise.
32537         * tests/test-fstrcmp.c (ASSERT): Likewise.
32538         * tests/test-ftell.c (ASSERT): Likewise.
32539         * tests/test-ftello.c (ASSERT): Likewise.
32540         * tests/test-func.c (ASSERT): Likewise.
32541         * tests/test-fwritable.c (ASSERT): Likewise.
32542         * tests/test-fwriting.c (ASSERT): Likewise.
32543         * tests/test-getdelim.c (ASSERT): Likewise.
32544         * tests/test-getline.c (ASSERT): Likewise.
32545         * tests/test-i-ring.c (ASSERT): Likewise.
32546         * tests/test-iconv-utf.c (ASSERT): Likewise.
32547         * tests/test-iconv.c (ASSERT): Likewise.
32548         * tests/test-isfinite.c (ASSERT): Likewise.
32549         * tests/test-isnand.c (ASSERT): Likewise.
32550         * tests/test-isnanf.c (ASSERT): Likewise.
32551         * tests/test-isnanl.h (ASSERT): Likewise.
32552         * tests/test-ldexpl.c (ASSERT): Likewise.
32553         * tests/test-linked_list.c (ASSERT): Likewise.
32554         * tests/test-linkedhash_list.c (ASSERT): Likewise.
32555         * tests/test-localename.c (ASSERT): Likewise.
32556         * tests/test-lseek.c (ASSERT): Likewise.
32557         * tests/test-mbscasecmp.c (ASSERT): Likewise.
32558         * tests/test-mbscasestr1.c (ASSERT): Likewise.
32559         * tests/test-mbscasestr2.c (ASSERT): Likewise.
32560         * tests/test-mbscasestr3.c (ASSERT): Likewise.
32561         * tests/test-mbscasestr4.c (ASSERT): Likewise.
32562         * tests/test-mbschr.c (ASSERT): Likewise.
32563         * tests/test-mbscspn.c (ASSERT): Likewise.
32564         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
32565         * tests/test-mbspbrk.c (ASSERT): Likewise.
32566         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
32567         * tests/test-mbsrchr.c (ASSERT): Likewise.
32568         * tests/test-mbsspn.c (ASSERT): Likewise.
32569         * tests/test-mbsstr1.c (ASSERT): Likewise.
32570         * tests/test-mbsstr2.c (ASSERT): Likewise.
32571         * tests/test-mbsstr3.c (ASSERT): Likewise.
32572         * tests/test-memchr2.c (ASSERT): Likewise.
32573         * tests/test-memmem.c (ASSERT): Likewise.
32574         * tests/test-open.c (ASSERT): Likewise.
32575         * tests/test-printf-frexp.c (ASSERT): Likewise.
32576         * tests/test-printf-frexpl.c (ASSERT): Likewise.
32577         * tests/test-printf-posix.c (ASSERT): Likewise.
32578         * tests/test-quotearg.c (ASSERT): Likewise.
32579         * tests/test-rbtree_list.c (ASSERT): Likewise.
32580         * tests/test-rbtree_oset.c (ASSERT): Likewise.
32581         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
32582         * tests/test-round1.c (ASSERT): Likewise.
32583         * tests/test-roundf1.c (ASSERT): Likewise.
32584         * tests/test-roundl.c (ASSERT): Likewise.
32585         * tests/test-signbit.c (ASSERT): Likewise.
32586         * tests/test-sleep.c (ASSERT): Likewise.
32587         * tests/test-snprintf-posix.c (ASSERT): Likewise.
32588         * tests/test-snprintf.c (ASSERT): Likewise.
32589         * tests/test-sprintf-posix.c (ASSERT): Likewise.
32590         * tests/test-stat-time.c (ASSERT): Likewise.
32591         * tests/test-strcasestr.c (ASSERT): Likewise.
32592         * tests/test-strerror.c (ASSERT): Likewise.
32593         * tests/test-striconv.c (ASSERT): Likewise.
32594         * tests/test-striconveh.c (ASSERT): Likewise.
32595         * tests/test-striconveha.c (ASSERT): Likewise.
32596         * tests/test-strsignal.c (ASSERT): Likewise.
32597         * tests/test-strstr.c (ASSERT): Likewise.
32598         * tests/test-strtod.c (ASSERT): Likewise.
32599         * tests/test-trunc1.c (ASSERT): Likewise.
32600         * tests/test-trunc2.c (ASSERT): Likewise.
32601         * tests/test-truncf1.c (ASSERT): Likewise.
32602         * tests/test-truncf2.c (ASSERT): Likewise.
32603         * tests/test-truncl.c (ASSERT): Likewise.
32604         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
32605         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
32606         * tests/test-vasnprintf.c (ASSERT): Likewise.
32607         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
32608         * tests/test-vasprintf.c (ASSERT): Likewise.
32609         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
32610         * tests/test-vprintf-posix.c (ASSERT): Likewise.
32611         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
32612         * tests/test-vsnprintf.c (ASSERT): Likewise.
32613         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
32614         * tests/test-wcwidth.c (ASSERT): Likewise.
32615         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
32616         * tests/test-xprintf-posix.c (ASSERT): Likewise.
32617         * tests/test-xvasprintf.c (ASSERT): Likewise.
32618         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
32619         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
32620         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
32621         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
32622         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
32623         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
32624         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
32625         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
32626         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
32627         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
32628         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
32629         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
32630         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
32631         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
32632         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
32633         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
32634         * tests/unictype/test-block_list.c (ASSERT): Likewise.
32635         * tests/unictype/test-block_of.c (ASSERT): Likewise.
32636         * tests/unictype/test-block_test.c (ASSERT): Likewise.
32637         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
32638         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
32639         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
32640         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
32641         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
32642         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
32643         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
32644         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
32645         * tests/unictype/test-combining.c (ASSERT): Likewise.
32646         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
32647         * tests/unictype/test-digit.c (ASSERT): Likewise.
32648         * tests/unictype/test-mirror.c (ASSERT): Likewise.
32649         * tests/unictype/test-numeric.c (ASSERT): Likewise.
32650         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
32651         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
32652         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
32653         * tests/unictype/test-scripts.c (ASSERT): Likewise.
32654         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
32655         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
32656         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
32657         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
32658         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
32659         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
32660         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
32661         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
32662         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
32663         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
32664         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
32665         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
32666         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
32667         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
32668         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
32669         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
32670         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
32671         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
32672         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
32673         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
32674         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
32675         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
32676         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
32677         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
32678         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
32679         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
32680         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
32681         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
32682         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
32683         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
32684         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
32685         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
32686         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
32687         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
32688         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
32689         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
32690         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
32691         Reported by Eric Blake.
32692
32693 2008-04-11  Bruno Haible  <bruno@clisp.org>
32694
32695         * lib/wchar.in.h: Tweak comment.
32696
32697 2008-04-11  Bruno Haible  <bruno@clisp.org>
32698
32699         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
32700         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
32701         gl_COMMON.
32702         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
32703
32704 2008-04-11  Bruno Haible  <bruno@clisp.org>
32705
32706         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
32707
32708 2008-04-11  Simon Josefsson  <simon@josefsson.org>
32709
32710         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
32711         of attempting to use non-existing /dev/*random.  Based on patch
32712         from Adam Strzelecki <ono@java.pl> in
32713         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
32714
32715 2008-04-08  Bruno Haible  <bruno@clisp.org>
32716
32717         Add tentative support for emx+gcc.
32718         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
32719         * lib/fpurge.c (fpurge): Likewise.
32720         * lib/freadable.c (freadable): Likewise.
32721         * lib/freadahead.c (freadahead): Likewise.
32722         * lib/freading.c (freading): Likewise.
32723         * lib/freadptr.c (freadptr): Likewise.
32724         * lib/freadseek.c (freadptrinc): Likewise.
32725         * lib/fseeko.c (rpl_fseeko): Likewise.
32726         * lib/fseterr.c (fseterr): Likewise.
32727         * lib/fwritable.c (fwritable): Likewise.
32728         * lib/fwriting.c (fwriting): Likewise.
32729         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
32730
32731 2008-04-09  Eric Blake  <ebb9@byu.net>
32732
32733         Avoid some autoconf warnings.
32734         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
32735         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
32736         * m4/afs.m4 (gl_AFS): Likewise.
32737         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
32738         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
32739         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32740         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
32741         (gl_INTEGER_TYPE_SUFFIX): Likewise.
32742         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
32743         (AC_CHECK_DECLS_ONCE): Likewise.
32744         Rename file...
32745         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
32746         gnulib-tool requires autoconf 2.59 or better.
32747         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
32748
32749 2008-04-08  Eric Blake  <ebb9@byu.net>
32750
32751         Use 'git describe --match' if present (added in git 1.5.5).
32752         * build-aux/git-version-gen: Limit result to tags that match 'v*'
32753         if possible.
32754
32755 2008-04-08  Bruno Haible  <bruno@clisp.org>
32756
32757         Add tentative support for OpenServer.
32758         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
32759         _ptr, _cnt.
32760         * lib/fpurge.c (fpurge): Likewise.
32761         * lib/freadable.c (freadable): Likewise.
32762         * lib/freadahead.c (freadahead): Likewise.
32763         * lib/freading.c (freading): Likewise.
32764         * lib/freadptr.c (freadptr): Likewise.
32765         * lib/freadseek.c (freadptrinc): Likewise.
32766         * lib/fseeko.c (rpl_fseeko): Likewise.
32767         * lib/fseterr.c (fseterr): Likewise.
32768         * lib/fwritable.c (fwritable): Likewise.
32769         * lib/fwriting.c (fwriting): Likewise.
32770         Reported by Roger Cornelius <rac@tenzing.org> and
32771         Brian K. White <brian@aljex.com>.
32772
32773 2008-04-06  Jim Meyering  <meyering@redhat.com>
32774
32775         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
32776
32777 2008-04-06  Bruno Haible  <bruno@clisp.org>
32778
32779         Avoid possible error with non-ASCII bytes in UTF-8 locales.
32780         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
32781         * tests/test-printf-posix.sh: Likewise.
32782         * tests/test-vfprintf-posix.sh: Likewise.
32783         * tests/test-vprintf-posix.sh: Likewise.
32784         * tests/test-xprintf-posix.sh: Likewise.
32785
32786 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32787
32788         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
32789         hide error from 'ls', needed on OS/2.
32790         Report by Elbert Pol <elbert.pol@gmail.com>.
32791
32792 2008-04-04  Eric Blake  <ebb9@byu.net>
32793
32794         Make test-fseeko.c failures meaningful.
32795         * tests/test-fseeko.c: Print line number on failure.
32796         * tests/test-fseek.c: Likewise.
32797         Reported by Nelson H. F. Beebe.
32798
32799         Improve strtod bug detection check.
32800         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
32801         required for Solaris 10.
32802         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
32803
32804 2008-04-04  Bruno Haible  <bruno@clisp.org>
32805
32806         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
32807         by m4/setenv.m4.
32808
32809 2008-04-03  Eric Blake  <ebb9@byu.net>
32810
32811         Ensure sane .version contents.
32812         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
32813         version string.
32814         * build-aux/git-version-gen: Improve documentation.
32815
32816         Make GNU make output nicer.
32817         * top/GNUmakefile [!_have-Makefile]: Add dependency on
32818         MAKECMDGOALS to enforce message for all command line targets.  Set
32819         srcdir for use in maint.mk.
32820
32821         Another maintainer tweak.
32822         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
32823         a target that regenerates version.
32824
32825 2008-04-03  Jim Meyering  <meyering@redhat.com>
32826
32827         vc-list-files: don't cause coreutils "make po-check" failure
32828         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
32829
32830 2008-04-03  Eric Blake  <ebb9@byu.net>
32831
32832         Allow VPATH usage of vc-list-files.
32833         * build-aux/vc-list-files (scriptversion): Add timestamp.
32834         (options): Add --help, --version, -C.
32835         (CVS): Support installed cvsu.
32836
32837 2008-04-02  Bruno Haible  <bruno@clisp.org>
32838
32839         Avoid some "statement with no effect" warnings from gcc.
32840         * tests/test-wctype.c (main): Explicitly ignore unused values.
32841         Reported by Jim Meyering.
32842
32843 2008-04-02  Jim Meyering  <meyering@redhat.com>
32844
32845         Avoid some warnings from "gcc -Wshadow".
32846         * tests/test-frexp.c (exp): Define to a different identifier.
32847         * tests/test-frexpl.c (exp): Likewise.
32848
32849 2008-04-03  Jim Meyering  <meyering@redhat.com>
32850
32851         bootstrap: remove dangling *.[ch] symlinks from lib
32852         * build-aux/bootstrap [dangling symlink removal]: Move find's
32853         -depth option to precede all others, to avoid a warning.
32854         Remove *.[ch] files too, and from "$source_base" (usually lib/).
32855
32856 2008-04-02  Bruno Haible  <bruno@clisp.org>
32857
32858         Avoid some warnings from "gcc -Wshadow".
32859         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
32860         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
32861         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
32862         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
32863         Reported by Jim Meyering.
32864
32865 2008-04-01  Bruno Haible  <bruno@clisp.org>
32866
32867         Fix test to work on IRIX 6.5 with cc.
32868         * tests/test-math.c (numeric_equal): New function.
32869         (main): Use it.
32870
32871 2008-04-01  Bruno Haible  <bruno@clisp.org>
32872
32873         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
32874
32875 2008-04-01  Bruno Haible  <bruno@clisp.org>
32876
32877         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
32878         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32879         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
32880         (Depends-on): Remove math.
32881
32882         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
32883         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32884         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
32885         (Depends-on): Remove math.
32886
32887         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
32888         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32889         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
32890         (Depends-on): Remove math.
32891         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
32892         (Depends-on): Remove math.
32893
32894         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
32895         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32896         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
32897         (Depends-on): Remove math.
32898         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
32899         (Depends-on): Remove math.
32900
32901         * tests/test-round1.c: Include nan.h.
32902         (main): Use NaNd instead of NAN.
32903         * modules/round-tests (Files): Add tests/nan.h.
32904
32905         * tests/test-trunc1.c: Include nan.h.
32906         (main): Use NaNd instead of NAN.
32907         * modules/trunc-tests (Files): Add tests/nan.h.
32908
32909         * tests/test-roundf1.c: Include nan.h.
32910         (main): Use NaNf instead of NAN.
32911         * modules/roundf-tests (Files): Add tests/nan.h.
32912
32913         * tests/test-truncf1.c: Include nan.h.
32914         (main): Use NaNf instead of NAN.
32915         * modules/truncf-tests (Files): Add tests/nan.h.
32916
32917         * tests/test-ceilf1.c: Include nan.h.
32918         (main): Use NaNf instead of NAN.
32919         * modules/ceilf-tests (Files): Add tests/nan.h.
32920
32921         * tests/test-floorf1.c: Include nan.h.
32922         (main): Use NaNf instead of NAN.
32923         * modules/floorf-tests (Files): Add tests/nan.h.
32924
32925         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
32926         (main): Use NaNf instead of NAN.
32927         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
32928
32929         * tests/test-isnand.c: Include nan.h instead of <math.h>.
32930         (main): Use NaNd instead of NAN.
32931         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
32932
32933         * tests/test-frexp.c: Include nan.h.
32934         (main): Use NaNd instead of NAN.
32935         * modules/frexp-tests (Files): Add tests/nan.h.
32936
32937         * lib/isnan.c: Don't include <math.h>.
32938         (FUNC): Don't use NAN macro.
32939         * modules/isnand-nolibm (Depends-on): Remove math.
32940         * modules/isnanf-nolibm (Depends-on): Remove math.
32941         * modules/isnanl (Depends-on): Remove math.
32942         * modules/isnanl-nolibm (Depends-on): Remove math.
32943
32944         * tests/nan.h: New file.
32945
32946 2008-04-01  Eric Blake  <ebb9@byu.net>
32947
32948         Fix typos.
32949         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
32950         values to be the right type.
32951
32952         For now, cater to gnulib strtod inaccuracies.
32953         * tests/test-strtod.c (main): Allow 1-ulp error on expected
32954         fractional results.  While not as nice from a QoI perspective, it
32955         is a quicker patch than correctly implementing decimal to binary
32956         rounding.
32957
32958 2008-03-31  Eric Blake  <ebb9@byu.net>
32959
32960         Guarantee a definition of NAN.
32961         * lib/math.in.h (NAN): Define if missing.
32962         * tests/test-math.c (main): Test it.
32963         * doc/posix-headers/math.texi (math.h): Document this.
32964         * lib/isnan.c (rpl_isnand): Use it.
32965         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
32966         * tests/test-floorf1.c (NaN): Likewise.
32967         * tests/test-frexp.c (NaN): Likewise.
32968         * tests/test-isnand.c (NaN): Likewise.
32969         * tests/test-isnanf.c (NaN): Likewise.
32970         * tests/test-round1.c (NaN): Likewise.
32971         * tests/test-roundf1.c (NaN): Likewise.
32972         * tests/test-snprintf-posix.h (NaN): Likewise.
32973         * tests/test-sprintf-posix.h (NaN): Likewise.
32974         * tests/test-trunc1.c (NaN): Likewise.
32975         * tests/test-truncf1.c (NaN): Likewise.
32976         * tests/test-vasnprintf-posix.c (NaN): Likewise.
32977         * tests/test-vasprintf-posix.c (NaN): Likewise.
32978         * modules/isnand-nolibm (Depends-on): Add math.
32979         * modules/isnanf-nolibm (Depends-on): Likewise.
32980         * modules/isnanl (Depends-on): Likewise.
32981         * modules/isnanl-nolibm (Depends-on): Likewise.
32982         * modules/snprintf-posix-tests (Depends-on): Likewise.
32983         * modules/sprintf-posix-tests (Depends-on): Likewise.
32984         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
32985         * modules/vsprintf-posix-tests (Depends-on): Likewise.
32986         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
32987         * modules/vasprintf-posix-tests (Depends-on): Likewise.
32988
32989 2008-03-31  Bruno Haible  <bruno@clisp.org>
32990
32991         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
32992         * doc/posix-functions/strtod.texi: Likewise.
32993
32994 2008-03-31  Bruno Haible  <bruno@clisp.org>
32995
32996         * tests/test-strtod.c (main): Don't use C99 syntax.
32997
32998 2008-03-31  Bruno Haible  <bruno@clisp.org>
32999
33000         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
33001         Reported by Eric Blake.
33002
33003 2008-03-31  Jim Meyering  <meyering@redhat.com>
33004
33005         Don't compare actual signbit return values.
33006         * tests/test-strtod.c (main): Rather, compare only their
33007         zero/non-zero nature.
33008
33009 2008-03-31  Eric Blake  <ebb9@byu.net>
33010
33011         More strtod documentation.
33012         * doc/posix-functions/strtod.texi (strtod): Interpret more test
33013         failures as distinct bugs.
33014
33015 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
33016
33017         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
33018         Problem reported by Erik Benada in
33019         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
33020
33021 2008-03-30  Bruno Haible  <bruno@clisp.org>
33022
33023         * tests/test-strtod.c: Add comments about which assertion fails on which
33024         platform.
33025         * doc/posix-functions/strtod.texi: Add info about many more platforms.
33026
33027 2008-03-30  Eric Blake  <ebb9@byu.net>
33028
33029         Test signbit behavior on zeros.
33030         * tests/test-signbit.c (test_signbitf): Add tests for zero.
33031         (test_signbitd, test_signbitl): Likewise.
33032
33033         More strtod touchups.
33034         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
33035         sign of negative underflow, for now.  Use .5, not .1.
33036         * doc/posix-functions/strtod.texi (strtod): Mention these
33037         limitations.
33038         Reported by Jim Meyering.
33039
33040 2008-03-30  Bruno Haible  <bruno@clisp.org>
33041
33042         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
33043         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
33044
33045 2008-03-30  Bruno Haible  <bruno@clisp.org>
33046
33047         Avoid failure when attempting to return empty iconv results on some
33048         platforms.
33049         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
33050         allocation, don't report ENOMEM when the resulting string is empty.
33051
33052 2008-03-30  Bruno Haible  <bruno@clisp.org>
33053
33054         Fix buffer overrun.
33055         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
33056         Don't consider the width for tmp_length. Check count against tmp_length
33057         before doing the padding. Ensure enough allocation during padding.
33058
33059 2008-03-30  Eric Blake  <ebb9@byu.net>
33060
33061         strtod touchups.
33062         * lib/strtod.c (strtod): Avoid compiler warnings.
33063         Reported by Jim Meyering.
33064
33065 2008-03-30  Bruno Haible  <bruno@clisp.org>
33066
33067         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
33068         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
33069         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
33070         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
33071         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
33072         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
33073         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
33074         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
33075
33076         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
33077         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
33078         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
33079         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
33080         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
33081         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
33082         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
33083         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
33084
33085         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
33086         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
33087         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
33088         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
33089         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
33090         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
33091         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
33092         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
33093
33094         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
33095         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
33096
33097         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
33098         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
33099
33100         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
33101         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
33102
33103         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
33104         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
33105         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
33106
33107         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
33108         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
33109         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
33110
33111         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
33112         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
33113         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
33114
33115         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
33116         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
33117         * modules/vasprintf (Depends-on): Add EOVERFLOW.
33118
33119         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
33120         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
33121         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
33122         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
33123         (Depends-on): Add EOVERFLOW.
33124         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
33125         (Depends-on): Add EOVERFLOW.
33126         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
33127         (Depends-on): Add EOVERFLOW.
33128         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
33129         (Depends-on): Add EOVERFLOW.
33130         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
33131         (Depends-on): Add EOVERFLOW.
33132         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
33133         (Depends-on): Add EOVERFLOW.
33134         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
33135         (Depends-on): Add EOVERFLOW.
33136         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
33137         (Depends-on): Add EOVERFLOW.
33138
33139         * lib/sprintf.c (EOVERFLOW): Remove fallback.
33140         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
33141         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
33142
33143         * lib/snprintf.c (EOVERFLOW): Remove fallback.
33144         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
33145         * modules/snprintf (Depends-on): Add EOVERFLOW.
33146
33147         * lib/poll.c (EOVERFLOW): Remove fallback.
33148         * modules/poll (Depends-on): Add EOVERFLOW.
33149
33150         * lib/getugroups.c (EOVERFLOW): Remove fallback.
33151         * modules/getugroups (Depends-on): Add EOVERFLOW.
33152
33153         * lib/getdelim.c (EOVERFLOW): Remove fallback.
33154         * modules/getdelim (Depends-on): Add EOVERFLOW.
33155
33156         * lib/ftell.c (EOVERFLOW): Remove fallback.
33157         * modules/ftell (Depends-on): Add EOVERFLOW.
33158
33159         * lib/fprintf.c (EOVERFLOW): Remove fallback.
33160         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
33161         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
33162
33163         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
33164
33165         * modules/EOVERFLOW-tests: New file.
33166         * tests/test-EOVERFLOW.c: New file.
33167
33168         * modules/EOVERFLOW: New file.
33169         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
33170
33171 2008-03-30  Bruno Haible  <bruno@clisp.org>
33172
33173         Fix bug introduced on 2007-06-10.
33174         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
33175         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
33176
33177 2008-03-30  Bruno Haible  <bruno@clisp.org>
33178
33179         Improve freadseek's efficiency after ungetc.
33180         * lib/freadseek.c: Include freadahead.h.
33181         (freadptrinc): New function, extracted from freadseek.
33182         (freadseek): Use it in a loop. Use freadahead to determine the number
33183         of loop iterations.
33184         * modules/freadseek (Depends-on): Add freadahead.
33185         (configure.ac): Require AC_C_INLINE.
33186
33187 2008-03-30  Bruno Haible  <bruno@clisp.org>
33188
33189         * lib/freadseek.c (freadseek): Don't ignore the return value of
33190         freadptr.
33191
33192 2008-03-29  Eric Blake  <ebb9@byu.net>
33193
33194         Add hex float support.
33195         * modules/strtod (Depends-on): Add c-ctype.
33196         (Link): Mention POW_LIB.
33197         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
33198         whitespace between 'e' and exponent.
33199         * tests/test-strtod.c (main): Enable hex float tests.
33200         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
33201         now provides.
33202
33203         Document various strtod bugs, with some fixes.
33204         * doc/posix-functions/strtod.texi (strtod): Document bugs with
33205         "-0x", "inf", "nan", and hex constants.
33206         * doc/posix-functions/atof.texi (atof): Likewise.
33207         * modules/stdlib (Makefile.am): Support strtod.
33208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
33209         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
33210         detect additional strtod bugs.
33211         * lib/stdlib.in.h (rpl_strtod): Add declarations.
33212         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
33213         bool where appropriate.  Parse 'inf' and 'nan'.
33214         * tests/test-strtod.c: New file.
33215         * modules/strtod (Depends-on): Add stdbool, stdlib.
33216         (configure.ac): Turn on module indicator.
33217         * modules/strtod-tests: New module.
33218
33219 2008-03-29  Eric Blake  <ebb9@byu.net>
33220
33221         Fix ftell on mingw.
33222         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
33223         * modules/ftell-tests (Depends-on): Add binary-io.
33224         * modules/ftello-tests (Depends-on): Likewise.
33225         * tests/test-ftell.c (main): Enhance test to cover behavior after
33226         ungetc.  Enforce binary mode.
33227         * tests/test-ftello.c (main): Likewise.
33228
33229         Pass test-freadseek on cygwin.
33230         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
33231         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
33232         ungetc buffer.
33233
33234         * tests/test-fflush2.c (main): Fix typo.
33235
33236 2008-03-29  Bruno Haible  <bruno@clisp.org>
33237
33238         * tests/test-fflush2.c (main): Temporarily disable the contents of
33239         this test.
33240         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
33241         Reported by Eric Blake.
33242
33243 2008-03-28  Simon Josefsson  <simon@josefsson.org>
33244
33245         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
33246         (GC_SHA224_DIGEST_SIZE): Add.
33247
33248         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
33249         (gc_hash_digest_length): Likewise.
33250         (gc_hash_buffer): Likewise.
33251
33252 2008-03-25  Bruno Haible  <bruno@clisp.org>
33253
33254         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
33255         detail which gettext release to use.
33256         Reported by Simon Josefsson.
33257
33258 2008-03-26  Jim Meyering  <meyering@redhat.com>
33259
33260         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
33261         * modules/gnumakefile (clean-GNUmakefile): Also, use
33262         test ... && ... || : syntax rather than if-then ... fi.
33263
33264         gnumakefile: Don't double-quote-expand $(VPATH) value.
33265         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
33266
33267 2008-03-24  Eric Blake  <ebb9@byu.net>
33268
33269         Alter GNUmakefile to install into top directory.
33270         * modules/maintainer-makefile: Split, and add dependency...
33271         * modules/gnumakefile: to this new module.
33272         * build-aux/GNUmakefile: Move...
33273         * top/GNUmakefile: ...here.
33274         * build-aux/maint.mk: Move...
33275         * top/maint.mk: ...here.
33276         * MODULES.html.sh (Support for maintaining...): Document new
33277         module.
33278
33279 2008-03-23  Bruno Haible  <bruno@clisp.org>
33280
33281         * gnulib-tool: New options --vc-files, --no-vc-files.
33282         (func_usage): Document them.
33283         (vc_files): New variable.
33284         (func_import): Consider vc_files.
33285         (func_create_testdir): Set vc_files to empty.
33286         Suggested by Jim Meyering and Karl Berry.
33287
33288 2008-03-23  Bruno Haible  <bruno@clisp.org>
33289
33290         Fix regex compilation error on HP-UX 11.
33291         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
33292         * modules/regex (Files): Add m4/mbstate_t.m4.
33293         Reported by Ton Voon <ton.voon@altinity.com>.
33294
33295 2008-03-23  Bruno Haible  <bruno@clisp.org>
33296
33297         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
33298
33299 2008-03-23  Eric Blake  <ebb9@byu.net>
33300             Bruno Haible  <bruno@clisp.org>
33301
33302         Install files from top/ in the destination directory.
33303         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
33304         augmentation also for the files from top/.
33305         (func_import, func_create_testdir): Rewrite file names:
33306         top/filename -> filename.
33307
33308 2008-03-23  Bruno Haible  <bruno@clisp.org>
33309
33310         Tweak "gnulib --version" output.
33311         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
33312
33313 2008-03-23  Bruno Haible  <bruno@clisp.org>
33314
33315         Tweak "gnulib --version" output.
33316         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
33317         rather than contents of ChangeLog, when possible.
33318
33319 2008-03-21  Eric Blake  <ebb9@byu.net>
33320
33321         More --version tweaks.
33322         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
33323         date of last ChangeLog entry.
33324
33325 2008-03-21  Jim Meyering  <meyering@redhat.com>
33326
33327         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
33328
33329 2008-03-20  Eric Blake  <ebb9@byu.net>
33330
33331         VPATH fix.
33332         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
33333
33334 2008-03-20  Simon Josefsson  <simon@josefsson.org>
33335
33336         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
33337         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
33338
33339 2008-03-20  Eric Blake  <ebb9@byu.net>
33340
33341         Sync GNUmakefile with coreutils.
33342         * build-aux/GNUmakefile (have-Makefile): Rename...
33343         (_have-Makefile): ...to this, for namespace consideration.
33344         (GNUmakefile.cfg): Include, if present.
33345         (_autoreconf): Define a default.
33346         (_is-dist-target): New rule for rebuilds to pick up intra-release
33347         version.
33348         (maint-cfg.mk): Rename...
33349         (cfg.mk): ...to this.
33350
33351 2008-03-18  Jim Meyering  <meyering@redhat.com>
33352
33353         New script and module: mktempd
33354         * MODULES.html.sh (maint+release support): Add mktempd.
33355         * build-aux/mktempd: New file.
33356         * modules/mktempd: New file.
33357
33358 2008-03-15  Jim Meyering  <meyering@redhat.com>
33359
33360         Undo last change.
33361         * lib/sha1.c, lib/md5.c: 63 != ~63.
33362         Reported by Andreas Schwab.
33363
33364         sha1.c, md5.c: Hoist a redundant expression.
33365         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
33366         "ctx->buflen" only once, before calling *_process_block.
33367         * lib/md5.c (md5_process_bytes): Likewise.
33368
33369 2008-03-14  Eric Blake  <ebb9@byu.net>
33370
33371         Bump copyright year in files generated by gnulib-tool.
33372         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
33373         gnulib-tool, rather than hard-coding it.
33374
33375         Fix 'gnulib-tool --version' output to work with git.
33376         * gnulib-tool (func_gnulib_dir): New function, extracted from...
33377         (startup): ...here.
33378         (func_version): Use it to invoke git-version-gen, rather than
33379         relying on CVS keyword expansion.  Modernize wording.
33380         (cvsdatestamp, last_checkin_date, version): Kill unused
33381         variables.
33382
33383 2008-03-12  Jim Meyering  <meyering@redhat.com>
33384
33385         Recognize optional cast of the argument to free.
33386         * build-aux/useless-if-before-free: Update regexps.
33387
33388         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
33389
33390 2008-03-11  Bruno Haible  <bruno@clisp.org>
33391
33392         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
33393         by a single package.
33394         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
33395         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
33396         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
33397         Reported by Sam Steingold <sds@gnu.org>.
33398
33399 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33400
33401         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
33402         repositories.
33403
33404 2008-03-11  Bruno Haible  <bruno@clisp.org>
33405
33406         Avoid conflicts between local macro definitions.
33407         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33408         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
33409
33410 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
33411             Bruno Haible  <bruno@clisp.org>
33412
33413         Make va_copy work with some version of xlc on AIX 5.1.
33414         * lib/stdarg.in.h: New file.
33415         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
33416         On AIX, use a <stdarg.h> file substitute.
33417         * modules/stdarg (Files): Add lib/stdarg.in.h.
33418         (Depends-on): Add include_next.
33419         (Makefile.am): Build a stdarg.h substitute if requested.
33420         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
33421
33422 2008-03-10  Bruno Haible  <bruno@clisp.org>
33423
33424         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
33425         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33426         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33427
33428 2008-03-10  Bruno Haible  <bruno@clisp.org>
33429
33430         * modules/stdlib (Depends-on): Add include_next, remove
33431         absolute-header.
33432
33433 2008-03-09  Bruno Haible  <bruno@clisp.org>
33434
33435         * lib/freadahead.h (freadahead): Document more precisely.
33436         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
33437         the sum of both buffer sizes.
33438         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
33439         * NEWS: Document the change.
33440
33441 2008-03-09  Bruno Haible  <bruno@clisp.org>
33442
33443         Extend freadptr to return also the buffer size.
33444         * lib/freadptr.h (freadptr): Add sizep argument.
33445         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
33446         (freadptr): Add sizep argument. Determine buffer size like freadahead
33447         does.
33448         * tests/test-freadptr.c: Don't include freadahead.h.
33449         (main): Adapt for new calling convention of freadptr.
33450         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
33451         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
33452         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
33453         tests/test-freadptr2.sh.
33454         (Depends): Remove freadahead.
33455         (TESTS): Add test-freadptr2.sh.
33456         (check_PROGRAMS): Add test-freadptr2.
33457
33458 2008-03-09  Bruno Haible  <bruno@clisp.org>
33459
33460         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
33461         Report and solution by Simon Josefsson.
33462
33463 2008-03-06  Bruno Haible  <bruno@clisp.org>
33464
33465         Make fflush after ungetc work on BSD platforms.
33466         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
33467         * tests/test-fflush2.c: New file.
33468         * tests/test-fflush2.sh: New file.
33469         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
33470         tests/test-fflush2.c.
33471         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
33472         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
33473
33474 2008-03-06  Eric Blake  <ebb9@byu.net>
33475
33476         Likewise for ftello.
33477         * modules/ftello (Dependencies): Add extensions.
33478         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
33479
33480 2008-03-06  Bruno Haible  <bruno@clisp.org>
33481
33482         * modules/fseeko (Dependencies): Add extensions.
33483         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
33484         Needed on glibc systems.
33485
33486 2008-03-06  Bruno Haible  <bruno@clisp.org>
33487
33488         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
33489         email address.
33490         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33491
33492 2008-03-06  Bruno Haible  <bruno@clisp.org>
33493
33494         * users.txt: Add libgnupdf.
33495
33496 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33497
33498         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
33499         (Header File Substitutes, Function Substitutes,
33500         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
33501         (Build robot for gnulib): Fix typo.
33502
33503 2008-03-06  Bruno Haible  <bruno@clisp.org>
33504
33505         * doc/gnulib-tool.texi (VCS Issues): Small updates.
33506         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33507
33508 2008-03-06  Bruno Haible  <bruno@clisp.org>
33509
33510         * doc/func.texi: New file, extracted from doc/gnulib.texi.
33511         * doc/gnulib.texi: Include it.
33512
33513 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33514
33515         * modules/func (License): Change license to unlimited; there was
33516         no LGPL parts in the module anyway.
33517
33518 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33519
33520         * modules/__func__: Renamed to modules/func.
33521         * modules/__func__-tests: Renamed to modules/func-tests.
33522         * tests/test-__func__.c: Renamed to tests/test-func.c.
33523         * m4/__func__.m4: Renamed to m4/func.m4.
33524         * doc/gnulib.texi (__func__): Section renamed to func.
33525         Suggested by Eric Blake <ebb9@byu.net>.
33526
33527 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33528
33529         * doc/gnulib.texi (__func__): Use C99 terminology when talking
33530         about __func__.  Make example self-contained.  Suggested by Eric
33531         Blake <ebb9@byu.net>.
33532
33533         * tests/test-__func__.c (main): Avoid extraneous () around __func.
33534         Suggested by Eric Blake <ebb9@byu.net>.
33535
33536 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33537
33538         * modules/__func__: New file.
33539         * modules/__func__-tests: New file.
33540         * tests/test-__func__.c: New file.
33541         * m4/__func__.m4: New file.
33542         * doc/gnulib.texi (__func__): Document __func__ module.
33543
33544 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33545
33546         * modules/byteswap (License): Re-license as LGPLv2+.
33547
33548 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33549
33550         * doc/Makefile: Add pdf target.
33551
33552 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33553
33554         * modules/inline (License): Use 'unlimited', since there are only
33555         *.m4 files in this module.
33556
33557 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33558             Bruno Haible  <bruno@clisp.org>
33559
33560         Add support for HP C 7.1 on OpenVMS 8.3.
33561         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
33562
33563 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33564
33565         Update VMS specifics.
33566         * lib/getopt.c [VMS]: Remove include of unixlib.h.
33567
33568 2008-03-02  Jim Meyering  <meyering@redhat.com>
33569
33570         Remove the last dependency on the "free" module.
33571         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
33572         Reported by Bob Proulx.
33573
33574         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
33575
33576         Remove useless "if" tests before free.  Deprecate "free" module.
33577         * doc/posix-functions/free.texi: Mention that this
33578         module is no longer useful.
33579         * modules/free (Notice): Say this module is obsolete.
33580         * modules/readutmp (Depends-on): Remove free.
33581         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
33582         * lib/putenv.c (putenv): Likewise.
33583         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
33584         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
33585         * tests/test-c-strcasestr.c (main): Likewise.
33586         * tests/test-c-strstr.c (main): Likewise.
33587         * tests/test-mbscasestr1.c (main): Likewise.
33588         * tests/test-mbscasestr2.c (main): Likewise.
33589         * tests/test-mbsstr1.c (main): Likewise.
33590         * tests/test-mbsstr2.c (main): Likewise.
33591         * tests/test-memmem.c (main): Likewise.
33592         * tests/test-strcasestr.c (main): Likewise.
33593         * tests/test-striconv.c (main): Likewise.
33594         * tests/test-striconveh.c (main): Likewise.
33595         * tests/test-striconveha.c (main): Likewise.
33596         * tests/test-strstr.c (main): Likewise.
33597
33598         * build-aux/git-version-gen: Adjust a comment and the Usage string.
33599
33600         bootstrap: sync from coreutils again
33601         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
33602
33603 2008-03-01  Jim Meyering  <meyering@redhat.com>
33604
33605         bootstrap: sync from coreutils
33606         * build-aux/bootstrap (update_po_files): Copy a .po file into place
33607         also when the target doesn't exist.
33608
33609 2008-03-01  Eric Blake  <ebb9@byu.net>
33610
33611         Fix bugs in last patch.
33612         * lib/memchr2.c (memchr2): Fix typo.
33613         * tests/test-memchr2.c: Test previous bug, and don't use GNU
33614         extension.
33615         Reported by Bruce Korb.
33616
33617         New module 'memchr2'.
33618         * modules/memchr2: New file.
33619         * modules/memchr2-tests: Likewise.
33620         * lib/memchr2.h: Likewise.
33621         * lib/memchr2.c: Likewise, based on memchr.c.
33622         * tests/test-memchr2.c: New test.
33623         * MODULES.html.sh (String handling): Add memchr2.
33624
33625 2008-02-29  Bruno Haible  <bruno@clisp.org>
33626
33627         * modules/freadseek-tests: New file.
33628         * tests/test-freadseek.sh: New file.
33629         * tests/test-freadseek.c: New file.
33630
33631         New module 'freadseek'.
33632         * modules/freadseek: New file.
33633         * lib/freadseek.h: New file.
33634         * lib/freadseek.c: New file.
33635         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
33636
33637 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33638
33639         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
33640         wydawca.
33641
33642         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
33643         program_invocation_name and program_invocation_short_name are
33644         present.
33645
33646 2008-02-28  Bruno Haible  <bruno@clisp.org>
33647
33648         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
33649         * tests/test-freadptr.sh: Also test non-seekable stdin.
33650
33651 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
33652
33653         * build-aux/bootstrap (source_base, m4_base)
33654         (doc_base, tests_base): New variables.
33655         (gnulib_tool_options): Do not hardcode base directories, use
33656         the above variables instead.
33657
33658 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
33659
33660         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
33661
33662 2008-02-28  Bruno Haible  <bruno@clisp.org>
33663
33664         * modules/freadptr-tests: New file.
33665         * tests/test-freadptr.sh: New file.
33666         * tests/test-freadptr.c: New file.
33667
33668         New module 'freadptr'.
33669         * modules/freadptr: New file.
33670         * lib/freadptr.h: New file.
33671         * lib/freadptr.c: New file.
33672         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
33673
33674 2008-02-26  Karl Berry  <karl@freefriends.org>
33675
33676         Sync from Libtool:
33677         * libltdl/argz.c (argz_add, argz_count): New functions.
33678         * libltdl/argz.in.h: Declare them.
33679         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
33680
33681 2008-02-22  Bruno Haible  <bruno@clisp.org>
33682
33683         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
33684         is a pointer type.  Needed for HP-UX 10.
33685         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
33686         * doc/posix-functions/gmtime_r.texi: Likewise.
33687         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33688
33689 2008-02-24  Bruno Haible  <bruno@clisp.org>
33690
33691         * modules/environ-tests: New file.
33692         * tests/test-environ.c: New file.
33693
33694         New module 'environ'.
33695         * modules/environ: New file.
33696         * lib/unistd.in.h (environ): New declaration.
33697         * m4/environ.m4: New file.
33698         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
33699         after use.
33700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
33701         HAVE_DECL_ENVIRON.
33702         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
33703         HAVE_DECL_ENVIRON.
33704         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
33705         wrong claim that 'environ' is missing on some systems.
33706         * modules/execute (Depends-on): Add environ.
33707         * lib/execute.c (environ): Remove fallback declaration.
33708         * modules/pipe (Depends-on): Add environ.
33709         * lib/pipe.c (environ): Remove fallback declaration.
33710         * modules/setenv (Depends-on): Add environ.
33711         * lib/setenv.c (environ): Remove fallback declaration.
33712         * modules/unsetenv (Depends-on): Add environ.
33713         * lib/unsetenv.c (environ): Remove fallback declaration.
33714         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
33715         m4/environ.m4.
33716         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
33717         (gl_PREREQ_UNSETENV): Likewise.
33718
33719 2008-02-24  Bruno Haible  <bruno@clisp.org>
33720
33721         * doc/posix-functions/environ.texi: Document the MacOS X problem.
33722
33723 2008-02-20  Bob Proulx  <bob@proulx.com>
33724
33725         Enable use of older two part flavor 'git describe'.
33726         * build-aux/git-version-gen: If using the older two part flavor of
33727         git version then recreate the third part now present in the
33728         newer three part flavor of git describe.
33729
33730 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
33731
33732         * lib/fts.c (fts_build): Typo correction to comment.
33733
33734 2008-02-17  Bruno Haible  <bruno@clisp.org>
33735
33736         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
33737         generating no-op conflicts.
33738
33739 2008-02-17  Bruno Haible  <bruno@clisp.org>
33740
33741         Speed up by 10%.
33742         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
33743         result_entries, rather than an index-based loop.
33744
33745 2008-02-17  Bruno Haible  <bruno@clisp.org>
33746
33747         Speed up by 25%.
33748         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
33749         'hashcode_cached'.
33750         (entry_create): New function.
33751         (entry_hashcode): Use the cached hashcode if possible.
33752         (read_changelog_file, try_split_merged_entry): Use entry_create.
33753
33754 2008-02-17  Bruno Haible  <bruno@clisp.org>
33755
33756         Speed up from O(n^2) to O(n) for long ChangeLog files.
33757         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
33758         (read_changelog_file): Change implementation of entries_reversed list
33759         to rbtreehash.
33760         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
33761
33762 2008-02-17  Bruno Haible  <bruno@clisp.org>
33763
33764         New option --split-merged-entry.
33765         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
33766         (find_paragraph_end, try_split_merged_entry): New functions.
33767         (long_options): Add option --split-merged-entry.
33768         (usage): Document option --split-merged-entry.
33769         (main): Implement option --split-merged-entry.
33770         Reported by Eric Blake.
33771
33772 2008-02-17  Bruno Haible  <bruno@clisp.org>
33773
33774         * lib/git-merge-changelog.c: Include c-strstr.h.
33775         (main): Support the "git pull --rebase" situation.
33776         * modules/git-merge-changelog (Depends-on): Add c-strstr.
33777         Reported by Eric Blake.
33778
33779 2008-02-16  Eric Blake  <ebb9@byu.net>
33780
33781         Avoid doubling \ in common case of "c-maybe" quoting style.
33782         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
33783         eliding outer quotes.
33784         * lib/quotearg.h: Document this.
33785         * tests/test-quotearg.c (result_strings, inputs, results_g)
33786         (flag_results, locale_results): Test it by adding a new string to
33787         each test group.
33788         (compare_strings): Test new string.
33789
33790 2008-02-13  Eric Blake  <ebb9@byu.net>
33791
33792         Avoid trigraph quoting in default output.
33793         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
33794         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
33795         unless explicitly requested.
33796         * tests/test-quotearg.c (flag_results, main): Add additional tests.
33797
33798 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
33799
33800         Don't rely on signed integer overflowing to negative value.
33801         * lib/getugroups.c (getugroups): Include <limits.h>.
33802         Instead, compare against INT_MAX, and increment only if the test passes.
33803
33804 2008-02-13  Jim Meyering  <meyering@redhat.com>
33805         and Eric Blake  <ebb9@byu.net>
33806
33807         Avoid shadowing warning and compile errors on Linux.
33808         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
33809         forwarding macros on Linux.
33810         (dcgettext): Define a stub, for Linux.
33811         (results_g, main): Avoid warnings.
33812
33813 2008-02-12  Eric Blake  <ebb9@byu.net>
33814
33815         Silence warning in last patch.
33816         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
33817
33818         Quotearg part 4: add tests, fix c-maybe colon quoting.
33819         * lib/quotearg.h: Improve documentation.
33820         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
33821         escapes when adding outer quotes.  When quoting trigraphs, use
33822         valid C notation.  When quoting NUL, omit extra characters if next
33823         character is not digit.  Alter prototype.
33824         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
33825         callers.
33826         * modules/quotearg-tests: New module.
33827         * tests/test-quotearg.c: New test.
33828
33829 2008-02-07  Eric Blake  <ebb9@byu.net>
33830
33831         Quotearg part 3: add flag to control outer quote elision.
33832         * lib/quotearg.h (c_maybe_quoting_style): New style.
33833         (enum quoting_flags): Better documentation of flags.
33834         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
33835         c-maybe style.
33836         (quotearg_buffer_restyled): Handle new flag to elide outer
33837         quotes.
33838
33839         Quotearg part 2: add flag that can control NUL elision.
33840         * lib/quotearg.h (set_quoting_flags): New prototype.
33841         * lib/quotearg.c (struct quoting_options): Add flag field.
33842         (set_quoting_flags): New function.
33843         (quotearg_buffer_restyled): Add flags parameter.
33844         (quotearg_alloc_mem): Set the flag if length cannot be returned.
33845         (quotearg_n_options): Set the flag, since length cannot be
33846         returned.
33847         (quoting_options_from_style): Default flags correctly.
33848
33849         Quotearg part 1: more wrappers, restore quotearg_char state.
33850         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
33851         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
33852         (quotearg_colon_mem): New wrappers.
33853         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
33854         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
33855         functions.
33856         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
33857         (quotearg_colon_mem): New functions.
33858
33859 2008-02-11  Bruno Haible  <bruno@clisp.org>
33860
33861         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
33862         library in the current directory: it does not work with parallel make.
33863         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33864
33865 2008-02-11  Bruno Haible  <bruno@clisp.org>
33866
33867         * .gitattributes: New file.
33868
33869 2008-02-11  Jim Meyering  <meyering@redhat.com>
33870
33871         useless-if-before-free: Fix reversed exit values.
33872         * build-aux/useless-if-before-free: Use correct values
33873         for EXIT_MATCH and EXIT_NO_MATCH.
33874
33875         * build-aux/useless-if-before-free: Close stdout carefully.
33876
33877 2008-02-10  Bruno Haible  <bruno@clisp.org>
33878
33879         New module 'git-merge-changelog'.
33880         * modules/git-merge-changelog: New file.
33881         * lib/git-merge-changelog.c: New file.
33882
33883 2008-02-10  Jim Meyering  <meyering@redhat.com>
33884
33885         useless-if-before-free: New option: --list (-l).
33886
33887         useless-if-before-free: Don't exit immediately upon open failure.
33888         * build-aux/useless-if-before-free: Exit 2 for errors.
33889         Upon failure to open a file, don't exit immediately.
33890         Rather, just warn and continue with any remaining files.
33891
33892 2008-02-10  Bruno Haible  <bruno@clisp.org>
33893
33894         New abstract list operation 'node_set_value'.
33895         * lib/gl_list.h (gl_list_node_set_value): New function.
33896         (struct gl_list_implementation): New field node_set_value.
33897         * lib/gl_list.c (gl_list_node_set_value): New function.
33898         * lib/gl_array_list.c (gl_array_node_set_value): New function.
33899         (gl_array_list_implementation): Update.
33900         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
33901         (gl_carray_list_implementation): Update.
33902         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
33903         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33904         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33905         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
33906         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33907         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33908         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33909         Update.
33910         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
33911         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
33912         (gl_sublist_list_implementation): Update.
33913
33914 2008-02-10  Bruno Haible  <bruno@clisp.org>
33915
33916         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
33917         Needed when ELEMENT is #defined to 'some_type *'.
33918
33919 2008-02-10  Jim Meyering  <meyering@redhat.com>
33920
33921         New script and module: useless-if-before-free
33922         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
33923         * build-aux/useless-if-before-free: New file.
33924         * modules/useless-if-before-free: New file.
33925
33926         * build-aux/gitlog-to-changelog: Use committer date, not author date.
33927
33928         xstrtol_error: Fix typo.
33929         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
33930         s/exit_failure/exit_status/.
33931
33932 2008-02-09  Jim Meyering  <meyering@redhat.com>
33933
33934         New script and module: gitlog-to-changelog
33935         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
33936         * modules/gitlog-to-changelog: New file.
33937         * build-aux/gitlog-to-changelog: New file.
33938
33939 2008-02-08  Jim Meyering  <meyering@redhat.com>
33940
33941         Avoid two "parameter unused" warnings.
33942         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
33943         Mark "st" as used.
33944
33945         Use "git COMMAND", not "git-COMMAND".
33946         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
33947         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
33948         * build-aux/git-version-gen: Use "git status", not "git-status".
33949
33950 2008-02-07  Bruno Haible  <bruno@clisp.org>
33951
33952         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
33953         Avoids a crash on Windows Vista.
33954         Reported by Adam Strzelecki <ono@java.pl> via
33955         Simon Josefsson <simon@josefsson.org>.
33956
33957 2008-02-06  Bruno Haible  <bruno@clisp.org>
33958
33959         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
33960         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
33961         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
33962         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
33963         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33964         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33965         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
33966         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
33967         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33968         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33969         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33970         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33971         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33972         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33973         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33974         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
33975         left-adjust flag.
33976         * tests/test-snprintf-posix.h (test_function): Likewise.
33977         * tests/test-sprintf-posix.h (test_function): Likewise.
33978         * tests/test-vasprintf-posix.c (test_function): Likewise.
33979         * doc/posix-functions/fprintf.texi: Update.
33980         * doc/posix-functions/printf.texi: Update.
33981         * doc/posix-functions/snprintf.texi: Update.
33982         * doc/posix-functions/sprintf.texi: Update.
33983         * doc/posix-functions/vfprintf.texi: Update.
33984         * doc/posix-functions/vprintf.texi: Update.
33985         * doc/posix-functions/vsnprintf.texi: Update.
33986         * doc/posix-functions/vsprintf.texi: Update.
33987         Reported by Peter Fales <psfales@alcatel-lucent.com>.
33988
33989 2008-02-06  Bruno Haible  <bruno@clisp.org>
33990
33991         Fix bug introduced on 2008-01-26.
33992         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
33993
33994 2008-02-06  Bruno Haible  <bruno@clisp.org>
33995
33996         Fix bug introduced on 2007-06-10.
33997         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
33998         !NEED_PRINTF_FLAG_ZERO.
33999
34000 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
34001
34002         getloadavg: use libperfstat on AIX5
34003         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
34004
34005 2008-02-03  Bruno Haible  <bruno@clisp.org>
34006
34007         * lib/diffseq.h: Add comments about required #includes.
34008         Reported by Michael Biggs <gnulib@doubleplum.net>.
34009
34010 2008-02-01  Bruno Haible  <bruno@clisp.org>
34011
34012         * users.txt: Add gnuit.
34013
34014 2008-01-31  Bruno Haible  <bruno@clisp.org>
34015
34016         * lib/md4.c (set_uint32): Mark as inline.
34017         * lib/md5.c (set_uint32): Likewise.
34018         * lib/sha1.c (set_uint32): Likewise.
34019         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
34020         * m4/md5.m4 (gl_MD5): Likewise.
34021         * m4/sha1.m4 (gl_SHA1): Likewise.
34022
34023 2008-01-31  Jim Meyering  <meyering@redhat.com>
34024
34025         Use "sizeof VAR", rather than a literal "4".
34026         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
34027         * lib/md4.c (md4_read_ctx): Likewise.
34028         * lib/sha1.c (sha1_read_ctx): Likewise.
34029
34030 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34031
34032         * tests/test-sha1.c: New file, based on test-md5.c.
34033
34034         * modules/crypto/sha1-tests: New file.
34035
34036 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34037
34038         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
34039
34040 2008-01-31  Jim Meyering  <meyering@redhat.com>
34041
34042         Prefer "sizeof v" over the equivalent "4".
34043         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
34044         * lib/md5.c (set_uint32): Likewise.
34045         * lib/sha1.c (set_uint32): Likewise.
34046
34047 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34048
34049         * lib/sha1.c (set_uint32): Mark function as static.
34050
34051 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34052
34053         md2: clarify comments to say that alignment is not required.
34054         * lib/md2.h: Remove warning about alignment in comment.
34055         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
34056         never been required.
34057
34058 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34059
34060         md4: adapt alignment constraint fix from sha1.
34061         * lib/md4.c (set_uint32): New function, from sha1.c
34062         (md4_read_ctx): Use it.
34063         (md4_finish_ctx): Doc fix.
34064         * lib/md4.h: Doc fix.
34065
34066 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34067
34068         md5: adapt alignment constraint fix from sha1.
34069         * lib/md5.c (set_uint32): New function, from sha1.c
34070         (md5_read_ctx): Use it.
34071         (md5_finish_ctx): Doc fix.
34072         * lib/md5.h: Doc fix.
34073
34074 2008-01-30  Peter Palfrader  <weasel@debian.org>
34075
34076         sha1: remove the result buffer alignment constraint
34077         * lib/sha1.c (set_uint32): New function.
34078         (sha1_read_ctx): Rewrite to remove the result buffer alignment
34079         constraint.
34080         (sha1_finish_ctx): Remove comment warning about alignment constraint.
34081         * lib/sha1.h: Likewise.
34082
34083 2008-01-30  Andreas Schwab  <schwab@suse.de>
34084             Bruno Haible  <bruno@clisp.org>
34085
34086         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
34087         correct definition of LDBL_MIN_EXP.
34088
34089 2008-01-30  Karl Berry  <karl@gnu.org>
34090
34091         * config/srclist-update: try to preserve x bit on updates.
34092         * config/srclistvars.sh: update for karl.
34093
34094 2008-01-29  Jim Meyering  <meyering@redhat.com>
34095
34096         vasnprintf.c: Avoid warning about unused label
34097         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
34098         "overflow" label definition and associated code with the
34099         same cpp condition that guards the sole use of that label.
34100
34101 2008-01-26  Bruno Haible  <bruno@clisp.org>
34102
34103         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
34104         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
34105         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
34106         * lib/isnanl-nolibm.h (isnanl): Likewise.
34107         Reported by Paul Eggert <eggert@cs.ucla.edu>.
34108
34109 2008-01-26  Bruno Haible  <bruno@clisp.org>
34110
34111         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
34112         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
34113
34114 2008-01-26  Bruno Haible  <bruno@clisp.org>
34115
34116         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
34117         GCC >= 4.0 built-in.
34118         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
34119
34120 2008-01-26  Bruno Haible  <bruno@clisp.org>
34121
34122         Rename isnan, applicable to 'double' only, to isnand.
34123         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
34124         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
34125         (configure.ac): Update.
34126         (Include): Replace "isnan.h" with "isnand.h".
34127         * m4/isnand.m4: Renamed from m4/isnan.m4.
34128         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
34129         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
34130         instead of isnan.c.
34131         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
34132         instead of HAVE_ISNAN_IN_LIBC.
34133         (isnand): Renamed from isnan.
34134         * lib/isnand.c: New file.
34135         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
34136         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
34137         (Makefile.am): Update.
34138         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
34139         Include isnand.h instead of isnan.h.
34140         (main): Test isnand instead of isnan.
34141         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
34142         isnan-nolibm.
34143         * modules/frexp (Depends-on): Likewise.
34144         * modules/frexp-tests (Depends-on): Likewise.
34145         * modules/frexp-nolibm (Depends-on): Likewise.
34146         * modules/frexp-nolibm-tests (Depends-on): Likewise.
34147         * modules/isfinite (Depends-on): Likewise.
34148         * modules/round-tests (Depends-on): Likewise.
34149         * modules/signbit (Depends-on): Likewise.
34150         * modules/signbit-tests (Depends-on): Likewise.
34151         * modules/snprintf-posix (Depends-on): Likewise.
34152         * modules/sprintf-posix (Depends-on): Likewise.
34153         * modules/trunc-tests (Depends-on): Likewise.
34154         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34155         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34156         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34157         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34158         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34159         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34160         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34161         * modules/vasnprintf-posix (Depends-on): Likewise.
34162         * modules/vasprintf-posix (Depends-on): Likewise.
34163         * modules/vfprintf-posix (Depends-on): Likewise.
34164         * modules/vsnprintf-posix (Depends-on): Likewise.
34165         * modules/vsprintf-posix (Depends-on): Likewise.
34166         * lib/frexp.c: Include isnand.h instead of isnan.h.
34167         (ISNAN): Set to isnand instead of isnan.
34168         * lib/isfinite.c: Include isnand.h instead of isnan.h.
34169         (gl_isfinited): Use isnand instead of isnan.
34170         * lib/signbitd.c: Include isnand.h instead of isnan.h.
34171         (gl_signbitd): Use isnand instead of isnan.
34172         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
34173         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
34174         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
34175         (main): Use isnand instead of isnan.
34176         * tests/test-round1.c: Include isnand.h.
34177         (main): Use isnand instead of isnan.
34178         * tests/test-round2.c: Include isnand.h instead of isnan.h.
34179         (ISNAN): Set to isnand instead of isnan.
34180         * tests/test-trunc1.c: Include isnand.h.
34181         (main): Use isnand instead of isnan.
34182         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
34183         (equal): Use isnand instead of isnan.
34184         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
34185         isnand-nolibm.
34186         * NEWS: Mention the change.
34187
34188 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
34189             Bruno Haible  <bruno@clisp.org>
34190
34191         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
34192         the GCC builtins for signbits are present and set
34193         REPLACE_SIGNBIT_USING_GCC if so.
34194         * lib/math.in.h (signbit): Define using GCC builtins if
34195         REPLACE_SIGNBIT_USING_GCC is set.
34196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
34197         REPLACE_SIGNBIT_USING_GCC.
34198         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
34199
34200 2008-01-25  Jim Meyering  <meyering@redhat.com>
34201
34202         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
34203         * lib/poll.c: Include <config.h>, not "config.h".
34204         * tests/test-getaddrinfo.c: Likewise.
34205
34206 2008-01-25  Simon Josefsson  <simon@josefsson.org>
34207
34208         * modules/sockets-tests: New file.
34209
34210 2008-01-24  Simon Josefsson  <simon@josefsson.org>
34211
34212         * modules/sockets: New module, can be used to call WSA_Startup and
34213         WSA_Cleanup when needed.
34214
34215         * lib/sockets.h, lib/sockets.c: New files.
34216
34217         * m4/sockets.m4: New file.
34218
34219         * tests/test-sockets.c: New file.
34220
34221 2008-01-19  Bruno Haible  <bruno@clisp.org>
34222
34223         * doc/posix-headers: Renamed from doc/headers.
34224         * doc/posix-functions: Renamed from doc/functions.
34225         * doc/gnulib.texi: Update.
34226
34227 2008-01-19  Bruno Haible  <bruno@clisp.org>
34228
34229         * doc/glibc-functions/strcasestr.texi: Include contents of
34230         doc/functions/strcasestr.texi, fixing the list of platforms.
34231         * doc/functions/strcasestr.texi: Remove file.
34232
34233 2008-01-19  Bruno Haible  <bruno@clisp.org>
34234
34235         * doc/glibc-functions/memmem.texi: Include contents of
34236         doc/functions/memmem.texi.
34237         * doc/functions/memmem.texi: Remove file.
34238
34239 2008-01-18  Bruno Haible  <bruno@clisp.org>
34240
34241         * doc/glibc-functions/*.texi: New files.
34242         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
34243         to use the new files.
34244
34245 2008-01-17  Bruno Haible  <bruno@clisp.org>
34246
34247         * tests/test-gethostname.c (main): Fix printf statement.
34248
34249 2008-01-17  Simon Josefsson  <simon@josefsson.org>
34250
34251         * modules/gethostname-tests: New file.
34252
34253         * tests/test-gethostname.c: New file.
34254
34255 2008-01-17  Simon Josefsson  <simon@josefsson.org>
34256
34257         * lib/gethostname.c: Include string.h unconditionally, strncpy is
34258         used by the UNAME case.  Reported by Bruno Haible
34259         <bruno@clisp.org>.
34260
34261 2008-01-17  Eric Blake  <ebb9@byu.net>
34262
34263         Convert c-strcasestr to be more efficient.
34264         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
34265         (Depends-on): Add c-strcase, remove malloca, strnlen.
34266         * tests/test-c-strcasestr.c (main): Enhance test.
34267         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
34268
34269 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
34270
34271         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
34272         Use it in creating po/Makevars.
34273
34274 2008-01-15  Simon Josefsson  <simon@josefsson.org>
34275
34276         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
34277         Applications that requires it should initialize libgcrypt
34278         manually.
34279
34280 2008-01-16  Simon Josefsson  <simon@josefsson.org>
34281
34282         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
34283
34284 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
34285
34286         Fix problem with getdate on mingw32 reported by Simon Josefsson
34287         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
34288         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
34289         tzname", when deciding whether to declare tzname.
34290         * lib/strftime.c (tzname): Likewise.
34291
34292 2008-01-15  Bruno Haible  <bruno@clisp.org>
34293
34294         Work around a MacOS X 10.5 bug in frexpl().
34295         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
34296         * doc/functions/frexpl.texi: Document the bug.
34297         Reported by Elias Pipping <pipping@gentoo.org>.
34298
34299 2008-01-14  Eric Blake  <ebb9@byu.net>
34300
34301         Touch up previous patch.
34302         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
34303         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
34304
34305         Convert strcasestr module to use Two-Way algorithm.
34306         * modules/strcasestr-simple: New module, based on the old
34307         strcasestr, but with Two-Way rather than KMP.
34308         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
34309         * lib/string.in.h (rpl_strcasestr): Declare.
34310         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
34311         performance.
34312         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
34313         * modules/string (Makefile.am): Support strcasestr.
34314         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34315         * modules/strcasestr-tests (Depends-on): Check for alarm.
34316         * tests/test-strcasestr.c: Augment test.
34317         * lib/str-two-way.h: Clean up stray macro.
34318         * NEWS: Document new module.
34319         * MODULES.html.sh (string handling): Likewise.
34320         * doc/functions/strcasestr.texi: New file.
34321         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
34322         here, since it is not a POSIX function.
34323
34324 2008-01-14  Colin Watson  <cjwatson@debian.org>
34325             Bruno Haible  <bruno@clisp.org>
34326
34327         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
34328         works fine; if not, set REPLACE_STRSIGNAL.
34329         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
34330         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34331         REPLACE_STRSIGNAL.
34332         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
34333         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
34334         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
34335
34336 2008-01-14  Bruno Haible  <bruno@clisp.org>
34337
34338         * modules/strsignal (Include): Change to <string.h>.
34339
34340 2008-01-14  Colin Watson  <cjwatson@debian.org>
34341
34342         * modules/argp (Notice): Add a notice recommending to change
34343         XGETTEXT_OPTIONS.
34344         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
34345
34346 2008-01-13  Colin Watson  <cjwatson@debian.org>
34347
34348         * modules/strsignal-tests: New file.
34349         * tests/test-strsignal.c: New file.
34350
34351         * lib/strsignal.c: New file, from glibc with modifications.
34352         * lib/siglist.h: New file, from glibc with modifications.
34353         * lib/string.in.h (strsignal): New declaration.
34354         * m4/strsignal.m4: New file.
34355         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34356         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
34357         * modules/strsignal: New file.
34358         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
34359         HAVE_DECL_STRSIGNAL.
34360
34361 2008-01-13  Bruno Haible  <bruno@clisp.org>
34362
34363         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
34364         locale encoding is not ASCII. Needed for OpenBSD 4.0.
34365         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
34366         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34367
34368 2008-01-13  Bruno Haible  <bruno@clisp.org>
34369
34370         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
34371         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
34372         * lib/argp.h (__attribute__): Likewise.
34373         * lib/c-stack.c (__attribute__): Likewise.
34374         * lib/error.h (__attribute__): Likewise.
34375         * lib/fts.c (__attribute__): Likewise.
34376         * lib/openat.h (__attribute__): Likewise.
34377         * lib/stdio.in.h (__attribute__): Likewise.
34378         * lib/string.in.h (__attribute__): Likewise.
34379         * lib/utimens.c (__attribute__): Likewise.
34380         * lib/vasnprintf.h (__attribute__): Likewise.
34381         * lib/xalloc.h (__attribute__): Likewise.
34382         * lib/xprintf.h (__attribute__): Likewise.
34383         * lib/xstrtol.h (__attribute__): Likewise.
34384         * lib/xvasprintf.h (__attribute__): Likewise.
34385
34386 2008-01-12  Bruno Haible  <bruno@clisp.org>
34387
34388         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
34389         * doc/glibc-headers/a.out.texi: New file.
34390         * doc/glibc-headers/aliases.texi: New file.
34391         * doc/glibc-headers/alloca.texi: New file.
34392         * doc/glibc-headers/ar.texi: New file.
34393         * doc/glibc-headers/argp.texi: New file.
34394         * doc/glibc-headers/argz.texi: New file.
34395         * doc/glibc-headers/byteswap.texi: New file.
34396         * doc/glibc-headers/crypt.texi: New file.
34397         * doc/glibc-headers/endian.texi: New file.
34398         * doc/glibc-headers/envz.texi: New file.
34399         * doc/glibc-headers/err.texi: New file.
34400         * doc/glibc-headers/error.texi: New file.
34401         * doc/glibc-headers/execinfo.texi: New file.
34402         * doc/glibc-headers/fpu_control.texi: New file.
34403         * doc/glibc-headers/fstab.texi: New file.
34404         * doc/glibc-headers/fts.texi: New file.
34405         * doc/glibc-headers/getopt.texi: New file.
34406         * doc/glibc-headers/ieee754.texi: New file.
34407         * doc/glibc-headers/ifaddrs.texi: New file.
34408         * doc/glibc-headers/libintl.texi: New file.
34409         * doc/glibc-headers/mcheck.texi: New file.
34410         * doc/glibc-headers/mntent.texi: New file.
34411         * doc/glibc-headers/obstack.texi: New file.
34412         * doc/glibc-headers/paths.texi: New file.
34413         * doc/glibc-headers/printf.texi: New file.
34414         * doc/glibc-headers/pty.texi: New file.
34415         * doc/glibc-headers/resolv.texi: New file.
34416         * doc/glibc-headers/shadow.texi: New file.
34417         * doc/glibc-headers/sysexits.texi: New file.
34418         * doc/glibc-headers/ttyent.texi: New file.
34419
34420 2008-01-12  Jim Meyering  <meyering@redhat.com>
34421
34422         announce-gen: emit Gnulib's git-based version string.
34423         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
34424         New option --gnulib-version=V, where V is expected to be
34425         the output of running git describe in the gnulib directory.
34426         (get_tool_versions): Request feedback on xdelta.  I suspect it's
34427         not useful, and plan to stop publishing an xdelta file with each
34428         coreutils release.
34429
34430         * build-aux/announce-gen: Also check for lzma-compressed files.
34431
34432 2008-01-11  Bruno Haible  <bruno@clisp.org>
34433
34434         * tests/test-memmem.c (main): Increase maximum allowed time.
34435         * tests/test-strstr.c (main): Likewise.
34436
34437 2008-01-11  Bruno Haible  <bruno@clisp.org>
34438
34439         * doc/functions/memmem.texi: Add more precisions about platforms.
34440         * doc/functions/strstr.texi: Likewise.
34441
34442 2008-01-10  Eric Blake  <ebb9@byu.net>
34443
34444         * m4/strstr.m4: Delete cruft from copy-n-paste.
34445         Reported by Bruno Haible.
34446
34447 2008-01-10  Bruno Haible  <bruno@clisp.org>
34448
34449         Make c-strstr rely on strstr.
34450         * lib/c-strstr.c: Don't include str-kmp.h.
34451         (c_strstr): Define in terms of strstr.
34452         * modules/c-strstr (Files): Remove lib/str-kmp.h.
34453         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
34454
34455 2008-01-10  Bruno Haible  <bruno@clisp.org>
34456
34457         * doc/gnulib.texi (String Functions in C Locale): New section.
34458         * doc/c-ctype.texi: New file.
34459         * doc/c-strcase.texi: New file.
34460         * doc/c-strcaseeq.texi: New file.
34461         * doc/c-strcasestr.texi: New file.
34462         * doc/c-strstr.texi: New file.
34463         * doc/c-strtod.texi: New file.
34464         * doc/c-strtold.texi: New file.
34465
34466 2008-01-10  Eric Blake  <ebb9@byu.net>
34467
34468         * lib/relocatable.h: Fix a comment.
34469
34470 2008-01-10  Eric Blake  <ebb9@byu.net>
34471
34472         Share two-way algorithm.
34473         * lib/str-two-way.h: New file, merged from...
34474         * lib/memmem.c: ...here...
34475         * lib/strstr.c: ...and here.
34476         * modules/memmem (Files): Use it.
34477         * modules/strstr (Files): Likewise.
34478
34479         Avoid quadratic strstr implementations.
34480         * lib/strstr.c: New file.
34481         * m4/strstr.m4: Likewise.
34482         * modules/strstr: Likewise.
34483         * modules/strstr-tests: Likewise.
34484         * tests/test-strstr.c: Likewise.
34485         * lib/string.in.h (rpl_strstr): Declare.
34486         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
34487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
34488         * modules/string (Makefile.am): Likewise.
34489         * MODULES.html.sh (string handling): Mention new module.
34490         * doc/functions/strstr.texi (strstr): Document the bug.
34491
34492 2008-01-10  Bruno Haible  <bruno@clisp.org>
34493
34494         * lib/relocatable.h (relocate): State whether result is freshly
34495         allocated or not.
34496         * lib/relocatable.c (relocate): Return a freshly allocated string
34497         instead of a pointer to a privately held string.
34498         Reported by Sylvain Beucler <beuc@gnu.org>.
34499
34500 2008-01-10  Colin Watson  <cjwatson@debian.org>
34501
34502         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
34503         s/S_ISNLK/S_ISLNK/.
34504
34505 2008-01-09  Bruno Haible  <bruno@clisp.org>
34506
34507         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
34508         and other files.
34509         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
34510         if it's only a guess.
34511         * modules/memmem: Simplify by depending on memmem-simple.
34512
34513 2008-01-09  Bruno Haible  <bruno@clisp.org>
34514
34515         Work around OpenBSD 4.0 tdelete() bug.
34516         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
34517         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
34518         macros and don't redefine the enum values.
34519         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
34520         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
34521         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
34522
34523 2008-01-09  Bruno Haible  <bruno@clisp.org>
34524
34525         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
34526         (main): Don't perform the tests if setlocale did not install a UTF-8
34527         locale. Needed on OpenBSD 4.0.
34528         * modules/wcwidth-tests (Depends-on): Add localcharset.
34529
34530 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34531
34532         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
34533         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
34534         * NEWS: announce this.
34535         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
34536
34537 2008-01-09  Simon Josefsson  <simon@josefsson.org>
34538         and Eric Blake  <ebb9@byu.net>
34539
34540         Add memmem-simple module.
34541         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
34542         (gl_FUNC_MEMMEM): Separate performance from presence checks.
34543         * modules/memmem-simple: New file.
34544         * modules/memmem (Description): Tweak.
34545         * MODULES.html.sh (string handling): Mention new module.
34546         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
34547         addressed by memmem-simple.
34548         * NEWS: Document the difference.
34549
34550 2008-01-09  Eric Blake  <ebb9@byu.net>
34551
34552         Give gcc some memmem optimization hints.
34553         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
34554         (strcasestr): Declare as pure.
34555         * modules/memmem (Maintainer): Claim my implementation.
34556
34557 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34558
34559         Support AIX 6.1 and higher.
34560         * build-aux/config.libpath: Likewise.
34561         * build-aux/config.rpath: Likewise.
34562
34563 2008-01-08  Jim Meyering  <meyering@redhat.com>
34564             Bruno Haible  <bruno@clisp.org>
34565
34566         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
34567         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
34568         Reported by Peter Fales in
34569         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
34570
34571 2008-01-08  Bruno Haible  <bruno@clisp.org>
34572
34573         * modules/unictype/category-of (Depends-on): Add
34574         unictype/category-none.
34575         * modules/unictype/category-and-tests (Depends-on): Add
34576         unictype/category-{L,N,Lu,Nd}.
34577         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
34578         * modules/unictype/category-or-tests (Depends-on): Add
34579         unictype/category-{L,N}.
34580         * modules/unictype/category-name-tests (Depends-on): Add
34581         unictype/category-{Z,Nl}.
34582         Reported by Simon Josefsson.
34583
34584 2008-01-08  Bruno Haible  <bruno@clisp.org>
34585
34586         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
34587         convention better.
34588         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
34589         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
34590         Reported by Peter Miller <millerp@canb.auug.org.au>.
34591
34592 2008-01-08  Eric Blake  <ebb9@byu.net>
34593
34594         Rewrite memmem to guarantee linear complexity without malloc.
34595         * lib/memmem.c (memmem): Use Two-Way rather than
34596         Knuth-Morris-Pratt, to allow O(1) space usage.
34597         (critical_factorization, two_way_short_needle)
34598         (two_way_long_needle): New functions.
34599         (knuth_morris_pratt): Delete.
34600         * modules/memmem (Depends-on): No longer need malloca or stdbool.
34601         Add stdint.
34602         * tests/test-memmem.c (main): Add tests for periodic needle and
34603         sublinear performance.
34604         * doc/functions/memmem.texi (memmem): Document other deficiencies
34605         in cygwin and older glibc.
34606
34607 2008-01-08  Bruno Haible  <bruno@clisp.org>
34608
34609         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
34610         augmentation.
34611
34612 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
34613
34614         Add a configure time option: --disable-acl.
34615         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
34616         AC_ARG_ENABLE(acl).
34617
34618 2008-01-06  Simon Josefsson  <simon@josefsson.org>
34619
34620         * tests/test-localename.c: Don't include obsolete "setenv.h".
34621
34622         * modules/localename-tests (Depends-on): Need unsetenv.
34623
34624 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34625
34626         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
34627
34628 2008-01-06  Colin Watson  <cjwatson@debian.org>
34629
34630         * users.txt: Add man-db.
34631
34632 2008-01-07  Bruno Haible  <bruno@clisp.org>
34633
34634         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
34635         previous section name.
34636
34637 2008-01-07  Bruno Haible  <bruno@clisp.org>
34638
34639         * lib/progname.c (set_program_name): Don't strip off a leading
34640         "lt-" prefix outside a .libs directory.
34641         Suggested by Paul Eggert.
34642
34643 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
34644             Bruno Haible  <bruno@clisp.org>
34645
34646         Improve memory cleanup in 'relocatable' module.
34647         * lib/relocatable.h (compute_curr_prefix): Change return type to
34648         'char *'.
34649         * lib/relocatable.c (compute_curr_prefix): Change return type to
34650         'char *'. Free curr_installdir after use.
34651         (relocate): Free curr_prefix_better after use.
34652         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
34653
34654 2008-01-01  Bruno Haible  <bruno@clisp.org>
34655
34656         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
34657         failure on older glibc systems.
34658         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34659
34660 2008-01-05  Eric Blake  <ebb9@byu.net>
34661
34662         Avoid quadratic system memmem.
34663         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
34664         Reported by Ralf Wildenhues.
34665
34666         Fix memmem test for mingw.
34667         * modules/memmem-tests (configure.ac): Check for alarm.
34668         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
34669         it.
34670         * doc/functions/memmem.texi: New file.
34671         * doc/gnulib.texi (Function Substitutes): Add memmem.
34672         Reported by Bruno Haible.
34673
34674 2008-01-04  Bruno Haible  <bruno@clisp.org>
34675
34676         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
34677         Require gl_HEADER_STRINGS_H_DEFAULTS, not
34678         gl_HEADER_STRING_H_DEFAULTS.
34679
34680 2008-01-04  Eric Blake  <ebb9@byu.net>
34681
34682         Shorten duration of memmem test.
34683         * tests/test-memmem.c (main): Use alarm to declare failure if test
34684         is taking too long.
34685         Reported by Ralf Wildenhues.
34686
34687 2007-12-21  Simon Josefsson  <simon@josefsson.org>
34688
34689         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
34690         string, needed by strerror.
34691
34692 2008-01-03  Colin Watson  <cjwatson@debian.org>
34693             Bruno Haible  <bruno@clisp.org>
34694
34695         * doc/gnulib-tool.texi (Localization): New section.
34696
34697 2008-01-02  Bruno Haible  <bruno@clisp.org>
34698
34699         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
34700         variables to 'unsigned char *' type.
34701         Reported by Paul Eggert.
34702
34703 2008-01-02  Jim Meyering  <jim@meyering.net>
34704
34705         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
34706
34707 2007-12-31  Jim Meyering  <jim@meyering.net>
34708
34709         Avoid use of private FTS type name.
34710         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
34711
34712 2007-12-30  Karl Berry  <karl@gnu.org>
34713
34714         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
34715         work around defect in Texinfo and/or the standalone Info browser.
34716
34717 2007-12-30  Bruno Haible  <bruno@clisp.org>
34718
34719         Unify 5 copies of the KMP code.
34720         * lib/str-kmp.h: New file.
34721         * lib/c-strcasestr.c: Include str-kmp.h.
34722         (knuth_morris_pratt): Remove function.
34723         (c_strcasestr): Update.
34724         * lib/c-strstr.c: Include str-kmp.h.
34725         (knuth_morris_pratt): Remove function.
34726         (c_strcasestr): Update.
34727         * lib/mbscasestr.c: Include str-kmp.h.
34728         (knuth_morris_pratt_unibyte): Remove function.
34729         * lib/mbsstr.c: Include str-kmp.h.
34730         (knuth_morris_pratt_unibyte): Remove function.
34731         * lib/strcasestr.c: Include str-kmp.h.
34732         (knuth_morris_pratt): Remove function.
34733         (strcasestr): Update.
34734         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
34735         * modules/c-strstr (Files): Likewise.
34736         * modules/mbscasestr (Files): Likewise.
34737         * modules/mbsstr (Files): Likewise.
34738         * modules/strcasestr (Files): Likewise.
34739         Suggested by Paul Eggert.
34740
34741 2007-12-30  Bruno Haible  <bruno@clisp.org>
34742
34743         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
34744         defined.
34745
34746 2007-12-30  Bruno Haible  <bruno@clisp.org>
34747
34748         * lib/xmalloca.h: Include xalloc.h.
34749         (xnmalloca): New macro.
34750
34751 2007-12-30  Bruno Haible  <bruno@clisp.org>
34752
34753         * lib/malloca.h (nmalloca): New macro.
34754         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
34755         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
34756         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
34757         knuth_morris_pratt_multibyte): Likewise.
34758         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
34759         knuth_morris_pratt_multibyte): Likewise.
34760         * lib/memmem.c (knuth_morris_pratt): Likewise.
34761         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
34762
34763 2007-12-25  Bruno Haible  <bruno@clisp.org>
34764
34765         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
34766         * lib/glob.c: Don't include openat.h.
34767         (link_exists2_p): Add back the code that deals with the
34768         !GLOB_ALTDIRFUNC case.
34769         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
34770         let it do the filename concatenation.
34771         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
34772         * modules/glob (Depends-on): Remove openat.
34773
34774 2007-12-31  Bruno Haible  <bruno@clisp.org>
34775
34776         * modules/dirfd (License): Change to LGPLv2+.
34777         Approved by Jim Meyering.
34778
34779 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
34780
34781         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
34782         when multiplying M by sizeof (size_t).
34783
34784 2007-12-10  Martin Lambers  <marlam@marlam.de>
34785
34786         Override getpagesize on mingw.
34787         * lib/getpagesize.c: New file.
34788         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
34789         * modules/getpagesize (Files): Add lib/getpagesize.c.
34790         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
34791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34792         REPLACE_GETPAGESIZE.
34793         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
34794
34795 2007-12-25  Bruno Haible  <bruno@clisp.org>
34796
34797         * modules/localcharset (Notice): New field.
34798         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
34799         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
34800
34801 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
34802             Bruno Haible  <bruno@clisp.org>
34803
34804         Avoid using the syntax symbol() in formatted documentation.
34805         * MODULES.html.sh (func_module): When replacing symbol() with a
34806         hyperlink, remove the parentheses. Show an error if some remain.
34807         Recognize and render the '...' syntax.
34808         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
34809         Rework. Add paragraph about GCC's inlining.
34810         * doc/alloca.texi: Likewise.
34811         * doc/error.texi: Remove parentheses from symbol reference.
34812         * doc/gnulib-intro.texi: Likewise.
34813         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
34814         * modules/fnmatch (Description): Reword to say "the ... function".
34815         * modules/full-read (Description): Likewise.
34816         * modules/full-write (Description): Likewise.
34817         * modules/safe-read (Description): Likewise.
34818         * modules/safe-write (Description): Likewise.
34819         * modules/strchrnul (Description): Likewise.
34820         * modules/trim (Description): Likewise.
34821         * modules/error (Description): Remove parentheses from symbol
34822         references.
34823         * modules/verror (Description): Likewise.
34824         Reported by Karl Berry.
34825
34826 2007-12-25  Bruno Haible  <bruno@clisp.org>
34827
34828         Fixup after 2007-10-16 commit.
34829         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
34830
34831 2007-12-24  Bruno Haible  <bruno@clisp.org>
34832
34833         Make --enable-relocatable work with DESTDIR.
34834         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
34835         to compute installdir from destprog.
34836         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
34837         also set the RELOC_DESTDIR variable.
34838         Reported by Левашев Иван <octagram@bluebottle.com>.
34839
34840 2007-12-24  Bruno Haible  <bruno@clisp.org>
34841
34842         Fix link error due to xalloc_die().
34843         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
34844         of xreadlink.
34845         * lib/relocwrapper.c: Update comments.
34846         * build-aux/install-reloc: Remove xreadlink.c from file list.
34847         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
34848         xreadlink.c.
34849         Reported by Левашев Иван <octagram@bluebottle.com>.
34850
34851 2007-12-24  Bruno Haible  <bruno@clisp.org>
34852
34853         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
34854         * lib/setenv.h: Remove file.
34855         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
34856         lib/setenv.h.
34857         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
34858         (Depends-on): Add stdlib.
34859         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
34860         gl_FUNC_UNSETENV.
34861         (Include): Replace setenv.h with <stdlib.h>.
34862         * modules/unsetenv: New file.
34863         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
34864         * lib/unsetenv.c: Include <stdlib.h> first.
34865         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
34866         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
34867         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
34868         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
34869         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
34870         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
34872         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34873         * doc/functions/unsetenv.texi: Update.
34874         * modules/xsetenv (Depends-on): Add unsetenv.
34875         * modules/getdate (Depends-on): Likewise.
34876         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
34877         * lib/xsetenv.c: Don't include setenv.h.
34878         * lib/getdate.y: Likewise.
34879         * lib/relocwrapper.c: Likewise.
34880         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
34881         (Depends-on): Add stdlib.
34882         * NEWS: Mention the changes.
34883         Reported by Левашев Иван <octagram@bluebottle.com>.
34884
34885 2007-12-23  Bruno Haible  <bruno@clisp.org>
34886
34887         * lib/memmem.c (memmem): Use lowercase variable names. Tab
34888         indentation.
34889
34890 2007-12-23  Bruno Haible  <bruno@clisp.org>
34891
34892         * lib/c-strcasestr.c: Add more comments.
34893         * lib/c-strstr.c: Likewise.
34894         * lib/mbscasestr.c: Likewise.
34895         * lib/mbsstr.c: Likewise.
34896         * lib/strcasestr.c: Likewise.
34897         * lib/memmem.c: Likewise.
34898
34899 2007-12-23  Bruno Haible  <bruno@clisp.org>
34900
34901         * tests/test-memmem.c: Include <string.h> first.
34902
34903 2007-12-22  Bruno Haible  <bruno@clisp.org>
34904
34905         * gnulib-tool (func_create_testdir): Change $auxdir while generating
34906         the contents of $testsbase.
34907         Reported by Ralf Wildenhues.
34908
34909 2007-12-22  Bruno Haible  <bruno@clisp.org>
34910
34911         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
34912         two variables local_ldadd_before, local_ldadd_last.
34913
34914 2007-12-20  Eric Blake  <ebb9@byu.net>
34915
34916         Work around circular library issue when cross-compiling.
34917         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
34918         that progname.o does not need to pull in rpl_memcmp.
34919
34920 2007-12-19  Eric Blake  <ebb9@byu.net>
34921
34922         Fix memmem to avoid O(n^2) worst-case complexity.
34923         * lib/memmem.c (knuth_morris_pratt): New function.
34924         (memmem): Use it if first few naive iterations fail.
34925         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
34926         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
34927         * modules/memchr (License): Likewise.
34928         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
34929         malloca.
34930         * tests/test-memmem.c: Rewrite, borrowing ideas from
34931         test-mbsstr1.c; the old version wouldn't even compile!
34932         * modules/memmem-tests: New file.
34933         * lib/string.in.h (rpl_memmem): Add declaration.
34934         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
34935         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
34936         REPLACE_MEMMEM.
34937
34938 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34939
34940         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
34941         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
34942         before any system include files, and undef after them all.  This
34943         should fix a problem on VMS reported by John E. Malmberg in
34944         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
34945
34946 2007-12-17  Eric Blake  <ebb9@byu.net>
34947
34948         Revert addition of verify, for BSD/OS.
34949         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
34950         can't handle large files, for the sake of obsolete platforms.
34951         * modules/fseeko (Depends-on): Remove verify.
34952         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
34953         * doc/functions/ftello.texi (ftello): Likewise.
34954         * doc/functions/fgetpos.texi (fgetpos): Likewise.
34955         Reported by Larry Jones.
34956
34957 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
34958
34959         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
34960         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
34961
34962 2007-12-17  Jim Meyering  <meyering@redhat.com>
34963
34964         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
34965         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
34966         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
34967         * modules/getcwd (Depends-on): Add openat.
34968         Reported by Petr Salinger.
34969
34970 2007-12-17  Bruno Haible  <bruno@clisp.org>
34971
34972         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
34973         avoid a segmentation fault of the configure test on x86_64 systems.
34974
34975 2007-12-15  Jim Meyering  <meyering@redhat.com>
34976
34977         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
34978
34979 2007-12-13  Eric Blake  <ebb9@byu.net>
34980
34981         Another fseek test.
34982         * tests/test-fseek.c (main): Also test ungetc handling.
34983         * tests/test-fseeko.c (main): Likewise.
34984         * modules/fseeko (Depends-on): Add verify.
34985         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
34986         large.
34987         Reported by Larry Jones.
34988
34989         Fix fseeko on mingw.
34990         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
34991         seek.
34992
34993         Beef up fseek tests.
34994         * tests/test-fseek.c (main): Also test eof handling.
34995         * tests/test-fseeko.c (main): Likewise.
34996         Reported by Larry Jones.
34997
34998 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
34999
35000         Fix fseeko on BSD-based platforms.
35001         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
35002         successful seek.
35003
35004 2007-12-12  Eric Blake  <ebb9@byu.net>
35005
35006         Allow circular dependency of separate libtests.a
35007         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
35008         when use_libtests.
35009
35010 2007-12-11  Eric Blake  <ebb9@byu.net>
35011
35012         Fix bug with -0.0L in previous patch.
35013         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
35014         * tests/test-isnan.c (main): Also test on zeroes.
35015         * tests/test-isnanf.c (main): Likewise.
35016         * tests/test-isnanl.h (main): Likewise.
35017
35018         Detect pseudo-denormals on x86 even when cross-compiling.
35019         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
35020         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
35021         invalid bit patterns that happen to satisfy ==.
35022
35023         Avoid link failures with separate libtests.a.
35024         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
35025         last, to satisfy circular dependencies.
35026
35027 2007-12-11  Eric Blake  <ebb9@byu.net>
35028         and Bruno Haible  <bruno@clisp.org>
35029
35030         Fix OpenBSD 4.0 <float.h> handling of long double.
35031         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
35032         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
35033         * doc/headers/float.texi (float.h): Document OpenBSD bug.
35034
35035 2007-12-11  Jim Meyering  <meyering@redhat.com>
35036
35037         * users.txt: Add libvirt.
35038
35039         Support versions of autoconf prior to 2.59c.
35040         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
35041         if it is not already defined.
35042
35043 2007-12-09  Bruno Haible  <bruno@clisp.org>
35044
35045         Let 'gnulib-tool --import' collect sources needed for the tests in
35046         tests/ rather than in lib/.
35047         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
35048         argument. If true, add rules to generate libtests.a, and put libtests.a
35049         into $(LDADD). Consider source files in subdirectories and set
35050         uses_subdirs.
35051         (func_emit_initmacro_start, func_emit_initmacro_end,
35052         func_emit_initmacro_done): Pass all arguments explicitly.
35053         (func_import): Determine two module lists main_modules,
35054         testsrelated_modules. Determine use_libtests. Determine two variables
35055         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
35056         instead of just sed_transform_lib_file. Determine two variables
35057         main_files and testsrelated_files. Compute 'files' as the union of
35058         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
35059         func_add_or_update. In the generated gnulib-comp.m4, collect the
35060         object files for tests/ in different variables than those for lib/.
35061         Substitute LIBTESTS_LIBDEPS.
35062         (func_create_testdir): Combine the uses_subdirs results from
35063         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
35064
35065 2007-12-09  Bruno Haible  <bruno@clisp.org>
35066
35067         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
35068         the build-aux directory.
35069
35070 2007-12-09  Bruno Haible  <bruno@clisp.org>
35071
35072         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
35073         introduced on 2006-09-09.
35074
35075 2007-12-07  Jim Meyering  <meyering@redhat.com>
35076
35077         Let these macros work also with autoconf-2.59.
35078         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
35079         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
35080         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
35081
35082 2007-12-06  Jim Meyering  <meyering@redhat.com>
35083
35084         Avoid a configure-time syntax error in gl_FUNC_ACL.
35085         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
35086         function in each branch, before testing the cache variable.
35087
35088 2007-12-04  Eric Blake  <ebb9@byu.net>
35089
35090         Make scripts executable.
35091         * build-aux/config.guess: Add execute permissions.
35092         * build-aux/config.sub: Likewise.
35093         * build-aux/gendocs.sh: Likewise.
35094
35095         Fix frexp on mingw.
35096         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
35097         cross-compiling.
35098         * doc/functions/frexp.texi (frexp): Document the bug.
35099
35100         Make cygwin fseeko check more reliable.
35101         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
35102         version numbers, rather than unrelated feature check.
35103         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
35104         * doc/functions/ftello.texi (ftello): Likewise.
35105         Reported by Bruno Haible.
35106
35107         * m4/strerror.m4: Bump version number.
35108
35109 2007-12-03  Bruno Haible  <bruno@clisp.org>
35110
35111         * doc/functions/mprotect.texi: Mention the mingw problem.
35112
35113 2007-12-03  Eric Blake  <ebb9@byu.net>
35114
35115         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
35116         REPLACE_STRERROR is initialized before this macro.
35117
35118 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
35119
35120         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
35121         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
35122         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
35123         put -lsec in even for programs other than 'ls'.  This fixes a problem
35124         for gettext reported by Bruno Haible in
35125         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
35126         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
35127         Add support for Solaris 10.  This isn't efficient, but should get the
35128         job done for now.
35129
35130 2007-12-03  James Youngman  <jay@gnu.org>
35131
35132         * doc/regexprops-generic.texi: change "an close-group" to "a
35133         close-group" and "illegal" to "not allowed".
35134
35135 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35136
35137         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
35138         pr_byname.h. Needed for the rare case when the maintainer has done
35139         "make maintainer-clean" in the source directory and then attempts a
35140         build outside the source directory.
35141         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
35142         scripts_byname.h.
35143
35144 2007-12-02  Martin Lambers <marlam@marlam.de>
35145             Bruno Haible  <bruno@clisp.org>
35146
35147         * lib/getpagesize.h: Remove file.
35148         * lib/unistd.in.h: Include declaration of getpagesize here.
35149         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
35150         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
35151         HAVE_SYS_PARAM_H.
35152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
35153         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
35154         * modules/getpagesize (Files): Remove lib/getpagesize.h.
35155         (Depends-on): Add unistd.
35156         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35157         (Include): Use <unistd.h> instead of getpagesize.h.
35158         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
35159         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
35160         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
35161         gl_GETPAGESIZE invocation, already handled by module dependency.
35162         * lib/pagealign_alloc.c: Don't include getpagesize.h.
35163
35164 2007-12-02  Bruno Haible  <bruno@clisp.org>
35165
35166         * modules/strings-tests: New file.
35167         * tests/test-strings.c: New file.
35168
35169         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
35170         * lib/strings.in.h: New file.
35171         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
35172         * m4/strings_h.m4: New file.
35173         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
35174         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
35175         * modules/strings: New file.
35176         * modules/string (Makefile.am): Update.
35177         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
35178         Reported by Karl Berry.
35179
35180 2007-12-01  Eric Blake  <ebb9@byu.net>
35181
35182         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
35183         accomodate fix in cygwin 1.5.25.
35184
35185 2007-12-01  Jim Meyering  <meyering@redhat.com>
35186
35187         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
35188         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
35189         that would inhibit utf8-optimization of a regexp containing line-
35190         or buffer-anchors, e.g., `^', `$'.
35191
35192 2007-11-30  Bruno Haible  <bruno@clisp.org>
35193
35194         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
35195         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
35196         glthread_recursive_lock_init.
35197         * lib/lock.c (glthread_recursive_lock_init)
35198         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
35199         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35200
35201 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
35202
35203         New function qset_acl, like set_acl but with syscall semantics.
35204         * lib/acl.h (qset_acl): New decl.
35205         * lib/acl.c (qset_acl): New function.
35206         (set_acl): Use new function.  Use more-consistent diagnostics.
35207
35208 2007-11-28  Jim Meyering  <meyering@redhat.com>
35209
35210         * modules/physmem (License): Change from GPL to LGPLv2+.
35211
35212 2007-11-26  Bruno Haible  <bruno@clisp.org>
35213
35214         * lib/vasnprintf.c (decode_long_double): Don't abort if the
35215         'long double' type has excess precision.
35216         Reported by Jim Meyering in
35217         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
35218
35219 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35220
35221         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
35222         Sync from <http://gnu.org/licenses>.
35223         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
35224         with license text from same location.
35225         * doc/maintain.texi, doc/standards.texi:  Sync from
35226         <http://savannah.gnu.org/projects/gnustandards>.
35227
35228 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
35229         and Jim Meyering  <meyering@redhat.com>
35230
35231         Adjust getdate' grammar to accept a slightly more regular language.
35232         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
35233         Before, the former was rejected.
35234         * lib/getdate.y (digits_to_date_time): New function, factored
35235         out of ...
35236         (number): ...here.  Just call digits_to_date_time.
35237         (hybrid): New non-terminal to handle an <unsigned number,
35238         signed relative offset> sequence consistently.
35239
35240 2007-11-18  Jim Meyering  <meyering@redhat.com>
35241
35242         Pull my changes from coreutils:
35243         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
35244         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
35245         use of $gnulib_tool_option_extras, so that it's separated from the
35246         preceding argument.
35247
35248         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
35249         * build-aux/bootstrap (cp_mark_as_generated): Create any required
35250         parent destination directories before copying a file into place.
35251
35252 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
35253
35254         bootstrap: work also with 4-argument variant of AC_INIT
35255         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
35256
35257 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
35258
35259         Port test-getaddrinfo to Solaris.
35260         Problem reported by Bruno Haible in
35261         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
35262         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
35263         explanation of setting 'hints'.
35264         Don't reject an implementation merely because it returns EAI_SERVICE.
35265         (EAI_SERVICE): Define to 0 if not defined.
35266
35267 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
35268
35269         The license of gnu-make and posix-shell is now "GPLed build tool".
35270         * modules/gnu-make (License): Likewise.
35271         * modules/posix-shell (License): Likewise.
35272
35273         New module posix-shell, for determining a POSIX shell
35274         or perhaps something that is close enough to a POSIX shell.
35275         * m4/posix-shell.m4: New file.
35276         * modules/posix-shell: New file.
35277
35278         * MODULES.html.sh: Mention new module.
35279
35280         New module gnu-make, for determining whether we're using GNU Make.
35281         * m4/gnu-make.m4: New file.
35282         * modules/gnu-make: New file.
35283         * MODULES.html.sh: Mention new module.
35284
35285 2007-11-14  Jim Meyering  <meyering@redhat.com>
35286
35287         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
35288         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
35289         use this macro to create a function _definition_.
35290         Remove useless "#undef ARGMATCH_DIE".
35291
35292 2007-11-14  Bruno Haible  <bruno@clisp.org>
35293
35294         * lib/config.charset: Update for OpenBSD 4.1.
35295         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
35296
35297 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
35298
35299         Document 64-bit #if problems in stdint.texi.
35300         * doc/headers/stdint.texi (stdint.h): Mention problems with
35301         64-bit-#if, and how to work around them.
35302
35303         Don't insist on 'long long int' support in the preprocessor.  It
35304         breaks too many things.  For example, PRIdMAX still uses a 'long
35305         long int' format with the latest Sun compiler, even though
35306         HAVE_LONG_LONG_INT isn't defined due to that compiler's
35307         preprocessor problem.  This causes the latest coreutils to dump
35308         core on Solaris 10 sparc with the Sun C compiler.
35309         Instead, fix the 2007-10-16 problem in a different way, by evaluating
35310         the troublesome expressions at configure-time, not at #if-time.
35311         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
35312         preprocessor.
35313         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
35314         compile-time C checks, done at 'configure'-time.
35315         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
35316         * modules/inttypes (Makefile): Substitute the new symbols that
35317         gl_INTTYPES_H now generates.
35318         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
35319
35320 2007-11-12  Bruno Haible  <bruno@clisp.org>
35321
35322         Tests for Unicode character classification functions.
35323
35324         * modules/unictype/bidicategory-byname-tests: New file.
35325         * modules/unictype/bidicategory-name-tests: New file.
35326         * modules/unictype/bidicategory-of-tests: New file.
35327         * modules/unictype/bidicategory-test-tests: New file.
35328         * modules/unictype/block-list-tests: New file.
35329         * modules/unictype/block-of-tests: New file.
35330         * modules/unictype/block-test-tests: New file.
35331         * modules/unictype/category-C-tests: New file.
35332         * modules/unictype/category-Cc-tests: New file.
35333         * modules/unictype/category-Cf-tests: New file.
35334         * modules/unictype/category-Cn-tests: New file.
35335         * modules/unictype/category-Co-tests: New file.
35336         * modules/unictype/category-Cs-tests: New file.
35337         * modules/unictype/category-L-tests: New file.
35338         * modules/unictype/category-Ll-tests: New file.
35339         * modules/unictype/category-Lm-tests: New file.
35340         * modules/unictype/category-Lo-tests: New file.
35341         * modules/unictype/category-Lt-tests: New file.
35342         * modules/unictype/category-Lu-tests: New file.
35343         * modules/unictype/category-M-tests: New file.
35344         * modules/unictype/category-Mc-tests: New file.
35345         * modules/unictype/category-Me-tests: New file.
35346         * modules/unictype/category-Mn-tests: New file.
35347         * modules/unictype/category-N-tests: New file.
35348         * modules/unictype/category-Nd-tests: New file.
35349         * modules/unictype/category-Nl-tests: New file.
35350         * modules/unictype/category-No-tests: New file.
35351         * modules/unictype/category-P-tests: New file.
35352         * modules/unictype/category-Pc-tests: New file.
35353         * modules/unictype/category-Pd-tests: New file.
35354         * modules/unictype/category-Pe-tests: New file.
35355         * modules/unictype/category-Pf-tests: New file.
35356         * modules/unictype/category-Pi-tests: New file.
35357         * modules/unictype/category-Po-tests: New file.
35358         * modules/unictype/category-Ps-tests: New file.
35359         * modules/unictype/category-S-tests: New file.
35360         * modules/unictype/category-Sc-tests: New file.
35361         * modules/unictype/category-Sk-tests: New file.
35362         * modules/unictype/category-Sm-tests: New file.
35363         * modules/unictype/category-So-tests: New file.
35364         * modules/unictype/category-Z-tests: New file.
35365         * modules/unictype/category-Zl-tests: New file.
35366         * modules/unictype/category-Zp-tests: New file.
35367         * modules/unictype/category-Zs-tests: New file.
35368         * modules/unictype/category-and-not-tests: New file.
35369         * modules/unictype/category-and-tests: New file.
35370         * modules/unictype/category-byname-tests: New file.
35371         * modules/unictype/category-name-tests: New file.
35372         * modules/unictype/category-none-tests: New file.
35373         * modules/unictype/category-of-tests: New file.
35374         * modules/unictype/category-or-tests: New file.
35375         * modules/unictype/category-test-withtable-tests: New file.
35376         * modules/unictype/combining-class-tests: New file.
35377         * modules/unictype/ctype-alnum-tests: New file.
35378         * modules/unictype/ctype-alpha-tests: New file.
35379         * modules/unictype/ctype-blank-tests: New file.
35380         * modules/unictype/ctype-cntrl-tests: New file.
35381         * modules/unictype/ctype-digit-tests: New file.
35382         * modules/unictype/ctype-graph-tests: New file.
35383         * modules/unictype/ctype-lower-tests: New file.
35384         * modules/unictype/ctype-print-tests: New file.
35385         * modules/unictype/ctype-punct-tests: New file.
35386         * modules/unictype/ctype-space-tests: New file.
35387         * modules/unictype/ctype-upper-tests: New file.
35388         * modules/unictype/ctype-xdigit-tests: New file.
35389         * modules/unictype/decimal-digit-tests: New file.
35390         * modules/unictype/digit-tests: New file.
35391         * modules/unictype/mirror-tests: New file.
35392         * modules/unictype/numeric-tests: New file.
35393         * modules/unictype/property-alphabetic-tests: New file.
35394         * modules/unictype/property-ascii-hex-digit-tests: New file.
35395         * modules/unictype/property-bidi-arabic-digit-tests: New file.
35396         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
35397         * modules/unictype/property-bidi-block-separator-tests: New file.
35398         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
35399         * modules/unictype/property-bidi-common-separator-tests: New file.
35400         * modules/unictype/property-bidi-control-tests: New file.
35401         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
35402         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
35403         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
35404         * modules/unictype/property-bidi-european-digit-tests: New file.
35405         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
35406         * modules/unictype/property-bidi-left-to-right-tests: New file.
35407         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
35408         * modules/unictype/property-bidi-other-neutral-tests: New file.
35409         * modules/unictype/property-bidi-pdf-tests: New file.
35410         * modules/unictype/property-bidi-segment-separator-tests: New file.
35411         * modules/unictype/property-bidi-whitespace-tests: New file.
35412         * modules/unictype/property-byname-tests: New file.
35413         * modules/unictype/property-combining-tests: New file.
35414         * modules/unictype/property-composite-tests: New file.
35415         * modules/unictype/property-currency-symbol-tests: New file.
35416         * modules/unictype/property-dash-tests: New file.
35417         * modules/unictype/property-decimal-digit-tests: New file.
35418         * modules/unictype/property-default-ignorable-code-point-tests: New file.
35419         * modules/unictype/property-deprecated-tests: New file.
35420         * modules/unictype/property-diacritic-tests: New file.
35421         * modules/unictype/property-extender-tests: New file.
35422         * modules/unictype/property-format-control-tests: New file.
35423         * modules/unictype/property-grapheme-base-tests: New file.
35424         * modules/unictype/property-grapheme-extend-tests: New file.
35425         * modules/unictype/property-grapheme-link-tests: New file.
35426         * modules/unictype/property-hex-digit-tests: New file.
35427         * modules/unictype/property-hyphen-tests: New file.
35428         * modules/unictype/property-id-continue-tests: New file.
35429         * modules/unictype/property-id-start-tests: New file.
35430         * modules/unictype/property-ideographic-tests: New file.
35431         * modules/unictype/property-ids-binary-operator-tests: New file.
35432         * modules/unictype/property-ids-trinary-operator-tests: New file.
35433         * modules/unictype/property-ignorable-control-tests: New file.
35434         * modules/unictype/property-iso-control-tests: New file.
35435         * modules/unictype/property-join-control-tests: New file.
35436         * modules/unictype/property-left-of-pair-tests: New file.
35437         * modules/unictype/property-line-separator-tests: New file.
35438         * modules/unictype/property-logical-order-exception-tests: New file.
35439         * modules/unictype/property-lowercase-tests: New file.
35440         * modules/unictype/property-math-tests: New file.
35441         * modules/unictype/property-non-break-tests: New file.
35442         * modules/unictype/property-not-a-character-tests: New file.
35443         * modules/unictype/property-numeric-tests: New file.
35444         * modules/unictype/property-other-alphabetic-tests: New file.
35445         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
35446         * modules/unictype/property-other-grapheme-extend-tests: New file.
35447         * modules/unictype/property-other-id-continue-tests: New file.
35448         * modules/unictype/property-other-id-start-tests: New file.
35449         * modules/unictype/property-other-lowercase-tests: New file.
35450         * modules/unictype/property-other-math-tests: New file.
35451         * modules/unictype/property-other-uppercase-tests: New file.
35452         * modules/unictype/property-paired-punctuation-tests: New file.
35453         * modules/unictype/property-paragraph-separator-tests: New file.
35454         * modules/unictype/property-pattern-syntax-tests: New file.
35455         * modules/unictype/property-pattern-white-space-tests: New file.
35456         * modules/unictype/property-private-use-tests: New file.
35457         * modules/unictype/property-punctuation-tests: New file.
35458         * modules/unictype/property-quotation-mark-tests: New file.
35459         * modules/unictype/property-radical-tests: New file.
35460         * modules/unictype/property-sentence-terminal-tests: New file.
35461         * modules/unictype/property-soft-dotted-tests: New file.
35462         * modules/unictype/property-space-tests: New file.
35463         * modules/unictype/property-terminal-punctuation-tests: New file.
35464         * modules/unictype/property-test-tests: New file.
35465         * modules/unictype/property-titlecase-tests: New file.
35466         * modules/unictype/property-unassigned-code-value-tests: New file.
35467         * modules/unictype/property-unified-ideograph-tests: New file.
35468         * modules/unictype/property-uppercase-tests: New file.
35469         * modules/unictype/property-variation-selector-tests: New file.
35470         * modules/unictype/property-white-space-tests: New file.
35471         * modules/unictype/property-xid-continue-tests: New file.
35472         * modules/unictype/property-xid-start-tests: New file.
35473         * modules/unictype/property-zero-width-tests: New file.
35474         * modules/unictype/scripts-tests: New file.
35475         * modules/unictype/syntax-c-ident-tests: New file.
35476         * modules/unictype/syntax-c-whitespace-tests: New file.
35477         * modules/unictype/syntax-java-ident-tests: New file.
35478         * modules/unictype/syntax-java-whitespace-tests: New file.
35479         * tests/unictype/test-bidi_byname.c: New file.
35480         * tests/unictype/test-bidi_name.c: New file.
35481         * tests/unictype/test-bidi_of.c: New file.
35482         * tests/unictype/test-bidi_test.c: New file.
35483         * tests/unictype/test-block_list.c: New file.
35484         * tests/unictype/test-block_of.c: New file.
35485         * tests/unictype/test-block_test.c: New file.
35486         * tests/unictype/test-categ_and.c: New file.
35487         * tests/unictype/test-categ_and_not.c: New file.
35488         * tests/unictype/test-categ_byname.c: New file.
35489         * tests/unictype/test-categ_name.c: New file.
35490         * tests/unictype/test-categ_none.c: New file.
35491         * tests/unictype/test-categ_of.c: New file.
35492         * tests/unictype/test-categ_or.c: New file.
35493         * tests/unictype/test-categ_test_withtable.c: New file.
35494         * tests/unictype/test-combining.c: New file.
35495         * tests/unictype/test-decdigit.c: New file.
35496         * tests/unictype/test-digit.c: New file.
35497         * tests/unictype/test-mirror.c: New file.
35498         * tests/unictype/test-numeric.c: New file.
35499         * tests/unictype/test-pr_byname.c: New file.
35500         * tests/unictype/test-pr_test.c: New file.
35501         * tests/unictype/test-predicate-part1.h: New file.
35502         * tests/unictype/test-predicate-part2.h: New file.
35503         * tests/unictype/test-scripts.c: New file.
35504         * tests/unictype/test-sy_c_ident.c: New file.
35505         * tests/unictype/test-sy_java_ident.c: New file.
35506
35507         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
35508         for Unicode 5.0.0.
35509         * tests/unictype/test-categ_Cc.c: Likewise.
35510         * tests/unictype/test-categ_Cf.c: Likewise.
35511         * tests/unictype/test-categ_Cn.c: Likewise.
35512         * tests/unictype/test-categ_Co.c: Likewise.
35513         * tests/unictype/test-categ_Cs.c: Likewise.
35514         * tests/unictype/test-categ_L.c: Likewise.
35515         * tests/unictype/test-categ_Ll.c: Likewise.
35516         * tests/unictype/test-categ_Lm.c: Likewise.
35517         * tests/unictype/test-categ_Lo.c: Likewise.
35518         * tests/unictype/test-categ_Lt.c: Likewise.
35519         * tests/unictype/test-categ_Lu.c: Likewise.
35520         * tests/unictype/test-categ_M.c: Likewise.
35521         * tests/unictype/test-categ_Mc.c: Likewise.
35522         * tests/unictype/test-categ_Me.c: Likewise.
35523         * tests/unictype/test-categ_Mn.c: Likewise.
35524         * tests/unictype/test-categ_N.c: Likewise.
35525         * tests/unictype/test-categ_Nd.c: Likewise.
35526         * tests/unictype/test-categ_Nl.c: Likewise.
35527         * tests/unictype/test-categ_No.c: Likewise.
35528         * tests/unictype/test-categ_P.c: Likewise.
35529         * tests/unictype/test-categ_Pc.c: Likewise.
35530         * tests/unictype/test-categ_Pd.c: Likewise.
35531         * tests/unictype/test-categ_Pe.c: Likewise.
35532         * tests/unictype/test-categ_Pf.c: Likewise.
35533         * tests/unictype/test-categ_Pi.c: Likewise.
35534         * tests/unictype/test-categ_Po.c: Likewise.
35535         * tests/unictype/test-categ_Ps.c: Likewise.
35536         * tests/unictype/test-categ_S.c: Likewise.
35537         * tests/unictype/test-categ_Sc.c: Likewise.
35538         * tests/unictype/test-categ_Sk.c: Likewise.
35539         * tests/unictype/test-categ_Sm.c: Likewise.
35540         * tests/unictype/test-categ_So.c: Likewise.
35541         * tests/unictype/test-categ_Z.c: Likewise.
35542         * tests/unictype/test-categ_Zl.c: Likewise.
35543         * tests/unictype/test-categ_Zp.c: Likewise.
35544         * tests/unictype/test-categ_Zs.c: Likewise.
35545         * tests/unictype/test-ctype_alnum.c: Likewise.
35546         * tests/unictype/test-ctype_alpha.c: Likewise.
35547         * tests/unictype/test-ctype_blank.c: Likewise.
35548         * tests/unictype/test-ctype_cntrl.c: Likewise.
35549         * tests/unictype/test-ctype_digit.c: Likewise.
35550         * tests/unictype/test-ctype_graph.c: Likewise.
35551         * tests/unictype/test-ctype_lower.c: Likewise.
35552         * tests/unictype/test-ctype_print.c: Likewise.
35553         * tests/unictype/test-ctype_punct.c: Likewise.
35554         * tests/unictype/test-ctype_space.c: Likewise.
35555         * tests/unictype/test-ctype_upper.c: Likewise.
35556         * tests/unictype/test-ctype_xdigit.c: Likewise.
35557         * tests/unictype/test-decdigit.h: Likewise.
35558         * tests/unictype/test-digit.h: Likewise.
35559         * tests/unictype/test-numeric.h: Likewise.
35560         * tests/unictype/test-pr_alphabetic.c: Likewise.
35561         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
35562         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
35563         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
35564         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
35565         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
35566         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
35567         * tests/unictype/test-pr_bidi_control.c: Likewise.
35568         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
35569         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
35570         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
35571         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
35572         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
35573         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
35574         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
35575         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
35576         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
35577         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
35578         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
35579         * tests/unictype/test-pr_combining.c: Likewise.
35580         * tests/unictype/test-pr_composite.c: Likewise.
35581         * tests/unictype/test-pr_currency_symbol.c: Likewise.
35582         * tests/unictype/test-pr_dash.c: Likewise.
35583         * tests/unictype/test-pr_decimal_digit.c: Likewise.
35584         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
35585         * tests/unictype/test-pr_deprecated.c: Likewise.
35586         * tests/unictype/test-pr_diacritic.c: Likewise.
35587         * tests/unictype/test-pr_extender.c: Likewise.
35588         * tests/unictype/test-pr_format_control.c: Likewise.
35589         * tests/unictype/test-pr_grapheme_base.c: Likewise.
35590         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
35591         * tests/unictype/test-pr_grapheme_link.c: Likewise.
35592         * tests/unictype/test-pr_hex_digit.c: Likewise.
35593         * tests/unictype/test-pr_hyphen.c: Likewise.
35594         * tests/unictype/test-pr_id_continue.c: Likewise.
35595         * tests/unictype/test-pr_id_start.c: Likewise.
35596         * tests/unictype/test-pr_ideographic.c: Likewise.
35597         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
35598         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
35599         * tests/unictype/test-pr_ignorable_control.c: Likewise.
35600         * tests/unictype/test-pr_iso_control.c: Likewise.
35601         * tests/unictype/test-pr_join_control.c: Likewise.
35602         * tests/unictype/test-pr_left_of_pair.c: Likewise.
35603         * tests/unictype/test-pr_line_separator.c: Likewise.
35604         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
35605         * tests/unictype/test-pr_lowercase.c: Likewise.
35606         * tests/unictype/test-pr_math.c: Likewise.
35607         * tests/unictype/test-pr_non_break.c: Likewise.
35608         * tests/unictype/test-pr_not_a_character.c: Likewise.
35609         * tests/unictype/test-pr_numeric.c: Likewise.
35610         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
35611         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
35612         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
35613         * tests/unictype/test-pr_other_id_continue.c: Likewise.
35614         * tests/unictype/test-pr_other_id_start.c: Likewise.
35615         * tests/unictype/test-pr_other_lowercase.c: Likewise.
35616         * tests/unictype/test-pr_other_math.c: Likewise.
35617         * tests/unictype/test-pr_other_uppercase.c: Likewise.
35618         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
35619         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
35620         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
35621         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
35622         * tests/unictype/test-pr_private_use.c: Likewise.
35623         * tests/unictype/test-pr_punctuation.c: Likewise.
35624         * tests/unictype/test-pr_quotation_mark.c: Likewise.
35625         * tests/unictype/test-pr_radical.c: Likewise.
35626         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
35627         * tests/unictype/test-pr_soft_dotted.c: Likewise.
35628         * tests/unictype/test-pr_space.c: Likewise.
35629         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
35630         * tests/unictype/test-pr_titlecase.c: Likewise.
35631         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
35632         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
35633         * tests/unictype/test-pr_uppercase.c: Likewise.
35634         * tests/unictype/test-pr_variation_selector.c: Likewise.
35635         * tests/unictype/test-pr_white_space.c: Likewise.
35636         * tests/unictype/test-pr_xid_continue.c: Likewise.
35637         * tests/unictype/test-pr_xid_start.c: Likewise.
35638         * tests/unictype/test-pr_zero_width.c: Likewise.
35639         * tests/unictype/test-sy_c_whitespace.c: Likewise.
35640         * tests/unictype/test-sy_java_whitespace.c: Likewise.
35641
35642 2007-11-12  Bruno Haible  <bruno@clisp.org>
35643
35644         Unicode character classification functions.
35645         * lib/unictype.h: New file.
35646         * modules/unictype/base: New file.
35647         * modules/unictype/category-L: New file.
35648         * modules/unictype/category-Lu: New file.
35649         * modules/unictype/category-Ll: New file.
35650         * modules/unictype/category-Lt: New file.
35651         * modules/unictype/category-Lm: New file.
35652         * modules/unictype/category-Lo: New file.
35653         * modules/unictype/category-M: New file.
35654         * modules/unictype/category-Mn: New file.
35655         * modules/unictype/category-Mc: New file.
35656         * modules/unictype/category-Me: New file.
35657         * modules/unictype/category-N: New file.
35658         * modules/unictype/category-Nd: New file.
35659         * modules/unictype/category-Nl: New file.
35660         * modules/unictype/category-No: New file.
35661         * modules/unictype/category-P: New file.
35662         * modules/unictype/category-Pc: New file.
35663         * modules/unictype/category-Pd: New file.
35664         * modules/unictype/category-Ps: New file.
35665         * modules/unictype/category-Pe: New file.
35666         * modules/unictype/category-Pi: New file.
35667         * modules/unictype/category-Pf: New file.
35668         * modules/unictype/category-Po: New file.
35669         * modules/unictype/category-S: New file.
35670         * modules/unictype/category-Sm: New file.
35671         * modules/unictype/category-Sc: New file.
35672         * modules/unictype/category-Sk: New file.
35673         * modules/unictype/category-So: New file.
35674         * modules/unictype/category-Z: New file.
35675         * modules/unictype/category-Zs: New file.
35676         * modules/unictype/category-Zl: New file.
35677         * modules/unictype/category-Zp: New file.
35678         * modules/unictype/category-C: New file.
35679         * modules/unictype/category-Cc: New file.
35680         * modules/unictype/category-Cf: New file.
35681         * modules/unictype/category-Cs: New file.
35682         * modules/unictype/category-Co: New file.
35683         * modules/unictype/category-Cn: New file.
35684         * modules/unictype/category-or: New file.
35685         * modules/unictype/category-of: New file.
35686         * modules/unictype/category-test: New file.
35687         * modules/unictype/category-test-withtable: New file.
35688         * modules/unictype/category-byname: New file.
35689         * modules/unictype/category-none: New file.
35690         * modules/unictype/category-and: New file.
35691         * modules/unictype/category-and-not: New file.
35692         * modules/unictype/category-name: New file.
35693         * modules/unictype/combining-class: New file.
35694         * modules/unictype/category-all: New file.
35695         * modules/unictype/bidicategory-all: New file.
35696         * modules/unictype/bidicategory-byname: New file.
35697         * modules/unictype/bidicategory-name: New file.
35698         * modules/unictype/bidicategory-of: New file.
35699         * modules/unictype/bidicategory-test: New file.
35700         * modules/unictype/decimal-digit: New file.
35701         * modules/unictype/digit: New file.
35702         * modules/unictype/numeric: New file.
35703         * modules/unictype/mirror: New file.
35704         * modules/unictype/property-white-space: New file.
35705         * modules/unictype/property-alphabetic: New file.
35706         * modules/unictype/property-other-alphabetic: New file.
35707         * modules/unictype/property-not-a-character: New file.
35708         * modules/unictype/property-default-ignorable-code-point: New file.
35709         * modules/unictype/property-other-default-ignorable-code-point: New
35710         file.
35711         * modules/unictype/property-deprecated: New file.
35712         * modules/unictype/property-logical-order-exception: New file.
35713         * modules/unictype/property-variation-selector: New file.
35714         * modules/unictype/property-private-use: New file.
35715         * modules/unictype/property-unassigned-code-value: New file.
35716         * modules/unictype/property-uppercase: New file.
35717         * modules/unictype/property-other-uppercase: New file.
35718         * modules/unictype/property-lowercase: New file.
35719         * modules/unictype/property-other-lowercase: New file.
35720         * modules/unictype/property-titlecase: New file.
35721         * modules/unictype/property-soft-dotted: New file.
35722         * modules/unictype/property-id-start: New file.
35723         * modules/unictype/property-other-id-start: New file.
35724         * modules/unictype/property-id-continue: New file.
35725         * modules/unictype/property-other-id-continue: New file.
35726         * modules/unictype/property-xid-start: New file.
35727         * modules/unictype/property-xid-continue: New file.
35728         * modules/unictype/property-pattern-white-space: New file.
35729         * modules/unictype/property-pattern-syntax: New file.
35730         * modules/unictype/property-join-control: New file.
35731         * modules/unictype/property-grapheme-base: New file.
35732         * modules/unictype/property-grapheme-extend: New file.
35733         * modules/unictype/property-other-grapheme-extend: New file.
35734         * modules/unictype/property-grapheme-link: New file.
35735         * modules/unictype/property-bidi-control: New file.
35736         * modules/unictype/property-bidi-left-to-right: New file.
35737         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
35738         * modules/unictype/property-bidi-arabic-right-to-left: New file.
35739         * modules/unictype/property-bidi-european-digit: New file.
35740         * modules/unictype/property-bidi-eur-num-separator: New file.
35741         * modules/unictype/property-bidi-eur-num-terminator: New file.
35742         * modules/unictype/property-bidi-arabic-digit: New file.
35743         * modules/unictype/property-bidi-common-separator: New file.
35744         * modules/unictype/property-bidi-block-separator: New file.
35745         * modules/unictype/property-bidi-segment-separator: New file.
35746         * modules/unictype/property-bidi-whitespace: New file.
35747         * modules/unictype/property-bidi-non-spacing-mark: New file.
35748         * modules/unictype/property-bidi-boundary-neutral: New file.
35749         * modules/unictype/property-bidi-pdf: New file.
35750         * modules/unictype/property-bidi-embedding-or-override: New file.
35751         * modules/unictype/property-bidi-other-neutral: New file.
35752         * modules/unictype/property-hex-digit: New file.
35753         * modules/unictype/property-ascii-hex-digit: New file.
35754         * modules/unictype/property-ideographic: New file.
35755         * modules/unictype/property-unified-ideograph: New file.
35756         * modules/unictype/property-radical: New file.
35757         * modules/unictype/property-ids-binary-operator: New file.
35758         * modules/unictype/property-ids-trinary-operator: New file.
35759         * modules/unictype/property-zero-width: New file.
35760         * modules/unictype/property-space: New file.
35761         * modules/unictype/property-non-break: New file.
35762         * modules/unictype/property-iso-control: New file.
35763         * modules/unictype/property-format-control: New file.
35764         * modules/unictype/property-dash: New file.
35765         * modules/unictype/property-hyphen: New file.
35766         * modules/unictype/property-punctuation: New file.
35767         * modules/unictype/property-line-separator: New file.
35768         * modules/unictype/property-paragraph-separator: New file.
35769         * modules/unictype/property-quotation-mark: New file.
35770         * modules/unictype/property-sentence-terminal: New file.
35771         * modules/unictype/property-terminal-punctuation: New file.
35772         * modules/unictype/property-currency-symbol: New file.
35773         * modules/unictype/property-math: New file.
35774         * modules/unictype/property-other-math: New file.
35775         * modules/unictype/property-paired-punctuation: New file.
35776         * modules/unictype/property-left-of-pair: New file.
35777         * modules/unictype/property-combining: New file.
35778         * modules/unictype/property-composite: New file.
35779         * modules/unictype/property-decimal-digit: New file.
35780         * modules/unictype/property-numeric: New file.
35781         * modules/unictype/property-diacritic: New file.
35782         * modules/unictype/property-extender: New file.
35783         * modules/unictype/property-ignorable-control: New file.
35784         * modules/unictype/property-test: New file.
35785         * modules/unictype/property-byname: New file.
35786         * modules/unictype/property-all: New file.
35787         * modules/unictype/scripts: New file.
35788         * modules/unictype/scripts-all: New file.
35789         * modules/unictype/block-of: New file.
35790         * modules/unictype/block-test: New file.
35791         * modules/unictype/block-list: New file.
35792         * modules/unictype/block-all: New file.
35793         * modules/unictype/syntax-c-whitespace: New file.
35794         * modules/unictype/syntax-java-whitespace: New file.
35795         * modules/unictype/syntax-c-ident: New file.
35796         * modules/unictype/syntax-java-ident: New file.
35797         * modules/unictype/ctype-alnum: New file.
35798         * modules/unictype/ctype-alpha: New file.
35799         * modules/unictype/ctype-cntrl: New file.
35800         * modules/unictype/ctype-digit: New file.
35801         * modules/unictype/ctype-graph: New file.
35802         * modules/unictype/ctype-lower: New file.
35803         * modules/unictype/ctype-print: New file.
35804         * modules/unictype/ctype-punct: New file.
35805         * modules/unictype/ctype-space: New file.
35806         * modules/unictype/ctype-upper: New file.
35807         * modules/unictype/ctype-xdigit: New file.
35808         * modules/unictype/ctype-blank: New file.
35809         * lib/unictype/bidi_byname.c: New file.
35810         * lib/unictype/bidi_name.c: New file.
35811         * lib/unictype/bidi_of.c: New file.
35812         * lib/unictype/bidi_test.c: New file.
35813         * lib/unictype/bitmap.h: New file.
35814         * lib/unictype/block_test.c: New file.
35815         * lib/unictype/blocks.c: New file.
35816         * lib/unictype/categ_C.c: New file.
35817         * lib/unictype/categ_Cc.c: New file.
35818         * lib/unictype/categ_Cf.c: New file.
35819         * lib/unictype/categ_Cn.c: New file.
35820         * lib/unictype/categ_Co.c: New file.
35821         * lib/unictype/categ_Cs.c: New file.
35822         * lib/unictype/categ_L.c: New file.
35823         * lib/unictype/categ_Ll.c: New file.
35824         * lib/unictype/categ_Lm.c: New file.
35825         * lib/unictype/categ_Lo.c: New file.
35826         * lib/unictype/categ_Lt.c: New file.
35827         * lib/unictype/categ_Lu.c: New file.
35828         * lib/unictype/categ_M.c: New file.
35829         * lib/unictype/categ_Mc.c: New file.
35830         * lib/unictype/categ_Me.c: New file.
35831         * lib/unictype/categ_Mn.c: New file.
35832         * lib/unictype/categ_N.c: New file.
35833         * lib/unictype/categ_Nd.c: New file.
35834         * lib/unictype/categ_Nl.c: New file.
35835         * lib/unictype/categ_No.c: New file.
35836         * lib/unictype/categ_P.c: New file.
35837         * lib/unictype/categ_Pc.c: New file.
35838         * lib/unictype/categ_Pd.c: New file.
35839         * lib/unictype/categ_Pe.c: New file.
35840         * lib/unictype/categ_Pf.c: New file.
35841         * lib/unictype/categ_Pi.c: New file.
35842         * lib/unictype/categ_Po.c: New file.
35843         * lib/unictype/categ_Ps.c: New file.
35844         * lib/unictype/categ_S.c: New file.
35845         * lib/unictype/categ_Sc.c: New file.
35846         * lib/unictype/categ_Sk.c: New file.
35847         * lib/unictype/categ_Sm.c: New file.
35848         * lib/unictype/categ_So.c: New file.
35849         * lib/unictype/categ_Z.c: New file.
35850         * lib/unictype/categ_Zl.c: New file.
35851         * lib/unictype/categ_Zp.c: New file.
35852         * lib/unictype/categ_Zs.c: New file.
35853         * lib/unictype/categ_and.c: New file.
35854         * lib/unictype/categ_and_not.c: New file.
35855         * lib/unictype/categ_byname.c: New file.
35856         * lib/unictype/categ_name.c: New file.
35857         * lib/unictype/categ_none.c: New file.
35858         * lib/unictype/categ_of.c: New file.
35859         * lib/unictype/categ_or.c: New file.
35860         * lib/unictype/categ_test.c: New file.
35861         * lib/unictype/combining.c: New file.
35862         * lib/unictype/ctype_alnum.c: New file.
35863         * lib/unictype/ctype_alpha.c: New file.
35864         * lib/unictype/ctype_blank.c: New file.
35865         * lib/unictype/ctype_cntrl.c: New file.
35866         * lib/unictype/ctype_digit.c: New file.
35867         * lib/unictype/ctype_graph.c: New file.
35868         * lib/unictype/ctype_lower.c: New file.
35869         * lib/unictype/ctype_print.c: New file.
35870         * lib/unictype/ctype_punct.c: New file.
35871         * lib/unictype/ctype_space.c: New file.
35872         * lib/unictype/ctype_upper.c: New file.
35873         * lib/unictype/ctype_xdigit.c: New file.
35874         * lib/unictype/decdigit.c: New file.
35875         * lib/unictype/digit.c: New file.
35876         * lib/unictype/identsyntaxmap.h: New file.
35877         * lib/unictype/mirror.c: New file.
35878         * lib/unictype/numeric.c: New file.
35879         * lib/unictype/pr_alphabetic.c: New file.
35880         * lib/unictype/pr_ascii_hex_digit.c: New file.
35881         * lib/unictype/pr_bidi_arabic_digit.c: New file.
35882         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
35883         * lib/unictype/pr_bidi_block_separator.c: New file.
35884         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
35885         * lib/unictype/pr_bidi_common_separator.c: New file.
35886         * lib/unictype/pr_bidi_control.c: New file.
35887         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
35888         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
35889         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
35890         * lib/unictype/pr_bidi_european_digit.c: New file.
35891         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
35892         * lib/unictype/pr_bidi_left_to_right.c: New file.
35893         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
35894         * lib/unictype/pr_bidi_other_neutral.c: New file.
35895         * lib/unictype/pr_bidi_pdf.c: New file.
35896         * lib/unictype/pr_bidi_segment_separator.c: New file.
35897         * lib/unictype/pr_bidi_whitespace.c: New file.
35898         * lib/unictype/pr_byname.c: New file.
35899         * lib/unictype/pr_byname.gperf: New file.
35900         * lib/unictype/pr_combining.c: New file.
35901         * lib/unictype/pr_composite.c: New file.
35902         * lib/unictype/pr_currency_symbol.c: New file.
35903         * lib/unictype/pr_dash.c: New file.
35904         * lib/unictype/pr_decimal_digit.c: New file.
35905         * lib/unictype/pr_default_ignorable_code_point.c: New file.
35906         * lib/unictype/pr_deprecated.c: New file.
35907         * lib/unictype/pr_diacritic.c: New file.
35908         * lib/unictype/pr_extender.c: New file.
35909         * lib/unictype/pr_format_control.c: New file.
35910         * lib/unictype/pr_grapheme_base.c: New file.
35911         * lib/unictype/pr_grapheme_extend.c: New file.
35912         * lib/unictype/pr_grapheme_link.c: New file.
35913         * lib/unictype/pr_hex_digit.c: New file.
35914         * lib/unictype/pr_hyphen.c: New file.
35915         * lib/unictype/pr_id_continue.c: New file.
35916         * lib/unictype/pr_id_start.c: New file.
35917         * lib/unictype/pr_ideographic.c: New file.
35918         * lib/unictype/pr_ids_binary_operator.c: New file.
35919         * lib/unictype/pr_ids_trinary_operator.c: New file.
35920         * lib/unictype/pr_ignorable_control.c: New file.
35921         * lib/unictype/pr_iso_control.c: New file.
35922         * lib/unictype/pr_join_control.c: New file.
35923         * lib/unictype/pr_left_of_pair.c: New file.
35924         * lib/unictype/pr_line_separator.c: New file.
35925         * lib/unictype/pr_logical_order_exception.c: New file.
35926         * lib/unictype/pr_lowercase.c: New file.
35927         * lib/unictype/pr_math.c: New file.
35928         * lib/unictype/pr_non_break.c: New file.
35929         * lib/unictype/pr_not_a_character.c: New file.
35930         * lib/unictype/pr_numeric.c: New file.
35931         * lib/unictype/pr_other_alphabetic.c: New file.
35932         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
35933         * lib/unictype/pr_other_grapheme_extend.c: New file.
35934         * lib/unictype/pr_other_id_continue.c: New file.
35935         * lib/unictype/pr_other_id_start.c: New file.
35936         * lib/unictype/pr_other_lowercase.c: New file.
35937         * lib/unictype/pr_other_math.c: New file.
35938         * lib/unictype/pr_other_uppercase.c: New file.
35939         * lib/unictype/pr_paired_punctuation.c: New file.
35940         * lib/unictype/pr_paragraph_separator.c: New file.
35941         * lib/unictype/pr_pattern_syntax.c: New file.
35942         * lib/unictype/pr_pattern_white_space.c: New file.
35943         * lib/unictype/pr_private_use.c: New file.
35944         * lib/unictype/pr_punctuation.c: New file.
35945         * lib/unictype/pr_quotation_mark.c: New file.
35946         * lib/unictype/pr_radical.c: New file.
35947         * lib/unictype/pr_sentence_terminal.c: New file.
35948         * lib/unictype/pr_soft_dotted.c: New file.
35949         * lib/unictype/pr_space.c: New file.
35950         * lib/unictype/pr_terminal_punctuation.c: New file.
35951         * lib/unictype/pr_test.c: New file.
35952         * lib/unictype/pr_titlecase.c: New file.
35953         * lib/unictype/pr_unassigned_code_value.c: New file.
35954         * lib/unictype/pr_unified_ideograph.c: New file.
35955         * lib/unictype/pr_uppercase.c: New file.
35956         * lib/unictype/pr_variation_selector.c: New file.
35957         * lib/unictype/pr_white_space.c: New file.
35958         * lib/unictype/pr_xid_continue.c: New file.
35959         * lib/unictype/pr_xid_start.c: New file.
35960         * lib/unictype/pr_zero_width.c: New file.
35961         * lib/unictype/scripts.c: New file.
35962         * lib/unictype/sy_c_ident.c: New file.
35963         * lib/unictype/sy_c_whitespace.c: New file.
35964         * lib/unictype/sy_java_ident.c: New file.
35965         * lib/unictype/sy_java_whitespace.c: New file.
35966
35967         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
35968         Unicode 5.0.0.
35969         * lib/unictype/blocks.h: Likewise.
35970         * lib/unictype/categ_C.h: Likewise.
35971         * lib/unictype/categ_Cc.h: Likewise.
35972         * lib/unictype/categ_Cf.h: Likewise.
35973         * lib/unictype/categ_Cn.h: Likewise.
35974         * lib/unictype/categ_Co.h: Likewise.
35975         * lib/unictype/categ_Cs.h: Likewise.
35976         * lib/unictype/categ_L.h: Likewise.
35977         * lib/unictype/categ_Ll.h: Likewise.
35978         * lib/unictype/categ_Lm.h: Likewise.
35979         * lib/unictype/categ_Lo.h: Likewise.
35980         * lib/unictype/categ_Lt.h: Likewise.
35981         * lib/unictype/categ_Lu.h: Likewise.
35982         * lib/unictype/categ_M.h: Likewise.
35983         * lib/unictype/categ_Mc.h: Likewise.
35984         * lib/unictype/categ_Me.h: Likewise.
35985         * lib/unictype/categ_Mn.h: Likewise.
35986         * lib/unictype/categ_N.h: Likewise.
35987         * lib/unictype/categ_Nd.h: Likewise.
35988         * lib/unictype/categ_Nl.h: Likewise.
35989         * lib/unictype/categ_No.h: Likewise.
35990         * lib/unictype/categ_P.h: Likewise.
35991         * lib/unictype/categ_Pc.h: Likewise.
35992         * lib/unictype/categ_Pd.h: Likewise.
35993         * lib/unictype/categ_Pe.h: Likewise.
35994         * lib/unictype/categ_Pf.h: Likewise.
35995         * lib/unictype/categ_Pi.h: Likewise.
35996         * lib/unictype/categ_Po.h: Likewise.
35997         * lib/unictype/categ_Ps.h: Likewise.
35998         * lib/unictype/categ_S.h: Likewise.
35999         * lib/unictype/categ_Sc.h: Likewise.
36000         * lib/unictype/categ_Sk.h: Likewise.
36001         * lib/unictype/categ_Sm.h: Likewise.
36002         * lib/unictype/categ_So.h: Likewise.
36003         * lib/unictype/categ_Z.h: Likewise.
36004         * lib/unictype/categ_Zl.h: Likewise.
36005         * lib/unictype/categ_Zp.h: Likewise.
36006         * lib/unictype/categ_Zs.h: Likewise.
36007         * lib/unictype/categ_of.h: Likewise.
36008         * lib/unictype/combining.h: Likewise.
36009         * lib/unictype/ctype_alnum.h: Likewise.
36010         * lib/unictype/ctype_alpha.h: Likewise.
36011         * lib/unictype/ctype_blank.h: Likewise.
36012         * lib/unictype/ctype_cntrl.h: Likewise.
36013         * lib/unictype/ctype_digit.h: Likewise.
36014         * lib/unictype/ctype_graph.h: Likewise.
36015         * lib/unictype/ctype_lower.h: Likewise.
36016         * lib/unictype/ctype_print.h: Likewise.
36017         * lib/unictype/ctype_punct.h: Likewise.
36018         * lib/unictype/ctype_space.h: Likewise.
36019         * lib/unictype/ctype_upper.h: Likewise.
36020         * lib/unictype/ctype_xdigit.h: Likewise.
36021         * lib/unictype/decdigit.h: Likewise.
36022         * lib/unictype/digit.h: Likewise.
36023         * lib/unictype/mirror.h: Likewise.
36024         * lib/unictype/numeric.h: Likewise.
36025         * lib/unictype/pr_alphabetic.h: Likewise.
36026         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
36027         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
36028         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
36029         * lib/unictype/pr_bidi_block_separator.h: Likewise.
36030         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
36031         * lib/unictype/pr_bidi_common_separator.h: Likewise.
36032         * lib/unictype/pr_bidi_control.h: Likewise.
36033         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
36034         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
36035         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
36036         * lib/unictype/pr_bidi_european_digit.h: Likewise.
36037         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
36038         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
36039         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
36040         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
36041         * lib/unictype/pr_bidi_pdf.h: Likewise.
36042         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
36043         * lib/unictype/pr_bidi_whitespace.h: Likewise.
36044         * lib/unictype/pr_combining.h: Likewise.
36045         * lib/unictype/pr_composite.h: Likewise.
36046         * lib/unictype/pr_currency_symbol.h: Likewise.
36047         * lib/unictype/pr_dash.h: Likewise.
36048         * lib/unictype/pr_decimal_digit.h: Likewise.
36049         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
36050         * lib/unictype/pr_deprecated.h: Likewise.
36051         * lib/unictype/pr_diacritic.h: Likewise.
36052         * lib/unictype/pr_extender.h: Likewise.
36053         * lib/unictype/pr_format_control.h: Likewise.
36054         * lib/unictype/pr_grapheme_base.h: Likewise.
36055         * lib/unictype/pr_grapheme_extend.h: Likewise.
36056         * lib/unictype/pr_grapheme_link.h: Likewise.
36057         * lib/unictype/pr_hex_digit.h: Likewise.
36058         * lib/unictype/pr_hyphen.h: Likewise.
36059         * lib/unictype/pr_id_continue.h: Likewise.
36060         * lib/unictype/pr_id_start.h: Likewise.
36061         * lib/unictype/pr_ideographic.h: Likewise.
36062         * lib/unictype/pr_ids_binary_operator.h: Likewise.
36063         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
36064         * lib/unictype/pr_ignorable_control.h: Likewise.
36065         * lib/unictype/pr_iso_control.h: Likewise.
36066         * lib/unictype/pr_join_control.h: Likewise.
36067         * lib/unictype/pr_left_of_pair.h: Likewise.
36068         * lib/unictype/pr_line_separator.h: Likewise.
36069         * lib/unictype/pr_logical_order_exception.h: Likewise.
36070         * lib/unictype/pr_lowercase.h: Likewise.
36071         * lib/unictype/pr_math.h: Likewise.
36072         * lib/unictype/pr_non_break.h: Likewise.
36073         * lib/unictype/pr_not_a_character.h: Likewise.
36074         * lib/unictype/pr_numeric.h: Likewise.
36075         * lib/unictype/pr_other_alphabetic.h: Likewise.
36076         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
36077         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
36078         * lib/unictype/pr_other_id_continue.h: Likewise.
36079         * lib/unictype/pr_other_id_start.h: Likewise.
36080         * lib/unictype/pr_other_lowercase.h: Likewise.
36081         * lib/unictype/pr_other_math.h: Likewise.
36082         * lib/unictype/pr_other_uppercase.h: Likewise.
36083         * lib/unictype/pr_paired_punctuation.h: Likewise.
36084         * lib/unictype/pr_paragraph_separator.h: Likewise.
36085         * lib/unictype/pr_pattern_syntax.h: Likewise.
36086         * lib/unictype/pr_pattern_white_space.h: Likewise.
36087         * lib/unictype/pr_private_use.h: Likewise.
36088         * lib/unictype/pr_punctuation.h: Likewise.
36089         * lib/unictype/pr_quotation_mark.h: Likewise.
36090         * lib/unictype/pr_radical.h: Likewise.
36091         * lib/unictype/pr_sentence_terminal.h: Likewise.
36092         * lib/unictype/pr_soft_dotted.h: Likewise.
36093         * lib/unictype/pr_space.h: Likewise.
36094         * lib/unictype/pr_terminal_punctuation.h: Likewise.
36095         * lib/unictype/pr_titlecase.h: Likewise.
36096         * lib/unictype/pr_unassigned_code_value.h: Likewise.
36097         * lib/unictype/pr_unified_ideograph.h: Likewise.
36098         * lib/unictype/pr_uppercase.h: Likewise.
36099         * lib/unictype/pr_variation_selector.h: Likewise.
36100         * lib/unictype/pr_white_space.h: Likewise.
36101         * lib/unictype/pr_xid_continue.h: Likewise.
36102         * lib/unictype/pr_xid_start.h: Likewise.
36103         * lib/unictype/pr_zero_width.h: Likewise.
36104         * lib/unictype/scripts.h: Likewise.
36105         * lib/unictype/scripts_byname.gperf: Likewise.
36106         * lib/unictype/sy_c_ident.h: Likewise.
36107         * lib/unictype/sy_c_whitespace.h: Likewise.
36108         * lib/unictype/sy_java_ident.h: Likewise.
36109         * lib/unictype/sy_java_whitespace.h: Likewise.
36110
36111         * lib/unictype/Makefile: New file.
36112         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
36113         glibc.
36114         * lib/unictype/3level.h: New file, copied from glibc.
36115         * lib/unictype/3levelbit.h: New file.
36116
36117 2007-11-11  Bruno Haible  <bruno@clisp.org>
36118
36119         * modules/gperf: New file.
36120         * modules/iconv_open (Depends-on): Add it.
36121         (Makefile.am): Remove the GPERF definition.
36122
36123 2007-11-11  Bruno Haible  <bruno@clisp.org>
36124
36125         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
36126         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
36127
36128 2007-11-11  Bruno Haible  <bruno@clisp.org>
36129
36130         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
36131         (usage): Remove function.
36132
36133 2007-11-11  Bruno Haible  <bruno@clisp.org>
36134
36135         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
36136         gl_FUNC_CEILF_LIBS.
36137         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
36138         gl_FUNC_CEIL_LIBS.
36139         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
36140         gl_FUNC_CEILL_LIBS.
36141         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
36142         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
36143         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
36144
36145 2007-11-11  Bruno Haible  <bruno@clisp.org>
36146
36147         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
36148         roundf were declared but do not exist on functions.
36149         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
36150         roundl were declared but do not exist on functions.
36151         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
36152         HAVE_FLOORL_AND_CEILL, respectively.
36153         Needed for Sun C on Solaris 10.
36154
36155 2007-11-11  Bruno Haible  <bruno@clisp.org>
36156
36157         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
36158         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
36159         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
36160         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
36161         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
36162         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
36163         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
36164         HAVE_DECL_ROUNDF.
36165         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
36166         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
36167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
36168         of HAVE_DECL_ROUND*.
36169         * modules/math (Makefile.am): Update.
36170
36171 2007-11-10  Bruno Haible  <bruno@clisp.org>
36172
36173         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
36174         ptrdiff_t as m4/intl.m4.
36175
36176 2007-11-10  Jim Meyering  <meyering@redhat.com>
36177
36178         Avoid link failure for the argmatch test.
36179         * tests/test-argmatch.c (usage): Define function to avoid a link
36180         failure: argmatch_die requires a usage function.
36181
36182 2007-11-09  Bruno Haible  <bruno@clisp.org>
36183
36184         * doc/functions/snprintf.texi: Mention BeOS deficiency.
36185         * doc/functions/vsnprintf.texi: Likewise.
36186         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
36187         with a size argument < 2.
36188
36189 2007-11-09  Bruno Haible  <bruno@clisp.org>
36190
36191         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
36192         buffer. Fixes an inefficiency introduced on 2007-11-03.
36193
36194 2007-11-09  Bruno Haible  <bruno@clisp.org>
36195
36196         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
36197         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
36198
36199 2007-11-08  Jim Meyering  <meyering@redhat.com>
36200
36201         Change cache variable name prefix "jm_" to "gl_" everywhere.
36202         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
36203         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
36204         * m4/uptime.m4: s/gl_/jm_/
36205
36206 2007-11-07  Bruno Haible  <bruno@clisp.org>
36207
36208         Update to GNU gettext 0.17.
36209         * m4/intl.m4: Update to GNU gettext 0.17.
36210         * m4/po.m4: Likewise.
36211         * modules/gettext (Files): Remove m4/ulonglong.m4.
36212         (configure.ac): Require gettext infrastructure from version 0.17.
36213
36214 2007-11-06  Bruno Haible  <bruno@clisp.org>
36215
36216         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
36217         symbolic values are not defined in a public header.
36218         * lib/freadable.c (freadable) [QNX]: Likewise.
36219         * lib/freadahead.c (freadahead) [QNX]: Likewise.
36220         * lib/freading.c (freading) [QNX]: Likewise.
36221         * lib/fseterr.c (fseterr) [QNX]: Likewise.
36222         * lib/fwritable.c (fwritable) [QNX]: Likewise.
36223         * lib/fwriting.c (fwriting) [QNX]: Likewise.
36224         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
36225         Reported by Alain Magloire.
36226
36227         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
36228
36229 2007-11-05  Bruno Haible  <bruno@clisp.org>
36230
36231         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
36232         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
36233         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
36234         Reported by Eric Blake.
36235
36236 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36237             Bruno Haible  <bruno@clisp.org>
36238
36239         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
36240         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
36241         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
36242         (malloc): Undefine also before including <stdlib.h>.
36243         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
36244         Needed on OSF/1 4.0.
36245
36246 2007-11-05  Jim Meyering  <meyering@redhat.com>
36247
36248         git-version-gen: sync from coreutils.
36249         * build-aux/git-version-gen: Add comments.
36250         Change the first '-' to '.' in the snapshot version string,
36251         e.g., 6.9-377-08144 -> 6.9.377-08144
36252         Remove first parameter.
36253         Don't declare a version "-dirty" merely because a time
36254         stamp has changed.
36255
36256 2007-11-04  Bruno Haible  <bruno@clisp.org>
36257
36258         * lib/lock.h: Protect all macro definitions containing an 'if'
36259         statement through a "do { ... } while (0)".
36260         * lib/tls.h: Likewise.
36261
36262 2007-11-04  Bruno Haible  <bruno@clisp.org>
36263
36264         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
36265
36266 2007-11-04  Bruno Haible  <bruno@clisp.org>
36267
36268         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
36269         * modules/fprintf-posix (Depends-on): Add nocrash.
36270         * modules/snprintf-posix (Depends-on): Likewise.
36271         * modules/sprintf-posix (Depends-on): Likewise.
36272         * modules/vasnprintf-posix (Depends-on): Likewise.
36273         * modules/vasprintf-posix (Depends-on): Likewise.
36274         * modules/vfprintf-posix (Depends-on): Likewise.
36275         * modules/vsnprintf-posix (Depends-on): Likewise.
36276         * modules/vsprintf-posix (Depends-on): Likewise.
36277         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36278         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36279         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36280         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36281         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36282         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36283         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36284
36285 2007-11-04  Bruno Haible  <bruno@clisp.org>
36286
36287         * modules/nocrash: New file.
36288         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
36289         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
36290
36291 2007-11-04  Bruno Haible  <bruno@clisp.org>
36292
36293         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
36294         precision handling.
36295         * tests/test-vasprintf-posix.c (test_function): Likewise.
36296         * tests/test-snprintf-posix.h (test_function): Likewise.
36297         * tests/test-sprintf-posix.h (test_function): Likewise.
36298
36299         Fix *printf behaviour for large precisions on mingw and BeOS.
36300         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
36301         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
36302         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
36303         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36304         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36305         gl_PRINTF_PRECISION and test its result. Invoke
36306         gl_PREREQ_VASNPRINTF_PRECISION.
36307         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36308         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36309         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36310         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36311         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36312         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36313         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36314         * doc/functions/fprintf.texi: Update.
36315         * doc/functions/printf.texi: Update.
36316         * doc/functions/snprintf.texi: Update.
36317         * doc/functions/sprintf.texi: Update.
36318         * doc/functions/vfprintf.texi: Update.
36319         * doc/functions/vprintf.texi: Update.
36320         * doc/functions/vsnprintf.texi: Update.
36321         * doc/functions/vsprintf.texi: Update.
36322
36323 2007-11-04  Bruno Haible  <bruno@clisp.org>
36324
36325         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
36326
36327 2007-11-04  Bruno Haible  <bruno@clisp.org>
36328
36329         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
36330         Reported by Sylvain Beucler <beuc@gnu.org>.
36331
36332 2007-11-03  Bruno Haible  <bruno@clisp.org>
36333
36334         * tests/test-fprintf-posix2.sh: New file.
36335         * tests/test-fprintf-posix2.c: New file.
36336         * modules/fprintf-posix-tests (Files): Add them.
36337         (TESTS): Add test-fprintf-posix2.sh.
36338         (configure.ac): Check for getrlimit and setrlimit.
36339         (check_PROGRAMS): Add test-fprintf-posix2.
36340
36341         * tests/test-printf-posix2.sh: New file.
36342         * tests/test-printf-posix2.c: New file.
36343         * modules/printf-posix-tests (Files): Add them.
36344         (TESTS): Add test-printf-posix2.sh.
36345         (configure.ac): Check for getrlimit and setrlimit.
36346         (check_PROGRAMS): Add test-printf-posix2.
36347
36348         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
36349         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
36350         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
36351         (decode_double): New function, copied from decode_long_double.
36352         (scale10_round_decimal_decoded): New function, extracted from
36353         scale10_round_decimal_long_double.
36354         (scale10_round_decimal_long_double): Use it.
36355         (scale10_round_decimal_double): New function.
36356         (floorlog10): New function.
36357         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
36358         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
36359         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36360         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36361         gl_PRINTF_ENOMEM and test its result. Invoke
36362         gl_PREREQ_VASNPRINTF_ENOMEM.
36363         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36364         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36365         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36366         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36367         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36368         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36369         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36370         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
36371         * modules/snprintf-posix (Depends-on): Likewise.
36372         * modules/sprintf-posix (Depends-on): Likewise.
36373         * modules/vasnprintf-posix (Depends-on): Likewise.
36374         * modules/vasprintf-posix (Depends-on): Likewise.
36375         * modules/vfprintf-posix (Depends-on): Likewise.
36376         * modules/vsnprintf-posix (Depends-on): Likewise.
36377         * modules/vsprintf-posix (Depends-on): Likewise.
36378         * doc/functions/fprintf.texi: Update.
36379         * doc/functions/printf.texi: Update.
36380         * doc/functions/snprintf.texi: Update.
36381         * doc/functions/sprintf.texi: Update.
36382         * doc/functions/vfprintf.texi: Update.
36383         * doc/functions/vprintf.texi: Update.
36384         * doc/functions/vsnprintf.texi: Update.
36385         * doc/functions/vsprintf.texi: Update.
36386
36387 2007-11-03  Bruno Haible  <bruno@clisp.org>
36388
36389         * modules/frexp-nolibm-tests: New file.
36390
36391         * modules/frexp-nolibm: New file.
36392         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
36393
36394 2007-11-03  Bruno Haible  <bruno@clisp.org>
36395
36396         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
36397         value is C99 compliant.
36398         Needed for OSF/1 5.1.
36399
36400 2007-11-03  Bruno Haible  <bruno@clisp.org>
36401
36402         Fix out-of-memory handling of vasnprintf.
36403         * lib/printf-parse.c: Include <errno.h>.
36404         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
36405         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
36406         is already set.
36407
36408 2007-11-02  Eric Blake  <ebb9@byu.net>
36409
36410         Fix tests on cygwin.
36411         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
36412
36413 2007-11-01  Bruno Haible  <bruno@clisp.org>
36414
36415         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
36416         warning.
36417         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
36418         needed for POSIX compatibility.
36419
36420 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
36421
36422         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
36423         for compatibility with GNU.
36424
36425 2007-11-01  Bruno Haible  <bruno@clisp.org>
36426
36427         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
36428         (putenv): Renamed from rpl_putenv. Change argument type from
36429         'const char *' to 'char *'.
36430         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
36431         of defining putenv in config.h, just set REPLACE_PUTENV.
36432         * modules/putenv (Depends-on): Add stdlib.
36433         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36434         (Include): Use <stdlib.h>.
36435         * lib/stdlib.in.h (putenv): New declaration.
36436         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
36437         REPLACE_PUTENV.
36438         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
36439         REPLACE_PUTENV.
36440         Needed for MacOS X 10.5.0.
36441         Reported by Peter O'Gorman <peter@pogma.com>.
36442
36443 2007-11-01  Jim Meyering  <meyering@redhat.com>
36444
36445         Treat an empty date string exactly like "0".
36446         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
36447         if the remaining date string (to be parsed) is empty, use "0".
36448         Reported by Mischa Molhoek and discussed in this thread:
36449         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
36450
36451 2007-10-31  Bruno Haible  <bruno@clisp.org>
36452
36453         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
36454         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
36455         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
36456         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
36457         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
36458         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
36459
36460 2007-10-31  Bruno Haible  <bruno@clisp.org>
36461
36462         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
36463         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
36464         (AC_TYPE_LONG_LONG_INT): Use it.
36465         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
36466         it as well.
36467         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
36468         to m4/longlong.m4.
36469         * modules/stdint (Files): Remove m4/ulonglong.m4.
36470         * modules/strtoull (Files): Use m4/longlong.m4 instead of
36471         m4/ulonglong.m4.
36472         * modules/strtoumax (Files): Likewise.
36473
36474 2007-10-30  Bruno Haible  <bruno@clisp.org>
36475
36476         * modules/xvasprintf-posix: New file.
36477         Suggested by Eric Blake.
36478
36479 2007-10-30  Bruno Haible  <bruno@clisp.org>
36480
36481         * modules/xprintf-posix-tests: New file.
36482         * tests/test-xprintf-posix.sh: New file.
36483         * tests/test-xprintf-posix.c: New file.
36484         * tests/test-xfprintf-posix.c: New file.
36485
36486         * modules/xprintf-posix: New file.
36487
36488 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36489
36490         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
36491         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
36492         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
36493
36494 2007-10-29  Bruno Haible  <bruno@clisp.org>
36495
36496         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
36497         contain the special marker '_cv_'.
36498         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36499         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36500         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36501         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
36502         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36503         Reported by Ralf Wildenhues.
36504
36505 2007-10-29  Bruno Haible  <bruno@clisp.org>
36506
36507         * gnulib-tool (func_import): When --lgpl is not specified, set
36508         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
36509         GPLv3.
36510         Reported by Simon Josefsson.
36511
36512 2007-10-28  Bruno Haible  <bruno@clisp.org>
36513
36514         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
36515         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
36516         HAVE_DECL_ISFINITE.
36517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36518         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
36519         HAVE_DECL_ISFINITE.
36520
36521 2007-10-28  Bruno Haible  <bruno@clisp.org>
36522
36523         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
36524         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
36525
36526 2007-10-28  Bruno Haible  <bruno@clisp.org>
36527
36528         Fix link errors with Sun C 5.0 on Solaris 10.
36529         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
36530         function is declared but not present in the compiler's libm.
36531         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
36532         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
36533         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
36534         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
36535         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
36536         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
36537         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
36538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36539         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
36540         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
36541         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
36542         HAVE_DECL_FLOORL.
36543
36544 2007-10-28  Bruno Haible  <bruno@clisp.org>
36545
36546         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
36547         gl_FUNC_FLOORL. Cache the result.
36548         (gl_FUNC_FLOORL): Use it.
36549         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
36550         gl_FUNC_CEILL. Cache the result.
36551         (gl_FUNC_CEILL): Use it.
36552
36553         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
36554         gl_FUNC_FLOOR. Cache the result.
36555         (gl_FUNC_FLOOR): Use it.
36556         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
36557         gl_FUNC_CEIL. Cache the result.
36558         (gl_FUNC_CEIL): Use it.
36559
36560         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
36561         gl_FUNC_FLOORF. Cache the result.
36562         (gl_FUNC_FLOORF): Use it.
36563         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
36564         gl_FUNC_CEILF. Cache the result.
36565         (gl_FUNC_CEILF): Use it.
36566
36567 2007-10-28  Bruno Haible  <bruno@clisp.org>
36568
36569         * gnulib-tool: Allow specifying the LGPL version number through
36570         --lgpl=2 or --lgpl=3.
36571         (func_usage): Document --lgpl with argument.
36572         Handle --lgpl=... arguments.
36573         (func_import): Recognize also gl_LGPL calls with an argument. When
36574         --lgpl=2 is used and the module's license is just LGPL, report an
36575         error. Set sed_transform_lib_file according to the lgpl variable. In
36576         the generated files, use --lgpl or gl_LGPL invocations with argument,
36577         if necessary.
36578         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
36579         an LGPv2+ license.
36580         * doc/gnulib-tool.texi (Modified imports): Update explanation of
36581         gl_LGPL macro.
36582
36583 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36584             Bruno Haible  <bruno@clisp.org>
36585
36586         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
36587         (u16_uctomb_aux): Likewise.
36588         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
36589         !HAVE_INLINE.
36590         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
36591
36592 2007-10-28  Bruno Haible  <bruno@clisp.org>
36593
36594         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
36595         Invoke AM_GETTEXT_OPTION if it exists.
36596         * modules/vasprintf: Likewise.
36597         * modules/verror: Likewise.
36598         * modules/xprintf: Likewise.
36599         * modules/xvasprintf: Likewise.
36600
36601 2007-10-27  Ben Pfaff  <blp@gnu.org>
36602
36603         * lib/math.in.h: Define isfinite macro and prototypes for
36604         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
36605         implementations.
36606         * m4/math_h.m4: New substitutions for isfinite module.
36607         * lib/isfinite.c: New file.
36608         * m4/isfinite.m4: New file.
36609         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
36610         * modules/isfinite: New file.
36611         * modules/isfinite-tests: New file.
36612         * tests/tests-isfinite.c: New file.
36613         * doc/functions/isfinite.texi: Mention isfinite module.
36614         * MODULES.html.sh: Mention new module.
36615
36616 2007-10-27  Ben Pfaff  <blp@gnu.org>
36617
36618         Ralf Wildenhues reported that Tru64 4.0D declares the round
36619         functions but does not have definitions.
36620         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
36621         cannot be found in any library, set the output variable to
36622         "missing" instead of "".
36623         * m4/round.m4: Also use our substitute if we cannot find round in
36624         any library, even if it is declared.
36625         * m4/roundf.m4: Likewise for roundf.
36626         * m4/roundl.m4: Likewise for roundl.
36627         * lib/math.in.h: Undefine roundf, round, roundl before defining
36628         their replacements, to allow for hypothetical systems where these
36629         may be defined as macros but not available in libraries.
36630
36631 2007-10-27  Bruno Haible  <bruno@clisp.org>
36632
36633         * doc/gnulib.texi: Invoke @firstparagraphindent.
36634         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
36635         changes in gnulib.
36636         (Source changes): New section.
36637
36638 2007-10-26  Bruno Haible  <bruno@clisp.org>
36639
36640         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
36641         borrowed from autoconf.
36642
36643 2007-10-26  Bruno Haible  <bruno@clisp.org>
36644
36645         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
36646         strerror returned the empty string. Needed on HP-UX 11.00.
36647
36648 2007-10-24  Micah Cowan  <micah@cowan.name>
36649
36650         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
36651         * build-aux/bootstrap: Remove support for now-unnecessary option,
36652         --cvs-user, and envvars CVS_USER, CVS_RSH.
36653
36654 2007-10-24  Jim Meyering  <meyering@redhat.com>
36655
36656         Avoid diagnostics from sha1sum when there is no cached checksum.
36657         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
36658         if the po.s1 file hasn't been created yet.
36659
36660         * build-aux/bootstrap: Sync from coreutils:
36661         2007-10-24  Jim Meyering  <meyering@redhat.com>
36662         Get gnulib from the git repository, not from an obsolete cvs one.
36663         * build-aux/bootstrap: Suggestion from Micah Cowan.
36664         2007-10-04  Jim Meyering  <jim@meyering.net>
36665         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
36666         (update_po_files): Work also when there are no .po files in po/.
36667
36668 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
36669
36670         * README: Append ".git" to git and cg examples.
36671         Problem reported by Benoit Sigoure.
36672
36673 2007-10-23  Micah Cowan  <micah@cowan.name>
36674
36675         * users.txt: Add wget.
36676
36677 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36678
36679         Fix linking of some unistdio tests on FreeBSD.
36680         * modules/unistdio/u16-vsnprintf-tests
36681         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
36682         * modules/unistdio/u16-vsprintf-tests
36683         (test_u16_vsnprintf1_LDADD): Likewise.
36684         * modules/unistdio/u32-vsnprintf-tests
36685         (test_u32_vsnprintf1_LDADD): Likewise.
36686         * modules/unistdio/u32-vsprintf-tests
36687         (test_u32_vsprintf1_LDADD): Likewise.
36688         * modules/unistdio/u8-vsnprintf-tests
36689         (test_u8_vsnprintf1_LDADD): Likewise.
36690         * modules/unistdio/u8-vsprintf-tests
36691         (test_u8_vsprintf1_LDADD): Likewise.
36692         * modules/unistdio/ulc-vsnprintf-tests
36693         (test_ulc_vsnprintf1_LDADD): Likewise.
36694         * modules/unistdio/ulc-vsprintf-tests
36695         (test_ulc_vsprintf1_LDADD): Likewise.
36696
36697         Fix linking of some uniconv tests on FreeBSD.
36698         * modules/uniconv/u16-conv-from-enc-tests
36699         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
36700         * modules/uniconv/u16-conv-to-enc-tests
36701         (test_u16_conv_to_enc_LDADD): Likewise.
36702         * modules/uniconv/u16-strconv-from-enc-tests
36703         (test_u16_strconv_from_enc_LDADD): Likewise.
36704         * modules/uniconv/u16-strconv-to-enc-tests
36705         (test_u16_strconv_to_enc_LDADD): Likewise.
36706         * modules/uniconv/u32-conv-from-enc-tests
36707         (test_u32_conv_from_enc_LDADD): Likewise.
36708         * modules/uniconv/u32-conv-to-enc-tests
36709         (test_u32_conv_to_enc_LDADD): Likewise.
36710         * modules/uniconv/u32-strconv-from-enc-tests
36711         (test_u32_strconv_from_enc_LDADD): Likewise.
36712         * modules/uniconv/u32-strconv-to-enc-tests
36713         (test_u32_strconv_to_enc_LDADD): Likewise.
36714         * modules/uniconv/u8-conv-from-enc-tests
36715         (test_u8_conv_from_enc_LDADD): Likewise.
36716         * modules/uniconv/u8-conv-to-enc-tests
36717         (test_u8_conv_to_enc_LDADD): Likewise.
36718         * modules/uniconv/u8-strconv-from-enc-tests
36719         (test_u8_strconv_from_enc_LDADD): Likewise.
36720         * modules/uniconv/u8-strconv-to-enc-tests
36721         (test_u8_strconv_to_enc_LDADD): Likewise.
36722
36723 2007-10-22  Bruno Haible  <bruno@clisp.org>
36724
36725         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
36726         size.
36727
36728 2007-10-22  Eric Blake  <ebb9@byu.net>
36729
36730         Tweak x*printf documentation.
36731         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
36732         variable name and comments.
36733         Suggested by Bruno Haible.
36734
36735 2007-10-22  Bruno Haible  <bruno@clisp.org>
36736
36737         * lib/acl.c (copy_acl): Fix file name in comment.
36738
36739 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36740
36741         Fix Tru64 problem with stdbool.h.
36742         * lib/stdbool.in.h (false, true):
36743         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
36744         Don't declare as an enum in this situation; it runs afoul of Tru64.
36745         Problem reported by Steven M. Schweda in
36746         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
36747
36748 2007-10-22  Eric Blake  <ebb9@byu.net>
36749
36750         Also wrap vf?printf.
36751         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
36752         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
36753         (xvprintf, xvfprintf): New functions.
36754
36755 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36756
36757         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
36758         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
36759
36760         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
36761         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
36762
36763 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36764
36765         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
36766         by Bruno Haible.
36767
36768 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36769
36770         * lib/getloadavg.c
36771         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
36772         Undef `sys' after including sys/table.h, for Tru64 4.0D.
36773
36774         * tests/test-i-ring.c: Work for C89.
36775
36776 2007-10-22  Bruno Haible  <bruno@clisp.org>
36777
36778         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
36779         -1u, in preprocessor expression, so that we don't test for the bug
36780         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
36781         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
36782
36783 2007-10-22  Eric Blake  <ebb9@byu.net>
36784
36785         * tests/test-yesno.sh: Silence stderr during test.
36786
36787 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36788
36789         * modules/crypto/gc-camellia: New file.
36790
36791         * m4/gc-camellia.m4: New file.
36792
36793         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
36794
36795         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
36796
36797 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36798
36799         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
36800         --help to stdout.  Reported by sms@antinode.org (Steven
36801         M. Schweda).
36802
36803 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36804
36805         * users.txt: Fix link to libksba.
36806
36807 2007-10-21  Ben Pfaff  <blp@gnu.org>
36808
36809         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
36810         round.c roundf implementation that depends on floorf and ceilf to
36811         be tested unconditionally.
36812
36813 2007-10-21  Ben Pfaff  <blp@gnu.org>
36814
36815         * m4/check-libm-func.m4: Removed.
36816         * m4/check-math-lib.m4: New file.
36817         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
36818         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
36819         definition and lack of AC_LIBOBJ([roundf]).
36820         * m4/roundl.m4: Ditto, and similarly for roundl.
36821         * modules/round: Reference new m4 file.
36822         * modules/roundf: Ditto.
36823         * modules/roundl: Ditto.
36824         * tests/test-round2.c (main): Use ROUND instead of round.
36825         Bug report from Bruno Haible.
36826
36827 2007-10-21  Bruno Haible  <bruno@clisp.org>
36828
36829         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
36830         context.
36831
36832 2007-10-21  Bruno Haible  <bruno@clisp.org>
36833
36834         * tests/test-wcwidth.c (main): Allow negative result for some control
36835         characters.
36836
36837         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
36838         Needed on OSF/1 5.1.
36839
36840 2007-10-21  Bruno Haible  <bruno@clisp.org>
36841
36842         * tests/test-floorf1.c: Include isnanf.h.
36843         (main): Use isnanf() instead of isnan().
36844         * tests/test-ceilf1.c: Include isnanf.h.
36845         (main): Use isnanf() instead of isnan().
36846         * tests/test-truncf1.c: Include isnanf.h.
36847         (main): Use isnanf() instead of isnan().
36848         * tests/test-roundf1.c: Include isnanf.h.
36849         (main): Use isnanf() instead of isnan().
36850
36851 2007-10-21  Eric Blake  <ebb9@byu.net>
36852
36853         * users.txt: Update URL for m4.
36854
36855 2007-10-21  Bruno Haible  <bruno@clisp.org>
36856
36857         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
36858
36859 2007-10-21  Bruno Haible  <bruno@clisp.org>
36860
36861         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
36862         Git's management files if the CVS files are not present.
36863
36864 2007-10-20  Bruno Haible  <bruno@clisp.org>
36865
36866         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
36867         gcc-3.4.x.
36868
36869 2007-10-20  Ben Pfaff  <blp@gnu.org>
36870
36871         * lib/math.in.h: Declare round, roundf, roundl if we are providing
36872         implementations.
36873         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
36874         * lib/round.c: New file.
36875         * lib/roundf.c: New file.
36876         * lib/roundl.c: New file.
36877         * m4/round.m4: New file.
36878         * m4/roundf.m4: New file.
36879         * m4/roundl.m4: New file.
36880         * m4/check-libm-func-m4: New file.
36881         * modules/math: Replace round, roundf, roundl related @VARS@ in
36882         math.in.h.
36883         * modules/round: New file.
36884         * modules/round-tests: New file.
36885         * modules/roundf: New file.
36886         * modules/roundf-tests: New file.
36887         * modules/roundl: New file.
36888         * modules/roundl-tests: New file.
36889         * tests/test-round1.c: New file.
36890         * tests/test-round2.c: New file.
36891         * tests/test-roundf1.c: New file.
36892         * tests/test-roundf2.c: New file.
36893         * tests/test-roundl.c: New file.
36894         * doc/functions/round.texi: Mention round module.
36895         * doc/functions/roundf.texi: Mention roundf module.
36896         * doc/functions/roundl.texi: Mention roundl module.
36897         * MODULES.html.sh: Mention new modules.
36898         Thanks to Bruno Haible for suggestions.
36899
36900 2007-10-20  Jim Meyering  <meyering@redhat.com>
36901
36902         * lib/xprintf.c: Include <config.h> unconditionally.
36903
36904         Change xprintf's license to GPL.
36905         * modules/xprintf (License): s/LGPL/GPL/, since this module
36906         depends on modules (exit and exitfail) which are GPL.
36907         Suggestion from Bruno Haible.
36908
36909         xprintf fixes.
36910         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
36911         Use a clearer diagnostic.
36912         Patch from Bruno Haible.
36913
36914 2007-10-20  Bruno Haible  <bruno@clisp.org>
36915
36916         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
36917         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
36918         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36919
36920 2007-10-20  Bruno Haible  <bruno@clisp.org>
36921
36922         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
36923         precision in the comparison result > x - 1 or similar.
36924         * tests/test-ceilf2.c (correct_result_p): Likewise.
36925         * tests/test-truncf2.c (correct_result_p): Likewise.
36926         * tests/test-trunc2.c (correct_result_p): Likewise.
36927         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36928
36929 2007-10-20  Bruno Haible  <bruno@clisp.org>
36930
36931         * modules/ceil: New file.
36932         * m4/ceil.m4: New file.
36933         * doc/functions/ceil.texi: Mention the 'ceil' module.
36934
36935 2007-10-20  Bruno Haible  <bruno@clisp.org>
36936
36937         * modules/floor: New file.
36938         * m4/floor.m4: New file.
36939         * doc/functions/floor.texi: Mention the 'floor' module.
36940
36941 2007-10-20  Bruno Haible  <bruno@clisp.org>
36942
36943         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
36944         of %a.
36945         * modules/floorf-tests (Depends-on): Likewise.
36946         * modules/truncf-tests (Depends-on): Likewise.
36947         * modules/trunc-tests (Depends-on): Likewise.
36948         Reported by Ben Pfaff.
36949
36950 2007-10-19  Jim Meyering  <meyering@redhat.com>
36951
36952         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
36953         Don't bother testing specific errno values.  Just test ferror.
36954
36955         New module: xprintf
36956         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
36957
36958 2007-10-19  Bruno Haible  <bruno@clisp.org>
36959
36960         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
36961         syntax.
36962         * modules/javaexec (Makefile.am): Likewise.
36963         * modules/relocatable-prog (Makefile.am): Likewise.
36964         Suggested by Jim Meyering.
36965
36966 2007-10-18  Bruno Haible  <bruno@clisp.org>
36967
36968         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
36969         Reported by Jim Meyering.
36970
36971 2007-10-18  Eric Blake  <ebb9@byu.net>
36972
36973         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
36974
36975 2007-10-18  Bruno Haible  <bruno@clisp.org>
36976
36977         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
36978         the format string into writable memory. Needed in Fortify conditions.
36979
36980 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
36981             Bruno Haible  <bruno@clisp.org>
36982
36983         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
36984         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
36985         * modules/trim (Depends-on): Add mbchar.
36986         (configure.ac): Add gl_FUNC_MBRTOWC.
36987         (Makefile.am): Augment lib_SOURCES.
36988
36989 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
36990
36991         Modify glob.c to use fstatat and dirfd, to simplify it.
36992         Suggested by Eric Blake.
36993         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
36994         Don't include <stdbool.h>; not used.
36995         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
36996         (link_exists_p): Simplify implementation, since we can now assume
36997         dirfd and fstatat.
36998         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
36999
37000 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37001
37002         * gnulib-tool (func_get_dependencies): Fix sed script to
37003         match only tests.
37004
37005 2007-10-17  Bruno Haible  <bruno@clisp.org>
37006
37007         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
37008         allow locale names without encoding suffix.
37009         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37010         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37011
37012 2007-10-16  Bruno Haible  <bruno@clisp.org>
37013
37014         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
37015         * lib/getgroups.c (getgroups): Likewise.
37016         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
37017
37018 2007-10-16  Bruno Haible  <bruno@clisp.org>
37019
37020         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
37021         * modules/malloc-posix (License): Likewise.
37022         * modules/realloc-posix (License): Likewise.
37023         * modules/calloc-posix (License): Likewise.
37024         * modules/intprops (License): Change from GPL to LGPL, with
37025         Paul Eggert's approval.
37026
37027 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37028
37029         Merge glibc changes into lib/glob.c.
37030
37031         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
37032         2007-10-15 04:59:03 UTC.  Here are the changes:
37033
37034         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
37035
37036         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
37037
37038         * lib/glob.c: Add some branch prediction throughout.
37039
37040         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
37041
37042         [BZ #5103]
37043         * lib/glob.c (glob): Recognize patterns starting \/.
37044
37045         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
37046
37047         [BZ #3996]
37048         * lib/glob.c (attribute_hidden): Define if not defined.
37049         (glob): Unescape dirname, filename or username when needed and not
37050         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
37051         is NULL.  Handle unescaped [ in pattern without closing ].
37052         Don't pass GLOB_CHECK down to recursive glob for directories.
37053         (__glob_pattern_type): New function.
37054         (__glob_pattern_p): Implement using __glob_pattern_type.
37055         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
37056         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
37057         Remove unreachable code.
37058
37059         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
37060
37061         * lib/glob.c (glob_in_dir): Add some comments and asserts to
37062         explain why there are no leaks.
37063
37064         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
37065
37066         [BZ #3253]
37067         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
37068         time, rather allocate increasingly bigger arrays of pointers, if
37069         possible with alloca, if too large with malloc.
37070
37071 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37072
37073         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
37074         Problem reported by H.Merijn Brand in
37075         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
37076         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
37077         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
37078
37079 2007-10-15  Bruno Haible  <bruno@clisp.org>
37080
37081         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
37082         with explicit rpl_ prefix.
37083         * lib/fopen.c (fopen): Likewise.
37084         * lib/freopen.c (freopen): Likewise.
37085         * lib/iconv.c (iconv): Likewise.
37086         * lib/iconv_close.c (iconv_close): Likewise.
37087
37088 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37089
37090         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
37091
37092 2007-10-15  Bruno Haible  <bruno@clisp.org>
37093
37094         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
37095         <stddef.h> instead of <stdlib.h> since we only need NULL.
37096         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37097
37098 2007-10-15  Bruno Haible  <bruno@clisp.org>
37099
37100         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
37101         Replace paragraph talking about LIBOBJS.
37102         Reported by Colin Watson <cjwatson@debian.org>.
37103
37104 2007-10-15  Bruno Haible  <bruno@clisp.org>
37105
37106         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
37107         <stdlib.h> before using NULL.
37108
37109 2007-10-15  Simon Josefsson  <simon@josefsson.org>
37110
37111         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
37112         Reported by Albert Chin <china@thewrittenword.com>.
37113
37114 2007-10-14  Bruno Haible  <bruno@clisp.org>
37115
37116         * modules/iconv_open-utf-tests: New file.
37117         * tests/test-iconv-utf.c: New file.
37118
37119         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
37120         * modules/iconv_open-utf: New file.
37121         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
37122         (iconv, iconv_close): New declarations.
37123         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
37124         be defined.
37125         (iconv_open): Add special handling of conversion between UTF-8 and
37126         UTF-{16,32}{BE,LE}.
37127         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
37128         * lib/iconv_close.c: New file.
37129         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
37130         gl_FUNC_ICONV_OPEN.
37131         (gl_FUNC_ICONV_OPEN): Use it.
37132         (gl_FUNC_ICONV_OPEN_UTF): New macro.
37133         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
37134         and REPLACE_ICONV_UTF.
37135         * modules/iconv_open (Depends-on): Add c-strcase.
37136         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
37137         ICONV_CONST.
37138         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
37139
37140 2007-10-13  Albert Chin  <china@thewrittenword.com>
37141             Bruno Haible  <bruno@clisp.org>
37142
37143         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
37144         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
37145
37146 2007-10-13  Bruno Haible  <bruno@clisp.org>
37147
37148         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
37149         defined, use the ISO C99 inline semantics.
37150         * lib/argp.h (ARGP_EI): Likewise.
37151
37152 2007-10-13  Bruno Haible  <bruno@clisp.org>
37153
37154         Handle 'inline' change in gcc 4.3.0.
37155         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
37156         argp_fmtstream_write, argp_fmtstream_set_lmargin,
37157         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
37158         argp_fmtstream_point): Disable 'extern' declaration if the function
37159         definition is going to be provided inline.
37160         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
37161         semantics, not the ISO C99 inline semantics.
37162         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
37163         'extern' declaration if the function definition is going to be provided
37164         inline.
37165         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
37166         the GNU C inline semantics, not the ISO C99 inline semantics. With
37167         GCC 4.2, avoid a warning.
37168
37169 2007-10-13  Bruno Haible  <bruno@clisp.org>
37170
37171         * lib/freading.h (freading): Enable the use of __freading for
37172         glibc >= 2.7.
37173         * lib/freading.c (freading): Likewise.
37174
37175 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
37176
37177         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
37178         "warning: C99 inline functions are not supported; using GNU89".
37179
37180 2007-10-12  Bruno Haible  <bruno@clisp.org>
37181
37182         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
37183         of 2.
37184         * tests/test-ceilf2.c: New file.
37185         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
37186
37187         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
37188         * modules/ceilf-tests: Update.
37189
37190 2007-10-12  Bruno Haible  <bruno@clisp.org>
37191
37192         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
37193         of 2.
37194         * tests/test-floorf2.c: New file.
37195         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
37196
37197         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
37198         * modules/floorf-tests: Update.
37199
37200 2007-10-12  Bruno Haible  <bruno@clisp.org>
37201
37202         * tests/test-trunc2.c: New file.
37203         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
37204
37205         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
37206         * modules/trunc-tests: Update.
37207
37208 2007-10-12  Bruno Haible  <bruno@clisp.org>
37209
37210         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
37211         of 2.
37212         * tests/test-truncf2.c: New file.
37213         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
37214
37215         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
37216         * modules/truncf-tests: Update.
37217
37218 2007-10-11  Eric Blake  <ebb9@byu.net>
37219
37220         Don't claim strerror is broken on Interix.
37221         * doc/functions/strerror.texi (strerror): Known broken systems are
37222         now Solaris 8, and not Interix.
37223         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
37224         Interix on cross-compile.
37225         Reported by Martin Koeppe in
37226         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
37227
37228 2007-10-11  Bruno Haible  <bruno@clisp.org>
37229
37230         * modules/i-ring-tests: New file.
37231         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
37232         instead of assert.
37233
37234 2007-10-11  Bruno Haible  <bruno@clisp.org>
37235
37236         * modules/filenamecat-tests: New file.
37237         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
37238         * lib/filenamecat.c: Remove test code.
37239
37240 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
37241
37242         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
37243
37244         * lib/strerror.c: Include <string.h> always, to test interface,
37245         and to remove the need for the dummy.
37246         Include intprops.h to compute width instead of doing it ourselves
37247         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
37248         (strerror): Define it to return NULL if there's no system strerror.
37249         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
37250         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
37251         ancient pre-strerror Unix systems well any more.  Saying "unknown
37252         system error" is enough.
37253         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
37254         simpler strerror.c implementation.
37255         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
37256         Simplify the tests to reflect the simpler strerror implementation.
37257         * modules/strerror (Depends-on): Add intprops.
37258
37259 2007-10-09  Eric Blake  <ebb9@byu.net>
37260
37261         Silence test-fpending.
37262         * modules/fpending-tests (Files): Add wrapper script.
37263         * tests/test-fpending.sh: New file.
37264
37265 2007-10-09  Bruno Haible  <bruno@clisp.org>
37266
37267         * MODULES.html.sh (func_module): Don't create a hyperlink for
37268         function names like 'printf_frexp'.
37269         (Misc): Add crc, memxor.
37270         (Characteristics of floating types): New section.
37271         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
37272         isnanf-nolibm, signbit, trunc, truncf, truncl.
37273         (Enhancements for ISO C 99 functions): New subsection Input/output.
37274         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
37275         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
37276         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
37277         (Compatibility checks for POSIX:2001 functions): Add clock-time.
37278         (Enhancements for POSIX:2001 functions): Add chdir-long.
37279         (File system functions): Add areadlink, chdir-safer, read-file.
37280         Remove cycle-check.
37281         (File system as inode set): New section.
37282         (Date and time): Add gethrxtime.
37283         (Multithreading): Add openmp.
37284         (Internationalization functions): Add localename.
37285         (Unicode string functions): Add unistr/u*-mbsnlen.
37286         (Support for maintaining and releasing projects): Add git-version-gen.
37287         (Lone files): Remove directories.
37288
37289 2007-10-08  Ben Pfaff  <blp@gnu.org>
37290
37291         * lib/xmalloca.h: Fix typo in comment.
37292
37293 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
37294
37295         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
37296         when avoiding problems with integer overflow.  Use a portable test
37297         instead.
37298
37299 2007-10-08  Simon Josefsson  <simon@josefsson.org>
37300
37301         * modules/dummy (License): Change to LGPLv2+.
37302         * modules/float (License): Likewise
37303         * modules/realloc (License): Likewise
37304         * modules/stdlib (License): Likewise
37305
37306 2007-10-07  Bruno Haible  <bruno@clisp.org>
37307
37308         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
37309         * floor.c (TWO_MANT_DIG): Likewise.
37310         * ceil.c (TWO_MANT_DIG): Likewise.
37311         Reported by Ben Pfaff.
37312
37313 2007-10-07  Bruno Haible  <bruno@clisp.org>
37314
37315         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
37316         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
37317         * lib/frexp.c (FUNC): Likewise.
37318         * lib/printf-frexp.h (printf_frexp): Likewise.
37319         * lib/printf-frexpl.h (printf_frexpl): Likewise.
37320         * lib/printf-frexp.c (FUNC): Likewise.
37321         Suggested by Jim Meyering.
37322
37323 2007-10-07  Jim Meyering  <meyering@redhat.com>
37324
37325         Make xnanosleep's integer overflow test more robust.
37326         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
37327         so that gcc-4.3.0 doesn't optimize away this test for overflow.
37328
37329 2007-10-07  Bruno Haible  <bruno@clisp.org>
37330
37331         * NEWS: Mention the license change.
37332
37333         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
37334         abbreviations in the modules files.
37335
37336         Change copyright notice from GPLv2+ to GPLv3+.
37337         * README: Change copyright notice.
37338         * MODULES.html.sh: Likewise.
37339         * build-aux/bootstrap.conf: Likewise.
37340         * build-aux/config.libpath: Likewise.
37341         * build-aux/csharpcomp.sh.in: Likewise.
37342         * build-aux/csharpexec.sh.in: Likewise.
37343         * build-aux/install-reloc: Likewise.
37344         * build-aux/javacomp.sh.in: Likewise.
37345         * build-aux/javaexec.sh.in: Likewise.
37346         * build-aux/ldd.sh.in: Likewise.
37347         * build-aux/reloc-ldflags: Likewise.
37348         * build-aux/relocatable.sh.in: Likewise.
37349         * build-aux/x-to-1.in: Likewise.
37350         * check-module: Likewise.
37351         * config/srclistvars.sh: Likewise.
37352         * gnulib-tool: Likewise.
37353         * lib/acl-internal.h: Likewise.
37354         * lib/acl.c: Likewise.
37355         * lib/acl.h: Likewise.
37356         * lib/acl_entries.c: Likewise.
37357         * lib/areadlink-with-size.c: Likewise.
37358         * lib/areadlink.c: Likewise.
37359         * lib/areadlink.h: Likewise.
37360         * lib/argmatch.c: Likewise.
37361         * lib/argmatch.h: Likewise.
37362         * lib/argp-ba.c: Likewise.
37363         * lib/argp-eexst.c: Likewise.
37364         * lib/argp-fmtstream.c: Likewise.
37365         * lib/argp-fmtstream.h: Likewise.
37366         * lib/argp-fs-xinl.c: Likewise.
37367         * lib/argp-help.c: Likewise.
37368         * lib/argp-namefrob.h: Likewise.
37369         * lib/argp-parse.c: Likewise.
37370         * lib/argp-pin.c: Likewise.
37371         * lib/argp-pv.c: Likewise.
37372         * lib/argp-pvh.c: Likewise.
37373         * lib/argp-xinl.c: Likewise.
37374         * lib/argp.h: Likewise.
37375         * lib/at-func.c: Likewise.
37376         * lib/atanl.c: Likewise.
37377         * lib/backupfile.c: Likewise.
37378         * lib/backupfile.h: Likewise.
37379         * lib/basename.c: Likewise.
37380         * lib/binary-io.h: Likewise.
37381         * lib/byteswap.in.h: Likewise.
37382         * lib/c-stack.c: Likewise.
37383         * lib/c-stack.h: Likewise.
37384         * lib/c-strcasestr.c: Likewise.
37385         * lib/c-strcasestr.h: Likewise.
37386         * lib/c-strstr.c: Likewise.
37387         * lib/c-strstr.h: Likewise.
37388         * lib/c-strtod.c: Likewise.
37389         * lib/calloc.c: Likewise.
37390         * lib/canon-host.c: Likewise.
37391         * lib/canon-host.h: Likewise.
37392         * lib/canonicalize-lgpl.c: Likewise.
37393         * lib/canonicalize.c: Likewise.
37394         * lib/canonicalize.h: Likewise.
37395         * lib/ceil.c: Likewise.
37396         * lib/ceilf.c: Likewise.
37397         * lib/ceill.c: Likewise.
37398         * lib/chdir-long.c: Likewise.
37399         * lib/chdir-long.h: Likewise.
37400         * lib/chdir-safer.c: Likewise.
37401         * lib/chdir-safer.h: Likewise.
37402         * lib/chown.c: Likewise.
37403         * lib/classpath.c: Likewise.
37404         * lib/classpath.h: Likewise.
37405         * lib/clean-temp.c: Likewise.
37406         * lib/clean-temp.h: Likewise.
37407         * lib/cloexec.c: Likewise.
37408         * lib/close-stream.c: Likewise.
37409         * lib/closein.c: Likewise.
37410         * lib/closein.h: Likewise.
37411         * lib/closeout.c: Likewise.
37412         * lib/closeout.h: Likewise.
37413         * lib/concat-filename.c: Likewise.
37414         * lib/copy-file.c: Likewise.
37415         * lib/copy-file.h: Likewise.
37416         * lib/count-one-bits.h: Likewise.
37417         * lib/crc.c: Likewise.
37418         * lib/crc.h: Likewise.
37419         * lib/creat-safer.c: Likewise.
37420         * lib/csharpcomp.c: Likewise.
37421         * lib/csharpcomp.h: Likewise.
37422         * lib/csharpexec.c: Likewise.
37423         * lib/csharpexec.h: Likewise.
37424         * lib/cycle-check.c: Likewise.
37425         * lib/cycle-check.h: Likewise.
37426         * lib/diacrit.c: Likewise.
37427         * lib/diacrit.h: Likewise.
37428         * lib/diffseq.h: Likewise.
37429         * lib/dirchownmod.c: Likewise.
37430         * lib/dirent.in.h: Likewise.
37431         * lib/dirfd.c: Likewise.
37432         * lib/dirfd.h: Likewise.
37433         * lib/dirname.c: Likewise.
37434         * lib/dirname.h: Likewise.
37435         * lib/dummy.c: Likewise.
37436         * lib/dup-safer.c: Likewise.
37437         * lib/dup2.c: Likewise.
37438         * lib/eealloc.h: Likewise.
37439         * lib/error.c: Likewise.
37440         * lib/error.h: Likewise.
37441         * lib/euidaccess.c: Likewise.
37442         * lib/exclude.c: Likewise.
37443         * lib/exclude.h: Likewise.
37444         * lib/execute.c: Likewise.
37445         * lib/execute.h: Likewise.
37446         * lib/exitfail.c: Likewise.
37447         * lib/exitfail.h: Likewise.
37448         * lib/expl.c: Likewise.
37449         * lib/fatal-signal.c: Likewise.
37450         * lib/fatal-signal.h: Likewise.
37451         * lib/fbufmode.c: Likewise.
37452         * lib/fbufmode.h: Likewise.
37453         * lib/fchdir.c: Likewise.
37454         * lib/fchmodat.c: Likewise.
37455         * lib/fchownat.c: Likewise.
37456         * lib/fcntl--.h: Likewise.
37457         * lib/fcntl-safer.h: Likewise.
37458         * lib/fcntl.in.h: Likewise.
37459         * lib/fd-safer.c: Likewise.
37460         * lib/fflush.c: Likewise.
37461         * lib/file-has-acl.c: Likewise.
37462         * lib/file-set.c: Likewise.
37463         * lib/file-type.c: Likewise.
37464         * lib/file-type.h: Likewise.
37465         * lib/fileblocks.c: Likewise.
37466         * lib/filemode.c: Likewise.
37467         * lib/filemode.h: Likewise.
37468         * lib/filename.h: Likewise.
37469         * lib/filenamecat.c: Likewise.
37470         * lib/filenamecat.h: Likewise.
37471         * lib/findprog.c: Likewise.
37472         * lib/findprog.h: Likewise.
37473         * lib/float.in.h: Likewise.
37474         * lib/floor.c: Likewise.
37475         * lib/floorf.c: Likewise.
37476         * lib/floorl.c: Likewise.
37477         * lib/fopen-safer.c: Likewise.
37478         * lib/fopen.c: Likewise.
37479         * lib/fpending.c: Likewise.
37480         * lib/fpending.h: Likewise.
37481         * lib/fprintf.c: Likewise.
37482         * lib/fprintftime.h: Likewise.
37483         * lib/fpucw.h: Likewise.
37484         * lib/fpurge.c: Likewise.
37485         * lib/fpurge.h: Likewise.
37486         * lib/freadable.c: Likewise.
37487         * lib/freadable.h: Likewise.
37488         * lib/freadahead.c: Likewise.
37489         * lib/freadahead.h: Likewise.
37490         * lib/freading.c: Likewise.
37491         * lib/freading.h: Likewise.
37492         * lib/free.c: Likewise.
37493         * lib/freopen.c: Likewise.
37494         * lib/frexp.c: Likewise.
37495         * lib/frexpl.c: Likewise.
37496         * lib/fseek.c: Likewise.
37497         * lib/fseterr.c: Likewise.
37498         * lib/fseterr.h: Likewise.
37499         * lib/fstatat.c: Likewise.
37500         * lib/fstrcmp.c: Likewise.
37501         * lib/fstrcmp.h: Likewise.
37502         * lib/fsusage.c: Likewise.
37503         * lib/fsusage.h: Likewise.
37504         * lib/ftell.c: Likewise.
37505         * lib/ftello.c: Likewise.
37506         * lib/fts-cycle.c: Likewise.
37507         * lib/fts.c: Likewise.
37508         * lib/fts_.h: Likewise.
37509         * lib/full-read.c: Likewise.
37510         * lib/full-read.h: Likewise.
37511         * lib/full-write.c: Likewise.
37512         * lib/full-write.h: Likewise.
37513         * lib/fwritable.c: Likewise.
37514         * lib/fwritable.h: Likewise.
37515         * lib/fwriteerror.c: Likewise.
37516         * lib/fwriteerror.h: Likewise.
37517         * lib/fwriting.c: Likewise.
37518         * lib/fwriting.h: Likewise.
37519         * lib/gcd.c: Likewise.
37520         * lib/gcd.h: Likewise.
37521         * lib/getcwd.c: Likewise.
37522         * lib/getdate.h: Likewise.
37523         * lib/getdate.y: Likewise.
37524         * lib/getdomainname.c: Likewise.
37525         * lib/getdomainname.h: Likewise.
37526         * lib/getgroups.c: Likewise.
37527         * lib/gethostname.c: Likewise.
37528         * lib/gethrxtime.c: Likewise.
37529         * lib/gethrxtime.h: Likewise.
37530         * lib/getloadavg.c: Likewise.
37531         * lib/getndelim2.c: Likewise.
37532         * lib/getndelim2.h: Likewise.
37533         * lib/getnline.c: Likewise.
37534         * lib/getnline.h: Likewise.
37535         * lib/getopt.c: Likewise.
37536         * lib/getopt.in.h: Likewise.
37537         * lib/getopt1.c: Likewise.
37538         * lib/getopt_int.h: Likewise.
37539         * lib/getpagesize.h: Likewise.
37540         * lib/getsubopt.c: Likewise.
37541         * lib/gettime.c: Likewise.
37542         * lib/getugroups.c: Likewise.
37543         * lib/getugroups.h: Likewise.
37544         * lib/getusershell.c: Likewise.
37545         * lib/gl_anyavltree_list1.h: Likewise.
37546         * lib/gl_anyavltree_list2.h: Likewise.
37547         * lib/gl_anyhash_list1.h: Likewise.
37548         * lib/gl_anyhash_list2.h: Likewise.
37549         * lib/gl_anylinked_list1.h: Likewise.
37550         * lib/gl_anylinked_list2.h: Likewise.
37551         * lib/gl_anyrbtree_list1.h: Likewise.
37552         * lib/gl_anyrbtree_list2.h: Likewise.
37553         * lib/gl_anytree_list1.h: Likewise.
37554         * lib/gl_anytree_list2.h: Likewise.
37555         * lib/gl_anytree_oset.h: Likewise.
37556         * lib/gl_anytreehash_list1.h: Likewise.
37557         * lib/gl_anytreehash_list2.h: Likewise.
37558         * lib/gl_array_list.c: Likewise.
37559         * lib/gl_array_list.h: Likewise.
37560         * lib/gl_array_oset.c: Likewise.
37561         * lib/gl_array_oset.h: Likewise.
37562         * lib/gl_avltree_list.c: Likewise.
37563         * lib/gl_avltree_list.h: Likewise.
37564         * lib/gl_avltree_oset.c: Likewise.
37565         * lib/gl_avltree_oset.h: Likewise.
37566         * lib/gl_avltreehash_list.c: Likewise.
37567         * lib/gl_avltreehash_list.h: Likewise.
37568         * lib/gl_carray_list.c: Likewise.
37569         * lib/gl_carray_list.h: Likewise.
37570         * lib/gl_linked_list.c: Likewise.
37571         * lib/gl_linked_list.h: Likewise.
37572         * lib/gl_linkedhash_list.c: Likewise.
37573         * lib/gl_linkedhash_list.h: Likewise.
37574         * lib/gl_list.c: Likewise.
37575         * lib/gl_list.h: Likewise.
37576         * lib/gl_oset.c: Likewise.
37577         * lib/gl_oset.h: Likewise.
37578         * lib/gl_rbtree_list.c: Likewise.
37579         * lib/gl_rbtree_list.h: Likewise.
37580         * lib/gl_rbtree_oset.c: Likewise.
37581         * lib/gl_rbtree_oset.h: Likewise.
37582         * lib/gl_rbtreehash_list.c: Likewise.
37583         * lib/gl_rbtreehash_list.h: Likewise.
37584         * lib/gl_sublist.c: Likewise.
37585         * lib/gl_sublist.h: Likewise.
37586         * lib/group-member.c: Likewise.
37587         * lib/group-member.h: Likewise.
37588         * lib/hard-locale.c: Likewise.
37589         * lib/hard-locale.h: Likewise.
37590         * lib/hash-pjw.c: Likewise.
37591         * lib/hash-pjw.h: Likewise.
37592         * lib/hash-triple.c: Likewise.
37593         * lib/hash.c: Likewise.
37594         * lib/hash.h: Likewise.
37595         * lib/human.c: Likewise.
37596         * lib/human.h: Likewise.
37597         * lib/i-ring.c: Likewise.
37598         * lib/i-ring.h: Likewise.
37599         * lib/idcache.c: Likewise.
37600         * lib/imaxabs.c: Likewise.
37601         * lib/imaxdiv.c: Likewise.
37602         * lib/inet_pton.c: Likewise.
37603         * lib/inet_pton.h: Likewise.
37604         * lib/intprops.h: Likewise.
37605         * lib/inttostr.c: Likewise.
37606         * lib/inttostr.h: Likewise.
37607         * lib/inttypes.in.h: Likewise.
37608         * lib/isapipe.c: Likewise.
37609         * lib/isdir.c: Likewise.
37610         * lib/isnan.c: Likewise.
37611         * lib/isnan.h: Likewise.
37612         * lib/isnanf.c: Likewise.
37613         * lib/isnanf.h: Likewise.
37614         * lib/isnanl-nolibm.h: Likewise.
37615         * lib/isnanl.c: Likewise.
37616         * lib/isnanl.h: Likewise.
37617         * lib/javacomp.c: Likewise.
37618         * lib/javacomp.h: Likewise.
37619         * lib/javaexec.c: Likewise.
37620         * lib/javaexec.h: Likewise.
37621         * lib/javaversion.c: Likewise.
37622         * lib/javaversion.h: Likewise.
37623         * lib/javaversion.java: Likewise.
37624         * lib/lbrkprop.h: Likewise.
37625         * lib/lchmod.h: Likewise.
37626         * lib/lchown.c: Likewise.
37627         * lib/ldexpl.c: Likewise.
37628         * lib/linebreak.c: Likewise.
37629         * lib/linebreak.h: Likewise.
37630         * lib/linebuffer.c: Likewise.
37631         * lib/linebuffer.h: Likewise.
37632         * lib/locale.in.h: Likewise.
37633         * lib/logl.c: Likewise.
37634         * lib/long-options.c: Likewise.
37635         * lib/long-options.h: Likewise.
37636         * lib/lstat.c: Likewise.
37637         * lib/lstat.h: Likewise.
37638         * lib/math.in.h: Likewise.
37639         * lib/mbchar.c: Likewise.
37640         * lib/mbchar.h: Likewise.
37641         * lib/mbfile.h: Likewise.
37642         * lib/mbiter.h: Likewise.
37643         * lib/mbscasecmp.c: Likewise.
37644         * lib/mbscasestr.c: Likewise.
37645         * lib/mbschr.c: Likewise.
37646         * lib/mbscspn.c: Likewise.
37647         * lib/mbslen.c: Likewise.
37648         * lib/mbsncasecmp.c: Likewise.
37649         * lib/mbsnlen.c: Likewise.
37650         * lib/mbspbrk.c: Likewise.
37651         * lib/mbspcasecmp.c: Likewise.
37652         * lib/mbsrchr.c: Likewise.
37653         * lib/mbssep.c: Likewise.
37654         * lib/mbsspn.c: Likewise.
37655         * lib/mbsstr.c: Likewise.
37656         * lib/mbstok_r.c: Likewise.
37657         * lib/mbswidth.c: Likewise.
37658         * lib/mbswidth.h: Likewise.
37659         * lib/mbuiter.h: Likewise.
37660         * lib/memcasecmp.c: Likewise.
37661         * lib/memcasecmp.h: Likewise.
37662         * lib/memchr.c: Likewise.
37663         * lib/memcmp.c: Likewise.
37664         * lib/memcoll.c: Likewise.
37665         * lib/memcoll.h: Likewise.
37666         * lib/memcpy.c: Likewise.
37667         * lib/memrchr.c: Likewise.
37668         * lib/mkancesdirs.c: Likewise.
37669         * lib/mkdir-p.c: Likewise.
37670         * lib/mkdir-p.h: Likewise.
37671         * lib/mkdir.c: Likewise.
37672         * lib/mkdirat.c: Likewise.
37673         * lib/mkdtemp.c: Likewise.
37674         * lib/mkstemp-safer.c: Likewise.
37675         * lib/mkstemp.c: Likewise.
37676         * lib/modechange.c: Likewise.
37677         * lib/modechange.h: Likewise.
37678         * lib/mountlist.c: Likewise.
37679         * lib/mountlist.h: Likewise.
37680         * lib/mpsort.c: Likewise.
37681         * lib/nanosleep.c: Likewise.
37682         * lib/obstack.c: Likewise.
37683         * lib/obstack.h: Likewise.
37684         * lib/open-safer.c: Likewise.
37685         * lib/open.c: Likewise.
37686         * lib/openat-die.c: Likewise.
37687         * lib/openat-priv.h: Likewise.
37688         * lib/openat-proc.c: Likewise.
37689         * lib/openat.c: Likewise.
37690         * lib/openat.h: Likewise.
37691         * lib/pagealign_alloc.c: Likewise.
37692         * lib/pagealign_alloc.h: Likewise.
37693         * lib/physmem.c: Likewise.
37694         * lib/physmem.h: Likewise.
37695         * lib/pipe-safer.c: Likewise.
37696         * lib/pipe.c: Likewise.
37697         * lib/pipe.h: Likewise.
37698         * lib/posixtm.c: Likewise.
37699         * lib/posixtm.h: Likewise.
37700         * lib/posixver.c: Likewise.
37701         * lib/printf-frexp.c: Likewise.
37702         * lib/printf-frexp.h: Likewise.
37703         * lib/printf-frexpl.c: Likewise.
37704         * lib/printf-frexpl.h: Likewise.
37705         * lib/printf.c: Likewise.
37706         * lib/progname.c: Likewise.
37707         * lib/progname.h: Likewise.
37708         * lib/progreloc.c: Likewise.
37709         * lib/putenv.c: Likewise.
37710         * lib/quote.c: Likewise.
37711         * lib/quote.h: Likewise.
37712         * lib/quotearg.c: Likewise.
37713         * lib/quotearg.h: Likewise.
37714         * lib/raise.c: Likewise.
37715         * lib/readline.c: Likewise.
37716         * lib/readline.h: Likewise.
37717         * lib/readlink.c: Likewise.
37718         * lib/readtokens.c: Likewise.
37719         * lib/readtokens.h: Likewise.
37720         * lib/readtokens0.c: Likewise.
37721         * lib/readtokens0.h: Likewise.
37722         * lib/readutmp.c: Likewise.
37723         * lib/readutmp.h: Likewise.
37724         * lib/realloc.c: Likewise.
37725         * lib/relocwrapper.c: Likewise.
37726         * lib/rename-dest-slash.c: Likewise.
37727         * lib/rename.c: Likewise.
37728         * lib/rmdir.c: Likewise.
37729         * lib/rpmatch.c: Likewise.
37730         * lib/safe-read.c: Likewise.
37731         * lib/safe-read.h: Likewise.
37732         * lib/safe-write.c: Likewise.
37733         * lib/safe-write.h: Likewise.
37734         * lib/same-inode.h: Likewise.
37735         * lib/same.c: Likewise.
37736         * lib/same.h: Likewise.
37737         * lib/save-cwd.c: Likewise.
37738         * lib/save-cwd.h: Likewise.
37739         * lib/savedir.c: Likewise.
37740         * lib/savedir.h: Likewise.
37741         * lib/savewd.c: Likewise.
37742         * lib/savewd.h: Likewise.
37743         * lib/search.in.h: Likewise.
37744         * lib/setenv.c: Likewise.
37745         * lib/setenv.h: Likewise.
37746         * lib/settime.c: Likewise.
37747         * lib/sh-quote.c: Likewise.
37748         * lib/sh-quote.h: Likewise.
37749         * lib/sig2str.c: Likewise.
37750         * lib/sig2str.h: Likewise.
37751         * lib/signal.in.h: Likewise.
37752         * lib/signbitd.c: Likewise.
37753         * lib/signbitf.c: Likewise.
37754         * lib/signbitl.c: Likewise.
37755         * lib/sigprocmask.c: Likewise.
37756         * lib/sincosl.c: Likewise.
37757         * lib/sleep.c: Likewise.
37758         * lib/sprintf.c: Likewise.
37759         * lib/sqrtl.c: Likewise.
37760         * lib/stat-time.h: Likewise.
37761         * lib/stdio--.h: Likewise.
37762         * lib/stdio-safer.h: Likewise.
37763         * lib/stdlib--.h: Likewise.
37764         * lib/stdlib-safer.h: Likewise.
37765         * lib/stdlib.in.h: Likewise.
37766         * lib/stpcpy.c: Likewise.
37767         * lib/stpncpy.c: Likewise.
37768         * lib/strchrnul.c: Likewise.
37769         * lib/strcspn.c: Likewise.
37770         * lib/strerror.c: Likewise.
37771         * lib/strftime.c: Likewise.
37772         * lib/strftime.h: Likewise.
37773         * lib/striconveh.c: Likewise.
37774         * lib/striconveh.h: Likewise.
37775         * lib/striconveha.c: Likewise.
37776         * lib/striconveha.h: Likewise.
37777         * lib/stripslash.c: Likewise.
37778         * lib/strnlen1.c: Likewise.
37779         * lib/strnlen1.h: Likewise.
37780         * lib/strtod.c: Likewise.
37781         * lib/strtoimax.c: Likewise.
37782         * lib/strtok_r.c: Likewise.
37783         * lib/strtol.c: Likewise.
37784         * lib/strtoll.c: Likewise.
37785         * lib/strtoul.c: Likewise.
37786         * lib/strtoull.c: Likewise.
37787         * lib/sysexits.in.h: Likewise.
37788         * lib/tempname.c: Likewise.
37789         * lib/tempname.h: Likewise.
37790         * lib/timespec.h: Likewise.
37791         * lib/tls.c: Likewise.
37792         * lib/tls.h: Likewise.
37793         * lib/tmpdir.c: Likewise.
37794         * lib/tmpdir.h: Likewise.
37795         * lib/tmpfile-safer.c: Likewise.
37796         * lib/tmpfile.c: Likewise.
37797         * lib/trigl.c: Likewise.
37798         * lib/trigl.h: Likewise.
37799         * lib/trim.c: Likewise.
37800         * lib/trim.h: Likewise.
37801         * lib/trunc.c: Likewise.
37802         * lib/truncf.c: Likewise.
37803         * lib/truncl.c: Likewise.
37804         * lib/tsearch.c: Likewise.
37805         * lib/unicodeio.c: Likewise.
37806         * lib/unicodeio.h: Likewise.
37807         * lib/unistd--.h: Likewise.
37808         * lib/unistd-safer.h: Likewise.
37809         * lib/unistdio/ulc-fprintf.c: Likewise.
37810         * lib/unistdio/ulc-vfprintf.c: Likewise.
37811         * lib/unlinkdir.c: Likewise.
37812         * lib/unlinkdir.h: Likewise.
37813         * lib/unlocked-io.h: Likewise.
37814         * lib/unsetenv.c: Likewise.
37815         * lib/userspec.c: Likewise.
37816         * lib/utime.c: Likewise.
37817         * lib/utimecmp.c: Likewise.
37818         * lib/utimecmp.h: Likewise.
37819         * lib/utimens.c: Likewise.
37820         * lib/verify.h: Likewise.
37821         * lib/verror.c: Likewise.
37822         * lib/verror.h: Likewise.
37823         * lib/version-etc-fsf.c: Likewise.
37824         * lib/version-etc.c: Likewise.
37825         * lib/version-etc.h: Likewise.
37826         * lib/vfprintf.c: Likewise.
37827         * lib/vprintf.c: Likewise.
37828         * lib/vsprintf.c: Likewise.
37829         * lib/w32spawn.h: Likewise.
37830         * lib/wait-process.c: Likewise.
37831         * lib/wait-process.h: Likewise.
37832         * lib/wcwidth.c: Likewise.
37833         * lib/write-any-file.c: Likewise.
37834         * lib/xalloc-die.c: Likewise.
37835         * lib/xalloc.h: Likewise.
37836         * lib/xasprintf.c: Likewise.
37837         * lib/xgetcwd.c: Likewise.
37838         * lib/xgetcwd.h: Likewise.
37839         * lib/xgetdomainname.c: Likewise.
37840         * lib/xgetdomainname.h: Likewise.
37841         * lib/xgethostname.c: Likewise.
37842         * lib/xmalloc.c: Likewise.
37843         * lib/xmalloca.c: Likewise.
37844         * lib/xmalloca.h: Likewise.
37845         * lib/xmemcoll.c: Likewise.
37846         * lib/xnanosleep.c: Likewise.
37847         * lib/xreadlink.c: Likewise.
37848         * lib/xreadlink.h: Likewise.
37849         * lib/xsetenv.c: Likewise.
37850         * lib/xsetenv.h: Likewise.
37851         * lib/xstriconv.c: Likewise.
37852         * lib/xstriconv.h: Likewise.
37853         * lib/xstrndup.c: Likewise.
37854         * lib/xstrndup.h: Likewise.
37855         * lib/xstrtod.c: Likewise.
37856         * lib/xstrtod.h: Likewise.
37857         * lib/xstrtol-error.c: Likewise.
37858         * lib/xstrtol.c: Likewise.
37859         * lib/xstrtol.h: Likewise.
37860         * lib/xtime.h: Likewise.
37861         * lib/xvasprintf.c: Likewise.
37862         * lib/xvasprintf.h: Likewise.
37863         * lib/yesno.c: Likewise.
37864         * lib/yesno.h: Likewise.
37865         * posix-modules: Likewise.
37866         * tests/test-alloca-opt.c: Likewise.
37867         * tests/test-arcfour.c: Likewise.
37868         * tests/test-arctwo.c: Likewise.
37869         * tests/test-argmatch.c: Likewise.
37870         * tests/test-argp-2.sh: Likewise.
37871         * tests/test-argp.c: Likewise.
37872         * tests/test-arpa_inet.c: Likewise.
37873         * tests/test-array_list.c: Likewise.
37874         * tests/test-array_oset.c: Likewise.
37875         * tests/test-atexit.c: Likewise.
37876         * tests/test-avltree_list.c: Likewise.
37877         * tests/test-avltree_oset.c: Likewise.
37878         * tests/test-avltreehash_list.c: Likewise.
37879         * tests/test-base64.c: Likewise.
37880         * tests/test-binary-io.c: Likewise.
37881         * tests/test-byteswap.c: Likewise.
37882         * tests/test-c-ctype.c: Likewise.
37883         * tests/test-c-strcasecmp.c: Likewise.
37884         * tests/test-c-strcasestr.c: Likewise.
37885         * tests/test-c-strncasecmp.c: Likewise.
37886         * tests/test-c-strstr.c: Likewise.
37887         * tests/test-canonicalize-lgpl.c: Likewise.
37888         * tests/test-canonicalize.c: Likewise.
37889         * tests/test-carray_list.c: Likewise.
37890         * tests/test-ceilf.c: Likewise.
37891         * tests/test-ceill.c: Likewise.
37892         * tests/test-count-one-bits.c: Likewise.
37893         * tests/test-crc.c: Likewise.
37894         * tests/test-dirname.c: Likewise.
37895         * tests/test-fbufmode.c: Likewise.
37896         * tests/test-fcntl.c: Likewise.
37897         * tests/test-fflush.c: Likewise.
37898         * tests/test-floorf.c: Likewise.
37899         * tests/test-floorl.c: Likewise.
37900         * tests/test-fopen.c: Likewise.
37901         * tests/test-fprintf-posix.c: Likewise.
37902         * tests/test-fprintf-posix.h: Likewise.
37903         * tests/test-fpurge.c: Likewise.
37904         * tests/test-freadable.c: Likewise.
37905         * tests/test-freadahead.c: Likewise.
37906         * tests/test-freading.c: Likewise.
37907         * tests/test-freopen.c: Likewise.
37908         * tests/test-frexp.c: Likewise.
37909         * tests/test-frexpl.c: Likewise.
37910         * tests/test-fseek.c: Likewise.
37911         * tests/test-fseeko.c: Likewise.
37912         * tests/test-fseterr.c: Likewise.
37913         * tests/test-fstrcmp.c: Likewise.
37914         * tests/test-ftell.c: Likewise.
37915         * tests/test-ftello.c: Likewise.
37916         * tests/test-fwritable.c: Likewise.
37917         * tests/test-fwriting.c: Likewise.
37918         * tests/test-getaddrinfo.c: Likewise.
37919         * tests/test-getpass.c: Likewise.
37920         * tests/test-gettimeofday.c: Likewise.
37921         * tests/test-hmac-md5.c: Likewise.
37922         * tests/test-hmac-sha1.c: Likewise.
37923         * tests/test-iconv.c: Likewise.
37924         * tests/test-iconvme.c: Likewise.
37925         * tests/test-inttypes.c: Likewise.
37926         * tests/test-isnan.c: Likewise.
37927         * tests/test-isnanf.c: Likewise.
37928         * tests/test-isnanl-nolibm.c: Likewise.
37929         * tests/test-isnanl.c: Likewise.
37930         * tests/test-isnanl.h: Likewise.
37931         * tests/test-ldexpl.c: Likewise.
37932         * tests/test-linked_list.c: Likewise.
37933         * tests/test-linkedhash_list.c: Likewise.
37934         * tests/test-locale.c: Likewise.
37935         * tests/test-localename.c: Likewise.
37936         * tests/test-lock.c: Likewise.
37937         * tests/test-lseek.c: Likewise.
37938         * tests/test-malloca.c: Likewise.
37939         * tests/test-math.c: Likewise.
37940         * tests/test-mbscasecmp.c: Likewise.
37941         * tests/test-mbscasestr1.c: Likewise.
37942         * tests/test-mbscasestr2.c: Likewise.
37943         * tests/test-mbscasestr3.c: Likewise.
37944         * tests/test-mbscasestr4.c: Likewise.
37945         * tests/test-mbschr.c: Likewise.
37946         * tests/test-mbscspn.c: Likewise.
37947         * tests/test-mbsncasecmp.c: Likewise.
37948         * tests/test-mbspbrk.c: Likewise.
37949         * tests/test-mbspcasecmp.c: Likewise.
37950         * tests/test-mbsrchr.c: Likewise.
37951         * tests/test-mbsspn.c: Likewise.
37952         * tests/test-mbsstr1.c: Likewise.
37953         * tests/test-mbsstr2.c: Likewise.
37954         * tests/test-mbsstr3.c: Likewise.
37955         * tests/test-md5.c: Likewise.
37956         * tests/test-memmem.c: Likewise.
37957         * tests/test-netinet_in.c: Likewise.
37958         * tests/test-open.c: Likewise.
37959         * tests/test-printf-frexp.c: Likewise.
37960         * tests/test-printf-frexpl.c: Likewise.
37961         * tests/test-printf-posix.c: Likewise.
37962         * tests/test-printf-posix.h: Likewise.
37963         * tests/test-rbtree_list.c: Likewise.
37964         * tests/test-rbtree_oset.c: Likewise.
37965         * tests/test-rbtreehash_list.c: Likewise.
37966         * tests/test-read-file.c: Likewise.
37967         * tests/test-rijndael.c: Likewise.
37968         * tests/test-search.c: Likewise.
37969         * tests/test-signbit.c: Likewise.
37970         * tests/test-sleep.c: Likewise.
37971         * tests/test-snprintf-posix.c: Likewise.
37972         * tests/test-snprintf-posix.h: Likewise.
37973         * tests/test-snprintf.c: Likewise.
37974         * tests/test-sprintf-posix.c: Likewise.
37975         * tests/test-sprintf-posix.h: Likewise.
37976         * tests/test-stat-time.c: Likewise.
37977         * tests/test-stdbool.c: Likewise.
37978         * tests/test-stdint.c: Likewise.
37979         * tests/test-stdio.c: Likewise.
37980         * tests/test-stdlib.c: Likewise.
37981         * tests/test-stpncpy.c: Likewise.
37982         * tests/test-strcasestr.c: Likewise.
37983         * tests/test-striconv.c: Likewise.
37984         * tests/test-striconveh.c: Likewise.
37985         * tests/test-striconveha.c: Likewise.
37986         * tests/test-string.c: Likewise.
37987         * tests/test-sys_select.c: Likewise.
37988         * tests/test-sys_socket.c: Likewise.
37989         * tests/test-sys_stat.c: Likewise.
37990         * tests/test-sys_time.c: Likewise.
37991         * tests/test-sysexits.c: Likewise.
37992         * tests/test-time.c: Likewise.
37993         * tests/test-tls.c: Likewise.
37994         * tests/test-trunc.c: Likewise.
37995         * tests/test-truncf.c: Likewise.
37996         * tests/test-truncl.c: Likewise.
37997         * tests/test-unistd.c: Likewise.
37998         * tests/test-vasnprintf-posix.c: Likewise.
37999         * tests/test-vasnprintf-posix2.c: Likewise.
38000         * tests/test-vasnprintf.c: Likewise.
38001         * tests/test-vasprintf-posix.c: Likewise.
38002         * tests/test-vasprintf.c: Likewise.
38003         * tests/test-verify.c: Likewise.
38004         * tests/test-vfprintf-posix.c: Likewise.
38005         * tests/test-vprintf-posix.c: Likewise.
38006         * tests/test-vsnprintf-posix.c: Likewise.
38007         * tests/test-vsnprintf.c: Likewise.
38008         * tests/test-vsprintf-posix.c: Likewise.
38009         * tests/test-wchar.c: Likewise.
38010         * tests/test-wctype.c: Likewise.
38011         * tests/test-wcwidth.c: Likewise.
38012         * tests/test-xstrtol.c: Likewise.
38013         * tests/test-xvasprintf.c: Likewise.
38014         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38015         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38016         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38017         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38018         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38019         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38020         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38021         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38022         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38023         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38024         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38025         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38026         * tests/uniname/test-uninames.c: Likewise.
38027         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38028         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
38029         * tests/unistdio/test-u16-printf1.h: Likewise.
38030         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38031         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38032         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38033         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38034         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38035         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38036         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38037         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
38038         * tests/unistdio/test-u32-printf1.h: Likewise.
38039         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38040         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38041         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38042         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38043         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38044         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38045         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38046         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
38047         * tests/unistdio/test-u8-printf1.h: Likewise.
38048         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38049         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38050         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38051         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38052         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38053         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38054         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38055         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
38056         * tests/unistdio/test-ulc-printf1.h: Likewise.
38057         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38058         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38059         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38060         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38061         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38062         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38063         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38064         * tests/uniwidth/test-u16-width.c: Likewise.
38065         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38066         * tests/uniwidth/test-u32-width.c: Likewise.
38067         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38068         * tests/uniwidth/test-u8-width.c: Likewise.
38069         * tests/uniwidth/test-uc_width.c: Likewise.
38070         * config/srclist-update: Likewise.
38071         (fixlicense): Update to GPLv3+.
38072
38073         Change copyright notice from LGPLv2.1+ to LGPLv3+.
38074         * tests/test-tsearch.c: Change copyright notice.
38075
38076         Change copyright notice from LGPLv2.0+ to LGPLv3+.
38077         * lib/c-strcaseeq.h: Change copyright notice.
38078         * lib/streq.h: Likewise.
38079         * lib/uniconv.h: Likewise.
38080         * lib/uniconv/u-conv-from-enc.h: Likewise.
38081         * lib/uniconv/u-conv-to-enc.h: Likewise.
38082         * lib/uniconv/u-strconv-from-enc.h: Likewise.
38083         * lib/uniconv/u-strconv-to-enc.h: Likewise.
38084         * lib/uniconv/u16-conv-from-enc.c: Likewise.
38085         * lib/uniconv/u16-conv-to-enc.c: Likewise.
38086         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
38087         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
38088         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
38089         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
38090         * lib/uniconv/u32-conv-from-enc.c: Likewise.
38091         * lib/uniconv/u32-conv-to-enc.c: Likewise.
38092         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
38093         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
38094         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
38095         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
38096         * lib/uniconv/u8-conv-from-enc.c: Likewise.
38097         * lib/uniconv/u8-conv-to-enc.c: Likewise.
38098         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
38099         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
38100         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
38101         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
38102         * lib/uniname.h: Likewise.
38103         * lib/uniname/uniname.c: Likewise.
38104         * lib/unistdio.h: Likewise.
38105         * lib/unistdio/u-asnprintf.h: Likewise.
38106         * lib/unistdio/u-asprintf.h: Likewise.
38107         * lib/unistdio/u-printf-args.c: Likewise.
38108         * lib/unistdio/u-printf-args.h: Likewise.
38109         * lib/unistdio/u-printf-parse.h: Likewise.
38110         * lib/unistdio/u-snprintf.h: Likewise.
38111         * lib/unistdio/u-sprintf.h: Likewise.
38112         * lib/unistdio/u-vasprintf.h: Likewise.
38113         * lib/unistdio/u-vsnprintf.h: Likewise.
38114         * lib/unistdio/u-vsprintf.h: Likewise.
38115         * lib/unistdio/u16-asnprintf.c: Likewise.
38116         * lib/unistdio/u16-asprintf.c: Likewise.
38117         * lib/unistdio/u16-printf-parse.c: Likewise.
38118         * lib/unistdio/u16-snprintf.c: Likewise.
38119         * lib/unistdio/u16-sprintf.c: Likewise.
38120         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
38121         * lib/unistdio/u16-u16-asprintf.c: Likewise.
38122         * lib/unistdio/u16-u16-snprintf.c: Likewise.
38123         * lib/unistdio/u16-u16-sprintf.c: Likewise.
38124         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
38125         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
38126         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
38127         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
38128         * lib/unistdio/u16-vasnprintf.c: Likewise.
38129         * lib/unistdio/u16-vasprintf.c: Likewise.
38130         * lib/unistdio/u16-vsnprintf.c: Likewise.
38131         * lib/unistdio/u16-vsprintf.c: Likewise.
38132         * lib/unistdio/u32-asnprintf.c: Likewise.
38133         * lib/unistdio/u32-asprintf.c: Likewise.
38134         * lib/unistdio/u32-printf-parse.c: Likewise.
38135         * lib/unistdio/u32-snprintf.c: Likewise.
38136         * lib/unistdio/u32-sprintf.c: Likewise.
38137         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
38138         * lib/unistdio/u32-u32-asprintf.c: Likewise.
38139         * lib/unistdio/u32-u32-snprintf.c: Likewise.
38140         * lib/unistdio/u32-u32-sprintf.c: Likewise.
38141         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
38142         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
38143         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
38144         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
38145         * lib/unistdio/u32-vasnprintf.c: Likewise.
38146         * lib/unistdio/u32-vasprintf.c: Likewise.
38147         * lib/unistdio/u32-vsnprintf.c: Likewise.
38148         * lib/unistdio/u32-vsprintf.c: Likewise.
38149         * lib/unistdio/u8-asnprintf.c: Likewise.
38150         * lib/unistdio/u8-asprintf.c: Likewise.
38151         * lib/unistdio/u8-printf-parse.c: Likewise.
38152         * lib/unistdio/u8-snprintf.c: Likewise.
38153         * lib/unistdio/u8-sprintf.c: Likewise.
38154         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
38155         * lib/unistdio/u8-u8-asprintf.c: Likewise.
38156         * lib/unistdio/u8-u8-snprintf.c: Likewise.
38157         * lib/unistdio/u8-u8-sprintf.c: Likewise.
38158         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
38159         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
38160         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
38161         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
38162         * lib/unistdio/u8-vasnprintf.c: Likewise.
38163         * lib/unistdio/u8-vasprintf.c: Likewise.
38164         * lib/unistdio/u8-vsnprintf.c: Likewise.
38165         * lib/unistdio/u8-vsprintf.c: Likewise.
38166         * lib/unistdio/ulc-asnprintf.c: Likewise.
38167         * lib/unistdio/ulc-asprintf.c: Likewise.
38168         * lib/unistdio/ulc-printf-parse.c: Likewise.
38169         * lib/unistdio/ulc-snprintf.c: Likewise.
38170         * lib/unistdio/ulc-sprintf.c: Likewise.
38171         * lib/unistdio/ulc-vasnprintf.c: Likewise.
38172         * lib/unistdio/ulc-vasprintf.c: Likewise.
38173         * lib/unistdio/ulc-vsnprintf.c: Likewise.
38174         * lib/unistdio/ulc-vsprintf.c: Likewise.
38175         * lib/unistr.h: Likewise.
38176         * lib/unistr/u-cpy-alloc.h: Likewise.
38177         * lib/unistr/u-cpy.h: Likewise.
38178         * lib/unistr/u-endswith.h: Likewise.
38179         * lib/unistr/u-move.h: Likewise.
38180         * lib/unistr/u-set.h: Likewise.
38181         * lib/unistr/u-startswith.h: Likewise.
38182         * lib/unistr/u-stpcpy.h: Likewise.
38183         * lib/unistr/u-stpncpy.h: Likewise.
38184         * lib/unistr/u-strcat.h: Likewise.
38185         * lib/unistr/u-strcpy.h: Likewise.
38186         * lib/unistr/u-strcspn.h: Likewise.
38187         * lib/unistr/u-strdup.h: Likewise.
38188         * lib/unistr/u-strlen.h: Likewise.
38189         * lib/unistr/u-strncat.h: Likewise.
38190         * lib/unistr/u-strncpy.h: Likewise.
38191         * lib/unistr/u-strnlen.h: Likewise.
38192         * lib/unistr/u-strpbrk.h: Likewise.
38193         * lib/unistr/u-strspn.h: Likewise.
38194         * lib/unistr/u-strstr.h: Likewise.
38195         * lib/unistr/u-strtok.h: Likewise.
38196         * lib/unistr/u16-check.c: Likewise.
38197         * lib/unistr/u16-chr.c: Likewise.
38198         * lib/unistr/u16-cmp.c: Likewise.
38199         * lib/unistr/u16-cpy-alloc.c: Likewise.
38200         * lib/unistr/u16-cpy.c: Likewise.
38201         * lib/unistr/u16-endswith.c: Likewise.
38202         * lib/unistr/u16-mblen.c: Likewise.
38203         * lib/unistr/u16-mbsnlen.c: Likewise.
38204         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38205         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38206         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38207         * lib/unistr/u16-mbtouc.c: Likewise.
38208         * lib/unistr/u16-mbtoucr.c: Likewise.
38209         * lib/unistr/u16-move.c: Likewise.
38210         * lib/unistr/u16-next.c: Likewise.
38211         * lib/unistr/u16-prev.c: Likewise.
38212         * lib/unistr/u16-set.c: Likewise.
38213         * lib/unistr/u16-startswith.c: Likewise.
38214         * lib/unistr/u16-stpcpy.c: Likewise.
38215         * lib/unistr/u16-stpncpy.c: Likewise.
38216         * lib/unistr/u16-strcat.c: Likewise.
38217         * lib/unistr/u16-strchr.c: Likewise.
38218         * lib/unistr/u16-strcmp.c: Likewise.
38219         * lib/unistr/u16-strcpy.c: Likewise.
38220         * lib/unistr/u16-strcspn.c: Likewise.
38221         * lib/unistr/u16-strdup.c: Likewise.
38222         * lib/unistr/u16-strlen.c: Likewise.
38223         * lib/unistr/u16-strmblen.c: Likewise.
38224         * lib/unistr/u16-strmbtouc.c: Likewise.
38225         * lib/unistr/u16-strncat.c: Likewise.
38226         * lib/unistr/u16-strncmp.c: Likewise.
38227         * lib/unistr/u16-strncpy.c: Likewise.
38228         * lib/unistr/u16-strnlen.c: Likewise.
38229         * lib/unistr/u16-strpbrk.c: Likewise.
38230         * lib/unistr/u16-strrchr.c: Likewise.
38231         * lib/unistr/u16-strspn.c: Likewise.
38232         * lib/unistr/u16-strstr.c: Likewise.
38233         * lib/unistr/u16-strtok.c: Likewise.
38234         * lib/unistr/u16-to-u32.c: Likewise.
38235         * lib/unistr/u16-to-u8.c: Likewise.
38236         * lib/unistr/u16-uctomb-aux.c: Likewise.
38237         * lib/unistr/u16-uctomb.c: Likewise.
38238         * lib/unistr/u32-check.c: Likewise.
38239         * lib/unistr/u32-chr.c: Likewise.
38240         * lib/unistr/u32-cmp.c: Likewise.
38241         * lib/unistr/u32-cpy-alloc.c: Likewise.
38242         * lib/unistr/u32-cpy.c: Likewise.
38243         * lib/unistr/u32-endswith.c: Likewise.
38244         * lib/unistr/u32-mblen.c: Likewise.
38245         * lib/unistr/u32-mbsnlen.c: Likewise.
38246         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38247         * lib/unistr/u32-mbtouc.c: Likewise.
38248         * lib/unistr/u32-mbtoucr.c: Likewise.
38249         * lib/unistr/u32-move.c: Likewise.
38250         * lib/unistr/u32-next.c: Likewise.
38251         * lib/unistr/u32-prev.c: Likewise.
38252         * lib/unistr/u32-set.c: Likewise.
38253         * lib/unistr/u32-startswith.c: Likewise.
38254         * lib/unistr/u32-stpcpy.c: Likewise.
38255         * lib/unistr/u32-stpncpy.c: Likewise.
38256         * lib/unistr/u32-strcat.c: Likewise.
38257         * lib/unistr/u32-strchr.c: Likewise.
38258         * lib/unistr/u32-strcmp.c: Likewise.
38259         * lib/unistr/u32-strcpy.c: Likewise.
38260         * lib/unistr/u32-strcspn.c: Likewise.
38261         * lib/unistr/u32-strdup.c: Likewise.
38262         * lib/unistr/u32-strlen.c: Likewise.
38263         * lib/unistr/u32-strmblen.c: Likewise.
38264         * lib/unistr/u32-strmbtouc.c: Likewise.
38265         * lib/unistr/u32-strncat.c: Likewise.
38266         * lib/unistr/u32-strncmp.c: Likewise.
38267         * lib/unistr/u32-strncpy.c: Likewise.
38268         * lib/unistr/u32-strnlen.c: Likewise.
38269         * lib/unistr/u32-strpbrk.c: Likewise.
38270         * lib/unistr/u32-strrchr.c: Likewise.
38271         * lib/unistr/u32-strspn.c: Likewise.
38272         * lib/unistr/u32-strstr.c: Likewise.
38273         * lib/unistr/u32-strtok.c: Likewise.
38274         * lib/unistr/u32-to-u16.c: Likewise.
38275         * lib/unistr/u32-to-u8.c: Likewise.
38276         * lib/unistr/u32-uctomb.c: Likewise.
38277         * lib/unistr/u8-check.c: Likewise.
38278         * lib/unistr/u8-chr.c: Likewise.
38279         * lib/unistr/u8-cmp.c: Likewise.
38280         * lib/unistr/u8-cpy-alloc.c: Likewise.
38281         * lib/unistr/u8-cpy.c: Likewise.
38282         * lib/unistr/u8-endswith.c: Likewise.
38283         * lib/unistr/u8-mblen.c: Likewise.
38284         * lib/unistr/u8-mbsnlen.c: Likewise.
38285         * lib/unistr/u8-mbtouc-aux.c: Likewise.
38286         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38287         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38288         * lib/unistr/u8-mbtouc.c: Likewise.
38289         * lib/unistr/u8-mbtoucr.c: Likewise.
38290         * lib/unistr/u8-move.c: Likewise.
38291         * lib/unistr/u8-next.c: Likewise.
38292         * lib/unistr/u8-prev.c: Likewise.
38293         * lib/unistr/u8-set.c: Likewise.
38294         * lib/unistr/u8-startswith.c: Likewise.
38295         * lib/unistr/u8-stpcpy.c: Likewise.
38296         * lib/unistr/u8-stpncpy.c: Likewise.
38297         * lib/unistr/u8-strcat.c: Likewise.
38298         * lib/unistr/u8-strchr.c: Likewise.
38299         * lib/unistr/u8-strcmp.c: Likewise.
38300         * lib/unistr/u8-strcpy.c: Likewise.
38301         * lib/unistr/u8-strcspn.c: Likewise.
38302         * lib/unistr/u8-strdup.c: Likewise.
38303         * lib/unistr/u8-strlen.c: Likewise.
38304         * lib/unistr/u8-strmblen.c: Likewise.
38305         * lib/unistr/u8-strmbtouc.c: Likewise.
38306         * lib/unistr/u8-strncat.c: Likewise.
38307         * lib/unistr/u8-strncmp.c: Likewise.
38308         * lib/unistr/u8-strncpy.c: Likewise.
38309         * lib/unistr/u8-strnlen.c: Likewise.
38310         * lib/unistr/u8-strpbrk.c: Likewise.
38311         * lib/unistr/u8-strrchr.c: Likewise.
38312         * lib/unistr/u8-strspn.c: Likewise.
38313         * lib/unistr/u8-strstr.c: Likewise.
38314         * lib/unistr/u8-strtok.c: Likewise.
38315         * lib/unistr/u8-to-u16.c: Likewise.
38316         * lib/unistr/u8-to-u32.c: Likewise.
38317         * lib/unistr/u8-uctomb-aux.c: Likewise.
38318         * lib/unistr/u8-uctomb.c: Likewise.
38319         * lib/unitypes.h: Likewise.
38320         * lib/uniwidth.h: Likewise.
38321         * lib/uniwidth/cjk.h: Likewise.
38322         * lib/uniwidth/u16-strwidth.c: Likewise.
38323         * lib/uniwidth/u16-width.c: Likewise.
38324         * lib/uniwidth/u32-strwidth.c: Likewise.
38325         * lib/uniwidth/u32-width.c: Likewise.
38326         * lib/uniwidth/u8-strwidth.c: Likewise.
38327         * lib/uniwidth/u8-width.c: Likewise.
38328         * lib/uniwidth/width.c: Likewise.
38329
38330 2007-10-07  Bruno Haible  <bruno@clisp.org>
38331
38332         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
38333         The file is still under LGPL (see modules/inttypes).
38334
38335 2007-10-06  Bruno Haible  <bruno@clisp.org>
38336
38337         * modules/trunc (Dependencies): Add 'extensions'.
38338         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
38339         Reported by Ben Pfaff <blp@gnu.org>.
38340
38341 2007-10-06  Bruno Haible  <bruno@clisp.org>
38342
38343         * modules/freopen-tests: New file.
38344         * tests/test-freopen.c: New file.
38345
38346         * modules/fopen-tests: New file.
38347         * tests/test-fopen.c: New file.
38348
38349         * modules/fopen: New file.
38350         * lib/fopen.c: New file.
38351         * m4/fopen.m4: New file.
38352         * modules/freopen: New file.
38353         * lib/freopen.c: New file.
38354         * m4/freopen.m4: New file.
38355         * lib/stdio.in.h (fopen, freopen): New declarations.
38356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
38357         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38358         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
38359         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38360         * doc/functions/fopen.texi: Mention the 'fopen' module.
38361         * doc/functions/freopen.texi: Mention the 'freopen' module.
38362
38363 2007-10-06  Bruno Haible  <bruno@clisp.org>
38364
38365         * modules/open-tests: New file.
38366         * tests/test-open.c: New file.
38367
38368         * modules/open: New file.
38369         * lib/open.c: New file.
38370         * m4/open.m4: New file.
38371         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
38372         lib/open.c does.
38373         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
38374         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
38375         macros.
38376         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
38377         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
38378         REPLACE_OPEN.
38379         * doc/functions/open.texi: Mention the 'open' module.
38380
38381 2007-10-04  Bruno Haible  <bruno@clisp.org>
38382
38383         * modules/ceill-tests: New file.
38384         * tests/test-ceill.c: New file.
38385
38386         * modules/ceill: New file.
38387         * lib/ceill.c: Replace entire file.
38388         * m4/ceill.m4: New file.
38389         * lib/math.in.h (ceill): Replace declaration.
38390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
38391         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
38392         * doc/functions/ceill.texi: Mention the 'ceill' module.
38393         * modules/mathl (Files): Remove lib/ceill.c.
38394         (Depends-on): Add ceill.
38395
38396 2007-10-04  Bruno Haible  <bruno@clisp.org>
38397
38398         * modules/ceilf-tests: New file.
38399         * tests/test-ceilf.c: New file.
38400
38401         * modules/ceilf: New file.
38402         * lib/ceil.c: New file.
38403         * lib/ceilf.c: New file.
38404         * m4/ceilf.m4: New file.
38405         * lib/math.in.h (ceilf): New declaration.
38406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
38407         HAVE_DECL_CEILF.
38408         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
38409         HAVE_DECL_CEILF.
38410         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
38411
38412 2007-10-04  Bruno Haible  <bruno@clisp.org>
38413
38414         * modules/floorl-tests: New file.
38415         * tests/test-floorl.c: New file.
38416
38417         * modules/floorl: New file.
38418         * lib/floorl.c: Replace entire file.
38419         * m4/floorl.m4: New file.
38420         * lib/math.in.h (floorl): Replace declaration.
38421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
38422         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
38423         * doc/functions/floorl.texi: Mention the 'floorl' module.
38424         * modules/mathl (Files): Remove lib/floorl.c.
38425         (Depends-on): Add floorl.
38426
38427 2007-10-04  Bruno Haible  <bruno@clisp.org>
38428
38429         * modules/floorf-tests: New file.
38430         * tests/test-floorf.c: New file.
38431
38432         * modules/floorf: New file.
38433         * lib/floor.c: New file.
38434         * lib/floorf.c: New file.
38435         * m4/floorf.m4: New file.
38436         * lib/math.in.h (floorf): New declaration.
38437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
38438         HAVE_DECL_FLOORF.
38439         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
38440         HAVE_DECL_FLOORF.
38441         * doc/functions/floorf.texi: Mention the 'floorf' module.
38442
38443 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
38444             Bruno Haible  <bruno@clisp.org>
38445
38446         Advertise for the Git server instead of the CVS server.
38447         * doc/gnulib-intro.texi (Steady Development): Mention the Git
38448         repository instead of the CVS one.
38449         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
38450         about all VCS systems generically.
38451         * doc/gnulib.texi (Introduction): Capitalize `Git'.
38452
38453 2007-10-04  Bruno Haible  <bruno@clisp.org>
38454
38455         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
38456         means.
38457         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
38458
38459 2007-10-04  Bruno Haible  <bruno@clisp.org>
38460
38461         * modules/truncl-tests: New file.
38462         * tests/test-truncl.c: New file.
38463
38464         * modules/truncl: New file.
38465         * lib/truncl.c: New file.
38466         * m4/truncl.m4: New file.
38467         * lib/math.in.h (truncl): New declaration.
38468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
38469         HAVE_DECL_TRUNCL.
38470         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
38471         HAVE_DECL_TRUNCL.
38472         * doc/functions/truncl.texi: Mention the 'truncl' module.
38473
38474 2007-10-04  Bruno Haible  <bruno@clisp.org>
38475
38476         * modules/truncf-tests: New file.
38477         * tests/test-truncf.c: New file.
38478
38479         * modules/truncf: New file.
38480         * lib/trunc.c: Make paramerizable through USE_* macros.
38481         * lib/truncf.c: New file.
38482         * m4/truncf.m4: New file.
38483         * lib/math.in.h (truncf): New declaration.
38484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
38485         HAVE_DECL_TRUNCF.
38486         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
38487         HAVE_DECL_TRUNCF.
38488         * doc/functions/truncf.texi: Mention the 'truncf' module.
38489
38490 2007-10-03  Bruno Haible  <bruno@clisp.org>
38491
38492         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38493         augmentation also for tests modules.
38494         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
38495         * modules/atexit-tests (Makefile.am): Likewise.
38496         * modules/binary-io-tests (Makefile.am): Likewise.
38497         * modules/c-strcase-tests (Makefile.am): Likewise.
38498         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
38499         * modules/canonicalize-tests (Makefile.am): Likewise.
38500         * modules/closein-tests (Makefile.am): Likewise.
38501         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38502         * modules/freadahead-tests (Makefile.am): Likewise.
38503         * modules/fseek-tests (Makefile.am): Likewise.
38504         * modules/fseeko-tests (Makefile.am): Likewise.
38505         * modules/ftell-tests (Makefile.am): Likewise.
38506         * modules/ftello-tests (Makefile.am): Likewise.
38507         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
38508         * modules/isnanl-tests (Makefile.am): Likewise.
38509         * modules/lseek-tests (Makefile.am): Likewise.
38510         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38511         * modules/mbscasestr-tests (Makefile.am): Likewise.
38512         * modules/mbschr-tests (Makefile.am): Likewise.
38513         * modules/mbscspn-tests (Makefile.am): Likewise.
38514         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38515         * modules/mbspbrk-tests (Makefile.am): Likewise.
38516         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38517         * modules/mbsrchr-tests (Makefile.am): Likewise.
38518         * modules/mbsspn-tests (Makefile.am): Likewise.
38519         * modules/mbsstr-tests (Makefile.am): Likewise.
38520         * modules/printf-posix-tests (Makefile.am): Likewise.
38521         * modules/snprintf-posix-tests (Makefile.am): Likewise.
38522         * modules/sprintf-posix-tests (Makefile.am): Likewise.
38523         * modules/tsearch-tests (Makefile.am): Likewise.
38524         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38525         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38526         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38527         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38528         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38529         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38530         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38531         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38532         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
38533         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
38534         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38535         * modules/xstrtol-tests (Makefile.am): Likewise.
38536         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38537         * modules/yesno-tests (Makefile.am): Likewise.
38538
38539 2007-10-03  Bruno Haible  <bruno@clisp.org>
38540
38541         * modules/trunc-tests: New file.
38542         * tests/test-trunc.c: New file.
38543
38544         * modules/trunc: New file.
38545         * lib/trunc.c: New file.
38546         * m4/trunc.m4: New file.
38547         * lib/math.in.h (trunc): New declaration.
38548         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
38549         HAVE_DECL_TRUNC.
38550         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
38551         HAVE_DECL_TRUNC.
38552         * doc/functions/trunc.texi: Mention the 'trunc' module.
38553
38554 2007-10-03  Bruno Haible  <bruno@clisp.org>
38555
38556         * tests/test-fpending.c: New file, mostly copied
38557         from coreutils/lib/t-fpending.c.
38558         * modules/fpending-tests: New file.
38559
38560 2007-10-03  Bruno Haible  <bruno@clisp.org>
38561
38562         Port the stdio extensions to QNX (untested).
38563         * lib/fseterr.c (fseterr): Add support for QNX.
38564         * lib/fbufmode.c (fbufmode): Likewise.
38565         * lib/freadable.c (freadable): Likewise.
38566         * lib/fwritable.c (fwritable): Likewise.
38567         * lib/freading.c (freading): Likewise.
38568         * lib/fwriting.c (fwriting): Likewise.
38569         * lib/freadahead.c (freadahed): Likewise.
38570         * lib/fpurge.c (fpurge): Likewise.
38571         * lib/fseeko.c (rpl_fseeko): Likewise.
38572
38573 2007-10-03  Bruno Haible  <bruno@clisp.org>
38574             Jim Meyering  <jim@meyering.net>
38575             Eric Blake  <ebb9@byu.net>
38576
38577         * doc/relocatable.texi: Use @command instead of @program.
38578
38579 2007-10-02  Jim Meyering  <jim@meyering.net>
38580
38581         Perform one more "_.h" -> ".in.h" substitution.
38582         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
38583         instead of unistd_.h here, too.
38584
38585 2007-10-01  Bruno Haible  <bruno@clisp.org>
38586
38587         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
38588         Needed for the alloca-opt module.
38589
38590 2007-09-30  Bruno Haible  <bruno@clisp.org>
38591
38592         * lib/alloca.in.h: Renamed from lib/alloca_.h.
38593         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
38594         alloca_.h.
38595         * lib/argz.in.h: Renamed from lib/argz_.h.
38596         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
38597         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
38598         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
38599         byteswap_.h.
38600         * lib/dirent.in.h: Renamed from lib/dirent_.h.
38601         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
38602         dirent_.h.
38603         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
38604         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
38605         fcntl_.h.
38606         * lib/float.in.h: Renamed from lib/float_.h.
38607         * modules/float (Files, Makefile.am): Use float.in.h instead of
38608         float_.h.
38609         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
38610         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
38611         fnmatch_.h.
38612         * lib/getopt.in.h: Renamed from lib/getopt_.h.
38613         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
38614         getopt_.h.
38615         * lib/glob.in.h: Renamed from lib/glob_.h.
38616         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
38617         * lib/iconv.in.h: Renamed from lib/iconv_.h.
38618         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
38619         iconv_.h.
38620         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
38621         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
38622         inttypes_.h.
38623         * lib/locale.in.h: Renamed from lib/locale_.h.
38624         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
38625         locale_.h.
38626         * lib/math.in.h: Renamed from lib/math_.h.
38627         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
38628         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
38629         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
38630         of netinet_in_.h. Add dependency.
38631         * lib/poll.in.h: Renamed from lib/poll_.h.
38632         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
38633         * lib/search.in.h: Renamed from lib/search_.h.
38634         * modules/search (Files, Makefile.am): Use search.in.h instead of
38635         search_.h.
38636         * lib/signal.in.h: Renamed from lib/signal_.h.
38637         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
38638         _signal.h.
38639         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
38640         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
38641         stdbool_.h.
38642         * lib/stdint.in.h: Renamed from lib/stdint_.h.
38643         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
38644         stdint_.h.
38645         * lib/stdio.in.h: Renamed from lib/stdio_.h.
38646         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
38647         stdio_.h.
38648         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
38649         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
38650         stdlib_.h.
38651         * lib/string.in.h: Renamed from lib/string_.h.
38652         * modules/string (Files, Makefile.am): Use string.in.h instead of
38653         string_.h.
38654         * doc/gnulib-tool.texi (Initial import): Update.
38655         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
38656         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
38657         of sys_select_.h. Add dependency.
38658         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
38659         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
38660         of sys_socket_.h.
38661         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
38662         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
38663         sys_stat_.h.
38664         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
38665         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
38666         sys_time_.h.
38667         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
38668         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
38669         sysexits_.h.
38670         * lib/time.in.h: Renamed from lib/time_.h.
38671         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
38672         * lib/unistd.in.h: Renamed from lib/unistd_.h.
38673         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
38674         unistd_.h.
38675         * lib/wchar.in.h: Renamed from lib/wchar_.h.
38676         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
38677         wchar_.h.
38678         * lib/wctype.in.h: Renamed from lib/wctype_.h.
38679         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
38680         wctype_.h.
38681         * build-aux/bootstrap (slurp): Update.
38682         * lib/.cppi-disable: Update.
38683
38684 2007-09-30  Bruno Haible  <bruno@clisp.org>
38685
38686         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
38687         Needed on BeOS.
38688
38689 2007-09-30  Bruno Haible  <bruno@clisp.org>
38690
38691         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
38692
38693 2007-09-29  Bruno Haible  <bruno@clisp.org>
38694
38695         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
38696
38697 2007-09-29  Bruno Haible  <bruno@clisp.org>
38698
38699         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
38700         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
38701         * build-aux/install-reloc: Compile also areadlink.c.
38702         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
38703
38704 2007-09-29  Bruno Haible  <bruno@clisp.org>
38705
38706         * gnulib-tool (func_emit_initmacro_done): Indentation.
38707
38708 2007-09-29  Bruno Haible  <bruno@clisp.org>
38709
38710         * README: Add CVS checkout update instructions.
38711         Info from Bob Proulx <bob@proulx.com>.
38712
38713 2007-09-28  Eric Blake  <ebb9@byu.net>
38714
38715         Provide move-if-change.
38716         * build-aux/move-if-change: New file, based on best practice
38717         rather than any canonical upstream location.
38718
38719 2007-09-28  Jim Meyering  <jim@meyering.net>
38720
38721         Fix canonicalize loop-detection corner case.
38722         Do not attempt to stat the symlink values stored via seen_triple.
38723         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
38724         on linux-2.6.18, (but not 2.6.22).
38725         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
38726         triple_compare.  The former compares dev,ino,filename, while the latter
38727         would actually stat dirname(filename) when dev and ino were equal.
38728         * lib/hash-triple.c: Install <string.h>.
38729         (STREQ): Define.
38730         (triple_compare_ino_str): New function.
38731         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
38732
38733 2007-09-28  Eric Blake  <ebb9@byu.net>
38734
38735         Enforce that AC_REPLACE_FUNCS files exist.
38736         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
38737         override check for typos.
38738
38739         Fix test-closein on Solaris 10.
38740         * tests/test-closein.c (main): Don't assume stdin can be inherited
38741         closed on all systems.
38742         * tests/test-closein.sh: Likewise.
38743         Reported by Piotr Tarnowski.
38744
38745 2007-09-28  Jim Meyering  <jim@meyering.net>
38746
38747         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
38748
38749 2007-09-27  Jim Meyering  <jim@meyering.net>
38750
38751         canonicalize: Avoid a false-positive cycle failure.
38752         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
38753         Sort.  Remove cycle-check.
38754         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
38755         not cycle-check.h.
38756         (seen_triple): New function.
38757         (canonicalize_filename_mode): Use it instead of cycle-check.
38758         * tests/test-canonicalize.c: Add a test for this bug.
38759         * tests/test-canonicalize.sh: Set up and run the test.
38760
38761         New module, file-set, from coreutils.
38762         * modules/file-set: Define it.
38763         * lib/file-set.c, lib/file-set.h: Implement.
38764
38765         New module, hash-triple, from coreutils.
38766         * modules/hash-triple: Define it.
38767         * lib/hash-triple.c, lib/hash-triple.h: Implement.
38768
38769 2007-09-25  Eric Blake  <ebb9@byu.net>
38770
38771         Fix strerror on Interix.
38772         * lib/string_.h (strerror): Declare replacement.
38773         * doc/functions/strerror.texi (strerror): Document the Interix
38774         shortcoming.
38775         * modules/string (Makefile.am): Support new hooks.
38776         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
38777         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
38778         gl_FUNC_STRERROR_SEPARATE.
38779         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
38780         * lib/strerror.c (rpl_strerror): Provide replacement.
38781         * modules/strerror (Depends-on): Add string.
38782         (configure.ac): Detect use of module.
38783         * tests/test-strerror.c: New file.
38784         * modules/strerror-tests: New test module.
38785         * modules/argp (Depends-on): Add strerror.
38786         * modules/error (Depends-on): Likewise.
38787         Reported by Martin Koeppe.
38788
38789 2007-09-24  Bruno Haible  <bruno@clisp.org>
38790
38791         * README: Update git instructions.
38792
38793 2007-09-24  Eric Blake  <ebb9@byu.net>
38794
38795         Revert fpending breakage from 2007-09-08.
38796         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
38797         __fpending.c.
38798
38799 2007-09-24  Jim Meyering  <jim@meyering.net>
38800
38801         filenamecat.c: Add a test.
38802         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
38803         showing how the function works when DIR is the empty string.
38804
38805 2007-09-21  Simon Josefsson  <simon@josefsson.org>
38806
38807         * tests/test-canonicalize.sh: Turn on executable bit.
38808
38809 2007-09-19  Eric Blake  <ebb9@byu.net>
38810
38811         * README: Update CVS instructions.
38812
38813 2007-09-18  Bruno Haible  <bruno@clisp.org>
38814
38815         * modules/areadlink: New file.
38816         * lib/areadlink.h (areadlink): New declaration.
38817         * lib/areadlink.c: New file, based on lib/xreadlink.c.
38818
38819 2007-09-17  Jim Meyering  <jim@meyering.net>
38820
38821         * lib/savewd.c (ESTALE) [!defined]: Define.
38822         Reported to be required on Interix by Martin Koeppe.
38823
38824 2007-09-17  Bruno Haible  <bruno@clisp.org>
38825
38826         * gnulib-tool (func_version): Use $version.
38827
38828 2007-09-16  Bruno Haible  <bruno@clisp.org>
38829
38830         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
38831         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
38832         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
38833         Reported by Greg Schafer <gschafer@zip.com.au>.
38834
38835 2007-09-15  Bruno Haible  <bruno@clisp.org>
38836
38837         * gnulib-tool (sed): Try a little harder to make bash understand the
38838         alias.
38839         Reported by Bruce Korb <bruce.korb@gmail.com>.
38840
38841 2007-09-13  Eric Blake  <ebb9@byu.net>
38842
38843         * ChangeLog: Remove conflict markers.
38844
38845 2007-09-13  Simon Josefsson  <simon@josefsson.org>
38846
38847         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
38848         Reported by Bruno Haible <bruno@clisp.org>.
38849
38850 2007-09-12  Bruno Haible  <bruno@clisp.org>
38851
38852         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
38853         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
38854         is not defined.
38855
38856 2007-09-12  Eric Blake  <ebb9@byu.net>
38857
38858         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
38859         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
38860         Autoconf definition.
38861         * modules/euidaccess (Depends-on): Add extensions, for
38862         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
38863         * modules/fnmatch (Depends-on): Likewise.
38864         * modules/getaddrinfo (Depends-on): Likewise.
38865         * modules/getdelim (Depends-on): Likewise.
38866         * modules/getline (Depends-on): Likewise.
38867         * modules/getsubopt (Depends-on): Likewise.
38868         * modules/gettext (Depends-on): Likewise.
38869         * modules/group-member (Depends-on): Likewise.
38870         * modules/mbchar (Depends-on): Likewise.
38871         * modules/memmem (Depends-on): Likewise.
38872         * modules/mempcpy (Depends-on): Likewise.
38873         * modules/memrchr (Depends-on): Likewise.
38874         * modules/pagealign_alloc (Depends-on): Likewise.
38875         * modules/readutmp (Depends-on): Likewise.
38876         * modules/stpcpy (Depends-on): Likewise.
38877         * modules/stpncpy (Depends-on): Likewise.
38878         * modules/strchrnul (Depends-on): Likewise.
38879         * modules/strndup (Depends-on): Likewise.
38880         * modules/strsep (Depends-on): Likewise.
38881         * modules/strverscmp (Depends-on): Likewise.
38882         * modules/vasprintf (Depends-on): Likewise.
38883         * modules/wcwidth (Depends-on): Likewise.
38884         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
38885         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
38886         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
38887         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
38888         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38889         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38890         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
38891         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
38892         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
38893         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38894         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38895         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38896         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38897         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38898         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
38899         * m4/readutmp.m4 (gl_READUTMP): Likewise.
38900         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38901         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38902         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38903         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38904         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38905         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38906         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38907         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
38908         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
38909         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38910         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
38911         so that lock.m4 can be used in gettext without extensions module.
38912
38913 2007-09-11  Bruno Haible  <bruno@clisp.org>
38914
38915         * m4/isc-posix.m4: Remove file.
38916         Suggested by Eric Blake.
38917
38918 2007-09-11  Eric Blake  <ebb9@byu.net>
38919
38920         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
38921
38922 2007-09-10  Bruno Haible  <bruno@clisp.org>
38923
38924         * posix-modules: Fix typo in error message.
38925         Reported by Matt <mkraai@beckman.com>.
38926
38927 2007-09-09  Bruno Haible  <bruno@clisp.org>
38928
38929         * doc/functions/getdelim.texi: Update list of platforms lacking the
38930         function.
38931         * doc/functions/getline.texi: Likewise.
38932
38933 2007-09-09  Jim Meyering  <jim@meyering.net>
38934
38935         * lib/hash.c (hash_initialize): Detect calloc failure.
38936         Reported by Bruno Haible.
38937
38938 2007-09-09  Bruno Haible  <bruno@clisp.org>
38939
38940         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
38941         malloc or realloc fails.
38942
38943 2007-09-09  Bruno Haible  <bruno@clisp.org>
38944
38945         * modules/getcwd (Depends-on): Add malloc-posix.
38946         * modules/glob (Depends-on): Likewise.
38947         * modules/putenv (Depends-on): Likewise.
38948         * modules/strdup (Depends-on): Likewise.
38949         * modules/getdelim (Depends-on): Add realloc-posix.
38950         * modules/read-file (Depends-on): Likewise.
38951
38952 2007-09-09  Bruno Haible  <bruno@clisp.org>
38953
38954         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
38955         (gl_FUNC_MALLOC_POSIX): Require it.
38956         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
38957         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
38958         * modules/realloc (Files): Add m4/malloc.m4.
38959         * modules/calloc (Files): Likewise.
38960
38961 2007-09-09  Bruno Haible  <bruno@clisp.org>
38962
38963         * modules/malloc-posix: New file.
38964         * modules/malloc (Depends-on): Add malloc-posix.
38965         * lib/malloc.c: Include errno.h.
38966         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
38967         and a POSIX-compatible malloc into a single function. Set ENOMEM
38968         when returning NULL.
38969         * m4/malloc.m4: New file.
38970         * doc/functions/malloc.texi: Mention the malloc-posix module.
38971         * lib/stdlib_.h (malloc): New declaration.
38972         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38973         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
38974         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
38975         and HAVE_MALLOC_POSIX.
38976
38977 2007-09-09  Bruno Haible  <bruno@clisp.org>
38978
38979         * modules/realloc-posix: New file.
38980         * modules/realloc (Depends-on): Add realloc-posix.
38981         * lib/realloc.c: Include errno.h.
38982         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
38983         and a POSIX-compatible realloc into a single function. Set ENOMEM
38984         when returning NULL.
38985         * m4/realloc.m4: New file.
38986         * doc/functions/realloc.texi: Mention the realloc-posix module.
38987         * lib/stdlib_.h (realloc): New declaration.
38988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38989         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
38990         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
38991         and HAVE_REALLOC_POSIX.
38992
38993 2007-09-09  Bruno Haible  <bruno@clisp.org>
38994
38995         * modules/calloc-posix: New file.
38996         * modules/calloc (Depends-on): Add calloc-posix.
38997         * lib/calloc.c: Include errno.h.
38998         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
38999         and a POSIX-compatible calloc into a single function. Set ENOMEM
39000         when returning NULL.
39001         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
39002         * doc/functions/calloc.texi: Mention the calloc-posix module.
39003         * lib/stdlib_.h (calloc): New declaration.
39004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39005         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
39006         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
39007         and HAVE_CALLOC_POSIX.
39008
39009 2007-09-09  Bruno Haible  <bruno@clisp.org>
39010
39011         Allow for modules to show an arbitrary notice.
39012         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
39013         * gnulib-tool: New option --extract-notice.
39014         (func_usage): Document it.
39015         (sed_extract_prog): Update.
39016         (func_get_notice): New function.
39017         (func_modules_notice): New function.
39018         (func_import, func_create_testdir): Invoke it.
39019         Suggested by Jim Meyering.
39020
39021 2007-09-09  Bruno Haible  <bruno@clisp.org>
39022
39023         * gnulib-tool: New options --verbose, --quiet.
39024         (func_usage): Document them.
39025         (verbose): New variable.
39026         (func_execute_command): New function.
39027         (func_import): Don't show the module list and the file list if
39028         $verbose < 0.
39029         (func_create_testdir): Likewise. Use func_execute_command.
39030         (func_create_megatestdir): Use func_execute_command.
39031
39032 2007-09-08  Bruno Haible  <bruno@clisp.org>
39033
39034         * gnulib-tool (func_import): Prefer rsync over wget when available,
39035         for fetching the PO files.
39036
39037 2007-09-08  Bruno Haible  <bruno@clisp.org>
39038
39039         * posix-modules: New file. Portions copied from gnulib-tool.
39040         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
39041
39042 2007-09-08  Jim Meyering  <jim@meyering.net>
39043
39044         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
39045         * lib/fpending.h: Rename from __fpending.h.
39046         * lib/fpending.c: Rename from __fpending.c.
39047         Include "fpending.h", not "__fpending.h".
39048         * lib/__fpending.h, lib/__fpending.c: Remove files.
39049         * modules/fpending (Files): Reflect new file names.
39050         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
39051
39052 2007-09-08  Bruno Haible  <bruno@clisp.org>
39053
39054         * m4/inttypes-h.m4: Remove stub file.
39055
39056 2007-09-07  Simon Josefsson  <simon@josefsson.org>
39057
39058         * doc/headers/stdint.texi: Discuss #include_next issue.
39059
39060 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
39061
39062         * build-aux/bootstrap: Remove obsolete comment about wget --help.
39063
39064 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39065
39066         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
39067         in variable name.
39068
39069 2007-09-03  Jim Meyering  <jim@meyering.net>
39070
39071         New module: git-version-gen.
39072         * modules/git-version-gen: New file.
39073
39074         Import changes from coreutils for bootstrap script.
39075
39076         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
39077
39078         bootstrap: uses rsync to download the .po files
39079         * build-aux/bootstrap (po_download_command_format): New global.
39080         (download_po_files): Use rsync.
39081         (update_po_files): Don't remove .po files after download,
39082         so future rsync runs can take advantage of the copies.
39083
39084         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
39085
39086         Solve the unnecessary-.po-file-regeneration problem once and for all.
39087         * build-aux/bootstrap (download_po_files): New function, renamed from
39088         get_translations.  Now, downloads, but doesn't update LINGUAS.
39089         (update_po_files): New function.
39090
39091         bootstrap: Ignore more.
39092         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
39093         uniwidth to e.g., lib/.gitignore.
39094         (slurp): Handle the sys_stat_.h -> sys mapping, too.
39095
39096         * build-aux/bootstrap: New setting: vc_ignore.
39097         (insert_sorted_if_absent): Create $file if absent.
39098         Adapt to new, possibly empty, list: $vc_ignore.
39099
39100         bootstrap: generate more ignorable names
39101         * build-aux/bootstrap (slurp): When generating ignorable names,
39102         also map .sin to .sed, .gperf to .c, and .y to .c.
39103
39104 2007-09-03  Jim Meyering  <jim@meyering.net>
39105
39106         * build-aux/git-version-gen: New file, from coreutils.  For details, see
39107         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
39108
39109 2007-09-02  Bruno Haible  <bruno@clisp.org>
39110
39111         Fix mis-recognition of 'mcs' on QNX 6.
39112         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
39113         output contains the string "Mono".
39114         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
39115         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
39116
39117 2007-09-01  Bruno Haible  <bruno@clisp.org>
39118
39119         Fix collision between uniwidth/* and linebreak modules.
39120         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
39121         u32_width): Remove declarations.
39122         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
39123         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
39124         streq3, streq2, streq1, streq0): Remove functions.
39125         (STREQ): Remove macro.
39126         (is_cjk_encoding): Remove function.
39127         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
39128         (uc_width, u8_width, u16_width, u32_width): Remove functions.
39129         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
39130         * NEWS: Document the change.
39131
39132 2007-09-01  Bruno Haible  <bruno@clisp.org>
39133
39134         * lib/streq.h: Add double-inclusion guard.
39135
39136 2007-09-01  Karl Berry  <karl@gnu.org>
39137
39138         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
39139
39140 2007-08-28  Jim Meyering  <jim@meyering.net>
39141
39142         Rename mreadlink_with_size to areadlink_with_size.
39143         * NEWS: Document the change.
39144         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
39145         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
39146         * lib/mreadlink.h: Rename this to...
39147         * lib/areadlink.h: ...this.
39148         * modules/mreadlink-with-size: Rename this to...
39149         * modules/areadlink-with-size: ...this.
39150         * lib/canonicalize.c: Reflect the renaming.
39151         * modules/canonicalize: Likewise.
39152
39153 2007-08-26  Bruno Haible  <bruno@clisp.org>
39154
39155         * gnulib-tool (func_import): When deciding which files to remove,
39156         consider also dangling symbolic links.
39157         Reported by Eric Blake.
39158
39159 2007-08-26  Bruno Haible  <bruno@clisp.org>
39160
39161         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
39162
39163 2007-08-23  Simon Josefsson  <simon@josefsson.org>
39164
39165         * lib/readline.c: Don't include getline.h, the prototype is now
39166         found in stdio.h.
39167
39168 2007-08-23  Jim Meyering  <jim@meyering.net>
39169
39170         Getdelim touchup.
39171         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
39172         around the funlockfile call, since funlockfile never sets errno.
39173         Don't set errno upon failed realloc.
39174
39175 2007-08-22  Eric Blake  <ebb9@byu.net>
39176
39177         Getline touchups.
39178         * lib/getdelim.c (getdelim): Revert regression that required *n to
39179         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
39180         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
39181         getdelim, rather than whether implementation is missing.
39182         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
39183         * lib/stdio_.h (getline): Also declare if replacement is
39184         required.
39185         * doc/functions/getdelim.texi: New file.
39186         * doc/functions/getline.texi: Likewise.
39187         * doc/gnulib.texi (Function Substitutes): Add new files.
39188         Reported by Bruno Haible.
39189
39190 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
39191
39192         * users.txt: Add Guile.
39193
39194 2007-08-22  Eric Blake  <ebb9@byu.net>
39195
39196         * tests/test-getdelim.c (main): Use remove, not unlink.
39197         * tests/test-getline.c (main): Likewise.
39198
39199         Move getline and getdelim into stdio.h, per POSIX 200x.
39200         * modules/getline (Files): Remove getline.h.
39201         (Depends-on): Add stdio.
39202         (configure.ac): Add module indicator.
39203         * modules/getdelim (Files): Remove getdelim.h.
39204         (Depends-on): Add stdio.
39205         (configure.ac): Add module indicator.
39206         * modules/stdio (Makefile.am): Work with new indicators.
39207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
39208         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
39209         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39210         * lib/getdelim.h: Delete.
39211         * lib/getline.h: Delete.
39212         * lib/stdio_.h (getdelim, getline): Declare.
39213         * modules/getdelim-tests: New module.
39214         * modules/getline-tests: Likewise.
39215         * tests/test-getdelim.c: New file.
39216         * tests/test-getline.c: Likewise.
39217         * NEWS: Document the change.
39218         * lib/getline.c: Update choice of header.
39219         * lib/csharpcomp.c: Likewise.
39220         * lib/getpass.c: Likewise.
39221         * lib/javacomp.c: Likewise.
39222         * lib/javaversion.c: Likewise.
39223         * lib/yesno.c: Likewise.
39224         * lib/getdelim.c: Likewise.
39225         (getdelim): Set errno on failure, and avoid memory leak.
39226
39227 2007-08-19  Bruno Haible  <bruno@clisp.org>
39228
39229         * modules/closein (Depends-on): Add freadahead.
39230         * lib/closein.c: Include freadahead.h.
39231         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
39232         is zero.
39233
39234 2007-08-19  Bruno Haible  <bruno@clisp.org>
39235
39236         * modules/freadahead-tests: New file.
39237         * tests/test-freadahead.sh: New file.
39238         * tests/test-freadahead.c: New file.
39239
39240         * modules/freadahead: New file.
39241         * lib/freadahead.h: New file.
39242         * lib/freadahead.c: New file.
39243         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
39244         fbufmode, fpurge, freadable, fwritable.
39245
39246 2007-08-19  Eric Blake  <ebb9@byu.net>
39247
39248         Test yesno in combination with closein.
39249         * lib/yesno.c (yesno): Document use of stdin.
39250         * modules/yesno-tests (Files): New module.
39251         * tests/test-yesno.c (main): New file.
39252         * tests/test-yesno.sh: Likewise.
39253
39254 2007-08-19  Bruno Haible  <bruno@clisp.org>
39255
39256         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
39257         * lib/fseeko.c (rpl_fseeko): Likewise.
39258         * lib/fseterr.c (fseterr): Likewise.
39259
39260 2007-08-19  Bruno Haible  <bruno@clisp.org>
39261
39262         * tests/test-lseek.c (main): Disable a test for BeOS.
39263         * doc/functions/lseek.texi: Document the BeOS bug.
39264
39265 2007-08-19  Bruno Haible  <bruno@clisp.org>
39266             Eric Blake  <ebb9@byu.net>
39267
39268         * lib/lseek.c: Include <sys/stat.h>.
39269         (rpl_lseek): Add workaround code also for Unix platforms.
39270         Needed for BeOS.
39271         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
39272         * doc/functions/lseek.texi: Document BeOS definiency.
39273
39274 2007-08-18  Bruno Haible  <bruno@clisp.org>
39275
39276         * modules/fstrcmp-tests: New file.
39277         * tests/test-fstrcmp.c: New file.
39278
39279 2007-08-18  Bruno Haible  <bruno@clisp.org>
39280
39281         * modules/fstrcmp: New file, from GNU gettext with modifications.
39282         * lib/fstrcmp.h: New file, from GNU gettext.
39283         * lib/fstrcmp.c: New file, from GNU gettext.
39284         * MODULES.html.sh (String handling): Add fstrcmp.
39285
39286 2007-08-18  Bruno Haible  <bruno@clisp.org>
39287
39288         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
39289         'bool'.
39290         (diag, compareseq): Remove const from the ctxt argument.
39291         (USE_HEURISTIC): Undefine at the end.
39292
39293 2007-08-18  Jim Meyering  <jim@meyering.net>
39294
39295         New file: lib/idcache.h
39296         * NEWS: Mention the addition.
39297         * modules/idcache (Files): Add lib/idcache.h
39298         * lib/idcache.c: Include "idcache.h".
39299         Don't include <sys/types.h>.
39300         Add a FIXME comment.
39301         Move file-scoped "static" declarations to the top.
39302         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
39303
39304 2007-08-17  Bruno Haible  <bruno@clisp.org>
39305         and Paul Eggert  <eggert@cs.ucla.edu>
39306
39307         * MODULES.html.sh: Add diffseq.
39308         * modules/diffseq: New file.
39309         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
39310         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
39311
39312 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
39313
39314         Import changes from coreutils for bootstrap script.
39315
39316         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
39317
39318         * build-aux/bootstrap (slurp): Work even in environments where
39319         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
39320         current code does not slurp files whose names start with ".", and
39321         this looks like it might be a troublesome area.
39322
39323         2007-07-11  Jim Meyering  <jim@meyering.net>
39324
39325         If there's a GPL vN copyright comment, require that N == 3.
39326
39327         2007-07-08  Jim Meyering  <jim@meyering.net>
39328
39329         Run the coreutils-specific code only if tests/Makefile.am.in exists.
39330         * build-aux/bootstrap (mam_template): Move definition out of loop.
39331
39332         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
39333
39334         * build-aux/bootstrap (symlink_to_dir): Rename function from
39335         symlink_to_gnulib.  Add a directory parameter.  Update all
39336         callers.
39337         (cp_mark_as_generated): Also check for -- and link to -- files in
39338         gl/.
39339
39340         2007-07-08  Jim Meyering  <jim@meyering.net>
39341
39342         Adapt to deeper hierarchy in gnulib.
39343         * build-aux/bootstrap (symlink_to_dir): If the destination
39344         directory doesn't exist, create it. This is required at least for
39345         "lib/uniwidth/cjk.h".
39346
39347         2007-05-15  Jim Meyering  <jim@meyering.net>
39348
39349         * build-aux/bootstrap: Now that generated Makefile.am files
39350         are no longer under version control, they must be created at
39351         bootstrap time.
39352
39353 2007-08-14  Ben Pfaff  <blp@gnu.org>
39354
39355         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
39356
39357 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
39358
39359         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
39360         given the changes below.
39361         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
39362         even on hosts that have padding bits beyond the supported 64.
39363
39364 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
39365
39366         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
39367         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
39368         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
39369         depends on it.
39370         (xstrtol_error): Remove.
39371         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
39372         but with a different signature.
39373         (ATTRIBUTE_NORETURN, __attribute__): New macros.
39374         * lib/xstrtol-error.c: Include exitfail.h.
39375         (xstrtol_fatal): New function, with a different signature from the
39376         old xstrtol_error, so that the caller need not worry about passing
39377         in an exit status, or about storage management of the option argument.
39378         (xstrtol_error): Now a static function.  Redo signature to
39379         implement xstrtol_fatal.  Output the correct number of hyphens in
39380         front of the option so that the caller need not worry about
39381         storage management.
39382         (N_): New macro.
39383         (_): Remove; not used now.
39384         * modules/xstrtol: Depend on getopt.
39385         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
39386         of old STRTOL_FATAL_ERROR macro.
39387         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
39388         of test program.
39389         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
39390         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
39391
39392 2007-08-08  Eric Blake  <ebb9@byu.net>
39393
39394         * lib/xstrtol-error.c: Add missing include.
39395
39396         Move xstrtol messages into gnulib domain, when --pobase is used.
39397         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
39398         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
39399         * modules/xstrtol (Files): Distribute new file.
39400         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
39401         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
39402         * tests/test-xstrtol.c: ...into new file.
39403         * tests/test-xstrtoul.c: Also test xstrtoul.
39404         * tests/test-xstrtoimax.c: Also test xstrtoimax.
39405         * tests/test-xstrtoumax.c: Also test xstrtoumax.
39406         * tests/test-xstrtol.sh: Drive the tests.
39407         * tests/test-xstrtoimax.sh: Likewise.
39408         * tests/test-xstrtoumax.sh: Likewise.
39409         * modules/xstrtol-tests: New module.
39410         * modules/xstrtoimax-tests: Likewise.
39411         * modules/xstrtoumax-tests: Likewise.
39412
39413 2007-08-08  Jim Meyering  <jim@meyering.net>
39414
39415         New function: mfile_name_concat.
39416         * lib/filenamecat.c (mfile_name_concat): New function, just like
39417         file_name_concat, but return NULL upon failure rather than exiting
39418         with a diagnostic.
39419         * lib/filenamecat.h: Declare it.
39420
39421 2007-08-07  Bruno Haible  <bruno@clisp.org>
39422
39423         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
39424         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
39425         warning from gcc.
39426         Reported by Eric Blake.
39427
39428 2007-08-07  Simon Josefsson  <simon@josefsson.org>
39429
39430         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
39431         * modules/crypto/arcfour (License): Likewise.
39432         * modules/crypto/des-tests (License): Likewise.
39433         * modules/crypto/gc-arctwo-tests (License): Likewise.
39434         * modules/crypto/gc-des-tests (License): Likewise.
39435         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
39436         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
39437         * modules/crypto/gc-md2-tests (License): Likewise.
39438         * modules/crypto/gc-md4-tests (License): Likewise.
39439         * modules/crypto/gc-md5-tests (License): Likewise.
39440         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
39441         * modules/crypto/gc-rijndael-tests (License): Likewise.
39442         * modules/crypto/gc-sha1-tests (License): Likewise.
39443         * modules/crypto/gc-tests (License): Likewise.
39444         * modules/crypto/hmac-md5 (License): Likewise.
39445         * modules/crypto/hmac-sha1 (License): Likewise.
39446         * modules/crypto/md2-tests (License): Likewise.
39447         * modules/crypto/md4-tests (License): Likewise.
39448         * modules/crypto/md5 (License): Likewise.
39449         * modules/crypto/rijndael (License): Likewise.
39450         * modules/crypto/sha1 (License): Likewise.
39451         * modules/memxor (License): Likewise.
39452
39453 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
39454         and Bruno Haible  <bruno@clisp.org>
39455
39456         * NEWS: Describe interface changes to human, xstrtol.
39457         * lib/human.h: Include <xstrtol.h>.
39458         (human_options): Return enum strtol_error, not int.  Remove
39459         bool arg; take int * instead.
39460         * lib/human.c: Don't include "gettext.h".
39461         (_): Remove; no longer used.
39462         Don't include <xstrtol.h>, since human.h does it.
39463         (human_options): Adjust to abovementioned interface changes.
39464         Do not report error to stderr; that's now the caller's
39465         responsibility.
39466         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
39467         interface change.
39468         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
39469         Str, Argument_type_string.  All uses changed.  Put " argument"
39470         in diagnostics to make them clearer.  Change wording of suffix
39471         message for clarity.
39472         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
39473         Argument_type_string.
39474         (STRTOL_FATAL_WARN): Remove; no longer used.
39475         * modules/human (Depends-on): Remove gettext-h.
39476
39477 2007-08-06  Simon Josefsson  <simon@josefsson.org>
39478
39479         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
39480
39481 2007-07-31  Bruno Haible  <bruno@clisp.org>
39482
39483         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
39484         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
39485         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
39486
39487 2007-07-31  Bruno Haible  <bruno@clisp.org>
39488
39489         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
39490         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
39491
39492 2007-07-30  Bruno Haible  <bruno@clisp.org>
39493
39494         * modules/base64 (License): Use the synonymous term "LGPLv2+".
39495         * modules/c-ctype (License): Likewise.
39496         * modules/c-strcase (License): Likewise.
39497         * modules/check-version (License): Likewise.
39498         * modules/iconv (License): Likewise.
39499         * modules/iconv_open (License): Likewise.
39500         * modules/read-file (License): Likewise.
39501         * modules/striconv (License): Likewise.
39502         * modules/strverscmp (License): Likewise.
39503         * modules/vasprintf (License): Likewise.
39504         * modules/crypto/des (License): Likewise.
39505         * modules/crypto/gc (License): Likewise.
39506         * modules/crypto/gc-arcfour (License): Likewise.
39507         * modules/crypto/gc-arctwo (License): Likewise.
39508         * modules/crypto/gc-des (License): Likewise.
39509         * modules/crypto/gc-hmac-md5 (License): Likewise.
39510         * modules/crypto/gc-hmac-sha1 (License): Likewise.
39511         * modules/crypto/gc-md2 (License): Likewise.
39512         * modules/crypto/gc-md4 (License): Likewise.
39513         * modules/crypto/gc-md5 (License): Likewise.
39514         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
39515         * modules/crypto/gc-random (License): Likewise.
39516         * modules/crypto/gc-rijndael (License): Likewise.
39517         * modules/crypto/gc-sha1 (License): Likewise.
39518         * modules/crypto/md2 (License): Likewise.
39519         * modules/crypto/md4 (License): Likewise.
39520
39521 2007-07-30  Jim Meyering  <jim@meyering.net>
39522
39523         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
39524         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
39525         it has valid stat data.  This bug would cause du not to count the
39526         sizes of inaccessible directories.
39527         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
39528         in <http://bugzilla.redhat.com/250077>.
39529
39530 2007-07-25  Peter O'Gorman  <peter@pogma.com>
39531             Bruno Haible  <bruno@clisp.org>
39532
39533         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
39534         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
39535         #include_next, gives a diagnostic about it, but reports no error in
39536         the exit code.
39537         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39538
39539 2007-07-24  Ben Pfaff  <blp@gnu.org>
39540
39541         Improve name: "count-one-bits" is better than "popcount".
39542         * MODULES.html.sh: Update name.
39543         * lib/popcount.h: Renamed lib/count-one-bits.h.
39544         (popcount): Renamed count_one_bits.
39545         (popcountl): Renamed count_one_bits_l.
39546         (popcountll): Renamed count_one_bits_ll.
39547         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
39548         * modules/popcount: Renamed module/count-one-bits.
39549         * modules/popcount-tests: Renamed module/count-one-bits-tests.
39550         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
39551
39552 2007-07-23  Ben Pfaff  <blp@gnu.org>
39553
39554         * lib/popcount.h (popcount32): Reduce size of constants, to allow
39555         better code generation, and add U to large constants to avoid
39556         warnings, in non-GCC case.
39557         Suggested by Bruno Haible.
39558
39559 2007-07-23  Ben Pfaff  <blp@gnu.org>
39560
39561         * lib/popcount.h: Use verify_true instead of if...abort.
39562         * modules/popcount: Depend on verify module.
39563         Suggested by Jim Meyering.
39564
39565 2007-07-23  Bruno Haible  <bruno@clisp.org>
39566
39567         * gnulib-tool (func_import): Create a .cvsignore file also when the
39568         directory is not yet in CVS but the toplevel directory is. When
39569         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
39570         Reported by Karl Berry.
39571
39572 2007-07-22  Ben Pfaff  <blp@gnu.org>
39573
39574         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
39575         case.
39576         Suggested by Eric Blake.
39577
39578 2007-07-22  Ben Pfaff  <blp@gnu.org>
39579
39580         New module: popcount.
39581         * MODULES.html.sh: Add popcount.
39582         * modules/popcount: New file.
39583         * modules/popcount-tests: New file.
39584         * tests/test-popcount.c: New file.
39585         * lib/popcount.h: New file.
39586         * m4/popcount.m4: New file.
39587
39588 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
39589
39590         * build-aux/announce-gen: Update to GPLv3.
39591
39592         * build-aux/config.guess: Update from config.
39593
39594 2007-07-21  Bruno Haible  <bruno@clisp.org>
39595
39596         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
39597         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
39598
39599 2007-07-20  Jim Meyering  <jim@meyering.net>
39600
39601         * check-module: Diagnose a self-dependency.
39602
39603 2007-07-19  Bruno Haible  <bruno@clisp.org>
39604
39605         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
39606         empty.
39607         Reported by Eric Blake.
39608
39609 2007-07-18  Bruno Haible  <bruno@clisp.org>
39610
39611         * gnulib-tool: New options --po-base, --po-domain.
39612         (func_usage): Document them.
39613         (pobase, po_domain): New variables.
39614         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
39615         DEFAULT_TEXT_DOMAIN.
39616         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
39617         (func_import): Consider pobase and po_domain. Create a po/ directory.
39618         (func_create_testdir): Set pobase and po_domain to empty.
39619         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
39620         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
39621
39622 2007-07-18  Bruno Haible  <bruno@clisp.org>
39623
39624         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39625         EXTRA_DIST augmentation for files in build-aux/.
39626
39627 2007-07-16  Bruno Haible  <bruno@clisp.org>
39628
39629         * modules/lseek (License): Use the synonymous term "LGPLv2+".
39630         * modules/getdelim (License): Likewise.
39631
39632 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39633
39634         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
39635         * modules/d-type (License): Likewise.
39636         * modules/extensions (License): Likewise.
39637         * modules/fnmatch (License): Likewise.
39638         * modules/fseeko (License): Likewise.
39639         * modules/getaddrinfo (License): Likewise.
39640         * modules/getline (License): Likewise.
39641         * modules/getlogin_r (License): Likewise.
39642         * modules/getpass (License): Likewise.
39643         * modules/gettimeofday (License): Likewise.
39644         * modules/glob (License): Likewise.
39645         * modules/inet_ntop (License): Likewise.
39646         * modules/malloc (License): Likewise.
39647         * modules/malloca (License): Likewise.
39648         * modules/memmem (License): Likewise.
39649         * modules/mempcpy (License): Likewise.
39650         * modules/memset (License): Likewise.
39651         * modules/minmax (License): Likewise.
39652         * modules/mktime (License): Likewise.
39653         * modules/netinet_in (License): Likewise.
39654         * modules/pathmax (License): Likewise.
39655         * modules/poll (License): Likewise.
39656         * modules/regex (License): Likewise.
39657         * modules/snprintf (License): Likewise.
39658         * modules/stdbool (License): Likewise.
39659         * modules/stdint (License): Likewise.
39660         * modules/stdio (License): Likewise.
39661         * modules/strcase (License): Likewise.
39662         * modules/strcasestr (License): Likewise.
39663         * modules/strdup (License): Likewise.
39664         * modules/string (License): Likewise.
39665         * modules/strndup (License): Likewise.
39666         * modules/strnlen (License): Likewise.
39667         * modules/strpbrk (License): Likewise.
39668         * modules/strptime (License): Likewise.
39669         * modules/strsep (License): Likewise.
39670         * modules/sys_select (License): Likewise.
39671         * modules/sys_socket (License): Likewise.
39672         * modules/sys_stat (License): Likewise.
39673         * modules/sys_time (License): Likewise.
39674         * modules/time (License): Likewise.
39675         * modules/time_r (License): Likewise.
39676         * modules/timegm (License): Likewise.
39677         * modules/unistd (License): Likewise.
39678         * modules/vsnprintf (License): Likewise.
39679         * modules/wctype (License): Likewise.
39680
39681 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39682
39683         * modules/argz (License): LGPLv2+.
39684
39685 2007-07-15  Karl Berry  <karl@gnu.org>
39686
39687         * doc/gnulib.texi: revise node structure per new fdl.texi.
39688
39689 2007-07-14  Bruno Haible  <bruno@clisp.org>
39690
39691         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
39692         the output file.
39693         * lib/uniname/uninames.h: Regenerated.
39694
39695 2007-07-14  Karl Berry  <karl@gnu.org>
39696
39697         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
39698         omitting sectioning and index commands.
39699
39700 2007-07-13  Bruno Haible  <bruno@clisp.org>
39701
39702         New gnulib-tool option --more-symlinks.
39703         * gnulib-tool (func_usage): Document --more-symlinks.
39704         (do_copyrights): New variable.
39705         Recognize option --more-symlinks.
39706         (func_import): Don't add a copyright notice transform to
39707         sed_transform_lib_file if do_copyrights is empty.
39708
39709 2007-07-13  Bruno Haible  <bruno@clisp.org>
39710
39711         * lib/vasnprintf.c (decimal_point_char): Define also if
39712         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
39713         && !NEED_PRINTF_DIRECTIVE_A.
39714         Reported by Clemens Koller <clemens.koller@anagramm.de> via
39715         Gary V. Vaughan <gary@gnu.org>.
39716
39717 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
39718
39719         * lib/inttypes_.h: Undo previous change, since it was fixed
39720         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
39721
39722 2007-07-13  Bruno Haible  <bruno@clisp.org>
39723
39724         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
39725         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
39726
39727 2007-07-13  Jim Meyering  <jim@meyering.net>
39728
39729         df: Don't fail for Tru64's "file-on-file mount".
39730         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
39731         so we fall through and use statfs instead.  Details here:
39732         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
39733         Reported by Albert Chin.
39734
39735 2007-07-13  Bruno Haible  <bruno@clisp.org>
39736
39737         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
39738         * modules/configmake (License): Likewise.
39739         * modules/gettext (License): Likewise.
39740         * modules/gettext-h (License): Likewise.
39741         * modules/include_next (License): Likewise.
39742         * modules/link-warning (License): Likewise.
39743         * modules/localcharset (License): Likewise.
39744         * modules/localename (License): Likewise.
39745         * modules/lock (License): Likewise.
39746         * modules/relocatable-lib-lgpl (License): Likewise.
39747         * modules/size_max (License): Likewise.
39748         * modules/vasnprintf (License): Likewise.
39749         * modules/wchar (License): Likewise.
39750         * modules/xsize (License): Likewise.
39751
39752 2007-07-13  Bruno Haible  <bruno@clisp.org>
39753
39754         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
39755         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
39756
39757 2007-07-12  Bruno Haible  <bruno@clisp.org>
39758
39759         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
39760         in the modules files.
39761
39762 2007-07-11  Karl Berry  <karl@gnu.org>
39763
39764         * MODULES.html.sh (func_module): use
39765          sed -e '\|^'"${includefile}"'$|d'
39766          instead of /.../d, to avoid errors on $includefile's containing /.
39767
39768 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39769
39770         * gnulib-tool (func_import): Avoid duplication of --avoid
39771         statements
39772         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
39773         names to `_' in variable names.
39774
39775 2007-07-10  Eric Blake  <ebb9@byu.net>
39776
39777         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
39778         * NEWS: Document this change.
39779
39780 2007-07-08  Bruno Haible  <bruno@clisp.org>
39781
39782         Update to Unicode 5.0.
39783         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
39784         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
39785         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
39786         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
39787         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
39788         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
39789         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
39790         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
39791         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
39792         U+10A3F, U+1D242..U+1D244.
39793         (nonspacing_table_ind): Update.
39794         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
39795         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
39796
39797 2007-07-08  Bruno Haible  <bruno@clisp.org>
39798
39799         Update to Unicode 5.0.
39800         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
39801         code transform. Extend the name index field of unicode_name_to_code and
39802         unicode_code_to_name from 16 to 24 bits.
39803         * lib/uniname/uniname.c (unicode_character_name,
39804         unicode_name_character): Add the range 0x12xxx to the code transform.
39805         * lib/uniname/uninames.h: Regenerated.
39806         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
39807
39808 2007-07-07  Bruno Haible  <bruno@clisp.org>
39809
39810         * modules/wcwidth-tests: New file.
39811         * tests/test-wcwidth.c: New file.
39812
39813         Work around MacOS X wcwidth() bug.
39814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
39815         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
39816         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
39817         original wcwidth in non-UTF-8 locales.
39818         * modules/wcwidth (Depends-on): Add localcharset, streq,
39819         uniwidth/width.
39820         * doc/functions/wcwidth.texi: Update.
39821
39822 2007-07-07  Bruno Haible  <bruno@clisp.org>
39823
39824         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
39825         (wcwidth): New declaration.
39826         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
39827         macros.
39828         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
39829         here. Prepare for creating <wchar.h> unconditionally.
39830         * modules/wchar (Depends-on): Add link-warning.
39831         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
39832         REPLACE_WCWIDTH, and GL_LINK_WARNING.
39833         * lib/wcwidth.h: Remove file.
39834         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
39835         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
39836         * modules/wcwidth (Files): Remove lib/wcwidth.h.
39837         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
39838         (Include): Replace wcwidth.h with <wchar.h>.
39839         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
39840         * lib/mbchar.h: Don't include wcwidth.h.
39841         * lib/mbswidth.c: Likewise.
39842         * NEWS: Mention the change.
39843
39844 2007-07-07  Bruno Haible  <bruno@clisp.org>
39845
39846         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
39847         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
39848         definition with an external declaration.
39849         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
39850         defined as a function. Remove AC_C_INLINE requirement.
39851         * modules/wcwidth (Files): Add lib/wcwidth.c.
39852         (Makefile.am): Remove redundant statement.
39853
39854 2007-07-07  Bruno Haible  <bruno@clisp.org>
39855
39856         * MODULES.html.sh (Unicode string functions): Add the new modules.
39857
39858         * tests/uniwidth/test-u32-strwidth.c: New file.
39859         * modules/uniwidth/u32-strwidth-tests: New file.
39860
39861         * lib/uniwidth/u32-strwidth.c: New file.
39862         * modules/uniwidth/u32-strwidth: New file.
39863
39864         * tests/uniwidth/test-u16-strwidth.c: New file.
39865         * modules/uniwidth/u16-strwidth-tests: New file.
39866
39867         * lib/uniwidth/u16-strwidth.c: New file.
39868         * modules/uniwidth/u16-strwidth: New file.
39869
39870         * tests/uniwidth/test-u8-strwidth.c: New file.
39871         * modules/uniwidth/u8-strwidth-tests: New file.
39872
39873         * lib/uniwidth/u8-strwidth.c: New file.
39874         * modules/uniwidth/u8-strwidth: New file.
39875
39876         * tests/uniwidth/test-u32-width.c: New file.
39877         * modules/uniwidth/u32-width-tests: New file.
39878
39879         * lib/uniwidth/u32-width.c: New file.
39880         * modules/uniwidth/u32-width: New file.
39881
39882         * tests/uniwidth/test-u16-width.c: New file.
39883         * modules/uniwidth/u16-width-tests: New file.
39884
39885         * lib/uniwidth/u16-width.c: New file.
39886         * modules/uniwidth/u16-width: New file.
39887
39888         * tests/uniwidth/test-u8-width.c: New file.
39889         * modules/uniwidth/u8-width-tests: New file.
39890
39891         * lib/uniwidth/u8-width.c: New file.
39892         * modules/uniwidth/u8-width: New file.
39893
39894         * tests/uniwidth/test-uc_width.c: New file.
39895         * modules/uniwidth/width-tests: New file.
39896
39897         * lib/uniwidth/width.c: New file, from GNU libiconv.
39898         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
39899         * modules/uniwidth/width: New file.
39900
39901         * lib/uniwidth.h: New file, from GNU libiconv.
39902         * modules/uniwidth/base: New file.
39903
39904 2007-07-07  Bruno Haible  <bruno@clisp.org>
39905
39906         * lib/uniname.h: New file, from GNU gettext.
39907         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
39908         * lib/uniname/uninames.h: New file, from GNU gettext.
39909         * lib/uniname/uniname.c: New file, from GNU gettext.
39910         * tests/uniname/test-uninames.sh: New file.
39911         * tests/uniname/test-uninames.c: New file, from GNU gettext.
39912         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
39913         * modules/uniname/base: New file.
39914         * modules/uniname/uniname: New file.
39915         * modules/uniname/uniname-tests: New file.
39916         * MODULES.html.sh (Unicode string functions): Add the new modules.
39917
39918 2007-07-06  Bruno Haible  <bruno@clisp.org>
39919
39920         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
39921
39922 2007-07-06  Bruno Haible  <bruno@clisp.org>
39923
39924         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
39925         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
39926         includes <cygwin/sys_time.h> which includes <sys/select.h> which
39927         include <sys/time.h>.
39928         Reported by Eric Blake.
39929
39930 2007-07-06  Eric Blake  <ebb9@byu.net>
39931
39932         Fix testing canonicalize on cygwin.
39933         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
39934         Revert patch from 2007-06-19.
39935         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
39936         canonicalize module is also in use.
39937         * tests/test-canonicalize.c: New file.
39938         * tests/test-canonicalize.sh: Likewise.
39939         * modules/canonicalize-tests: Likewise.
39940
39941 2007-07-06  Jim Meyering  <jim@meyering.net>
39942
39943         * lib/getugroups.c (getugroups): Detect getgrent failure.
39944         Adjust comment to reflect reality: this function may return -1.
39945
39946 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
39947
39948         * build-aux/bootstrap (TP_URL,get_translations): Update to use
39949         the new TP address.
39950         (usage): Fix typo
39951         (gnulib_mk): New variable.
39952
39953 2007-07-05  Jim Meyering  <jim@meyering.net>
39954
39955         Don't let endgrent clobber errno, no matter how improbable.
39956         * lib/getugroups.c (getugroups): Save and restore errno around
39957         endgrent call.
39958
39959         Close the group DB even when failing with 2^31 or more members.
39960         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
39961
39962 2007-07-04  Jim Meyering  <jim@meyering.net>
39963
39964         * lib/getugroups.h: New file.
39965         * lib/getugroups.c: Include "getugroups.h".
39966         Remove uses of "register" keyword.
39967         Move local variable, "cp", down into scope where used.
39968         Give "username" parameter the "const" attribute.
39969         * modules/getugroups (Files): Add lib/getugroups.h
39970
39971 2007-07-04  Karl Berry  <karl@gnu.org>
39972
39973         * MODULES.html.sh (func_all_modules): Complete rename of
39974         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
39975
39976 2007-07-02  Bruno Haible  <bruno@clisp.org>
39977
39978         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
39979         mode, when inttypes.h comes from gnulib.
39980         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39981
39982 2007-07-02  Simon Josefsson  <simon@josefsson.org>
39983
39984         * NEWS: Mention lgpl module name change.
39985
39986         * modules/lgpl-2.1: Renamed from lgpl.
39987
39988         * NEWS: Mention gpl module name change.
39989
39990         * modules/gpl-3.0: New file, based on gpl-2.0.
39991
39992         * modules/gpl-2.0: Renamed from gpl.
39993
39994         * modules/gpl: Fix filename, doc/gpl.texi is now found at
39995         doc/gpl-2.0.texi.
39996
39997 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39998
39999         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
40000         #define __STDC_LIMIT_MACROS temporarily while including
40001         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
40002         Problem reported by Joel E. Denny in
40003         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
40004
40005 2007-07-01  Bruno Haible  <bruno@clisp.org>
40006
40007         * lib/unistdio.h: New file.
40008         * lib/unistdio/u-asnprintf.h: New file.
40009         * lib/unistdio/u-asprintf.h: New file.
40010         * lib/unistdio/u-printf-args.c: New file.
40011         * lib/unistdio/u-printf-args.h: New file.
40012         * lib/unistdio/u-printf-parse.h: New file.
40013         * lib/unistdio/u-snprintf.h: New file.
40014         * lib/unistdio/u-sprintf.h: New file.
40015         * lib/unistdio/u-vasprintf.h: New file.
40016         * lib/unistdio/u-vsnprintf.h: New file.
40017         * lib/unistdio/u-vsprintf.h: New file.
40018         * lib/unistdio/ulc-asnprintf.c: New file.
40019         * lib/unistdio/ulc-asprintf.c: New file.
40020         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
40021         * lib/unistdio/ulc-printf-parse.c: New file.
40022         * lib/unistdio/ulc-snprintf.c: New file.
40023         * lib/unistdio/ulc-sprintf.c: New file.
40024         * lib/unistdio/ulc-vasnprintf.c: New file.
40025         * lib/unistdio/ulc-vasprintf.c: New file.
40026         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
40027         * lib/unistdio/ulc-vsnprintf.c: New file.
40028         * lib/unistdio/ulc-vsprintf.c: New file.
40029         * lib/unistdio/u8-asnprintf.c: New file.
40030         * lib/unistdio/u8-asprintf.c: New file.
40031         * lib/unistdio/u8-printf-parse.c: New file.
40032         * lib/unistdio/u8-snprintf.c: New file.
40033         * lib/unistdio/u8-sprintf.c: New file.
40034         * lib/unistdio/u8-vasnprintf.c: New file.
40035         * lib/unistdio/u8-vasprintf.c: New file.
40036         * lib/unistdio/u8-vsnprintf.c: New file.
40037         * lib/unistdio/u8-vsprintf.c: New file.
40038         * lib/unistdio/u8-u8-asnprintf.c: New file.
40039         * lib/unistdio/u8-u8-asprintf.c: New file.
40040         * lib/unistdio/u8-u8-snprintf.c: New file.
40041         * lib/unistdio/u8-u8-sprintf.c: New file.
40042         * lib/unistdio/u8-u8-vasnprintf.c: New file.
40043         * lib/unistdio/u8-u8-vasprintf.c: New file.
40044         * lib/unistdio/u8-u8-vsnprintf.c: New file.
40045         * lib/unistdio/u8-u8-vsprintf.c: New file.
40046         * lib/unistdio/u16-asnprintf.c: New file.
40047         * lib/unistdio/u16-asprintf.c: New file.
40048         * lib/unistdio/u16-printf-parse.c: New file.
40049         * lib/unistdio/u16-snprintf.c: New file.
40050         * lib/unistdio/u16-sprintf.c: New file.
40051         * lib/unistdio/u16-vasnprintf.c: New file.
40052         * lib/unistdio/u16-vasprintf.c: New file.
40053         * lib/unistdio/u16-vsnprintf.c: New file.
40054         * lib/unistdio/u16-vsprintf.c: New file.
40055         * lib/unistdio/u16-u16-asnprintf.c: New file.
40056         * lib/unistdio/u16-u16-asprintf.c: New file.
40057         * lib/unistdio/u16-u16-snprintf.c: New file.
40058         * lib/unistdio/u16-u16-sprintf.c: New file.
40059         * lib/unistdio/u16-u16-vasnprintf.c: New file.
40060         * lib/unistdio/u16-u16-vasprintf.c: New file.
40061         * lib/unistdio/u16-u16-vsnprintf.c: New file.
40062         * lib/unistdio/u16-u16-vsprintf.c: New file.
40063         * lib/unistdio/u32-asnprintf.c: New file.
40064         * lib/unistdio/u32-asprintf.c: New file.
40065         * lib/unistdio/u32-printf-parse.c: New file.
40066         * lib/unistdio/u32-snprintf.c: New file.
40067         * lib/unistdio/u32-sprintf.c: New file.
40068         * lib/unistdio/u32-vasnprintf.c: New file.
40069         * lib/unistdio/u32-vasprintf.c: New file.
40070         * lib/unistdio/u32-vsnprintf.c: New file.
40071         * lib/unistdio/u32-vsprintf.c: New file.
40072         * lib/unistdio/u32-u32-asnprintf.c: New file.
40073         * lib/unistdio/u32-u32-asprintf.c: New file.
40074         * lib/unistdio/u32-u32-snprintf.c: New file.
40075         * lib/unistdio/u32-u32-sprintf.c: New file.
40076         * lib/unistdio/u32-u32-vasnprintf.c: New file.
40077         * lib/unistdio/u32-u32-vasprintf.c: New file.
40078         * lib/unistdio/u32-u32-vsnprintf.c: New file.
40079         * lib/unistdio/u32-u32-vsprintf.c: New file.
40080         * tests/unistdio/test-ulc-asnprintf1.c: New file.
40081         * tests/unistdio/test-ulc-asnprintf1.h: New file.
40082         * tests/unistdio/test-ulc-printf1.h: New file.
40083         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
40084         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
40085         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
40086         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
40087         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
40088         * tests/unistdio/test-ulc-vasprintf1.c: New file.
40089         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
40090         * tests/unistdio/test-ulc-vsprintf1.c: New file.
40091         * tests/unistdio/test-u8-asnprintf1.c: New file.
40092         * tests/unistdio/test-u8-asnprintf1.h: New file.
40093         * tests/unistdio/test-u8-printf1.h: New file.
40094         * tests/unistdio/test-u8-vasnprintf1.c: New file.
40095         * tests/unistdio/test-u8-vasnprintf2.c: New file.
40096         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
40097         * tests/unistdio/test-u8-vasnprintf3.c: New file.
40098         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
40099         * tests/unistdio/test-u8-vasprintf1.c: New file.
40100         * tests/unistdio/test-u8-vsnprintf1.c: New file.
40101         * tests/unistdio/test-u8-vsprintf1.c: New file.
40102         * tests/unistdio/test-u16-asnprintf1.c: New file.
40103         * tests/unistdio/test-u16-asnprintf1.h: New file.
40104         * tests/unistdio/test-u16-printf1.h: New file.
40105         * tests/unistdio/test-u16-vasnprintf1.c: New file.
40106         * tests/unistdio/test-u16-vasnprintf2.c: New file.
40107         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
40108         * tests/unistdio/test-u16-vasnprintf3.c: New file.
40109         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
40110         * tests/unistdio/test-u16-vasprintf1.c: New file.
40111         * tests/unistdio/test-u16-vsnprintf1.c: New file.
40112         * tests/unistdio/test-u16-vsprintf1.c: New file.
40113         * tests/unistdio/test-u32-asnprintf1.c: New file.
40114         * tests/unistdio/test-u32-asnprintf1.h: New file.
40115         * tests/unistdio/test-u32-printf1.h: New file.
40116         * tests/unistdio/test-u32-vasnprintf1.c: New file.
40117         * tests/unistdio/test-u32-vasnprintf2.c: New file.
40118         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
40119         * tests/unistdio/test-u32-vasnprintf3.c: New file.
40120         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
40121         * tests/unistdio/test-u32-vasprintf1.c: New file.
40122         * tests/unistdio/test-u32-vsnprintf1.c: New file.
40123         * tests/unistdio/test-u32-vsprintf1.c: New file.
40124         * modules/unistdio/base: New file.
40125         * modules/unistdio/u-printf-args: New file.
40126         * modules/unistdio/ulc-asnprintf: New file.
40127         * modules/unistdio/ulc-asprintf: New file.
40128         * modules/unistdio/ulc-fprintf: New file.
40129         * modules/unistdio/ulc-printf-parse: New file.
40130         * modules/unistdio/ulc-snprintf: New file.
40131         * modules/unistdio/ulc-sprintf: New file.
40132         * modules/unistdio/ulc-vasnprintf: New file.
40133         * modules/unistdio/ulc-vasprintf: New file.
40134         * modules/unistdio/ulc-vfprintf: New file.
40135         * modules/unistdio/ulc-vsnprintf: New file.
40136         * modules/unistdio/ulc-vsprintf: New file.
40137         * modules/unistdio/u8-asnprintf: New file.
40138         * modules/unistdio/u8-asprintf: New file.
40139         * modules/unistdio/u8-printf-parse: New file.
40140         * modules/unistdio/u8-snprintf: New file.
40141         * modules/unistdio/u8-sprintf: New file.
40142         * modules/unistdio/u8-vasnprintf: New file.
40143         * modules/unistdio/u8-vasprintf: New file.
40144         * modules/unistdio/u8-vsnprintf: New file.
40145         * modules/unistdio/u8-vsprintf: New file.
40146         * modules/unistdio/u8-u8-asnprintf: New file.
40147         * modules/unistdio/u8-u8-asprintf: New file.
40148         * modules/unistdio/u8-u8-snprintf: New file.
40149         * modules/unistdio/u8-u8-sprintf: New file.
40150         * modules/unistdio/u8-u8-vasnprintf: New file.
40151         * modules/unistdio/u8-u8-vasprintf: New file.
40152         * modules/unistdio/u8-u8-vsnprintf: New file.
40153         * modules/unistdio/u8-u8-vsprintf: New file.
40154         * modules/unistdio/u16-asnprintf: New file.
40155         * modules/unistdio/u16-asprintf: New file.
40156         * modules/unistdio/u16-printf-parse: New file.
40157         * modules/unistdio/u16-snprintf: New file.
40158         * modules/unistdio/u16-sprintf: New file.
40159         * modules/unistdio/u16-vasnprintf: New file.
40160         * modules/unistdio/u16-vasprintf: New file.
40161         * modules/unistdio/u16-vsnprintf: New file.
40162         * modules/unistdio/u16-vsprintf: New file.
40163         * modules/unistdio/u16-u16-asnprintf: New file.
40164         * modules/unistdio/u16-u16-asprintf: New file.
40165         * modules/unistdio/u16-u16-snprintf: New file.
40166         * modules/unistdio/u16-u16-sprintf: New file.
40167         * modules/unistdio/u16-u16-vasnprintf: New file.
40168         * modules/unistdio/u16-u16-vasprintf: New file.
40169         * modules/unistdio/u16-u16-vsnprintf: New file.
40170         * modules/unistdio/u16-u16-vsprintf: New file.
40171         * modules/unistdio/u32-asnprintf: New file.
40172         * modules/unistdio/u32-asprintf: New file.
40173         * modules/unistdio/u32-printf-parse: New file.
40174         * modules/unistdio/u32-snprintf: New file.
40175         * modules/unistdio/u32-sprintf: New file.
40176         * modules/unistdio/u32-vasnprintf: New file.
40177         * modules/unistdio/u32-vasprintf: New file.
40178         * modules/unistdio/u32-vsnprintf: New file.
40179         * modules/unistdio/u32-vsprintf: New file.
40180         * modules/unistdio/u32-u32-asnprintf: New file.
40181         * modules/unistdio/u32-u32-asprintf: New file.
40182         * modules/unistdio/u32-u32-snprintf: New file.
40183         * modules/unistdio/u32-u32-sprintf: New file.
40184         * modules/unistdio/u32-u32-vasnprintf: New file.
40185         * modules/unistdio/u32-u32-vasprintf: New file.
40186         * modules/unistdio/u32-u32-vsnprintf: New file.
40187         * modules/unistdio/u32-u32-vsprintf: New file.
40188         * modules/unistdio/ulc-asnprintf-tests: New file.
40189         * modules/unistdio/ulc-vasnprintf-tests: New file.
40190         * modules/unistdio/ulc-vasprintf-tests: New file.
40191         * modules/unistdio/ulc-vsnprintf-tests: New file.
40192         * modules/unistdio/ulc-vsprintf-tests: New file.
40193         * modules/unistdio/u8-asnprintf-tests: New file.
40194         * modules/unistdio/u8-vasnprintf-tests: New file.
40195         * modules/unistdio/u8-vasprintf-tests: New file.
40196         * modules/unistdio/u8-vsnprintf-tests: New file.
40197         * modules/unistdio/u8-vsprintf-tests: New file.
40198         * modules/unistdio/u16-asnprintf-tests: New file.
40199         * modules/unistdio/u16-vasnprintf-tests: New file.
40200         * modules/unistdio/u16-vasprintf-tests: New file.
40201         * modules/unistdio/u16-vsnprintf-tests: New file.
40202         * modules/unistdio/u16-vsprintf-tests: New file.
40203         * modules/unistdio/u32-asnprintf-tests: New file.
40204         * modules/unistdio/u32-vasnprintf-tests: New file.
40205         * modules/unistdio/u32-vasprintf-tests: New file.
40206         * modules/unistdio/u32-vsnprintf-tests: New file.
40207         * modules/unistdio/u32-vsprintf-tests: New file.
40208         * MODULES.html.sh (Unicode string functions): Add the new modules.
40209
40210 2007-07-01  Bruno Haible  <bruno@clisp.org>
40211
40212         * lib/sprintf.c (sprintf): Limit the available length estimation,
40213         to avoid address wraparound.
40214         * lib/vsprintf.c (vsprintf): Likewise.
40215         * modules/sprintf-posix (Dependencies): Add stdint.
40216         * modules/vsprintf-posix (Dependencies): Likewise.
40217
40218 2007-07-01  Bruno Haible  <bruno@clisp.org>
40219
40220         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
40221         Windows PATH as well. Conservative double-quoting. Comments.
40222
40223 2007-07-01  Bruno Haible  <bruno@clisp.org>
40224             Eric Blake  <ebb9@byu.net>
40225             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40226
40227         * gnulib-tool (self_abspathname): Fix algorithm to cope with
40228         empty components in $PATH, denoting '.'.
40229
40230 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40231
40232         * gnulib-tool: Fix indentation.
40233         (func_create_megatestdir): Likewise.
40234         Report by Bruno Haible.
40235
40236 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40237
40238         Sync from Automake.
40239         * build-aux/gnupload: Fix shell portability issues with for loops.
40240         Report by Karl Berry.
40241
40242 2007-06-29  Simon Josefsson  <simon@josefsson.org>
40243
40244         * build-aux/maint.mk (POURL): Use translationproject.org.
40245
40246 2007-06-27  Simon Josefsson  <simon@josefsson.org>
40247             Bruno Haible  <bruno@clisp.org>
40248
40249         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
40250         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
40251         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
40252         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
40253         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
40254
40255 2007-06-27  Bruno Haible  <bruno@clisp.org>
40256
40257         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
40258         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
40259
40260 2007-06-26  Karl Berry  <karl@gnu.org>
40261
40262         * MODULES.html.sh: remove xreadlink-with-size.
40263
40264 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40265
40266         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
40267         method that I hope also handles the double-include problem noted
40268         by Bruno Haible in
40269         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
40270
40271 2007-06-23  Bruno Haible  <bruno@clisp.org>
40272
40273         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40274         Don't let the 'mostlyclean' target fail if the last subdirectory could
40275         not be removed.
40276         Reported by Karl Berry.
40277
40278 2007-06-23  Bruno Haible  <bruno@clisp.org>
40279
40280         * gnulib-tool (echo): Add a speedier workaround for ksh.
40281         * tests/test-echo.sh: Likewise.
40282
40283 2007-06-23  Bruno Haible  <bruno@clisp.org>
40284
40285         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
40286         * tests/test-echo.sh: Likewise.
40287
40288 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40289
40290         * gnulib-tool (IFS): Initialize early, so we don't set it to
40291         empty later.
40292         (self_abspathname): Rewrite algorithm to set it, reindent.
40293         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
40294         (func_create_megatestdir): Merge some sed scripts.
40295
40296 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40297
40298         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
40299         exposed by Sun Studio 11 cc on Solaris 8.
40300
40301 2007-06-22  Bruno Haible  <bruno@clisp.org>
40302
40303         * gnulib-tool (echo): Ensure the echo primitive does not interpret
40304         backslashes.
40305         * tests/test-echo.sh: New file.
40306
40307 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40308
40309         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
40310         simplify `sed_replace_build_aux' scripts, they are portable but
40311         echoing them with `echo' is not.
40312         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
40313
40314 2007-06-21  Karl Berry  <karl@gnu.org>
40315
40316         * config/srclist.txt: guess we can't handle the licenses via
40317         srclist at the moment.
40318
40319 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
40320
40321         * MODULES.html.sh: Add include_next.
40322         * modules/include_next: New file.
40323
40324 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
40325
40326         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
40327         INCLUDE_NEXT.
40328         (gl_CHECK_NEXT_HEADERS): New macro.
40329         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
40330         the obsolescent gl_ABSOLUTE_HEADER.
40331         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
40332         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
40333         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
40334         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40335         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
40336         * m4/math_h.m4 (gl_MATH_H): Likewise.
40337         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40338         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40339         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
40340         * m4/stdint.m4 (gl_STDINT_H): Likewise.
40341         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
40342         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
40343         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
40344         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40345         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40346         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
40347         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40348         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40349         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
40350         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
40351         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40352         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40353         * m4/inttypes.m4 (gl_INTTYPES_H): Define
40354         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
40355         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
40356         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
40357         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
40358         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
40359         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
40360         * lib/float_.h: Likewise.
40361         * lib/inttypes_.h: Likewise.
40362         * lib/math_.h: Likewise.
40363         * lib/search_.h: Likewise.
40364         * lib/signal_.h: Likewise.
40365         * lib/stdint_.h: Likewise.
40366         * lib/stdio_.h: Likewise.
40367         * lib/stdlib_.h: Likewise.
40368         * lib/string_.h: Likewise.
40369         * lib/sys_stat_.h: Likewise.
40370         * lib/sys_time_.h: Likewise.
40371         * lib/time_.h: Likewise.
40372         * lib/unistd_.h: Likewise.
40373         * lib/wchar_.h: Likewise.
40374         * lib/wctype_.h: Likewise.
40375         * lib/dirent_.h: Likewise.
40376         * lib/iconv_.h: Likewise.
40377         * lib/locale_.h: Likewise.
40378         * lib/netinet_in_.h: Likewise.
40379         * lib/sys_select_.h: Likewise.
40380         * lib/sys_socket_.h: Likewise.
40381         * lib/sysexits_.h: Likewise.
40382         * modules/fcntl (Depends-on): Depend on include_next, not
40383         absolute_header.
40384         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
40385         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
40386         * modules/fchdir: Likewise.
40387         * modules/float: Likewise.
40388         * modules/iconv_open: Likewise.
40389         * modules/inttypes: Likewise.
40390         * modules/locale: Likewise.
40391         * modules/math: Likewise.
40392         * modules/netinet_in: Likewise.
40393         * modules/search: Likewise.
40394         * modules/signal: Likewise.
40395         * modules/stdint: Likewise.
40396         * modules/stdio: Likewise.
40397         * modules/stdlib: Likewise.
40398         * modules/string: Likewise.
40399         * modules/sys_select: Likewise.
40400         * modules/sys_socket: Likewise.
40401         * modules/sys_stat: Likewise.
40402         * modules/sys_time: Likewise.
40403         * modules/sysexits: Likewise.
40404         * modules/time: Likewise.
40405         * modules/unistd: Likewise.
40406         * modules/wchar: Likewise.
40407         * modules/wctype: Likewise.
40408         * modules/sys_stat: Change maintainer to "all".
40409         * modules/unistd: Likewise.
40410
40411 2007-06-20  Karl Berry  <karl@gnu.org>
40412
40413         * config/srclist.txt: track www changes in license files.
40414
40415 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
40416
40417         * build-aux/bootstrap: Remove stray dot.
40418         Make sure build_aux settings are honored when linking
40419         gnulib_extra_files.
40420
40421 2007-06-19  Eric Blake  <ebb9@byu.net>
40422
40423         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40424         Allow compilation on cygwin.
40425
40426 2007-06-19  Jim Meyering  <jim@meyering.net>
40427
40428         xreadlink-with-size: Remove module.  No longer used.
40429         Ex-callers now use xreadlink or mreadlink-with-size.
40430         * modules/xreadlink-with-size: Remove module.
40431         * lib/xreadlink-with-size.c: Remove file.
40432         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
40433         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
40434         just before the function definition *is* accurate.
40435
40436         Eliminate one way canonicalize_filename_mode could exit.
40437         * lib/canonicalize.c (canonicalize_filename_mode):
40438         Use mreadlink_with_size, not xreadlink_with_size.
40439
40440 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
40441
40442         Detect porting problems to FreeBSD/arm, which has time_t wider than
40443         long int.  Original problem reported for GNU diff by Xin Li in
40444         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
40445         * modules/getdate (Depends-on): Add intprops, verify.
40446         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
40447         is an integer type no wider than long int.
40448
40449 2007-06-18  Jim Meyering  <jim@meyering.net>
40450
40451         New module: mreadlink-with-size.
40452         * MODULES.html.sh: Add mreadlink-with-size.
40453         * modules/mreadlink-with-size: New module
40454         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
40455         not xreadlink-with-size.
40456         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
40457
40458 2007-06-16  Bruno Haible  <bruno@clisp.org>
40459
40460         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
40461         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
40462         Reported by Gary V. Vaughan <gary@gnu.org>.
40463
40464 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
40465
40466         Revamp lchown so that it lives in unistd.h where it belongs.
40467         * lib/lchown.h: Remove.
40468         * lib/dirchownmod.c: Don't include lib/lchown.h.
40469         * lib/fchownat.c: Likewise.
40470         * lib/openat.c: Likewise.
40471         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
40472         does not follow symlinks.
40473         (EOPNOTSUPP): Define if not defined.
40474         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
40475         is defined to 0.
40476         (lchown): New decl.
40477         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
40478         Do not check for lchown decl.
40479         Set REPLACE_LCHOWN.
40480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
40481         REPLACE_LCHOWN.
40482         * modules/chown: Make it clear it follows symlinks.
40483         * modules/lchown: Make it clear it doesn't follow symlinks.
40484         (Files): Remove lib/lchown.h
40485         (Depends-on): Add unistd.
40486         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
40487         (Include): Include <unistd.h>, not "lchown.h".
40488         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
40489         REPLACE_LCHOWN.
40490
40491 2007-06-15  Jim Meyering  <jim@meyering.net>
40492
40493         Change license (GPL to LGPL) of fsusage and dependents.
40494         * modules/fsusage (License): Change to LGPL.
40495         * modules/full-read (License): Likewise.
40496         * modules/full-write (License): Likewise.
40497         * modules/safe-read (License): Likewise.
40498         * modules/safe-write (License): Likewise.
40499
40500 2007-06-14  Ben Pfaff  <blp@gnu.org>
40501
40502         Missing part of allocsa -> malloca transition.
40503         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
40504         gl_MALLOCA.
40505
40506 2007-06-12  Bruno Haible  <bruno@clisp.org>
40507
40508         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
40509         to ia64, x86_64, i386.
40510         Reported by Eric Blake.
40511
40512 2007-06-12  Bruno Haible  <bruno@clisp.org>
40513
40514         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
40515         cross-compiling to x86_64.
40516
40517 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
40518
40519         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
40520         glitch reported by Ralf Wildenhues in
40521         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
40522
40523         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
40524         Vin Shelton.
40525
40526 2007-06-11  Bruno Haible  <bruno@clisp.org>
40527
40528         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
40529         replacement string.
40530         Reported by Eric Blake.
40531
40532 2007-06-10  Bruno Haible  <bruno@clisp.org>
40533
40534         Prepare vasnprintf code for use with Unicode strings.
40535         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
40536         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
40537         TYPE_U32_STRING.
40538         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
40539         a_u32_string variants.
40540         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40541         * lib/printf-args.c: Don't include config.h and the specification
40542         header if PRINTF_FETCHARGS is already defined.
40543         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40544         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
40545         TYPE_U16_STRING, TYPE_U32_STRING.
40546         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
40547         u16_directive, u16_directives, u32_directive, u32_directives): New
40548         types.
40549         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
40550         New declarations.
40551         * lib/printf-parse.c: Don't include config.h and the specification
40552         header if PRINTF_PARSE is already defined. Eliminate the set of
40553         parameters for WIDE_CHAR_VERSION; the user of this file must provide
40554         them now. Include c-ctype.h.
40555         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
40556         directive and CHAR_T_ONLY_ASCII.
40557         * lib/vasnprintf.c: Don't include config.h and the specification header
40558         if VASNPRINTF is already defined.
40559         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
40560         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
40561         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
40562         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
40563         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
40564         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
40565         code accordingly.
40566         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
40567         pad_ourselves also in this case, with the 'c' and 's' directives, and
40568         with a different notion of "width".
40569         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
40570
40571 2007-06-10  Bruno Haible  <bruno@clisp.org>
40572
40573         * modules/unistr/u32-mbsnlen: New file.
40574         * lib/unistr/u32-mbsnlen.c: New file.
40575
40576         * modules/unistr/u16-mbsnlen: New file.
40577         * lib/unistr/u16-mbsnlen.c: New file.
40578
40579         * modules/unistr/u8-mbsnlen: New file.
40580         * lib/unistr/u8-mbsnlen.c: New file.
40581
40582         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
40583         declarations.
40584
40585 2007-06-10  Bruno Haible  <bruno@clisp.org>
40586
40587         * lib/string_.h (mbsnlen): New declaration.
40588         * lib/mbsnlen.c: New file.
40589         * m4/mbsnlen.m4: New file.
40590         * modules/mbsnlen: New file.
40591         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
40592         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
40593         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
40594
40595 2007-06-10  Bruno Haible  <bruno@clisp.org>
40596
40597         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
40598
40599 2007-06-10  Bruno Haible  <bruno@clisp.org>
40600
40601         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
40602         * lib/mbuiter.h: Likewise.
40603
40604 2007-06-10  Bruno Haible  <bruno@clisp.org>
40605
40606         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
40607         declaration.
40608
40609 2007-06-10  Karl Berry  <karl@gnu.org>
40610
40611         * config/srclist.txt: remove gettext entries, Bruno prefers
40612         to update individually.
40613
40614 2007-06-10  Bruno Haible  <bruno@clisp.org>
40615
40616         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
40617         'maxlen'. Ensure only length + width bytes are allocated, not
40618         length + 1 + width.
40619
40620 2007-06-09  Bruno Haible  <bruno@clisp.org>
40621
40622         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
40623         (CHAR_T): Remove macro.
40624         (VASNPRINTF): Update.
40625
40626 2007-06-09  Bruno Haible  <bruno@clisp.org>
40627
40628         * MODULES.html.sh (Unicode string functions): Add the new modules.
40629
40630         * modules/uniconv/u32-conv-to-enc: New file.
40631         * lib/uniconv/u32-conv-to-enc.c: New file.
40632         * modules/uniconv/u32-conv-to-enc-tests: New file.
40633         * tests/uniconv/test-u32-conv-to-enc.c: New file.
40634
40635         * modules/uniconv/u16-conv-to-enc: New file.
40636         * lib/uniconv/u16-conv-to-enc.c: New file.
40637         * lib/uniconv/u-conv-to-enc.h: New file.
40638         * modules/uniconv/u16-conv-to-enc-tests: New file.
40639         * tests/uniconv/test-u16-conv-to-enc.c: New file.
40640
40641         * modules/uniconv/u8-conv-to-enc: New file.
40642         * lib/uniconv/u8-conv-to-enc.c: New file.
40643         * modules/uniconv/u8-conv-to-enc-tests: New file.
40644         * tests/uniconv/test-u8-conv-to-enc.c: New file.
40645
40646         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40647         u32_conv_to_encoding): New declarations.
40648
40649 2007-06-09  Bruno Haible  <bruno@clisp.org>
40650
40651         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
40652
40653 2007-06-09  Bruno Haible  <bruno@clisp.org>
40654
40655         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
40656         * modules/malloca: Renamed from modules/allocsa, updated.
40657         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
40658         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
40659         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
40660         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
40661         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
40662         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
40663         * modules/xmalloca: Renamed from modules/xallocsa, updated.
40664         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
40665         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
40666         * modules/c-strcasestr (Depends-on): Update.
40667         * lib/c-strcasestr.c: Update.
40668         * modules/c-strstr (Depends-on): Update.
40669         * lib/c-strstr.c: Update.
40670         * modules/canonicalize-lgpl (Depends-on): Update.
40671         * lib/canonicalize-lgpl.c: Update.
40672         * modules/clean-temp (Depends-on): Update.
40673         * lib/clean-temp.c: Update.
40674         * modules/csharpcomp (Depends-on): Update.
40675         * lib/csharpcomp.c: Update.
40676         * modules/csharpexec (Depends-on): Update.
40677         * lib/csharpexec.c: Update.
40678         * modules/javacomp (Depends-on): Update.
40679         * lib/javacomp.c: Update.
40680         * modules/javaexec (Depends-on): Update.
40681         * lib/javaexec.c: Update.
40682         * modules/mbscasestr (Depends-on): Update.
40683         * lib/mbscasestr.c: Update.
40684         * modules/mbsstr (Depends-on): Update.
40685         * lib/mbsstr.c: Update.
40686         * modules/setenv (Depends-on): Update.
40687         * lib/setenv.c: Update.
40688         * modules/strcasestr (Depends-on): Update.
40689         * lib/strcasestr.c: Update.
40690         * modules/striconveha (Depends-on): Update.
40691         * lib/striconveha.c: Update.
40692         * modules/relocatable-prog-wrapper (Files): Update.
40693         * lib/relocwrapper.c: Update.
40694         * build-aux/install-reloc: Update.
40695         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
40696
40697 2007-06-08  Bruno Haible  <bruno@clisp.org>
40698
40699         Port to uClibc.
40700         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
40701         * lib/fpurge.c (fpurge): Likewise.
40702         * lib/freading.c (freading): Likewise.
40703         * lib/fseeko.c (rpl_fseeko): Likewise.
40704         * lib/fseterr.c (fseterr): Likewise.
40705         * lib/fwriting.c (fwriting): Likewise.
40706         * tests/test-fflush.c (main): Avoid a failure on uClibc.
40707
40708 2007-06-08  Bruno Haible  <bruno@clisp.org>
40709
40710         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
40711         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
40712         * modules/gettext (Files): Add m4/intlmacosx.m4.
40713
40714 2007-06-07  Bruno Haible  <bruno@clisp.org>
40715
40716         * modules/localename-tests: New file.
40717         * tests/test-localename.c: New file.
40718
40719         New module 'localename'.
40720         * lib/localename.h: New file.
40721         * lib/localename.c: New file, from GNU gettext.
40722         * m4/localename.m4: New file.
40723         * modules/localename: New file.
40724
40725 2007-06-07  Bruno Haible  <bruno@clisp.org>
40726
40727         Work around the lack of <wchar.h> on some builds of uClibc.
40728         * doc/headers/wchar.texi: Update.
40729         * lib/wchar_.h: Include <wchar.h> only if it exists.
40730         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
40731         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
40732         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
40733         doesn't exist.
40734         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
40735         * modules/mbfile (Depends-on): Add wchar.
40736         * modules/mbiter (Depends-on): Likewise.
40737         * modules/mbuiter (Depends-on): Likewise.
40738         Reported by Simon Josefsson.
40739
40740 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
40741
40742         Work around problem reported by Steven M. Schweda in
40743         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
40744         Tru64 5.1B with the Compaq compiler environment installed declares
40745         an 'isblank' function but does not define it in the C library.
40746         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
40747         * lib/regex_internal.h (isblank): Likewise.
40748         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
40749         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40750
40751 2007-06-05  Bruno Haible  <bruno@clisp.org>
40752
40753         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
40754         ia64.
40755         * modules/printf-safe: New file.
40756         * modules/fprintf-posix (Depends-on): Add printf-safe.
40757         * modules/printf-posix (Depends-on): Likewise.
40758         * modules/snprintf-posix (Depends-on): Likewise.
40759         * modules/sprintf-posix (Depends-on): Likewise.
40760         * modules/vasnprintf-posix (Depends-on): Likewise.
40761         * modules/vasprintf-posix (Depends-on): Likewise.
40762         * modules/vfprintf-posix (Depends-on): Likewise.
40763         * modules/vprintf-posix (Depends-on): Likewise.
40764         * modules/vsnprintf-posix (Depends-on): Likewise.
40765         * modules/vsprintf-posix (Depends-on): Likewise.
40766         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
40767         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
40768         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
40769         "no" on i386, x86_64, ia64.
40770         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
40771         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40772         on i386, x86_64, ia64.
40773         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
40774         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40775         on i386, x86_64, ia64.
40776         * tests/test-vasnprintf-posix.c: Include float.h.
40777         (LDBL80_WORDS): New macro.
40778         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40779         on i386, x86_64, ia64.
40780         * tests/test-vasprintf-posix.c: Include float.h.
40781         (LDBL80_WORDS): New macro.
40782         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40783         on i386, x86_64, ia64.
40784         * tests/test-snprintf-posix.c: Include float.h.
40785         * tests/test-sprintf-posix.c: Likewise.
40786         * tests/test-vsnprintf-posix.c: Likewise.
40787         * tests/test-vsprintf-posix.c: Likewise.
40788
40789 2007-06-05  Bruno Haible  <bruno@clisp.org>
40790
40791         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
40792         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
40793         non-IEEE numbers on i386, x86_64, ia64.
40794         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
40795         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
40796         * tests/test-isnanl.h: Include float.h.
40797         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
40798
40799 2007-06-05  Bruno Haible  <bruno@clisp.org>
40800
40801         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
40802         also the %a / %A. Handle the %a / %A code before this extra handling.
40803
40804 2007-06-05  Bruno Haible  <bruno@clisp.org>
40805
40806         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
40807         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
40808
40809 2007-06-05  Bruno Haible  <bruno@clisp.org>
40810
40811         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
40812         typo in variable name.
40813
40814 2007-06-05  Eric Blake  <ebb9@byu.net>
40815
40816         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
40817         Reported by Simon Josefsson.
40818
40819 2007-06-04  Bruno Haible  <bruno@clisp.org>
40820
40821         Avoid test failures on some PowerPC platforms.
40822         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
40823         Define differently for PowerPC.
40824         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
40825         Reported by Gary V. Vaughan <gary@gnu.org>.
40826
40827 2007-06-02  Bruno Haible  <bruno@clisp.org>
40828
40829         Fix test-stdint failure on FreeBSD/ia64.
40830         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
40831         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
40832         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
40833         * doc/headers/stdint.texi: Update.
40834
40835 2007-06-01  Bruno Haible  <bruno@clisp.org>
40836
40837         * tests/test-binary-io.c (main): Pass a third argument to open().
40838         Reported by Gary V. Vaughan <gary@gnu.org>.
40839
40840 2007-06-01  Bruno Haible  <bruno@clisp.org>
40841
40842         * doc/functions/frexpl.texi: Update for mingw.
40843
40844 2007-06-01  Bruno Haible  <bruno@clisp.org>
40845
40846         * tests/test-lseek.c (main): Disable test of errno for invalid third
40847         argument.
40848         * doc/functions/lseek.texi: Update.
40849         Reported by Gary V. Vaughan <gary@gnu.org>.
40850
40851 2007-05-28  Bruno Haible  <bruno@clisp.org>
40852
40853         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
40854
40855 2007-05-31  Eric Blake  <ebb9@byu.net>
40856
40857         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
40858         cross compiling.
40859
40860 2007-05-30  Eric Blake  <ebb9@byu.net>
40861         and Bruno Haible  <bruno@clisp.org>
40862
40863         Work around mingw test failures exposed by m4-1.4.9b.
40864         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
40865         * tests/test-unistd.c: Disable uid_t and git_t tests for the
40866         moment.
40867
40868 2007-05-30  Bruno Haible  <bruno@clisp.org>
40869
40870         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
40871         assuming that they are closed. Needed on HP-UX 11.
40872
40873 2007-05-29  Bruno Haible  <bruno@clisp.org>
40874
40875         Fix a problem with #include_next.
40876         * lib/dirent_.h: Split the double-inclusion guard.
40877         * lib/fcntl_.h: Likewise.
40878         * lib/float_.h: Likewise.
40879         * lib/iconv_.h: Likewise.
40880         * lib/inttypes_.h: Likewise.
40881         * lib/locale_.h: Likewise.
40882         * lib/math_.h: Likewise.
40883         * lib/netinet_in_.h: Likewise.
40884         * lib/search_.h: Likewise.
40885         * lib/signal_.h: Likewise.
40886         * lib/stdint_.h: Likewise.
40887         * lib/stdio_.h: Likewise.
40888         * lib/stdlib_.h: Likewise.
40889         * lib/string_.h: Likewise.
40890         * lib/sys_select_.h: Likewise.
40891         * lib/sys_socket_.h: Likewise.
40892         * lib/sys_stat_.h: Likewise.
40893         * lib/sys_time_.h: Likewise.
40894         * lib/sysexits_.h: Likewise.
40895         * lib/time_.h: Likewise.
40896         * lib/unistd_.h: Likewise.
40897         * lib/wchar_.h: Likewise.
40898         * lib/wctype_.h: Likewise.
40899
40900 2007-05-29  Bruno Haible  <bruno@clisp.org>
40901
40902         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
40903         for the moment.
40904
40905 2007-05-29  Bruno Haible  <bruno@clisp.org>
40906
40907         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
40908         invocation.
40909         Reported by Eric Blake.
40910
40911 2007-05-29  Bruno Haible  <bruno@clisp.org>
40912
40913         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
40914         compiling case.
40915
40916 2007-05-29  Eric Blake  <ebb9@byu.net>
40917             Bruno Haible  <bruno@clisp.org>
40918
40919         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
40920         cross compiles.
40921
40922 2007-05-28  Eric Blake  <ebb9@byu.net>
40923
40924         * modules/closein-tests (test_closein_LDADD): Support test on
40925         cygwin with libtool.
40926
40927 2007-05-28  Bruno Haible  <bruno@clisp.org>
40928
40929         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
40930         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40931         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40932         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40933         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40934         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40935         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40936         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40937         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40938
40939 2007-05-28  Eric Blake  <ebb9@byu.net>
40940
40941         Unconditionally include <config.h> in unit tests.
40942         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
40943         * tests/test-allocsa.c, tests/test-arcfour.c,
40944         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
40945         tests/test-array_list.c, tests/test-array_oset.c,
40946         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
40947         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
40948         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
40949         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
40950         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
40951         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
40952         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
40953         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
40954         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
40955         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
40956         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
40957         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
40958         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
40959         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
40960         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
40961         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
40962         test-md5.c, test-memmem.c, test-printf-posix.c,
40963         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
40964         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
40965         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
40966         test-strcasestr.c, test-striconv.c, test-striconveh.c,
40967         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
40968         test-vasnprintf-posix2.c, test-vasnprintf.c,
40969         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
40970         test-vfprintf-posix.c, test-vprintf-posix.c,
40971         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
40972         test-xvasprintf.c: Likewise.
40973
40974 2007-05-28  Bruno Haible  <bruno@clisp.org>
40975
40976         * gnulib-tool (func_import): Remember the --with-tests command-line
40977         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
40978         Reported by Eric Blake.
40979
40980 2007-05-28  Bruno Haible  <bruno@clisp.org>
40981
40982         * modules/ftell-tests: New file.
40983         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
40984         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
40985
40986         * lib/ftell.c: New file.
40987         * modules/ftell: New file.
40988         * m4/ftell.m4: New file.
40989         * doc/functions/ftell.texi: Update.
40990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
40991         REPLACE_FTELL.
40992         * lib/stdio_.h (rpl_ftell): New declaration.
40993         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
40994         REPLACE_FTELL.
40995
40996 2007-05-28  Eric Blake  <ebb9@byu.net>
40997
40998         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
40999
41000 2007-05-28  Bruno Haible  <bruno@clisp.org>
41001
41002         * modules/fseek-tests: New file.
41003         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
41004         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
41005
41006         * lib/fseek.c: New file.
41007         * modules/fseek: New file.
41008         * m4/fseek.m4: New file.
41009         * doc/functions/fseek.texi: Update.
41010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
41011         REPLACE_FSEEK.
41012         * lib/stdio_.h (rpl_fseek): New declaration.
41013         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
41014         REPLACE_FSEEK.
41015
41016 2007-05-28  Bruno Haible  <bruno@clisp.org>
41017
41018         * lib/stdio_.h (fflush): More comments.
41019
41020 2007-05-28  Bruno Haible  <bruno@clisp.org>
41021
41022         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
41023         runtime test.
41024
41025 2007-05-28  Eric Blake  <ebb9@byu.net>
41026
41027         Improve lseek module.
41028         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
41029         * lib/unistd_.h (lseek): Scale back link warning message.
41030         * tests/test-lseek.c: Beef up test.
41031         * tests/test-lseek.sh: Exercise more facets of lseek.
41032         Reported by Bruno Haible.
41033
41034 2007-05-28  Bruno Haible  <bruno@clisp.org>
41035
41036         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
41037         to define.
41038
41039 2007-05-27  Bruno Haible  <bruno@clisp.org>
41040
41041         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
41042
41043 2007-05-27  Bruno Haible  <bruno@clisp.org>
41044
41045         * modules/openmp: New file.
41046         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
41047         Noah Misch.
41048
41049 2007-05-26  Bruno Haible  <bruno@clisp.org>
41050
41051         * modules/chdir-long (Depends-on): Add fchdir.
41052         * modules/chdir-safer (Depends-on): Likewise.
41053         * modules/fts (Depends-on): Likewise.
41054         * modules/fts-lgpl (Depends-on): Likewise.
41055         * modules/openat (Depends-on): Likewise.
41056         * modules/savewd (Depends-on): Likewise.
41057
41058 2007-05-24  Eric Blake  <ebb9@byu.net>
41059
41060         Fix lseek on mingw.
41061         * modules/lseek: New module.
41062         * m4/lseek.m4: New file.
41063         * lib/lseek.c: New file.
41064         * modules/lseek-tests: New file.
41065         * tests/test-lseek.c: New file.
41066         * tests/test-lseek.sh: New file.
41067         * MODULES.html.sh: Document lseek module.
41068         * modules/fflush (Depends-on): Add lseek, fseeko.
41069         * modules/fseeko (Depends-on): Likewise.
41070         * modules/ftello (Depends-on): Likewise.
41071         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
41072         broken.
41073         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
41074         broken.
41075         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
41076         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
41077         * lib/ftello.c (rpl_ftello): Likewise.
41078         * tests/test-fseeko.c (main): Test this.
41079         * tests/test-fseeko.sh: Likewise.
41080         * tests/test-ftello.c (main): Likewise.
41081         * tests/test-ftello.sh: Likewise.
41082         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
41083         implies replacing fseek.
41084         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
41085         HAVE_FTELLO.
41086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
41087         * modules/unistd (Makefile.am): Likewise.
41088         * lib/unistd_.h (lseek): Declare a replacement.
41089         * doc/functions/lseek.texi (lseek): Document this fix.
41090         * doc/functions/fseek.texi (fseek): Likewise.
41091         * doc/functions/ftell.texi (ftell): Likewise.
41092
41093 2007-05-24  Bruno Haible  <bruno@clisp.org>
41094
41095         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
41096         in the printed representation of a NaN.
41097         * tests/test-vasprintf-posix.c (test_function): Likewise.
41098         * tests/test-snprintf-posix.h (test_function): Likewise.
41099         * tests/test-sprintf-posix.h (test_function): Likewise.
41100         Reported by Eric Blake.
41101
41102 2007-05-23  Eric Blake  <ebb9@byu.net>
41103
41104         Fix fseeko/ftello on cygwin 1.5.24.
41105         * doc/functions/fseeko.texi (fseeko): Document the fix.
41106         * doc/functions/ftello.texi (ftello): Document the fix.
41107         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
41108         * doc/functions/stdout.text (stdout): New file.
41109         * doc/functions/stderr.text (stderr): New file.
41110         * doc/gnulib.texi (Function Substitutes): Use new files.
41111         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
41112         prior to 1.7.0.
41113         * tests/test-ftello.c (main): Likewise for ftello.
41114         * tests/test-fseeko.sh: New file.
41115         * tests/test-ftello.sh: New file.
41116         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
41117         with seekable stdin.
41118         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
41119         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
41120         (gl_REPLACE_FSEEKO): New macro.
41121         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
41122         * modules/fseeko (Files): Distribute fseeko.c.
41123         * modules/ftello (Files): Distribute ftello.c.
41124         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
41125         mode.
41126         * lib/ftello.c (rpl_ftello): New file.
41127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
41128         fseeko, ftello.
41129         (gl_STDIN_LARGE_OFFSET): New macro.
41130         * modules/stdio (Makefile.am): Perform the replacement.
41131         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
41132
41133 2007-05-23  Bruno Haible  <bruno@clisp.org>
41134
41135         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
41136         GNULIB_POSIXCHECK is defined.
41137
41138 2007-05-21  Bruno Haible  <bruno@clisp.org>
41139
41140         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
41141         Check also the output for NaN arguments. When cross-compiling, guess
41142         no on IRIX.
41143         * lib/vasnprintf.c: Update comments.
41144         * tests/test-vasnprintf-posix.c (strisnan): New function.
41145         (test_function): Use it.
41146         * tests/test-vasprintf-posix.c (strisnan): New function.
41147         (test_function): Use it.
41148         * tests/test-snprintf-posix.h (strisnan): New function.
41149         (test_function): Use it.
41150         * tests/test-sprintf-posix.h (strisnan): New function.
41151         (test_function): Use it.
41152         Reported by Eric Blake.
41153
41154 2007-05-20  Bruno Haible  <bruno@clisp.org>
41155
41156         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
41157         numbers that fails on BeOS.
41158         * doc/functions/frexpl.texi: Update.
41159
41160 2007-05-20  Jim Meyering  <jim@meyering.net>
41161
41162         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
41163         forced upon us by glibc-2.6.
41164
41165 2007-05-20  Bruno Haible  <bruno@clisp.org>
41166
41167         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
41168         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
41169         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
41170         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
41171         NEED_PRINTF_INFINITE.
41172         (is_infinitel): New function.
41173         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
41174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
41175         gl_PREREQ_VASNPRINTF_INFINITE.
41176         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
41177         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41178         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
41179         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
41180         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
41181         gl_PREREQ_VASNPRINTF_INFINITE.
41182         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41183         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41184         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41185         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41186         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41187         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41188         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41189         * doc/functions/fprintf.texi: Update.
41190         * doc/functions/printf.texi: Update.
41191         * doc/functions/snprintf.texi: Update.
41192         * doc/functions/sprintf.texi: Update.
41193         * doc/functions/vfprintf.texi: Update.
41194         * doc/functions/vprintf.texi: Update.
41195         * doc/functions/vsnprintf.texi: Update.
41196         * doc/functions/vsprintf.texi: Update.
41197
41198 2007-05-20  Bruno Haible  <bruno@clisp.org>
41199
41200         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
41201         was not found in libc.
41202         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
41203
41204 2007-05-20  Bruno Haible  <bruno@clisp.org>
41205
41206         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
41207         printed as "-nan" instead of "nan".
41208         * tests/test-vasprintf-posix.c (test_function): Likewise.
41209         * tests/test-snprintf-posix.h (test_function): Likewise.
41210         * tests/test-sprintf-posix.h (test_function): Likewise.
41211         Needed for HP-UX 11.
41212
41213 2007-05-20  Jim Meyering  <jim@meyering.net>
41214
41215         Fix buggy test for the fchownat-deref bug.
41216         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
41217         symlink required for the run-test.  Without it, this test would
41218         always declare that fchownat doesn't work, and client code would
41219         unnecessarily use the replacement function with fixed libc.
41220         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
41221         Reported by Greg Schafer.
41222
41223 2007-05-19  Bruno Haible  <bruno@clisp.org>
41224
41225         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
41226         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
41227         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
41228         Needed for IRIX 6.5 and Solaris 2.5.1.
41229
41230 2007-05-19  Bruno Haible  <bruno@clisp.org>
41231
41232         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
41233         (test_function): Skip tests involving -0.0 on platforms where
41234         -0.0 = 0.0.
41235         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
41236         (test_function): Skip tests involving -0.0 on platforms where
41237         -0.0 = 0.0.
41238         * tests/test-snprintf-posix.h (have_minus_zero): New function.
41239         (test_function): Skip tests involving -0.0 on platforms where
41240         -0.0 = 0.0.
41241         * tests/test-sprintf-posix.h (have_minus_zero): New function.
41242         (test_function): Skip tests involving -0.0 on platforms where
41243         -0.0 = 0.0.
41244         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
41245         tests.
41246         * tests/test-printf-posix.h (test_function): Likewise.
41247         * tests/test-printf-posix.output: Remove all -0.0 related results.
41248         Needed for IRIX 6.5.
41249
41250 2007-05-19  Bruno Haible  <bruno@clisp.org>
41251
41252         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
41253         printed as "nan0x7fffffff" instead of "nan".
41254         * tests/test-vasprintf-posix.c (test_function): Likewise.
41255         * tests/test-snprintf-posix.h (test_function): Likewise.
41256         * tests/test-sprintf-posix.h (test_function): Likewise.
41257         * tests/test-fprintf-posix.h (NaN): Remove macro.
41258         (test_function): Remove all NaN related tests.
41259         * tests/test-printf-posix.h (NaN): Remove macro.
41260         (test_function): Remove all NaN related tests.
41261         * tests/test-printf-posix.output: Remove all NaN related results.
41262         Needed for IRIX 6.5.
41263
41264 2007-05-19  Bruno Haible  <bruno@clisp.org>
41265
41266         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
41267         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
41268
41269 2007-05-19  Bruno Haible  <bruno@clisp.org>
41270
41271         * lib/float_.h: New file.
41272         * m4/float_h.m4: New file.
41273         * modules/float: New file.
41274         * modules/isnanl (Dependencies): Add float.
41275         * modules/isnanl-nolibm (Dependencies): Likewise.
41276         * modules/mathl (Dependencies): Likewise.
41277         * modules/printf-frexpl (Dependencies): Likewise.
41278         * modules/signbit (Dependencies): Likewise.
41279         * modules/vasnprintf (Dependencies): Likewise.
41280         * doc/headers/float.texi: Update.
41281
41282 2007-05-19  Jim Meyering  <jim@meyering.net>
41283
41284         * lib/utimens.c (gl_futimens): Rename from futimens,
41285         now that glibc-2.6 declares futimens.
41286         * lib/utimens.h: Likewise.
41287
41288 2007-05-19  Bruno Haible  <bruno@clisp.org>
41289
41290         Avoid test failures on mingw.
41291         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
41292         * tests/test-printf-posix.sh: Likewise.
41293         * tests/test-vfprintf-posix.sh: Likewise.
41294         * tests/test-vprintf-posix.sh: Likewise.
41295
41296 2007-05-19  Bruno Haible  <bruno@clisp.org>
41297
41298         Fix *printf result for NaN, Inf, -0.0 on mingw.
41299         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
41300         * lib/vasnprintf.c: Include math.h and isnan.h.
41301         (is_infinite_or_zero): New function.
41302         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
41303         values in the %f, %F, %e, %E, %g, %G directives.
41304         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
41305         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41306         gl_PRINTF_INFINITE and test its result. Invoke
41307         gl_PREREQ_VASNPRINTF_INFINITE.
41308         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41309         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41310         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41311         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41312         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41313         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41314         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41315         * doc/functions/fprintf.texi: Update.
41316         * doc/functions/printf.texi: Update.
41317         * doc/functions/snprintf.texi: Update.
41318         * doc/functions/sprintf.texi: Update.
41319         * doc/functions/vfprintf.texi: Update.
41320         * doc/functions/vprintf.texi: Update.
41321         * doc/functions/vsnprintf.texi: Update.
41322         * doc/functions/vsprintf.texi: Update.
41323
41324 2007-05-19  Bruno Haible  <bruno@clisp.org>
41325
41326         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
41327         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
41328         Instead of multiplying with 10^k, set extra_zeroes to k.
41329         (scale10_round_long_double): Remove function.
41330
41331 2007-05-18  Bruno Haible  <bruno@clisp.org>
41332
41333         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
41334         introduced on 2007-05-06.
41335
41336 2007-05-18  Bruno Haible  <bruno@clisp.org>
41337
41338         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
41339         %g directives.
41340         * tests/test-vasprintf-posix.c (test_function): Likewise.
41341         * tests/test-snprintf-posix.h (test_function): Likewise.
41342         * tests/test-sprintf-posix.h (test_function): Likewise.
41343
41344 2007-05-18  Bruno Haible  <bruno@clisp.org>
41345
41346         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
41347         (strmatch): New function.
41348         (test_function): Test the %f directive on numbers of various exponents.
41349         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
41350         (strmatch): New function.
41351         (test_function): Test the %f directive on numbers of various exponents.
41352         * tests/test-snprintf-posix.h (strmatch): New function.
41353         (test_function): Test the %f directive on numbers of various exponents.
41354         * tests/test-sprintf-posix.h (strmatch): New function.
41355         (test_function): Test the %f directive on numbers of various exponents.
41356         * tests/test-snprintf-posix.c (SIZEOF): New macro.
41357         * tests/test-sprintf-posix.c (SIZEOF): New macro.
41358         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
41359         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
41360
41361 2007-05-18  Bruno Haible  <bruno@clisp.org>
41362
41363         Add support for 'long double' number output.
41364         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
41365         * lib/vasnprintf.c: Include math.h and float+.h.
41366         (mp_limb_t): New type.
41367         (GMP_LIMB_BITS): New macro.
41368         (mp_twolimb_t): New type.
41369         (GMP_TWOLIMB_BITS): New macro.
41370         (mpn_t): New type.
41371         (multiply, divide, convert_to_decimal, decode_long_double,
41372         scale10_round_long_double, scale10_round_decimal_long_double,
41373         floorlog10l): New functions.
41374         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
41375         for the %f, %F, %e, %E, %g, %G directives.
41376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
41377         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41378         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
41379         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
41380         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41381         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41382         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41383         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41384         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41385         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41386         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41387         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
41388         * modules/snprintf-posix (Depends-on): Likewise.
41389         * modules/sprintf-posix (Depends-on): Likewise.
41390         * modules/vasnprintf-posix (Depends-on): Likewise.
41391         * modules/vasprintf-posix (Depends-on): Likewise.
41392         * modules/vfprintf-posix (Depends-on): Likewise.
41393         * modules/vsnprintf-posix (Depends-on): Likewise.
41394         * modules/vsprintf-posix (Depends-on): Likewise.
41395         * modules/vasnprintf (Files): Add lib/float+.h.
41396         * doc/functions/fprintf.texi: Update.
41397         * doc/functions/printf.texi: Update.
41398         * doc/functions/snprintf.texi: Update.
41399         * doc/functions/sprintf.texi: Update.
41400         * doc/functions/vfprintf.texi: Update.
41401         * doc/functions/vprintf.texi: Update.
41402         * doc/functions/vsnprintf.texi: Update.
41403         * doc/functions/vsprintf.texi: Update.
41404
41405 2007-05-18  Bruno Haible  <bruno@clisp.org>
41406
41407         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
41408
41409 2007-05-18  Bruno Haible  <bruno@clisp.org>
41410
41411         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
41412         for printing 64-bit integers. Needed for mingw.
41413
41414 2007-05-18  Bruno Haible  <bruno@clisp.org>
41415
41416         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41417         gl_FUNC_FREXPL_WORKS.
41418         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
41419
41420 2007-05-18  Bruno Haible  <bruno@clisp.org>
41421
41422         * modules/frexpl-nolibm-tests: New file.
41423
41424         * modules/frexpl-nolibm: New file.
41425         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
41426
41427 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41428
41429         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
41430         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41431         GCC 4.2, which otherwise issues a lot of warnings.
41432         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
41433         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
41434         Likewise.
41435         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
41436         * modules/iconv_open (iconv.h): Likewise.
41437         * modules/locale (locale.h): Likewise.
41438         * modules/netinet_in (netinet/in.h): Likewise.
41439         * modules/sys_select (sys_select.h): Likewise.
41440         * modules/sys_socket (sys/socket.h): Likewise.
41441         * modules/sys_stat (sys/stat.h): Likewise.
41442         * modules/sysexits (sysexits.h): Likewise.
41443         * modules/unistd (unistd.h): Likewise.
41444
41445 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41446
41447         * modules/closein-tests (Makefile.am): Distribute
41448         `test-closein.sh'.
41449
41450 2007-05-17  Bruno Haible  <bruno@clisp.org>
41451
41452         * tests/test-printf-posix.output: Renamed from
41453         tests/test-fprintf-posix.out.
41454         * modules/fprintf-posix-tests: Update.
41455         * modules/printf-posix-tests: Update.
41456         * modules/vfprintf-posix-tests: Update.
41457         * modules/vprintf-posix-tests: Update.
41458         * tests/test-fprintf-posix.sh: Update.
41459         * tests/test-printf-posix.sh: Update.
41460         * tests/test-vfprintf-posix.sh: Update.
41461         * tests/test-vprintf-posix.sh: Update.
41462         Reported by Ralf Wildenhues.
41463
41464 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41465
41466         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
41467         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41468         GCC 4.2, which otherwise issues a lot of warnings.
41469         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
41470         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
41471         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
41472         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
41473         it should no longer be needed.
41474         * lib/string_.h: Likewise.
41475         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
41476         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
41477         * modules/inttypes (inttypes.h): Likewise.
41478         * modules/math (math.h): Likewise.
41479         * modules/search (search.h): Likewise.
41480         * modules/signal (signal.h): Likewise.
41481         * modules/stdint (stdint.h): Likewise.
41482         * modules/stdio (stdio.h): Likewise.
41483         * modules/stdlib (stdlib.h): Likewise.
41484         * modules/string (string.h): Likewise.
41485         * modules/sys_time (sys/time.h): Likewise.
41486         * modules/time (time.h): Likewise.
41487         * modules/wchar (wchar.h): Likewise.
41488         * modules/wctype (wtype.h): Likewise.
41489
41490 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41491
41492         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
41493
41494 2007-05-13  Bruno Haible  <bruno@clisp.org>
41495
41496         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
41497         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41498         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
41499         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41500         (gl_PREREQ_STRTOK_R): Don't require it here.
41501
41502 2007-05-13  Bruno Haible  <bruno@clisp.org>
41503
41504         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
41505         when used in C++ mode.
41506
41507 2007-05-12  Bruno Haible  <bruno@clisp.org>
41508
41509         * lib/linebuffer.h: Tweak doc.
41510         * lib/linebuffer.c: Likewise.
41511
41512 2007-05-12  James Youngman  <jay@gnu.org>
41513
41514         * lib/linebuffer.c (readlinebuffer_delim): New function,
41515         like readlinebuffer, but use a caller-specified delimiter.
41516         (readlinebuffer): Just call readlinebuffer_delim with '\n'
41517         as the delimiter.
41518         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
41519
41520 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41521
41522         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
41523         * modules/openat (Files): Remove openat-die.c.
41524         (Depends-on): Add openat-die.
41525         * modules/openat-die: New module.
41526
41527 2007-05-06  Bruno Haible  <bruno@clisp.org>
41528
41529         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
41530         Update with info about Cygwin.
41531         * doc/functions/fprintf.texi: Update.
41532         * doc/functions/printf.texi: Update.
41533         * doc/functions/snprintf.texi: Update.
41534         * doc/functions/sprintf.texi: Update.
41535         * doc/functions/vfprintf.texi: Update.
41536         * doc/functions/vprintf.texi: Update.
41537         * doc/functions/vsnprintf.texi: Update.
41538         * doc/functions/vsprintf.texi: Update.
41539         Reported by Eric Blake.
41540
41541 2007-05-06  Bruno Haible  <bruno@clisp.org>
41542
41543         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
41544         padding ourselves for the floating-point directives.
41545         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
41546         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
41547         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41548         gl_PRINTF_FLAG_ZERO and test its result. Invoke
41549         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
41550         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41551         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41552         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41553         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41554         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41555         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41556         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41557         * tests/test-snprintf-posix.h (test_function): Also check the width
41558         and some flags in the %f directive.
41559         * tests/test-sprintf-posix.h (test_function): Likewise.
41560         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41561         * tests/test-vasprintf-posix.c (test_function): Likewise.
41562         * doc/functions/fprintf.texi: Update.
41563         * doc/functions/printf.texi: Update.
41564         * doc/functions/snprintf.texi: Update.
41565         * doc/functions/sprintf.texi: Update.
41566         * doc/functions/vfprintf.texi: Update.
41567         * doc/functions/vprintf.texi: Update.
41568         * doc/functions/vsnprintf.texi: Update.
41569         * doc/functions/vsprintf.texi: Update.
41570
41571 2007-05-06  Bruno Haible  <bruno@clisp.org>
41572
41573         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
41574         pass the ' flag character to sprintf or snprintf.
41575         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
41576         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
41577         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41578         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
41579         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
41580         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41581         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41582         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41583         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41584         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41585         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41586         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41587         * tests/test-snprintf-posix.h (test_function): Also check the grouping
41588         flag.
41589         * tests/test-sprintf-posix.h (test_function): Likewise.
41590         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41591         * tests/test-vasprintf-posix.c (test_function): Likewise.
41592         * doc/functions/fprintf.texi: Update.
41593         * doc/functions/printf.texi: Update.
41594         * doc/functions/snprintf.texi: Update.
41595         * doc/functions/sprintf.texi: Update.
41596         * doc/functions/vfprintf.texi: Update.
41597         * doc/functions/vprintf.texi: Update.
41598         * doc/functions/vsnprintf.texi: Update.
41599         * doc/functions/vsprintf.texi: Update.
41600
41601 2007-05-01  Bruno Haible  <bruno@clisp.org>
41602
41603         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
41604
41605 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
41606
41607         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
41608         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
41609
41610 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
41611
41612         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
41613         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
41614         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
41615
41616 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
41617
41618         * lib/argp-help.c (struct hol_entry): New member `ord'.
41619         (HOL_ENTRY_PTRCMP): Use ord for comparison
41620         (hol_sort): Initialize ord.
41621
41622 2007-05-01  Bruno Haible  <bruno@clisp.org>
41623
41624         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
41625         Reported by Eric Blake.
41626         * doc/gnulib.texi (Function Substitutes): Update.
41627
41628 2007-05-01  Bruno Haible  <bruno@clisp.org>
41629
41630         * doc/functions.texi: Remove file, now redundant through
41631         doc/functions/*.texi.
41632
41633 2007-05-01  Bruno Haible  <bruno@clisp.org>
41634
41635         * modules/argp (Depends-on): Add sleep.
41636
41637 2007-05-01  Bruno Haible  <bruno@clisp.org>
41638
41639         * modules/sleep-tests: New file.
41640         * tests/test-sleep.c: New file.
41641
41642         * modules/sleep: New file.
41643         * lib/sleep.c: New file.
41644         * m4/sleep.m4: New file.
41645         * lib/unistd_.h (sleep): New declaration.
41646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
41647         HAVE_SLEEP.
41648         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
41649         * doc/functions/sleep.texi: Document the sleep module.
41650
41651 2007-05-01  Bruno Haible  <bruno@clisp.org>
41652
41653         * lib/sigprocmask.h: Remove file.
41654         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
41655         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
41656         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
41657         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
41658         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
41659         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
41660         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
41661         HAVE_SIGSET_T as a shell variable.
41662         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
41663         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
41664         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
41665         (Depends-on): Add signal. Remove verify.
41666         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
41667         (Include): Mention <signal.h> instead of sigprocmask.h.
41668         * NEWS: Mention the change.
41669         * lib/fatal-signal.c: Don't include sigprocmask.h.
41670
41671 2007-05-01  Bruno Haible  <bruno@clisp.org>
41672
41673         * modules/signal: New file.
41674         * lib/signal_.h: New file.
41675         * m4/signal_h.m4: New file.
41676
41677 2007-05-01  Bruno Haible  <bruno@clisp.org>
41678
41679         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
41680         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
41681         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
41682         HAVE_WCTYPE_CTMP_BUG into wctype.h.
41683
41684 2007-05-01  Bruno Haible  <bruno@clisp.org>
41685
41686         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
41687         configure time.
41688         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
41689         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
41690         * modules/sys_stat (Makefile.am): Substitute their values into
41691         sys/stat.h.
41692
41693 2007-05-01  Bruno Haible  <bruno@clisp.org>
41694
41695         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
41696         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
41697         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
41698
41699 2007-05-01  Bruno Haible  <bruno@clisp.org>
41700
41701         * doc/header/assert.texi: Undo last change: don't mention the gnulib
41702         'assert' module here.
41703
41704 2007-05-01  Bruno Haible  <bruno@clisp.org>
41705
41706         * doc/functions/*.texi: New files.
41707         * doc/functions/google-ranking.txt: New file.
41708         * doc/gnulib.texi (Function Substitutes): New chapter.
41709         (ctime, inet_ntoa): Remove sections.
41710         * doc/ctime.texi: Remove file.
41711         * doc/inet_ntoa.texi: Remove file.
41712         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
41713         dependencies.
41714         (%.info): New rule, specifying a --reference-limit.
41715
41716 2007-05-01  Bruno Haible  <bruno@clisp.org>
41717
41718         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
41719
41720 2007-05-01  Bruno Haible  <bruno@clisp.org>
41721
41722         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
41723         the portability of 'mkdir' to mingw systems.
41724
41725 2007-05-01  Bruno Haible  <bruno@clisp.org>
41726
41727         * doc/headers/google-ranking.txt: New file.
41728
41729 2007-04-30  Eric Blake  <ebb9@byu.net>
41730
41731         Prefer fseeko to fseek.
41732         * modules/getpass (Depends-on): Add fseeko.
41733         * lib/getpass.c (getpass): Use fseeko, not fseek.
41734
41735 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
41736
41737         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
41738         assumes the sorting is stable, while most qsort implementations
41739         are not.  Use argument addresses to ensure they never compare as
41740         equal.
41741
41742         * tests/test-argp-2.sh (usage-indent test): Fix output
41743         (func_compare): Restore diff options
41744         * tests/test-argp.c: Restore #include "progname.h"
41745
41746 2007-04-29  Bruno Haible  <bruno@clisp.org>
41747
41748         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
41749         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41750         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
41751         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41752         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
41753         (configure.ac): Define CHECK_SNPRINTF_POSIX.
41754         (TESTS, check_PROGRAMS): Add test-snprintf.
41755         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
41756         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
41757         (TESTS, check_PROGRAMS): Add test-vsnprintf.
41758         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
41759         assertions that fail on HP-UX, OSF/1, or IRIX.
41760         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
41761
41762 2007-04-29  Bruno Haible  <bruno@clisp.org>
41763
41764         * MODULES.html.sh (posix_functions): Remove 'contents'.
41765
41766 2007-04-29  Karl Berry  <karl@gnu.org>
41767
41768         * config/srclist.txt (gendocs_template_min): new entry.
41769
41770 2007-04-29  Bruno Haible  <bruno@clisp.org>
41771
41772         Work around fpurge bug on BSD systems.
41773         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
41774         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
41775         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
41776         fpurge to rpl_fpurge if the system already has this function.
41777         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
41778         the case where the system already has this function. Correct invariants
41779         on BSD systems.
41780         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
41781         BSD systems.
41782
41783 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41784
41785         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
41786         proposed by Sven Verdoolaege.
41787
41788         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
41789         options.
41790         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
41791         (usage and help tests): Update
41792
41793 2007-04-29  Bruno Haible  <bruno@clisp.org>
41794
41795         * tests/test-fflush.c (main): Use a file of size 17, not 10.
41796         Print more information in case of failure. Disable a test on BeOS.
41797
41798 2007-04-29  Bruno Haible  <bruno@clisp.org>
41799
41800         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
41801         This helps debugging on systems on which no gdb is available.
41802
41803 2007-04-29  Bruno Haible  <bruno@clisp.org>
41804
41805         * lib/freading.h: Improve comments.
41806         * lib/fwriting.h: Likewise.
41807         * tests/test-freading.c (main): Don't check freading immediately after
41808         repositioning. Needed for glibc.
41809
41810 2007-04-29  Bruno Haible  <bruno@clisp.org>
41811
41812         * lib/freading.c (freading): Trivial simplification.
41813
41814 2007-04-28  Bruno Haible  <bruno@clisp.org>
41815
41816         * tests/test-fwriting.c (main): Also test the interaction between
41817         fflush and fwriting.
41818         * modules/fwriting-tests (Depends-on): Add fflush.
41819
41820         * tests/test-freading.c (main): Also test the interaction between
41821         fflush and freading.
41822         * modules/freading-tests (Depends-on): Add fflush.
41823
41824 2007-04-28  Bruno Haible  <bruno@clisp.org>
41825
41826         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
41827         fseeko and ftello.
41828         Suggested by Eric Blake.
41829
41830 2007-04-28  Jim Meyering  <jim@meyering.net>
41831
41832         Avoid false-negative in gl_STDINT_H's C99 conformance test.
41833         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
41834         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
41835
41836 2007-04-27  Eric Blake  <ebb9@byu.net>
41837
41838         * doc/headers/assert.texi (assert.h): Document assert module use.
41839
41840 2007-04-27  Bruno Haible  <bruno@clisp.org>
41841
41842         * doc/headers/*.texi: New files.
41843         * doc/gnulib.texi (Header File Substitutes): New chapter.
41844         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
41845         dependencies.
41846         (standards.info ,standards.html, standards.dvi): Update dependencies.
41847         (mostlyclean, clean): New targets.
41848
41849 2007-04-27  Bruno Haible  <bruno@clisp.org>
41850
41851         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
41852         * modules/sysexits (Files, Makefile.am): Update.
41853
41854         * lib/sys_socket_.h: Renamed from lib/socket_.h.
41855         * modules/sys_socket (Files, Makefile.am): Update.
41856
41857         * lib/sys_stat_.h: Renamed from lib/stat_.h.
41858         * modules/sys_stat (Files, Makefile.am): Update.
41859
41860 2007-04-27  Eric Blake  <ebb9@byu.net>
41861
41862         * lib/freading.h: Improve comments.
41863         * lib/fwriting.h: Likewise.
41864         * lib/fflush.c: Likewise.
41865
41866         Fix closein for mingw.
41867         * modules/closein-tests: Add tests for closein.
41868         * tests/test-closein.c: New file.
41869         * tests/test-closein.sh: Likewise.
41870         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
41871         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
41872
41873 2007-04-27  Bruno Haible  <bruno@clisp.org>
41874
41875         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
41876         version is < 6.
41877         * lib/math_.h [__DECC]: Likewise.
41878         * lib/stdio_.h [__DECC]: Likewise.
41879         * lib/stdlib_.h [__DECC]: Likewise.
41880         * lib/string_.h [__DECC]: Likewise.
41881         * lib/time_.h [__DECC]: Likewise.
41882         * lib/wchar_.h [__DECC]: Likewise.
41883         * lib/wctype_.h [__DECC]: Likewise.
41884
41885 2007-04-27  Bruno Haible  <bruno@clisp.org>
41886
41887         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
41888
41889 2007-04-27  Bruno Haible  <bruno@clisp.org>
41890
41891         * lib/fflush.c: Add comments.
41892         * modules/fpurge-tests (Depends-on): Add fflush.
41893         * modules/freadable-tests (Depends-on): Likewise.
41894         * modules/fwritable-tests (Depends-on): Likewise.
41895
41896 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
41897
41898         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
41899         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
41900         Report by Bruno Haible <bruno@clisp.org>.
41901
41902 2007-04-26  Eric Blake  <ebb9@byu.net>
41903
41904         Fix fflush on mingw.
41905         * modules/fflush (Depends-on): Add freading.
41906         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
41907         but unread data.
41908
41909 2007-04-26  Eric Blake  <ebb9@byu.net>
41910         and Bruno Haible  <bruno@clisp.org>
41911
41912         Implement freading and fwriting.
41913         * lib/freading.c: New file.
41914         * lib/freading.h: Likewise.
41915         * m4/freading.m4: Likewise.
41916         * modules/freading: Likewise.
41917         * modules/freading-tests: Likewise.
41918         * tests/test-freading.c: Likewise.
41919         * lib/fwriting.c: New file.
41920         * lib/fwriting.h: Likewise.
41921         * m4/fwriting.m4: Likewise.
41922         * modules/fwriting: Likewise.
41923         * modules/fwriting-tests: Likewise.
41924         * tests/test-fwriting.c: Likewise.
41925         * MODULES.html.sh (File stream based Input/Output): Mention them.
41926
41927 2007-04-26  Bruno Haible  <bruno@clisp.org>
41928
41929         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
41930         'long' when we assume it.
41931         Suggested by Eric Blake.
41932
41933 2007-04-26  Bruno Haible  <bruno@clisp.org>
41934
41935         Ensure fseeko, ftello are declared on glibc systems.
41936         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
41937         * modules/fseeko (configure.ac-early): Likewise.
41938         * modules/ftello (configure.ac-early): Likewise.
41939         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
41940         AC_FUNC_FSEEKO for this.
41941         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
41942         (gl_CHECK_FSEEKO): Remove macro.
41943
41944 2007-04-26  Bruno Haible  <bruno@clisp.org>
41945
41946         * tests/test-fflush.c (main): Also check the ftell result after
41947         fflush and fseek/fseeko.
41948         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
41949         file descriptor position cache in the stream.
41950         * lib/fseeko.c (rpl_fseeko): Likewise.
41951
41952 2007-04-26  Bruno Haible  <bruno@clisp.org>
41953
41954         * modules/fflush-tests (Depends-on): Add fseeko.
41955
41956 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
41957             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41958
41959         * lib/argz_.h: ensure error_t definition is obtained in same
41960         mechanism system argz.h would have.
41961         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
41962         argz facilities are known bad.  Err on the side of caution if
41963         cross-compiling.
41964
41965 2007-04-25  Eric Blake  <ebb9@byu.net>
41966
41967         * lib/fpurge.c (includes): Use stdlib.h for free.
41968         * tests/test-fflush.c (main): Also test fflush-fseeko.
41969
41970 2007-04-25  Bruno Haible  <bruno@clisp.org>
41971
41972         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
41973         * lib/fseeko.c: New file.
41974         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
41975         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
41976         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
41977         gl_FUNC_FSEEKO.
41978         (gl_FUNC_FSEEKO): Invoke it.
41979         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
41980         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
41981         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
41982
41983 2007-04-25  Bruno Haible  <bruno@clisp.org>
41984
41985         * modules/fflush (Depends-on): Add ftello.
41986
41987 2007-04-25  Bruno Haible  <bruno@clisp.org>
41988
41989         * modules/ftello-tests: New file.
41990         * tests/test-ftello.c: New file.
41991
41992         * modules/ftello: New file.
41993         * m4/ftello.m4: New file.
41994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
41995         HAVE_FTELLO.
41996         * lib/stdio_.h (ftello): New declaration.
41997         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
41998         HAVE_FTELLO.
41999
42000 2007-04-25  Bruno Haible  <bruno@clisp.org>
42001
42002         * modules/fseeko-tests: New file.
42003         * tests/test-fseeko.c: New file.
42004
42005         * modules/fseeko: New file.
42006         * m4/fseeko.m4: New file.
42007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
42008         HAVE_FSEEKO.
42009         * lib/stdio_.h (fseeko): New declaration.
42010         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
42011         HAVE_FSEEKO.
42012
42013 2007-04-25  Bruno Haible  <bruno@clisp.org>
42014
42015         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
42016
42017 2007-04-25  Bruno Haible  <bruno@clisp.org>
42018
42019         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
42020         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
42021         * tests/test-unistd.c: Likewise.
42022         * tests/test-fcntl.c: Likewise.
42023
42024 2007-04-23  Eric Blake  <ebb9@byu.net>
42025
42026         * lib/fflush.c: Fix missing include.
42027         Reported by Bruno Haible.
42028
42029 2007-04-23  Bruno Haible  <bruno@clisp.org>
42030
42031         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
42032         Reported by Eric Blake.
42033
42034 2007-04-23  Bruno Haible  <bruno@clisp.org>
42035
42036         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
42037
42038 2007-04-23  Bruno Haible  <bruno@clisp.org>
42039
42040         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
42041
42042 2007-04-23  Bruno Haible  <bruno@clisp.org>
42043
42044         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
42045         Needed on HP-UX 11.
42046
42047 2007-04-16  Eric Blake  <ebb9@byu.net>
42048
42049         Make fflush rely on fpurge.
42050         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
42051         open coding all variants.
42052         * modules/fflush (Depends-on): Add fpurge and unistd.
42053         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
42054         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
42055
42056         Fix --with-tests compilation on cygwin.
42057         * modules/argmatch-tests (Makefile.am): List gnulib library first
42058         in LDADD.
42059         * modules/argp-tests (Makefile.am): Likewise.
42060         * modules/array-list-tests (Makefile.am): Likewise.
42061         * modules/array-oset-tests (Makefile.am): Likewise.
42062         * modules/avltree-list-tests (Makefile.am): Likewise.
42063         * modules/avltree-oset-tests (Makefile.am): Likewise.
42064         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42065         * modules/carray-list-tests (Makefile.am): Likewise.
42066         * modules/dirname-tests (Makefile.am): Likewise.
42067         * modules/frexp-tests (Makefile.am): Likewise.
42068         * modules/isnanl-tests (Makefile.am): Likewise.
42069         * modules/linked-list-tests (Makefile.am): Likewise.
42070         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42071         * modules/lock-tests (Makefile.am): Likewise.
42072         * modules/rbtree-list-tests (Makefile.am): Likewise.
42073         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42074         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42075         * modules/tls-tests (Makefile.am): Likewise.
42076         * modules/tsearch-tests (Makefile.am): Likewise.
42077         * modules/xvasprintf-tests (Makefile.am): Likewise.
42078
42079         Fix fpurge for cygwin.
42080         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
42081         value.
42082         * modules/fpurge-tests (Depends-on): Clean up trash.
42083
42084 2007-04-16  Simon Josefsson  <simon@josefsson.org>
42085
42086         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
42087
42088         * m4/autobuild.m4: Re-indent.
42089
42090 2007-04-13  Bruno Haible  <bruno@clisp.org>
42091
42092         * modules/fpurge-tests: New file.
42093         * tests/test-fpurge.c: New file.
42094
42095         * modules/fpurge: New file.
42096         * lib/fpurge.h: New file.
42097         * lib/fpurge.c: New file.
42098         * m4/fpurge.m4: New file.
42099
42100 2007-04-13  Bruno Haible  <bruno@clisp.org>
42101
42102         * modules/fbufmode-tests: New file.
42103         * tests/test-fbufmode.c: New file.
42104
42105         * modules/fbufmode: New file.
42106         * lib/fbufmode.h: New file.
42107         * lib/fbufmode.c: New file.
42108         * m4/fbufmode.m4: New file.
42109
42110 2007-04-13  Bruno Haible  <bruno@clisp.org>
42111
42112         * modules/fwritable-tests: New file.
42113         * tests/test-fwritable.c: New file.
42114
42115         * modules/fwritable: New file.
42116         * lib/fwritable.h: New file.
42117         * lib/fwritable.c: New file.
42118         * m4/fwritable.m4: New file.
42119
42120 2007-04-13  Bruno Haible  <bruno@clisp.org>
42121
42122         * modules/freadable-tests: New file.
42123         * tests/test-freadable.c: New file.
42124
42125         * modules/freadable: New file.
42126         * lib/freadable.h: New file.
42127         * lib/freadable.c: New file.
42128         * m4/freadable.m4: New file.
42129
42130 2007-04-13  Bruno Haible  <bruno@clisp.org>
42131
42132         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
42133         MOSTLYCLEANFILES.
42134
42135 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
42136
42137         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
42138         gzip bootstrap.conf to avoid dragging in i18n machinery.
42139         (gnulib_tool_option): Use it.
42140
42141 2007-04-13  Bruno Haible  <bruno@clisp.org>
42142
42143         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
42144         %F directives.
42145         * tests/test-vasprintf-posix.c (test_function): Likewise.
42146         * tests/test-snprintf-posix.h (test_function): Likewise.
42147         * tests/test-sprintf-posix.h (test_function): Likewise.
42148         * tests/test-fprintf-posix.h (test_function): Likewise.
42149         * tests/test-printf-posix.h (test_function): Likewise.
42150         * tests/test-fprintf-posix.out: Likewise.
42151
42152 2007-04-13  Bruno Haible  <bruno@clisp.org>
42153
42154         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
42155         * modules/tls-tests (configure.ac): Likewise.
42156         Reported by Arto C. Nirkko <anirkko@insel.ch>.
42157
42158 2007-04-13  Bruno Haible  <bruno@clisp.org>
42159
42160         * lib/tls.c (glthread_tls_get): Fix return type.
42161         Patch by Arto C. Nirkko <anirkko@insel.ch>.
42162
42163 2007-04-12  Eric Blake  <ebb9@byu.net>
42164
42165         * modules/gettime (Depends-on): Remove gettime.
42166         Reported by Dmitry V. Levin.
42167
42168 2007-04-12  Bruno Haible  <bruno@clisp.org>
42169
42170         * modules/fflush (Include): Mention <stdio.h>.
42171         * modules/strtoimax (Include): Mention <inttypes.h>.
42172         * modules/strtoumax (Include): Likewise.
42173
42174 2007-04-12  Eric Blake  <ebb9@byu.net>
42175
42176         * .cvsignore: New file.
42177         * .gitignore: Likewise.
42178
42179 2007-04-12  Bruno Haible  <bruno@clisp.org>
42180
42181         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
42182         not before, since $(LDADD) often contains libgnu.a.
42183         * modules/striconv-tests (test_striconv_LDADD): Likewise.
42184         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
42185         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
42186         Needed on Cygwin.
42187
42188 2007-04-12  Eric Blake  <ebb9@byu.net>
42189
42190         Work around glibc's failure to flush stdin on fclose.
42191         * lib/closein.c (close_stdin): Flush stdin before closing.
42192
42193         Work around glibc's failure to reset seekable stdin on exit.
42194         * modules/closein: New module.
42195         * lib/closein.c: New file.
42196         * lib/closein.h: Likewise.
42197         * m4/closein.m4: Likewise.
42198         * MODULES.html.sh (File stream based Input/Output): Document it.
42199
42200 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42201
42202         * gnulib-tool: Rename generated 'autobuild' script to
42203         'do-autobuild' in --create-megatestdir output.
42204
42205         * doc/gnulib.texi (Build robot for gnulib): Fix.
42206
42207 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42208
42209         * modules/sysexits (Depends-on): Add absolute-header.
42210
42211 2007-04-12  Eric Blake  <ebb9@byu.net>
42212
42213         No need to preserve errno on success.
42214         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
42215         Reported by Bruno Haible.
42216
42217 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42218
42219         * MODULES.html.sh (Support for maintaining and releasing
42220         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
42221
42222 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42223
42224         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
42225
42226 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42227
42228         * modules/autobuild: New module.
42229
42230         * m4/autobuild.m4: New file.
42231
42232 2007-04-11  Bruno Haible  <bruno@clisp.org>
42233
42234         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
42235         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
42236         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
42237         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
42238         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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/snprintf-posix.m4 (gl_FUNC_SNPRINTF_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/sprintf-posix.m4 (gl_FUNC_SPRINTF_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/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_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/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_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         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
42257         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42258         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42259         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
42260         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42261         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42262         Reported by Eric Blake.
42263
42264 2007-04-11  Bruno Haible  <bruno@clisp.org>
42265
42266         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
42267
42268 2007-04-10  Bruno Haible  <bruno@clisp.org>
42269
42270         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
42271         for NaN and Infinity. Needed on FreeBSD 6.1.
42272         * tests/test-vasnprintf-posix.c (test_function): Undo last change
42273         regarding results for "%010a" of Infinity and NaN.
42274         * tests/test-vasprintf-posix.c (test_function): Likewise.
42275         * tests/test-snprintf-posix.h (test_function): Likewise.
42276         * tests/test-sprintf-posix.h (test_function): Likewise.
42277         * tests/test-fprintf-posix.h (test_function): Likewise.
42278         * tests/test-printf-posix.h (test_function): Likewise.
42279         * tests/test-fprintf-posix.out: Likewise.
42280
42281 2007-04-10  Bruno Haible  <bruno@clisp.org>
42282
42283         * modules/locale-tests: New file.
42284         * tests/test-locale.c: New file.
42285
42286         * modules/locale: New file.
42287         * lib/locale_.h: New file.
42288         * m4/locale_h.m4: New file.
42289
42290 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
42291             Bruno Haible  <bruno@clisp.org>
42292
42293         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
42294         be determined, test for availability of the copysignf, copysign,
42295         copysignl functions.
42296         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
42297         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
42298         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
42299
42300 2007-04-09  Eric Blake  <ebb9@byu.net>
42301
42302         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
42303         * modules/stdio (Makefile.am): Support fflush.
42304         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42305         * modules/fflush: New file.
42306         * lib/fflush.c: Likewise.
42307         * m4/fflush.m4: Likewise.
42308         * modules/fflush-tests: New test.
42309         * tests/test-fflush.c: Likewise.
42310         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
42311
42312 2007-04-06  Bruno Haible  <bruno@clisp.org>
42313
42314         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
42315         (VASNPRINTF): Use signbit for faster determination whether to print a
42316         minus sign.
42317         * modules/vasnprintf (Files): Remove lib/float+.h.
42318         * modules/fprintf-posix (Depends-on): Add signbit.
42319         * modules/snprintf-posix (Depends-on): Likewise.
42320         * modules/sprintf-posix (Depends-on): Likewise.
42321         * modules/vasnprintf-posix (Depends-on): Likewise.
42322         * modules/vasprintf-posix (Depends-on): Likewise.
42323         * modules/vfprintf-posix (Depends-on): Likewise.
42324         * modules/vsnprintf-posix (Depends-on): Likewise.
42325         * modules/vsprintf-posix (Depends-on): Likewise.
42326
42327 2007-04-06  Bruno Haible  <bruno@clisp.org>
42328
42329         * tests/test-frexp.c (main): Test also the sign bit of zero results.
42330         * tests/test-frexpl.c (main): Likewise.
42331         * tests/test-ldexpl.c (main): Likewise.
42332         * modules/frexp-tests (Depends-on): Add signbit.
42333         * modules/frexpl-tests (Depdends-on): Likewise.
42334         * modules/ldexpl-tests (Depdends-on): Likewise.
42335
42336 2007-04-06  Bruno Haible  <bruno@clisp.org>
42337
42338         * modules/signbit-tests: New file.
42339         * tests/test-signbit.c: New file.
42340
42341         * modules/signbit: New file.
42342         * lib/signbitf.c: New file.
42343         * lib/signbitd.c: New file.
42344         * lib/signbitl.c: New file.
42345         * m4/signbit.m4: New file.
42346         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
42347         (signbit): New macro.
42348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
42349         REPLACE_SIGNBIT.
42350         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
42351         REPLACE_FREXPL into math.h.
42352
42353 2007-04-06  Bruno Haible  <bruno@clisp.org>
42354
42355         * modules/isnanf-nolibm-tests: New file.
42356         * tests/test-isnanf.c: New file.
42357
42358         * modules/isnanf-nolibm: New file.
42359         * lib/isnanf.h: New file.
42360         * lib/isnanf.c: New file.
42361         * lib/isnan.c: Consider the USE_FLOAT macro.
42362         * m4/isnanf.m4: New file.
42363
42364 2007-04-06  Bruno Haible  <bruno@clisp.org>
42365
42366         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
42367         (Link): New section.
42368
42369         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
42370
42371 2007-04-06  Bruno Haible  <bruno@clisp.org>
42372
42373         Assume the 'long double' type.
42374         * m4/longdouble.m4: Remove file.
42375         * config/srclist.txt: Don't mention longdouble.m4.
42376         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
42377         * lib/float+.h: Likewise.
42378         * lib/frexp.c: Likewise.
42379         * lib/printf-args.h: Likewise.
42380         * lib/printf-args.c: Likewise.
42381         * lib/printf-frexp.c: Likewise.
42382         * lib/printf-parse.c: Likewise.
42383         * lib/vasnprintf.c: Likewise.
42384         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
42385         * m4/intl.m4: Likewise.
42386         * m4/isnanl.m4: Likewise.
42387         * m4/printf.m4: Likewise.
42388         * m4/printf-frexpl.m4: Likewise.
42389         * m4/vasnprintf.m4: Likewise.
42390         * modules/allocsa (Files): Remove m4/longdouble.m4.
42391         * modules/gettext (Files): Likewise.
42392         * modules/relocatable-prog-wrapper (Files): Likewise.
42393         * modules/vasnprintf (Files): Likewise.
42394         * modules/isnanl (Files): Likewise.
42395         (Include): Simplify.
42396         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
42397         (Include): Simplify.
42398         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
42399         (Include): Simplify.
42400         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
42401         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42402         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
42403         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42404         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42405         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42406         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
42407         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42408         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42409         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42410         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
42411         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42412         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
42413         * tests/test-isnanl.c: Likewise.
42414         * tests/test-snprintf-posix.h: Likewise.
42415         * tests/test-sprintf-posix.h: Likewise.
42416         * tests/test-vasnprintf-posix.c: Likewise.
42417         * tests/test-vasnprintf-posix2.c: Likewise.
42418         * tests/test-vasprintf-posix.c: Likewise.
42419
42420 2007-04-06  Bruno Haible  <bruno@clisp.org>
42421
42422         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
42423         * lib/math_.h [__DECC]: Include the overridden include file through
42424         #include_next, outside the double-inclusion guard.
42425         * lib/stdio_.h [__DECC]: Likewise.
42426         * lib/stdlib_.h [__DECC]: Likewise.
42427         * lib/string_.h [__DECC]: Likewise.
42428         * lib/time_.h [__DECC]: Likewise.
42429         * lib/wchar_.h [__DECC]: Likewise.
42430         * lib/wctype_.h [__DECC]: Likewise.
42431         * lib/inttypes_.h [__DECC]: Likewise.
42432         Reported by Albert Chin <china@thewrittenword.com> in
42433         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
42434
42435 2007-04-04  Eric Blake  <ebb9@byu.net>
42436
42437         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
42438         1.5.x.
42439
42440 2007-04-04  Bruno Haible  <bruno@clisp.org>
42441
42442         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
42443         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
42444
42445 2007-04-04  Bruno Haible  <bruno@clisp.org>
42446
42447         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
42448         results for "%010a" of Infinity and NaN.
42449         * tests/test-vasprintf-posix.c (test_function): Likewise.
42450         * tests/test-snprintf-posix.h (test_function): Likewise.
42451         * tests/test-sprintf-posix.h (test_function): Likewise.
42452         * tests/test-fprintf-posix.h (test_function): Remove these tests.
42453         * tests/test-printf-posix.h (test_function): Likewise.
42454         * tests/test-fprintf-posix.out: Update.
42455         Needed for FreeBSD 6.1.
42456
42457 2007-04-04  Bruno Haible  <bruno@clisp.org>
42458
42459         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
42460         directly used by the gnulib modules nor by gnulib-tool.
42461
42462 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
42463
42464         * DEPENDENCIES: Give overall description of version dependency
42465         desirability.  Use more-typical names for apps.
42466         Add shell, coreutils, diffutils, grep, tar, gzip.
42467
42468 2007-04-04  Simon Josefsson  <simon@josefsson.org>
42469
42470         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
42471
42472 2007-04-04  Karl Berry  <karl@gnu.org>
42473
42474         * MODULES.html.sh (func_module): missing '.
42475
42476 2007-04-03  Bruno Haible  <bruno@clisp.org>
42477
42478         * modules/argmatch-tests (Makefile.am): New variable
42479         test_argmatch_LDADD.
42480         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
42481         * modules/array-list-tests (Makefile.am): New variable
42482         test_array_list_LDADD.
42483         * modules/array-oset-tests (Makefile.am): New variable
42484         test_array_oset_LDADD.
42485         * modules/avltree-list-tests (Makefile.am): New variable
42486         test_avltree_list_LDADD.
42487         * modules/avltree-oset-tests (Makefile.am): New variable
42488         test_avltree_oset_LDADD.
42489         * modules/avltreehash-list-tests (Makefile.am): New variable
42490         test_avltreehash_list_LDADD.
42491         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
42492         test_canonicalize_lgpl_LDADD.
42493         * modules/carray-list-tests (Makefile.am): New variable
42494         test_carray_list_LDADD.
42495         * modules/dirname-tests (Makefile.am): New variable
42496         test_dirname_LDADD.
42497         * modules/linked-list-tests (Makefile.am): New variable
42498         test_linked_list_LDADD.
42499         * modules/linkedhash-list-tests (Makefile.am): New variable
42500         test_linkedhash_list_LDADD.
42501         * modules/rbtree-list-tests (Makefile.am): New variable
42502         test_rbtree_list_LDADD.
42503         * modules/rbtree-oset-tests (Makefile.am): New variable
42504         test_rbtree_oset_LDADD.
42505         * modules/rbtreehash-list-tests (Makefile.am): New variable
42506         test_rbtreehash_list_LDADD.
42507         * modules/xvasprintf-tests (Makefile.am): New variable
42508         test_xvasprintf_LDADD.
42509         Reported by Eric Blake.
42510
42511 2007-04-03  Eric Blake  <ebb9@byu.net>
42512
42513         * DEPENDENCIES: Weaken m4 requirements.
42514
42515 2007-04-03  Bruno Haible  <bruno@clisp.org>
42516
42517         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
42518         * modules/isnanl-tests (configure.ac): Likewise.
42519
42520 2007-04-03  Ben Pfaff  <blp@gnu.org>
42521
42522         * modules/iconv_open: Add $(srcdir)/ to source directory
42523         references in Makefile fragments that call gperf, to fix VPATH
42524         builds.
42525
42526 2007-04-03  Bruno Haible  <bruno@clisp.org>
42527
42528         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
42529         * lib/ldexpl.c: Undo last change.
42530
42531 2007-04-03  Bruno Haible  <bruno@clisp.org>
42532
42533         * modules/printf-frexpl (Depends-on): Undo last change.
42534         (Files): Add m4/ldexpl.m4.
42535
42536 2007-04-03  Bruno Haible  <bruno@clisp.org>
42537
42538         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
42539         * modules/isnanl (Link): New section.
42540
42541         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
42542         * modules/frexp (Link): New section.
42543
42544         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
42545         * modules/frexpl (Link): New section.
42546
42547         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
42548         * modules/ldexpl (Link): New section.
42549
42550 2007-04-03  Bruno Haible  <bruno@clisp.org>
42551
42552         * modules/TEMPLATE-EXTENDED: New file.
42553         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
42554
42555 2007-04-03  Bruno Haible  <bruno@clisp.org>
42556
42557         * DEPENDENCIES: New file.
42558         Suggested by Simon Josefsson.
42559
42560 2007-04-03  Bruno Haible  <bruno@clisp.org>
42561
42562         * doc/gnulib.texi: Escape @.
42563
42564 2007-04-03  James Youngman  <jay@gnu.org>
42565         and Paul Eggert  <eggert@cs.ucla.edu>
42566
42567         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
42568         birthtime on all systems that have birthtime, not just those which
42569         use st_birthtimensec rather than st_birthtim.  Putting zero in
42570         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
42571         that the birth time is not available for files on an NFS mount.
42572
42573 2007-04-03  Simon Josefsson  <simon@josefsson.org>
42574
42575         * modules/memxor: Move back from crypto/, suggested by Bruno.
42576         * modules/crypto/hmac-sha1: Fix memxor dependency.
42577
42578         * modules/crypto/gc: Moved from ../.
42579
42580 2007-04-02  Eric Blake  <ebb9@byu.net>
42581
42582         * lib/ldexpl.c (includes): Avoid libm.
42583
42584         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
42585
42586 2007-04-02  Bruno Haible  <bruno@clisp.org>
42587
42588         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
42589         on IRIX.
42590
42591 2007-04-02  Bruno Haible  <bruno@clisp.org>
42592
42593         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
42594         x86 or x86_64 platforms running MacOS X.
42595         Reported by Ryan Schmidt <@ryandesign.com>.
42596
42597 2007-04-02  Bruno Haible  <bruno@clisp.org>
42598
42599         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
42600         i386.
42601
42602 2007-04-01  Simon Josefsson  <simon@josefsson.org>
42603
42604         * modules/crypto/arcfour: Moved from ../.
42605         * modules/crypto/arcfour-tests: Moved from ../.
42606         * modules/crypto/arctwo: Moved from ../.
42607         * modules/crypto/arctwo-tests: Moved from ../.
42608         * modules/crypto/des: Moved from ../.
42609         * modules/crypto/des-tests: Moved from ../.
42610         * modules/crypto/gc-arcfour: Moved from ../.
42611         * modules/crypto/gc-arcfour-tests: Moved from ../.
42612         * modules/crypto/gc-arctwo: Moved from ../.
42613         * modules/crypto/gc-arctwo-tests: Moved from ../.
42614         * modules/crypto/gc-des: Moved from ../.
42615         * modules/crypto/gc-des-tests: Moved from ../.
42616         * modules/crypto/gc-hmac-md5: Moved from ../.
42617         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
42618         * modules/crypto/gc-hmac-sha1: Moved from ../.
42619         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
42620         * modules/crypto/gc-md2: Moved from ../.
42621         * modules/crypto/gc-md2-tests: Moved from ../.
42622         * modules/crypto/gc-md4: Moved from ../.
42623         * modules/crypto/gc-md4-tests: Moved from ../.
42624         * modules/crypto/gc-md5: Moved from ../.
42625         * modules/crypto/gc-md5-tests: Moved from ../.
42626         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
42627         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
42628         * modules/crypto/gc-random: Moved from ../.
42629         * modules/crypto/gc-rijndael: Moved from ../.
42630         * modules/crypto/gc-rijndael-tests: Moved from ../.
42631         * modules/crypto/gc-sha1: Moved from ../.
42632         * modules/crypto/gc-sha1-tests: Moved from ../.
42633         * modules/crypto/gc-tests: Moved from ../.
42634         * modules/crypto/hmac-md5: Moved from ../.
42635         * modules/crypto/hmac-md5-tests: Moved from ../.
42636         * modules/crypto/hmac-sha1: Moved from ../.
42637         * modules/crypto/hmac-sha1-tests: Moved from ../.
42638         * modules/crypto/md2: Moved from ../.
42639         * modules/crypto/md2-tests: Moved from ../.
42640         * modules/crypto/md4: Moved from ../.
42641         * modules/crypto/md4-tests: Moved from ../.
42642         * modules/crypto/md5: Moved from ../.
42643         * modules/crypto/md5-tests: Moved from ../.
42644         * modules/crypto/memxor: Moved from ../.
42645         * modules/crypto/rijndael: Moved from ../.
42646         * modules/crypto/rijndael-tests: Moved from ../.
42647         * modules/crypto/sha1: Moved from ../.
42648
42649 2007-03-30  James Youngman  <jay@gnu.org>
42650
42651         * tests/test-stat-time.c (prepare_test): use chmod() rather than
42652         rename() to change the ctime of a file (because ctime is unaffected
42653         by rename on jfs2 on AIX 5.1).
42654         (main): Start by doing cleanup, in case a previous run failed leaving
42655         test files behind.
42656
42657 2007-03-31  Bruno Haible  <bruno@clisp.org>
42658
42659         Support old proprietary implementations of iconv.
42660         * modules/iconv_open: New file.
42661         * lib/iconv_.h: New file.
42662         * m4/iconv_h.m4: New file.
42663         * lib/iconv_open.c: New file.
42664         * lib/iconv_open-aix.gperf: New file.
42665         * lib/iconv_open-hpux.gperf: New file.
42666         * lib/iconv_open-irix.gperf: New file.
42667         * lib/iconv_open-osf.gperf: New file.
42668         * m4/iconv_open.m4: New file.
42669         * modules/linebreak (Depends-on): Add iconv_open.
42670         * modules/striconv (Depends-on): Likewise.
42671         * modules/striconveh (Depends-on): Likewise.
42672         * modules/unicodeio (Depends-on): Likewise.
42673         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
42674         (iconv_t)(-1).
42675         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
42676         conversion if cd is (iconv_t)(-1).
42677         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
42678         is not possible.
42679
42680 2007-03-31  Bruno Haible  <bruno@clisp.org>
42681
42682         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42683         work on Solaris either. Protect also second use of "autodetect_jp".
42684
42685 2007-03-31  Bruno Haible  <bruno@clisp.org>
42686
42687         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
42688         the function is not present.
42689
42690 2007-03-31  Bruno Haible  <bruno@clisp.org>
42691
42692         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
42693         the function is not present.
42694
42695 2007-03-31  Bruno Haible  <bruno@clisp.org>
42696
42697         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
42698         a bug in HP-UX iconv_open().
42699
42700 2007-03-31  Bruno Haible  <bruno@clisp.org>
42701
42702         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
42703         (Mathematics <math.h>): New section, add fpieee.
42704         (Input/output <stdio.h>): Add fseterr.
42705         (Mathematics <math.h>): New section, add printf-frexp.
42706         (Container data structures): Add sublist.
42707         (Core language properties): Add fpucw, inline.
42708         (Functions for greatest-width integer types <inttypes.h>): Add
42709         imaxabs, imaxdiv, inttypes.
42710         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
42711         isnanl-nolibm, ldexp.
42712         (Mathematics <math.h>): New section, add printf-frexpl.
42713         (Support for systems lacking POSIX:2001): Add fprintf-posix,
42714         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
42715         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
42716         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
42717         (Unicode string functions): Add unistr/u*-mbtoucr.
42718         (Java): Add javacomp-script, javaexec-script.
42719         (C#): Add csharpcomp-script, csharpexec-script.
42720         (Support for building libraries and executables): Add havelib,
42721         relocatable-*.
42722         (Support for maintaining and releasing projects): Renamed from
42723         'Support for maintaining and release projects'. Add announce-gen.
42724
42725 2007-03-31  Bruno Haible  <bruno@clisp.org>
42726
42727         * README: Talk primarily about git.
42728         (git and CVS): Renamed from CVS.
42729         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
42730         gnulib is available through git.
42731         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
42732
42733 2007-03-30  Bruno Haible  <bruno@clisp.org>
42734
42735         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
42736         * lib/poll_.h: Likewise.
42737         * lib/stat_.h: Likewise.
42738         * lib/sys_time_.h: Likewise.
42739         * lib/sysexit_.h: Likewise.
42740         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
42741         * lib/stdbool_.h: Likewise.
42742         * lib/byteswap_.h: Add double-inclusion guard.
42743
42744 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
42745
42746         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
42747
42748 2007-03-30  Karl Berry  <karl@gnu.org>
42749
42750         * config/srclist-update: double space after USA in the license
42751         substitution, since that's how it's usually (?) written.
42752
42753 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42754
42755         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
42756         reported by Bruno Haible.
42757
42758 2007-03-29  Bruno Haible  <bruno@clisp.org>
42759
42760         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
42761         a bug in AIX iconv().
42762
42763 2007-03-29  Bruno Haible  <bruno@clisp.org>
42764
42765         * modules/ldexpl-tests: New file.
42766         * tests/test-ldexpl.c: New file.
42767
42768 2007-03-29  Bruno Haible  <bruno@clisp.org>
42769
42770         * lib/ldexpl.c: Include fpucw.h.
42771         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
42772         multiplication.
42773         * modules/ldexpl (Depends-on): Add fpucw.
42774
42775 2007-03-29  Bruno Haible  <bruno@clisp.org>
42776
42777         * modules/ldexpl: New file.
42778         * m4/ldexpl.m4: New file.
42779         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
42780         set.
42781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
42782         REPLACE_LDEXPL.
42783         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
42784         REPLACE_LDEXPL.
42785         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42786         gl_FUNC_LDEXPL_WORKS.
42787         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
42788         * modules/mathl (Files): Remove lib/ldexpl.c.
42789         (Depends-on): Add ldexpl.
42790
42791 2007-03-29  Bruno Haible  <bruno@clisp.org>
42792
42793         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
42794
42795 2007-03-29  Bruno Haible  <bruno@clisp.org>
42796
42797         * tests/test-striconveh.c (main): Don't assume that a direct conversion
42798         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
42799         and possibly also HP-UX.
42800         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42801         work on AIX, IRIX, HP-UX, OSF/1.
42802         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42803         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42804         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42805         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42806         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
42807         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42808
42809 2007-03-29  Bruno Haible  <bruno@clisp.org>
42810
42811         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
42812
42813 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42814
42815         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
42816         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
42817
42818 2007-03-29  Eric Blake  <ebb9@byu.net>
42819
42820         * lib/acl-internal.h: Remove redundant include.
42821         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
42822         Cygwin when a file is locked.
42823
42824 2007-03-29  Bruno Haible  <bruno@clisp.org>
42825
42826         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
42827         file.
42828         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
42829
42830 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42831
42832         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
42833         try to remove a parent directory if the child couldn't be removed
42834         (except for the first rmdir, which could fail because the child
42835         doesn't exist).  Problem reported by Jeff Blaine in
42836         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
42837
42838 2007-03-28  Bruno Haible  <bruno@clisp.org>
42839
42840         * lib/striconveh.c (utf8conv_carefully): New function.
42841         (mem_cd_iconveh_internal): Invoke it.
42842
42843 2007-03-28  Bruno Haible  <bruno@clisp.org>
42844
42845         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
42846         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
42847         input.
42848         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
42849         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
42850         unistr/u8-uctomb.
42851
42852 2007-03-28  Bruno Haible  <bruno@clisp.org>
42853
42854         * modules/unistr/u8-mbtoucr: New file.
42855         * lib/unistr/u8-mbtoucr.c: New file.
42856         * modules/unistr/u16-mbtoucr: New file.
42857         * lib/unistr/u16-mbtoucr.c: New file.
42858         * modules/unistr/u16-mbtoucr: New file.
42859         * lib/unistr/u16-mbtoucr.c: New file.
42860         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
42861
42862 2007-03-27  Simon Josefsson  <simon@josefsson.org>
42863             Bruno Haible  <bruno@clisp.org>
42864
42865         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
42866         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
42867         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
42868
42869         * m4/stdio_h.m4: Add stubs for vasprintf too.
42870
42871         * modules/stdio: Support vasprintf in sed command.
42872
42873         * modules/vasprintf: Depend on stdio for prototypes.  Remove
42874         vasprintf.h.  Add stdio module indicator.
42875
42876         * lib/stdio_.h: Declare asprintf and vasprintf, based on
42877         vasprintf.h.
42878
42879         * lib/vasprintf.h: File removed.
42880
42881         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
42882         * lib/vasprintf.c: Ditto.
42883         * lib/xvasprintf.c: Ditto.
42884         * tests/test-vasprintf-posix.c: Ditto.
42885         * tests/test-vasprintf.c: Ditto.
42886
42887 2007-03-27  Bruno Haible  <bruno@clisp.org>
42888
42889         Make vasnprintf multithread-safe.
42890         * lib/vasnprintf.c (decimal_point_char): New function.
42891         (VASNPRINTF): Use it.
42892         Suggested by Simon Josefsson.
42893
42894 2007-03-27  Eric Blake  <ebb9@byu.net>
42895
42896         Support sub-second birthtime on cygwin.
42897         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
42898         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
42899         (get_stat_birthtime): Also work with st_birthtim.
42900
42901 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
42902
42903         * lib/stat-time.h (USE_BIRTHTIME): Remove.
42904         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
42905         (get_stat_birthtime_ns): Do not try to use "spare" fields.
42906         (get_stat_birthtime_ns): Simplify compile-time tests.
42907         (get_stat_birthtime): Change the API to look like
42908         get_stat_mtime etc., except return a negative tv_nsec on error.
42909         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
42910         Don't check for "spare" fields.
42911         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
42912         or for struct stat.st_birthtime, as these tests aren't used.
42913         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
42914
42915 2007-03-27  Bruno Haible  <bruno@clisp.org>
42916
42917         * lib/stat-time.h: Include <sys/stat.h>.
42918
42919 2007-03-27  James Youngman  <jay@gnu.org>
42920
42921         * lib/stat-time.h (get_stat_birthtime): New function for
42922           retrieving st_birthtime as provided by UFS2 (hence *BSD).
42923         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
42924           and its variants.
42925         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
42926         * modules/stat-time-test: New file.
42927         * tests/test-stat-time.c: New test, devised by Bruno Haible.
42928
42929 2007-03-26  Bruno Haible  <bruno@clisp.org>
42930
42931         Better support of signalling NaNs.
42932         * lib/atanl.c: Include isnanl.h.
42933         (atanl): Perform test for NaN at the beginning of the function and
42934         through a call to isnanl.
42935         * lib/cosl.c: Include isnanl.h.
42936         (cosl): Perform test for NaN at the beginning of the function and
42937         through a call to isnanl.
42938         * lib/ldexpl.c: Include isnanl.h.
42939         (ldexpl): Perform test for NaN through a call to isnanl.
42940         * lib/logl.c: Include isnanl.h.
42941         (logl): Perform test for NaN at the beginning of the function and
42942         through a call to isnanl.
42943         * lib/sinl.c: Include isnanl.h.
42944         (sinl): Perform test for NaN at the beginning of the function and
42945         through a call to isnanl.
42946         * lib/sqrtl.c: Include isnanl.h.
42947         (sqrtl): Perform test for NaN at the beginning of the function and
42948         through a call to isnanl.
42949         * lib/tanl.c: Include isnanl.h.
42950         (tanl): Perform test for NaN at the beginning of the function and
42951         through a call to isnanl.
42952         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
42953         * modules/mathl (Depends-on): Add isnanl.
42954
42955 2007-03-26  Eric Blake  <ebb9@byu.net>
42956
42957         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
42958         regression in logic sense of previous patch.
42959
42960 2007-03-26  Bruno Haible  <bruno@clisp.org>
42961
42962         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
42963         unportable shell command "if ! ...".
42964         Reported by Ralf Wildenhues.
42965
42966 2007-03-25  Bruno Haible  <bruno@clisp.org>
42967
42968         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
42969         <sysexits.h> file, and only add EX_CONFIG.
42970         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
42971         absolute file name and whether it is sufficient. Substitute also
42972         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
42973         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
42974         ABSOLUTE_SYSEXITS_H into sysexits.h.
42975
42976 2007-03-25  Bruno Haible  <bruno@clisp.org>
42977
42978         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
42979         hints is NULL.
42980
42981 2007-03-25  Bruno Haible  <bruno@clisp.org>
42982
42983         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
42984         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
42985
42986 2007-03-25  Bruno Haible  <bruno@clisp.org>
42987
42988         * lib/vasnprintf.c: Include langinfo.h.
42989         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
42990         multithread-safe.
42991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
42992         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
42993         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42994         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42995         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42996         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42997         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42998         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
42999         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43000         Reported by Simon Josefsson.
43001
43002 2007-03-25  Bruno Haible  <bruno@clisp.org>
43003
43004         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
43005         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
43006         * modules/vasnprintf (Depends-on): Add stdint.
43007
43008 2007-03-25  Bruno Haible  <bruno@clisp.org>
43009
43010         * modules/fpieee: New file.
43011         * m4/fpieee.m4: New file.
43012         * modules/isnan-nolibm (Depends-on): Add fpieee.
43013         * modules/isnanl-nolibm (Depends-on): Add fpieee.
43014         * modules/isnanl (Depends-on): Add fpieee.
43015
43016 2007-03-25  Bruno Haible  <bruno@clisp.org>
43017
43018         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
43019
43020 2007-03-25  Bruno Haible  <bruno@clisp.org>
43021
43022         Avoid test failures on IRIX 6.5.
43023         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
43024         (main): Use it.
43025         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
43026         macros.
43027         (main): Use them.
43028
43029 2007-03-25  Bruno Haible  <bruno@clisp.org>
43030
43031         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
43032         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
43033         exists but doesn't work.
43034         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
43035         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
43036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
43037         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
43038
43039 2007-03-25  Bruno Haible  <bruno@clisp.org>
43040
43041         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
43042         returns inf. Needed on IRIX 6.5.
43043
43044 2007-03-25  Bruno Haible  <bruno@clisp.org>
43045
43046         * tests/test-frexpl.c: Include isnanl-nolibm.h.
43047         (main): Use isnanl instead of x != x idiom.
43048         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
43049
43050         * tests/test-frexp.c: Include isnan.h.
43051         (main): Use isnan instead of x != x idiom.
43052         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
43053
43054 2007-03-25  Bruno Haible  <bruno@clisp.org>
43055
43056         * tests/test-frexp.c (NaN): New function/macro.
43057         (main): Use it instead of 0.0 / 0.0.
43058         * tests/test-isnan.c (NaN): New function/macro.
43059         (main): Use it instead of 0.0 / 0.0.
43060         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
43061         (test_function): Use it instead of 0.0 / 0.0.
43062         * tests/test-vasprintf-posix.c (NaN): New function/macro.
43063         (test_function): Use it instead of 0.0 / 0.0.
43064         * tests/test-snprintf-posix.h (NaN): New function/macro.
43065         (test_function): Use it instead of 0.0 / 0.0.
43066         * tests/test-sprintf-posix.h (NaN): New function/macro.
43067         (test_function): Use it instead of 0.0 / 0.0.
43068         * tests/test-fprintf-posix.h (NaN): New function/macro.
43069         (test_function): Use it instead of 0.0 / 0.0.
43070         * tests/test-printf-posix.h (NaN): New function/macro.
43071         (test_function): Use it instead of 0.0 / 0.0.
43072
43073         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
43074
43075 2007-03-25  Bruno Haible  <bruno@clisp.org>
43076
43077         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
43078
43079 2007-03-25  Bruno Haible  <bruno@clisp.org>
43080
43081         * lib/regexec.c (merge_state_with_log): Make static.
43082
43083 2007-03-25  Bruno Haible  <bruno@clisp.org>
43084
43085         * lib/trigl.c (kernel_rem_pio2): Make static.
43086
43087 2007-03-25  Bruno Haible  <bruno@clisp.org>
43088
43089         * lib/sincosl.c (sincosl_table): Make static.
43090
43091 2007-03-25  Bruno Haible  <bruno@clisp.org>
43092
43093         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
43094         if the compiler does not support C99.
43095
43096 2007-03-25  Bruno Haible  <bruno@clisp.org>
43097
43098         * modules/time (Makefile.am): Ensure all rule action lines start with a
43099         tab.
43100
43101 2007-03-24  Bruno Haible  <bruno@clisp.org>
43102
43103         * modules/tsearch-tests: New file.
43104         * tests/test-tsearch.sh: New file.
43105         * tests/test-tsearch.c: New file, mostly copied from glibc.
43106
43107         * modules/search-tests: New file.
43108         * tests/test-search.c: New file.
43109
43110         * modules/search: New file.
43111         * lib/search_.h: New file, incorporating lib/tsearch.h.
43112         * m4/search_h.m4: New file.
43113         * lib/tsearch.h: Remove file.
43114         * lib/tsearch.c: Include search.h instead of tsearch.h.
43115         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
43116         HAVE_TSEARCH.
43117         * modules/tsearch (Files): Remove lib/tsearch.h.
43118         (Depends-on): Add search.
43119         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
43120         (Include): Change tsearch.h into search.h.
43121
43122 2007-03-24  Bruno Haible  <bruno@clisp.org>
43123
43124         * modules/fpucw: New file.
43125         * lib/fpucw.h: New file.
43126         * lib/frexp.c: Include fpucw.h.
43127         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
43128         (FUNC): Use them.
43129         * lib/printf-frexp.c: Include fpucw.h.
43130         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
43131         (FUNC): Use them.
43132         * lib/vasnprintf.c: Include fpucw.h.
43133         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
43134         'long double' calculations.
43135         * tests/test-frexpl.c: Include fpucw.h.
43136         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
43137         * tests/test-printf-frexpl.c: Include fpucw.h.
43138         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
43139         * modules/frexpl (Depends-on): Add fpucw.
43140         * modules/printf-frexpl (Depends-on): Likewise.
43141         * modules/fprintf-posix (Depends-on): Likewise.
43142         * modules/snprintf-posix (Depends-on): Likewise.
43143         * modules/sprintf-posix (Depends-on): Likewise.
43144         * modules/vasnprintf-posix (Depends-on): Likewise.
43145         * modules/vasprintf-posix (Depends-on): Likewise.
43146         * modules/vfprintf-posix (Depends-on): Likewise.
43147         * modules/vsnprintf-posix (Depends-on): Likewise.
43148         * modules/vsprintf-posix (Depends-on): Likewise.
43149         * modules/frexpl-tests (Depends-on): Likewise.
43150         * modules/printf-frexpl-tests (Depends-on): Likewise.
43151
43152 2007-03-24  Bruno Haible  <bruno@clisp.org>
43153
43154         * lib/float+.h: New file.
43155         * lib/isnan.c: Include float+.h.
43156         (SIZE): New macro.
43157         (FUNC): Compare only SIZE bytes of the value.
43158         * lib/vasnprintf.c: Include float+.h.
43159         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
43160         SIZEOF_LDBL or SIZEOF_DBL bytes.
43161         * modules/isnan-nolibm (Files): Add lib/float+.h.
43162         * modules/isnanl-nolibm (Files): Add lib/float+.h.
43163         * modules/isnanl (Files): Add lib/float+.h.
43164         * modules/vasnprintf (Files): Add lib/float+.h.
43165
43166 2007-03-24  Bruno Haible  <bruno@clisp.org>
43167
43168         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
43169         include isnanl-nolibm.h.
43170
43171 2007-03-24  Bruno Haible  <bruno@clisp.org>
43172
43173         * tests/test-read-file.c (main): Don't produce spurious output for
43174         expected situations. Make the test fail if it encountered unexpected
43175         results.
43176
43177 2007-03-24  Bruno Haible  <bruno@clisp.org>
43178
43179         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
43180         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
43181
43182 2007-03-24  Bruno Haible  <bruno@clisp.org>
43183
43184         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
43185
43186 2007-03-24  Bruno Haible  <bruno@clisp.org>
43187
43188         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
43189         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
43190
43191         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
43192         * modules/utf8-ucs4: Turn into a symbolic link to module
43193         unistr/u8-mbtouc.
43194
43195         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
43196         utf8-ucs4-unsafe.
43197         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
43198         unistr/u8-mbtouc-unsafe.
43199
43200         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
43201         * modules/utf16-ucs4: Turn into a symbolic link to module
43202         unistr/u16-mbtouc.
43203
43204         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
43205         utf16-ucs4-unsafe.
43206         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
43207         unistr/u16-mbtouc-unsafe.
43208
43209         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
43210         * modules/ucs4-utf8: Turn into a symbolic link to module
43211         unistr/u8-ubtomb.
43212
43213         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
43214         * modules/ucs4-utf16: Turn into a symbolic link to module
43215         unistr/u16-ubtomb.
43216
43217 2007-03-24  Bruno Haible  <bruno@clisp.org>
43218
43219         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
43220         Enable the function only if HAVE_INLINE.
43221         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
43222         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
43223         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
43224         Enable the function only if HAVE_INLINE.
43225         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
43226         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
43227         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
43228         Enable the function only if HAVE_INLINE.
43229         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
43230         Enable the function only if HAVE_INLINE.
43231         * modules/utf8-ucs4: Update.
43232         * modules/utf8-ucs4-unsafe: Update.
43233         * modules/utf16-ucs4: Update.
43234         * modules/utf16-ucs4-unsafe: Update.
43235         * modules/ucs4-utf8: Update.
43236         * modules/ucs4-utf16: Update.
43237
43238 2007-03-24  Bruno Haible  <bruno@clisp.org>
43239
43240         * lib/utf8-ucs4.h: Remove file.
43241         * lib/utf8-ucs4-unsafe.h: Remove file.
43242         * lib/utf16-ucs4.h: Remove file.
43243         * lib/utf16-ucs4-unsafe.h: Remove file.
43244         * lib/ucs4-utf8.h: Remove file.
43245         * lib/ucs4-utf16.h: Remove file.
43246         * lib/unistr.h: Include their previous contents.
43247         * m4/utf-ucs4.m4: Remove file.
43248         * m4/ucs4-utf.m4: Remove file.
43249         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
43250         (Depends-on): Add unistr/base.
43251         (configure.ac): Remove gl_UTF_UCS4.
43252         (Makefile.am): Update.
43253         (Include): Change to unistr.h.
43254         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
43255         (Depends-on): Add unistr/base.
43256         (configure.ac): Remove gl_UTF_UCS4.
43257         (Makefile.am): Update.
43258         (Include): Change to unistr.h.
43259         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
43260         (Depends-on): Add unistr/base.
43261         (configure.ac): Remove gl_UTF_UCS4.
43262         (Makefile.am): Update.
43263         (Include): Change to unistr.h.
43264         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
43265         (Depends-on): Add unistr/base.
43266         (configure.ac): Remove gl_UTF_UCS4.
43267         (Makefile.am): Update.
43268         (Include): Change to unistr.h.
43269         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
43270         (Depends-on): Add unistr/base.
43271         (configure.ac): Remove gl_UCS4_UTF.
43272         (Makefile.am): Update.
43273         (Include): Change to unistr.h.
43274         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
43275         (Depends-on): Add unistr/base.
43276         (configure.ac): Remove gl_UCS4_UTF.
43277         (Makefile.am): Update.
43278         (Include): Change to unistr.h.
43279         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
43280         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
43281         utf8-ucs4-unsafe.h.
43282         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
43283         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
43284         utf16-ucs4-unsafe.h.
43285         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
43286         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
43287         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
43288         * lib/unistr/u8-strchr.c: Likewise.
43289         * lib/unistr/u8-strrchr.c: Likewise.
43290         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
43291         * lib/unistr/u16-strchr.c: Likewise.
43292         * lib/unistr/u16-strrchr.c: Likewise.
43293         * lib/striconveh.c: Update.
43294         * lib/linebreak.c: Update.
43295
43296 2007-03-24  Bruno Haible  <bruno@clisp.org>
43297
43298         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
43299         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
43300
43301 2007-03-22  Bruno Haible  <bruno@clisp.org>
43302
43303         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
43304
43305 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
43306
43307         * MODULES.html.sh (File system functions): New module write-any-file.
43308         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
43309         * m4/write-any-file.m4: New files.
43310
43311 2007-03-23  Eric Blake  <ebb9@byu.net>
43312
43313         * gnulib-tool: Rearrange space-tab sequences, since some editors
43314         like to eat them.
43315
43316 2007-03-23  Eric Blake  <ebb9@byu.net>
43317
43318         * lib/version-etc.c (version_etc_va): Update license wording to
43319         be more concise.  Recommended by Richard Stallman.
43320
43321 2007-03-22  Bruno Haible  <bruno@clisp.org>
43322
43323         * lib/poll.c (MSG_PEEK): New fallback definition.
43324
43325 2007-03-22  Bruno Haible  <bruno@clisp.org>
43326
43327         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
43328         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
43329         (main): Update.
43330         Fixes a compilation error on BeOS.
43331
43332 2007-03-22  Bruno Haible  <bruno@clisp.org>
43333
43334         * modules/frexpl-tests: New file.
43335         * tests/test-frexpl.c: New file.
43336
43337         * modules/frexpl: New file.
43338         * m4/frexpl.m4: New file.
43339         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
43340         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
43341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
43342         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
43343         (Depends-on): Add frexpl. Remove isnanl-nolibm.
43344         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
43345
43346 2007-03-22  Bruno Haible  <bruno@clisp.org>
43347
43348         * lib/frexpl.c: Share code with lib/frexp.c.
43349         * modules/mathl (Files): Add lib/frexp.c.
43350         (Depends-on): Add isnanl-nolibm.
43351
43352 2007-03-22  Bruno Haible  <bruno@clisp.org>
43353
43354         * modules/printf-frexp (Files): Add m4/frexp.m4.
43355         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
43356         only if the found frexp function actually works.
43357
43358 2007-03-22  Bruno Haible  <bruno@clisp.org>
43359
43360         * lib/frexp.c: Remove older implementation that uses divisions.
43361
43362 2007-03-21  Bruno Haible  <bruno@clisp.org>
43363
43364         * modules/frexp-tests: New file.
43365         * tests/test-frexp.c: New file.
43366
43367         * modules/frexp: New file.
43368         * lib/frexp.c: New file.
43369         * m4/frexp.m4: New file.
43370         * lib/math_.h (frexp): New declaration.
43371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
43372         REPLACE_FREXP.
43373         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
43374
43375 2007-03-21  Bruno Haible  <bruno@clisp.org>
43376
43377         * modules/isnanl-tests: New file.
43378         * tests/test-isnanl.c: New file.
43379
43380         * modules/isnanl: New file.
43381         * lib/isnanl.h: New file.
43382         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
43383         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
43384         gl_FUNC_ISNANL_WORKS.
43385         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
43386         New macros.
43387
43388 2007-03-21  Bruno Haible  <bruno@clisp.org>
43389
43390         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
43391         lib/isnanl.h.
43392         (Include): Update.
43393         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
43394         * lib/vasnprintf.c: Update.
43395         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
43396         tests/test-isnanl.h, remove tests/test-isnanl.c.
43397         (Makefile.am): Update.
43398         * tests/test-isnanl-nolibm.c: New file.
43399         * tests/test-isnanl.h: New file.
43400         * tests/test-isnanl.c: Remove file.
43401
43402 2007-03-21  Jim Meyering  <jim@meyering.net>
43403
43404         When trying to open ".", treat ESTALE like EACCES.
43405         * lib/savewd.c (savewd_save): Resort to forking not just upon
43406         failure with EACCES, but also when errno is ESTALE.
43407
43408 2007-03-20  Bruno Haible  <bruno@clisp.org>
43409
43410         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
43411         Needed on AIX 5.1. Reported by Matthew Woehlke.
43412
43413 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43414
43415         Suggestions by Bruno Haible:
43416         * lib/acl-internal.h: Include "gettext.h" rather than rolling
43417         our own.
43418         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
43419         * modules/acl (Depends-on): Add gettext.
43420
43421 2007-03-19  Bruno Haible  <bruno@clisp.org>
43422
43423         * modules/iconvme: Remove file.
43424         * lib/iconvme.h: Remove file.
43425         * lib/iconvme.c: Remove file.
43426         * m4/iconvme.m4: Remove file.
43427
43428 2007-03-19  Bruno Haible  <bruno@clisp.org>
43429
43430         * doc/relocatable-maint.texi: Break long shell script line.
43431         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43432
43433 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43434
43435         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
43436         handle file_has_acl.
43437         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
43438         * lib/acl.c: Move header inclusions and related macro defns into
43439         lib/acl-internal.h.
43440         (S_ISLNK): Remove defn, since that's now done for us.
43441         (file_has_acl): Move to lib/file-has-acl.c.
43442         Call acl_trivial if available.  This is the crucial part of the fix.
43443         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
43444         shared within the library.  Rewrite a bit, partly to make it compatible
43445         with the GNU coding style.
43446         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
43447         Remove unnecessary double-quotes.
43448         Don't test for acl_to_text; the build will catch that.
43449         Replace acl_entries if it doesn't exist and it is needed.
43450         Check for -lsec and acl_trivial (as used on Solaris 10).
43451         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
43452         lib/file-has-acl.c.
43453         (Depends-on): Add sys_stat, for S_ISLNK.
43454
43455 2007-03-19  Ben Pfaff  <blp@gnu.org>
43456
43457         * doc/gnulib.texi: Fix typos.
43458         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43459
43460 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43461
43462         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
43463         If size is zero here, buf must be zero.
43464
43465 2007-03-19  Simon Josefsson  <simon@josefsson.org>
43466
43467         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
43468         <bruno@clisp.org>.
43469
43470 2007-03-18  Bruno Haible  <bruno@clisp.org>
43471
43472         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
43473         Suggested by Eric Blake.
43474
43475 2007-03-18  Ben Pfaff  <blp@gnu.org>
43476
43477         * doc/relocatable.texi: Recommend using as prefix a directory
43478         that does not exist and will never be created.  Based on
43479         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
43480         and others.
43481
43482 2007-03-17  Bruno Haible  <bruno@clisp.org>
43483
43484         * lib/fchownat.c: Include lchown.h.
43485
43486 2007-03-17  Bruno Haible  <bruno@clisp.org>
43487
43488         Fix endless loop when the given allocated size was > INT_MAX.
43489         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
43490         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
43491         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
43492         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
43493         * lib/sprintf.c (sprintf): Likewise.
43494
43495 2007-03-17  Bruno Haible  <bruno@clisp.org>
43496
43497         * tests/test-argp-2.sh (func_compare): Output a context diff.
43498
43499 2007-03-17  Bruno Haible  <bruno@clisp.org>
43500
43501         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
43502         locale's decimal-point character.
43503
43504 2007-03-17  Bruno Haible  <bruno@clisp.org>
43505
43506         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
43507         before comparing it. Needed because on some platforms (e.g. x86) a
43508         'long double' occupies less bytes than sizeof (long double).
43509
43510 2007-03-17  Bruno Haible  <bruno@clisp.org>
43511
43512         * tests/test-crc.c (main): Make printf statements 64-bit clean.
43513         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
43514         * tests/test-getaddrinfo.c (simple): Likewise.
43515         * tests/test-read-file.c (main): Likewise.
43516
43517 2007-03-17  Bruno Haible  <bruno@clisp.org>
43518
43519         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
43520
43521 2007-03-17  Bruno Haible  <bruno@clisp.org>
43522
43523         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
43524         unused variable.
43525
43526 2007-03-17  Bruno Haible  <bruno@clisp.org>
43527
43528         * tests/test-c-strcasecmp.c: Include c-strcase.h.
43529         * tests/test-c-strncasecmp.c: Likewise.
43530
43531 2007-03-17  Bruno Haible  <bruno@clisp.org>
43532
43533         * modules/stdlib (Depends-on): Add unistd.
43534         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
43535         Needed for MacOS X 10.3.
43536
43537 2007-03-17  Bruno Haible  <bruno@clisp.org>
43538
43539         * lib/unistr/u-strdup.h: Include <stdlib.h>.
43540
43541 2007-03-17  Bruno Haible  <bruno@clisp.org>
43542
43543         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
43544
43545 2007-03-17  Bruno Haible  <bruno@clisp.org>
43546
43547         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
43548         to reflect files copied from gnulib (with or without modifications).
43549         Suggested by Jim Meyering.
43550
43551 2007-03-17  Eric Blake  <ebb9@byu.net>
43552
43553         * NEWS: Document stdlib change from 2007-02-18.
43554
43555 2007-03-17  Jim Meyering  <jim@meyering.net>
43556
43557         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
43558         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
43559         someone uses a name containing shell meta-characters.
43560         Reported by Alfred M. Szmidt.
43561
43562         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
43563
43564 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43565
43566         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
43567         and copy gettext configuration files only if configure.ac contains
43568         a use of AM_GNU_GETTEXT_VERSION.
43569
43570 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43571
43572         * build-aux/bootstrap (gnulib_name): New variable.
43573         (gnulib_tool_options): Use it.
43574
43575 2007-03-13  Simon Josefsson  <simon@josefsson.org>
43576
43577         * tests/test-des.c: Use new namespace.
43578
43579 2007-03-15  Bruno Haible  <bruno@clisp.org>
43580
43581         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
43582         Reported by James Youngman <jay@gnu.org>.
43583
43584 2007-03-15  Bruno Haible  <bruno@clisp.org>
43585
43586         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
43587         declared prototype. Needed with cc on OSF/1 5.1.
43588
43589 2007-03-15  Bruno Haible  <bruno@clisp.org>
43590
43591         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
43592         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
43593         (struct gl_list_implementation): Add dispose_fn argument to the
43594         'create_empty', 'create' methods.
43595         (struct gl_list_impl_base): Add field 'dispose_fn'.
43596         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
43597         argument.
43598         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
43599         dispose_fn argument.
43600         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
43601         dispose_fn on the dropped values.
43602         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
43603         dispose_fn argument.
43604         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
43605         dropped values.
43606         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
43607         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43608         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
43609         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43610         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
43611         argument.
43612         (gl_tree_list_free): Call dispose_fn on the dropped values.
43613         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
43614         the dropped values.
43615         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
43616         Add dispose_fn argument.
43617         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
43618         Call dispose_fn on the dropped values.
43619         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
43620         Add dispose_fn argument.
43621         (gl_sublist_create): Initialize the 'dispose_fn' field.
43622         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
43623         * tests/test-array_list.c (main): Update.
43624         * tests/test-carray_list.c (main): Update.
43625         * tests/test-avltree_list.c (main): Update.
43626         * tests/test-rbtree_list.c (main): Update.
43627         * tests/test-avltreehash_list.c (main): Update.
43628         * tests/test-rbtreehash_list.c (main): Update.
43629         * tests/test-linked_list.c (main): Update.
43630         * tests/test-linkedhash_list.c (main): Update.
43631         * tests/test-array_oset.c (main): Update.
43632
43633 2007-03-15  Bruno Haible  <bruno@clisp.org>
43634
43635         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
43636         (gl_oset_create_empty): Add dispose_fn argument.
43637         (struct gl_oset_implementation): Add dispose_fn argument to
43638         'create_empty' method.
43639         (struct gl_oset_impl_base): Add dispose_fn field.
43640         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
43641         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
43642         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
43643         values.
43644         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
43645         (gl_tree_oset_free): Call dispose_fn on the dropped values.
43646         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43647         dropped value.
43648         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43649         dropped value.
43650         * tests/test-array_oset.c (main): Update.
43651         * tests/test-avltree_oset.c (main): Update.
43652         * tests/test-rbtree_oset.c (main): Update.
43653         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
43654
43655 2007-03-13  Bruno Haible  <bruno@clisp.org>
43656
43657         * tests/test-stdbool.c (i): Update after last patch.
43658
43659 2007-03-12  Bruno Haible  <bruno@clisp.org>
43660
43661         * lib/quotearg.c: Include <wctype.h> early, before the definition of
43662         the iswprint macro. Needed on Solaris 2.5.1.
43663
43664 2007-03-12  Bruno Haible  <bruno@clisp.org>
43665
43666         * tests/test-printf-frexp.c (main): Declare x as volatile.
43667
43668 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43669
43670         * doc/gnulib.texi (Build robot for gnulib): New section.
43671
43672 2007-03-12  Jim Meyering  <jim@meyering.net>
43673
43674         * build-aux/bootstrap: New file.
43675         * build-aux/bootstrap.conf: New file, from coreutils.
43676
43677 2007-03-11  Bruno Haible  <bruno@clisp.org>
43678
43679         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
43680
43681 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43682
43683         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
43684         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
43685         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
43686
43687 2007-03-11  Bruno Haible  <bruno@clisp.org>
43688
43689         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
43690         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
43691
43692 2007-03-11  Bruno Haible  <bruno@clisp.org>
43693
43694         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
43695         formula. Needed for SunPRO C 5.0.
43696
43697 2007-03-11  Bruno Haible  <bruno@clisp.org>
43698
43699         * modules/long-options (Depends-on): Add getopt.
43700
43701 2007-03-11  Bruno Haible  <bruno@clisp.org>
43702
43703         * modules/modechange (Depends-on): Add stdbool.
43704
43705 2007-03-11  Bruno Haible  <bruno@clisp.org>
43706
43707         * modules/i-ring (Depends-on): Add stdbool.
43708
43709 2007-03-11  Bruno Haible  <bruno@clisp.org>
43710
43711         * modules/gc-des (Depends-on): Add stdbool.
43712
43713 2007-03-11  Bruno Haible  <bruno@clisp.org>
43714
43715         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
43716
43717 2007-03-11  Bruno Haible  <bruno@clisp.org>
43718
43719         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
43720
43721 2007-03-11  Bruno Haible  <bruno@clisp.org>
43722
43723         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
43724
43725 2007-03-11  Bruno Haible  <bruno@clisp.org>
43726
43727         * lib/vasnprintf.c (sprintf): Undefine.
43728
43729 2007-03-11  Bruno Haible  <bruno@clisp.org>
43730
43731         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
43732         initializers in SunPRO C and Compaq C compilers.
43733
43734 2007-03-11  Bruno Haible  <bruno@clisp.org>
43735
43736         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
43737         decrementing code ANSI C compliant.
43738
43739 2007-03-11  Bruno Haible  <bruno@clisp.org>
43740
43741         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
43742         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
43743
43744 2007-03-11  Bruno Haible  <bruno@clisp.org>
43745
43746         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
43747         <stdbool.h> substitute doesn't pass.
43748
43749 2007-03-11  Bruno Haible  <bruno@clisp.org>
43750
43751         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
43752
43753 2007-03-11  Bruno Haible  <bruno@clisp.org>
43754
43755         * gnulib-tool (func_create_megatestdir): Create also an autobuild
43756         script, for submission to autobuild.josefsson.org.
43757
43758 2007-03-10  Bruno Haible  <bruno@clisp.org>
43759
43760         * modules/canonicalize-lgpl-tests: New file.
43761         * tests/test-canonicalize-lgpl.sh: New file.
43762         * tests/test-canonicalize-lgpl.c: New file.
43763
43764         * modules/c-strcase-tests: New file.
43765         * tests/test-c-strcase.sh: New file.
43766         * tests/test-c-strcasecmp.c: New file.
43767         * tests/test-c-strncasecmp.c: New file.
43768
43769         * modules/atexit-tests: New file.
43770         * tests/test-atexit.sh: New file.
43771         * tests/test-atexit.c: New file.
43772
43773 2007-03-10  Bruno Haible  <bruno@clisp.org>
43774
43775         * tests/test-binary-io.sh: Use temporary filenames that are not so
43776         likely to clash with those of other tests (in a parallel make).
43777         * tests/test-binary-io.c: Likewise.
43778
43779 2007-03-10  Bruno Haible  <bruno@clisp.org>
43780
43781         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
43782         fallback; use #error instead.
43783         Suggested by Simon Josefsson.
43784
43785 2007-03-10  Bruno Haible  <bruno@clisp.org>
43786
43787         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
43788         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
43789         first and the last.
43790
43791 2007-03-10  Bruno Haible  <bruno@clisp.org>
43792
43793         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
43794
43795 2007-03-10  Bruno Haible  <bruno@clisp.org>
43796
43797         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
43798         "make distcheck".
43799         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
43800         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
43801         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
43802
43803 2007-03-10  Bruno Haible  <bruno@clisp.org>
43804
43805         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
43806         variable.
43807         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
43808         variable.
43809
43810 2007-03-09  Eric Blake  <ebb9@byu.net>
43811         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
43812
43813         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
43814         types are not being provided by gnulib.
43815         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
43816         types are supported.
43817
43818 2007-03-10  Bruno Haible  <bruno@clisp.org>
43819
43820         * lib/stdio_.h (__attribute__): New macro.
43821         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
43822         vsprintf): Specify __attribute__ __format__ for GCC.
43823         Suggested by Eric Blake.
43824
43825 2007-03-09  Bruno Haible  <bruno@clisp.org>
43826
43827         * modules/printf-posix-tests: New file.
43828         * tests/test-printf-posix.sh: New file.
43829         * tests/test-printf-posix.c: New file.
43830
43831         * modules/printf-posix: New file.
43832         * lib/printf.c: New file.
43833         * m4/printf-posix-rpl.m4: New file.
43834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
43835         REPLACE_PRINTF.
43836         * lib/stdio_.h (printf): New declaration.
43837         (format, __format__, ____printf____, ____scanf____, ____strftime____,
43838         ____strfmon____): New macros.
43839         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
43840         REPLACE_PRINTF.
43841
43842 2007-03-09  Bruno Haible  <bruno@clisp.org>
43843
43844         * tests/test-vasnprintf-posix2.sh: New file.
43845         * tests/test-vasnprintf-posix2.c: New file.
43846         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
43847         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43848         (Makefile.am): Activate test-vasnprintf-posix2.sh.
43849
43850         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
43851         a locale dependent decimal point, rather than always '.'.
43852
43853 2007-03-09  Eric Blake  <ebb9@byu.net>
43854
43855         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
43856         spite of platforms like Tandem/NSK that define it to -1.
43857
43858 2007-03-08  Bruno Haible  <bruno@clisp.org>
43859
43860         * modules/vprintf-posix-tests: New file.
43861         * tests/test-vprintf-posix.sh: New file.
43862         * tests/test-vprintf-posix.c: New file.
43863         * tests/test-printf-posix.h: New file.
43864
43865         * modules/vprintf-posix: New file.
43866         * lib/vprintf.c: New file.
43867         * m4/vprintf-posix.m4: New file.
43868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
43869         REPLACE_VPRINTF.
43870         * lib/stdio_.h (vprintf): New declaration.
43871         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
43872         REPLACE_VPRINTF.
43873
43874 2007-03-08  Bruno Haible  <bruno@clisp.org>
43875
43876         * modules/fprintf-posix-tests: New file.
43877         * tests/test-fprintf-posix.sh: New file.
43878         * tests/test-fprintf-posix.c: New file.
43879
43880         * modules/fprintf-posix: New file.
43881         * lib/fprintf.c: New file.
43882         * m4/fprintf-posix.m4: New file.
43883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
43884         REPLACE_FPRINTF.
43885         * lib/stdio_.h (fprintf): New declaration.
43886         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
43887         REPLACE_FPRINTF.
43888
43889 2007-03-08  Bruno Haible  <bruno@clisp.org>
43890
43891         * modules/vfprintf-posix-tests: New file.
43892         * tests/test-vfprintf-posix.sh: New file.
43893         * tests/test-vfprintf-posix.c: New file.
43894         * tests/test-fprintf-posix.h: New file.
43895         * tests/test-fprintf-posix.out: New file.
43896
43897         * modules/vfprintf-posix: New file.
43898         * lib/vfprintf.c: New file.
43899         * m4/vfprintf-posix.m4: New file.
43900         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
43901         REPLACE_VFPRINTF.
43902         * lib/stdio_.h (vfprintf): New declaration.
43903         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
43904         REPLACE_VFPRINTF.
43905
43906 2007-03-08  Bruno Haible  <bruno@clisp.org>
43907
43908         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
43909
43910 2007-03-08  Bruno Haible  <bruno@clisp.org>
43911
43912         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
43913         instead of 'expr' invocations.
43914         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43915         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43916         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43918         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43919         Suggested by Paul Eggert.
43920
43921 2007-03-08  Bruno Haible  <bruno@clisp.org>
43922
43923         * modules/fseterr-tests: New file.
43924         * tests/test-fseterr.c: New file.
43925
43926         * modules/fseterr: New file.
43927         * lib/fseterr.h: New file.
43928         * lib/fseterr.c: New file.
43929
43930 2007-03-08  Bruno Haible  <bruno@clisp.org>
43931
43932         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
43933         * lib/getopt_.h: Likewise.
43934         * lib/mbswidth.h: Likewise.
43935         * lib/setenv.h: Likewise.
43936         * lib/vasnprintf.h: Likewise.
43937         * lib/vasprintf.h: Likewise.
43938         * lib/verror.h: Likewise.
43939         * lib/xsetenv.h: Likewise.
43940         * lib/xvasprintf.h: Likewise.
43941
43942 2007-03-08  Jim Meyering  <jim@meyering.net>
43943
43944         * users.txt: Add parted.
43945
43946         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
43947
43948 2007-03-07  Bruno Haible  <bruno@clisp.org>
43949
43950         * m4/printf.m4: Make the shell script snippets copy&pastable.
43951
43952 2007-03-02  Bruno Haible  <bruno@clisp.org>
43953
43954         * lib/netinet_in_.h: New file.
43955         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
43956         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
43957         * modules/netinet_in (Files): Add lib/netinet_in_.h.
43958         (Depends-on): Add absolute-header.
43959         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
43960         into netinet/in.h.
43961
43962 2007-03-03  Bruno Haible  <bruno@clisp.org>
43963
43964         * lib/sys_select_.h: New file.
43965         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
43966         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
43967         * modules/sys_select (Files): Add lib/sys_select_.h.
43968         (Depends-on): Add absolute-header.
43969         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
43970         into sys/select.h.
43971
43972 2007-03-02  Bruno Haible  <bruno@clisp.org>
43973
43974         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
43975         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
43976         values.
43977         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
43978         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
43979         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
43980         * modules/sys_socket (Depends-on): Add absolute-header.
43981         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
43982         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
43983         (Include): Remove requirement of inclusion of <sys/types.h>.
43984
43985 2007-03-02  Bruno Haible  <bruno@clisp.org>
43986
43987         * lib/byteswap_.h (bswap_32): Fix formula.
43988
43989 2007-03-06  Bruno Haible  <bruno@clisp.org>
43990
43991         * modules/sprintf-posix-tests: New file.
43992         * tests/test-sprintf-posix.c: New file.
43993
43994         * modules/sprintf-posix: New file.
43995         * lib/sprintf.c: New file.
43996         * m4/sprintf-posix.m4: New file.
43997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
43998         REPLACE_SPRINTF.
43999         * lib/stdio_.h (sprintf): New declaration.
44000         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
44001         REPLACE_SPRINTF.
44002
44003 2007-03-06  Bruno Haible  <bruno@clisp.org>
44004
44005         * modules/vsprintf-posix-tests: New file.
44006         * tests/test-vsprintf-posix.c: New file.
44007         * tests/test-sprintf-posix.h: New file.
44008
44009         * modules/vsprintf-posix: New file.
44010         * lib/vsprintf.c: New file.
44011         * m4/vsprintf-posix.m4: New file.
44012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
44013         REPLACE_VSPRINTF.
44014         * lib/stdio_.h (vsprintf): New declaration.
44015         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
44016         REPLACE_VSPRINTF.
44017
44018 2007-03-06  Bruno Haible  <bruno@clisp.org>
44019
44020         * modules/vsnprintf (Depend-on): Remove minmax.
44021
44022 2007-03-06  Bruno Haible  <bruno@clisp.org>
44023
44024         * modules/snprintf-posix-tests: New file.
44025         * tests/test-snprintf-posix.c: New file.
44026
44027         * modules/snprintf-posix: New file.
44028         * m4/snprintf-posix.m4: New file.
44029         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
44030         gl_FUNC_SNPRINTF.
44031         (gl_FUNC_SNPRINTF): Invoke it.
44032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
44033         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
44034         is set.
44035         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
44036
44037 2007-03-06  Bruno Haible  <bruno@clisp.org>
44038
44039         * modules/vsnprintf-posix-tests: New file.
44040         * tests/test-vsnprintf-posix.c: New file.
44041         * tests/test-snprintf-posix.h: New file.
44042
44043         * modules/vsnprintf-posix: New file.
44044         * m4/vsnprintf-posix.m4: New file.
44045         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
44046         gl_FUNC_VSNPRINTF.
44047         (gl_FUNC_VSNPRINTF): Invoke it.
44048         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
44049         * lib/stdio_.h (vsnprintf): Define as a replacement if
44050         REPLACE_VSNPRINTF is set.
44051         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
44052
44053 2007-03-06  Bruno Haible  <bruno@clisp.org>
44054
44055         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
44056         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
44057
44058 2007-03-06  Bruno Haible  <bruno@clisp.org>
44059
44060         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
44061         (asinl): Declare also if HAVE_DECL_ASINL is set.
44062         (atanl): Declare also if HAVE_DECL_ATANL is set.
44063         (ceill): Declare also if HAVE_DECL_CEILL is set.
44064         (cosl): Declare also if HAVE_DECL_COSL is set.
44065         (expl): Declare also if HAVE_DECL_EXPL is set.
44066         (floorl): Declare also if HAVE_DECL_FLOORL is set.
44067         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
44068         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
44069         (logl): Declare also if HAVE_DECL_LOGL is set.
44070         (sinl): Declare also if HAVE_DECL_SINL is set.
44071         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
44072         (tanl): Declare also if HAVE_DECL_TANL is set.
44073         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
44074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
44075         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
44076         declaration of frexpl, ldexpl.
44077         * modules/printf-frexpl (Depends-on): Add math.
44078         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
44079
44080 2007-03-05  Bruno Haible  <bruno@clisp.org>
44081
44082         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
44083         frexpl and ldexpl are declared.
44084         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
44085
44086 2007-03-05  Bruno Haible  <bruno@clisp.org>
44087
44088         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
44089         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
44090
44091 2007-03-05  Bruno Haible  <bruno@clisp.org>
44092
44093         * lib/stdio_.h: Include <stddef.h>.
44094
44095 2007-03-05  Bruno Haible  <bruno@clisp.org>
44096
44097         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
44098
44099 2007-03-05  Bruno Haible  <bruno@clisp.org>
44100
44101         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
44102         NetBSD 4, from Ralf Wildenhues.
44103
44104 2007-03-04  Bruno Haible  <bruno@clisp.org>
44105
44106         * lib/vasprintf.h: Update #if logic for the case when the functions
44107         exist but are overridden.
44108
44109 2007-03-04  Bruno Haible  <bruno@clisp.org>
44110
44111         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
44112         implementations: glibc-2.4 and MacOS X 10.3.
44113         * tests/test-vasnprintf-posix.c (test_function): Test also the case
44114         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
44115         * tests/test-vasprintf-posix.c (test_function): Likewise.
44116
44117 2007-03-04  Bruno Haible  <bruno@clisp.org>
44118
44119         * modules/vasprintf-posix-tests: New file.
44120         * tests/test-vasprintf-posix.c: New file.
44121
44122         * modules/vasprintf-posix: New file.
44123         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
44124         defined.
44125         * m4/vasprintf-posix.m4: New file.
44126         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
44127         gl_FUNC_VASPRINTF.
44128         (gl_FUNC_VASPRINTF): Invoke it.
44129         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
44130         here.
44131         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
44132
44133 2007-03-04  Bruno Haible  <bruno@clisp.org>
44134
44135         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
44136         REPLACE_GETTIMEOFDAY.
44137         * modules/sys_time (Makefile.am): Likewise.
44138         * m4/sys_time_h.m4: Likewise.
44139         * m4/gettimeofday.m4: Likewise.
44140
44141 2007-03-04  Bruno Haible  <bruno@clisp.org>
44142
44143         * modules/vasnprintf-posix-tests: New file.
44144         * tests/test-vasnprintf-posix.c: New file.
44145
44146         * modules/vasnprintf-posix: New file.
44147         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
44148         printf-frexpl.h.
44149         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
44150         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
44151         REPLACE_VASNPRINTF is defined.
44152         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
44153         gl_FUNC_VASNPRINTF.
44154         (gl_FUNC_VASNPRINTF): Invoke it.
44155         * m4/vasnprintf-posix.m4: New file.
44156         * m4/printf.m4: New file.
44157
44158 2007-03-04  Bruno Haible  <bruno@clisp.org>
44159
44160         Compile progreloc.c only if --enable-relocatable is specified.
44161         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
44162         if --enable-relocatable was specified.
44163         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
44164         lib_SOURCES.
44165
44166 2007-03-04  Jim Meyering  <jim@meyering.net>
44167
44168         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
44169         Use it consistently, rather than enumerating errno constants.
44170
44171 2007-03-04  Bruno Haible  <bruno@clisp.org>
44172
44173         * modules/xvasprintf-tests: New file.
44174         * tests/test-xvasprintf.c: New file.
44175
44176         * modules/vasprintf-tests: New file.
44177         * tests/test-vasprintf.c: New file.
44178
44179         * modules/vasnprintf-tests: New file.
44180         * tests/test-vasnprintf.c: New file.
44181
44182         * modules/vsnprintf-tests: New file.
44183         * tests/test-vsnprintf.c: New file.
44184
44185         * modules/snprintf-tests: New file.
44186         * tests/test-snprintf.c: New file.
44187
44188 2007-03-04  Bruno Haible  <bruno@clisp.org>
44189
44190         Compile relocatable.c only if --enable-relocatable is specified.
44191         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
44192         gl_RELOCATABLE_LIBRARY.
44193         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
44194         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
44195         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
44196         gl_RELOCATABLE_LIBRARY.
44197         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
44198         (Makefile.am): Remove lib_SOURCES.
44199         * modules/relocatable-lib-lgpl (configure.ac): Invoke
44200         gl_RELOCATABLE_LIBRARY.
44201         (Makefile.am): Remove lib_SOURCES.
44202         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
44203         always.
44204         * modules/relocatable-prog-wrapper (configure.ac): Invoke
44205         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
44206
44207 2007-03-04  Bruno Haible  <bruno@clisp.org>
44208
44209         * modules/argmatch-tests: New file.
44210         * tests/test-argmatch.c: New file.
44211
44212         * tests/test-allocsa.c (main): Halve the number of loop runs.
44213
44214         * modules/alloca-opt-tests: New file.
44215         * tests/test-alloca-opt.c: New file.
44216
44217 2007-03-04  Jim Meyering  <jim@meyering.net>
44218
44219         Work around difference between Linux ACLs and Solaris 10 ZFS.
44220         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
44221         for EINVAL.
44222
44223 2007-03-03  Bruno Haible  <bruno@clisp.org>
44224
44225         * modules/relocatable-prog (Depends-on): Add back progreloc's
44226         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
44227
44228 2007-03-03  Bruno Haible  <bruno@clisp.org>
44229
44230         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
44231         * modules/relocatable-lib: New file.
44232
44233 2007-03-03  Bruno Haible  <bruno@clisp.org>
44234
44235         * modules/relocatable-prog: Renamed from modules/relocatable.
44236         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
44237
44238 2007-03-03  Bruno Haible  <bruno@clisp.org>
44239
44240         * modules/relocatable-script (Files): Add doc/relocatable.texi,
44241         m4/relocatable-lib.m4.
44242         (Depends-on): Remove 'relocatable'.
44243         (configure.ac): Add gl_RELOCATABLE_NOP.
44244
44245 2007-03-03  Bruno Haible  <bruno@clisp.org>
44246
44247         * modules/relocatable-prog-wrapper: New file.
44248         * modules/relocatable (Depends-on): Add it. Remove all other
44249         dependencies except progname.
44250         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
44251
44252         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
44253         (gl_FUNC_STRERROR): Nop.
44254         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
44255
44256         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
44257         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
44258
44259         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
44260         (gl_FUNC_READLINK): Update.
44261
44262         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
44263
44264 2007-03-03  Bruno Haible  <bruno@clisp.org>
44265
44266         * lib/xreadlink.c: Include <unistd.h> unconditionally.
44267         * modules/xreadlink (Depends-on): Add unistd.
44268         * modules/xreadlink-with-size (Depends-on): Likewise.
44269
44270 2007-03-03  Bruno Haible  <bruno@clisp.org>
44271
44272         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
44273         extracted from gt_FUNC_SETENV.
44274         (gt_FUNC_SETENV): Remove macro.
44275         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
44276         remove gt_FUNC_SETENV.
44277
44278 2007-03-03  Bruno Haible  <bruno@clisp.org>
44279
44280         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
44281         ENABLE_RELOCATABLE here.
44282         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
44283
44284 2007-03-03  Bruno Haible  <bruno@clisp.org>
44285
44286         * modules/rbtreehash-list-tests (Depends-on): Add progname.
44287         * tests/test-rbtreehash_list.c: Include progname.h.
44288         (main): Call set_program_name.
44289
44290         * modules/rbtree-oset-tests (Depends-on): Add progname.
44291         * tests/test-rbtree_oset.c: Include progname.h.
44292         (main): Call set_program_name.
44293
44294         * modules/rbtree-list-tests (Depends-on): Add progname.
44295         * tests/test-rbtree_list.c: Include progname.h.
44296         (main): Call set_program_name.
44297
44298         * modules/linked-list-tests (Depends-on): Add progname.
44299         * tests/test-linked_list.c: Include progname.h.
44300         (main): Call set_program_name.
44301
44302 2007-03-03  Bruno Haible  <bruno@clisp.org>
44303
44304         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
44305         All uses of __restrict changed to _Restrict_.
44306         * lib/glob_.h (__restrict): Remove macro.
44307
44308 2007-03-02  Bruno Haible  <bruno@clisp.org>
44309
44310         * modules/gettext (configure.ac): Require gettext infrastructure
44311         from version 0.16.1.
44312
44313 2007-03-02  Bruno Haible  <bruno@clisp.org>
44314
44315         * modules/linkedhash-list-tests (Depends-on): Add progname.
44316         * tests/test-linkedhash_list.c: Include progname.h.
44317         (main): Call set_program_name.
44318
44319         * modules/carray-list-tests (Depends-on): Add progname.
44320         * tests/test-carray_list.c: Include progname.h.
44321         (main): Call set_program_name.
44322
44323         * modules/avltreehash-list-tests (Depends-on): Add progname.
44324         * tests/test-avltreehash_list.c: Include progname.h.
44325         (main): Call set_program_name.
44326
44327         * modules/avltree-oset-tests (Depends-on): Add progname.
44328         * tests/test-avltree_oset.c: Include progname.h.
44329         (main): Call set_program_name.
44330
44331         * modules/avltree-list-tests (Depends-on): Add progname.
44332         * tests/test-avltree_list.c: Include progname.h.
44333         (main): Call set_program_name.
44334
44335         * modules/array-oset-tests (Depends-on): Add progname.
44336         * tests/test-array_oset.c: Include progname.h.
44337         (main): Call set_program_name.
44338
44339         * modules/array-list-tests (Depends-on): Add progname.
44340         * tests/test-array_list.c: Include progname.h.
44341         (main): Call set_program_name.
44342
44343         * modules/argp-tests (Depends-on): Add progname.
44344         * tests/test-argp.c: Include argp.h first. Include progname.h.
44345         (main): Call set_program_name.
44346
44347 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
44348
44349         * doc/gnulib-tool.texi (Initial import): Reword description of
44350         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
44351         limited effect even if defined after the first system include.
44352
44353 2007-03-01  Bruno Haible  <bruno@clisp.org>
44354
44355         * build-aux/config.libpath: Update to libtool-1.5.22.
44356         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44357
44358 2007-03-01  Bruno Haible  <bruno@clisp.org>
44359
44360         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
44361         foo_CFLAGS.
44362         Reported by Ralf Wildenhues.
44363
44364 2007-03-01  Bruno Haible  <bruno@clisp.org>
44365
44366         * build-aux/install-reloc: Remove object files left over by some
44367         compilers.
44368         Reported by Ralf Wildenhues.
44369
44370 2007-03-01  Bruno Haible  <bruno@clisp.org>
44371
44372         * build-aux/install-reloc: Break long lines.
44373
44374 2007-03-01  Bruno Haible  <bruno@clisp.org>
44375
44376         * doc/relocatable.texi: Document that it may not work on OpenBSD.
44377         Reported by Ralf Wildenhues.
44378
44379 2007-03-01  Bruno Haible  <bruno@clisp.org>
44380
44381         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
44382         include ordering constraints.
44383
44384 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44385
44386         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
44387         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
44388         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
44389         as another example.
44390         * lib/time_.h: Fix misspelling.
44391         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44392         Require gl_HEADER_TIME_H_DEFAULTS.
44393         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
44394         * m4/time_r.m4 (gl_TIME_R): Likewise.
44395         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
44396
44397 2007-03-01  Bruno Haible  <bruno@clisp.org>
44398
44399         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
44400         * m4/utimens.m4 (gl_UTIMENS): Likewise.
44401
44402 2007-03-01  Jim Meyering  <jim@meyering.net>
44403
44404         * modules/xreadlink (Maintainer): Add my name.
44405         * modules/xreadlink-with-size (Depends-on): Alphabetize.
44406
44407 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
44408             Bruno Haible  <bruno@clisp.org>
44409
44410         * build-aux/install-reloc: Compile also c-ctype.c.
44411         * build-aux/relocatable.sh.in: New file.
44412         * doc/relocatable.texi: New file.
44413         * doc/relocatable-maint.texi: New file.
44414         * doc/gnulib.texi: Include relocatable-maint.texi.
44415         * lib/progreloc.c: Include unistd.h unconditionally.
44416         * lib/relocwrapper.c: Include unistd.h unconditionally.
44417         Include c-ctype.h.
44418         (add_dotbin): Use c_tolower.
44419         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
44420         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
44421         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
44422         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
44423         to m4/relocatable-lib.m4.
44424         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
44425         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
44426         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
44427         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
44428         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
44429         * modules/relocatable: New file.
44430         * modules/relocatable-lib: New file.
44431         * modules/relocatable-script: New file.
44432
44433 2007-02-28  Bruno Haible  <bruno@clisp.org>
44434
44435         Import --enable-relocatable infrastructure.
44436         * build-aux/config.libpath: New file, from GNU gettext.
44437         * build-aux/install-reloc: New file, from GNU gettext.
44438         * build-aux/reloc-ldflags: New file, from GNU gettext.
44439         * lib/relocatable.h: New file, from GNU gettext.
44440         * lib/relocatable.c: New file, from GNU gettext.
44441         * lib/relocwrapper.c: New file, from GNU gettext.
44442         * m4/relocatable.m4: New file, from GNU gettext.
44443
44444 2007-02-28  Bruno Haible  <bruno@clisp.org>
44445
44446         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
44447
44448         * modules/xreadlink: New file, from GNU gettext with modifications.
44449         * lib/xreadlink.c: New file, from GNU gettext.
44450         * lib/xreadlink.h: Add comments.
44451         (xreadlink): New declaration.
44452
44453         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
44454         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
44455         lib/xreadlink-with-size.c.
44456         (configure.ac): Remove gl_XREADLINK invocation.
44457         (Makefile.am): Augment lib_SOURCES.
44458         * m4/xreadlink.m4: Remove file.
44459         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
44460         (xreadlink_with_size): Renamed from xreadink.
44461         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
44462         * modules/canonicalize (Depends-on): Replace xreadlink with
44463         xreadlink-with-size.
44464         * lib/canonicalize.c (canonicalize_filename_mode): Update.
44465
44466 2007-02-25  Jim Meyering  <jim@meyering.net>
44467
44468         * build-aux/announce-gen: When complaining about excess arguments,
44469         list them.
44470
44471 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
44472
44473         * README: Document signed integer overflow situation more
44474         accurately.
44475
44476 2007-02-25  Bruno Haible  <bruno@clisp.org>
44477
44478         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
44479         'a' or 'A' conversion.
44480
44481 2007-02-25  Bruno Haible  <bruno@clisp.org>
44482
44483         * modules/filename: Renamed from modules/pathname.
44484         (Files): Replace lib/pathname.h with lib/filename.h. Replace
44485         lib/concatpath.c with lib/concat-filename.c.
44486         (Makefile.am): Update.
44487         (Include): Replace pathname.h with filename.h.
44488         * lib/filename.h: Renamed from lib/pathname.h.
44489         (concatenated_filename): Renamed from concatenated_pathname.
44490         * lib/concat-filename.c: Renamed from lib/concatpath.c.
44491         (concatenated_filename): Renamed from concatenated_pathname.
44492         * lib/findprog.c: Include filename.h instead of pathname.h.
44493         (find_in_path): Update.
44494         * lib/javacomp.c: Include filename.h instead of pathname.h.
44495         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44496         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44497         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44498         is_oldgcj_14_13_usable, is_javac_usable): Update.
44499         * lib/javaexec.c: Include filename.h instead of pathname.h.
44500         (execute_java_class): Update.
44501         * modules/findprog: Update.
44502         * modules/javacomp: Update.
44503         * modules/javaexec: Update.
44504         * MODULES.html.sh (File system functions): Add 'filename', remove
44505         'pathname'.
44506
44507 2007-02-25  Bruno Haible  <bruno@clisp.org>
44508
44509         * modules/printf-frexpl-tests: New file.
44510         * tests/test-printf-frexpl.c: New file.
44511
44512         * modules/printf-frexpl: New file.
44513         * lib/printf-frexpl.h: New file.
44514         * lib/printf-frexpl.c: New file.
44515         * m4/printf-frexpl.m4: New file.
44516
44517 2007-02-25  Bruno Haible  <bruno@clisp.org>
44518
44519         * modules/printf-frexp-tests: New file.
44520         * tests/test-printf-frexp.c: New file.
44521
44522         * modules/printf-frexp: New file.
44523         * lib/printf-frexp.h: New file.
44524         * lib/printf-frexp.c: New file.
44525         * m4/printf-frexp.m4: New file.
44526
44527 2007-02-25  Bruno Haible  <bruno@clisp.org>
44528
44529         Assume automake >= 1.10 for the tests.
44530         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
44531         * modules/arctwo-tests: Likewise.
44532         * modules/argp-tests: Likewise.
44533         * modules/avltree-list-tests: Likewise.
44534         * modules/avltree-oset-tests: Likewise.
44535         * modules/avltreehash-list-tests: Likewise.
44536         * modules/carray-list-tests: Likewise.
44537         * modules/crc-tests: Likewise.
44538         * modules/des-tests: Likewise.
44539         * modules/gc-arcfour-tests: Likewise.
44540         * modules/gc-arctwo-tests: Likewise.
44541         * modules/gc-des-tests: Likewise.
44542         * modules/gc-hmac-md5-tests: Likewise.
44543         * modules/gc-hmac-sha1-tests: Likewise.
44544         * modules/gc-md2-tests: Likewise.
44545         * modules/gc-md4-tests: Likewise.
44546         * modules/gc-md5-tests: Likewise.
44547         * modules/gc-pbkdf2-sha1-tests: Likewise.
44548         * modules/gc-rijndael-tests: Likewise.
44549         * modules/gc-sha1-tests: Likewise.
44550         * modules/gc-tests: Likewise.
44551         * modules/getaddrinfo-tests: Likewise.
44552         * modules/hmac-md5-tests: Likewise.
44553         * modules/hmac-sha1-tests: Likewise.
44554         * modules/linked-list-tests: Likewise.
44555         * modules/linkedhash-list-tests: Likewise.
44556         * modules/lock-tests: Likewise.
44557         * modules/md2-tests: Likewise.
44558         * modules/md4-tests: Likewise.
44559         * modules/md5-tests: Likewise.
44560         * modules/rbtree-list-tests: Likewise.
44561         * modules/rbtree-oset-tests: Likewise.
44562         * modules/rbtreehash-list-tests: Likewise.
44563         * modules/read-file-tests: Likewise.
44564         * modules/rijndael-tests: Likewise.
44565         * modules/stdint-tests: Likewise.
44566         * modules/tls-tests: Likewise.
44567
44568 2007-02-24  Bruno Haible  <bruno@clisp.org>
44569
44570         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
44571         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
44572         function; instead check whether isnan with a double argument links.
44573         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
44574         function; instead check whether isnan with a 'long double' argument
44575         links.
44576         Reported by Eric Blake <ebb9@byu.net>.
44577
44578 2007-02-24  Bruno Haible  <bruno@clisp.org>
44579
44580         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
44581         defined.
44582         * lib/isnanl.c: Remove all code. Just include isnan.c.
44583         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
44584
44585 2007-02-25  Jim Meyering  <jim@meyering.net>
44586
44587         Avoid conflicting types for 'unsetenv' on FreeBSD.
44588         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
44589         conflicting with FreeBSD's (5.0 and 6.1) function declaration
44590         in stdlib.h.
44591
44592 2007-02-24  Bruno Haible  <bruno@clisp.org>
44593
44594         * modules/isnanl-nolibm-tests: New file.
44595         * tests/test-isnanl.c: New file.
44596
44597         * modules/isnanl-nolibm: New file.
44598         * lib/isnanl.h: New file.
44599         * lib/isnanl.c: New file.
44600         * m4/isnanl.m4: New file.
44601
44602 2007-02-24  Bruno Haible  <bruno@clisp.org>
44603
44604         * modules/isnan-nolibm-tests: New file.
44605         * tests/test-isnan.c: New file.
44606
44607         * modules/isnan-nolibm: New file.
44608         * lib/isnan.h: New file.
44609         * lib/isnan.c: New file.
44610         * m4/isnan.m4: New file.
44611
44612 2007-02-24  Bruno Haible  <bruno@clisp.org>
44613
44614         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
44615         assume that an exponent fits in 20 bits.
44616
44617 2007-02-24  Jim Meyering  <jim@meyering.net>
44618
44619         * m4/regex.m4: Update the description of the configure-time option,
44620         --without-included-regex, to state accurately what the defaults are,
44621         and perhaps to give people an idea why using this option is risky.
44622
44623 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44624
44625         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
44626         loops on small arguments.  This attempts to avoid the problem
44627         Bruno Haible reported for AIX 4.3.2 in
44628         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
44629
44630 2007-02-23  Bruno Haible  <bruno@clisp.org>
44631
44632         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
44633         Needed for help2man.
44634
44635 2007-02-23  Karl Berry  <karl@gnu.org>
44636
44637         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
44638         exists, foo.h should be cvs-ignored, not committed.
44639
44640 2007-02-23  Eric Blake  <ebb9@byu.net>
44641
44642         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
44643         * lib/stat-time.h (includes): Likewise.
44644         * lib/utimecmp.c (includes): Likewise.
44645         * lib/utimens.h (includes): Likewise.
44646         * lib/getdate.y (includes): Also include "timespec.h" for use
44647         internal to the module.
44648         * modules/utimens (Depends-on): Revert yesterday's patch.
44649         * modules/nanosleep (Depends-on): Add missing dependency.
44650
44651 2007-02-22  Bruno Haible  <bruno@clisp.org>
44652
44653         * lib/glob.c: Don't include getlogin_r.h.
44654
44655 2007-02-22  Jim Meyering  <jim@meyering.net>
44656
44657         * modules/utimens (Depends-on): Add timespec, required for
44658         utimens.h's inclusion of timespec.h.
44659
44660 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
44661
44662         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
44663         long unreadable paths in GNU/Linux.  Problem reported by Andreas
44664         Schwab in
44665         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
44666         I'll try to think of a better way to fix the Solaris problem.
44667
44668         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
44669         like glibc; on Solaris 10, it fails with errno == EINVAL.
44670         POSIX says the behavior is unspecified if the first argument is NULL,
44671         so play it safe and never pass NULL to the system getcwd.
44672
44673 2007-02-21  Jim Meyering  <jim@meyering.net>
44674
44675         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
44676         of gettimeofday.  It would conflict with the one now always
44677         provided via sys_time_.h.  Reported by Matthew Woehlke, as
44678         an IRIX 6.5 build failure.
44679
44680 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
44681
44682         Minor fixups to port to Solaris 10 with Sun C 5.8.
44683         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
44684         * modules/getcwd (Depends-on): Add dirfd.
44685         * lib/putenv.c (putenv): #undef it.
44686         (rpl_putenv): New decl.
44687         (malloc, free): Include <stdlib.h> rather than prototyping separately.
44688
44689 2007-02-20  Bruno Haible  <bruno@clisp.org>
44690
44691         * modules/stdio-tests: New file.
44692         * tests/test-stdio.c: New file.
44693
44694         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
44695         (Depends-on): Add stdio.
44696         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44697         (Include): Use <stdio.h> instead of vsnprintf.h.
44698         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44699         HAVE_DECL_VSNPRINTF.
44700         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
44701
44702         * modules/snprintf (Files): Remove lib/snprintf.h.
44703         (Depends-on): Add stdio.
44704         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44705         (Include): Use <stdio.h> instead of snprintf.h.
44706         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44707         HAVE_DECL_SNPRINTF.
44708         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
44709         * lib/getaddrinfo.c: Likewise.
44710
44711         * modules/stdio: New file.
44712         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
44713         * lib/snprintf.h: Remove file.
44714         * lib/vsnprintf.h: Remove file.
44715         * lib/.cppi-disable: Remove snprintf.h.
44716         * m4/stdio_h.m4: New file.
44717         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
44718
44719 2007-02-20  Jim Meyering  <jim@meyering.net>
44720
44721         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
44722         used by e.g., mingw.  From Bruno Haible.
44723
44724 2007-02-19  Bruno Haible  <bruno@clisp.org>
44725
44726         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
44727         warnings.
44728         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44729
44730 2007-02-19  Bruno Haible  <bruno@clisp.org>
44731
44732         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
44733         from mingw users.
44734
44735 2007-02-19  Bruno Haible  <bruno@clisp.org>
44736
44737         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
44738         warnings.
44739         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
44740
44741 2007-02-19  Jim Meyering  <jim@meyering.net>
44742
44743         Don't use FD after a successful "fdopendir (fd)".
44744         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
44745         Reset it by calling dirfd on the just-obtained DIR*.
44746
44747         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
44748         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
44749
44750 2007-02-18  Bruno Haible  <bruno@clisp.org>
44751
44752         * lib/readlink.c: Include <unistd.h>.
44753         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
44754         HAVE_READLINK.
44755         * modules/readlink (Depends-on): Add unistd.
44756         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44757         (Include): Add <unistd.h>.
44758
44759         * lib/getlogin_r.h: Remove file.
44760         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
44761         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
44762         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
44763         HAVE_DECL_GETLOGIN_R.
44764         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
44765         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44766         (Include): Use <unistd.h> instead of getlogin_r.h.
44767
44768         * lib/getcwd.h: Remove file.
44769         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
44770         * lib/xgetcwd.c: Likewise.
44771         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
44772         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
44773         * modules/getcwd (Files): Remove lib/getcwd.h.
44774         (Depends-on): Add unistd.
44775         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44776         (Include): Use <unistd.h> instad of getcwd.h.
44777
44778         * lib/ftruncate.c: Include <unistd.h> first.
44779         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
44780         Set HAVE_FTRUNCATE.
44781         * modules/ftruncate (Depends-on): Add unistd.
44782         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44783
44784         * lib/fchdir.c: Include <unistd.h> first.
44785         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
44786         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
44787         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
44788         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44789         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
44790
44791         * lib/dup2.c: Include <unistd.h> first.
44792         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
44793         HAVE_DUP2.
44794         * modules/dup2 (Depends-on): Add unistd.
44795         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44796
44797         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
44798         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
44799         REPLACE_CHOWN. Don't define chown as a macro here.
44800         * modules/chown (Depends-on): Add unistd.
44801         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44802
44803         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
44804         Add definition for GL_LINK_WARNING.
44805         (chown, dup2): New declarations.
44806         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
44807         link warning.
44808         (ftruncate): New declaration.
44809         (getcwd): New declaration, taken from old getcwd.h.
44810         (getlogin_r): New declaration, taken from old getlogin_r.h.
44811         (readlink): New declaration.
44812         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
44813         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
44814         (gl_PREREQ_UNISTD): Remove macro.
44815         (gl_UNISTD_MODULE_INDICATOR): New macro.
44816         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
44817         many new variables. Don't set UNISTD_H.
44818         * modules/unistd (Description): Change.
44819         (Depends-on): Add link-warning.
44820         (configure.ac): Update.
44821         (Makefile.am): Create unistd.h always. Substitute many new variables
44822         into it.
44823
44824 2007-02-18  Bruno Haible  <bruno@clisp.org>
44825
44826         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
44827         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
44828         HAVE_GETSUBOPT.
44829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
44830         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
44831         * lib/getsubopt.h: Remove file.
44832         * modules/getsubopt (Files): Remove lib/getsubopt.h.
44833         (Depends-on): Add stdlib.
44834         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44835         (Includes): Use <stdlib.h> instead of getsubopt.h.
44836         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
44837         Set HAVE_GETSUBOPT.
44838         * lib/getsubopt.c: Don't include getsubopt.h.
44839
44840 2007-02-18  Bruno Haible  <bruno@clisp.org>
44841
44842         * modules/fchdir (Depends-on): Add dup2.
44843
44844 2007-02-18  Bruno Haible  <bruno@clisp.org>
44845
44846         * lib/stdlib_.h: Handle glibc's special invocation convention
44847         specially.
44848
44849 2007-02-18  Bruno Haible  <bruno@clisp.org>
44850
44851         * modules/stdlib-tests: New file.
44852         * tests/test-stdlib.c: New file.
44853
44854         * modules/mkstemp (Files): Remove lib/mkstemp.h.
44855         (Depends-on): Add stdlib.
44856         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44857         (Includes): Use <stdlib.h> instead of mkstemp.h.
44858         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44859         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
44860         * lib/mkstemp.c: Don't include mkstemp.h.
44861         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
44862         * lib/stdlib--.h: Don't include mkstemp.h.
44863
44864         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
44865         (Depends-on): Add stdlib.
44866         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44867         (Includes): Use <stdlib.h> instead of mkdtemp.h.
44868         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44869         HAVE_MKDTEMP.
44870         * lib/mkdtemp.c: Don't include mkdtemp.h.
44871         * lib/clean-temp.c: Don't include mkdtemp.h.
44872
44873         * modules/exit (Files): Remove lib/exit.h.
44874         (Depends-on): Add stdlib.
44875         (Makefile.am): Remove lib_SOURCES.
44876         (Include): Use <stdlib.h> instead of exit.h.
44877         * lib/argmatch.c: Don't include exit.h.
44878         * lib/execute.c: Likewise.
44879         * lib/pagealign_alloc.c: Likewise.
44880         * lib/pipe.c: Likewise.
44881         * lib/wait-process.c: Likewise.
44882         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
44883         * lib/exitfail.c: Likewise.
44884         * lib/savewd.c: Likewise.
44885         * lib/xsetenv.c: Likewise.
44886
44887         * modules/stdlib: New file.
44888         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
44889         and extra comments about mkstemp().
44890         * lib/exit.h: Remove file.
44891         * lib/mkdtemp.h: Remove file.
44892         * lib/mkstemp.h: Remove file.
44893         * m4/stdlib_h.m4: New file.
44894         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
44895
44896 2007-02-18  Bruno Haible  <bruno@clisp.org>
44897
44898         * modules/math-tests: New file.
44899         * tests/test-math.c: New file.
44900
44901         * modules/math: New file.
44902         * modules/mathl (Files): Remove lib/mathl.h.
44903         (Depends-on): Add math.
44904         (Makefile.am): Don't mention mathl.h.
44905         (Include): Use <math.h> instead of mathl.h.
44906         * lib/math_.h: New file.
44907         * lib/mathl.h: Remove file.
44908         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
44909         mathl.h.
44910         * lib/asinl.c: Likewise.
44911         * lib/atanl.c: Likewise.
44912         * lib/ceill.c: Likewise.
44913         * lib/cosl.c: Likewise.
44914         * lib/expl.c: Likewise.
44915         * lib/floorl.c: Likewise.
44916         * lib/frexpl.c: Likewise.
44917         * lib/ldexpl.c: Likewise.
44918         * lib/logl.c: Likewise.
44919         * lib/sincosl.c: Likewise.
44920         * lib/sinl.c: Likewise.
44921         * lib/sqrtl.c: Likewise.
44922         * lib/tanl.c: Likewise.
44923         * lib/trigl.c: Likewise.
44924         * m4/math_h.m4: New file.
44925         * MODULES.html.sh (Mathematics): Add math.
44926
44927 2007-02-17  Bruno Haible  <bruno@clisp.org>
44928
44929         * modules/wctype-tests: New file.
44930         * tests/test-wctype.c: New file.
44931
44932         * modules/wchar-tests: New file.
44933         * tests/test-wchar.c: New file.
44934
44935         * modules/unistd-tests: New file.
44936         * tests/test-unistd.c: New file.
44937
44938         * modules/time-tests: New file.
44939         * tests/test-time.c: New file.
44940
44941         * modules/sysexits-tests: New file.
44942         * tests/test-sysexits.c: New file.
44943
44944         * modules/sys_time-tests: New file.
44945         * tests/test-sys_time.c: New file.
44946
44947         * modules/sys_stat-tests: New file.
44948         * tests/test-sys_stat.c: New file.
44949
44950         * modules/sys_socket-tests: New file.
44951         * tests/test-sys_socket.c: New file.
44952
44953         * modules/sys_select-tests: New file.
44954         * tests/test-sys_select.c: New file.
44955
44956         * modules/string-tests: New file.
44957         * tests/test-string.c: New file.
44958
44959         * modules/stdbool-tests: New file.
44960         * tests/test-stdbool.c: New file.
44961
44962         * modules/netinet_in-tests: New file.
44963         * tests/test-netinet_in.c: New file.
44964
44965         * modules/inttypes-tests: New file.
44966         * tests/test-inttypes.c: New file.
44967
44968         * modules/fcntl-tests: New file.
44969         * tests/test-fcntl.c: New file.
44970
44971         * modules/byteswap-tests: New file.
44972         * tests/test-byteswap.c: New file.
44973
44974         * modules/arpa_inet-tests: New file.
44975         * tests/test-arpa_inet.c: New file.
44976
44977 2007-02-17  Bruno Haible  <bruno@clisp.org>
44978
44979         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
44980         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
44981         if the corresponding module is not enabled. Emit link warnings if
44982         the function is used nevertheless.
44983         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
44984         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
44985         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
44986         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
44987         * modules/inttypes (Depends-on): Add link-warning.
44988         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44989         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
44990         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
44991         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
44992         * modules/imaxdiv (configure.ac): Likewise.
44993         * modules/strtoimax (configure.ac): Likewise.
44994         * modules/strtoumax (configure.ac): Likewise.
44995
44996 2007-02-17  Bruno Haible  <bruno@clisp.org>
44997
44998         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
44999         gl_STRING_MODULE_INDICATOR_DEFAULTS.
45000         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
45001         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
45002
45003 2007-02-17  Bruno Haible  <bruno@clisp.org>
45004
45005         * modules/link-warning: New file.
45006         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
45007         * lib/string_.h (GL_LINK_WARNING): Remove definition.
45008         * modules/string (Depends-on): Add link-warning.
45009         (Makefile.am): Copy the contents of build-aux/link-warning.h into
45010         string.h.
45011         * MODULES.html.sh (Support for building libraries and executables): Add
45012         link-warning.
45013
45014 2007-02-17  Bruno Haible  <bruno@clisp.org>
45015
45016         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
45017         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
45018         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
45019         long lines.
45020
45021 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
45022             Bruno Haible  <bruno@clisp.org>
45023
45024         * modules/tmpfile: New file.
45025         * lib/tmpfile.c: New file.
45026         * m4/tmpfile.m4: New file.
45027         * MODULES.html.sh (func_all_modules): New section "Input/output".
45028
45029 2007-02-15  Bruno Haible  <bruno@clisp.org>
45030
45031         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
45032         (supports_delete_on_close): New function.
45033         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
45034
45035 2007-02-14  Bruno Haible  <bruno@clisp.org>
45036
45037         * modules/mbspcasecmp-tests: New file.
45038         * tests/test-mbspcasecmp.sh: New file.
45039         * tests/test-mbspcasecmp.c: New file.
45040
45041         New module mbspcasecmp.
45042         * modules/mbspcasecmp: New file.
45043         * lib/mbspcasecmp.c: New file.
45044         * lib/string_.h (strncasecmp): Change warning message.
45045         (mbspcasecmp): New declaration.
45046         * m4/mbspcasecmp.m4: New file.
45047         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45048         GNULIB_MBSPCASECMP.
45049         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
45050         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
45051
45052 2007-02-14  Bruno Haible  <bruno@clisp.org>
45053
45054         * modules/mbsncasecmp-tests: New file.
45055         * tests/test-mbsncasecmp.sh: New file.
45056         * tests/test-mbsncasecmp.c: New file.
45057
45058         New module mbsncasecmp.
45059         * modules/mbsncasecmp: New file.
45060         * lib/mbsncasecmp.c: New file.
45061         * lib/string_.h (mbsncasecmp): New declaration.
45062         * m4/mbsncasecmp.m4: New file.
45063         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45064         GNULIB_MBSNCASECMP.
45065         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
45066         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
45067
45068 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
45069
45070         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
45071         Verify that it doesn't overlap with our flags.
45072         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
45073         do not have the desired effect in multibyte locales; instead, use
45074         mbscasecmp.
45075         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
45076         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
45077         we don't require GNU fnmatch ourselves (if our users require it, they
45078         should do so explicitly).
45079
45080         Fix regex code so it doesn't rely on strcasecmp.
45081         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
45082         Otherwise, include gnulib's langinfo.h.
45083         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
45084         undesirable behavior in non-C locales.  Instead, rely on localecharset.
45085         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
45086         * modules/regex (FILES): Remove m4/codeset.m4.
45087         (Depends-on): Add localcharset.  Remove strcase.
45088
45089 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45090
45091         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
45092         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
45093
45094 2007-02-13  Bruno Haible  <bruno@clisp.org>
45095
45096         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
45097         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45098
45099 2007-02-12  Bruno Haible  <bruno@clisp.org>
45100
45101         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45102         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
45103         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
45104         time warning rather than a link error.
45105
45106 2007-02-12  Bruno Haible  <bruno@clisp.org>
45107
45108         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
45109         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45110         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45111
45112 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
45113
45114         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
45115         args, not 2.
45116
45117 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
45118
45119         New module 'time', so that apps can include <time.h> as per
45120         POSIX and GNU instead of separate include files like time_r.h
45121         and timegm.h.  This implementation tries out a simpler approach
45122         for replacing decls in standard include files (as compared to
45123         the string module), somewhat as an experiment.
45124
45125         * config/srclist.txt: Comment out mktime.c for now.
45126         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
45127         since it doesn't apply any more.  Use generic wording instead.
45128         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
45129         'time'.
45130         * lib/time_.h, m4/time_h.m4, modules/time: New files.
45131         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
45132         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
45133         Don't include <sys/types.h>; no longer needed since we assume C89.
45134         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
45135         * lib/strftime.c: Likewise.
45136         * lib/time_r.c: Likewise.
45137         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
45138         * lib/nanosleep.c: Include <time.h> first, to check interface.
45139         * lib/strptime.c: Likewise.
45140         * lib/time_r.c: Likewise.
45141         * lib/timegm.c: Likewise.
45142         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
45143         needed.
45144         * lib/timegm.c: Don't include timegm.h; no longer needed.
45145         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
45146         time.h now handles any problems in that area.
45147         (struct timespec, nanosleep): Remove; time.h now arranges for these.
45148         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
45149         that time.h defines struct timespec.
45150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
45151         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
45152         handles that.
45153         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
45154         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
45155         needed.  Set REPLACE_LOCALTIME.
45156         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
45157         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
45158         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
45159         nanosleep; time_h.m4 now does that.  Don't require
45160         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
45161         module handles this now.
45162         * modules/getdate (Depends-on): Remove timespec.  Add time.
45163         * modules/nanosleep (Depends-on): Likewise.
45164         * modules/stat-time (Depends-on): Likewise.
45165         * modules/nanosleep (Include): Include time.h, not timespec.h.
45166         * modules/strptime (Files): Remove lib/strptime.h.
45167         (Depends-on): Add extensions, time.
45168         (Include): Include time.h, not strptime.h.
45169         * modules/time_r (Files): Remove lib/time_r.h.
45170         (Depends-on): Add time.
45171         (Include): Include time.h, not time_r.h.
45172         * modules/timegm: Likewise.
45173         * modules/timespec (Description): Now does timespec-related decls
45174         of our own, instead of struct timespec itself.
45175         (Depends-on): Add time; remove extensions.
45176         (Maintainer): Add self.
45177         * modules/utimecmp (Depends-on): Add time; remove timespec.
45178         * modules/utimens (Depends-on): Likewise.
45179         * modules/xnanosleep (Depends-on): Likewise.
45180
45181 2007-02-11  Bruno Haible  <bruno@clisp.org>
45182
45183         * lib/c-strstr.c: Include allocsa.h.
45184         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45185         * lib/c-strcasestr.c: Include allocsa.h.
45186         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45187         * lib/strcasestr.c: Include allocsa.h.
45188         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45189         * lib/mbsstr.c: Include allocsa.h.
45190         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
45191         allocsa/freesa instead of malloc/free.
45192         * lib/mbscasestr.c: Include allocsa.h.
45193         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
45194         allocsa/freesa instead of malloc/free.
45195         * modules/c-strstr (Depends-on): Add allocsa.
45196         * modules/c-strcasestr (Depends-on): Likewise.
45197         * modules/strcasestr (Depends-on): Likewise.
45198         * modules/mbsstr (Depends-on): Likewise.
45199         * modules/mbscasestr (Depends-on): Likewise.
45200
45201 2007-02-11  Bruno Haible  <bruno@clisp.org>
45202
45203         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
45204
45205         * modules/mbsspn-tests: New file.
45206         * tests/test-mbsspn.sh: New file.
45207         * tests/test-mbsspn.c: New file.
45208
45209 2007-02-11  Bruno Haible  <bruno@clisp.org>
45210
45211         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
45212
45213         * modules/mbspbrk-tests: New file.
45214         * tests/test-mbspbrk.sh: New file.
45215         * tests/test-mbspbrk.c: New file.
45216
45217 2007-02-11  Bruno Haible  <bruno@clisp.org>
45218
45219         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
45220         unneeded cast.
45221
45222         * modules/mbscspn-tests: New file.
45223         * tests/test-mbscspn.sh: New file.
45224         * tests/test-mbscspn.c: New file.
45225
45226 2007-02-11  Bruno Haible  <bruno@clisp.org>
45227
45228         * modules/mbscasecmp-tests: New file.
45229         * tests/test-mbscasecmp.sh: New file.
45230         * tests/test-mbscasecmp.c: New file.
45231
45232 2007-02-11  Bruno Haible  <bruno@clisp.org>
45233
45234         Ensure O(n) worst-case complexity of mbscasestr.
45235         * lib/mbscasestr.c: Include stdbool.h.
45236         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
45237         functions.
45238         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
45239         the bookkeeping indicates that it's worth it.
45240         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
45241
45242         * modules/mbscasestr-tests: New file.
45243         * tests/test-mbscasestr1.c: New file.
45244         * tests/test-mbscasestr2.sh: New file.
45245         * tests/test-mbscasestr2.c: New file.
45246         * tests/test-mbscasestr3.sh: New file.
45247         * tests/test-mbscasestr3.c: New file.
45248         * tests/test-mbscasestr4.sh: New file.
45249         * tests/test-mbscasestr4.c: New file.
45250         * m4/locale-tr.m4: New file.
45251
45252 2007-02-11  Bruno Haible  <bruno@clisp.org>
45253
45254         Ensure O(n) worst-case complexity of mbsstr.
45255         * lib/mbsstr.c: Include stdbool.h.
45256         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
45257         functions.
45258         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
45259         bookkeeping indicates that it's worth it.
45260         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
45261
45262         * modules/mbsstr-tests: New file.
45263         * tests/test-mbsstr1.c: New file.
45264         * tests/test-mbsstr2.sh: New file.
45265         * tests/test-mbsstr2.c: New file.
45266         * tests/test-mbsstr3.sh: New file.
45267         * tests/test-mbsstr3.c: New file.
45268         * m4/locale-fr.m4: New file.
45269
45270 2007-02-11  Bruno Haible  <bruno@clisp.org>
45271
45272         * lib/mbsrchr.c (mbsrchr): Fix bug.
45273
45274         * modules/mbsrchr-tests: New file.
45275         * tests/test-mbsrchr.sh: New file.
45276         * tests/test-mbsrchr.c: New file.
45277
45278 2007-02-11  Bruno Haible  <bruno@clisp.org>
45279
45280         * lib/mbschr.c (mbschr): Fix bug.
45281
45282         * modules/mbschr-tests: New file.
45283         * tests/test-mbschr.sh: New file.
45284         * tests/test-mbschr.c: New file.
45285         * m4/locale-zh.m4: New file.
45286
45287 2007-02-11  Bruno Haible  <bruno@clisp.org>
45288
45289         Support for copying multibyte string iterators.
45290         * lib/mbiter.h: Include <string.h>.
45291         (mbiter_multi_copy): New function.
45292         (mbi_copy): New macro.
45293         * lib/mbuiter.h: Include <string.h>.
45294         (mbuiter_multi_copy): New function.
45295         (mbui_copy): New macro.
45296
45297 2007-02-11  Bruno Haible  <bruno@clisp.org>
45298
45299         New module mbslen.
45300         * modules/mbslen: New file.
45301         * lib/mbslen.c: New file.
45302         * lib/string_.h (mbslen): New declaration.
45303         * m4/mbslen.m4: New file.
45304         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45305         GNULIB_MBSLEN.
45306         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
45307         * MODULES.html.sh (Internationalization functions): Add mbslen.
45308
45309 2007-02-11  Bruno Haible  <bruno@clisp.org>
45310
45311         Ensure O(n) worst-case complexity of strcasestr substitute.
45312         * lib/strcasestr.c: Include stdbool.h.
45313         (knuth_morris_pratt): New function.
45314         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
45315         bookkeeping indicates that it's worth it.
45316         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
45317
45318         * modules/strcasestr-tests: New file.
45319         * tests/test-strcasestr.c: New file.
45320
45321 2007-02-11  Bruno Haible  <bruno@clisp.org>
45322
45323         Ensure O(n) worst-case complexity of c_strcasestr.
45324         * lib/c-strcasestr.c: Include stdbool.h, string.h.
45325         (knuth_morris_pratt): New function.
45326         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
45327         the bookkeeping indicates that it's worth it.
45328         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
45329
45330         * modules/c-strcasestr-tests: New file.
45331         * tests/test-c-strcasestr.c: New file.
45332
45333 2007-02-11  Bruno Haible  <bruno@clisp.org>
45334
45335         Ensure O(n) worst-case complexity of c_strstr.
45336         * lib/c-strstr.c: Include stdbool.h, string.h.
45337         (knuth_morris_pratt): New function.
45338         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
45339         bookkeeping indicates that it's worth it.
45340         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
45341
45342         * lib/c-strstr.c: Complete rewrite for maintainability.
45343
45344         * modules/c-strstr-tests: New file.
45345         * tests/test-c-strstr.c: New file.
45346
45347 2007-02-11  Bruno Haible  <bruno@clisp.org>
45348
45349         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
45350         5.2.1 and earlier, whereby \055 was treated just like the range
45351         delimiter '-'.
45352         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45353
45354 2007-02-08  Bruno Haible  <bruno@clisp.org>
45355
45356         * modules/regex (Depends-on): Add stdbool.
45357         Reported by Dalibor Topic <robilad@kaffe.org>.
45358
45359 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
45360
45361         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
45362         Prefer returning from main to exiting from it.
45363         Remove unnecessary parens after sizeof.
45364
45365 2007-02-05  Bruno Haible  <bruno@clisp.org>
45366
45367         New module mbssep.
45368         * modules/mbssep: New file.
45369         * lib/mbssep.c: New file.
45370         * lib/string_.h (strsep): Add a conditional link warning.
45371         (mbssep): New declaration.
45372         * m4/mbssep.m4: New file.
45373         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45374         GNULIB_MBSSEP.
45375         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
45376         * MODULES.html.sh (Internationalization functions): Add mbssep.
45377
45378 2007-02-05  Bruno Haible  <bruno@clisp.org>
45379
45380         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
45381         Optimize search in case of 1 delimiter.
45382
45383 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45384
45385         * lib/acl.h: Include sys/types.h before sys/acl.h.
45386
45387 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45388
45389         Merge upstream fix for glibc bugzilla #3957:
45390
45391         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
45392
45393         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
45394         bit for RE_HAT_LISTS_NOT_NEWLINE.
45395         (build_charclass_op): Remove bogus comment.
45396
45397 2007-02-05  Simon Josefsson  <simon@josefsson.org>
45398
45399         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
45400
45401 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45402
45403         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
45404         * lib/memmem.c [!defined _LIBC]: Include config.h.
45405
45406 2007-02-04  Bruno Haible  <bruno@clisp.org>
45407
45408         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
45409         warning message.
45410
45411 2007-02-04  Bruno Haible  <bruno@clisp.org>
45412
45413         New module mbstok_r.
45414         * modules/mbstok_r: New file.
45415         * lib/mbstok_r.c: New file.
45416         * lib/string_.h (strtok_r): Change argument names to match the
45417         comments. Add a conditional link warning.
45418         (mbstok_r): New declaration.
45419         * m4/mbstok_r.m4: New file.
45420         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45421         GNULIB_MBSTOK_R.
45422         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
45423         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
45424
45425 2007-02-04  Bruno Haible  <bruno@clisp.org>
45426
45427         New module mbsspn.
45428         * modules/mbsspn: New file.
45429         * lib/mbsspn.c: New file.
45430         * lib/string_.h (strspn): Add a conditional link warning.
45431         (mbsspn): New declaration.
45432         * m4/mbsspn.m4: New file.
45433         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45434         GNULIB_MBSSPN.
45435         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
45436         * MODULES.html.sh (Internationalization functions): Add mbsspn.
45437
45438 2007-02-04  Bruno Haible  <bruno@clisp.org>
45439
45440         New module mbspbrk.
45441         * modules/mbspbrk: New file.
45442         * lib/mbspbrk.c: New file.
45443         * lib/string_.h (strpbrk): Add a conditional link warning.
45444         (mbspbrk): New declaration.
45445         * m4/mbspbrk.m4: New file.
45446         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45447         GNULIB_MBSPBRK.
45448         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
45449         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
45450
45451 2007-02-04  Bruno Haible  <bruno@clisp.org>
45452
45453         New module mbscspn.
45454         * modules/mbscspn: New file.
45455         * lib/mbscspn.c: New file.
45456         * lib/string_.h (strcspn): Add a conditional link warning.
45457         (mbscspn): New declaration.
45458         * m4/mbscspn.m4: New file.
45459         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45460         GNULIB_MBSCSPN.
45461         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
45462         * MODULES.html.sh (Internationalization functions): Add mbscspn.
45463
45464 2007-02-04  Bruno Haible  <bruno@clisp.org>
45465
45466         New module mbscasestr, reduced goal of strcasestr.
45467         * modules/mbscasestr: New file.
45468         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
45469         (mbscasestr): Renamed from strcasestr.
45470         * lib/strcasestr.c: Don't include mbuiter.h.
45471         (strcasestr): Remove support for multibyte locales.
45472         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
45473         Change the conditional link warning.
45474         (mbscasestr): New declaration.
45475         * m4/mbscasestr.m4: New file.
45476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
45477         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
45478         REPLACE_STRCASESTR.
45479         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
45480         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45481         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45482         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
45483         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
45484         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45485         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
45486         (Depends-on): Remove mbuiter.
45487         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
45488
45489 2007-02-04  Bruno Haible  <bruno@clisp.org>
45490
45491         Simplify handling of strncasecmp.
45492         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
45493         the conditional link warning.
45494         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45495         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
45496         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
45497         * modules/strcase (configure.ac): Don't invoke
45498         gl_STRING_MODULE_INDICATOR.
45499         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
45500
45501 2007-02-04  Bruno Haible  <bruno@clisp.org>
45502
45503         New module mbscasecmp, reduced goal of strcasecmp.
45504         * modules/mbscasecmp: New file.
45505         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
45506         (mbscasecmp): Renamed from strcasecmp.
45507         * lib/strcasecmp.c: Don't include mbuiter.h.
45508         (strcasecmp): Remove support for multibyte locales.
45509         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
45510         Change the conditional link warning.
45511         (mbscasecmp): New declaration.
45512         * m4/mbscasecmp.m4: New file.
45513         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
45514         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
45515         REPLACE_STRCASECMP.
45516         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
45517         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45518         GNULIB_MBSCASECMP.
45519         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
45520         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
45521         * modules/strcase (Files): Remove m4/mbrtowc.m4.
45522         (Depends-on): Remove mbuiter.
45523         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
45524
45525 2007-02-04  Bruno Haible  <bruno@clisp.org>
45526
45527         New module mbsstr. Remove module strstr.
45528         * modules/mbsstr: New file.
45529         * modules/strstr: Remove file.
45530         * lib/mbsstr.c: Renamed from lib/strstr.c.
45531         (mbsstr): Renamed from strstr.
45532         * lib/string_.h (strstr): Remove declaration. Change the conditional
45533         link warning.
45534         (mbsstr): New declaration.
45535         * m4/mbsstr.m4: New file.
45536         * m4/strstr.m4: Remove file.
45537         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
45538         REPLACE_STRSTR.
45539         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
45540         Don't initialize GNULIB_STRSTR.
45541         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
45542         substitute GNULIB_STRSTR and REPLACE_STRSTR.
45543         * MODULES.html.sh (Internationalization functions): Add mbsstr.
45544         (Support for systems lacking ANSI C 89): Remove strstr.
45545
45546 2007-02-04  Bruno Haible  <bruno@clisp.org>
45547
45548         New module mbsrchr.
45549         * modules/mbsrchr: New file.
45550         * lib/mbsrchr.c: New file.
45551         * lib/string_.h (strrchr): Add a conditional link warning.
45552         (mbsrchr): New declaration.
45553         * m4/mbsrchr.m4: New file.
45554         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45555         GNULIB_MBSRCHR.
45556         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
45557         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
45558
45559 2007-02-04  Bruno Haible  <bruno@clisp.org>
45560
45561         New module mbschr.
45562         * modules/mbschr: New file.
45563         * lib/mbschr.c: New file.
45564         * lib/string_.h (strchr): Add a conditional link warning.
45565         (mbschr): New declaration.
45566         * m4/mbschr.m4: New file.
45567         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45568         GNULIB_MBSCHR.
45569         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
45570         * MODULES.html.sh (Internationalization functions): Add mbschr.
45571
45572 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45573
45574         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
45575
45576         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
45577
45578 2007-02-04  Bruno Haible  <bruno@clisp.org>
45579
45580         New module description section 'configure.ac-early'.
45581         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
45582         (func_get_autoconf_early_snippet): New function.
45583         (func_import, func_create_testdir): Use it. Remove special cases for
45584         modules 'extensions' and 'lock'.
45585         * modules/extensions (configure.ac-early): Require
45586         gl_USE_SYSTEM_EXTENSIONS.
45587         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
45588
45589 2007-02-04  Bruno Haible  <bruno@clisp.org>
45590
45591         Make use of gcj-4.3's -fsource and -ftarget option.
45592         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
45593         and if so try the options -fsource and -ftarget.
45594         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
45595         source_version, ftarget_option, target_version arguments.
45596         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
45597         (is_envjavac_oldgcj_14_14_usable): Renamed from
45598         is_envjavac_gcj_14_14_usable.
45599         (is_envjavac_oldgcj_14_13_usable): Renamed from
45600         is_envjavac_gcj_14_13_usable.
45601         (is_gcj_present): Update.
45602         (is_gcj_43, is_gcj43_usable): New functions.
45603         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
45604         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
45605         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
45606         try the options -fsource and -ftarget.
45607
45608 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
45609
45610         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
45611         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
45612         larger value.
45613
45614 2007-02-03  Jim Meyering  <jim@meyering.net>
45615
45616         Give tools a better chance to allocate space for very large buffers.
45617         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
45618
45619         Make pwd and readlink work also when run with an unreadable parent dir
45620         on systems with openat support.
45621         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
45622         provided getcwd function, even when we have openat support.
45623         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
45624
45625 2007-02-02  Bruno Haible  <bruno@clisp.org>
45626
45627         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45628         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
45629         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
45630         portability problems if one of these functions is only used on specific
45631         platforms.
45632         Reported by Paul Eggert.
45633
45634 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
45635
45636         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
45637         is causing more trouble than it's curing.
45638         * lib/regex_internal.h (__mempcpy): Remove.
45639         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
45640         (and make the code a tad smaller to boot).
45641         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
45642
45643 2007-02-02  Jim Meyering  <jim@meyering.net>
45644
45645         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
45646         section, not in the Makefile.am: one.
45647
45648 2007-02-02  Eric Blake  <ebb9@byu.net>
45649
45650         * lib/strchrnul.c: Always include config.h first.
45651
45652         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
45653         gnulib strstr is not necessary here.
45654
45655 2007-02-02  Simon Josefsson  <simon@josefsson.org>
45656
45657         * m4/socklen.m4: Fix typo.
45658
45659 2007-02-02  Eric Blake  <ebb9@byu.net>
45660
45661         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
45662         * modules/netinet_in (Makefile.am): Likewise.
45663
45664 2007-02-01  Bruno Haible  <bruno@clisp.org>
45665
45666         * lib/string_.h (GL_LINK_WARNING): New macro.
45667         (strcasecmp, strstr, strcasestr): If provided by the system,
45668         conditionally define as a macro that leads to a warning instead of to
45669         an error.
45670         (strncasecmp): Conditionally define as a macro that leads to a warning.
45671
45672 2007-02-01  Karl Berry  <karl@gnu.org>
45673
45674         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
45675
45676 2007-02-01  Bruno Haible  <bruno@clisp.org>
45677
45678         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
45679         renamings.
45680
45681 2007-02-01  Eric Blake  <ebb9@byu.net>
45682
45683         * modules/regex (Depends-on): Revert dependence on mempcpy.
45684         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
45685         module's definition of mempcpy.
45686         Reported by Paul Eggert.
45687
45688 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
45689
45690         * lib/string_.h: If the gnulib module XYZ is not present, undefine
45691         the symbol XYZ before redefining it.  This fixes a problem with
45692         programs that don't use XYZ, when compiled on systems that define
45693         XYZ to something else.
45694
45695 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
45696
45697         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
45698         occurs when "mkdir -m foo" creates a setgid directory that is (1)
45699         writeable to group or other and (2) is intended to have a special
45700         mode bit that is set or cleared.  In such a case, the directory
45701         should be neither group- nor other-writeable until the special
45702         mode bits are right.
45703
45704 2007-01-31  Eric Blake  <ebb9@byu.net>
45705
45706         * modules/mountlist (Depends-on): Add strstr.
45707
45708         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
45709         bug.
45710         * modules/string (Makefile.am): Remove redundant replacement.
45711         * modules/regex (Depends-on): Add mempcpy.
45712
45713 2007-01-31  Bruno Haible  <bruno@clisp.org>
45714
45715         New module description field 'Link'.
45716         * gnulib-tool (func_usage): Document --extract-link-directive.
45717         (sed_extract_prog): Recognize 'Link' directive.
45718         (func_get_link_directive): New function.
45719         (func_import): Show summary of link directives.
45720         Handle --extract-link-directive option.
45721         * modules/acl (Link): New section.
45722         * modules/clock-time (Link): New section.
45723         * modules/euidaccess (Link): New section.
45724         * modules/gettext (Link): New section.
45725         * modules/iconv (Link): New section.
45726         * modules/lock (Link): New section.
45727         * modules/nanosleep (Link): New section.
45728         * modules/readline (Link): New section.
45729
45730 2007-01-27  Bruno Haible  <bruno@clisp.org>
45731
45732         Enforce the use of gnulib modules for unportable <string.h> functions.
45733         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
45734         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
45735         (gl_HEADER_STRING_H_BODY): Require it.
45736         * lib/string_.h: If the gnulib module XYZ is not present, redefine
45737         the symbol XYZ to one that gives a link error.
45738         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
45739         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
45740         * modules/mempcpy (configure.ac): Likewise.
45741         * modules/memrchr (configure.ac): Likewise.
45742         * modules/stpcpy (configure.ac): Likewise.
45743         * modules/stpncpy (configure.ac): Likewise.
45744         * modules/strcase (configure.ac): Likewise.
45745         * modules/strcasestr (configure.ac): Likewise.
45746         * modules/strchrnul (configure.ac): Likewise.
45747         * modules/strdup (configure.ac): Likewise.
45748         * modules/strndup (configure.ac): Likewise.
45749         * modules/strnlen (configure.ac): Likewise.
45750         * modules/strpbrk (configure.ac): Likewise.
45751         * modules/strsep (configure.ac): Likewise.
45752         * modules/strstr (configure.ac): Likewise.
45753         * modules/strtok_r (configure.ac): Likewise.
45754
45755 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
45756
45757         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
45758
45759 2007-01-30  Jim Meyering  <jim@meyering.net>
45760
45761         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
45762
45763 2007-01-29  Bruno Haible  <bruno@clisp.org>
45764
45765         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
45766         * lib/execute.c: Likewise.
45767         * lib/pipe.c: Likewise.
45768         * lib/printf-args.h: Likewise.
45769         * lib/printf-args.c: Likewise.
45770         * lib/printf-parse.c: Likewise.
45771         * lib/vasnprintf.c: Likewise.
45772
45773 2007-01-29  Eric Blake  <ebb9@byu.net>
45774
45775         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
45776         declaration.
45777
45778 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
45779
45780         * lib/strptime.h (strptime): Use 'restrict' for args where
45781         POSIX requires this.
45782         * lib/strptime.c (strptime): Likewise.
45783         Change license notice from LGPL to GPL, since gnulib-tool will
45784         change this as needed.
45785         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
45786         defined.
45787         Include "strptime.h" first, to check interface.
45788         Do not #undef _LIBC and _NL_CURRENT.
45789         Do not include <stdlib.h>; no longer needed.
45790         Include "time_r.h" and declare ptime_locale_status
45791         only if _LIBC is not defined.
45792         (__P): Remove unused macro.
45793         (match_string): Bring back glibc version, but use it only if _LIBC
45794         is defined.
45795         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
45796         Remove unnecessary assertion and abort() call.
45797         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
45798         * m4/strptime.m4: Fix serial number comment.
45799         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
45800         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
45801         (Depends-on): Add time_r.
45802
45803 2007-01-29  Bruno Haible  <bruno@clisp.org>
45804
45805         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45806         strptime.
45807         * modules/strptime (Depends-on): Add stdbool.
45808         * lib/strptime.h: Include <time.h> always. Add comments.
45809
45810 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45811
45812         * modules/strptime: New file.
45813         * lib/strptime.h: New file.
45814         * lib/strptime.c: New file.
45815         * m4/strptime.m4: New file.
45816
45817 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
45818
45819         * MODULES.html.sh: New module mpsort.
45820         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
45821
45822         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
45823         a circularity problem with HP-UX ia64 reported by Bob Proulx in
45824         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
45825         All uses changed.
45826         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
45827         All uses changed.
45828         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
45829         to _Restrict_.
45830         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
45831         the parameter matches the prototype.
45832
45833 2007-01-28  Jim Meyering  <jim@meyering.net>
45834
45835         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
45836         sys/time.h here, reverting that part of the previous patch:
45837         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
45838
45839 2007-01-28  Bruno Haible  <bruno@clisp.org>
45840
45841         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
45842         value of $(SYS_TIME_H).
45843         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
45844         remove it conditionally, too. [added by Jim Meyering]
45845         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
45846         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
45847         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
45848         GETTIMEOFDAY_REPLACEMENT to 1.
45849
45850 2007-01-28  Bruno Haible  <bruno@clisp.org>
45851
45852         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
45853         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
45854         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
45855         Set UNISTD_H instead of UNISTD_H2.
45856         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
45857
45858 2007-01-28  Bruno Haible  <bruno@clisp.org>
45859
45860         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
45861         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
45862
45863 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45864
45865         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
45866         (func_create_testdir): Ensure C locale for `grep' and `tr'
45867         character ranges.
45868         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
45869         ACLOCAL_AMFLAGS parsing state machine.
45870
45871 2007-01-27  Bruno Haible  <bruno@clisp.org>
45872
45873         * modules/unistr/base: Update.
45874
45875 2007-01-27  Bruno Haible  <bruno@clisp.org>
45876
45877         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
45878         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
45879         * modules/unistr/u32-mbtouc-unsafe: Renamed from
45880         modules/unistr/u32-mbtouc.
45881         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
45882         * lib/unistr.h: Update.
45883         * lib/linebreak.c: Update.
45884         * modules/unistr/u32-mbtouc: Renamed from
45885         modules/unistr/u32-mbtouc-safe.
45886         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
45887         * lib/unistr.h: Update.
45888         * lib/unistr/u32-to-u8.c: Update.
45889         * lib/unistr/u32-to-u16.c: Update.
45890
45891 2007-01-27  Bruno Haible  <bruno@clisp.org>
45892
45893         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
45894         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
45895         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
45896         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
45897         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
45898         * modules/unistr/u16-mbtouc-unsafe: Renamed from
45899         modules/unistr/u16-mbtouc.
45900         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
45901         * lib/unistr.h: Update.
45902         * lib/linebreak.c: Update.
45903         * modules/linebreak: Update.
45904         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
45905         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
45906         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
45907         * modules/unistr/u16-mbtouc: Renamed from
45908         modules/unistr/u16-mbtouc-safe.
45909         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
45910         * lib/unistr.h: Update.
45911         * lib/unistr/u16-to-u8.c: Update.
45912         * modules/unistr/u16-to-u8: Update.
45913         * lib/unistr/u16-to-u32.c: Update.
45914         * modules/unistr/u16-to-u32: Update.
45915
45916 2007-01-27  Bruno Haible  <bruno@clisp.org>
45917
45918         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
45919         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
45920         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
45921         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
45922         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
45923         * modules/unistr/u8-mbtouc-unsafe: Renamed from
45924         modules/unistr/u8-mbtouc.
45925         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
45926         * lib/unistr.h: Update.
45927         * lib/striconveh.c: Update.
45928         * modules/striconveh: Update.
45929         * lib/linebreak.c: Update.
45930         * modules/linebreak: Update.
45931         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
45932         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
45933         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
45934         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
45935         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
45936         * lib/unistr.h: Update.
45937         * lib/striconveh.c: Update.
45938         * modules/striconveh: Update.
45939         * lib/unistr/u8-to-u16.c: Update.
45940         * modules/unistr/u8-to-u16: Update.
45941         * lib/unistr/u8-to-u32.c: Update.
45942         * modules/unistr/u8-to-u32: Update.
45943
45944 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45945
45946         Sync from Libtool.
45947         * lib/argz.c: Do not include strings.h nor memory.h, include
45948         string.h unconditionally.  Patch by Simon Josefsson.
45949
45950 2007-01-27  Bruno Haible  <bruno@clisp.org>
45951
45952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
45953         from gl_HEADER_STRING_H_BODY.
45954         (gl_HEADER_STRING_H_BODY): Require it.
45955         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
45956         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45957         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45958         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45959         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45960         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
45961         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45962         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45963         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
45964         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45965         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45966         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
45967         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45968         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45969         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45970
45971 2007-01-27  Bruno Haible  <bruno@clisp.org>
45972
45973         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
45974         check_PROGRAMS into noinst_PROGRAMS.
45975         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
45976         check_PROGRAMS in this case.
45977         (func_import): Set for_test to false.
45978         (func_create_testdir): Set for_test to true.
45979
45980 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45981             Bruno Haible  <bruno@clisp.org>
45982
45983         * modules/strcasestr (Files): Remove lib/strcasestr.h.
45984         (Depends-on): Add string.
45985         (Includes): Use <string.h> instead of strcasestr.h.
45986         * modules/string (Makefile.am): Also substitute the value of
45987         REPLACE_STRCASESTR.
45988         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
45989         assume strcasestr is declared in <string.h> not <strings.h>. Also
45990         set REPLACE_STRCASESTR.
45991         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
45992         REPLACE_STRCASESTR.
45993         * lib/strcasestr.h: Remove file.
45994         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
45995         * lib/string_.h (strcasestr): New declaration.
45996
45997 2007-01-27  Bruno Haible  <bruno@clisp.org>
45998
45999         * lib/string_.h: Use 'extern'.
46000
46001 2007-01-27  Jim Meyering  <jim@meyering.net>
46002
46003         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
46004         of set-but-not-used local, "q".
46005
46006         * lib/mempcpy.c: Include <config.h> before <string.h>.
46007         This fixes a compilation error on HP-UX, due to the system's
46008         "restrict"-using mempcpy prototype.
46009
46010 2007-01-26  Bruno Haible  <bruno@clisp.org>
46011
46012         Small optimization.
46013         * lib/javacomp.c: Include c-strstr.h.
46014          (is_envjavac_gcj): Use c_strstr instead of strstr.
46015         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
46016
46017 2007-01-26  Bruno Haible  <bruno@clisp.org>
46018
46019         * MODULES.html.sh (Unicode string functions): Add the new modules.
46020
46021         * modules/uniconv/u32-strconv-to-locale: New file.
46022         * lib/uniconv/u32-strconv-to-locale.c: New file.
46023
46024         * modules/uniconv/u16-strconv-to-locale: New file.
46025         * lib/uniconv/u16-strconv-to-locale.c: New file.
46026
46027         * modules/uniconv/u8-strconv-to-locale: New file.
46028         * lib/uniconv/u8-strconv-to-locale.c: New file.
46029
46030         * modules/uniconv/u32-strconv-from-locale: New file.
46031         * lib/uniconv/u32-strconv-from-locale.c: New file.
46032
46033         * modules/uniconv/u16-strconv-from-locale: New file.
46034         * lib/uniconv/u16-strconv-from-locale.c: New file.
46035
46036         * modules/uniconv/u8-strconv-from-locale: New file.
46037         * lib/uniconv/u8-strconv-from-locale.c: New file.
46038
46039         * modules/uniconv/u32-strconv-to-enc: New file.
46040         * lib/uniconv/u32-strconv-to-enc.c: New file.
46041         * modules/uniconv/u32-strconv-to-enc-tests: New file.
46042         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
46043
46044         * modules/uniconv/u16-strconv-to-enc: New file.
46045         * lib/uniconv/u16-strconv-to-enc.c: New file.
46046         * lib/uniconv/u-strconv-to-enc.h: New file.
46047         * modules/uniconv/u16-strconv-to-enc-tests: New file.
46048         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
46049
46050         * modules/uniconv/u8-strconv-to-enc: New file.
46051         * lib/uniconv/u8-strconv-to-enc.c: New file.
46052         * modules/uniconv/u8-strconv-to-enc-tests: New file.
46053         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
46054
46055         * modules/uniconv/u32-strconv-from-enc: New file.
46056         * lib/uniconv/u32-strconv-from-enc.c: New file.
46057         * modules/uniconv/u32-strconv-from-enc-tests: New file.
46058         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
46059
46060         * modules/uniconv/u16-strconv-from-enc: New file.
46061         * lib/uniconv/u16-strconv-from-enc.c: New file.
46062         * modules/uniconv/u16-strconv-from-enc-tests: New file.
46063         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
46064
46065         * modules/uniconv/u8-strconv-from-enc: New file.
46066         * lib/uniconv/u8-strconv-from-enc.c: New file.
46067         * lib/uniconv/u-strconv-from-enc.h: New file.
46068         * modules/uniconv/u8-strconv-from-enc-tests: New file.
46069         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
46070
46071         * modules/uniconv/u32-conv-from-enc: New file.
46072         * lib/uniconv/u32-conv-from-enc.c: New file.
46073         * modules/uniconv/u32-conv-from-enc-tests: New file.
46074         * tests/uniconv/test-u32-conv-from-enc.c: New file.
46075
46076         * modules/uniconv/u16-conv-from-enc: New file.
46077         * lib/uniconv/u16-conv-from-enc.c: New file.
46078         * lib/uniconv/u-conv-from-enc.h: New file.
46079         * modules/uniconv/u16-conv-from-enc-tests: New file.
46080         * tests/uniconv/test-u16-conv-from-enc.c: New file.
46081
46082         * modules/uniconv/u8-conv-from-enc: New file.
46083         * lib/uniconv/u8-conv-from-enc.c: New file.
46084         * modules/uniconv/u8-conv-from-enc-tests: New file.
46085         * tests/uniconv/test-u8-conv-from-enc.c: New file.
46086
46087         * modules/uniconv/base: New file.
46088         * lib/uniconv.h: New file.
46089
46090 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
46091
46092         * doc/gnulib-tool.texi (Initial import): Update to match current
46093         behavior with strdup module.
46094         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
46095         * lib/memmem.h: Remove; all uses removed.  This is now done
46096         by <string.h>.
46097         * lib/mempcpy.h: Likewise.
46098         * lib/memrchr.h: Likewise.
46099         * lib/stpcpy.h: Likewise.
46100         * lib/stpncpy.h: Likewise.
46101         * lib/strcase.h: Likewise.
46102         * lib/strchrnul.h: Likewise.
46103         * lib/strdup.h: Likewise.
46104         * lib/strndup.h: Likewise.
46105         * lib/strnlen.h: Likewise.
46106         * lib/strpbrk.h: Likewise.
46107         * lib/strsep.h: Likewise.
46108         * lib/strstr.h: Likewise.
46109         * lib/strtok_r.h: Likewise.
46110         * lib/string_.h: New file.
46111         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
46112         Rely on <string.h> instead.
46113         * lib/canon-host.c: Likewise.
46114         * lib/chdir-long.c: Likewise.
46115         * lib/concatpath.c: Likewise.
46116         * lib/exclude.c: Likewise.
46117         * lib/fchdir.c: Likewise.
46118         * lib/getaddrinfo.c: Likewise.
46119         * lib/getcwd.c: Likewise.
46120         * lib/getsubopt.c: Likewise.
46121         * lib/glob.c: Likewise.
46122         * lib/hard-locale.c: Likewise.
46123         * lib/iconvme.c: Likewise.
46124         * lib/javacomp.c: Likewise.
46125         * lib/mempcpy.c: Likewise.
46126         * lib/memrchr.c: Likewise.
46127         * lib/regex_internal.h: Likewise.
46128         * lib/stpncpy.c: Likewise.
46129         * lib/strcasecmp.c: Likewise.
46130         * lib/strchrnul.c: Likewise.
46131         * lib/strdup.c: Likewise.
46132         * lib/striconv.c: Likewise.
46133         * lib/striconveh.c: Likewise.
46134         * lib/striconveha.c: Likewise.
46135         * lib/strncasecmp.c: Likewise.
46136         * lib/strndup.c: Likewise.
46137         * lib/strnlen.c: Likewise.
46138         * lib/strsep.c: Likewise.
46139         * lib/strstr.c: Likewise.
46140         * lib/strtok_r.c: Likewise.
46141         * lib/userspec.c: Likewise.
46142         * lib/w32spawn.h: Likewise.
46143         * lib/xstrndup.c: Likewise.
46144         * lib/mountlist.c (strstr): Remove decl.
46145         * m4/string_h.m4: New file.
46146         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
46147         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
46148         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
46149         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
46150         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
46151         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
46152         Set REPLACE_STRCASECMP if necessary.
46153         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
46154         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
46155         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
46156         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
46157         HAVE_DECL_STRDUP if necessary.
46158         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
46159         since gl_FUNC_STRNDUP does that now.
46160         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
46161         Check for decl here...
46162         (gl_PREREQ_STRNLEN): ... not here.
46163         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
46164         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
46165         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
46166         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
46167         necessary.
46168         * modules/string: New file.
46169         * modules/memmem (Files): Remove special-purpose include file.
46170         (Depends-on): Add string.
46171         (Include): Include <string.h>, not the removed file.
46172         * modules/mempcpy: Likewise.
46173         * modules/memrchr: Likewise.
46174         * modules/stpcpy: Likewise.
46175         * modules/stpncpy: Likewise.
46176         * modules/strcase: Likewise.
46177         * modules/strchrnul: Likewise.
46178         * modules/strdup: Likewise.
46179         * modules/strndup: Likewise.
46180         * modules/strnlen: Likewise.
46181         * modules/strpbrk: Likewise.
46182         * modules/strsep: Likewise.
46183         * modules/strstr: Likewise.
46184         * modules/strtok_r: Likewise.
46185         * tests/test-dirname.c: Don't include "strdup.h", since
46186         <string.h> now suffices.
46187         * tests/test-memmem.c: Don't include "memmem.h", since
46188         <string.h> now suffices.
46189
46190 2007-01-25  Bruno Haible  <bruno@clisp.org>
46191
46192         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
46193         *resultp is 0.
46194
46195         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
46196         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
46197         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
46198         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
46199
46200         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
46201         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
46202         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
46203         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
46204         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
46205         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
46206
46207 2007-01-24  Bruno Haible  <bruno@clisp.org>
46208
46209         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
46210         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
46211         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
46212         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
46213         gl_FUNC_FTS_CORE.
46214         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
46215         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
46216         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
46217         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
46218         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
46219         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
46220         gl_FUNC_FCHOWNAT.
46221         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
46222         gl_FUNC_STRFTIME.
46223         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
46224         Reported by Ralf Wildenhues.
46225
46226 2007-01-24  Bruno Haible  <bruno@clisp.org>
46227
46228         Drop AC_REQUIRE calls that are redundant with the module dependencies.
46229         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
46230         gl_GETADDRINFO.
46231         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
46232         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
46233         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
46234
46235 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
46236
46237         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
46238         Don't use 'exit'; just return from 'main'.
46239         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
46240
46241         * lib/fnmatch_.h: Readjust white space and comments to match
46242         glibc, to avoid spurious diffs.
46243
46244 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46245
46246         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
46247         2004-12-01 change by Jakub Jelinek, since this code won't compile
46248         if !LIBC.  Problem reported by Bob Proulx.
46249
46250 2007-01-23  Bruno Haible  <bruno@clisp.org>
46251
46252         * lib/striconveh.c: Include c-strcaseeq.h.
46253         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
46254         * modules/striconveh (Depends-on): Add c-strcaseeq.
46255
46256 2007-01-23  Bruno Haible  <bruno@clisp.org>
46257
46258         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
46259
46260         * modules/c-strcaseeq: New file.
46261         * lib/c-strcaseeq.h: New file.
46262
46263         * modules/streq: New file.
46264         * lib/streq.h: New file.
46265
46266 2007-01-23  Bruno Haible  <bruno@clisp.org>
46267
46268         * modules/striconveha-tests: New file.
46269         * tests/test-striconveha.c: New file.
46270
46271         * lib/striconveha.h: Include <stdbool.h>.
46272         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
46273         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
46274         (mem_iconveha_notranslit): Renamed from mem_iconveha.
46275         (mem_iconveha): New function.
46276         (str_iconveha_notranslit): Renamed from str_iconveha.
46277         (str_iconveha): New function.
46278         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
46279         c-strcase.
46280
46281 2007-01-23  Bruno Haible  <bruno@clisp.org>
46282
46283         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
46284         encodings without forgiving before trying any encoding with handler.
46285         (str_iconveha): Try all encodings without forgiving before trying any
46286         encoding with handler.
46287
46288 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46289
46290         Import the following changes from libc.
46291
46292         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46293
46294         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
46295
46296         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
46297
46298         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
46299         normal_bracket label.
46300
46301         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
46302
46303         [BZ #361]
46304         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
46305         to normal_bracket after fetching the next character.
46306
46307 2007-01-22  Bruno Haible  <bruno@clisp.org>
46308
46309         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
46310         argument.
46311         * lib/striconveh.c (iconv_carefully_1): New function.
46312         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
46313         argument.
46314         (str_cd_iconveh): Update.
46315         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
46316         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
46317         * tests/test-striconveh.c (MAGIC): New macro.
46318         (new_offsets): New function.
46319         (main): Test call with and without offsets.
46320
46321 2007-01-22  Bruno Haible  <bruno@clisp.org>
46322
46323         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
46324         * modules/sys_select (Makefile.am): Likewise.
46325         * modules/sys_socket (Makefile.am): Likewise.
46326         * modules/sys_time (Makefile.am): Likewise.
46327
46328 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
46329
46330         * modules/gettimeofday (License): Change from GPL to LGPL, since
46331         gettimeofday is a library function.
46332
46333 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46334
46335         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
46336
46337 2007-01-21  Bruno Haible  <bruno@clisp.org>
46338
46339         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
46340
46341 2007-01-21  Bruno Haible  <bruno@clisp.org>
46342
46343         * modules/striconveha: New file.
46344         * lib/striconveha.h: New file.
46345         * lib/striconveha.c: New file.
46346         * MODULES.html.sh (Internationalization functions): Add striconveha.
46347         * lib/striconv.c (str_iconv): Optimize the case of an empty input
46348         string.
46349         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
46350
46351 2007-01-21  Bruno Haible  <bruno@clisp.org>
46352
46353         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
46354         * lib/striconveh.c (str_iconveh): Likewise.
46355
46356 2007-01-21  Bruno Haible  <bruno@clisp.org>
46357
46358         * lib/striconveh.h (mem_iconveh): New declaration.
46359         * lib/striconveh.c (mem_iconveh): New function.
46360         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
46361
46362 2007-01-21  Bruno Haible  <bruno@clisp.org>
46363
46364         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
46365
46366         * lib/striconveh.h (mem_cd_iconveh): Change specification.
46367         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
46368         original result buffer.
46369         (str_cd_iconveh): Update.
46370         * tests/test-striconveh.c (main): Update.
46371
46372         * lib/striconv.h (mem_cd_iconv): Change specification.
46373         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
46374         result buffer.
46375         (str_cd_iconv): Update.
46376         * tests/test-striconv.c (main): Update.
46377
46378 2007-01-21  Bruno Haible  <bruno@clisp.org>
46379
46380         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
46381
46382 2007-01-20  Jim Meyering  <jim@meyering.net>
46383
46384         * lib/userspec.c (parse_with_separator): If a user or group string
46385         starts with "+", skip the corresponding name-to-ID look-up, since
46386         such a look-up must fail: user and group names may not include "+".
46387
46388 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
46389
46390         * lib/poll.c: Include sys/time.h and time.h unconditionally,
46391         since we now assume the sys_time module.
46392         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
46393         check for sys/time.h; no longer needed.
46394         * modules/poll (Depends-on): Depend on sys_time.
46395
46396 2007-01-18  Bruno Haible  <bruno@clisp.org>
46397
46398         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
46399         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46400
46401         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
46402         gettimeofday.
46403
46404         * tests/test-gettimeofday.c: Include <time.h>.
46405         (dummy): Remove variable.
46406
46407         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
46408         gl_HEADER_SYS_TIME_H.
46409         (gl_HEADER_SYS_TIME_H): New macro.
46410
46411         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
46412         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46413         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
46414         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
46415         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46416         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
46417         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
46418         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46419         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
46420         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
46421         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46422
46423         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
46424         last change; it caused a compilation error when cross-compiling to
46425         Cygwin.
46426
46427 2007-01-18  Jim Meyering  <jim@meyering.net>
46428
46429         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
46430         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
46431         than the race-prone "test -d sys || mkdir sys".
46432         (configure.ac): Use AC_PROG_MKDIR_P.
46433         * modules/sys_select: Likewise.
46434         * modules/sys_socket: Likewise.
46435         * modules/sys_time: Likewise.
46436
46437 2007-01-18  Eric Blake  <ebb9@byu.net>
46438
46439         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
46440         replace gettimeofday.
46441         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
46442         name, to avoid infinite recursion.
46443
46444 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
46445
46446         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
46447         module sys_time.
46448         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
46449         assume timespec.h defines struct timeval.
46450         * lib/settime.c: Likewise.
46451         * lib/utimens.c: Likewise.
46452         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
46453         since we now assume the gettimeofday module.
46454         * lib/tempname.c (__gen_tempname): Likewise.
46455         * lib/gettimeofday.h: Remove.
46456         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
46457         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
46458         Include <time.h>, for 'time()'.
46459         (localtime_buffer_addr): Also use this workaround if
46460         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
46461         to simplify the uses.  All uses changed.
46462         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
46463         that #undef is inside {}, and 'const' follows type name consistently.
46464         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
46465         (gettimeofday): Do not use the maximum possible value for
46466         tv->tv_usec, since that might break usages other than ls.c.
46467         Instead, we'll leave ls.c alone.  This undoes today's patch
46468         by Bruno.  Add a compile-time warning for 1s-clock resolution;
46469         we've never observed the problem but might as well keep the
46470         canary.
46471         * lib/nanosleep.c: Include timespec.h first, for interface check.
46472         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
46473         now assume the sys_time module.
46474         * lib/tempname.c: Likewise.
46475         * lib/timespec.h: Likewise.
46476         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
46477         needed.
46478         * lib/strftime.c: Likewise.
46479         * lib/timespec.h: Likewise.
46480         * lib/posixtm.c: Include posixtm.h first, for interface check.
46481         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
46482         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
46483         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
46484         * lib/sys_time_.h: New file.
46485         * lib/timespec.h (struct timespec): Use long int, not long.
46486         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46487         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
46488         Remove obsolescent call to AC_HEADER_TIME.
46489         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
46490         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46491         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46492         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
46493         Likewise.
46494         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
46495         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
46496         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
46497         into the sys_time module.  Check for gettimeofday just once.
46498         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
46499         for gettimeofday signature to just check the signature.  Merely
46500         compile it, since linking doesn't test signature.  Improve test for
46501         whether gettimeofday.o is actually needed.
46502         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
46503         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
46504         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
46505         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46506         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
46507         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
46508         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
46509         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
46510         than worrying about sys/time.h.
46511         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46512         Don't bother worrying about TIME_WITH_SYS_TIME.
46513         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46514         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
46515         * m4/sys_time_h.m4: New file.
46516         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
46517         Don't include sys/time.h.  Return from main rather than exiting.
46518         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
46519         all uses changed.
46520         * modules/gethrxtime (Depends-on): Add sys_time.
46521         * modules/gettime (Depends-on): Likewise.
46522         * modules/gettimeofday (Depends-on): Likewise.
46523         * modules/nanosleep (Depends-on): Likewise.
46524         * modules/settime (Depends-on): Likewise.
46525         * modules/tempname (Depends-on): Likewise.
46526         * modules/utimens (Depends-on): Likewise.
46527         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
46528         (Include:) Change back to <sys/time.h>.
46529         (Maintainer:) Add self.
46530         * modules/sys_time: New file.
46531         * modules/tempname (Depends-on): Add gettimeofday.
46532         * tests/test-gettimeofday.c: Include <sys/time.h>
46533         rather than gettimeofday.h.
46534
46535 2007-01-17  Bruno Haible  <bruno@clisp.org>
46536
46537         * gnulib-tool (func_get_license): Revert last patch. Instead, let
46538         the license default to GPL.
46539         (func_create_testdir): Don't complain if a module is LGPL and its
46540         tests module depends on GPLed modules.
46541
46542 2007-01-17  Bruno Haible  <bruno@clisp.org>
46543
46544         * lib/gettimeofday.c (gettimeofday): Add code for the case
46545         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
46546         maximum possible value for tv->tv_usec, rather than the minimum one.
46547
46548 2005-10-08  Martin Lambers  <marlam@marlam.de>
46549 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46550 2007-01-16  Bruno Haible  <bruno@clisp.org>
46551
46552         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
46553         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
46554         gl_FUNC_GETTIMEOFDAY.
46555         (Include): Add gettimeofday.h.
46556         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
46557         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
46558         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
46559         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
46560         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
46561         * lib/gettimeofday.h: New file.
46562         * lib/gettimeofday.c: Include <sys/timeb.h>.
46563         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
46564         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46565         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
46566         fall back on time().
46567
46568         * tests/test-gettimeofday.c: New file.
46569         * modules/gettimeofday-tests: New file.
46570
46571 2007-01-16  Eric Blake  <ebb9@byu.net>
46572
46573         * modules/fnmatch (Depends-on): Depend on wchar.
46574         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
46575         * m4/fnmatch.m4: Likewise.
46576         * modules/mbchar (Makefile.am): Assume <wchar.h>.
46577         * m4/mbchar.m4: Likewise.
46578         * modules/mbswidth (Depends-on): Depend on wchar.
46579         * lib/mbswidth.c: Assume <wchar.h>.
46580         * m4/mbswidth.m4: Likewise.
46581         * modules/quotearg (Depends-on): Depend on wchar.
46582         * lib/quotearg.c: Assume <wchar.h>.
46583         * m4/quotearg.m4: Likewise.
46584         * modules/regex (Depends-on): Depend on wchar.
46585         * lib/regex_internal.h: Assume <wchar.h>.
46586         * m4/regex.m4: Likewise.
46587         * modules/stdint (Depends-on): Depend on wchar.
46588         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
46589         * m4/stdint.m4: Likewise.
46590         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
46591         * modules/strftime (Depends-on): Depend on wchar.
46592         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
46593         * modules/strtol (Depends-on): Depend on wchar.
46594         * lib/strtol.c: Assume <wchar.h>.
46595         * modules/wcwidth (Depends-on): Depend on wchar.
46596         * lib/wcwidth.h: Assume <wchar.h>.
46597         * m4/wcwidth.m4: Likewise.
46598
46599 2007-01-16  Bruno Haible  <bruno@clisp.org>
46600
46601         * modules/csharpexec-script: New, created from...
46602         * modules/csharpexec: ... this.
46603
46604 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46605
46606         * modules/javaexec-script: New, created from...
46607         * modules/javaexec: ... this.
46608
46609 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46610
46611         * modules/poll (Dependencies): Add sys_select.
46612
46613 2007-01-15  Jim Meyering  <jim@meyering.net>
46614
46615         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
46616         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
46617         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
46618         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
46619
46620 2007-01-15  Bruno Haible  <bruno@clisp.org>
46621
46622         * modules/striconveh: New file.
46623         * lib/striconveh.h: New file.
46624         * lib/striconveh.c: New file.
46625         * MODULES.html.sh (Internationalization functions): Add striconveh.
46626
46627         * modules/striconveh-tests: New file.
46628         * tests/test-striconveh.c: New file.
46629
46630 2007-01-15  Bruno Haible  <bruno@clisp.org>
46631
46632         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
46633         not from GNU libiconv or GNU libc.
46634
46635 2007-01-15  Bruno Haible  <bruno@clisp.org>
46636
46637         * doc/gnulib-intro.texi (Copyright): Explain the different license
46638         terms for module descriptions, autoconf macros, tests, documentation.
46639
46640 2007-01-14  Bruno Haible  <bruno@clisp.org>
46641
46642         * modules/striconv-tests: New file.
46643         * tests/test-striconv.c: New file.
46644
46645 2007-01-14  Bruno Haible  <bruno@clisp.org>
46646
46647         * modules/iconv-tests: New file.
46648         * tests/test-iconv.c: New file.
46649
46650 2007-01-14  Bruno Haible  <bruno@clisp.org>
46651
46652         * gnulib-tool (func_get_license): For test modules, use the license of
46653         the main module.
46654
46655 2007-01-14  Bruno Haible  <bruno@clisp.org>
46656
46657         * modules/iconv (Include): Clarify that <iconv.h> can only be included
46658         if iconv is found to exist.
46659
46660 2007-01-14  Bruno Haible  <bruno@clisp.org>
46661
46662         * modules/c-ctype-tests: New file.
46663         * tests/test-c-ctype.c: New file.
46664
46665 2007-01-14  Bruno Haible  <bruno@clisp.org>
46666
46667         * modules/binary-io-tests: New file.
46668         * tests/test-binary-io.sh: New file.
46669         * tests/test-binary-io.c: New file.
46670
46671 2007-01-14  Bruno Haible  <bruno@clisp.org>
46672
46673         * modules/array-oset-tests: New file.
46674         * tests/test-array_oset.c: New file.
46675
46676 2007-01-14  Bruno Haible  <bruno@clisp.org>
46677
46678         * modules/array-list-tests: New file.
46679         * tests/test-array_list.c: New file.
46680
46681 2007-01-14  Bruno Haible  <bruno@clisp.org>
46682
46683         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
46684         and make.
46685         Reported by Simon Josefsson in
46686         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
46687
46688 2007-01-14  Bruno Haible  <bruno@clisp.org>
46689
46690         * modules/allocsa-tests: New file.
46691         * tests/test-allocsa.c: New file.
46692
46693 2007-01-14  Bruno Haible  <bruno@clisp.org>
46694
46695         * modules/fchdir (Depends-on): Add absolute-header.
46696         * modules/unistd (Depends-on): Likewise.
46697
46698 2006-12-30  Bruno Haible  <bruno@clisp.org>
46699
46700         * modules/fchdir: New file.
46701         * modules/unistd (Files): Add lib/unistd_.h.
46702         (Makefile.am): Generate unistd.h from unistd_.h.
46703         * lib/fchdir.c: New file.
46704         * lib/dirent_.h: New file.
46705         * lib/unistd_.h: New file.
46706         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
46707         * m4/fchdir.m4: New file.
46708         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
46709         (gl_HEADER_UNISTD): Invoke it.
46710         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
46711         function.
46712         * lib/backupfile.c (opendir, closedir): Undefine.
46713         * lib/chown.c (open, close): Undefine.
46714         * lib/clean-temp.c (open, close): Undefine.
46715         * lib/copy-file.c (open, close): Undefine.
46716         * lib/execute.c (open, close): Undefine.
46717         * lib/fsusage.c (open, close): Undefine.
46718         * lib/gc-gnulib.c (open, close): Undefine.
46719         * lib/getcwd.c (opendir, closedir): Undefine.
46720         * lib/glob.c (opendir, closedir): Undefine.
46721         * lib/javacomp.c (open, close): Undefine.
46722         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
46723         * lib/openat-proc.c (open, close): Undefine.
46724         * lib/pagealign_alloc.c (open, close): Undefine.
46725         * lib/pipe.c (open, close): Undefine.
46726         * lib/progreloc.c (open, close): Undefine.
46727         * lib/savedir.c (opendir, closedir): Undefine.
46728         * lib/utime.c (open, close): Undefine.
46729         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
46730
46731 2007-01-10  Bruno Haible  <bruno@clisp.org>
46732
46733         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
46734
46735 2007-01-12  Eric Blake  <ebb9@byu.net>
46736
46737         Provide a robust <wchar.h>.  Further simplifications are now
46738         possible in other modules, but not included here.
46739         * modules/wchar: New module.
46740         * m4/wchar.m4: New file.
46741         * lib/wchar_.h: Likewise.
46742         * modules/mbchar (Depends-on): Depend on wchar, as the first use
46743         of the new module.
46744         * MODULES.html.sh (Extended multibyte and wide character utilities):
46745         New section.
46746
46747 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
46748
46749         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
46750         to a reasonable default for memory allocation.
46751         (xreadlink): Don't allocate a huge buffer, to work around a buggy
46752         file system that reports garbage st_size values for symlinks.
46753         Problem reported by Liyang Hu.
46754
46755 2007-01-11  Simon Josefsson  <simon@josefsson.org>
46756
46757         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
46758         Emacs .#* auto-save files).
46759
46760 2007-01-11  Bruno Haible  <bruno@clisp.org>
46761
46762         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
46763         directory.
46764
46765 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46766
46767         Use @...@ consistently in lib/wctype_.h.
46768         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
46769         on it being set to 1 or 0.
46770         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
46771         go back to AC_SUBSTing it.
46772         * modules/wctype (Makefile.am): Undo previous change.
46773
46774 2007-01-10  Eric Blake  <ebb9@byu.net>
46775
46776         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
46777         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
46778         * modules/wctype (Makefile.am): Likewise.
46779         Reported by Chris McGuire.
46780
46781 2007-01-10  Jim Meyering  <jim@meyering.net>
46782
46783         fts.c: a small readability/maintainability improvement
46784         * lib/fts.c (fts_read): Make this code slightly more readable and
46785         maintainable by hoisting the "sp->fts_cur = p" assignments to
46786         immediately follow the statements that set P.  Derived from
46787         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
46788
46789 2007-01-10  Eric Blake  <ebb9@byu.net>
46790
46791         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
46792         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
46793         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46794         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46795         Reported by Chris McGuire.
46796
46797 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46798
46799         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
46800         in sed script.
46801
46802 2007-01-09  Bruno Haible  <bruno@clisp.org>
46803
46804         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
46805         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
46806         variables.
46807         (func_module): Use them.
46808
46809 2007-01-09  Bruno Haible  <bruno@clisp.org>
46810
46811         * modules/unistr/base: New file.
46812         * lib/unistr.h: New file.
46813
46814         * modules/unistr/u8-to-u16: New file.
46815         * lib/unistr/u8-to-u16.c: New file.
46816
46817         * modules/unistr/u8-to-u32: New file.
46818         * lib/unistr/u8-to-u32.c: New file.
46819
46820         * modules/unistr/u16-to-u8: New file.
46821         * lib/unistr/u16-to-u8.c: New file.
46822
46823         * modules/unistr/u16-to-u32: New file.
46824         * lib/unistr/u16-to-u32.c: New file.
46825
46826         * modules/unistr/u32-to-u8: New file.
46827         * lib/unistr/u32-to-u8.c: New file.
46828
46829         * modules/unistr/u32-to-u16: New file.
46830         * lib/unistr/u32-to-u16.c: New file.
46831
46832         * modules/unistr/u8-check: New file.
46833         * modules/unistr/u16-check: New file.
46834         * modules/unistr/u32-check: New file.
46835         * lib/unistr/u8-check.c: New file.
46836         * lib/unistr/u16-check.c: New file.
46837         * lib/unistr/u32-check.c: New file.
46838
46839         * modules/unistr/u8-chr: New file.
46840         * modules/unistr/u16-chr: New file.
46841         * modules/unistr/u32-chr: New file.
46842         * lib/unistr/u8-chr.c: New file.
46843         * lib/unistr/u16-chr.c: New file.
46844         * lib/unistr/u32-chr.c: New file.
46845
46846         * modules/unistr/u8-cmp: New file.
46847         * modules/unistr/u16-cmp: New file.
46848         * modules/unistr/u32-cmp: New file.
46849         * lib/unistr/u8-cmp.c: New file.
46850         * lib/unistr/u16-cmp.c: New file.
46851         * lib/unistr/u32-cmp.c: New file.
46852
46853         * modules/unistr/u8-cpy: New file.
46854         * modules/unistr/u16-cpy: New file.
46855         * modules/unistr/u32-cpy: New file.
46856         * lib/unistr/u8-cpy.c: New file.
46857         * lib/unistr/u16-cpy.c: New file.
46858         * lib/unistr/u32-cpy.c: New file.
46859         * lib/unistr/u-cpy.h: New file.
46860
46861         * modules/unistr/u8-cpy-alloc: New file.
46862         * modules/unistr/u16-cpy-alloc: New file.
46863         * modules/unistr/u32-cpy-alloc: New file.
46864         * lib/unistr/u8-cpy-alloc.c: New file.
46865         * lib/unistr/u16-cpy-alloc.c: New file.
46866         * lib/unistr/u32-cpy-alloc.c: New file.
46867         * lib/unistr/u-cpy-alloc.h: New file.
46868
46869         * modules/unistr/u8-endswith: New file.
46870         * modules/unistr/u16-endswith: New file.
46871         * modules/unistr/u32-endswith: New file.
46872         * lib/unistr/u8-endswith.c: New file.
46873         * lib/unistr/u16-endswith.c: New file.
46874         * lib/unistr/u32-endswith.c: New file.
46875         * lib/unistr/u-endswith.h: New file.
46876
46877         * modules/unistr/u8-mblen: New file.
46878         * modules/unistr/u16-mblen: New file.
46879         * modules/unistr/u32-mblen: New file.
46880         * lib/unistr/u8-mblen.c: New file.
46881         * lib/unistr/u16-mblen.c: New file.
46882         * lib/unistr/u32-mblen.c: New file.
46883
46884         * modules/unistr/u8-mbtouc: New file.
46885         * modules/unistr/u16-mbtouc: New file.
46886         * modules/unistr/u32-mbtouc: New file.
46887         * lib/unistr/u8-mbtouc.c: New file.
46888         * lib/unistr/u16-mbtouc.c: New file.
46889         * lib/unistr/u32-mbtouc.c: New file.
46890
46891         * modules/unistr/u8-mbtouc-safe: New file.
46892         * modules/unistr/u16-mbtouc-safe: New file.
46893         * modules/unistr/u32-mbtouc-safe: New file.
46894         * lib/unistr/u8-mbtouc-safe.c: New file.
46895         * lib/unistr/u16-mbtouc-safe.c: New file.
46896         * lib/unistr/u32-mbtouc-safe.c: New file.
46897
46898         * modules/unistr/u8-move: New file.
46899         * modules/unistr/u16-move: New file.
46900         * modules/unistr/u32-move: New file.
46901         * lib/unistr/u8-move.c: New file.
46902         * lib/unistr/u16-move.c: New file.
46903         * lib/unistr/u32-move.c: New file.
46904         * lib/unistr/u-move.h: New file.
46905
46906         * modules/unistr/u8-next: New file.
46907         * modules/unistr/u16-next: New file.
46908         * modules/unistr/u32-next: New file.
46909         * lib/unistr/u8-next.c: New file.
46910         * lib/unistr/u16-next.c: New file.
46911         * lib/unistr/u32-next.c: New file.
46912
46913         * modules/unistr/u8-prev: New file.
46914         * modules/unistr/u16-prev: New file.
46915         * modules/unistr/u32-prev: New file.
46916         * lib/unistr/u8-prev.c: New file.
46917         * lib/unistr/u16-prev.c: New file.
46918         * lib/unistr/u32-prev.c: New file.
46919
46920         * modules/unistr/u8-set: New file.
46921         * modules/unistr/u16-set: New file.
46922         * modules/unistr/u32-set: New file.
46923         * lib/unistr/u8-set.c: New file.
46924         * lib/unistr/u16-set.c: New file.
46925         * lib/unistr/u32-set.c: New file.
46926         * lib/unistr/u-set.h: New file.
46927
46928         * modules/unistr/u8-startswith: New file.
46929         * modules/unistr/u16-startswith: New file.
46930         * modules/unistr/u32-startswith: New file.
46931         * lib/unistr/u8-startswith.c: New file.
46932         * lib/unistr/u16-startswith.c: New file.
46933         * lib/unistr/u32-startswith.c: New file.
46934         * lib/unistr/u-startswith.h: New file.
46935
46936         * modules/unistr/u8-stpcpy: New file.
46937         * modules/unistr/u16-stpcpy: New file.
46938         * modules/unistr/u32-stpcpy: New file.
46939         * lib/unistr/u8-stpcpy.c: New file.
46940         * lib/unistr/u16-stpcpy.c: New file.
46941         * lib/unistr/u32-stpcpy.c: New file.
46942         * lib/unistr/u-stpcpy.h: New file.
46943
46944         * modules/unistr/u8-stpncpy: New file.
46945         * modules/unistr/u16-stpncpy: New file.
46946         * modules/unistr/u32-stpncpy: New file.
46947         * lib/unistr/u8-stpncpy.c: New file.
46948         * lib/unistr/u16-stpncpy.c: New file.
46949         * lib/unistr/u32-stpncpy.c: New file.
46950         * lib/unistr/u-stpncpy.h: New file.
46951
46952         * modules/unistr/u8-strcat: New file.
46953         * modules/unistr/u16-strcat: New file.
46954         * modules/unistr/u32-strcat: New file.
46955         * lib/unistr/u8-strcat.c: New file.
46956         * lib/unistr/u16-strcat.c: New file.
46957         * lib/unistr/u32-strcat.c: New file.
46958         * lib/unistr/u-strcat.h: New file.
46959
46960         * modules/unistr/u8-strchr: New file.
46961         * modules/unistr/u16-strchr: New file.
46962         * modules/unistr/u32-strchr: New file.
46963         * lib/unistr/u8-strchr.c: New file.
46964         * lib/unistr/u16-strchr.c: New file.
46965         * lib/unistr/u32-strchr.c: New file.
46966
46967         * modules/unistr/u8-strcmp: New file.
46968         * modules/unistr/u16-strcmp: New file.
46969         * modules/unistr/u32-strcmp: New file.
46970         * lib/unistr/u8-strcmp.c: New file.
46971         * lib/unistr/u16-strcmp.c: New file.
46972         * lib/unistr/u32-strcmp.c: New file.
46973
46974         * modules/unistr/u8-strcpy: New file.
46975         * modules/unistr/u16-strcpy: New file.
46976         * modules/unistr/u32-strcpy: New file.
46977         * lib/unistr/u8-strcpy.c: New file.
46978         * lib/unistr/u16-strcpy.c: New file.
46979         * lib/unistr/u32-strcpy.c: New file.
46980         * lib/unistr/u-strcpy.h: New file.
46981
46982         * modules/unistr/u8-strcspn: New file.
46983         * modules/unistr/u16-strcspn: New file.
46984         * modules/unistr/u32-strcspn: New file.
46985         * lib/unistr/u8-strcspn.c: New file.
46986         * lib/unistr/u16-strcspn.c: New file.
46987         * lib/unistr/u32-strcspn.c: New file.
46988         * lib/unistr/u-strcspn.h: New file.
46989
46990         * modules/unistr/u8-strdup: New file.
46991         * modules/unistr/u16-strdup: New file.
46992         * modules/unistr/u32-strdup: New file.
46993         * lib/unistr/u8-strdup.c: New file.
46994         * lib/unistr/u16-strdup.c: New file.
46995         * lib/unistr/u32-strdup.c: New file.
46996         * lib/unistr/u-strdup.h: New file.
46997
46998         * modules/unistr/u8-strlen: New file.
46999         * modules/unistr/u16-strlen: New file.
47000         * modules/unistr/u32-strlen: New file.
47001         * lib/unistr/u8-strlen.c: New file.
47002         * lib/unistr/u16-strlen.c: New file.
47003         * lib/unistr/u32-strlen.c: New file.
47004         * lib/unistr/u-strlen.h: New file.
47005
47006         * modules/unistr/u8-strmblen: New file.
47007         * modules/unistr/u16-strmblen: New file.
47008         * modules/unistr/u32-strmblen: New file.
47009         * lib/unistr/u8-strmblen.c: New file.
47010         * lib/unistr/u16-strmblen.c: New file.
47011         * lib/unistr/u32-strmblen.c: New file.
47012
47013         * modules/unistr/u8-strmbtouc: New file.
47014         * modules/unistr/u16-strmbtouc: New file.
47015         * modules/unistr/u32-strmbtouc: New file.
47016         * lib/unistr/u8-strmbtouc.c: New file.
47017         * lib/unistr/u16-strmbtouc.c: New file.
47018         * lib/unistr/u32-strmbtouc.c: New file.
47019
47020         * modules/unistr/u8-strncat: New file.
47021         * modules/unistr/u16-strncat: New file.
47022         * modules/unistr/u32-strncat: New file.
47023         * lib/unistr/u8-strncat.c: New file.
47024         * lib/unistr/u16-strncat.c: New file.
47025         * lib/unistr/u32-strncat.c: New file.
47026         * lib/unistr/u-strncat.h: New file.
47027
47028         * modules/unistr/u8-strncmp: New file.
47029         * modules/unistr/u16-strncmp: New file.
47030         * modules/unistr/u32-strncmp: New file.
47031         * lib/unistr/u8-strncmp.c: New file.
47032         * lib/unistr/u16-strncmp.c: New file.
47033         * lib/unistr/u32-strncmp.c: New file.
47034
47035         * modules/unistr/u8-strncpy: New file.
47036         * modules/unistr/u16-strncpy: New file.
47037         * modules/unistr/u32-strncpy: New file.
47038         * lib/unistr/u8-strncpy.c: New file.
47039         * lib/unistr/u16-strncpy.c: New file.
47040         * lib/unistr/u32-strncpy.c: New file.
47041         * lib/unistr/u-strncpy.h: New file.
47042
47043         * modules/unistr/u8-strnlen: New file.
47044         * modules/unistr/u16-strnlen: New file.
47045         * modules/unistr/u32-strnlen: New file.
47046         * lib/unistr/u8-strnlen.c: New file.
47047         * lib/unistr/u16-strnlen.c: New file.
47048         * lib/unistr/u32-strnlen.c: New file.
47049         * lib/unistr/u-strnlen.h: New file.
47050
47051         * modules/unistr/u8-strpbrk: New file.
47052         * modules/unistr/u16-strpbrk: New file.
47053         * modules/unistr/u32-strpbrk: New file.
47054         * lib/unistr/u8-strpbrk.c: New file.
47055         * lib/unistr/u16-strpbrk.c: New file.
47056         * lib/unistr/u32-strpbrk.c: New file.
47057         * lib/unistr/u-strpbrk.h: New file.
47058
47059         * modules/unistr/u8-strrchr: New file.
47060         * modules/unistr/u16-strrchr: New file.
47061         * modules/unistr/u32-strrchr: New file.
47062         * lib/unistr/u8-strrchr.c: New file.
47063         * lib/unistr/u16-strrchr.c: New file.
47064         * lib/unistr/u32-strrchr.c: New file.
47065
47066         * modules/unistr/u8-strspn: New file.
47067         * modules/unistr/u16-strspn: New file.
47068         * modules/unistr/u32-strspn: New file.
47069         * lib/unistr/u8-strspn.c: New file.
47070         * lib/unistr/u16-strspn.c: New file.
47071         * lib/unistr/u32-strspn.c: New file.
47072         * lib/unistr/u-strspn.h: New file.
47073
47074         * modules/unistr/u8-strstr: New file.
47075         * modules/unistr/u16-strstr: New file.
47076         * modules/unistr/u32-strstr: New file.
47077         * lib/unistr/u8-strstr.c: New file.
47078         * lib/unistr/u16-strstr.c: New file.
47079         * lib/unistr/u32-strstr.c: New file.
47080         * lib/unistr/u-strstr.h: New file.
47081
47082         * modules/unistr/u8-strtok: New file.
47083         * modules/unistr/u16-strtok: New file.
47084         * modules/unistr/u32-strtok: New file.
47085         * lib/unistr/u8-strtok.c: New file.
47086         * lib/unistr/u16-strtok.c: New file.
47087         * lib/unistr/u32-strtok.c: New file.
47088         * lib/unistr/u-strtok.h: New file.
47089
47090         * modules/unistr/u8-uctomb: New file.
47091         * modules/unistr/u16-uctomb: New file.
47092         * modules/unistr/u32-uctomb: New file.
47093         * lib/unistr/u8-uctomb.c: New file.
47094         * lib/unistr/u16-uctomb.c: New file.
47095         * lib/unistr/u32-uctomb.c: New file.
47096
47097         * MODULES.html.sh (Unicode string functions): Add the new modules.
47098
47099 2007-01-08  Bruno Haible  <bruno@clisp.org>
47100
47101         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
47102         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
47103         subdirectories.
47104
47105 2007-01-08  Karl Berry  <karl@gnu.org>
47106
47107         * doc/error.texi: mention that main() fns must set program_name
47108         when progname is used.
47109
47110 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
47111
47112         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
47113         WCTYPE_H is empty, for the benefit of builds from non-distclean
47114         directories.  Problem reported by Eric Blake in
47115         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
47116
47117 2007-01-08  Bruno Haible  <bruno@clisp.org>
47118
47119         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
47120         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
47121         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
47122         PROVIDE_CANONICALIZE_FILENAME_MODE.
47123         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
47124
47125 2007-01-08  Bruno Haible  <bruno@clisp.org>
47126
47127         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
47128         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
47129         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
47130         * lib/fts.c: Likewise.
47131         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
47132
47133 2006-12-25  Bruno Haible  <bruno@clisp.org>
47134
47135         * modules/utf8-ucs4-safe: New file.
47136         * lib/utf8-ucs4-safe.h: New file.
47137         * lib/unistr/utf8-ucs4-safe.c: New file.
47138
47139         * modules/utf16-ucs4-safe: New file.
47140         * lib/utf16-ucs4-safe.h: New file.
47141         * lib/unistr/utf16-ucs4-safe.c: New file.
47142
47143         * MODULES.html.sh (Unicode string functions): Add the new modules.
47144
47145 2007-01-08  Bruno Haible  <bruno@clisp.org>
47146
47147         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
47148         (Depends-on): Add unitypes.
47149         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
47150         (u8_mbtouc_aux): Move out to separate file.
47151         (u8_mbtouc): Use ucs4_t, uint8_t types.
47152         * lib/unistr/utf8-ucs4.c: New file.
47153
47154         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
47155         (Depends-on): Add unitypes.
47156         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
47157         (u16_mbtouc_aux): Move out to separate file.
47158         (u16_mbtouc): Use ucs4_t, uint16_t types.
47159         * lib/unistr/utf16-ucs4.c: New file.
47160
47161         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
47162         (Depends-on): Add unitypes.
47163         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
47164         (u8_uctomb_aux): Move out to separate file.
47165         (u8_uctomb): Use ucs4_t, uint8_t types.
47166         * lib/unistr/ucs4-utf8.c: New file.
47167
47168         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
47169         (Depends-on): Add unitypes.
47170         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
47171         (u16_uctomb_aux): Move out to separate file.
47172         (u16_uctomb): Use ucs4_t, uint16_t types.
47173         * lib/unistr/ucs4-utf16.c: New file.
47174
47175 2006-12-25  Bruno Haible  <bruno@clisp.org>
47176
47177         * modules/unitypes: New file.
47178         * lib/unitypes.h: New file.
47179         * MODULES.html.sh (func_all_modules): New section "Unicode string
47180         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
47181         this section. Add unitypes.
47182
47183 2007-01-08  Bruno Haible  <bruno@clisp.org>
47184
47185         Avoid variable names that conflict with those from libtool.
47186         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
47187         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
47188         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
47189         library_names_spec to acl_library_names_spec, hardcode_* to
47190         acl_hardcode_*.
47191         Reported by Ralf Wildenhues.
47192
47193 2007-01-08  Bruno Haible  <bruno@clisp.org>
47194
47195         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
47196         definition.
47197         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
47198         definition.
47199         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
47200         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
47201         definition.
47202         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
47203         definition.
47204         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
47205         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
47206         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
47207         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
47208         definition.
47209         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
47210         definition.
47211         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
47212         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
47213         GC_USE_<algorithm>.
47214         * lib/gc-libgcrypt.c: Likewise.
47215         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
47216         * modules/gc-arctwo (configure.ac): Likewise.
47217         * modules/gc-des (configure.ac): Likewise.
47218         * modules/gc-hmac-md5 (configure.ac): Likewise.
47219         * modules/gc-hmac-sha1 (configure.ac): Likewise.
47220         * modules/gc-md2 (configure.ac): Likewise.
47221         * modules/gc-md4 (configure.ac): Likewise.
47222         * modules/gc-md5 (configure.ac): Likewise.
47223         * modules/gc-random (configure.ac): Likewise.
47224         * modules/gc-rijndael (configure.ac): Likewise.
47225         * modules/gc-sha1 (configure.ac): Likewise.
47226
47227 2007-01-08  Bruno Haible  <bruno@clisp.org>
47228
47229         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
47230         macro definition.
47231         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
47232         definition.
47233         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
47234         definition.
47235         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
47236         * modules/fcntl-safer (configure.ac): Likewise.
47237         * modules/fopen-safer (configure.ac): Likewise.
47238         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
47239         GNULIB_FWRITEERROR macro definition.
47240
47241 2007-01-08  Bruno Haible  <bruno@clisp.org>
47242
47243         * m4/gnulib-common.m4: New file.
47244         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
47245         (func_get_filelist): Add m4/gnulib-common.m4.
47246
47247 2007-01-08  Bruno Haible  <bruno@clisp.org>
47248
47249         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
47250         command.
47251
47252 2007-01-08  Jim Meyering  <jim@meyering.net>
47253
47254         Use a more robust test for a "can't happen" condition.
47255         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
47256         narrowed the st_size value.  Presuming the "can't happen" condition
47257         is true, that narrowing could conceivably convert an invalid st_size
47258         value into a valid one.  Instead, use a change based on Matthew
47259         Woehlke's original patch.
47260
47261         Slight readability improvement: use an assert-like macro
47262         in place of literal "abort ()" uses.
47263         * lib/fts.c (fts_assert): Define.
47264         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
47265         Use this macro instead of a bare 'abort'.
47266
47267 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
47268
47269         Don't worry about using IRIX 5.3's wctype.h broken definitions;
47270         simply work around them.
47271         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
47272         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
47273         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
47274         declaring.
47275         Don't bother to define as macros, since the standard doesn't require it.
47276         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
47277         longer worry about IRIX 5.3.
47278         (HAVE_WCTYPE_CTMP_BUG): Remove.
47279
47280 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47281
47282         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
47283         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
47284         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
47285         Problems reported by Georg Schwarz for IRIX 5.3.
47286
47287         * gnulib-tool (autoconf_minversion): Take the maximum version number
47288         found, not the minimum.  Problem reported by James Youngman.
47289
47290 2007-01-03  Karl Berry  <karl@gnu.org>
47291
47292         * doc/error.texi: new file, explaining interaction with progname.
47293         * doc/gnulib.texi: include it.  Update copyright.
47294
47295 2007-01-03  Simon Josefsson  <simon@josefsson.org>
47296
47297         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
47298         AC_CANONICAL_HOST, to improve autobuild outputs.
47299
47300 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
47301             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
47302
47303         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
47304         sockets, server sockets, and other file descriptors.  Count errors
47305         to compute the return value.  Reorder the code a bit to be easier
47306         to follow.  Don't set event bits that were not requested (except
47307         POLLERR and POLLHUP).
47308
47309 2007-01-01  Bruno Haible  <bruno@clisp.org>
47310
47311         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
47312
47313 2007-01-03  Jim Meyering  <jim@meyering.net>
47314
47315         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
47316
47317 2007-01-02  Bruno Haible  <bruno@clisp.org>
47318
47319         * modules/settime (Include): Require timespec.h.
47320         * modules/nanosleep (Include): Likewise.
47321
47322 2007-01-01  Bruno Haible  <bruno@clisp.org>
47323
47324         * gnulib-tool (func_emit_copyright_notice): Bump year.
47325         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
47326
47327 2007-01-01  Bruno Haible  <bruno@clisp.org>
47328
47329         Improve support for OpenBSD.
47330         * build-aux/config.rpath (libname_spec): Export.
47331         (library_names_spec): New variable. Export.
47332         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
47333         library_names_spec from the config.rpath output. Locate shared library
47334         through the name pattern in library_names_spec.
47335
47336 2007-01-01  Eric Blake  <ebb9@byu.net>
47337
47338         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
47339
47340 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
47341
47342         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
47343         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
47344         assume the C locale, and avoid an "eval" that could cause trouble.
47345         Problem with SORT reported by Bob Proulx.
47346
47347         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
47348         Define.  Trivial patch from Henning Nielsen Lund, originally
47349         sent to bug-grep@gnu.org today.
47350
47351 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47352
47353         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
47354         struct stat.  Problem reported by Henning Nielsen Lund.
47355         * lib/acl.c: Include acl.h first, to check interface.  Don't
47356         bother to include sys/types.h and sys/stat.h again.
47357
47358 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
47359
47360         Import the following change from libc; problem reported by
47361         Sven Verdoolaege.
47362
47363         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
47364
47365         [BZ #1373]
47366         * lib/argp.h: Remove __NTH for __argp_usage inline function.
47367
47368 2006-12-28  Jim Meyering  <jim@meyering.net>
47369
47370         * build-aux/announce-gen: Do not assume that the package
47371         builds any of tar.gz, tar.bz2, and .xdelta files.
47372         Suggestion from Simon Josefsson.
47373
47374 2006-12-28  Simon Josefsson  <simon@josefsson.org>
47375
47376         * modules/announce-gen: New file.
47377
47378 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
47379
47380         * lib/mbchar.h: Just include <wctype.h>; the wctype module
47381         handles its gotchas now.
47382         * lib/mbswidth.c: Likewise.
47383         * lib/wcwidth.h: Likewise.
47384         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
47385         and iswcntrl; the wctype module does this stuff now.
47386         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47387         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47388         * modules/mbchar (Depends-on): Add wctype.
47389         * modules/mbswidth (Depends-on): Likewise.
47390         * modules/wcwidth (Depends-on): Likewise.
47391
47392 2006-12-27  Eric Blake  <ebb9@byu.net>
47393
47394         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
47395         module uses more than what <wctype.h> is required to provide.
47396
47397 2006-12-26  Eric Blake  <ebb9@byu.net>
47398
47399         * gnulib-tool (sed_extract_prog): Avoid space-tab.
47400
47401 2006-12-26  Eric Blake  <ebb9@byu.net>
47402
47403         * modules/absolute-header: New module.
47404         * modules/fcntl (Depends-on): Depend on it.
47405         * modules/inttypes (Depends-on): Likewise.
47406         * modules/stdint (Depends-on): Likewise.
47407         * modules/sys_stat (Depends-on): Likewise.
47408         * modules/wctype (Depends-on): Likewise.
47409         * MODULES.html.sh (Support for building libraries and
47410         executables): Document it.
47411
47412 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47413
47414         * gnulib-tool (SED): Remove, undoing previous change.
47415         The problem was that it broke coreutils on Solaris, because
47416         "sed --posix" leaked into a makefile.
47417         (sed): New alias, if 'alias' and GNU sed.
47418
47419 2006-12-24  Jim Meyering  <jim@meyering.net>
47420
47421         Work around an fchownat bug in glibc-2.4:
47422         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
47423         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
47424         in spite of the -P option.
47425         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
47426         New macros.
47427         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
47428         * modules/openat (Files): Add lib/fchownat.c.
47429         * lib/openat.c (fchownat): Don't define here.  Move to...
47430         * lib/fchownat.c: ...this new file.
47431
47432 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
47433
47434         Fix bug reported by Bruno Haible in
47435         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
47436         where quotearg.c didn't compile on Mac OS X 10.2 because it
47437         lacks <wchar.h> and wint_t.
47438         * lib/wctype_.h (__wctype_wint_t): New type.
47439         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
47440         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
47441         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
47442         Arg is now of type __wctype_wint_t, not wint_t.
47443         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
47444         substitute HAVE_WINT_T.
47445         * modules/wctype (Files): Add m4/wint_t.m4.
47446         (wctype.h): Substitute HAVE_WINT_T.
47447
47448 2006-12-23  Bruno Haible  <bruno@clisp.org>
47449
47450         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
47451
47452 2006-12-23  Bruno Haible  <bruno@clisp.org>
47453
47454         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
47455         S_ISLNK.
47456         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
47457         mingw.
47458
47459 2006-12-22  Bruno Haible  <bruno@clisp.org>
47460
47461         * lib/copy-file.c: Include acl.h.
47462         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
47463         Close the file descriptors only after being done with copy_acl.
47464         * modules/copy-file (Depends-on): Add acl.
47465
47466 2006-12-22  Bruno Haible  <bruno@clisp.org>
47467
47468         * gnulib-tool (SED): New variable.
47469         Use $SED instead of sed everywhere.
47470
47471 2006-12-22  Bruno Haible  <bruno@clisp.org>
47472
47473         * modules/no-c++: New file.
47474         * m4/no-c++.m4: New file.
47475         * MODULES.html.sh (Support for building libraries and executables):
47476         Add no-c++.
47477
47478 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
47479
47480         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47481         Include <limits.h>, and use its INT_MAX to rewrite the
47482         j loop so that it does not overflow 'int'.  Problem reported by
47483         Ralf Wildenhues in
47484         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
47485         Play it safe by shifting left by 1 rather than multiplying by 2,
47486         as GCC is less likely to optimize this away when the value
47487         is signed (when it assumes overflow leads to undefined behavior).
47488         Also, don't assume time_t uses two's complement.
47489
47490 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
47491
47492         * MODULES.html.sh: New module wctype.
47493         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
47494         * lib/fnmatch.c: Don't bother to include <wchar.h> before
47495         <wctype.h>, since the new wctype module should fix this.
47496         * lib/quotearg.c: Include <wctype.h> unconditionally, since
47497         the wctype module should arrange for it.
47498         * lib/regex_internal.h: Likewise.
47499         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
47500         since the wctype module should handle this now.
47501         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
47502         * modules/fnmatch (Depends-on): Add wctype.
47503         * modules/quotearg (Depends-on): Likewise.
47504         * modules/regex (Depends-on): Likewise.
47505
47506 2006-12-19  Bruno Haible  <bruno@clisp.org>
47507
47508         * lib/strdup.h [C++]: Wrap definitions in extern "C".
47509         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
47510
47511 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47512
47513         * modules/savewd (Depends-on): Fix dependency on fcntl.
47514
47515 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47516
47517         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
47518         conforms to C99, rather than relying on the user's environment
47519         setting of STDINT_H.
47520
47521 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47522         and Eric Blake  <ebb9@byu.net>
47523
47524         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
47525         This is more consistent with the other defines here.
47526         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
47527         Port to z/OS.  Problem reported by Paul Gilmartin.
47528         Change local vars to use gl_ prefix rather than ac_.
47529         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
47530         with other defines.
47531         * modules/double-slash-root: New module.
47532         * modules/dirname (Files): Remove m4/double-slash-root.m4.
47533         (Depends-on): Add double-slash-root.
47534         * MODULES.html.sh (File system functions): Mention new module.
47535
47536 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
47537
47538         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
47539         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
47540         This is for the benefit of gzip, which doesn't do i18n.
47541
47542 2006-12-12  Jim Meyering  <jim@meyering.net>
47543
47544         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
47545         Reported by Andreas Schwab <schwab@suse.de>.
47546
47547 2006-12-12  Bruno Haible  <bruno@clisp.org>
47548
47549         Merge these changes.
47550         2006-09-05  Bruno Haible  <bruno@clisp.org>
47551         * lib/iconvme.c (iconv_string): No need to save and restore errno when
47552         iconv_alloc succeeded.
47553         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
47554         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
47555         test for " && dest " at the end - dest is always != NULL there. Call
47556         iconv with 4xNULL arguments initially, to reset the state. Call iconv
47557         with 2xNULL arguments, also to flush the state storage. Handle the
47558         IRIX iconv behaviour. Realloc the final result, to throw away unused
47559         memory.
47560
47561 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
47562
47563         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
47564         and fchmodat unconditionally, since glibc 2.4 has them.
47565         Problem reported by Arkadiusz Miskiewicz.
47566
47567 2006-12-10  Bruno Haible  <bruno@clisp.org>
47568
47569         * gnulib-tool (func_import): Show the include files only for those
47570         modules that are copied and specified.
47571         Reported by Karl Berry.
47572
47573 2006-12-08  Jim Meyering  <jim@meyering.net>
47574
47575         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
47576         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
47577
47578         * build-aux/announce-gen: Add two new options, both optional:
47579         --bootstrap-tools=TOOL_LIST
47580               a comma-separated list of tools, e.g.,
47581               autoconf,automake,bison,gnulib
47582         --gnulib-snapshot-date=DATE
47583               if gnulib is in the bootstrap tool list,
47584               then report this as the snapshot date.
47585               If not specified, use the current date/time.
47586               If you specify a date here, be sure it's UTC.
47587
47588 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47589
47590         * tests/test-argp-2.sh: Fix test to match actual output.
47591         (func_compare): Fix sed script to be portable.
47592
47593 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
47594
47595         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
47596         workaround for this case.  It is not autoconfigured now; offhand
47597         it's hard to see how to autoconfigure it.
47598
47599 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47600
47601         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
47602         a directory that is about to be chowned.  Such a directory's
47603         initial file permissions should permit the owner only and this
47604         should not be changed until after the chown, since the group and
47605         other bits would be incorrect if they granted permission before
47606         the chown.
47607
47608         Fix porting problem for iswctype reported by Georg Schwarz in:
47609         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
47610         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
47611         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
47612         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
47613         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47614
47615 2006-12-03  Jim Meyering  <jim@meyering.net>
47616
47617         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
47618         p->fts_statp may not yet be defined.
47619         (fts_read): Instead, set it in the caller, once p->fts_statp is
47620         sure to be defined, and corresponds to a top-level directory.
47621         This bug made du -x fail.  Here's the coreutils test case:
47622         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
47623         Reported by Mike Frysinger.
47624
47625 2006-12-01  Jim Meyering  <jim@meyering.net>
47626
47627         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
47628         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
47629         Reported by Simon Josefsson.
47630
47631 2006-11-30  Jim Meyering  <jim@meyering.net>
47632
47633         * m4/warning.m4: Use the all-permissive copyright notice
47634         recommended by RMS (rather than LGPL).
47635         * m4/vararrays.m4: Likewise.
47636         * m4/flexmember.m4: Likewise.
47637
47638 2006-11-29  Bruno Haible  <bruno@clisp.org>
47639
47640         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47641         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
47642         using +=.
47643         Reported by Simon Josefsson <simon@josefsson.org>.
47644
47645 2006-11-28  James Youngman <jay@gnu.org>
47646
47647         * README: Advise users that they might find the bug-gnulib@gnu.org
47648         and autotools-announce@gnu.org mailing lists useful.
47649
47650 2006-11-28  Bruno Haible  <bruno@clisp.org>
47651
47652         * m4/ptrdiff_max.m4: Remove file.
47653
47654 2006-11-21  Bruno Haible  <bruno@clisp.org>
47655
47656         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
47657         _AC_COMPUTE_INT.
47658         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47659         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
47660         _AC_COMPUTE_INT.
47661         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47662         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
47663         _AC_COMPUTE_INT.
47664         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47665
47666 2006-11-28  Jim Meyering  <jim@meyering.net>
47667
47668         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
47669         warning from "gcc -Wshadow" about shadowing the builtin.
47670
47671 2006-11-27  Bruno Haible  <bruno@clisp.org>
47672
47673         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
47674         _AC_COMPUTE_INT.
47675         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47676
47677 2006-11-27  Bruno Haible  <bruno@clisp.org>
47678             Paul Eggert  <eggert@cs.ucla.edu>
47679
47680         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
47681
47682 2006-11-26  Bruno Haible  <bruno@clisp.org>
47683
47684         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47685         noinst_LTLIBRARIES.
47686
47687 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
47688             Bruno Haible  <bruno@clisp.org>
47689
47690         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
47691         if compiling with "gcc -ansi".
47692
47693 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
47694
47695         Fix some incompatibilities with gcc -ansi -pedantic.
47696         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
47697         if compiling pedantically with GCC, unless it's C99 or later.
47698         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
47699         it mishandles gcc -ansi -pedantic as well.
47700         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
47701         if gcc -pedantic.
47702         * lib/regexec.c (check_node_accept_bytes): Don't use auto
47703         initializers for struct if -pedantic, unless it's C99 or later.
47704
47705 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
47706
47707         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
47708         Don't close an fd more than once. Identical atimes indicate
47709         success, not failure.
47710
47711 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
47712
47713         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
47714
47715 2006-11-23  Jim Meyering  <jim@meyering.net>
47716
47717         * build-aux/announce-gen: New file.  From coreutils.
47718
47719 2006-11-22  Jim Meyering  <jim@meyering.net>
47720
47721         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
47722         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
47723         (fts_read): Use a temporary to narrow the overused st_size member
47724         before using it in a switch statement.  Reported by Matthew Woehlke.
47725
47726         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
47727         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
47728
47729 2006-11-20  Bruno Haible  <bruno@clisp.org>
47730
47731         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
47732         changequote instead of pairs of brackets.
47733         Reported by Andreas Schwab <schwab@suse.de>.
47734
47735 2006-11-21  Jim Meyering  <jim@meyering.net>
47736
47737         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
47738         so as to remain compatible with older compilers.
47739         Patch from Michael Deutschmann.
47740
47741 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47742
47743         * MODULES.html.sh (File system functions): Add openat.
47744
47745         * lib/openat.h (rpl_fstatat): New macro, if
47746         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
47747         (fstatat): Define to rpl_fstatat under the same conditions,
47748         unless COMPILING_FSTATAT.
47749         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
47750         seems to have the bug.
47751         * lib/fstatat.c: New file.
47752         * modules/openat (Files): Add it.
47753
47754 2006-11-20  Bruno Haible  <bruno@clisp.org>
47755
47756         * Makefile: New file.
47757
47758 2006-11-20  Jim Meyering  <jim@meyering.net>
47759
47760         The beginnings of syntax-related checks for gnulib.
47761         * lib/Makefile: New file.
47762         * lib/t-idcache: New script.  Ensure that the two halves of
47763         idcache.c stay in sync.
47764
47765         * lib/idcache.c: Adjust comments in user- and group- portions to
47766         be more accurate, and to be consistent with one another.
47767
47768 2006-11-20  Jim Meyering  <jim@meyering.net>
47769
47770         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
47771         continue using the flexible array member (thus, this module performs
47772         half as many malloc calls), with the addition that...
47773         (getgroup, getuser): Consistently record a non-match via an empty
47774         "name" string, and map an empty string match to a NULL return value.
47775         * modules/idcache (Depends-on): Re-add flexmember.
47776
47777         * lib/idcache.c (getuser): Remove all uses of the register keyword.
47778         (getuidbyname, getgroup, getgidbyname): Likewise.
47779
47780         Use cleaner syntax: NULL rather than 0.
47781         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
47782
47783 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47784
47785         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
47786         It mishandled the case where the group was missing.
47787         Problem reported by Greg Schafer.
47788         * modules/idcache: Likewise.
47789
47790 2006-11-18  Jim Meyering  <jim@meyering.net>
47791
47792         * check-module (%exempt_header): Add exception for some
47793         conditionally-included headers.
47794
47795         * modules/i-ring (Depends-on): Add verify.
47796         (License): Change to LGPL.
47797
47798 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47799
47800         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
47801         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
47802         and inttostr.h.  Use snprintf rather than uinttostr, so that
47803         LGPLed code doesn't depend on GPLed.
47804
47805 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47806
47807         * modules/inline (License): Change from GPL to LGPL.
47808
47809 2006-11-17  Jim Meyering  <jim@meyering.net>
47810
47811         * modules/d-type (License): Switch to LGPL.
47812
47813 2006-11-15  Bruno Haible  <bruno@clisp.org>
47814
47815         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
47816
47817 2006-11-15  Eric Blake  <ebb9@byu.net>
47818
47819         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
47820         the module dependency.
47821
47822 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47823             Bruno Haible  <bruno@clisp.org>
47824
47825         * gnulib-tool (func_create_testdir): Add license consistency check.
47826
47827 2006-11-15  Eric Blake  <ebb9@byu.net>
47828
47829         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
47830         random "(cached)" in configure output.
47831
47832 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47833
47834         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
47835         test for conforming inttypes.h is both announced and cached.
47836
47837         * MODULES.html.sh (seen_modules, seen_files): New variables.
47838         (func_module): Rewrite to use a few less gnulib-tool and sed
47839         invocations.  Avoid a couple of quadratic algorithms for ...
47840         (missed_modules, missed_files): ... these, with ...
47841         (func_append, func_tmpdir): ... these new functions, from
47842         gnulib-tool.  Analogously, install traps for cleanup.
47843
47844         * tests/test-gc.c (main): Remove unused variables.
47845         * tests/test-read-file.c: Include stdlib.h, for 'free'.
47846
47847 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
47848
47849         * modules/inttostr (License): Change to LGPL.
47850
47851 2006-11-14  Eric Blake  <ebb9@byu.net>
47852
47853         * modules/tempname (License): Change to LGPL.
47854
47855 2006-11-14  Eric Blake  <ebb9@byu.net>
47856
47857         * doc/functions.texi (Function Portability): *printf functions on
47858         Cygwin now understand all POSIX size specifiers.
47859
47860 2006-11-14  Bruno Haible  <bruno@clisp.org>
47861
47862         * modules/c-ctype (License): Change to LGPL.
47863
47864 2006-11-12  Bruno Haible  <bruno@clisp.org>
47865
47866         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47867         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
47868         for GNOME libraries, for which the include files are installed in
47869         subdirectories of $prefix/include.
47870
47871 2006-11-12  Bruno Haible  <bruno@clisp.org>
47872
47873         * m4/lib-link.m4: Require at least autoconf-2.54.
47874         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
47875         name to underscores for the --with option.
47876
47877 2006-11-13  Bruno Haible  <bruno@clisp.org>
47878
47879         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
47880         the tests directory.
47881         Reported by Ralf Wildenhues.
47882
47883 2006-11-13  Bruno Haible  <bruno@clisp.org>
47884
47885         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
47886         (func_emit_initmacro_end): Undo the override here.
47887         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
47888         Works around the famous automake error in coreutils.
47889
47890 2006-11-13  Eric Blake  <ebb9@byu.net>
47891
47892         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
47893         element, not its node.
47894
47895 2006-11-12  Bruno Haible  <bruno@clisp.org>
47896
47897         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
47898         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
47899
47900 2006-11-12  Bruno Haible  <bruno@clisp.org>
47901
47902         * gnulib-tool: New option --local-symlink.
47903         (func_usage): Document it.
47904         (lsymbolic): New variable.
47905         (func_import, func_create_testdir): If --symlink was not specified,
47906         test whether --local-symlink was specified and the file comes from
47907         the local_gnulib_dir.
47908
47909 2006-11-12  Bruno Haible  <bruno@clisp.org>
47910
47911         * gnulib-tool (func_ln): New function.
47912         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
47913
47914 2006-11-12  Bruno Haible  <bruno@clisp.org>
47915
47916         Finish support for source files in subdirectories.
47917         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
47918         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
47919         AUTOMAKE_OPTIONS.
47920         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
47921
47922 2006-11-12  Bruno Haible  <bruno@clisp.org>
47923
47924         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47925         EXTRA_lib_SOURCES augmentation.
47926         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
47927
47928 2006-11-12  Jim Meyering  <jim@meyering.net>
47929
47930         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
47931         file descriptors.  This also averts a failure on systems with
47932         native openat support when a traversed directory lacks "x" access.
47933         * lib/fts_.h: Include "i-ring.h"
47934         (struct FTS) [fts_fd_ring]: New member.
47935         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
47936         (FCHDIR): Add parentheses.
47937         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
47938         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
47939         When descending, rather than simply closing the previous
47940         fts_cwd_fd value, push that file descriptor onto the ring.
47941         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
47942         (fts_open): Initialize the new fd_ring member.
47943         (fts_close): Clear the ring.
47944         (fts_safe_changedir): When possible, use our new fd_ring to skip
47945         the diropen and fstat and dev/ino comparison that would normally
47946         accompany a virtual `chdir ("..")'.
47947
47948         * modules/fts (Depends-on): Add i-ring.
47949         * modules/i-ring: New module.
47950         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
47951         * m4/i-ring.m4: New file.
47952
47953 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47954
47955         * gnulib-tool (func_create_testdir): Fix replacement of
47956         `build-aux' in configure.ac.  Run autotools in gltests
47957         subdirectory.
47958         (func_create_testdir, func_create_megatestdir, test): There is
47959         no need for '--force' in most autotool invocations in a new
47960         tree.  Actually fail the whole test if any of the tools, or the
47961         configure or make stages fail.
47962
47963         Sync from Automake.
47964         * build-aux/gnupload: Revert last change.  Add pointer to upload
47965         instructions of the GNU Maintenance Instructions.
47966         Suggestion by Karl Berry.
47967
47968 2006-11-10  Jim Meyering  <jim@meyering.net>
47969
47970         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
47971
47972 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47973
47974         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
47975         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
47976         (bind_textdomain_codeset) [! ENABLE_NLS]:
47977         Evaluate all the arguments.  That way, callers get compatible behavior
47978         if the arguments have side effects.  Also, it avoids some GCC
47979         diagnostics in some cases; Joel E. Denny reported problems when Bison
47980         was configured with --enable-gcc-warnigs.
47981
47982 2006-11-10  Jim Meyering  <jim@meyering.net>
47983
47984         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
47985         relevant options in CFLAGS (like -O, -fno-inline) are taken into
47986         account.
47987
47988 2006-11-10  Jim Meyering  <jim@meyering.net>
47989
47990         * modules/inline: New file/module.
47991         * modules/xalloc (Files): Remove m4/inline.m4.
47992         (Depends-on): Add inline, instead.
47993         * modules/oset: Likewise.
47994         * modules/list: Likewise.
47995
47996 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47997
47998         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
47999         Problem reported by Matthew Woehlke.
48000
48001 2006-11-09  Bruno Haible  <bruno@clisp.org>
48002
48003         * lib/tempname.c (gen_tempname): Remove variant that invokes
48004         __gen_tempname.
48005         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
48006         __gen_tempname.
48007
48008 2006-11-08  Bruno Haible  <bruno@clisp.org>
48009
48010         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
48011         to 'yes' instead of 'cross-compiling'.
48012
48013 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
48014
48015         * lib/quotearg.h (quotearg_free): New decl.
48016         * lib/quotearg.c (quotearg_free): New function.
48017         (slot0, nslots, slotvec0, slotvec):
48018         Now file-scope so that quotearg_free can get at them.
48019
48020 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48021
48022         Sync from Automake.
48023         * build-aux/gnupload: Add missing 'gnu' to example URL.
48024         Report by Karl Berry.
48025
48026 2006-11-08  Bruno Haible  <bruno@clisp.org>
48027
48028         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
48029         Suggested by Paul Eggert.
48030
48031 2006-11-08  Jim Meyering  <jim@meyering.net>
48032
48033         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
48034         It's already included if !_LIBC.
48035         (fts_safe_changedir): Add a comment.
48036
48037 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
48038
48039         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
48040         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
48041         Matthew Woehlke.
48042
48043         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
48044         definitions up, to avoid colliding with change below.
48045         (static_inline) [HAVE_INLINE]: New macro.
48046         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
48047         Provide extern decls when !HAVE_INLINE.  Do not define unless
48048         static_inline is defined, either by us or by xmalloc.c.  Use
48049         static_inline rather than static inline.
48050         (XCALLOC): Optimize sizeof(T) = 1 case.
48051         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
48052
48053 2006-11-07  Bruno Haible  <bruno@clisp.org>
48054
48055         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
48056         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
48057         AC_C_INLINE.
48058         * modules/xalloc (Files): Add m4/inline.m4.
48059
48060 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48061
48062         * README: Fix typo.
48063         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
48064         (Miscellanous Notes): ...from this.
48065
48066 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
48067
48068         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
48069         Mention that offsetof should be used instead of sizeof.
48070         From Bruno Haible.
48071
48072 2006-11-07  Bruno Haible  <bruno@clisp.org>
48073
48074         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
48075
48076 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
48077
48078         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
48079         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
48080         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
48081         (gl_tree_add_before, gl_tree_add_after):
48082         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
48083         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
48084         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
48085         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
48086         (gl_linked_add_after, gl_linked_add_at): Likewise.
48087         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
48088         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
48089         (gl_tree_add_before, gl_tree_add_after): Likewise.
48090         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
48091         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
48092         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
48093
48094 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48095
48096         * lib/gl_oset.h: Use C comment style, not C++ comment style.
48097
48098 2006-11-06  Bruno Haible  <bruno@clisp.org>
48099
48100         * m4/inline.m4: New file.
48101         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
48102         * modules/list (Files): Add m4/inline.m4.
48103         * modules/oset (Files): Likewise.
48104
48105 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
48106
48107         * lib/idcache.c: Include <stddef.h>, for offsetof.
48108         (struct userid.name): Change from char * to a flexible array member.
48109         All uses changed.
48110         * modules/idcache (Depends-on): Add flexmember.
48111
48112         * MODULES.html.sh (Core language properties): New module flexmember.
48113         * modules/flexmember, m4/flexmember.m4: New files.
48114
48115         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
48116         inline functions that are identical with the old xnmalloc_inline,
48117         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
48118         that we can avoid some unnecessary integer multiplications and
48119         divisions in the common case where the element size is known at
48120         compile time.
48121         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
48122         needed.
48123         (xnboundedmalloc): Remove.
48124         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
48125         arguments, for consistency with rest of this header.
48126         (xcharalloc): Rewrite using XNMALLOC.
48127         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
48128         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
48129         versions have been moved to lib/xalloc.h and renamed to be the
48130         non-*_inline versions.
48131         (xmalloc, xrealloc): Implement without reference to the xnmalloc
48132         and xnrealloc functions, since those functions are now inline and
48133         now call us.
48134         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
48135         renaming described above.
48136         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
48137         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
48138         captures the dependency in AC_C_INLINE.
48139
48140         New module canonicalize-lgpl, proposed by Charles Wilson in
48141         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
48142         with a few small changes afterwards.
48143         * MODULES.html.sh (File system functions): New module
48144         canonicalize-lgpl.
48145         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
48146         and canonicalize_file_name.
48147         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
48148         * modules/canonicalize-lgpl: New files.
48149
48150 2006-11-05  Bruno Haible  <bruno@clisp.org>
48151
48152         * gnulib-tool (func_import, func_create_testdir): Create directories
48153         also for files in subdirectories of lib/.
48154
48155 2006-11-05  Bruno Haible  <bruno@clisp.org>
48156
48157         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
48158         ANSI C compliant.
48159
48160 2006-11-03  Bruno Haible  <bruno@clisp.org>
48161
48162         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
48163         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
48164         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
48165         (xnboundedmalloc): New inline function.
48166         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
48167         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
48168         xmalloc.
48169         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
48170         xmalloc.
48171         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
48172         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
48173         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
48174         xmalloc.
48175         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
48176         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
48177         xmalloc.
48178         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
48179         gl_tree_add_after): Use XMALLOC instead of xmalloc.
48180         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
48181         xmalloc.
48182         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
48183         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
48184         gl_tree_add_after): Use XMALLOC instead of xmalloc.
48185         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
48186         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
48187         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
48188         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
48189
48190 2006-11-03  Bruno Haible  <bruno@clisp.org>
48191
48192         * lib/c-ctype.h [C++]: Define functions without name mangling.
48193         * lib/fwriteerror.h [C++]: Likewise.
48194         * lib/gcd.h [C++]: Likewise.
48195         * lib/linebreak.h [C++]: Likewise.
48196
48197 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
48198
48199         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
48200         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
48201         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
48202         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
48203         Check for functions and headers just once.
48204         Check for declaration of canonicalize_file_name.
48205         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
48206
48207 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48208
48209         * gnulib-tool (func_import): Fix typo in actioncmd.
48210
48211 2006-11-02  Bruno Haible  <bruno@clisp.org>
48212
48213         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
48214         newline sequence in the Makefile.am snippet as a space, like "make"
48215         does.
48216         Reported by Roger Persson <perrog@gmail.com>.
48217
48218 2006-11-01  Bruno Haible  <bruno@clisp.org>
48219
48220         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
48221         already declared in <string.h>.
48222         * lib/strcase.h (strncasecmp): Don't declare it if yes.
48223
48224 2006-11-01  Bruno Haible  <bruno@clisp.org>
48225
48226         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
48227         * lib/strcase.h: Include <string.h>.
48228         (strcasecmp): Define to rpl_strcasecmp here.
48229
48230 2006-11-01  Bruno Haible  <bruno@clisp.org>
48231
48232         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
48233
48234 2006-11-01  Eric Blake  <ebb9@byu.net>
48235
48236         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
48237
48238         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
48239
48240 2006-10-29  Bruno Haible  <bruno@clisp.org>
48241
48242         Make it compile in C++ mode.
48243         * lib/full-write.c (full_rw): Add a cast.
48244
48245 2006-11-01  Bruno Haible  <bruno@clisp.org>
48246
48247         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
48248         be POSIX compliant.
48249         Reported by Roger Persson <perrog@gmail.com>.
48250
48251 2006-11-01  Eric Blake  <ebb9@byu.net>
48252
48253         * lib/getopt_.h: Fix comments.
48254
48255 2006-10-31  Eric Blake  <ebb9@byu.net>
48256
48257         * modules/tmpdir (Depends-on): Add sys_stat.
48258         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
48259         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
48260         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
48261         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
48262         tempname.
48263
48264 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
48265
48266         Avoid some C++ diagnostics reported by Bruno Haible.
48267         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
48268         xmalloc.
48269         (quotearg_alloc): Use xcharalloc rather than xmalloc.
48270         (struct slotvec): Move to top level.
48271         (quotearg_n_options): Rewrite to avoid xmalloc.
48272         * lib/xalloc.h (xcharalloc): New function.
48273         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
48274         [defined __cplusplus]: Add function template that provides result
48275         type propagation.  This part of the change is from Bruno Haible.
48276
48277 2006-10-29  Bruno Haible  <bruno@clisp.org>
48278
48279         Make it compile in C++ mode.
48280         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
48281         * lib/strnlen1.c (strnlen1): Cast memchr result.
48282         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
48283         * lib/clean-temp.c (string_equals, string_hash): Add casts.
48284         (create_temp_dir): Rename local variable 'template'.
48285         (compile_csharp_using_sscli): Add cast.
48286         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
48287         * lib/findprog.c (find_in_path): Likewise.
48288         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
48289         * lib/wait-process.c (register_slave_subprocess): Likewise.
48290
48291 2006-10-22  Bruno Haible  <bruno@clisp.org>
48292
48293         * modules/tsearch: New file.
48294         * lib/tsearch.h: New file.
48295         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
48296         * m4/tsearch.m4: New file.
48297         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
48298
48299 2006-10-29  Eric Blake  <ebb9@byu.net>
48300
48301         * lib/arcfour.c: Assume config.h.
48302         * lib/arctwo.c: Likewise.
48303         * lib/base64.c: Likewise.
48304         * lib/check-version.c: Likewise.
48305         * lib/crc.c: Likewise.
48306         * lib/des.c: Likewise.
48307         * lib/gc-gnulib.c: Likewise.
48308         * lib/gc-libgcrypt.c: Likewise.
48309         * lib/gc-pbkdf2-sha1.c: Likewise.
48310         * lib/getaddrinfo.c: Likewise.
48311         * lib/getdelim.c: Likewise.
48312         * lib/getline.c: Likewise.
48313         * lib/hmac-md5.c: Likewise.
48314         * lib/hmac-sha1.c: Likewise.
48315         * lib/iconvme.c: Likewise.
48316         * lib/md2.c: Likewise.
48317         * lib/md4.c: Likewise.
48318         * lib/memxor.c: Likewise.
48319         * lib/read-file.c: Likewise.
48320         * lib/readline.c: Likewise.
48321         * lib/rijndael-alg-fst.c: Likewise.
48322         * lib/rijndael-api-fst.c: Likewise.
48323         * lib/xgetdomainname.c: Likewise.
48324
48325 2006-10-28  Eric Blake  <ebb9@byu.net>
48326
48327         * lib/xstrndup.c: Assume config.h.
48328
48329 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48330
48331         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
48332         stat-macros.h is now for our own macros, whereas stat_h is for
48333         macros in the <sys/stat.h> name space.
48334         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
48335         (STAT_MACROS_H): Remove.
48336         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
48337         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
48338         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
48339         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
48340         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
48341         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
48342         Move these macros to ...
48343         * lib/stat_.h: here.  Don't include stat-macros.h.
48344         * lib/canonicalize.c: Don't include stat-macros.h.
48345         * lib/chown.c: Likewise.
48346         * lib/euidaccess.c: Likewise.
48347         * lib/file-type.c: Likewise.
48348         * lib/filemode.c: Likewise.
48349         * lib/glob.c: Likewise.
48350         * lib/isapipe.c: Likewise.
48351         * lib/lchown.c: Likewise.
48352         * lib/lstat.c: Likewise.
48353         * lib/mkdir-p.c: Likewise.
48354         * lib/rmdir.c: Likewise.
48355         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
48356         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
48357         unless mkdir isn't declared, to speed up 'configure'.
48358         Always create sys/stat.h, since it's unlikely any real sys/stat.h
48359         would define all the S_* symbols.
48360         * modules/canonicalize (Depends-on):
48361         Depend on sys_stat, not stat-macros.
48362         * modules/chown: Likewise.
48363         * modules/euidaccess: Likewise.
48364         * modules/filemode: Likewise.
48365         * modules/file-type: Likewise.
48366         * modules/glob: Likewise.
48367         * modules/isapipe: Likewise.
48368         * modules/lchown: Likewise.
48369         * modules/lstat: Likewise.
48370         * modules/mkancesdirs: Likewise.
48371         * modules/rmdir: Likewise.
48372         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
48373         * modules/modechange: Likewise.
48374         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
48375         (configure.ac): Remove gl_STAT_MACROS.
48376         * modules/sys_stat (Depends-on): Remove stat-macros.
48377
48378 2006-10-27  Bruno Haible  <bruno@clisp.org>
48379
48380         * m4/signed.m4: Remove file.
48381         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
48382         invocation.
48383         * modules/vasnprintf (Files): Remove m4/signed.m4.
48384
48385 2006-10-27  Bruno Haible  <bruno@clisp.org>
48386
48387         Update to GNU gettext 0.16.
48388         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
48389         m4/inttypes-h.m4, m4/signed.m4.
48390         * m4/gettext.m4: Update to GNU gettext 0.16.
48391         * m4/intl.m4: New file, from GNU gettext.
48392         * m4/intldir.m4: New file, from GNU gettext.
48393         * config/srclist.txt: Update
48394
48395 2006-10-27  Eric Blake  <ebb9@byu.net>
48396
48397         * MODULES.html.sh: Document tempname.
48398         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
48399         dependencies.
48400         (Files): Move lib/tempname.c...
48401         * modules/tempname: ...to this new module.
48402         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
48403         (gl_PREREQ_TEMPNAME): Move...
48404         * m4/tempname.m4: ...to this new file.
48405         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
48406         * modules/sys_stat (Depends-on): Add stat-macros.
48407         * lib/stat_.h (includes): Pick up stat macros.
48408         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
48409         if stat macros are broken.
48410         * lib/tempname.c (includes): No need to include "stat-macros.h".
48411         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
48412         (direxists, __path_search) [!_LIBC]: Don't compile these in
48413         gnulib; the tmpdir module covers that.
48414         * lib/tempname.h: New file.
48415
48416 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
48417
48418         * COPYING: Explain how gnulib-tool converts licence headers.
48419         Almost all wording by Eric Blake.
48420
48421 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
48422
48423         * lib/mbchar.h (is_basic_table): Make read-only.
48424         * lib/mbchar.c (is_basic_table): Likewise.
48425         Reported by John Darrington.
48426
48427 2006-10-25  Bruno Haible  <bruno@clisp.org>
48428
48429         * lib/progname.h (set_program_name): Undefine before defining.
48430
48431 2006-10-25  Bruno Haible  <bruno@clisp.org>
48432
48433         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
48434         false for non-gcc C++ compilers.
48435         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
48436
48437 2006-10-24  Bruno Haible  <bruno@clisp.org>
48438
48439         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
48440         iconv implementations like Irix iconv.
48441
48442 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48443
48444         * modules/vararrays: New file.
48445         * m4/vararrays.m4: New file, taken from diffutils.
48446         * MODULES.html.sh: New module vararrays.
48447
48448 2006-10-24  Karl Berry  <karl@gnu.org>
48449
48450         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
48451         Don't call GNU Unix.
48452
48453 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48454
48455         * users.txt: Add Libtool.
48456
48457         Sync from Libtool:
48458
48459         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48460
48461         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
48462         to gnulib's policy of including config.h unconditionally.
48463
48464 2006-10-24  Bruno Haible  <bruno@clisp.org>
48465
48466         * modules/wcwidth (Files): Add m4/wint_t.m4.
48467         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
48468         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
48469
48470 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48471
48472         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
48473         to pacify GCC with some -W flags enabled.  Problem reported by
48474         Bruno Haible.
48475
48476 2006-10-24  Jim Meyering  <jim@meyering.net>
48477
48478         * MODULES.html.sh: Remove uinttostr.  It's not a module.
48479         Reported by Karl Berry.
48480
48481 2006-10-23  Bruno Haible  <bruno@clisp.org>
48482
48483         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
48484
48485 2006-10-24  Bruno Haible  <bruno@clisp.org>
48486
48487         * lib/gl_list.h: Use C comment style, not C++ comment style.
48488
48489 2006-10-23  Eric Blake  <ebb9@byu.net>
48490
48491         * lib/getaddrinfo.c (includes): Add missing include.
48492
48493 2006-10-23  Bruno Haible  <bruno@clisp.org>
48494             Paul Eggert  <eggert@cs.ucla.edu>
48495
48496         Ability to rename obstack_free.
48497         * lib/obstack.h (__obstack_free): New macro. Declare instead of
48498         obstack_free.
48499         (obstack_free): Invoke the __obstack_free macro.
48500         * lib/obstack.c (obstack_free): Use __obstack_free macro.
48501
48502 2006-10-23  Bruno Haible  <bruno@clisp.org>
48503             Paul Eggert  <eggert@cs.ucla.edu>
48504
48505         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
48506         __argc, __argv from the declaration. (They are defined as macros on
48507         mingw.)
48508
48509 2006-10-22  Bruno Haible  <bruno@clisp.org>
48510
48511         * doc/gnulib-intro.texi: New file.
48512         * doc/gnulib.texi: Include it.
48513
48514 2006-10-21  Bruno Haible  <bruno@clisp.org>
48515
48516         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
48517         "Introduction", "Miscellanous Notes", "Particular Modules".
48518
48519 2006-10-21  Bruno Haible  <bruno@clisp.org>
48520
48521         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48522         Change mostlyclean-local rule to avoid sh syntax error from bash
48523         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
48524
48525 2006-10-23  Jim Meyering  <jim@meyering.net>
48526
48527         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
48528         in place of snprintf.
48529
48530         * modules/inttostr (Files): Add lib/uinttostr.c.
48531         * lib/uinttostr.c (inttostr): New file/function.
48532         * lib/inttostr.h (uinttostr): Declare.
48533         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
48534         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48535         Add uinttostr.
48536         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
48537
48538 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48539
48540         * lib/canonicalize.c (ELOOP): Define if not already defined.
48541         Problem reported by Bruno Haible in
48542         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
48543
48544 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48545
48546         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
48547         Problem reported by Perry Smith and Ville Laurikari.
48548
48549         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
48550         uses.
48551
48552 2006-10-19  Bruno Haible  <bruno@clisp.org>
48553
48554         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
48555         for mingw.
48556
48557 2006-10-19  Bruno Haible  <bruno@clisp.org>
48558
48559         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
48560         Needed for mingw.
48561
48562 2006-10-19  Bruno Haible  <bruno@clisp.org>
48563
48564         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
48565
48566 2006-10-19  Bruno Haible  <bruno@clisp.org>
48567
48568         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
48569         it.
48570
48571 2006-10-19  Bruno Haible  <bruno@clisp.org>
48572
48573         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
48574         invocation.
48575
48576 2006-10-19  Bruno Haible  <bruno@clisp.org>
48577
48578         * gnulib-tool (func_create_testdir): Don't include ftruncate and
48579         mountlist by default.
48580
48581 2006-10-16  Bruno Haible  <bruno@clisp.org>
48582
48583         * lib/c-strstr.c: Include c-strstr.h.
48584
48585 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48586
48587         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
48588         in a slash.
48589
48590 2006-10-18  Bruno Haible  <bruno@clisp.org>
48591
48592         * lib/lock.h [C++]: Wrap definitions in extern "C".
48593
48594 2006-10-18  Bruno Haible  <bruno@clisp.org>
48595
48596         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
48597         gl_LIBOBJS list.
48598
48599 2006-10-18  Bruno Haible  <bruno@clisp.org>
48600
48601         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
48602
48603 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
48604
48605         * lib/xstrtol.h: Include gettext.h.
48606         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
48607         Problem reported by Eric Blake.
48608         * modules/xstrtol (Depends-on): Add gettext-h.
48609
48610 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
48611
48612         * lib/strftime.c (advance): New macro.
48613         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
48614         incomplete type, so you can't add 0 to it.  Problem and patch
48615         reported by Eelco Dolstra for dietlibc.
48616
48617 2006-10-18  Jim Meyering  <jim@meyering.net>
48618
48619         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
48620         type for a local, and rename it: s/up/user_proc/.
48621
48622 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48623
48624         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
48625         READ_UTMP_USER_PROCESS.
48626         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
48627
48628 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48629
48630         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
48631         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
48632
48633 2006-10-17  Eric Blake  <ebb9@byu.net>
48634
48635         * lib/sigprocmask.c (sigprocmask): Fix typo.
48636
48637         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
48638
48639         * modules/clean-temp (Makefile.am): Don't add to make output...
48640         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
48641         config.h.
48642
48643 2006-10-17  Bruno Haible  <bruno@clisp.org>
48644
48645         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
48646         differently if DEFAULT_TEXT_DOMAIN is set.
48647
48648 2006-10-16  Bruno Haible  <bruno@clisp.org>
48649
48650         * lib/clean-temp.c: Include fwriteerror.h.
48651
48652 2006-10-16  Bruno Haible  <bruno@clisp.org>
48653
48654         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
48655
48656 2006-10-16  Bruno Haible  <bruno@clisp.org>
48657
48658         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
48659         * lib/sigprocmask.h: Include <sys/types.h>.
48660         (sigset_t): Use the system's definition if present.
48661
48662 2006-10-17  Eric Blake  <ebb9@byu.net>
48663
48664         * lib/xvasprintf.c (includes): Assume config.h.
48665         * lib/xasprintf.c (includes): Likewise.
48666
48667 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48668
48669         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
48670         at least as wide as intmax_t.
48671
48672 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
48673
48674         (Imported from Automake.)
48675         * build-aux/gnupload: Update to version 1.1 of directive file.
48676
48677 2006-10-16  Eric Blake  <ebb9@byu.net>
48678
48679         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
48680         match Automake 1.10a.
48681
48682 2006-10-14  Bruno Haible  <bruno@clisp.org>
48683
48684         * modules/sigprocmask: New file.
48685         * lib/sigprocmask.h: New file.
48686         * lib/sigprocmask.c: New file.
48687         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
48688         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
48689         request sigprocmask.o.
48690         (gl_PREREQ_SIGPROCMASK): New macro.
48691         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
48692         (Depends-on): Add sigprocmask.
48693         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
48694         gt_SIGNALBLOCKING. Test for 'raise' only once.
48695         * lib/fatal-signal.c: Include sigprocmask.h.
48696         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
48697         unblock_fatal_signals): Define always.
48698         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48699         sigprocmask.
48700
48701 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48702
48703         Sync from Automake.
48704         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
48705         which incorrectly sets the mode of an existing destination
48706         directory.  In some cases the unpatched install-sh could do the
48707         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
48708         system.  We hope this is rare in practice, but it's clearly worth
48709         fixing.  Problem reported by Alex Unleashed in
48710         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
48711         Also, don't bother to check for -m bugs unless we're using -m;
48712         suggested by Stepan Kasal.
48713
48714 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48715
48716         Sync from Automake.
48717         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
48718         `-c' flag, so they appear at the same position as in %FASTDEP%
48719         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
48720         which ignores unknown options only after the first non-option.
48721         Bug report against M4 by Nelson H. F. Beebe.
48722
48723 2006-10-13  Jim Meyering  <jim@meyering.net>
48724
48725         Fix a bug in yesterday's change.
48726         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
48727         p->fts_statp->st_dev would be used uninitialized.
48728         Ensures that we always call fts_stat on the very first entry.
48729         Miklos Szeredi reported that find -xdev stopped working.
48730
48731 2006-10-12  Bruno Haible  <bruno@clisp.org>
48732
48733         * gnulib-tool (func_get_automake_snippet): Append an automatically
48734         computed EXTRA_DIST augmentation.
48735         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
48736         * modules/alloca-opt (Makefile.am): Likewise.
48737         * modules/allocsa (Makefile.am): Likewise.
48738         * modules/arcfour (Makefile.am): Likewise.
48739         * modules/arctwo (Makefile.am): Likewise.
48740         * modules/argmatch (Makefile.am): Likewise.
48741         * modules/argz (Makefile.am): Likewise.
48742         * modules/atexit (Makefile.am): Likewise.
48743         * modules/backupfile (Makefile.am): Likewise.
48744         * modules/byteswap (Makefile.am): Likewise.
48745         * modules/c-strtod (Makefile.am): Likewise.
48746         * modules/c-strtold (Makefile.am): Likewise.
48747         * modules/calloc (Makefile.am): Likewise.
48748         * modules/canon-host (Makefile.am): Likewise.
48749         * modules/canonicalize (Makefile.am): Likewise.
48750         * modules/chdir-long (Makefile.am): Likewise.
48751         * modules/chdir-safer (Makefile.am): Likewise.
48752         * modules/check-version (Makefile.am): Likewise.
48753         * modules/chown (Makefile.am): Likewise.
48754         * modules/cloexec (Makefile.am): Likewise.
48755         * modules/close-stream (Makefile.am): Likewise.
48756         * modules/closeout (Makefile.am): Likewise.
48757         * modules/crc (Makefile.am): Likewise.
48758         * modules/csharpexec (Makefile.am): Likewise.
48759         * modules/cycle-check (Makefile.am): Likewise.
48760         * modules/des (Makefile.am): Likewise.
48761         * modules/dev-ino (Makefile.am): Likewise.
48762         * modules/dirfd (Makefile.am): Likewise.
48763         * modules/dirname (Makefile.am): Likewise.
48764         * modules/dup2 (Makefile.am): Likewise.
48765         * modules/eealloc (Makefile.am): Likewise.
48766         * modules/error (Makefile.am): Likewise.
48767         * modules/euidaccess (Makefile.am): Likewise.
48768         * modules/exclude (Makefile.am): Likewise.
48769         * modules/exitfail (Makefile.am): Likewise.
48770         * modules/fcntl-safer (Makefile.am): Likewise.
48771         * modules/fcntl (Makefile.am): Likewise.
48772         * modules/file-type (Makefile.am): Likewise.
48773         * modules/fileblocks (Makefile.am): Likewise.
48774         * modules/filemode (Makefile.am): Likewise.
48775         * modules/filenamecat (Makefile.am): Likewise.
48776         * modules/fnmatch (Makefile.am): Likewise.
48777         * modules/fopen-safer (Makefile.am): Likewise.
48778         * modules/fpending (Makefile.am): Likewise.
48779         * modules/fprintftime (Makefile.am): Likewise.
48780         * modules/free (Makefile.am): Likewise.
48781         * modules/fsusage (Makefile.am): Likewise.
48782         * modules/ftruncate (Makefile.am): Likewise.
48783         * modules/fts (Makefile.am): Likewise.
48784         * modules/gc-arcfour (Makefile.am): Likewise.
48785         * modules/gc-des (Makefile.am): Likewise.
48786         * modules/gc-hmac-md5 (Makefile.am): Likewise.
48787         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
48788         * modules/gc-md4 (Makefile.am): Likewise.
48789         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48790         * modules/gc-sha1 (Makefile.am): Likewise.
48791         * modules/gc (Makefile.am): Likewise.
48792         * modules/getaddrinfo (Makefile.am): Likewise.
48793         * modules/getcwd (Makefile.am): Likewise.
48794         * modules/getdelim (Makefile.am): Likewise.
48795         * modules/getdomainname (Makefile.am): Likewise.
48796         * modules/getgroups (Makefile.am): Likewise.
48797         * modules/gethostname (Makefile.am): Likewise.
48798         * modules/gethrxtime (Makefile.am): Likewise.
48799         * modules/getline (Makefile.am): Likewise.
48800         * modules/getloadavg (Makefile.am): Likewise.
48801         * modules/getlogin_r (Makefile.am): Likewise.
48802         * modules/getndelim2 (Makefile.am): Likewise.
48803         * modules/getopt (Makefile.am): Likewise.
48804         * modules/getpagesize (Makefile.am): Likewise.
48805         * modules/getpass-gnu (Makefile.am): Likewise.
48806         * modules/getpass (Makefile.am): Likewise.
48807         * modules/getsubopt (Makefile.am): Likewise.
48808         * modules/gettime (Makefile.am): Likewise.
48809         * modules/gettimeofday (Makefile.am): Likewise.
48810         * modules/getugroups (Makefile.am): Likewise.
48811         * modules/getusershell (Makefile.am): Likewise.
48812         * modules/glob (Makefile.am): Likewise.
48813         * modules/group-member (Makefile.am): Likewise.
48814         * modules/hard-locale (Makefile.am): Likewise.
48815         * modules/hash (Makefile.am): Likewise.
48816         * modules/hmac-md5 (Makefile.am): Likewise.
48817         * modules/hmac-sha1 (Makefile.am): Likewise.
48818         * modules/human (Makefile.am): Likewise.
48819         * modules/idcache (Makefile.am): Likewise.
48820         * modules/imaxabs (Makefile.am): Likewise.
48821         * modules/imaxdiv (Makefile.am): Likewise.
48822         * modules/inet_ntop (Makefile.am): Likewise.
48823         * modules/inet_pton (Makefile.am): Likewise.
48824         * modules/intprops (Makefile.am): Likewise.
48825         * modules/inttostr (Makefile.am): Likewise.
48826         * modules/inttypes (Makefile.am): Likewise.
48827         * modules/isapipe (Makefile.am): Likewise.
48828         * modules/javaversion (Makefile.am): Likewise.
48829         * modules/lchmod (Makefile.am): Likewise.
48830         * modules/lchown (Makefile.am): Likewise.
48831         * modules/localcharset (Makefile.am): Likewise.
48832         * modules/long-options (Makefile.am): Likewise.
48833         * modules/lstat (Makefile.am): Likewise.
48834         * modules/malloc (Makefile.am): Likewise.
48835         * modules/mathl (Makefile.am): Likewise.
48836         * modules/mbchar (Makefile.am): Likewise.
48837         * modules/md2 (Makefile.am): Likewise.
48838         * modules/md4 (Makefile.am): Likewise.
48839         * modules/md5 (Makefile.am): Likewise.
48840         * modules/memcasecmp (Makefile.am): Likewise.
48841         * modules/memchr (Makefile.am): Likewise.
48842         * modules/memcmp (Makefile.am): Likewise.
48843         * modules/memcoll (Makefile.am): Likewise.
48844         * modules/memcpy (Makefile.am): Likewise.
48845         * modules/memmem (Makefile.am): Likewise.
48846         * modules/memmove (Makefile.am): Likewise.
48847         * modules/mempcpy (Makefile.am): Likewise.
48848         * modules/memrchr (Makefile.am): Likewise.
48849         * modules/memset (Makefile.am): Likewise.
48850         * modules/memxor (Makefile.am): Likewise.
48851         * modules/mkancesdirs (Makefile.am): Likewise.
48852         * modules/mkdir-p (Makefile.am): Likewise.
48853         * modules/mkdir (Makefile.am): Likewise.
48854         * modules/mkdtemp (Makefile.am): Likewise.
48855         * modules/mkstemp (Makefile.am): Likewise.
48856         * modules/mktime (Makefile.am): Likewise.
48857         * modules/modechange (Makefile.am): Likewise.
48858         * modules/mountlist (Makefile.am): Likewise.
48859         * modules/nanosleep (Makefile.am): Likewise.
48860         * modules/obstack (Makefile.am): Likewise.
48861         * modules/openat (Makefile.am): Likewise.
48862         * modules/pagealign_alloc (Makefile.am): Likewise.
48863         * modules/pathmax (Makefile.am): Likewise.
48864         * modules/physmem (Makefile.am): Likewise.
48865         * modules/poll (Makefile.am): Likewise.
48866         * modules/posixtm (Makefile.am): Likewise.
48867         * modules/posixver (Makefile.am): Likewise.
48868         * modules/putenv (Makefile.am): Likewise.
48869         * modules/quote (Makefile.am): Likewise.
48870         * modules/quotearg (Makefile.am): Likewise.
48871         * modules/raise (Makefile.am): Likewise.
48872         * modules/read-file (Makefile.am): Likewise.
48873         * modules/readline (Makefile.am): Likewise.
48874         * modules/readlink (Makefile.am): Likewise.
48875         * modules/readtokens (Makefile.am): Likewise.
48876         * modules/readutmp (Makefile.am): Likewise.
48877         * modules/realloc (Makefile.am): Likewise.
48878         * modules/regex (Makefile.am): Likewise.
48879         * modules/rename-dest-slash (Makefile.am): Likewise.
48880         * modules/rename (Makefile.am): Likewise.
48881         * modules/rijndael (Makefile.am): Likewise.
48882         * modules/rmdir (Makefile.am): Likewise.
48883         * modules/rpmatch (Makefile.am): Likewise.
48884         * modules/safe-read (Makefile.am): Likewise.
48885         * modules/safe-write (Makefile.am): Likewise.
48886         * modules/same-inode (Makefile.am): Likewise.
48887         * modules/same (Makefile.am): Likewise.
48888         * modules/save-cwd (Makefile.am): Likewise.
48889         * modules/savedir (Makefile.am): Likewise.
48890         * modules/setenv (Makefile.am): Likewise.
48891         * modules/settime (Makefile.am): Likewise.
48892         * modules/sha1 (Makefile.am): Likewise.
48893         * modules/sig2str (Makefile.am): Likewise.
48894         * modules/snprintf (Makefile.am): Likewise.
48895         * modules/stat-macros (Makefile.am): Likewise.
48896         * modules/stat-time (Makefile.am): Likewise.
48897         * modules/stdbool (Makefile.am): Likewise.
48898         * modules/stdint (Makefile.am): Likewise.
48899         * modules/stdlib-safer (Makefile.am): Likewise.
48900         * modules/stpcpy (Makefile.am): Likewise.
48901         * modules/stpncpy (Makefile.am): Likewise.
48902         * modules/strcase (Makefile.am): Likewise.
48903         * modules/strcasestr (Makefile.am): Likewise.
48904         * modules/strchrnul (Makefile.am): Likewise.
48905         * modules/strcspn (Makefile.am): Likewise.
48906         * modules/strdup (Makefile.am): Likewise.
48907         * modules/strerror (Makefile.am): Likewise.
48908         * modules/strftime (Makefile.am): Likewise.
48909         * modules/strndup (Makefile.am): Likewise.
48910         * modules/strnlen (Makefile.am): Likewise.
48911         * modules/strpbrk (Makefile.am): Likewise.
48912         * modules/strsep (Makefile.am): Likewise.
48913         * modules/strstr (Makefile.am): Likewise.
48914         * modules/strtod (Makefile.am): Likewise.
48915         * modules/strtoimax (Makefile.am): Likewise.
48916         * modules/strtok_r (Makefile.am): Likewise.
48917         * modules/strtol (Makefile.am): Likewise.
48918         * modules/strtoll (Makefile.am): Likewise.
48919         * modules/strtoul (Makefile.am): Likewise.
48920         * modules/strtoull (Makefile.am): Likewise.
48921         * modules/strtoumax (Makefile.am): Likewise.
48922         * modules/strverscmp (Makefile.am): Likewise.
48923         * modules/sys_socket (Makefile.am): Likewise.
48924         * modules/sys_stat (Makefile.am): Likewise.
48925         * modules/sysexits (Makefile.am): Likewise.
48926         * modules/time_r (Makefile.am): Likewise.
48927         * modules/timegm (Makefile.am): Likewise.
48928         * modules/timespec (Makefile.am): Likewise.
48929         * modules/tmpfile-safer (Makefile.am): Likewise.
48930         * modules/trim (Makefile.am): Likewise.
48931         * modules/unistd-safer (Makefile.am): Likewise.
48932         * modules/unlinkdir (Makefile.am): Likewise.
48933         * modules/unlocked-io (Makefile.am): Likewise.
48934         * modules/userspec (Makefile.am): Likewise.
48935         * modules/utime (Makefile.am): Likewise.
48936         * modules/utimecmp (Makefile.am): Likewise.
48937         * modules/utimens (Makefile.am): Likewise.
48938         * modules/vasnprintf (Makefile.am): Likewise.
48939         * modules/vasprintf (Makefile.am): Likewise.
48940         * modules/vsnprintf (Makefile.am): Likewise.
48941         * modules/xalloc (Makefile.am): Likewise.
48942         * modules/xgetcwd (Makefile.am): Likewise.
48943         * modules/xnanosleep (Makefile.am): Likewise.
48944         * modules/xreadlink (Makefile.am): Likewise.
48945         * modules/xstrtod (Makefile.am): Likewise.
48946         * modules/xstrtol (Makefile.am): Likewise.
48947         * modules/xstrtold (Makefile.am): Likewise.
48948         * modules/yesno (Makefile.am): Likewise.
48949         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
48950
48951 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48952
48953         * modules/error (Makefile.am): Distribute files through
48954         EXTRA_DIST, not lib_SOURCES.
48955
48956 2006-10-12  Eric Blake  <ebb9@byu.net>
48957
48958         * modules/error (Makefile.am): Distribute files in /lib.
48959         * modules/obstack (Makefile.am): Likewise.
48960
48961 2006-10-12  Bruno Haible  <bruno@clisp.org>
48962
48963         * modules/acl (Makefile.am): Distribute all files in lib/ through
48964         EXTRA_DIST.
48965         * modules/arcfour (Makefile.am): Likewise.
48966         * modules/arctwo (Makefile.am): Likewise.
48967         * modules/argmatch (Makefile.am): Likewise.
48968         * modules/argz (Makefile.am): Likewise.
48969         * modules/atexit (Makefile.am): Likewise.
48970         * modules/backupfile (Makefile.am): Likewise.
48971         * modules/c-strtod (Makefile.am): Likewise.
48972         * modules/c-strtold (Makefile.am): Likewise.
48973         * modules/calloc (Makefile.am): Likewise.
48974         * modules/canon-host (Makefile.am): Likewise.
48975         * modules/canonicalize (Makefile.am): Likewise.
48976         * modules/chdir-long (Makefile.am): Likewise.
48977         * modules/chdir-safer (Makefile.am): Likewise.
48978         * modules/check-version (Makefile.am): Likewise.
48979         * modules/chown (Makefile.am): Likewise.
48980         * modules/cloexec (Makefile.am): Likewise.
48981         * modules/close-stream (Makefile.am): Likewise.
48982         * modules/closeout (Makefile.am): Likewise.
48983         * modules/crc (Makefile.am): Likewise.
48984         * modules/cycle-check (Makefile.am): Likewise.
48985         * modules/des (Makefile.am): Likewise.
48986         * modules/dirfd (Makefile.am): Likewise.
48987         * modules/dirname (Makefile.am): Likewise.
48988         * modules/dup2 (Makefile.am): Likewise.
48989         * modules/euidaccess (Makefile.am): Likewise.
48990         * modules/exclude (Makefile.am): Likewise.
48991         * modules/exitfail (Makefile.am): Likewise.
48992         * modules/fcntl-safer (Makefile.am): Likewise.
48993         * modules/file-type (Makefile.am): Likewise.
48994         * modules/fileblocks (Makefile.am): Likewise.
48995         * modules/filemode (Makefile.am): Likewise.
48996         * modules/filenamecat (Makefile.am): Likewise.
48997         * modules/fnmatch (Makefile.am): Likewise.
48998         * modules/fopen-safer (Makefile.am): Likewise.
48999         * modules/fpending (Makefile.am): Likewise.
49000         * modules/fprintftime (Makefile.am): Likewise.
49001         * modules/free (Makefile.am): Likewise.
49002         * modules/fsusage (Makefile.am): Likewise.
49003         * modules/ftruncate (Makefile.am): Likewise.
49004         * modules/fts (Makefile.am): Likewise.
49005         * modules/gc (Makefile.am): Likewise.
49006         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49007         * modules/getaddrinfo (Makefile.am): Likewise.
49008         * modules/getcwd (Makefile.am): Likewise.
49009         * modules/getdelim (Makefile.am): Likewise.
49010         * modules/getdomainname (Makefile.am): Likewise.
49011         * modules/getgroups (Makefile.am): Likewise.
49012         * modules/gethostname (Makefile.am): Likewise.
49013         * modules/gethrxtime (Makefile.am): Likewise.
49014         * modules/getline (Makefile.am): Likewise.
49015         * modules/getloadavg (Makefile.am): Likewise.
49016         * modules/getlogin_r (Makefile.am): Likewise.
49017         * modules/getopt (Makefile.am): Likewise.
49018         * modules/getpass (Makefile.am): Likewise.
49019         * modules/getpass-gnu (Makefile.am): Likewise.
49020         * modules/getsubopt (Makefile.am): Likewise.
49021         * modules/gettime (Makefile.am): Likewise.
49022         * modules/gettimeofday (Makefile.am): Likewise.
49023         * modules/getugroups (Makefile.am): Likewise.
49024         * modules/getusershell (Makefile.am): Likewise.
49025         * modules/glob (Makefile.am): Likewise.
49026         * modules/group-member (Makefile.am): Likewise.
49027         * modules/hard-locale (Makefile.am): Likewise.
49028         * modules/hash (Makefile.am): Likewise.
49029         * modules/hmac-md5 (Makefile.am): Likewise.
49030         * modules/hmac-sha1 (Makefile.am): Likewise.
49031         * modules/human (Makefile.am): Likewise.
49032         * modules/idcache (Makefile.am): Likewise.
49033         * modules/imaxabs (Makefile.am): Likewise.
49034         * modules/imaxdiv (Makefile.am): Likewise.
49035         * modules/inet_ntop (Makefile.am): Likewise.
49036         * modules/inet_pton (Makefile.am): Likewise.
49037         * modules/inttostr (Makefile.am): Likewise.
49038         * modules/isapipe (Makefile.am): Likewise.
49039         * modules/lchown (Makefile.am): Likewise.
49040         * modules/long-options (Makefile.am): Likewise.
49041         * modules/lstat (Makefile.am): Likewise.
49042         * modules/malloc (Makefile.am): Likewise.
49043         * modules/mathl (Makefile.am): Likewise.
49044         * modules/mbchar (Makefile.am): Likewise.
49045         * modules/md2 (Makefile.am): Likewise.
49046         * modules/md4 (Makefile.am): Likewise.
49047         * modules/md5 (Makefile.am): Likewise.
49048         * modules/memcasecmp (Makefile.am): Likewise.
49049         * modules/memchr (Makefile.am): Likewise.
49050         * modules/memcmp (Makefile.am): Likewise.
49051         * modules/memcoll (Makefile.am): Likewise.
49052         * modules/memcpy (Makefile.am): Likewise.
49053         * modules/memmem (Makefile.am): Likewise.
49054         * modules/memmove (Makefile.am): Likewise.
49055         * modules/mempcpy (Makefile.am): Likewise.
49056         * modules/memrchr (Makefile.am): Likewise.
49057         * modules/memset (Makefile.am): Likewise.
49058         * modules/memxor (Makefile.am): Likewise.
49059         * modules/mkancesdirs (Makefile.am): Likewise.
49060         * modules/mkdir (Makefile.am): Likewise.
49061         * modules/mkdir-p (Makefile.am): Likewise.
49062         * modules/mkdtemp (Makefile.am): Likewise.
49063         * modules/mkstemp (Makefile.am): Likewise.
49064         * modules/mktime (Makefile.am): Likewise.
49065         * modules/modechange (Makefile.am): Likewise.
49066         * modules/mountlist (Makefile.am): Likewise.
49067         * modules/nanosleep (Makefile.am): Likewise.
49068         * modules/openat (Makefile.am): Likewise.
49069         * modules/pagealign_alloc (Makefile.am): Likewise.
49070         * modules/physmem (Makefile.am): Likewise.
49071         * modules/poll (Makefile.am): Likewise.
49072         * modules/posixtm (Makefile.am): Likewise.
49073         * modules/posixver (Makefile.am): Likewise.
49074         * modules/putenv (Makefile.am): Likewise.
49075         * modules/quote (Makefile.am): Likewise.
49076         * modules/quotearg (Makefile.am): Likewise.
49077         * modules/raise (Makefile.am): Likewise.
49078         * modules/read-file (Makefile.am): Likewise.
49079         * modules/readline (Makefile.am): Likewise.
49080         * modules/readlink (Makefile.am): Likewise.
49081         * modules/readtokens (Makefile.am): Likewise.
49082         * modules/readutmp (Makefile.am): Likewise.
49083         * modules/realloc (Makefile.am): Likewise.
49084         * modules/regex (Makefile.am): Likewise.
49085         * modules/rename (Makefile.am): Likewise.
49086         * modules/rename-dest-slash (Makefile.am): Likewise.
49087         * modules/rijndael (Makefile.am): Likewise.
49088         * modules/rmdir (Makefile.am): Likewise.
49089         * modules/rpmatch (Makefile.am): Likewise.
49090         * modules/safe-read (Makefile.am): Likewise.
49091         * modules/safe-write (Makefile.am): Likewise.
49092         * modules/same (Makefile.am): Likewise.
49093         * modules/save-cwd (Makefile.am): Likewise.
49094         * modules/savedir (Makefile.am): Likewise.
49095         * modules/setenv (Makefile.am): Likewise.
49096         * modules/settime (Makefile.am): Likewise.
49097         * modules/sha1 (Makefile.am): Likewise.
49098         * modules/sig2str (Makefile.am): Likewise.
49099         * modules/snprintf (Makefile.am): Likewise.
49100         * modules/stdlib-safer (Makefile.am): Likewise.
49101         * modules/stpcpy (Makefile.am): Likewise.
49102         * modules/stpncpy (Makefile.am): Likewise.
49103         * modules/strcase (Makefile.am): Likewise.
49104         * modules/strcasestr (Makefile.am): Likewise.
49105         * modules/strchrnul (Makefile.am): Likewise.
49106         * modules/strcspn (Makefile.am): Likewise.
49107         * modules/strdup (Makefile.am): Likewise.
49108         * modules/strerror (Makefile.am): Likewise.
49109         * modules/strftime (Makefile.am): Likewise.
49110         * modules/strndup (Makefile.am): Likewise.
49111         * modules/strnlen (Makefile.am): Likewise.
49112         * modules/strpbrk (Makefile.am): Likewise.
49113         * modules/strsep (Makefile.am): Likewise.
49114         * modules/strstr (Makefile.am): Likewise.
49115         * modules/strtod (Makefile.am): Likewise.
49116         * modules/strtoimax (Makefile.am): Likewise.
49117         * modules/strtok_r (Makefile.am): Likewise.
49118         * modules/strtol (Makefile.am): Likewise.
49119         * modules/strtoll (Makefile.am): Likewise.
49120         * modules/strtoul (Makefile.am): Likewise.
49121         * modules/strtoull (Makefile.am): Likewise.
49122         * modules/strtoumax (Makefile.am): Likewise.
49123         * modules/strverscmp (Makefile.am): Likewise.
49124         * modules/time_r (Makefile.am): Likewise.
49125         * modules/timegm (Makefile.am): Likewise.
49126         * modules/tmpfile-safer (Makefile.am): Likewise.
49127         * modules/unistd-safer (Makefile.am): Likewise.
49128         * modules/unlinkdir (Makefile.am): Likewise.
49129         * modules/userspec (Makefile.am): Likewise.
49130         * modules/utime (Makefile.am): Likewise.
49131         * modules/utimecmp (Makefile.am): Likewise.
49132         * modules/utimens (Makefile.am): Likewise.
49133         * modules/vasnprintf (Makefile.am): Likewise.
49134         * modules/vasprintf (Makefile.am): Likewise.
49135         * modules/vsnprintf (Makefile.am): Likewise.
49136         * modules/xalloc (Makefile.am): Likewise.
49137         * modules/xgetcwd (Makefile.am): Likewise.
49138         * modules/xnanosleep (Makefile.am): Likewise.
49139         * modules/xreadlink (Makefile.am): Likewise.
49140         * modules/xstrtod (Makefile.am): Likewise.
49141         * modules/xstrtol (Makefile.am): Likewise.
49142         * modules/xstrtold (Makefile.am): Likewise.
49143         * modules/yesno (Makefile.am): Likewise.
49144
49145 2006-10-12  Jim Meyering  <jim@meyering.net>
49146
49147         * m4/getloadavg.m4: Revert the change below.
49148
49149         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
49150         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
49151         fail with a symlink, which is what coreutils' ./bootstrap now
49152         creates by default.
49153
49154 2006-10-12  Bruno Haible  <bruno@clisp.org>
49155
49156         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
49157         mingw.
49158         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
49159         MSVC and mingw explicitly.
49160
49161 2006-10-11  Simon Josefsson  <jas@extundo.com>
49162             Bruno Haible  <bruno@clisp.org>
49163
49164         Add support for multiple gnulib-tool invocations in the scope of a
49165         single configure.ac file.
49166         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
49167         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
49168         with the same contents as the _LIBADD variable.
49169         (func_emit_initmacro_start, func_emit_initmacro_end,
49170         func_emit_initmacro_done): New functions.
49171         (func_import, func_create_testdir): Invoke them. Allow the identifiers
49172         gl_LIBOBJS and gl_LTLIBOBJS.
49173
49174 2006-10-11  Bruno Haible  <bruno@clisp.org>
49175
49176         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
49177         (func_create_testdir): Don't create po/Makefile.am, don't invoke
49178         autoreconf. Instead, invoke autopoint explicitly but move back the
49179         *.m4 files from gnulib.
49180
49181 2006-10-11  Bruno Haible  <bruno@clisp.org>
49182
49183         * gnulib-tool (func_usage): Make module names after --create-testdir
49184         optional.
49185         (func_create_testdir): If no module was specified, use nearly all
49186         modules.
49187
49188 2006-10-12  Jim Meyering  <jim@meyering.net>
49189
49190         Big performance improvement for fts-based tools that use FTS_NOSTAT.
49191         Avoid spurious inode-mismatch problems on non-POSIX file systems.
49192         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
49193         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
49194         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
49195         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
49196         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
49197         (fts_set_stat_required): New function.
49198         (fts_open): Defer the calls to fts_stat, if possible or requested.
49199         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
49200         into fts_stat itself.
49201         (fts_read): Perform any required (deferred) fts_stat call.
49202         (fts_build): Likewise, for the directory we're about to open and read.
49203         In the readdir loop, carefully decide whether each entry will require
49204         an eventual call to fts_stat, using dirent.d_type info if available.
49205         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
49206         a command line argument into this function.  Update all callers.
49207         Map a return value of FTS_DOT to FTS_D for a command line argument.
49208         * modules/fts (Depends-on): Add d-type.  Alphabetize.
49209         Thanks to Miklos Szeredi for his tenacity and for the initial
49210         bug report about "find" failing on a FUSE-based file system.
49211
49212         * lib/fts.c (fts_open): Use consistent indentation.
49213
49214 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49215
49216         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
49217         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
49218         reported by Jim Meyering.  All uses of cache variables renamed
49219         to match Autoconf's.
49220         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
49221         the other one.
49222
49223         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
49224         Fix misspelling in diagnostic.
49225
49226 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49227
49228         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
49229         defined.  Problem reported by Matthew Woehlke.
49230
49231         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
49232         Add support for Tandem NonStop R series.
49233         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
49234         Use new macro.
49235
49236         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
49237         (has_trailing_slash): Omit size arg; all callers changed.
49238         Omit 'inline', since it doesn't help performance and we'd
49239         need to configure it.
49240         Don't count //, ///, etc. as having a trailing slash.
49241         As a side effect, this removes a C99ism reported by Matthew Woehlke.
49242         (rpl_rename_dest_slash): On failure, use rename's errno rather
49243         than (in some cases) an incorrect or junk errno.
49244         Simplify code by removing need to compute length; this does
49245         cause it to make two passes instead of one over the file name,
49246         but it's worth it.
49247
49248         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
49249         change, since Autoconf's version may no longer be appropriate now
49250         that we are using CVS Autoconf's version.  Add support for Tandem.
49251
49252 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49253             Bruno Haible  <bruno@clisp.org>
49254
49255         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
49256         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
49257         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
49258         gl_AC_TYPE_LONG_LONG.
49259
49260         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
49261         instead of HAVE_LONG_LONG.
49262         * lib/printf-args.c (printf_fetchargs): Likewise.
49263         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
49264         * lib/vasnprintf.c (VASNPRINTF): Likewise.
49265         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
49266         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
49267         gl_AC_TYPE_LONG_LONG.
49268
49269 2006-10-11  Bruno Haible  <bruno@clisp.org>
49270
49271         * m4/longlong.m4: Add comments.
49272         * m4/ulonglong.m4: Likewise.
49273
49274 2006-10-10  Bruno Haible  <bruno@clisp.org>
49275
49276         Make it possible to #define stpcpy, strdup to aliases.
49277         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
49278         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
49279
49280 2006-10-10  Bruno Haible  <bruno@clisp.org>
49281
49282         Make it possible to #define gcd to an alias.
49283         * lib/gcd.c: Include config.h.
49284
49285 2006-10-10  Bruno Haible  <bruno@clisp.org>
49286
49287         Make it possible to #define c_isascii to an alias.
49288         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
49289         defined. Undefine the macros before defining them, to avoid gcc
49290         warnings.
49291         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
49292         define NO_C_CTYPE_MACROS early.
49293
49294 2006-10-10  Bruno Haible  <bruno@clisp.org>
49295
49296         Make it possible to #define set_program_name to an alias.
49297         * lib/progname.c: Don't undefine set_program_name; instead, undefine
49298         ENABLE_RELOCATABLE early.
49299
49300 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49301
49302         Port to Tandem NSK OSS, which has 64-bit signed int but at most
49303         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
49304         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
49305         More generally, don't assume that 64-bit signed int is available
49306         if unsigned int is, and vice versa.
49307         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
49308         unsigned symbols, not on their signed counterparts.
49309         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
49310         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
49311         (UINT64_C, UINTMAX_C):
49312         Likewise.
49313         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
49314         unsigned counterparts.
49315         (Have_long_long, Unsigned): New macros.
49316         (Int): Renamed from INT.
49317         (strtoimax): Use the new macros.
49318         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
49319         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
49320         * modules/inttypes (inttypes.h): Substitute
49321         HAVE_UNSIGNED_LONG_LONG_INT.
49322         * modules/stdint (stdint.h): Likewise.
49323         (Files): Add m4/ulonglong.m4.
49324
49325 2006-10-10  Bruno Haible  <bruno@clisp.org>
49326
49327         Fix a gcc -Wshadow warning.
49328         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
49329         to 'bucket'.
49330         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
49331         gl_linked_indexof_from_to): Likewise.
49332         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
49333         Likewise.
49334         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
49335         Likewise.
49336         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
49337         Reported by Eric Blake.
49338
49339 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
49340
49341         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
49342         for NetBSD.  Problem reported by Bruno Haible.
49343
49344 2006-10-09  Jim Meyering  <jim@meyering.net>
49345
49346         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
49347         Patch from Bruno Haible.
49348
49349 2006-10-09  Jim Meyering  <jim@meyering.net>
49350
49351         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
49352         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
49353         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
49354
49355 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49356
49357         Don't include <config.h> twice; this doesn't work in some cases,
49358         e.g., when config.h has "#define intmax_t long long int" and
49359         we include <config.h>, <inttypes.h>, <config.h> in that order.
49360         Problem reported by Matthew Woehlke in:
49361         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
49362         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
49363         * lib/fts-cycle.c: Don't include config.h.
49364         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
49365         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
49366         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
49367         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
49368         inttypes.h.
49369         * lib/xstrtoumax.c: Likewise.
49370         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
49371         __strtol and the like, so that this module is more like its siblings.
49372         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
49373         Remove; no longer needed now that we assume gnulib inttypes.h.
49374
49375 2006-10-08  Bruno Haible  <bruno@clisp.org>
49376
49377         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
49378         option.
49379
49380 2006-10-07  Jim Meyering  <jim@meyering.net>
49381
49382         * modules/inttypes (inttypes.h): Revert what seems to have been
49383         an inadvertent part of today's change: use "|", not "/" in the
49384         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
49385
49386 2006-10-07  Bruno Haible  <bruno@clisp.org>
49387
49388         * modules/sublist: New file.
49389
49390 2006-10-07  Bruno Haible  <bruno@clisp.org>
49391
49392         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
49393         * modules/argz (argz.h): Likewise.
49394         * modules/arpa_inet (arpa/inet.h): Likewise.
49395         * modules/byteswap (byteswap.h): Likewise.
49396         * modules/configmake (configmake.h): Likewise.
49397         * modules/fcntl (fcntl.h): Likewise.
49398         * modules/fnmatch (fnmatch.h): Likewise.
49399         * modules/getopt (getopt.h): Likewise.
49400         * modules/glob (glob.h): Likewise.
49401         * modules/inttypes (inttypes.h): Likewise.
49402         * modules/netinet_in (netinet/in.h): Likewise.
49403         * modules/poll (poll.h): Likewise.
49404         * modules/stdbool (stdbool.h): Likewise.
49405         * modules/stdint (stdint.h): Likewise.
49406         * modules/sys_select (sys/select.h): Likewise.
49407         * modules/sys_socket (sys/socket.h): Likewise.
49408         * modules/sys_stat (sys/stat.h): Likewise.
49409         * modules/sysexits (sysexits.h): Likewise.
49410         * modules/unistd (unistd.h): Likewise.
49411         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49412         Add a "DO NOT EDIT" comment to the generated file.
49413         (func_import): Likewise for gnulib-comp.m4.
49414
49415 2006-10-07  Bruno Haible  <bruno@clisp.org>
49416
49417         * lib/gl_sublist.h: New file.
49418         * lib/gl_sublist.c: New file.
49419
49420 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49421
49422         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
49423         name (relative to the original working directory) and the file
49424         name component (relative to the temporary working directory).  All
49425         callers changed.
49426         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
49427         * lib/mkdir-p.c (make_dir_parents): Likewise.
49428         * lib/mkdir-p.h (make_dir_parents): Likewise.
49429
49430 2006-10-06  Eric Blake  <ebb9@byu.net>
49431
49432         Define several macros for use by the clean-temp module.
49433         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
49434         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
49435         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
49436
49437         * lib/clean-temp.h (close_stream_temp): New declaration.
49438         * lib/clean-temp.c (includes): Pull in headers according to what
49439         other modules are in use.
49440         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
49441
49442 2006-10-06  Bruno Haible  <bruno@clisp.org>
49443
49444         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
49445         instead of fopen, fwriteerror.
49446
49447 2006-10-06  Bruno Haible  <bruno@clisp.org>
49448
49449         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
49450         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
49451         int.
49452         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
49453         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
49454         Return an error indicator.
49455         Suggested by Eric Blake.
49456
49457 2006-10-06  Bruno Haible  <bruno@clisp.org>
49458
49459         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
49460         Reported by Eric Blake.
49461
49462 2006-10-06  Bruno Haible  <bruno@clisp.org>
49463
49464         * modules/closeout (Description): Mention stderr too.
49465
49466 2006-10-06  Bruno Haible  <bruno@clisp.org>
49467         and Paul Eggert  <eggert@cs.ucla.edu>
49468
49469         * lib/closeout.c (close_stdout): Also close stderr.
49470         * lib/closeout.h: Update comment.
49471
49472 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49473
49474         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
49475         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
49476         * lib/dirchownmod.c: Include lchown.h.
49477         * lib/lchown.c: Don't include files that lchown.h now includes.
49478         Don't declare chown, since lchown.h now does that.
49479         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
49480         (lchown): Define to rpl_chown if lchown is declared but
49481         does not exist.  Declare using a prototype if lchown is not
49482         declared.  Add a copyright notice.
49483         * lib/mkstemp.h: Include <unistd.h>.
49484         * lib/openat.c: Include lchown.h.
49485
49486         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
49487         we now test for that separately.
49488         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
49489         rather than O_NOFOLLOW, when testing whether it's possible to
49490         avoid a race condition reliably.
49491         * lib/savewd.c (savewd_chdir): Likewise.
49492
49493         Remove macros that are no longer needed now that stdint.h is
49494         reliable.
49495         * lib/fsusage.c (UINTMAX_MAX): Remove.
49496         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
49497         * lib/utimecmp.c (SIZE_MAX): Remove.
49498
49499         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
49500
49501         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
49502         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
49503         O_NOATIME works.
49504
49505 2006-10-05  Bruno Haible  <bruno@clisp.org>
49506
49507         * lib/gl_list.h (gl_sortedlist_search_from_to,
49508         gl_sortedlist_indexof_from_to): New declarations.
49509         (gl_list_implementation): New fields sortedlist_search_from_to,
49510         sortedlist_indexof_from_to.
49511         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
49512         inline functions.
49513         * lib/gl_list.c (gl_sortedlist_search_from_to,
49514         gl_sortedlist_indexof_from_to): New functions.
49515         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
49516         function.
49517         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
49518         (gl_array_sortedlist_search_from_to): New function.
49519         (gl_array_list_implementation): Update.
49520         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
49521         function.
49522         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
49523         (gl_carray_sortedlist_search_from_to): New function.
49524         (gl_carray_list_implementation): Update.
49525         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
49526         gl_linked_sortedlist_indexof_from_to): New functions.
49527         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49528         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49529         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
49530         gl_tree_sortedlist_indexof_from_to): New functions.
49531         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49532         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49533         Update.
49534         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49535         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
49536         Update.
49537
49538 2006-10-05  Bruno Haible  <bruno@clisp.org>
49539
49540         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
49541         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
49542         (struct gl_list_implementation): Add fields search_from_to,
49543         indexof_from_to. Remove fields search, indexof.
49544         (gl_list_search): Use the search_from_to method.
49545         (gl_list_search_from, gl_list_search_from_to): New functions.
49546         (gl_list_indexof): Use the indexof_from_to method.
49547         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49548         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
49549         (gl_list_search_from, gl_list_search_from_to): New functions.
49550         (gl_list_indexof): Use the indexof_from_to method.
49551         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49552         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
49553         gl_array_indexof. Add start_index, end_index arguments.
49554         (gl_array_search_from_to): Renamed from gl_array_search. Add
49555         start_index, end_index arguments.
49556         (gl_array_remove, gl_array_list_implementation): Update.
49557         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
49558         gl_carray_indexof. Add start_index, end_index arguments.
49559         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
49560         start_index, end_index arguments.
49561         (gl_carray_remove, gl_carray_list_implementation): Update.
49562         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
49563         gl_linked_search. Add start_index, end_index arguments.
49564         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
49565         start_index, end_index arguments.
49566         (gl_linked_remove): Update.
49567         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49568         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49569         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
49570         field to 'size_t'.
49571         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
49572         gl_tree_search. Add start_index, end_index arguments.
49573         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49574         start_index, end_index arguments.
49575         (gl_tree_remove): Update.
49576         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49577         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49578         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
49579         function.
49580         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
49581         gl_tree_search. Add start_index, end_index arguments.
49582         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49583         start_index, end_index arguments.
49584         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49585         Update.
49586         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49587
49588 2006-10-05  Bruno Haible  <bruno@clisp.org>
49589
49590         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
49591
49592         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
49593         fwriteerror_temp): New declarations.
49594         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
49595         (descriptors): New variable.
49596         (cleanup): First, close the descriptors.
49597         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
49598         fclose_temp, fwriteerror_temp): New functions.
49599
49600 2006-10-04  Jim Meyering  <jim@meyering.net>
49601
49602         * lib/fts.c (fts_open): Tiny comment change.
49603
49604 2006-10-04  Bruno Haible  <bruno@clisp.org>
49605
49606         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
49607         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
49608         gl_LOCK_BODY.
49609         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
49610         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
49611         gl_LOCK_EARLY_BODY.
49612         (gl_LOCK): Require gl_LOCK_BODY.
49613
49614 2006-10-04  Bruno Haible  <bruno@clisp.org>
49615
49616         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
49617         (gl_oset_search_atleast): New declaration.
49618         (struct gl_oset_implementation): Add field 'search_atleast'.
49619         (gl_oset_search_atleast): New inline function.
49620         * lib/gl_oset.c (gl_oset_search_atleast): New function.
49621         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
49622         (gl_array_oset_implementation): Update.
49623         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
49624         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
49625         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
49626
49627 2006-10-04  Bruno Haible  <bruno@clisp.org>
49628
49629         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
49630
49631 2006-10-03  Bruno Haible  <bruno@clisp.org>
49632
49633         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
49634         from gl_avltreehash_list_implementation.
49635
49636 2006-10-03  Bruno Haible  <bruno@clisp.org>
49637
49638         * lib/gl_oset.c (gl_oset_add): Fix return type.
49639
49640 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
49641
49642         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
49643
49644 2006-10-02  Eric Blake  <ebb9@byu.net>
49645
49646         * modules/strnlen (Depends-on): Add extensions.
49647
49648 2006-10-02  Eric Blake  <ebb9@byu.net>
49649
49650         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
49651         definition in 2.60+.
49652
49653 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
49654
49655         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
49656         checks.
49657
49658 2006-10-02  Bruno Haible  <bruno@clisp.org>
49659
49660         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
49661         to the AUTOMAKE_OPTIONS.
49662         Reported by Jim Meyering.
49663
49664 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49665
49666         Work around bug in Solaris 10 /proc file system:
49667         /proc/self/fd/NNN/.. isn't the parent directory of
49668         the directory whose file descriptor is NNN.  This needs to
49669         be worked around at run time, not compile time, since a
49670         program might be built on Solaris 8, where things work, and
49671         run on Solaris 10.
49672         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
49673         to use the following interface instead:
49674         (OPENAT_BUFFER_SIZE): New macro.
49675         (openat_proc_name): New function.
49676         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
49677         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
49678         Likewise.
49679         * lib/openat-proc.c: New file.
49680         * modules/openat (Files): Add lib/openat-proc.c.
49681         (Depends-on): Add same-inode, stdbool.
49682         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
49683
49684 2006-09-29  Bruno Haible  <bruno@clisp.org>
49685
49686         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
49687         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
49688         argument. Set stdout_closed before testing for ferror, not after.
49689         (fwriteerror, fwriteerror_no_ebadf): New functions.
49690
49691 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49692
49693         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
49694
49695 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
49696
49697         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
49698         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
49699
49700 2006-09-28  Jim Meyering  <jim@meyering.net>
49701
49702         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
49703         Include <unistd.h>.
49704
49705 2006-09-28  Bruno Haible  <bruno@clisp.org>
49706
49707         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
49708         * modules/linkedhash-list (Depends-on): Likewise.
49709         * modules/rbtreehash-list (Depends-on): Likewise.
49710
49711 2006-09-28  Bruno Haible  <bruno@clisp.org>
49712
49713         * lib/strndup.h: Simplify the redefinition of strndup.
49714         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
49715         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
49716
49717 2006-09-28  Bruno Haible  <bruno@clisp.org>
49718
49719         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
49720         * lib/gl_linkedhash_list.c: Likewise.
49721         * lib/gl_rbtreehash_list.c: Likewise.
49722
49723 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49724
49725         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
49726         getaddrinfo.
49727
49728         * lib/__fpending.h: Don't include <stdio_ext.h> unless
49729         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
49730         it causes <stdio_ext.h> to cause a compile-time error.
49731         Problem reported by Nelson H. F. Beebe.
49732         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
49733         of HAVE_DECL___PENDING.
49734
49735         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
49736         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
49737         declaration.
49738
49739 2006-09-27  Jim Meyering  <jim@meyering.net>
49740
49741         This file could end up with a definition for a function
49742         named __strndup, rather than rpl_strndup on a system with
49743         incomplete weak_alias support.
49744         * lib/strndup.c (strndup): Rename from __strndup.
49745         Remove #defines that used to map __strndup to strndup.
49746         Don't use K&R prototypes.
49747         Remove LIBC-related code, since this file is not sync'd with glibc.
49748         * lib/strndup.h: Revamp, accordingly.
49749         * m4/strndup.m4: Modernize.
49750
49751 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49752
49753         * modules/savewd (Depends-on): Add 'raise'.
49754         * lib/savewd.c: Include <signal.h>, for 'raise'.
49755
49756 2006-09-26  Jim Meyering  <jim@meyering.net>
49757
49758         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
49759         when we detect Darwin 8.7.0's acl_get_file bug.
49760         Rearrange to perform the new (below) run-test while $LIBS
49761         contains any acl-related library.  Set USE_ACL at the end.
49762         (gl_ACL_GET_FILE): New function.
49763
49764 2006-09-26  Eric Blake  <ebb9@byu.net>
49765
49766         * lib/verror.c: Include <config.h> unconditionally.
49767
49768 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
49769
49770         * modules/clock-time (Maintainer): Add self.
49771         * modules/getlogin_r (Depends-on): Add extensions.
49772
49773 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49774
49775         * modules/clock-time: New module.
49776         * modules/nanosleep (Depends-on): Add clock-time.
49777         * modules/gethrxtime (Depends-on): Likewise.
49778         * modules/gettime (Depends-on): Likewise.
49779         * modules/settime (Depends-on): Likewise.
49780
49781         * modules/fts-lgpl: Depend on openat.
49782         * modules/mkancesdirs: Depend on savewd.
49783         * modules/mkdir-p: Likewise.
49784
49785 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49786
49787         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
49788
49789         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
49790         `gl_have_arbitrary_file_name_length_limit' to
49791         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
49792         actually works between configure runs.
49793
49794 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49795             Bruno Haible  <bruno@clisp.org>
49796
49797         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
49798
49799 2006-09-25  Jim Meyering  <jim@meyering.net>
49800
49801         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
49802         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
49803
49804 2006-09-25  Eric Blake  <ebb9@byu.net>
49805
49806         * gnulib-tool (func_import, func_create_testdir): Fix typos in
49807         exec's in 2006-09-18 patch when shuffling fds.
49808
49809 2006-09-25  Bruno Haible  <bruno@clisp.org>
49810
49811         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
49812         Reported by Jim Meyering.
49813
49814 2006-09-24  Jim Meyering  <jim@meyering.net>
49815
49816         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
49817         compare a pointer against a literal "0".  That caused failures with
49818         at least HP-UX's hpcc.
49819
49820 2006-09-22  Simon Josefsson  <jas@extundo.com>
49821
49822         * modules/gc-sha1:
49823         * modules/gc-md4:
49824         * modules/gc-hmac-sha1:
49825         * modules/gc-hmac-md5:
49826         * modules/gc-des:
49827         * modules/gc-arcfour: Distribute more files.
49828
49829 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49830
49831         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
49832         (gl_linked_iterator_from_to): Initialize struct completely.
49833         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
49834         (gl_tree_iterator_from_to): Likewise
49835         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
49836         * lib/gl_array_list.c [lint] (gl_array_iterator)
49837         (gl_array_iterator_from_to): Likewise.
49838         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
49839         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
49840         (gl_carray_iterator_from_to): Likewise.
49841
49842         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
49843         * lib/md4.c (md4_process_block): Remove unused variable.
49844         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
49845         parentheses for clarity.
49846
49847 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49848
49849         * modules/bison-i18n (Depends-on): Add gettext.
49850
49851 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49852
49853         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
49854         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
49855         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
49856         also add missing comma that caused broken test.
49857         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
49858         stdlib.h, for `abort'.
49859         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
49860         variables.
49861         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
49862         include unistd.h if present, for `rmdir'.
49863         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
49864         variables.
49865         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
49866         in the process include standard headers for prototypes.
49867         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
49868         gets declared on GNU/Linux.
49869         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
49870         unistd.h, for `rmdir'.
49871         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
49872
49873         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
49874         always true.
49875         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
49876
49877         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
49878
49879 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49880
49881         * gnulib-tool (func_version): Create output all at once.  This
49882         may help avoid triggering unnecessary SIGPIPEs, and at any
49883         rate it doesn't hurt.
49884
49885 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49886             Bruno Haible  <bruno@clisp.org>
49887
49888         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
49889         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49890         * m4/signed.m4 (bh_C_SIGNED): Likewise.
49891
49892         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
49893         (gl_FUNC_VASPRINTF): Invoke it.
49894
49895 2006-09-22  Bruno Haible  <bruno@clisp.org>
49896
49897         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
49898         getloadavg.c as first argument.
49899
49900 2006-09-22  Bruno Haible  <bruno@clisp.org>
49901
49902         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
49903         at the beginning of the gl_INIT macro.
49904         * modules/getloadavg (configure.ac): Pass $gl_source_base to
49905         gl_GETLOADAVG.
49906
49907 2006-09-22  Bruno Haible  <bruno@clisp.org>
49908
49909         * gnulib-tool (func_create_megatestdir): Don't include the config-h
49910         module.
49911         Suggested by Ralf Wildenhues.
49912
49913 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
49914
49915         Import this patch from libc:
49916
49917         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
49918
49919         * lib/regex_internal.c (re_string_reconstruct): Handle
49920         offset < pstr->valid_raw_len && pstr->offsets_needed case.
49921         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
49922         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
49923         re_string_context_at.
49924
49925         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
49926         now requires it.
49927         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
49928         gl_REGEX now does it for us.
49929         (gl_REGEX): Add test taken from
49930         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
49931
49932         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
49933         Check that large offsets work.  Modernize Autoconf usages.
49934         Prefer "yes" to mean a good thing rather than a bad.
49935         Don't put "#define mkstemp" in config.h, as this might interfere
49936         with standard system headers that "#define mkstemp mkstemp64".
49937
49938         * modules/mkstemp (Depends-on): Add extensions, so that
49939         mkstemp is visible on some platforms.
49940         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
49941         (Include): Change to "mkstemp.h" from <stdlib.h>.
49942         (Files): Add mkstemp.h.
49943
49944         * lib/mkstemp.h: New file, since some standard headers
49945         #define mkstemp.
49946         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
49947         Include "mkstemp.h".
49948         Make the _LIBC code resemble glibc original more,
49949         e.g., use K&R style.
49950         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
49951         (mkstemp): Remove, since mkstemp.h does this for us.
49952         * lib/stdlib--.h: Include mkstemp.h.
49953
49954         Import this patch from libc:
49955
49956         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49957
49958         * lib/tempname.c (__gen_tempname): Change attempts_min
49959         into a macro.  Use preprocessor to decide how to initialize
49960         attempts [Coverity CID 67].
49961
49962 2006-09-20  Bruno Haible  <bruno@clisp.org>
49963
49964         * lib/mkdtemp.c: Import from libc.
49965         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49966                 * sysdeps/posix/tempname.c (__gen_tempname): Change
49967                 attempts_min into a macro.  Use preprocessor to decide how to
49968                 initialize attempts [Coverity CID 67].
49969         2001-11-27  Paul Eggert  <eggert@twinsun.com>
49970                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
49971                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
49972
49973 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49974
49975         * gnulib-tool (func_exit): New function, to allow to pass the
49976         exit status portably through the trap.  Use everywhere.
49977         (--help, --version): Signal a write error.
49978         (trap): catch SIGPIPE, for write errors.
49979         Exit at the end of the trap, with the correct exit status.
49980
49981 2006-09-19  Karl Berry  <karl@gnu.org>
49982
49983         * doc/gnulib.texi: note about the license texinfo files.
49984
49985 2006-09-19  Eric Blake  <ebb9@byu.net>
49986
49987         * gnulib-tool: Avoid space-tab.
49988
49989 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49990
49991         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
49992         that prevented coreutils 6.1 from building.  Problem reported
49993         by Petter Reinholdtsen.
49994
49995 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49996
49997         * gnulib-tool (avoidlist): Fix typo that broke options like
49998         --avoid=lock that are used by coreutils bootstrap.
49999
50000 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
50001
50002         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
50003         more systematically.
50004
50005 2006-09-18  Jim Meyering  <jim@meyering.net>
50006
50007         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
50008
50009 2006-09-18  Bruno Haible  <bruno@clisp.org>
50010
50011         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
50012
50013 2006-09-18  Bruno Haible  <bruno@clisp.org>
50014
50015         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
50016         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
50017         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
50018         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
50019         * m4/gettext.m4: Require autoconf >= 2.52.
50020         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
50021         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
50022         of gl_cv_header_inttypes_h.
50023
50024 2006-09-18  Bruno Haible  <bruno@clisp.org>
50025
50026         * lib/javaversion.c: Include configmake.h.
50027
50028 2006-09-18  Bruno Haible  <bruno@clisp.org>
50029
50030         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
50031         avoid that the while loops be executed in a subshell.
50032
50033 2006-09-18  Bruno Haible  <bruno@clisp.org>
50034
50035         * MODULES.html.sh (func_module): Break long lines.
50036         Suggested by Bruce Korb <bkorb@gnu.org>.
50037
50038 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50039
50040         Speed up by a factor of 1.12.
50041         * gnulib-tool (nl): New variable.
50042         (func_import): Rewrite include directive extraction to only read each
50043         directive once.
50044
50045 2006-09-17  Bruno Haible  <bruno@clisp.org>
50046
50047         * modules/javaversion (Makefile.am): Remove DEFS setting.
50048         (Depends-on): Add configmake, for PKGDATADIR definition.
50049
50050 2006-09-17  Bruno Haible  <bruno@clisp.org>
50051
50052         * gnulib-tool (func_create_testdir): Rewrite all files at once.
50053
50054 2006-09-17  Bruno Haible  <bruno@clisp.org>
50055
50056         * gnulib-tool (func_append): New function, stolen from libtool.m4.
50057         (func_modules_transitive_closure, func_modules_add_dummy,
50058         func_modules_to_filelist, func_import, func_create_testdir,
50059         func_create_megatestdir, ...): Use it wherever possible.
50060         Suggested by Ralf Wildenhues.
50061
50062 2006-09-16  Karl Berry  <karl@gnu.org>
50063
50064         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
50065         to avoid sectioning errors.
50066         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
50067         [ifinfo]: blank line after @center-ed titles.
50068         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
50069         Spell FSF address consistently with others.
50070         (These changes approved by rms.)
50071
50072 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50073
50074         Speed up by a factor of 1.61.
50075         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
50076         already checked module names again.
50077
50078 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50079
50080         Speed up by a factor of 1.13.
50081         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
50082         for new_files, and the input to func_add_or_update.
50083
50084 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50085
50086         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
50087         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
50088
50089 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50090
50091         * modules/mkancesdirs (Depends-on): Add fcntl.
50092         * modules/savewd: New file.
50093         * MODULES.html.sh (File system functions): Add savewd.
50094
50095         * modules/configmake (Makefile.am): Add support for the
50096         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
50097
50098 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50099
50100         * m4/savewd.m4: New file.
50101
50102 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50103
50104         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
50105         (dirchownmod): New arg FD.  All callers changed.
50106         Use FD rather than opening the directory ourself, as opening is
50107         now the caller's responsibility.
50108         * lib/dirchownmod.h: Likewise.
50109         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
50110         hosts that require <sys/types.h> before <sys/stat.h>.  Include
50111         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
50112         (test_dir): Remove.
50113         (mkancesdirs): Return length of prefix of FILE that has already
50114         been made, or -2 if there is a child doing the work.  Redo
50115         algorithm so that it is O(N) rather than O(N**2).  Optimize away
50116         ".", and treat ".." specially since it might stray back into
50117         already-created areas.  Use a subprocess if necessary.  New arg
50118         WD; all users changed.  MAKE_DIR function should now return 1
50119         if it creates a directory that is not readable.  Return -2 if
50120         a child process is spun off.
50121         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
50122         Adjust signature to match code.
50123         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
50124         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
50125         all users changed.
50126         * lib/savewd.c, lib/savewd.h: New files.
50127
50128 2006-09-15  Jim Meyering  <jim@meyering.net>
50129
50130         * modules/rename-dest-slash: New module.
50131         * MODULES.html.sh (posix_compat): Add it here.
50132
50133         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
50134
50135 2006-09-15  Jim Meyering  <jim@meyering.net>
50136
50137         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
50138         file.
50139
50140         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
50141
50142 2006-09-15  Jim Meyering  <jim@meyering.net>
50143
50144         * lib/rename-dest-slash.c (has_trailing_slash): Use
50145         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
50146         (rpl_rename_dest_slash): Perform the cheaper trailing slash
50147         test before testing whether SRC is a directory.
50148         Suggestions from Bruno Haible.
50149
50150         Avoid a warning about an unused variable.
50151         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
50152         into the #ifdef block where it's used.
50153
50154         * lib/rename-dest-slash.c: New file.
50155
50156 2006-09-14  Bruno Haible  <bruno@clisp.org>
50157
50158         * lib/allocsa.c: Include <config.h> unconditionally.
50159         * lib/asnprintf.c: Likewise.
50160         * lib/asprintf.c: Likewise.
50161         * lib/c-strcasecmp.c: Likewise.
50162         * lib/c-strcasestr.c: Likewise.
50163         * lib/c-strncasecmp.c: Likewise.
50164         * lib/c-strstr.c: Likewise.
50165         * lib/classpath.c: Likewise.
50166         * lib/clean-temp.c: Likewise.
50167         * lib/concatpath.c: Likewise.
50168         * lib/copy-file.c: Likewise.
50169         * lib/csharpcomp.c: Likewise.
50170         * lib/csharpexec.c: Likewise.
50171         * lib/execute.c: Likewise.
50172         * lib/fatal-signal.c: Likewise.
50173         * lib/findprog.c: Likewise.
50174         * lib/fwriteerror.c: Likewise.
50175         * lib/gl_array_list.c: Likewise.
50176         * lib/gl_array_oset.c: Likewise.
50177         * lib/gl_avltree_list.c: Likewise.
50178         * lib/gl_avltree_oset.c: Likewise.
50179         * lib/gl_avltreehash_list.c: Likewise.
50180         * lib/gl_carray_list.c: Likewise.
50181         * lib/gl_linked_list.c: Likewise.
50182         * lib/gl_linkedhash_list.c: Likewise.
50183         * lib/gl_list.c: Likewise.
50184         * lib/gl_oset.c: Likewise.
50185         * lib/gl_rbtree_list.c: Likewise.
50186         * lib/gl_rbtree_oset.c: Likewise.
50187         * lib/gl_rbtreehash_list.c: Likewise.
50188         * lib/imaxabs.c: Likewise.
50189         * lib/imaxdiv.c: Likewise.
50190         * lib/javacomp.c: Likewise.
50191         * lib/javaexec.c: Likewise.
50192         * lib/javaversion.c: Likewise.
50193         * lib/linebreak.c: Likewise.
50194         * lib/localcharset.c: Likewise.
50195         * lib/lock.c: Likewise.
50196         * lib/mbchar.c: Likewise.
50197         * lib/mbswidth.c: Likewise.
50198         * lib/mkdtemp.c: Likewise.
50199         * lib/pipe.c: Likewise.
50200         * lib/printf-args.c: Likewise.
50201         * lib/printf-parse.c: Likewise.
50202         * lib/progname.c: Likewise.
50203         * lib/progreloc.c: Likewise.
50204         * lib/readlink.c: Likewise.
50205         * lib/sh-quote.c: Likewise.
50206         * lib/stpcpy.c: Likewise.
50207         * lib/stpncpy.c: Likewise.
50208         * lib/strcasecmp.c: Likewise.
50209         * lib/strcasestr.c: Likewise.
50210         * lib/strcspn.c: Likewise.
50211         * lib/striconv.c: Likewise.
50212         * lib/strncasecmp.c: Likewise.
50213         * lib/strnlen1.c: Likewise.
50214         * lib/strstr.c: Likewise.
50215         * lib/strtok_r.c: Likewise.
50216         * lib/tls.c: Likewise.
50217         * lib/tmpdir.c: Likewise.
50218         * lib/unicodeio.c: Likewise.
50219         * lib/unsetenv.c: Likewise.
50220         * lib/vasnprintf.c: Likewise.
50221         * lib/vasprintf.c: Likewise.
50222         * lib/wait-process.c: Likewise.
50223         * lib/xallocsa.c: Likewise.
50224         * lib/xsetenv.c: Likewise.
50225         * lib/xstriconv.c: Likewise.
50226
50227 2006-09-13  Simon Josefsson  <jas@extundo.com>
50228
50229         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
50230         that internally, suggested by Ralf Wildenhues
50231         <Ralf.Wildenhues@gmx.de>.
50232
50233 2006-09-13  Simon Josefsson  <jas@extundo.com>
50234
50235         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
50236         @LIBOBJS@.
50237         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50238
50239 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
50240
50241         * lib/_fpending.c: Include <config.h> unconditionally, since we no
50242         longer worry about uses that don't define HAVE_CONFIG_H.
50243         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
50244         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
50245         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
50246         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
50247         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
50248         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
50249         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
50250         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
50251         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
50252         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
50253         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
50254         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
50255         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
50256         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
50257         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
50258         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
50259         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
50260         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
50261         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
50262         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
50263         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
50264         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
50265         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
50266         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
50267         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
50268         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
50269         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
50270         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
50271         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
50272         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
50273         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
50274         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
50275         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
50276         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
50277         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
50278         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
50279         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
50280         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
50281         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
50282         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
50283         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
50284         Likewise.
50285
50286 2006-09-13  Eric Blake  <ebb9@byu.net>
50287
50288         * lib/getopt.c: Fix typo in last commit.
50289
50290 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50291
50292         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
50293         dgettext.
50294
50295 2006-09-12  Jim Meyering  <jim@meyering.net>
50296
50297         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
50298         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
50299         Reported by Nelson H. F. Beebe.
50300
50301 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50302
50303         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
50304         program_invocation_name and program_invocation_short_name are
50305         initialized.
50306         * lib/argp-namefrob.h: Move declarations of program_invocation_name
50307         and program_invocation_short_name to argp.h, so they are visible
50308         to user programs.
50309         * lib/argp.h: Likewise
50310
50311 2006-09-10  Bruno Haible  <bruno@clisp.org>
50312
50313         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
50314         m4/inttypes_h.m4, m4/uintmax_t.m4.
50315
50316 2006-09-10  Bruno Haible  <bruno@clisp.org>
50317
50318         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
50319         gl_AC_TYPE_UINTMAX_T.
50320
50321 2006-09-10  Bruno Haible  <bruno@clisp.org>
50322
50323         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
50324
50325 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50326
50327         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
50328         convention.  Text proposed by Bruno Haible.
50329         (struct argp_option): Document the use of N_() wrappers.
50330
50331         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
50332         '\v', and translate the two parts separately, instead of feeding
50333         the whole string to gettext.  This allows to exclude
50334         '\v' from the strings visible to the translator by writing doc
50335         strings as N_("..") "\v" N_("..").
50336
50337 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
50338
50339         * config/srclist.txt: Undo latest change; the bug was fixed.
50340
50341 2006-09-09  Bruno Haible  <bruno@clisp.org>
50342
50343         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
50344         assignments if building a library without libtool.
50345         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
50346         in func_emit_lib_Makefile_am.
50347         (func_import): When building a static library libfoo.a, arrange to
50348         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
50349         (func_create_testdir): Likewise.
50350         * modules/gc (configure.ac, Makefile.am): If building statically,
50351         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
50352         * modules/iconvme (configure.ac, Makefile.am): Likewise.
50353         * modules/striconv (configure.ac, Makefile.am): Likewise.
50354         Based on a suggestion by Ralf Wildenhues.
50355
50356 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50357
50358         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50359         Check for unistd.h too, since Autoconf doesn't assume POSIX.
50360         Also:
50361
50362         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50363         Add year_2050_test to catch glibc bug 2821
50364         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50365
50366         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50367         Prefer #ifdef to #if.
50368
50369         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
50370         Return from 'main' instead of calling 'exit'.
50371
50372 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50373
50374         * lib/mktime.c (guess_time_tm): Fix bug where mktime
50375         returned the maximum time_t value rather than (time_t) -1.
50376         Problem originally reported by William Bardwell
50377         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50378
50379         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50380         Moved to here ...
50381         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50382         ... from here.
50383
50384 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50385
50386         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
50387         2821 is fixed.
50388
50389 2006-09-08  Jim Meyering  <jim@meyering.net>
50390
50391         Don't make generated files read-only.  That would bother too many
50392         people.  However, do retain the ability to work when targets are
50393         read-only: remove the destination and temporary files before writing
50394         them (when generated via sed or echo), or by using the -f option for
50395         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
50396         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50397         * modules/byteswap, modules/configmake, modules/fcntl:
50398         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50399         * modules/localcharset, modules/netinet_in, modules/poll:
50400         * modules/stdbool, modules/stdint, modules/sys_select:
50401         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50402
50403 2006-09-08  Jim Meyering  <jim@meyering.net>
50404
50405         Avoid new build failure on FreeBSD 6.0.
50406         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
50407         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
50408         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
50409
50410 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50411
50412         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
50413
50414 2006-09-07  Jim Meyering  <jim@meyering.net>
50415
50416         Fix global typo in last change: use chmod u-w, not chmod u-x.
50417         Spotted by Paul Eggert and Bruce Korb.
50418         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50419         * modules/byteswap, modules/configmake, modules/fcntl:
50420         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50421         * modules/localcharset, modules/netinet_in, modules/poll:
50422         * modules/stdbool, modules/stdint, modules/sys_select:
50423         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50424
50425 2006-09-06  Jim Meyering  <jim@meyering.net>
50426
50427         Make generated files be read-only.
50428         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
50429         Ensure that each generated file is now read-only.
50430         * modules/argz: Likewise.
50431         * modules/arpa_inet: Likewise.
50432         * modules/byteswap: Likewise.
50433         * modules/configmake: Likewise.
50434         * modules/fcntl: Likewise.
50435         * modules/fnmatch: Likewise.
50436         * modules/getopt: Likewise.
50437         * modules/glob: Likewise.
50438         * modules/inttypes: Likewise.
50439         * modules/netinet_in: Likewise.
50440         * modules/poll: Likewise.
50441         * modules/stdbool: Likewise.
50442         * modules/stdint: Likewise.
50443         * modules/sys_select: Likewise.
50444         * modules/sys_socket: Likewise.
50445         * modules/sys_stat: Likewise.
50446         * modules/sysexits: Likewise.
50447         * modules/localcharset: Same as above, but continue using temporary
50448         file named "t-$@" (why different?) rather than the "$@-t" used
50449         everywhere else.
50450
50451         * modules/sysexits (Makefile.am): Replace literal occurrences
50452         of "sysexit.h" more readable, and more consistent, "$@".
50453
50454 2006-09-06  Bruno Haible  <bruno@clisp.org>
50455
50456         * modules/striconv: New file.
50457         * modules/xstriconv: New file.
50458         * MODULES.html.sh (Internationalization functions): Add striconv,
50459         xstriconv.
50460
50461 2006-09-06  Bruno Haible  <bruno@clisp.org>
50462
50463         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
50464         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
50465         not using libtool correctly.
50466
50467 2006-09-06  Bruno Haible  <bruno@clisp.org>
50468
50469         * lib/striconv.h: New file.
50470         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
50471         iconvstring.c.
50472         * lib/xstriconv.h: New file.
50473         * lib/xstriconv.c: New file.
50474
50475 2006-09-06  Bruno Haible  <bruno@clisp.org>
50476
50477         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50478         lib_..._LDFLAGS.
50479
50480 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50481
50482         * lib/argz_.h: Sync from Libtool.
50483
50484         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
50485                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50486
50487         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
50488
50489 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50490
50491         * modules/trim: New file.
50492
50493 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50494
50495         * lib/trim.h: New file.
50496         * lib/trim.c: New file.
50497
50498 2006-09-05  Bruno Haible  <bruno@clisp.org>
50499
50500         * MODULES.html.sh (String handling): Add trim.
50501
50502 2006-09-04  Karl Berry  <karl@gnu.org>
50503
50504         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
50505         until next release.
50506
50507 2006-09-03  Bruno Haible  <bruno@clisp.org>
50508
50509         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
50510         correctly.
50511
50512 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50513
50514         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
50515         not gl_GETLOADAVG.  Omit unneeded semicolons.
50516         Problems reported by Ralf Wildenhues in
50517         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50518         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
50519         at the end, which is the usual gnulib style.
50520
50521         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
50522         of doing all the work ourselves.
50523         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
50524         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
50525
50526 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50527
50528         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
50529         Problem reported by Ralf Wildenhues in
50530         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50531
50532         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
50533         HAVE_STRUCT_STATFS_F_FSTYPENAME.
50534
50535 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50536
50537         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
50538         yesterday's patch by changing test -n to test -z.
50539
50540 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50541
50542         * modules/getloadavg (Files): Add m4/getloadavg.m4.
50543         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
50544         the former is now obsolescent.
50545
50546         * modules/chdir-long (Depends-on): Add fcntl.
50547
50548 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50549
50550         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
50551         obsolescent, and programs should use gnulib instead.
50552         * m4/getloadavg.m4: New file, with contents taken from Autoconf
50553         but with prefixes changed.
50554
50555 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50556
50557         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
50558         or stdbool.h, because they might not exist while configuring.
50559
50560         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
50561         Don't include unistd.h or limits.h; not needed, since chdir-long.h
50562         does that for us.
50563         (O_DIRECTORY): Remove.
50564
50565 2006-08-31  Eric Blake  <ebb9@byu.net>
50566
50567         * gnulib-tool: Don't let emacs change spaces to TAB.
50568
50569 2006-08-31  Bruno Haible  <bruno@clisp.org>
50570
50571         * gnulib-tool: When calling func_import more than once, do it in a
50572         subshell.
50573         Reported by Eric Blake <ebb9@byu.net>.
50574
50575 2006-08-31  Bruno Haible  <bruno@clisp.org>
50576
50577         * gnulib-tool (nl): Remove variable.
50578         (sed_transform_lib_file): Use more robust test for config-h module.
50579         (func_import): Fix typo in 2006-08-25 patch.
50580
50581 2006-08-31  Bruno Haible  <bruno@clisp.org>
50582
50583         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
50584         specified, augment Makefile.am variables instead of assigning them.
50585
50586 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50587
50588         Work around a bug in both the Linux and SunOS 64-bit kernels:
50589         nanosleep mishandles sleeps for longer than 2**31 seconds.
50590         Problem reported by Frank v Waveren in
50591         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50592         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
50593         Check for nanosleep bug.
50594         (LIB_NANOSLEEP): Append clock_gettime library if needed.
50595
50596 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50597
50598         Work around a bug in both the Linux and SunOS 64-bit kernels:
50599         nanosleep mishandles sleeps for longer than 2**31 seconds.
50600         Problem reported by Frank v Waveren in
50601         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50602         * lib/nanosleep.c (BILLION): New constant.
50603         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
50604         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
50605         implementation.
50606
50607 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50608
50609         * modules/nanosleep (Depends-on): Add gettime.
50610
50611 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50612         and Simon Josefsson  <jas@extundo.com>
50613         and Oskar Liljeblad  <oskar@osk.mine.nu>
50614
50615         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
50616         * gnulib-tool (func_import): New license type 'unmodifiable license
50617         text'.
50618         * modules/fdl: Use it.  Longer description.
50619         * module/gpl, module/lgpl: New files.
50620
50621 2006-08-30  Jim Meyering  <jim@meyering.net>
50622
50623         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
50624         shadowing the parameter.
50625
50626 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50627
50628         Sync from Libtool:
50629
50630         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50631
50632         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
50633         sharing with gnulib.  Report by Eric Blake.
50634
50635 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50636
50637         * modules/isapipe: New file.
50638         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
50639
50640 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50641
50642         * modules/configmake (Makefile.am): Add a comment, and omit
50643         the CONFIGMAKE_ prefix from generated macro names.  Suggested
50644         by Bruno Haible.
50645
50646 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50647
50648         * m4/isapipe.m4: New file.
50649
50650 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50651
50652         * lib/isapipe.c, lib/isapipe.h: New files.
50653
50654 2006-08-29  Jim Meyering  <jim@meyering.net>
50655
50656         * modules/configmake (Makefile.am): Make configmake.h depend on
50657         Makefile.  Otherwise, a stale configmake.h could hang around.
50658
50659 2006-08-29  Eric Blake  <ebb9@byu.net>
50660
50661         * lib/error.c (error_at_line, print_errno_message): Match libc, after
50662         resolution of upstream bug 3044.
50663
50664 2006-08-29  Bruno Haible  <bruno@clisp.org>
50665
50666         * modules/localcharset (Depends-on): Add configmake.
50667         (Makefile.am): Remove setting of LIBDIR through DEFS.
50668
50669 2006-08-29  Bruno Haible  <bruno@clisp.org>
50670
50671         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
50672         defined.
50673
50674 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50675
50676         * modules/fcntl: New file.
50677         * modules/chdir-safer (Depends-on): Add fcntl.
50678         * modules/fts: Likewise.
50679         * modules/mkdir-p: Likewise.
50680
50681         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
50682         This undoes the most recent change, since we're now addressing the
50683         problem in a different way.
50684
50685         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
50686         into output, since the output might be called Makefile.am even
50687         if $makefile_name is something different.
50688         (func_import): Use $makefile_am rather than
50689         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
50690         empty.
50691
50692         * modules/inttypes (Files): Add m4/inttypes-h.m4.
50693
50694 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50695
50696         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
50697         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
50698         recent change to stdint.m4, since we're now addressing the problem in a
50699         different way.
50700
50701 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50702
50703         * m4/fcntl_h.m4: New file.
50704
50705 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50706
50707         * lib/fcntl_.h: New file.
50708         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
50709         the fcntl module.
50710         * lib/dirchownmod.c: Likewise.
50711         * lib/fts.c: Likewise.
50712
50713         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
50714         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
50715         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
50716         just before including <inttypes.h>, to avoid circular inclusion.
50717
50718 2006-08-28  Jim Meyering  <jim@meyering.net>
50719
50720         * doc/visibility.texi: Actually read and correct the grammar of the
50721         sentence affected by yesterday's change.
50722
50723 2006-08-28  Eric Blake  <ebb9@byu.net>
50724
50725         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
50726         needs wrapper.
50727
50728 2006-08-28  Eric Blake  <ebb9@byu.net>
50729
50730         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
50731
50732 2006-08-28  Eric Blake  <ebb9@byu.net>
50733
50734         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
50735
50736 2006-08-28  Bruno Haible  <bruno@clisp.org>
50737
50738         * modules/c-strstr: New file, from GNU gettext.
50739         * MODULES.html.sh (String handling): Add c-strstr.
50740
50741 2006-08-28  Bruno Haible  <bruno@clisp.org>
50742
50743         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
50744         macros.
50745         Reported by Eric Blake.
50746
50747 2006-08-28  Bruno Haible  <bruno@clisp.org>
50748
50749         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
50750         (VASNPRINTF): Return a string of length > INT_MAX without failing.
50751         * lib/vasprintf.c: Include errno.h, limits.h.
50752         (EOVERFLOW): New fallback definition.
50753         (vasprintf): Test here whether the string length is > INT_MAX.
50754         * lib/vsnprintf.c: Include errno.h, limits.h.
50755         (EOVERFLOW): New fallback definition.
50756         (vsnprintf): Fix bug when generated string was too long for the buffer.
50757         Test here whether the string length is > INT_MAX.
50758
50759 2006-08-28  Bruno Haible  <bruno@clisp.org>
50760
50761         * lib/inttypes_.h (SCNX*): Remove definitions.
50762         Reported by Eric Blake.
50763
50764 2006-08-28  Bruno Haible  <bruno@clisp.org>
50765
50766         * lib/c-strstr.h: New file, from GNU gettext.
50767         * lib/c-strstr.c: New file, from GNU gettext.
50768
50769 2006-08-28  Bruno Haible  <bruno@clisp.org>
50770
50771         * gnulib-tool: Reorder some statements.
50772
50773 2006-08-28  Bruno Haible  <bruno@clisp.org>
50774
50775         * gnulib-tool: New option --makefile-name.
50776         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
50777         $makefile_name.
50778         (func_import): Write $makefile_name to the cache file, and read it from
50779         there unless explicitly specified. Use $makefile_name as file name
50780         instead of Makefile.am. Adjust the recommendations accordingly.
50781
50782 2006-08-28  Bruno Haible  <bruno@clisp.org>
50783
50784         * gnulib-tool (func_verify_module): Check against misapplying patch.
50785
50786 2006-08-28  Bruno Haible  <bruno@clisp.org>
50787
50788         * gnulib-tool (func_relativize, func_relconcat): New functions.
50789         Give an error if --local-dir is given with --update.
50790         Remove trailing slashes from $local_gnulib_dir.
50791         (func_import): Store the relativized $local_gnulib_dir in
50792         gnulib-cache.m4, and read it from there if not specified explicitly.
50793
50794 2006-08-28  Bruno Haible  <bruno@clisp.org>
50795
50796         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
50797         is the current directory. Respect also $local_gnulib_dir.
50798
50799 2006-08-28  Bruno Haible  <bruno@clisp.org>
50800             Simon Josefsson  <jas@extundo.com>
50801
50802         BeOS portability.
50803         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
50804
50805 2006-08-27  Jim Meyering  <jim@meyering.net>
50806
50807         * doc/visibility.texi: Remove duplicate word: "pointer".
50808
50809 2006-08-26  Bruno Haible  <bruno@clisp.org>
50810
50811         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
50812         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
50813         (Makefile.am): Create inttypes.h from inttypes_.h.
50814         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
50815
50816         * modules/imaxabs: New file.
50817
50818         * modules/imaxdiv: New file.
50819
50820 2006-08-26  Bruno Haible  <bruno@clisp.org>
50821
50822         * m4/inttypes.m4: New file.
50823         * m4/_inttypes_h.m4: Remove file.
50824         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
50825         PRI_MACROS_BROKEN.
50826         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
50827
50828         * m4/imaxabs.m4: New file.
50829
50830         * m4/imaxdiv.m4: New file.
50831
50832 2006-08-26  Bruno Haible  <bruno@clisp.org>
50833
50834         * lib/inttypes_.h: New file.
50835         * lib/inttypes.h: Remove file.
50836         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
50837
50838         * lib/imaxabs.c: New file.
50839
50840         * lib/imaxdiv.c: New file.
50841
50842 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50843
50844         New config-h module, so that "make" output needn't be cluttered
50845         by -DHAVE_CONFIG_H.
50846         * MODULES.html.sh (Support for building libraries and executables):
50847         Add config-h.
50848         * modules/config-h: New file.
50849         * gnulib-tool (nl, sed_transform_lib_file): New vars.
50850         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
50851         the config-h module is used.
50852
50853         New configmake module, so that "make" output needn't be cluttered
50854         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
50855         * MODULES.html.sh (Support for building libraries and executables):
50856         Add configmake.
50857         * modules/configmake: New file.
50858
50859 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50860
50861         * m4/config-h.m4: New file.
50862
50863 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50864
50865         * config/srclist.txt: Add elisp-comp.
50866
50867 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50868
50869         * MODULES.html.sh (Support for building libraries and executables):
50870         Add elisp-comp.
50871         * build-aux/elisp-comp: New file.
50872         * modules/elisp-comp: New file.
50873
50874 2006-08-24  Bruno Haible  <bruno@clisp.org>
50875
50876         * gnulib-tool (func_create_testdir): Use non-default values of
50877         sourcebase and m4base.
50878
50879 2006-08-24  Bruno Haible  <bruno@clisp.org>
50880
50881         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
50882         HTML structure.
50883
50884 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50885
50886         * modules/openat (Depends-on): Add lchown.
50887
50888 2006-08-23  Bruno Haible  <bruno@clisp.org>
50889
50890         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
50891         of gl_LOCK_EARLY instead of gl_LOCK.
50892
50893 2006-08-23  Bruno Haible  <bruno@clisp.org>
50894
50895         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
50896         on OSF/1 to no.
50897         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
50898
50899 2006-08-23  Bruno Haible  <bruno@clisp.org>
50900
50901         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
50902         as unusable.
50903
50904         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
50905         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
50906         (gl_LOCK): New macro.
50907
50908 2006-08-22  Simon Josefsson  <jas@extundo.com>
50909
50910         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
50911         to md5 module.
50912
50913 2006-08-22  Simon Josefsson  <jas@extundo.com>
50914
50915         * MODULES.html.sh: Add "Support for maintaining and release
50916         projects".
50917
50918         * build-aux/gnupload: New file, from coreutils.
50919
50920 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50921
50922         Avoid the need for AC_LIBSOURCES in m4 macros.
50923         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
50924         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
50925         * modules/check-version (EXTRA_DIST): Add check-version.h.
50926         * modules/crc (EXTRA_DIST): Add crc.h.
50927         * modules/des (EXTRA_DIST): Add des.h.
50928         * modules/gc (EXTRA_DIST): Add gc.h.
50929         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
50930         * modules/getline (EXTRA_DIST): Add getline.h.
50931         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
50932         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
50933         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
50934         * modules/md2 (EXTRA_DIST): Add md2.h.
50935         * modules/md4 (EXTRA_DIST): Add md4.h.
50936         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
50937         * modules/read-file (EXTRA_DIST): Add read-file.h.
50938         * modules/readline (EXTRA_DIST): Add readline.h.
50939         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
50940         rijndael-api-fst.h.
50941
50942 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50943
50944         * m4/rijndael.m4 (gl_ARCFOUR):
50945         * m4/arctwo.m4 (gl_ARCTWO):
50946         * m4/check-version.m4 (gl_CHECK_VERSION):
50947         * m4/crc.m4 (gl_CRC):
50948         * m4/des.m4 (gl_DES):
50949         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
50950         * m4/gc.m4 (gl_GC):
50951         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
50952         * m4/getline.m4 (gl_FUNC_GETLINE):
50953         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
50954         * m4/hmac-md5.m4 (gl_HMAC_MD5):
50955         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
50956         * m4/md2.m4 (gl_MD2):
50957         * m4/md4.m4 (gl_MD4):
50958         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
50959         * m4/read-file.m4 (gl_FUNC_READ_FILE):
50960         * m4/readline.m4 (gl_FUNC_READLINE):
50961         * m4/rijndael.m4 (gl_RIJNDAEL):
50962         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50963         to get the necessary .h files and whatnot.
50964
50965 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50966
50967         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
50968         gnulib rather than the other way around.
50969         * config/srclistvars.sh (COREUTILS): Remove.
50970
50971 2006-08-22  Jim Meyering  <jim@meyering.net>
50972
50973         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
50974
50975         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
50976
50977 2006-08-22  Eric Blake  <ebb9@byu.net>
50978
50979         * modules/regexprops-generic: New file.
50980         * MODULES.html.sh (Support for building documentation): List it.
50981
50982 2006-08-22  Eric Blake  <ebb9@byu.net>
50983
50984         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
50985         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50986         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
50987         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
50988
50989 2006-08-22  Bruno Haible  <bruno@clisp.org>
50990
50991         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
50992         and lib_LTLIBRARIES like the other lib_* variables.
50993
50994 2006-08-22  Bruno Haible  <bruno@clisp.org>
50995
50996         * build-aux/x-to-1.in: New file, from GNU gettext.
50997
50998 2006-08-22  Bruno Haible  <bruno@clisp.org>
50999
51000         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
51001         <utmpx.h> exists.
51002
51003 2006-08-22  Bruno Haible  <bruno@clisp.org>
51004
51005         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
51006         <utmpx.h> exists.
51007
51008 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51009
51010         BeOS portability.
51011         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
51012         exist.
51013         Problem reported by Bruno Haible.
51014
51015 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51016
51017         Avoid the need for AC_LIBSOURCES in m4 macros.
51018         * modules/acl (EXTRA_DIST): Add acl.h.
51019         * modules/argmatch (Files): Add m4/argmatch.m4.
51020         (configure.ac): Add gl_ARGMATCH.
51021         (EXTRA_DIST): Renamed from lib_SOURCES, for
51022         consistency with the other modules.  Remove argmatch.c.
51023         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
51024         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
51025         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
51026         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
51027         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
51028         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
51029         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
51030         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
51031         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
51032         * modules/closeout (EXTRA_DIST): Add closeout.h.
51033         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
51034         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
51035         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
51036         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
51037         dirname.h; remove basename.c and stripslash.c.
51038         * modules/exclude (EXTRA_DIST): Add exclude.h.
51039         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
51040         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
51041         * modules/file-type (EXTRA_DIST): Add file-type.h.
51042         * modules/filemode (EXTRA_DIST): Add filemode.h.
51043         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
51044         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
51045         * modules/fpending (EXTRA_DIST): Add __fpending.h.
51046         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
51047         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
51048         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
51049         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
51050         * modules/getdate (EXTRA_DIST): Add getdate.c.
51051         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
51052         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
51053         * modules/getpass (EXTRA_DIST): Add getpass.h.
51054         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
51055         * modules/group-member (EXTRA_DIST): Add group-member.h.
51056         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
51057         * modules/hash (EXTRA_DIST): Add hash.h.
51058         * modules/human (EXTRA_DIST): Add human.h.
51059         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
51060         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
51061         * modules/lchown (EXTRA_DIST): Add lchown.h.
51062         * modules/long-options (EXTRA_DIST): Add long-options.h.
51063         * modules/lstat (EXTRA_DIST): Add lstat.h.
51064         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
51065         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
51066         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
51067         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
51068         * modules/memxor (EXTRA_DIST): Add memxor.h.
51069         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
51070         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
51071         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
51072         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
51073         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
51074         * modules/physmem (EXTRA_DIST): Add physmem.h.
51075         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
51076         * modules/posixver (EXTRA_DIST): Add posixver.h.
51077         * modules/quote (EXTRA_DIST): Add quote.h.
51078         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
51079         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
51080         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
51081         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
51082         regex_internal.h regexec.c.
51083         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
51084         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
51085         * modules/same (EXTRA_DIST): Add same.h.
51086         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
51087         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
51088         * modules/savedir (EXTRA_DIST): Add savedir.h.
51089         * modules/sha1 (EXTRA_DIST): Add sha1.h.
51090         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
51091         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
51092         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
51093         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
51094         * modules/strdup (EXTRA_DIST): Add strdup.h.
51095         * modules/strftime (EXTRA_DIST): Add strftime.h.
51096         * modules/strndup (EXTRA_DIST): Add strndup.h.
51097         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
51098         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
51099         * modules/time_r (EXTRA_DIST): Add time_r.h.
51100         * modules/timespec (EXTRA_DIST): Add timespec.h.
51101         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
51102         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
51103         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
51104         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
51105         * modules/userspec (EXTRA_DIST): Add userspec.h.
51106         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
51107         * modules/utimens (EXTRA_DIST): Add utimens.h.
51108         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
51109         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
51110         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
51111         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
51112         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
51113         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
51114         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
51115         * modules/yesno (EXTRA_DIST): Add yesno.h.
51116
51117 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51118
51119         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
51120
51121         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
51122         * m4/dev-ino.m4, same-inode.m4: Remove.
51123
51124         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
51125         * m4/acl.m4 (AC_FUNC_ACL):
51126         * m4/backupfile.m4 (gl_BACKUPFILE):
51127         * m4/c-strtod.m4 (gl_C99_STRTOLD):
51128         * m4/canon-host.m4 (gl_CANON_HOST):
51129         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
51130         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
51131         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
51132         * m4/cloexec.m4 (gl_CLOEXEC):
51133         * m4/close-stream.m4 (gl_CLOSE_STREAM):
51134         * m4/closeout.m4 (gl_CLOSEOUT):
51135         * m4/dirfd.m4 (gl_FUNC_DIRFD):
51136         * m4/dirname.m4 (gl_DIRNAME):
51137         * m4/exclude.m4 (gl_EXCLUDE):
51138         * m4/exitfail.m4 (gl_EXITFAIL):
51139         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
51140         * m4/file-type.m4 (gl_FILE_TYPE):
51141         * m4/filemode.m4 (gl_FILEMODE):
51142         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
51143         * m4/fpending.m4 (gl_FUNC_FPENDING):
51144         * m4/fprintftime.m4 (gl_FPRINTFTIME):
51145         * m4/fts.m4 (gl_FUNC_FTS):
51146         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
51147         * m4/getdate.m4 (gl_GETDATE):
51148         * m4/gethrxtime.m4 (gl_GETHRXTIME):
51149         * m4/getpagesize.m4 (gl_GETPAGESIZE):
51150         * m4/getpass.m4 (gl_FUNC_GETPASS):
51151         * m4/gettime.m4 (gl_GETTIME):
51152         * m4/getugroups.m4 (gl_GETUGROUPS):
51153         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
51154         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
51155         * m4/hard-locale.m4 (gl_HARD_LOCALE):
51156         * m4/hash.m4 (gl_HASH):
51157         * m4/idcache.m4 (gl_IDCACHE):
51158         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
51159         * m4/lchown.m4 (gl_FUNC_LCHOWN):
51160         * m4/long-options.m4 (gl_LONG_OPTIONS):
51161         * m4/lstat.m4 (gl_FUNC_LSTAT):
51162         * m4/md5.m4 (gl_MD5):
51163         * m4/memcasecmp.m4 (gl_MEMCASECMP):
51164         * m4/memcoll.m4 (gl_MEMCOLL):
51165         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
51166         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
51167         * m4/memxor.m4 (gl_MEMXOR):
51168         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
51169         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
51170         * m4/modechange.m4 (gl_MODECHANGE):
51171         * m4/mountlist.m4 (gl_MOUNTLIST):
51172         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51173         * m4/openat.m4 (gl_FUNC_OPENAT):
51174         * m4/pathmax.m4 (gl_PATHMAX):
51175         * m4/physmem.m4 (gl_PHYSMEM):
51176         * m4/posixtm.m4 (gl_POSIXTM):
51177         * m4/posixver.m4 (gl_POSIXVER):
51178         * m4/quote.m4 (gl_QUOTE):
51179         * m4/quotearg.m4 (gl_QUOTEARG):
51180         * m4/readtokens.m4 (gl_READTOKENS):
51181         * m4/readutmp.m4 (gl_READUTMP):
51182         * m4/regex.m4 (gl_REGEX):
51183         * m4/safe-read.m4 (gl_SAFE_READ):
51184         * m4/safe-write.m4 (gl_SAFE_WRITE):
51185         * m4/same.m4 (gl_SAME):
51186         * m4/save-cwd.m4 (gl_SAVE_CWD):
51187         * m4/savedir.m4 (gl_SAVEDIR):
51188         * m4/settime.m4 (gl_SETTIME):
51189         * m4/sha1.m4 (gl_SHA1):
51190         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
51191         * m4/stat-macros.m4 (gl_STAT_MACROS):
51192         * m4/stat-time.m4 (gl_STAT_TIME):
51193         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
51194         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
51195         * m4/strdup.m4 (gl_FUNC_STRDUP):
51196         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
51197         * m4/strndup.m4 (gl_FUNC_STRNDUP):
51198         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
51199         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
51200         * m4/time_r.m4 (gl_TIME_R):
51201         * m4/timespec.m4 (gl_TIMESPEC):
51202         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
51203         * m4/unlinkdir.m4 (gl_UNLINKDIR):
51204         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
51205         * m4/userspec.m4 (gl_USERSPEC):
51206         * m4/utimecmp.m4 (gl_UTIMECMP):
51207         * m4/utimens.m4 (gl_UTIMENS):
51208         * m4/xalloc.m4 (gl_XALLOC):
51209         * m4/xgetcwd.m4 (gl_XGETCWD):
51210         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
51211         * m4/xreadlink.m4 (gl_XREADLINK):
51212         * m4/xstrtod.m4 (gl_XSTRTOD):
51213         * m4/yesno.m4 (gl_YESNO):
51214         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
51215         to get the necessary .h files and whatnot.
51216
51217 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
51218             Bruno Haible  <bruno@clisp.org>
51219
51220         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
51221         /bin/sh understanding of '!' conditional negation.
51222
51223 2006-08-21  Jim Meyering  <jim@meyering.net>
51224
51225         * modules/openat (Depends-on): Really alphabetize.
51226
51227         * modules/acl (Depends-on): Add error and quote.
51228
51229         * check-module (find_included_lib_files): Add at-func.c to the
51230         ok-to-include-more-than-once white list.
51231
51232         * modules/openat (Depends-on): Add lstat.  Alphabetize.
51233
51234 2006-08-21  Bruno Haible  <bruno@clisp.org>
51235
51236         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51237         Emit a pkgdata_DATA variable only if some snippets add contents to it.
51238         Reported by Martin Lambers <marlam@marlam.de>.
51239
51240 2006-08-21  Bruno Haible  <bruno@clisp.org>
51241
51242         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
51243         specify an installation location, don't emit a noinst_LIBRARIES or
51244         noinst_LTLIBRARIES assignment.
51245
51246 2006-08-21  Bruno Haible  <bruno@clisp.org>
51247
51248         BeOS portability.
51249         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
51250         BeOS has mbrtowc() but no <wctype.h>.
51251
51252 2006-08-21  Bruno Haible  <bruno@clisp.org>
51253
51254         BeOS portability.
51255         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
51256         exist.
51257
51258 2006-08-21  Bruno Haible  <bruno@clisp.org>
51259
51260         BeOS portability.
51261         * lib/mbchar.h: Include <wctype.h> only if it exists.
51262
51263 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51264
51265         Remove files that are no longer needed by their respective modules.
51266         * m4/obstack.m4: Remove.
51267         * m4/strerror_r.m4: Remove.
51268         * m4/uint32_t.m4: Remove.
51269         * m4/uintptr_t.m4: Remove.
51270         * m4/ullong_max.m4: Remove.
51271         * m4/xstrtoimax.m4: Remove.
51272         * m4/xstrtoumax.m4: Remove.
51273
51274         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
51275         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
51276         dependencies now capture this.
51277
51278         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
51279         Do not use AC_LIBSOURCES, since gnulib modules now do this.
51280         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
51281         * m4/human.m4 (gl_HUMAN): Likewise.
51282         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
51283         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
51284
51285         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
51286
51287         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
51288         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
51289         stdint.
51290         * m4/human.m4 (gl_HUMAN): Likewise.
51291         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
51292         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
51293         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
51294         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
51295         * m4/xstrtol (gl_XSTRTOL): Likewise.
51296
51297         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
51298         AC_TYPE_LONG_LONG_INT.
51299         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
51300         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
51301         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
51302         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
51303
51304         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
51305         on stdbool.
51306
51307         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
51308         (gl_PREREQ_XSTRTOUL): Remove.
51309
51310         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
51311
51312         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
51313         mode.
51314
51315 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51316
51317         Add and change modules to make it easier for coreutils to use
51318         gnulib-tool.
51319         * modules/backupfile (Files): Remove m4/d-ino.m4.
51320         (Depends-on): Add d-ino.
51321         * modules/cycle-check (Depends-on): Add stdint.
51322         (lib_SOURCES): Add cycle-check.h.
51323         * modules/d-ino: New module.
51324         * modules/d-type: New module.
51325         * modules/error (Files): Remove m4/strerror_r.m4.
51326         * modules/filemode (Files): Add m4/st_dm_mode.m4.
51327         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
51328         m4/inttypes_h.m4, m4/uintmax_t.m4.
51329         (Depends-on): Add stdint.
51330         (lib_SOURCES): Add fsusage.h.
51331         * modules/getcwd (Files): Remove d-ino.m4.
51332         (Depends-on): Add d-ino.
51333         * modules/getndelim2 (Depends-on): Add stdint.
51334         * modules/glob (Files): Remove m4/d-type.m4.
51335         (Depends-on): Add d-type.
51336         * modules/host-os: New module.
51337         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
51338         m4/inttypes_h.m4, m4/uintmax_t.m4.
51339         * Depends-on: Add stdint.
51340         (lib_SOURCES): Add human.h.
51341         * modules/inttostr (Files): Remove m4/intmax_t.m4,
51342         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
51343         m4/uintmax_t.m4, m4/ulonglong.m4.
51344         (Depends-on): Add stdint.
51345         (EXTRA_DIST): Add inttostr.h.
51346         * modules/lchmod: New module.
51347         * modules/link-follow: New module.
51348         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
51349         (Depends-on): Add lchmod.
51350         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
51351         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
51352         (Depends-on): Add stdint.
51353         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
51354         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
51355         (Depends-on): Add stdint.
51356         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
51357         * modules/perl: New module.
51358         * modules/regex (Depends-on): Add stdint.
51359         * modules/rmdir-errno: New module.
51360         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51361         m4/intmax_t.m4.
51362         (Depends-on): Add stdint.
51363         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51364         m4/uintmax_t.m4.
51365         (Depends-on): Add stdint.
51366         * modules/unlink-busy: New module.
51367         * modules/utimecmp (Depends-on): Add stdint.
51368         * modules/uptime: New module.
51369         * modules/winsz-ioctl: New module.
51370         * modules/winsz-termios: New module.
51371         * modules/xnanosleep (Depends-on): Add nanosleep.
51372         * modules/ullong_max: Remove.
51373         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
51374         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
51375         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
51376         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
51377         (Depends-on): Add inttypes.
51378         (lib_SOURCES): Add xstrtol.h.
51379         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
51380         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
51381         * MODULES.html.sh: Move 'assert' into the assert section.
51382         Move 'dummy' into the linking section.
51383         Remove ullong_max.
51384         Add section for compatibility checks for POSIX:2001 functions,
51385         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
51386         winsz-ioctl, and winsz-termios into it.
51387         Add lchmod.
51388         Add top-level Misc section and put host-os, perl, and uptime
51389         into it.
51390
51391 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51392
51393         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
51394         now assume the stdint module.  Do not include inttypes.h.
51395         * lib/fsusage.h: Likewise.
51396         * lib/getndelim2.c: Likewise.
51397         * lib/human.h: Likewise.
51398         * lib/inttostr.h: Likewise.
51399         * lib/obstack.c: Likewise.
51400         * lib/regex_internal.h: Likewise.
51401         * lib/tempname.c: Likewise.
51402         * lib/utimecmp.c: Likewise.
51403         * lib/xstrtol.h: Likewise.
51404
51405         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
51406
51407         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
51408         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
51409         * lib/xtime.h: Likewise.
51410
51411 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51412
51413         * modules/openat (Files): Add lib/fchmodat.c.
51414         Fixes problem reported by Jay Youngman.
51415
51416 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51417
51418         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
51419         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
51420
51421 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
51422             Bruno Haible  <bruno@clisp.org>
51423
51424         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
51425         and is a script that invokes bison. Tighten the code. Add comments.
51426
51427 2006-08-18  Jim Meyering  <jim@meyering.net>
51428
51429         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
51430         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
51431         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
51432         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
51433
51434 2006-08-18  Bruno Haible  <bruno@clisp.org>
51435
51436         * modules/bison-i18n: New file.
51437         * MODULES.html.sh (Internationalization functions): Add it.
51438
51439 2006-08-18  Bruno Haible  <bruno@clisp.org>
51440
51441         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
51442         sys/statvfs.h. When getmntinfo was found, check its declaration and
51443         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
51444
51445 2006-08-18  Bruno Haible  <bruno@clisp.org>
51446
51447         * m4/bison-i18n.m4: New file, from bison.
51448
51449 2006-08-18  Bruno Haible  <bruno@clisp.org>
51450
51451         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
51452         (ME_DUMMY): Treat "kernfs" as a dummy.
51453         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
51454
51455 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51456
51457         Update from coreutils.
51458
51459         2006-08-15  Jim Meyering  <jim@meyering.net>
51460
51461         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
51462
51463         2006-01-17  Jim Meyering  <jim@meyering.net>
51464
51465         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
51466
51467         2006-01-11  Jim Meyering  <jim@meyering.net>
51468
51469         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
51470         Check for the lchmod function.
51471
51472 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51473
51474         Update from coreutils.
51475
51476         * lib/__fpending.h: Add copyright notice.
51477         * lib/fprintftime.h: Likewise.
51478         * lib/savedir.c: Use (C) in copyright notice.
51479         * lib/savedir.h: Likewise.
51480
51481         2006-08-15  Jim Meyering  <jim@meyering.net>
51482
51483         * lib/at-func.c: New file, with the logic of all emulated at-functions.
51484         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
51485         in support of the EXPECTED_ERRNO macro.
51486         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
51487         definitions.  Instead, define the appropriate symbols and include
51488         "at-func.c".
51489         * lib/mkdirat.c (mkdirat): Likewise.
51490         * lib/fchmodat.c (fchmodat): Likewise.
51491         (ENOSYS): Remove definition.
51492         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
51493         it.  Don't include "unistd--.h" -- it wasn't ever used.
51494
51495         2006-01-17  Jim Meyering  <jim@meyering.net>
51496
51497         Rewrite fts.c not to change the current working directory,
51498         by using openat, fstatat, fdopendir, etc..
51499
51500         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
51501         (HAVE_OPENAT_SUPPORT): Define.
51502         [_LIBC] (fchdir): Don't undef or define; no longer used.
51503         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
51504         Now, this `function' always succeeds, and consumes its file descriptor
51505         parameter -- so callers must not close such FDs.  Update callers.
51506         (diropen_fd, opendirat, cwd_advance_fd): New functions.
51507         (diropen): Add parameter, SP.  Adjust all callers.
51508         Implement using diropen_fd, rather than open.
51509         (fts_open): Initialize new member, fts_cwd_fd.
51510         Remove fts_rft-setting code.
51511         (fts_close): Close fts_cwd_fd, if necessary.
51512         (__opendir2): Define in terms of opendir or opendirat,
51513         depending on whether the FST_NOCHDIR flag is set.
51514         (fts_build): Since fts_safe_changedir consumes its FD, and since
51515         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
51516         and close the dup'd file descriptor upon failure.
51517         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
51518         (fts_safe_changedir): Tweak semantics to reflect that this function
51519         now calls cwd_advance_fd and hence consumes its FD argument.
51520         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
51521         [struct FTS] (fts_rft): Remove now-unused member.
51522         [struct FTS] (fts_cycle.state): Improve comment.
51523
51524         * lib/openat.c (openat_needs_fchdir): New function.
51525         * lib/openat.h (openat_needs_fchdir): Declare it.
51526
51527 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51528
51529         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
51530         Problem and fix reported by Pádraig Brady in
51531         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
51532
51533 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51534
51535         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
51536
51537 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51538
51539         * lib/memcoll.c (memcoll): Optimize for the common case where the
51540         arguments are bytewise equal.
51541
51542 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51543
51544         * doc/regexprops-generic.texi: Add a copyright notice.
51545
51546 2006-08-15  Bruno Haible  <bruno@clisp.org>
51547
51548         * modules/tmpdir (License): Change to LGPL.
51549
51550 2006-08-15  Bruno Haible  <bruno@clisp.org>
51551
51552         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
51553         module.
51554
51555 2006-08-14  Simon Josefsson  <jas@extundo.com>
51556
51557         * config/srclist.txt: Add gnupload.
51558
51559 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51560
51561         Change copyright notice from LGPL 2 to GPL 2, since that's the
51562         standard form used in the gnulib repository.
51563         * tests/test-lock.c: Likewise.
51564         * tests/test-stdint.c: Likewise.
51565         * tests/test-tls.c: Likewise.
51566
51567         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
51568         prelude-manager.  User shorter URLs for GNU projects, without '?'.
51569         Add copyright notice.
51570
51571         * check-module: Add copyright notice.  Output a copyright
51572         notice if "--version" is specified.
51573         * modules/COPYING: New file.
51574         * tests/test-getaddrinfo.c: Add copyright notice.
51575         * tests/test-verify.c: Likewise.
51576
51577 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51578
51579         Change copyright notice from LGPL 2 to GPL 2, since that's the
51580         standard form used in the gnulib repository.
51581         * lib/lock.c: LGPL -> GPL.
51582         * lib/lock.h: Likewise.
51583         * lib/strnlen1.c: Likewise.
51584         * lib/strnlen1.h: Likewise.
51585         * lib/tls.c: Likewise.
51586         * lib/tls.h: Likewise.
51587         * lib/tmpdir.c: Likewise.
51588
51589         * lib/TODO: Remove; this belongs only in coreutils.
51590
51591 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51592
51593         Add copyright notices to long-enough files that lack them, since
51594         otherwise the files aren't clearly free.  Use the same notice that
51595         getdate.texi already uses.
51596         * doc/alloca-opt.texi: Add copyright notice.
51597         * doc/alloca.texi: Likewise.
51598         * doc/ctime.texi: Likewise.
51599         * doc/functions.texi: Likewise.
51600         * doc/gcd.texi: Likewise.
51601         * doc/gnulib-tool.texi: Likewise.
51602         * doc/inet_ntoa.texi: Likewise.
51603         * doc/visibility.texi: Likewise.
51604
51605         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
51606         * doc/quote.texi: Add copyright notice.
51607
51608         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
51609         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
51610         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
51611         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
51612         is now obsolete, and give a pointer to the Sun list.
51613         Add copyright notice.
51614
51615 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51616
51617         * config/srclistvars.sh: Add copyright notice.
51618
51619 2006-08-14  Eric Blake  <ebb9@byu.net>
51620
51621         Import the following change from libc:
51622
51623         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
51624
51625         Upstream bug 2997.
51626         * lib/misc/error.c: Add space between program name and message if file
51627         name is missing.
51628
51629 2006-08-12  Karl Berry  <karl@gnu.org>
51630
51631         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
51632         remove, these originate in gnulib now.
51633
51634 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51635
51636         * doc/Makefile (standards.info standards.html standards.dvi):
51637         Also depend on make-stds.texi.
51638
51639 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51640
51641         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
51642         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
51643
51644         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
51645         in wchar_t.  Problem reported by Eric Blake.
51646
51647         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
51648         LEN is smaller than SIZE.  Suggested by Bruno Haible.
51649         Also, help the compiler to keep LEN in a register.
51650
51651 2006-08-11  Eric Blake  <ebb9@byu.net>
51652
51653         * users.txt: Sort.  Add tar.
51654
51655 2006-08-11  Bruno Haible  <bruno@clisp.org>
51656
51657         * users.txt: New file.
51658
51659 2006-08-11  Bruno Haible  <bruno@clisp.org>
51660
51661         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
51662         before <wchar.h>. Needed for OSF/1 and BSD/OS.
51663
51664 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51665
51666         * modules/snprintf (Depends-on): Remove minmax.
51667         (Maintainer): Add self and Bruno.
51668
51669 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51670
51671         * lib/.cppi-disable: Add snprintf.h, socket_.h.
51672         * lib/snprintf.c: Include <errno.h> and <limits.h>.
51673         (EOVERFLOW): Define if the system does not.
51674         Do not include "minmax.h"; it wasn't used.
51675         (snprintf): Don't assume size_t promotes to an unsigned type.
51676         Fix bug when generated string was too long for the buffer: the
51677         buffer's contents are supposed to be the initial prefix of the
51678         output.  Don't assume vasnprintf returns EOVERFLOW if the size
51679         exceeds INT_MAX; do the check ourselves.
51680
51681         Import the following changes from libc:
51682
51683         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
51684
51685         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
51686         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
51687         set wc to the byte which couldn't be converted.
51688         (re_string_reconstruct): Don't clear valid_raw_len before calling
51689         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
51690         tip_context using re_string_context_at.
51691
51692         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
51693
51694         * lib/posix/regex.h: g++ still cannot handled [restrict].
51695
51696         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
51697
51698         * lib/posix/regex.h: Remove special handling for VMS.
51699
51700 2006-08-10  Jim Meyering  <jim@meyering.net>
51701
51702         * modules/same-inode: New module.
51703         * modules/dev-ino: New module.
51704         * modules/cycle-check: Depend on these modules, rather than simply
51705         including their .h files.
51706         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
51707         required via m4/cycle-check.m4.
51708         * modules/same: Depend on new same-inode module, rather than
51709         including same-inode.h.
51710         * modules/chdir-safer: New file.
51711
51712         * modules/chown (Depends-on): Add stat-macros.
51713
51714 2006-08-10  Jim Meyering  <jim@meyering.net>
51715
51716         * m4/cycle-check.m4: New file.
51717         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
51718         * m4/dev-ino.m4, m4/same-inode.m4: New files.
51719
51720 2006-08-10  Eric Blake  <ebb9@byu.net>
51721
51722         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
51723         in from original proposal.
51724
51725 2006-08-10  Eric Blake  <ebb9@byu.net>
51726         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51727
51728         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
51729         namespace.
51730
51731 2006-08-10  Bruno Haible  <bruno@clisp.org>
51732
51733         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
51734         as well.
51735
51736 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51737
51738         Sync from coreutils.
51739
51740         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
51741
51742         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
51743         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
51744
51745 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51746
51747         * modules/restrict: Remove; no longer needed now that we assume
51748         Autoconf 2.59 or later.
51749         * MODULES.html.sh: Remove 'restrict'.
51750         * modules/argp (Depends-on): Remove 'restrict'.
51751         * modules/base64 (Depends-on): Likewise.
51752         * modules/gc (Depends-on): Likewise.
51753         * modules/getaddrinfo (Depends-on): Likewise.
51754         * modules/glob (Depends-on): Likewise.
51755         * modules/inet_ntop (Depends-on): Likewise.
51756         * modules/inet_pton (Depends-on): Likewise.
51757         * modules/memxor (Depends-on): Likewise.
51758         * modules/regex (Depends-on): Likewise.
51759         * modules/strtok_r (Depends-on): Likewise.
51760         * modules/time_r (Depends-on): Likewise.
51761
51762 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51763
51764         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
51765         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
51766         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51767         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
51768         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
51769         * m4/memxor.m4 (gl_MEMXOR): Likewise.
51770         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
51771         gl_C_RESTRICT replaced by AC_C_RESTRICT.
51772
51773         Merge from coreutils.
51774         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
51775         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
51776         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51777         * m4/time_r.m4 (gl_TIME_R): Likewise.
51778
51779 2006-08-09  Karl Berry  <karl@gnu.org>
51780
51781         * config/srclist.txt: no more gettext-tools, per Bruno.
51782
51783 2006-08-08  Eric Blake  <ebb9@byu.net>
51784
51785         * modules/verror: New module.
51786         * MODULES.html.sh: Document it.
51787
51788 2006-08-08  Eric Blake  <ebb9@byu.net>
51789
51790         * lib/verror.h, lib/verror.c: New files.
51791
51792 2006-08-08  Eric Blake  <ebb9@byu.net>
51793
51794         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
51795         verror_at_line output complies with GNU Coding Standards even when
51796         file is NULL.
51797
51798 2006-08-07  Bruno Haible  <bruno@clisp.org>
51799
51800         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
51801         versions of AIX.
51802         Reported by Ralf Wildenhues.
51803
51804 2006-08-07  Bruno Haible  <bruno@clisp.org>
51805
51806         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
51807         in an AC_DEFUN. Needed so that the autoconf snippets can use
51808         AC_REQUIRE.
51809
51810 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51811
51812         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51813         Initialize pkgdata_DATA.
51814         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
51815         overriding it.
51816
51817 2006-08-06  Eric Blake  <ebb9@byu.net>
51818
51819         * lib/error.h: Fold in some upstream changes from glibc.
51820         * lib/error.c: Likewise.
51821
51822 2006-08-04  Bruno Haible  <bruno@clisp.org>
51823
51824         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51825         Make the mostlyclean-local rule depend on mostlyclean-generic.
51826         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
51827
51828 2006-07-31  Bruno Haible  <bruno@clisp.org>
51829
51830         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
51831         <stdlib.h>, <string.h>.
51832
51833 2006-07-30  Bruno Haible  <bruno@clisp.org>
51834
51835         * modules/readlink (License): Change to LGPL.
51836
51837 2006-07-30  Bruno Haible  <bruno@clisp.org>
51838
51839         * modules/javaversion (Makefile.am): Distribute javaversion.java and
51840         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
51841         set PKGDATADIR to point to it.
51842
51843 2006-07-30  Bruno Haible  <bruno@clisp.org>
51844
51845         * modules/csharpexec (configure.ac): Comment out macro invocation.
51846         * modules/javaexec (configure.ac): Likewise.
51847         * modules/javacomp-script (configure.ac): Likewise.
51848
51849         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
51850
51851 2006-07-30  Bruno Haible  <bruno@clisp.org>
51852
51853         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
51854         linked-list.
51855
51856 2006-07-30  Bruno Haible  <bruno@clisp.org>
51857
51858         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
51859
51860 2006-07-30  Bruno Haible  <bruno@clisp.org>
51861
51862         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51863         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
51864         get removed.
51865
51866 2006-07-29  Bruno Haible  <bruno@clisp.org>
51867
51868         Make it possible for gnulib-tool to work with locally modified or
51869         augmented gnulib repositories.
51870         * gnulib-tool (func_usage): Document --local-dir option.
51871         (local_gnulib_dir): New variable.
51872         Handle --local-dir option.
51873         (func_lookup_file): New function.
51874         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
51875         (func_get_description, func_get_filelist, func_get_description,
51876         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
51877         func_get_automake_snippet, func_get_include_directive,
51878         func_get_license, func_get_maintainer): Use func_lookup_file.
51879         (func_import, func_create_testdir): Use func_lookup_file.
51880
51881 2006-07-29  Bruno Haible  <bruno@clisp.org>
51882
51883         * modules/setenv (Depends-on): Add unistd.
51884
51885 2006-07-29  Bruno Haible  <bruno@clisp.org>
51886
51887         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
51888
51889 2006-07-29  Bruno Haible  <bruno@clisp.org>
51890
51891         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
51892
51893 2006-07-29  Bruno Haible  <bruno@clisp.org>
51894
51895         * gnulib-tool (import, update): If there is no Makefile.am, look at
51896         aclocal.m4, instead of bailing out.
51897
51898 2006-07-29  Bruno Haible  <bruno@clisp.org>
51899
51900         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
51901         Categorize the options by when they are useful.
51902
51903 2006-07-29  Bruno Haible  <bruno@clisp.org>
51904
51905         * gnulib-tool (func_usage): Document option --no-libtool.
51906         Handle option --no-libtool.
51907         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
51908         for changed semantics of $libtool variable.
51909         (func_import): Likewise. If libtool is not used, show this through
51910         an option --no-libtool.
51911         (func_create_testdir): Update.
51912
51913 2006-07-29  Bruno Haible  <bruno@clisp.org>
51914
51915         * gnulib-tool (func_import): Extend error message about missing
51916         --doc-base.
51917
51918 2006-07-29  Bruno Haible  <bruno@clisp.org>
51919
51920         * gnulib-tool (func_import): Don't create the $docbase directory if
51921         there is no file to store there.
51922
51923 2006-07-29  Bruno Haible  <bruno@clisp.org>
51924
51925         * gnulib-tool (autoconf_minversion): If a --dir option is given and
51926         relevant, look for configure.ac there, not in the current directory.
51927         Also use a simple search for AC_PREREQ, not "autoconf --trace".
51928
51929 2006-07-29  Bruno Haible  <bruno@clisp.org>
51930
51931         * gnulib-tool (SORT): New variable.
51932         (func_usage): Undocument --assume-autoconf option.
51933         Remove --assume-autoconf option handling.
51934         (autoconf_minversion): Determine from the contents of configure.ac.
51935         (func_import): Remove autoconf_minversion handling.
51936         Suggested by Eric Blake.
51937
51938 2006-07-29  Bruno Haible  <bruno@clisp.org>
51939
51940         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
51941
51942 2006-07-29  Bruno Haible  <bruno@clisp.org>
51943
51944         * config/srclist.txt (*setenv.[ch]): Remove rules.
51945
51946 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51947
51948         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
51949
51950 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51951
51952         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
51953         arpa/inet.h.
51954
51955 2006-07-28  Simon Josefsson  <jas@extundo.com>
51956
51957         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
51958         * modules/inet_pton (Depends-on): Likewise.
51959
51960 2006-07-28  Simon Josefsson  <jas@extundo.com>
51961
51962         * m4/netinet_in_h.m4: New file.
51963
51964 2006-07-28  Simon Josefsson  <jas@extundo.com>
51965
51966         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
51967         #include's.
51968
51969 2006-07-28  Simon Josefsson  <jas@extundo.com>
51970
51971         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
51972         #include's.
51973
51974 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
51975
51976         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
51977         setgid on directories only if they set these bits.
51978         * lib/modechange.h: Remove obsolete comment about masks.
51979
51980 2006-07-28  Eric Blake  <ebb9@byu.net>
51981
51982         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
51983         macro expansion.
51984
51985 2006-07-28  Bruno Haible  <bruno@clisp.org>
51986
51987         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
51988
51989 2006-07-28  Bruno Haible  <bruno@clisp.org>
51990
51991         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
51992
51993 2006-07-28  Bruno Haible  <bruno@clisp.org>
51994
51995         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51996         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51997         Define fallbacks.
51998         Avoids link error on FreeBSD 4.x.
51999         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52000
52001         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
52002         encoding.
52003         * lib/mbswidth.c (iswcntrl): Likewise.
52004
52005 2006-07-27  Bruno Haible  <bruno@clisp.org>
52006
52007         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
52008         test.
52009
52010 2006-07-27  Bruno Haible  <bruno@clisp.org>
52011
52012         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
52013         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
52014         defined.
52015
52016 2006-07-26  Eric Blake  <ebb9@byu.net>
52017
52018         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
52019
52020 2006-07-26  Eric Blake  <ebb9@byu.net>
52021
52022         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
52023         like mingw that lack mkstemp.
52024         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
52025         avoid compilation warning on mingw.
52026
52027 2006-07-26  Bruno Haible  <bruno@clisp.org>
52028
52029         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
52030         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
52031         INT_FAST*_MIN, INTPTR_MIN.
52032
52033 2006-07-25  Bruno Haible  <bruno@clisp.org>
52034
52035         * modules/version-etc (Depends-on): Add stdarg.
52036
52037 2006-07-25  Bruno Haible  <bruno@clisp.org>
52038
52039         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
52040         complex commands.
52041
52042 2006-07-25  Bruno Haible  <bruno@clisp.org>
52043
52044         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
52045         defined in <stdarg.h> or config.h.
52046
52047 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
52048
52049         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
52050         (gl_STDIO_SAFER): Remove.
52051
52052 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
52053
52054         * MODULES.html.sh (File stream based Input/Output):
52055         Add fopen-safer, tmpfile-safer; remove stdio-safer.
52056         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
52057         * modules/fopen-safer, modules/tmpfile-safer: New files.
52058         * modules/stdio-safer: Remove.
52059
52060 2006-07-24  Bruno Haible  <bruno@clisp.org>
52061
52062         * modules/tmpdir: New file.
52063         * MODULES.html.sh (File system functions): Add it.
52064
52065 2006-07-24  Bruno Haible  <bruno@clisp.org>
52066
52067         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
52068         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
52069
52070 2006-07-24  Bruno Haible  <bruno@clisp.org>
52071
52072         * modules/clean-temp: New file.
52073
52074 2006-07-24  Bruno Haible  <bruno@clisp.org>
52075
52076         * m4/tmpdir.m4: New file, from GNU gettext.
52077
52078 2006-07-24  Bruno Haible  <bruno@clisp.org>
52079
52080         * lib/tmpdir.h: New file, from GNU gettext.
52081         * lib/tmpdir.c: New file, from GNU gettext.
52082
52083 2006-07-24  Bruno Haible  <bruno@clisp.org>
52084
52085         * lib/clean-temp.h: New file, from GNU gettext.
52086         * lib/clean-temp.c: New file, from GNU gettext.
52087
52088 2006-07-23  Eric Blake  <ebb9@byu.net>
52089
52090         * modules/stdio-safer (Files): Add tmpfile-safer.c.
52091         (Depends-on): Add binary-io.
52092
52093 2006-07-23  Eric Blake  <ebb9@byu.net>
52094
52095         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
52096
52097 2006-07-23  Eric Blake  <ebb9@byu.net>
52098
52099         * lib/tmpfile-safer.c: New file.
52100         * lib/stdio-safer.h (fopen_safer): Add prototype.
52101         * lib/stdio--.h (tmpfile): Make safer.
52102
52103 2006-07-23  Bruno Haible  <bruno@clisp.org>
52104
52105         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
52106         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
52107         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
52108         gl_linked_remove_at): Use it.
52109
52110 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52111         and Simon Josefsson <jas@extundo.com>
52112
52113         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
52114
52115         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
52116
52117 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52118
52119         * modules/close-stream: New file.
52120         * modules/closeout (Description): Make it clear that it exits
52121         with a diagnostic on error.
52122         (Depends-on): Add close-stream.  Remove fpending, stdbool.
52123         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
52124
52125 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52126
52127         * m4/close-stream.m4: New file.
52128
52129 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52130
52131         * lib/close-stream.c, lib/close-stream.h: New files.
52132
52133 2006-07-22  Bruno Haible  <bruno@clisp.org>
52134
52135         Merge from GNU gettext 0.15.
52136
52137         2006-05-01  Bruno Haible  <bruno@clisp.org>
52138
52139                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
52140
52141         2006-07-22  Bruno Haible  <bruno@clisp.org>
52142
52143                 * modules/javaversion: New file.
52144                 * MODULES.html.sh (Java): Add javaversion.
52145
52146         2006-03-12  Bruno Haible  <bruno@clisp.org>
52147
52148                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
52149
52150         2005-12-04  Bruno Haible  <bruno@clisp.org>
52151
52152                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
52153                 (untested).
52154
52155         2006-06-21  Bruno Haible  <bruno@clisp.org>
52156
52157                 Avoid warnings from recent versions of mcs.
52158                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
52159                 -o, -L, -r any more. Use options documented since mcs-1.0
52160                 instead. Similarly for -g.
52161
52162         2005-12-04  Bruno Haible  <bruno@clisp.org>
52163
52164                 * build-aux/csharpcomp.sh.in: Suffix for resources is
52165                 .resources, not .resource.
52166
52167         2005-07-09  Bruno Haible  <bruno@clisp.org>
52168
52169                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
52170                 add a .dll suffix.
52171                 Reported by Mark Junker <mjscod@gmx.de>.
52172
52173         2006-07-22  Bruno Haible  <bruno@clisp.org>
52174
52175                 * modules/gettext: Upgrade to gettext-0.15.
52176                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
52177                 m4/visibility.m4.
52178                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
52179
52180 2006-07-22  Bruno Haible  <bruno@clisp.org>
52181
52182         Merge from GNU gettext 0.15.
52183
52184         2006-03-25  Bruno Haible  <bruno@clisp.org>
52185
52186                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
52187
52188         2006-07-21  Bruno Haible  <bruno@clisp.org>
52189
52190                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
52191                 "1.1".
52192
52193         2006-05-09  Bruno Haible  <bruno@clisp.org>
52194
52195                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
52196                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
52197                 for the conftestver execution.
52198
52199         2006-05-01  Bruno Haible  <bruno@clisp.org>
52200
52201                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
52202                 optional target-version argument. Verify that the compiler
52203                 groks source of the specified source-version, or add -source
52204                 option as necessary. Verify that the compiler produces
52205                 bytecode in the specified target-version, or add -target and
52206                 -source options as necessary. Make the result of the test
52207                 available as variable CONF_JAVAC. Also log error output in
52208                 config.log.
52209
52210         2006-03-11  Bruno Haible  <bruno@clisp.org>
52211
52212                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
52213
52214         2006-05-09  Bruno Haible  <bruno@clisp.org>
52215
52216                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
52217                 CLASSPATH_SEPARATOR to a semicolon.
52218
52219         2006-03-12  Bruno Haible  <bruno@clisp.org>
52220
52221                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
52222                 available as variable CONF_JAVA, for subsequent autoconf
52223                 tests. Also log error output in config.log.
52224
52225         2006-07-19  Bruno Haible  <bruno@clisp.org>
52226
52227                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
52228                 that getline works on glibc2 systems. Needed to avoid trouble
52229                 in relocatable.c.
52230                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
52231
52232         2005-12-04  Bruno Haible  <bruno@clisp.org>
52233
52234                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
52235                 launcher (untested).
52236
52237         2005-12-04  Bruno Haible  <bruno@clisp.org>
52238
52239                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
52240
52241         2006-07-22  Bruno Haible  <bruno@clisp.org>
52242
52243                 * gettext.m4: Update from GNU gettext-0.15.
52244                 * nls.m4: Likewise.
52245                 * po.m4: Likewise.
52246                 * inttypes-pri.m4: Likewise.
52247                 * inttypes-h.m4: Renamed from inttypes.m4.
52248                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
52249
52250 2006-07-22  Bruno Haible  <bruno@clisp.org>
52251
52252         Merge from GNU gettext 0.15.
52253
52254         2005-07-05  Bruno Haible  <bruno@clisp.org>
52255
52256                 * printf-args.c (printf_fetchargs): Work around broken
52257                 definition of wint_t on mingw.
52258
52259         2005-02-12  Bruno Haible  <bruno@clisp.org>
52260
52261                 * xallocsa.h: Add extern "C" for C++.
52262
52263         2006-05-17  Bruno Haible  <bruno@clisp.org>
52264
52265                 Cygwin portability.
52266                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
52267
52268         2006-04-30  Bruno Haible  <bruno@clisp.org>
52269
52270                 * progreloc.c: Include <mach-o/dyld.h> if available.
52271                 (find_executable): Use _NSGetExecutablePath when possible.
52272
52273         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52274
52275                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
52276                 function.
52277
52278         2005-12-29  Bruno Haible  <bruno@clisp.org>
52279
52280                 * progreloc.c (set_program_name_and_installdir): Fix
52281                 compilation error.
52282
52283         2005-12-04  Bruno Haible  <bruno@clisp.org>
52284
52285                 Cygwin portability.
52286                 * progreloc.c: Include <windows.h> also on Cygwin.
52287                 (find_executable): Add support for Cygwin.
52288                 (set_program_name_and_installdir): Handle also platforms with
52289                 nonempty EXEEXT.
52290
52291         2006-07-11  Bruno Haible  <bruno@clisp.org>
52292
52293                 * javacomp.c: Fix a comment.
52294                 Reported by Jim Meyering.
52295
52296         2006-04-30  Bruno Haible  <bruno@clisp.org>
52297
52298                 * javacomp.h (compile_java_class): Add source_version,
52299                 target_version arguments.
52300                 * javacomp.c: Rewritten to choose only a compiler that
52301                 respects the specified source_version and target_version.
52302
52303         2006-06-27  Bruno Haible  <bruno@clisp.org>
52304
52305                 Assume correct S_ISDIR macro.
52306                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
52307
52308         2006-07-22  Bruno Haible  <bruno@clisp.org>
52309
52310                 * javaversion.h: New file, from GNU gettext.
52311                 * javaversion.c: New file, from GNU gettext.
52312                 * javaversion.java: New file, from GNU gettext.
52313                 * javaversion.class: New file, from GNU gettext.
52314
52315         2006-05-17  Bruno Haible  <bruno@clisp.org>
52316
52317                 Cygwin portability.
52318                 * javaexec.c (execute_java_class): Test for jview program
52319                 also on Cygwin.
52320
52321         2006-04-09  Bruno Haible  <bruno@clisp.org>
52322
52323                 * fatal-signal.c: Don't include string.h.
52324                 (at_fatal_signal): Use a copying loop instead of memcpy.
52325
52326         2005-12-04  Bruno Haible  <bruno@clisp.org>
52327
52328                 * csharpexec.c: Add support for 'clix' launcher (untested).
52329                 (execute_csharp_using_sscli): New function.
52330                 (execute_csharp_program): Call it.
52331
52332         2006-06-21  Bruno Haible  <bruno@clisp.org>
52333
52334                 Avoid warnings from recent versions of mcs.
52335                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
52336                 -o, -L, -r any more. Use options documented since mcs-1.0
52337                 instead. Similarly for -g.
52338
52339         2005-07-09  Bruno Haible  <bruno@clisp.org>
52340
52341                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
52342                 add a .dll suffix.
52343                 Reported by Mark Junker <mjscod@gmx.de>.
52344
52345         2006-06-17  Bruno Haible  <bruno@clisp.org>
52346
52347                 * config.charset: Update for NetBSD 3.0.
52348
52349         2006-05-17  Bruno Haible  <bruno@clisp.org>
52350
52351                 Cygwin portability.
52352                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
52353
52354         2006-05-16  Bruno Haible  <bruno@clisp.org>
52355
52356                 * localcharset.c [CYGWIN]: Include <windows.h>.
52357                 (get_charset_aliases): For Cygwin, return the same CPxxx
52358                 aliases list as under WIN32.
52359                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
52360                 the environment variables. Fall back to GetACP().
52361
52362         2006-04-05  Bruno Haible  <bruno@clisp.org>
52363
52364                 * config.charset: Update Juan Manuel Guerrero's address.
52365
52366         2005-02-12  Bruno Haible  <bruno@clisp.org>
52367
52368                 * allocsa.h: Add extern "C" for C++.
52369
52370         2005-02-10  Bruno Haible  <bruno@clisp.org>
52371
52372                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
52373                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
52374
52375         2006-07-22  Bruno Haible  <bruno@clisp.org>
52376
52377                 * gettext.h: Update to GNU gettext-0.15.
52378
52379 2006-07-22  Bruno Haible  <bruno@clisp.org>
52380
52381         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
52382         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
52383         lib-prefix.m4, longdouble.m4, ssize_t.m4.
52384
52385 2006-07-21  Eric Blake  <ebb9@byu.net>
52386
52387         * modules/stdlib-safer: New file.
52388         * MODULES.html.sh (File stream based Input/Output): Add
52389         stdlib-safer.
52390
52391 2006-07-21  Eric Blake  <ebb9@byu.net>
52392
52393         * lib/stdlib-safer.h: New file from coreutils, required by
52394         stdlib--.h.
52395
52396 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
52397
52398         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
52399
52400 2006-07-20  Bruno Haible  <bruno@clisp.org>
52401
52402         * gnulib-tool: Recognize new option --assume-autoconf.
52403         (autoconf_minversion): New variable.
52404         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
52405
52406 2006-07-20  Bruno Haible  <bruno@clisp.org>
52407
52408         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
52409
52410 2006-07-19  Derek R. Price  <derek@ximbiot.com>
52411
52412         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
52413         Reindent and repaginate.
52414
52415 2006-07-19  Derek Price  <derek@ximbiot.com>
52416
52417         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
52418         Correct grammar.
52419
52420 2006-07-17  Bruno Haible  <bruno@clisp.org>
52421
52422         * modules/list: New file.
52423         * modules/array-list: New file.
52424         * modules/carray-list, modules/carray-list-tests: New files.
52425         * modules/linked-list, modules/linked-list-tests: New files.
52426         * modules/avltree-list, modules/avltree-list-tests: New files.
52427         * modules/rbtree-list, modules/rbtree-list-tests: New files.
52428         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
52429         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
52430         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
52431         * modules/oset: New file.
52432         * modules/array-oset: New file.
52433         * modules/avltree-oset, modules/avltree-oset-tests: New files.
52434         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
52435         * tests/test-carray_list.c: New file.
52436         * tests/test-linked_list.c: New file.
52437         * tests/test-avltree_list.c: New file.
52438         * tests/test-rbtree_list.c: New file.
52439         * tests/test-linkedhash_list.c: New file.
52440         * tests/test-avltreehash_list.c: New file.
52441         * tests/test-rbtreehash_list.c: New file.
52442         * tests/test-avltree_oset.c: New file.
52443         * tests/test-rbtree_oset.c: New file.
52444         * MODULES.html.sh (Container data structures): New section.
52445
52446 2006-07-17  Bruno Haible  <bruno@clisp.org>
52447
52448         * m4/gl_list.m4: New file.
52449
52450 2006-07-17  Bruno Haible  <bruno@clisp.org>
52451
52452         * lib/gl_list.h: New file.
52453         * lib/gl_list.c: New file.
52454         * lib/gl_array_list.h: New file.
52455         * lib/gl_array_list.c: New file.
52456         * lib/gl_carray_list.h: New file.
52457         * lib/gl_carray_list.c: New file.
52458         * lib/gl_linked_list.h: New file.
52459         * lib/gl_linked_list.c: New file.
52460         * lib/gl_anylinked_list1.h: New file.
52461         * lib/gl_anylinked_list2.h: New file.
52462         * lib/gl_avltree_list.h: New file.
52463         * lib/gl_avltree_list.c: New file.
52464         * lib/gl_anyavltree_list1.h: New file.
52465         * lib/gl_anyavltree_list2.h: New file.
52466         * lib/gl_rbtree_list.h: New file.
52467         * lib/gl_rbtree_list.c: New file.
52468         * lib/gl_anyrbtree_list1.h: New file.
52469         * lib/gl_anyrbtree_list2.h: New file.
52470         * lib/gl_anytree_list1.h: New file.
52471         * lib/gl_anytree_list2.h: New file.
52472         * lib/gl_linkedhash_list.h: New file.
52473         * lib/gl_linkedhash_list.c: New file.
52474         * lib/gl_anyhash_list1.h: New file.
52475         * lib/gl_anyhash_list2.h: New file.
52476         * lib/gl_avltreehash_list.h: New file.
52477         * lib/gl_avltreehash_list.c: New file.
52478         * lib/gl_rbtreehash_list.h: New file.
52479         * lib/gl_rbtreehash_list.c: New file.
52480         * lib/gl_anytreehash_list1.h: New file.
52481         * lib/gl_anytreehash_list2.h: New file.
52482
52483         * lib/gl_oset.h: New file.
52484         * lib/gl_oset.c: New file.
52485         * lib/gl_array_oset.h: New file.
52486         * lib/gl_array_oset.c: New file.
52487         * lib/gl_avltree_oset.h: New file.
52488         * lib/gl_avltree_oset.c: New file.
52489         * lib/gl_rbtree_oset.h: New file.
52490         * lib/gl_rbtree_oset.c: New file.
52491         * lib/gl_anytree_oset.h: New file.
52492
52493 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52494
52495         * m4/mkancesdirs.m4: New file.
52496         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
52497         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
52498         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
52499         it.
52500
52501 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52502
52503         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
52504         * lib/mkancesdirs.h: New files.
52505         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
52506         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
52507         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
52508         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
52509         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
52510         callers changed.  Revamp internals significantly, by not
52511         attempting to create directories that are temporarily more
52512         permissive than the final results.  Do not attempt to use
52513         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
52514         This removes some race conditions, fixes some bugs, and simplifies
52515         things.  Use new dirchownmod function to do owner and mode changes.
52516         * lib/mkdir-p.h: Likewise.
52517         * lib/modechange.c (octal_to_mode): New function.
52518         (struct mode_change): New member mentioned.
52519         (make_node_op_equals): New arg mentioned.  All callers changed.
52520         (mode_compile): Keep track of which mode bits the user has explicitly
52521         mentioned.
52522         (mode_adjust): New arg DIR, so that we implement the X op correctly.
52523         New arg PMODE_BITS, to keep track of which mode bits the user
52524         mentioned; it treats S_ISUID and S_ISGID speciall.
52525         All callers changed.
52526         * lib/modechange.h: Likewise.
52527
52528 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52529
52530         * MODULES.html.sh: Add mkancestors.
52531         * modules/mkancesdirs: New module.
52532         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
52533         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
52534         The chdir-safer and afs files are now orphans; I'll remove them
52535         unless someone speaks up.
52536         Add lib/dirchownmod.c, lib/dirchownmod.h.
52537         (Depends-on): Remove alloca, chown, save-cwd, dirname.
52538         Add lchown, mkancesdirs.
52539         (Maintainer): Add self.
52540
52541 2006-07-15  Karl Berry  <karl@gnu.org>
52542
52543         * gnulib-tool: help message wording/arrangement.
52544
52545 2006-07-14  Simon Josefsson  <jas@extundo.com>
52546
52547         * doc/gnulib.texi (Libtool and Windows): New section.
52548
52549 2006-07-12  Simon Josefsson  <jas@extundo.com>
52550
52551         * modules/gendocs (License): Fix license, approved by Karl.
52552
52553 2006-07-12  Eric Blake  <ebb9@byu.net>
52554
52555         * MODULES.html.sh: Add gendocs.
52556
52557 2006-07-11  Eric Blake  <ebb9@byu.net>
52558
52559         * modules/fdl: New module, to install doc/fdl.texi.
52560         * MODULES.html.sh: Add new section for documentation modules.
52561         * gnulib-tool: Avoid space-tab.
52562         (--doc-base): New option, to manage files from doc.
52563
52564 2006-07-11  Eric Blake  <ebb9@byu.net>
52565
52566         * m4/absolute-header.m4: Fix comments to match recent change.
52567
52568 2006-07-11  Eric Blake  <ebb9@byu.net>
52569
52570         * gnulib-tool: List --doc-base before --tests-base.
52571
52572 2006-07-11  Derek R. Price  <derek@ximbiot.com>
52573
52574         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
52575
52576 2006-07-11  Bruno Haible  <bruno@clisp.org>
52577
52578         * README: Mention where to put documentation.
52579
52580 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52581
52582         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
52583
52584 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52585
52586         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
52587         to stdint.m4.
52588
52589 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52590
52591         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
52592         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
52593         "no/such/file/stdint.h" when there is no such file, so that
52594         the resulting C code can be parsed by dodgy compilers.
52595         Problems reported by Bob Proulx.
52596
52597 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52598
52599         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
52600         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52601         macros into the GNU _D_EXACT_NAMLEN.
52602         * lib/savedir.c:  Likewise.
52603         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
52604
52605 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52606         and Paul Eggert  <eggert@cs.ucla.edu>
52607
52608         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
52609         * m4/savedir.m4:
52610         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52611         macros into the GNU _D_EXACT_NAMLEN.
52612
52613 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52614
52615         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
52616         around the absolute name, to work around a problem with the HP-UX
52617         11.23 native C compiler, reported by Bob Proulx.
52618
52619 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52620
52621         * doc/maintain.texi, make-stds.texi: Sync from
52622         <http://savannah.gnu.org/projects/gnustandards>.
52623
52624 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52625
52626         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
52627
52628 2006-07-09  Jim Meyering  <jim@meyering.net>
52629
52630         * m4/glob.m4: Remove a doubled word in a comment.
52631
52632 2006-07-09  Jim Meyering  <jim@meyering.net>
52633
52634         * lib/argp-pv.c: Remove a doubled word in a comment.
52635         * lib/check-version.c (check_version): Likewise.
52636         * lib/javacomp.c (compile_java_class): Likewise.
52637
52638 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52639
52640         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
52641         for the benefit of people using Autoconf 2.60.  If you want to
52642         support older Autoconf versions you can copy m4/onceonly_2_57.m4
52643         (or m4/onceonly.m4, if pre-2.57) manually.
52644
52645 2006-07-08  Jim Meyering  <jim@meyering.net>
52646
52647         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
52648         comment.
52649         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
52650         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
52651         comment.
52652
52653 2006-07-08  Jim Meyering  <jim@meyering.net>
52654
52655         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
52656
52657 2006-07-07  Simon Josefsson  <jas@extundo.com>
52658
52659         * tests/test-crc.c: Change expected crc value, the test vector
52660         were probably computed using the old broken crc.c?
52661
52662 2006-07-06  Simon Josefsson  <jas@extundo.com>
52663
52664         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
52665         now the canonical place for the M4 file).
52666
52667         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
52668         from the sys_socket dependency now.
52669
52670         * modules/inet_pton (Files): Ditto.
52671
52672         * modules/inet_ntop (Files): Ditto.
52673
52674 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52675
52676         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
52677         not gl_PREREQ_GETUSERSHELL.
52678
52679 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52680
52681         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
52682         with only one argument, for Autoconf 2.60.
52683         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
52684         expand to nothing, so add a shell command to avoid syntax error.
52685         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52686
52687 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52688
52689         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
52690
52691 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52692
52693         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
52694         no longer needed.  Check for isblank decl.
52695         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
52696         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
52697         of existence.
52698
52699 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52700
52701         * lib/getloadavg.c: Use __VMS, not VMS.
52702         * lib/getopt.c: Likewise.
52703         * lib/getpagesize.h: Likewise.
52704         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
52705         and probably does not work.
52706
52707 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52708
52709         * lib/.cppi-disable: Add wcwidth.
52710         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
52711         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
52712         (ISGRAPH): Remove.  All uses changed to isgraph.
52713         (FOLD) [!defined _LIBC]: Remove special case.
52714         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
52715         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
52716         HAVE_ISBLANK.
52717         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
52718         case.
52719
52720 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52721
52722         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
52723         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
52724         brackets.  Other minor changes to suppress some compiler
52725         warnings.
52726
52727 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52728         and Paul Eggert  <eggert@cs.ucla.edu>
52729
52730         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
52731         of invoking obsolescent AC_HEADER_DIRENT macro.
52732         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
52733         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
52734         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
52735         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
52736         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
52737         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52738         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
52739         * m4/readdir.m4: Remove; no longer needed.
52740
52741 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52742         and Paul Eggert  <eggert@cs.ucla.edu>
52743
52744         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
52745         Don't worry about this obsolete case any more.
52746         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
52747         directories.
52748         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
52749         worry about this obsolete case any more.
52750         * lib/fts.c: Likewise.
52751         * lib/getcwd.c: Likewise.
52752         * lib/glob.h: Likewise.
52753         * lib/savedir.c: Likewise.
52754
52755 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52756
52757         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
52758         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
52759         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
52760         needed.
52761         All uses removed.
52762         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52763         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52764         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
52765         needed.
52766         * m4/getdate.m4 (gl_GETDATE): Likewise.
52767         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52768         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52769         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52770         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52771         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52772         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52773         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
52774         needed.
52775
52776 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52777
52778         * lib/memcasecmp.c: Include <limits.h>.
52779         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
52780         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
52781         Don't assume isdigit succeeds only on '0' through '9'.
52782
52783 2006-07-05  Eric Blake  <ebb9@byu.net>
52784
52785         * modules/getaddrinfo (Depends-on): Add snprintf.
52786
52787 2006-07-05  Eric Blake  <ebb9@byu.net>
52788
52789         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
52790         to avoid 'header present but could not be compiled' on cygwin.
52791
52792 2006-07-05  Eric Blake  <ebb9@byu.net>
52793
52794         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
52795         missing from netdb.h.
52796         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
52797
52798 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52799
52800         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
52801         no longer needed.
52802         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
52803         * m4/getdate.m4 (gl_GETDATE): Likewise.
52804         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52805         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52806         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52807         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52808         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52809
52810 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52811
52812         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
52813         All uses of is_space replaced by isspace.
52814         * lib/exit.h: Don't talk about STDC_HEADERS.
52815         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
52816         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
52817         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
52818         replaced by isprint etc.
52819         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
52820         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52821         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
52822         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
52823         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
52824         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52825
52826 2006-07-05  Bruno Haible  <bruno@clisp.org>
52827
52828         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
52829         the function exists, before testing against AIX.
52830         Reported by Martin Lambers <marlam@marlam.de>.
52831
52832 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52833
52834         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
52835         From Mark D. Baushke.
52836
52837 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52838
52839         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
52840         to the absolute name, not just one, to bypass Sun C 5.8's
52841         "warning: #include of /usr/include/... may be non-portable".
52842
52843 2006-07-04  Eric Blake  <ebb9@byu.net>
52844
52845         * modules/dirname-tests: New test module.
52846         * tests/test-dirname.c: New file, replacing dirname.c
52847         TEST_DIRNAME section that was recently deleted.
52848
52849 2006-07-04  Bruno Haible  <bruno@clisp.org>
52850
52851         Assume ANSI C header files and <ctype.h> functions.
52852         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
52853         (mbsnwidth): Use isprint, iscntrl instead.
52854
52855 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52856
52857         Merge from coreutils.
52858         * MODULES.html.sh: Add xstrtold.
52859         * modules/xstrtold: New file.
52860         * modules/cycle-check (Files): Add lib/same-inode.h.
52861         * modules/dirname (Files): Add m4/double-slash-root.m4.
52862         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
52863         * modules/mkdir-p (Files): Add lib/same-inode.h.
52864         * modules/same (Files): Add lib/same-inode.h.
52865
52866 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52867
52868         * m4/absolute-header.m4: Renamed from full-header-path.m4.
52869         This is to keep the terminology clean; POSIX talks about
52870         "absolute pathnames", not "full pathnames", but the GNU
52871         Coding Standards say to use "path" for something else;
52872         so use "absolute" to keep both sides happy.
52873         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
52874         Set gl_absolute_header, not gl_full_header_path.
52875         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
52876         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
52877         All uses changed.
52878
52879         Merge from coreutils.
52880
52881         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52882
52883         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
52884         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
52885         want to require the building of c-strtod.o.
52886         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
52887         needs -lm directly.
52888         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
52889
52890         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
52891
52892         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
52893         --as-needed option if available.  Problem reported by Albert Chin in
52894         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
52895         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
52896         cc merely issues a bunch of annoying warnings for --as-needed
52897         (this problem was reported by Bob Proulx).  Also, try linking with
52898         -lm to detect a bug in binutils 2.16 (this problem was reported
52899         by Ralf Wildenhues).
52900
52901         2006-06-18  Jim Meyering  <jim@meyering.net>
52902
52903         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
52904         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
52905         macro.
52906         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
52907         also check for glibc-2.4's abort-inducing bug.
52908
52909         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
52910         Low-probability clean-up should be to use rmdir to get rid of
52911         the just-created directory, not unlink.
52912
52913         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
52914         configure fail, and request a bug report to inform us about it.
52915         Add a comment that, barring reports to the contrary, in 2007 we'll
52916         assume ftruncate is universally available.
52917
52918         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52919
52920         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
52921
52922         2006-03-12  Jim Meyering  <jim@meyering.net>
52923
52924         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
52925         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
52926         * m4/same.m4 (gl_SAME): Likewise.
52927         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
52928
52929         2006-03-11  Eric Blake  <ebb9@byu.net>
52930
52931         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
52932         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
52933         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
52934         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
52935
52936 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52937
52938         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
52939         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
52940         reported by Mark D. Baushke, one in
52941         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
52942
52943         Merge from coreutils.
52944
52945         * lib/.cppi-disable: Add stdint_.h.
52946         * lib/.cvsignore: Add stdint.h.
52947
52948         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52949
52950         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
52951         both double and long double versions.
52952         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
52953         * lib/xstrtold.c: New file.
52954         * lib/xstrtod.h (xstrtold): New decl.
52955
52956         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52957
52958         * lib/filemode.c (setst): Remove.
52959         (strmode): Rewrite to avoid setst.  This makes the code shorter,
52960         (arguably) clearer, and the generated code is a bit smaller on my
52961         Debian GNU/Linux stable x86 host.
52962
52963         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52964
52965         * lib/filemode.c: Include "filemode.h" first, to test the interface.
52966         Assume that filemode.h includes sys/types.h and sys/stat.h.
52967         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
52968         (ftypelet): Reorder to put common cases first, for efficiency.
52969         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
52970         to do 'M'.
52971         (strmode): Renamed from mode_string, and now stores 12 bytes instead
52972         of 10, for compatibility with FreeBSD.  All callers changed.
52973         (filemodestring): Now stores 12 bytes instead of 10, and sets file
52974         types that can't be deduced solely from st_mode.  First arg is now a
52975         const pointer.
52976         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
52977         (strmode): Renamed from mode_string.
52978         (filemodestring): New decl.
52979         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
52980         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
52981         needed.
52982         (S_ISPORT, S_ISWHT): New macros, if not already defined.
52983
52984         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52985
52986         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
52987         fsusage.h now does that.  Include fsusage.h first, to test interface.
52988         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
52989         at most one method (the old code could have generated decls that
52990         didn't conform to C89, not that this was ever exercised).
52991         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
52992
52993         2006-03-19  Jim Meyering  <jim@meyering.net>
52994
52995         Work even in a chroot where d_ino values for entries in "/"
52996         don't match the stat.st_ino values for the same names.
52997         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
52998         number, iterate through all entries again, using lstat instead.
52999         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
53000         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
53001
53002         * lib/getcwd.c (__getcwd): Clarify a comment.
53003         Use memcpy in place of a call to strcpy.
53004
53005         2006-03-12  Jim Meyering  <jim@meyering.net>
53006
53007         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
53008         matches that of the current directory (which we're about to chdir ".."
53009         out of), then save the dev-ino of the parent, instead.
53010
53011         * lib/same-inode.h (SAME_INODE): New file/macro.
53012         * lib/chdir-safer.c (SAME_INODE): Remove definition.
53013         Include "same-inode.h", instead.
53014         * lib/same.c: Likewise.
53015         * lib/cycle-check.h: Include "same-inode.h".
53016         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
53017         * lib/cycle-check.c (SAME_INODE): Remove definition.
53018         * lib/root-dev-ino.h: Include "same-inode.h".
53019
53020         2006-03-11  Eric Blake  <ebb9@byu.net>
53021
53022         * lib/same.c (same_name): s/base_name/last_component/
53023         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
53024         * lib/filenamecat.c (file_name_concat): Likewise.
53025
53026         2006-03-11  Eric Blake  <ebb9@byu.net>,
53027                     Paul Eggert  <eggert@cs.ucla.edu>
53028
53029         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
53030         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
53031         drive prefix.
53032         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
53033         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
53034         (last_component): New method.
53035         * lib/dirname.c (dir_len): Determine when drive letters need a
53036         subsequent slash.  Preserve // when it is special.
53037         (dir_name): Don't append dot when drive letter is absolute.
53038         [TEST_DIRNAME]: Move into a full-blown gnulib test.
53039         * lib/basename.c (base_name): New semantics - malloc the result.
53040         Preserve // when it is special.  Preserve relative files that look
53041         like drive letters.
53042         (base_len): Preserve // when it is special.
53043         (last_component): New method, similar to old base_name semantics.
53044         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
53045         base_name.  Strip redundant slashes from ///.
53046
53047 2006-07-03  Jim Meyering  <jim@meyering.net>
53048
53049         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
53050         macro is used before the first cycle_check call.
53051
53052 2006-07-03  Eric Blake  <ebb9@byu.net>
53053
53054         * modules/dirname (Depends-on): Add xstrndup.
53055
53056 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53057
53058         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
53059         test cases, so that config.log is a bit easier to follow.
53060
53061 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53062
53063         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
53064         both are 64 bits, since this seems to be the tradition, and this
53065         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
53066         we ever run into a host that prefers long long to long in this
53067         case, we'll need another configure-time test.  Problem reported by
53068         Jim Meyering.
53069
53070 2006-07-02  Eric Blake  <ebb9@byu.net>
53071
53072         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
53073
53074 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53075
53076         * modules/inttypes (Depends-on): No longer depends on stdint.
53077         * modules/stdint (Description): Say more about assumptions.
53078         Say that the fast types might differ.  Say macros are used.
53079         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
53080         (Makefile.am): Revise list of substituted symbols to match
53081         new stdint.m4.
53082         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
53083         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
53084         * tests/test-stdint.c (verify_same_types)
53085         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
53086         the code conforms to C99/C89.
53087         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
53088         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
53089
53090 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53091
53092         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
53093         but fix a bug, by requiring at least 64 bits.
53094         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
53095         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
53096         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
53097         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
53098
53099         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
53100         changes.  Make 2.59 a prerequisite.  Check and substitute for
53101         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
53102         inttypes.h.  Do not use special include files; just use the
53103         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
53104         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
53105         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
53106         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
53107         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
53108         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
53109         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
53110         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
53111         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
53112         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
53113         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
53114         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
53115         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
53116         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
53117         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
53118         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
53119         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
53120         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
53121         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
53122         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
53123         WINT_MAX.  Check for C99 conformance more strictly, by detecting
53124         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
53125         not check for things that C99 does not require, e.g., int8_t.  If
53126         a test isn't needed unless <stdint.h> isn't working, and is
53127         unlikely to be needed for any other reason, then don't do it
53128         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
53129         size_t, since we assume C89 freestanding at least.  Do not check
53130         for sig_atomic_t, wchar_t, or wint_t, since the code now does
53131         the right thing even if the types are not defined.  Instead use:
53132         (gl_STDINT_TYPE_PROPERTIES): New macro.
53133         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
53134         testing whether <sys/types.h> clashes, as Autoconf does this for
53135         us now.  All uses removed.
53136         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
53137         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
53138         (gl_CHECK_TYPE_SAME):
53139         Remove; no longer needed.
53140         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
53141         exists, since we'll return 0 anyway in that case.
53142         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
53143
53144 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53145
53146         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
53147         possible collision with system files.
53148         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
53149         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
53150         WCHAR_MIN and WCHAR_MAX in this case.
53151         (<stddef.h>): Do not include; no longer needed.
53152         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
53153         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
53154         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
53155         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
53156         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
53157         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
53158         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
53159         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
53160         !defined(__c99))]: Include in this case too, since it's harmless
53161         now.
53162         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
53163         dangerous to do so.
53164         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
53165         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
53166         (_STDINT_MIN, _STDINT_MAX): New macros.
53167         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
53168         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
53169         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
53170         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
53171         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
53172         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
53173         macros, not typedefs; this simplifies things quite a bit.
53174         Use long int for all types narrower than int64_t.
53175         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
53176         Define in terms of long long int or int64_t or long int,
53177         not int64_t or int32_t.  This saves some compile-time testing.
53178         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
53179         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
53180         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
53181         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
53182         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
53183         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
53184         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
53185         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
53186         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
53187         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
53188         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
53189         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
53190         undef any previous version and define our own version, for
53191         simplicity and consistency with the new macros for types.
53192         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
53193         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
53194         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
53195         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
53196         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
53197         @WINT_T_SUFFIX@ to keep things simple here.
53198         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
53199         Simplify by assuming typical 8/16/32/64 host, since we're
53200         already doing that elsewhere anyway.
53201         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
53202         and assume long long int is 64 bits if available.  This
53203         speeds up 'configure'.
53204
53205 2006-07-01  Eric Blake  <ebb9@byu.net>
53206
53207         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
53208         Reported by Andreas Buening.
53209
53210 2006-07-01  Eric Blake  <ebb9@byu.net>
53211
53212         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
53213
53214 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
53215
53216         * lib/getaddrinfo.c: fixed typo
53217
53218 2006-06-29  Jim Meyering  <jim@meyering.net>
53219
53220         * modules/strftime (Maintainer): Add my name, since with the
53221         FPRINTFTIME changes strftime.c has forked from glibc.
53222
53223 2006-06-29  Eric Blake  <ebb9@byu.net>
53224
53225         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
53226
53227 2006-06-29  Eric Blake  <ebb9@byu.net>
53228
53229         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
53230
53231 2006-06-29  Eric Blake  <ebb9@byu.net>
53232
53233         * lib/stat_.h: New file.
53234
53235 2006-06-29  Eric Blake  <ebb9@byu.net>
53236
53237         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
53238         unused static function.
53239
53240 2006-06-29  Eric Blake  <ebb9@byu.net>
53241
53242         * doc/functions.texi (Function Portability): Document missing lstat
53243         on mingw.
53244
53245 2006-06-29  Eric Blake  <ebb9@byu.net>
53246
53247         * MODULES.html.sh: Add sys_stat.
53248         * modules/sys_stat: New module.
53249         * modules/mkstemp (Depends-on): Add sys_stat.
53250
53251 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53252
53253         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
53254
53255 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53256
53257         * m4/c-bs-a.m4: Removed.
53258
53259 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53260
53261         * lib/strftime.c: Assume strftime() exists.
53262
53263 2006-06-29  Derek Price  <derek@ximbiot.com>
53264
53265         * modules/c-bs-a: Removed - \a is C89.
53266         * MODULES.html.sh: Remove c-bs-a.
53267
53268 2006-06-29  Bruno Haible  <bruno@clisp.org>
53269
53270         * modules/wcwidth (License): Change to LGPL.
53271
53272 2006-06-28  Simon Josefsson  <jas@extundo.com>
53273
53274         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
53275         on _WIN32.
53276
53277         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
53278         getnameinfo.
53279
53280 2006-06-28  Simon Josefsson  <jas@extundo.com>
53281
53282         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
53283
53284 2006-06-28  Simon Josefsson  <jas@extundo.com>
53285
53286         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
53287         functions there.  It will succeed on Windows XP, but on Windows
53288         2000 and (presumably) earlier, it will fail, and use the internal
53289         re-implementation.
53290         (use_win32_p): New function.
53291         (getaddrinfo): Use strtoul on servname, to support numeric ports.
53292         Support AI_NUMERICSERV to disable getservbyname.
53293         (getnameinfo): New function, only supports
53294         NI_NUMERICHOST|NI_NUMERICSERV for now.
53295
53296         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
53297         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
53298         getnameinfo.
53299
53300 2006-06-28  Eric Blake  <ebb9@byu.net>
53301
53302         * modules/wcwidth: New file.
53303         * modules/mbchar (Depends-on): Add wcwidth.
53304         * modules/mbswidth (Depends-on): Add wcwidth.
53305         * MODULES.html.sh: Add wcwidth.
53306
53307 2006-06-28  Eric Blake  <ebb9@byu.net>
53308
53309         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
53310         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
53311
53312 2006-06-28  Eric Blake  <ebb9@byu.net>
53313
53314         * lib/xvasprintf.h: Fix comments.
53315
53316 2006-06-28  Eric Blake  <ebb9@byu.net>
53317
53318         * lib/mbchar.h (wcwidth): Include wcwidth.h.
53319         * lib/mbswidth.c (wcwidth): Move from here...
53320         * lib/wcwidth.h: ...to this new file.
53321
53322 2006-06-28  Derek R. Price  <derek@ximbiot.com>
53323
53324         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
53325
53326         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
53327         it's obsolete.
53328         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
53329
53330 2006-06-28  Derek R. Price  <derek@ximbiot.com>
53331
53332         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
53333         Autoconf 2.60 says this stuff was obsolete.
53334
53335 2006-06-28  Bruno Haible  <bruno@clisp.org>
53336
53337         * modules/wcwidth (Files): Add m4/wchar_t.m4.
53338
53339 2006-06-28  Bruno Haible  <bruno@clisp.org>
53340
53341         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
53342         gt_TYPE_WCHAR_T.
53343
53344 2006-06-28  Bruno Haible  <bruno@clisp.org>
53345
53346         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
53347         declaration for wcwidth.
53348         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
53349
53350 2006-06-28  Bruno Haible  <bruno@clisp.org>
53351
53352         * lib/mkdtemp.c [MINGW]: Include <io.h>.
53353         (mkdir): Define using _mkdir.
53354
53355 2006-06-28  Bruno Haible  <bruno@clisp.org>
53356
53357         * lib/getaddrinfo.h: Fix POSIX URL.
53358         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
53359         _WIN32.
53360         (use_win32_p): Make static.
53361         (getaddrinfo): Reject service name if it is empty or does not consist
53362         solely of decimal digits, or if its value is > 65535.
53363         (getnameinfo): Remove useless casts.
53364
53365 2006-06-27  Simon Josefsson  <jas@extundo.com>
53366
53367         * modules/sys_select: New file, suggested by Bruno Haible, Paul
53368         Eggert and Martin Lambers.
53369
53370 2006-06-27  Simon Josefsson  <jas@extundo.com>
53371
53372         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
53373         Eggert and Martin Lambers.
53374
53375 2006-06-27  Bruno Haible  <bruno@clisp.org>
53376
53377         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
53378         result to 0, not to empty.
53379         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
53380
53381 2006-06-27  Bruno Haible  <bruno@clisp.org>
53382
53383         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
53384
53385 2006-06-26  Simon Josefsson  <jas@extundo.com>
53386
53387         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
53388         present.
53389
53390 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
53391
53392         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
53393         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
53394         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
53395
53396 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
53397
53398         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
53399
53400 2006-06-26  Bruno Haible  <bruno@clisp.org>
53401
53402         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
53403
53404 2006-06-26  Bruno Haible  <bruno@clisp.org>
53405
53406         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
53407
53408 2006-06-26  Bruno Haible  <bruno@clisp.org>
53409
53410         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
53411         SGI C compiler in pre-C99 mode.
53412         Suggested by Mark D. Baushke and Larry Jones.
53413
53414 2006-06-26  Bruno Haible  <bruno@clisp.org>
53415
53416         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
53417         WCHAR_MAX.
53418         Reported by Mark D. Baushke and Larry Jones.
53419
53420 2006-06-26  Bruno Haible  <bruno@clisp.org>
53421
53422         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
53423         in pre-C99 mode.
53424         Suggested by Mark D. Baushke and Larry Jones.
53425
53426 2006-06-23  Simon Josefsson  <jas@extundo.com>
53427             Bruno Haible  <bruno@clisp.org>
53428
53429         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
53430         Emit mostlyclean-local rule.
53431         (func_emit_tests_Makefile_am): Likewise.
53432         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
53433
53434 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
53435
53436         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
53437
53438 2006-06-23  Bruno Haible  <bruno@clisp.org>
53439
53440         * tests/test-stdint.c: Update to match ISO C 99 Technical
53441         Corrigendum 1.
53442
53443 2006-06-23  Bruno Haible  <bruno@clisp.org>
53444
53445         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
53446
53447 2006-06-23  Bruno Haible  <bruno@clisp.org>
53448
53449         * lib/stdint_.h: Treat IRIX like OpenBSD.
53450
53451 2006-06-23  Bruno Haible  <bruno@clisp.org>
53452
53453         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
53454         ISO C 99 Technical Corrigendum 1.
53455
53456 2006-06-22  Simon Josefsson  <jas@extundo.com>
53457
53458         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
53459         MinGW.
53460
53461 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53462
53463         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
53464         needed.  Some compiler complained about some of them.  Problem reported
53465         by Larry Jones in
53466         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
53467
53468 2006-06-21  Simon Josefsson  <jas@extundo.com>
53469
53470         * tests/test-getaddrinfo.c: New file.
53471
53472         * modules/getaddrinfo-tests: New file.
53473
53474         * MODULES.html.sh: Add inet_pton.
53475
53476         * modules/inet_pton: New file.
53477
53478 2006-06-21  Simon Josefsson  <jas@extundo.com>
53479
53480         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
53481         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
53482         of using the (limited) gnulib implementation on Windows XP.
53483
53484         * m4/inet_pton.m4: New file.
53485
53486 2006-06-21  Simon Josefsson  <jas@extundo.com>
53487
53488         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
53489         variable.
53490
53491         * lib/socket_.h: Don't define WINVER.
53492
53493         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
53494         slightly modified to work in gnulib.
53495
53496 2006-06-21  Simon Josefsson  <jas@extundo.com>
53497
53498         * doc/gnulib.texi (Windows sockets): Add.
53499
53500 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53501
53502         * lib/read-file.c (fread_file): Start with buffer allocation of
53503         0 bytes rather than 1 byte; this simplifies the code.
53504         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
53505         code to free buffer and save/restore errno.
53506         (internal_read_file): Remove unused local.
53507
53508 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53509
53510         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
53511         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
53512         Problem reported by Denis Excoffier in
53513         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
53514
53515 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53516
53517         * modules/sys_socket, modules/socklen: Include sys/types since
53518         FreeBSD 4.x's sys/socket.h needs it.
53519
53520 2006-06-19  Simon Josefsson  <jas@extundo.com>
53521
53522         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
53523
53524 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53525
53526         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
53527
53528 2006-06-19  Bruno Haible  <bruno@clisp.org>
53529
53530         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
53531         and FULL_PATH_INTTYPES_H in angle brackets.
53532         Reported by Mark D. Baushke <mdb@gnu.org>.
53533
53534 2006-06-17  Eric Blake  <ebb9@byu.net>
53535
53536         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
53537         errno.
53538
53539 2006-06-17  Bruno Haible  <bruno@clisp.org>
53540
53541         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
53542         <sys/inttypes.h>.
53543
53544 2006-06-17  Bruno Haible  <bruno@clisp.org>
53545
53546         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
53547         whether errno is declared. Assume <errno.h> declares errno.
53548
53549 2006-06-17  Bruno Haible  <bruno@clisp.org>
53550
53551         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
53552
53553 2006-06-17  Bruno Haible  <bruno@clisp.org>
53554
53555         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
53556         problem on Solaris 2.5.1.
53557
53558 2006-06-16  Eric Blake  <ebb9@byu.net>
53559
53560         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
53561         * lib/unicodeio.c [!defined errno]: Likewise.
53562         * lib/strtol.c [!defined errno]: Likewise.
53563         * lib/strtod.c [!defined errno]: Likewise.
53564
53565 2006-06-15  Eric Blake  <ebb9@byu.net>
53566
53567         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
53568
53569 2006-06-15  Eric Blake  <ebb9@byu.net>
53570
53571         * config/srclist.txt (ssize_t.m4): Lose sync.
53572
53573 2006-06-15  Bruno Haible  <bruno@clisp.org>
53574
53575         * modules/stdint (Files): Include m4/full-header-path.m4,
53576         m4/size_max.m4, m4/wchar_t.m4.
53577         (Makefile.am): Many more substitutions.
53578         * modules/stdint-tests: New file.
53579         * tests/test-stdint.c: New file.
53580
53581 2006-06-15  Bruno Haible  <bruno@clisp.org>
53582
53583         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
53584         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
53585         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
53586         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
53587         gl_CHECK_TYPE_SAME): New macros.
53588
53589 2006-06-15  Bruno Haible  <bruno@clisp.org>
53590
53591         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
53592
53593 2006-06-15  Bruno Haible  <bruno@clisp.org>
53594
53595         * lib/stdint_.h: Rewritten to be fully auto-configured.
53596         Fixes bug on HP-UX/IA64.
53597
53598 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
53599
53600         * lib/getdate.y (__attribute__): Don't define if already defined.
53601         Problem reported by Larry Jones.
53602         * lib/utimens.c (__attribute__): Likewise.
53603
53604 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
53605
53606         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
53607         reported by Andreas Schwab.
53608
53609 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53610             Bruno Haible  <bruno@clisp.org>
53611
53612         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
53613         check for the declaration of strnlen and a run test that exposes the
53614         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
53615         rpl_strndup.
53616
53617 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53618             Bruno Haible  <bruno@clisp.org>
53619
53620         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
53621
53622 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53623
53624         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
53625         compile test, for Tru64 4.0D.
53626
53627 2006-05-28  Karl Berry  <karl@gnu.org>
53628
53629         * config/srclist.txt (printf-args.c): lose sync.
53630
53631 2006-05-26  Martin Lambers  <marlam@marlam.de>
53632
53633         * lib/getpass.c: Updates the test for the native W32 API, and adds
53634         missing includes, thus fixing compilation warnings.
53635
53636 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
53637
53638         * lib/exclude.c (exclude_fnmatch): New function.
53639         (excluded_file_name): Call exclude_fnmatch.
53640         * lib/exclude.h (excluded_file_name): New prototype
53641
53642 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
53643
53644         * lib/tempname.c (small_open, large_open): New macros.
53645         (__open, __open64) [!_LIBC]: Remove.
53646         (__gen_tempname): Use small_open and large_open instead of __open
53647         and __open64.  This fixes a portability bug on HP-UX 11.11i
53648         reported by Simon Wing-Tang in
53649         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
53650
53651 2006-05-24  Bruno Haible  <bruno@clisp.org>
53652
53653         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
53654         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
53655         Reported by Thorsten Maerz <torte@netztorte.de> via
53656         Aaron Stone <aaron@serendipity.cx>.
53657
53658 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53659
53660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
53661         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
53662         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
53663         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
53664         not really conditional on the cache.
53665         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
53666
53667 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53668
53669         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
53670         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
53671         (my_usleep): Don't mishandle maximum value.
53672
53673 2006-05-19  Jim Meyering  <jim@meyering.net>
53674
53675         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
53676
53677 2006-05-17  Bruno Haible  <bruno@clisp.org>
53678
53679         Cygwin portability.
53680         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
53681
53682 2006-05-17  Bruno Haible  <bruno@clisp.org>
53683
53684         * lib/stdint_.h: Fix recognition of Cygwin.
53685
53686 2006-05-15  Bruno Haible  <bruno@clisp.org>
53687
53688         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
53689         on libtool patch by Ralf Wildenhues.
53690
53691 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53692
53693         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
53694         test for C99 conformance; (bool) 0.5 is an integer constant
53695         expression, but (bool) -0.5 is not.  Problem reported by Fedor
53696         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
53697
53698 2006-05-11  Simon Josefsson  <jas@extundo.com>
53699
53700         * m4/xvasprintf.m4: Fix obvious typo.
53701
53702 2006-05-11  Jim Meyering  <jim@meyering.net>
53703
53704         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
53705         James Lemley.
53706
53707 2006-05-10  Simon Josefsson  <jas@extundo.com>
53708
53709         * lib/md4.c: Typo fix, update copyright years.
53710         (K1, K2): Don't use L because it turn computations into 64-bit on
53711         64-bit platforms.
53712
53713 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
53714
53715         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
53716         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
53717         unwanted sign propagation, e.g., on hosts with 64-bit int.
53718         There still are some problems with reeelly weird theoretical hosts
53719         (e.g., 33-bit int) but it's not worth worrying about now.
53720         * lib/sha1.c (rol): Likewise.
53721         (K1, K2, K3, K4): Remove unnecessary L suffix.
53722
53723 2006-05-10  Bruno Haible  <bruno@clisp.org>
53724
53725         * lib/des.c: Cast to avoid warnings.
53726
53727 2006-05-09  Bruno Haible  <bruno@clisp.org>
53728
53729         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
53730         (Depends-on): Depend also on xsize, stdarg.
53731         (configure.ac): Add gl_XVASPRINTF.
53732
53733 2006-05-09  Bruno Haible  <bruno@clisp.org>
53734
53735         * m4/xvasprintf.m4: New file.
53736
53737 2006-05-09  Bruno Haible  <bruno@clisp.org>
53738
53739         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
53740         (EOVERFLOW): Define fallback value.
53741         (xstrcat): New function.
53742         (xvasprintf): Recognize the special case of a string concatenation.
53743
53744 2006-05-08  Eric Blake  <ebb9@byu.net>
53745
53746         * gnulib-tool (func_version): Base copyright year on CVS date.
53747         (func_emit_copyright_notice): New function.
53748         (func_emit_lib_Makefile_am): Use it.
53749         (func_emit_tests_Makefile_am): Likewise.
53750         (func_import): Likewise.
53751
53752 2006-05-08  Bruno Haible  <bruno@clisp.org>
53753
53754         * modules/stdarg: New file.
53755         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
53756
53757 2006-05-08  Bruno Haible  <bruno@clisp.org>
53758
53759         * m4/stdarg.m4: New file, from GNU gettext.
53760
53761 2006-05-08  Bruno Haible  <bruno@clisp.org>
53762
53763         * config/srclist.txt (build-aux/config.rpath): different from latest
53764         release.
53765
53766 2006-05-08  Bruno Haible  <bruno@clisp.org>
53767
53768         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
53769
53770 2006-05-05  Jim Meyering  <jim@meyering.net>
53771
53772         * m4/warning.m4: New file, derived from bison's file by the same name.
53773
53774 2006-05-03  Bruno Haible  <bruno@clisp.org>
53775
53776         * lib/stdint_.h: Shorter URL.
53777         * lib/inttypes.h: Likewise.
53778
53779 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53780
53781         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
53782
53783 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53784
53785         * lib/verify.h: Document the internals better.  Most of this change
53786         was written by Bruno Haible.
53787
53788 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53789
53790         * doc/verify.texi: New file, partly based on a proposal by
53791         Bruno Haible.
53792
53793 2006-05-02  Bruno Haible  <bruno@clisp.org>
53794
53795         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
53796         test from here...
53797         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
53798
53799 2006-04-29  Bruno Haible  <bruno@clisp.org>
53800
53801         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
53802         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
53803
53804 2006-04-29  Bruno Haible  <bruno@clisp.org>
53805
53806         * gnulib-tool: Make --update option actually work.
53807
53808 2006-04-29  Bruno Haible  <bruno@clisp.org>
53809
53810         * doc/gcd.texi: New file.
53811         * doc/gnulib.texi: Include it.
53812
53813 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
53814
53815         * lib/getdate.y (get_date): When adding relative date, start with the
53816         initial time, not with the result of the first mktime call.
53817
53818 2006-04-25  Bruno Haible  <bruno@clisp.org>
53819
53820         * gnulib-tool (func_import): Output the include directives in three
53821         blocks, sorted separately.
53822         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53823
53824 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53825
53826         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
53827         to define main with arguments, for C++.  Reported by Eric Blake.
53828         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
53829         Prefer 'int main ()' to 'int main (void)', for C++.
53830         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
53831         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
53832         for 'main', for C99 and C++.
53833
53834 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53835
53836         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
53837         Don't assume that exit status -1 is valid.
53838         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53839         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53840         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
53841         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
53842         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
53843         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
53844         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
53845         functions can be used without declaring them, or that you can
53846         exit with status -1.
53847         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
53848
53849 2006-04-24  Karl Berry  <karl@gnu.org>
53850
53851         * config/srclist.txt (longdouble.m4): sync lost.
53852
53853 2006-04-24  Eric Blake  <ebb9@byu.net>
53854
53855         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
53856
53857 2006-04-24  Bruno Haible  <bruno@clisp.org>
53858
53859         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
53860         poll() implementation in AIX.
53861         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53862
53863 2006-04-24  Bruno Haible  <bruno@clisp.org>
53864
53865         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
53866         assigned exactly once.
53867
53868 2006-04-23  Claudio Fontana  <claudio@gnu.org>
53869             Bruno Haible  <bruno@clisp.org>
53870
53871         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
53872         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
53873         for AM_CPPFLAGS.
53874
53875 2006-04-23  Bruno Haible  <bruno@clisp.org>
53876
53877         * modules/copy-file: Depend on unistd.
53878         * modules/execute: Likewise.
53879         * modules/fatal-signal: Likewise.
53880         * modules/findprog: Likewise.
53881         * modules/mkdtemp : Likewise.
53882         * modules/pipe: Likewise.
53883         * modules/wait-process: Likewise.
53884
53885 2006-04-23  Bruno Haible  <bruno@clisp.org>
53886
53887         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
53888         condition was already detected.
53889         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53890
53891 2006-04-23  Bruno Haible  <bruno@clisp.org>
53892
53893         * lib/copy-file.c: Include <unistd.h> unconditionally.
53894         * lib/execute.c: Likewise.
53895         * lib/fatal-signal.c: Likewise.
53896         * lib/findprog.c: Likewise.
53897         * lib/mkdtemp.c: Likewise.
53898         * lib/pipe.h: Likewise.
53899         * lib/pipe.c: Likewise.
53900         * lib/wait-process.h: Likewise.
53901
53902 2006-04-23  Bruno Haible  <bruno@clisp.org>
53903
53904         * gnulib-tool (func_usage): Fix --import description. Document
53905         --update.
53906         (func_import): Create temporary file in a temporary directory, if
53907         --dry-run is specified. Silence errors from 'grep' when there are no
53908         m4 files in $m4dir.
53909         (func_create_testdir): Silence errors from 'grep' when there are no
53910         m4 files in $m4dir.
53911         Reported by Karl Berry <karl@freefriends.org>.
53912
53913 2006-04-20  Bruno Haible  <bruno@clisp.org>
53914
53915         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
53916         one argument, so that the code will be portable to Autoconf 2.60.
53917         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
53918         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53919         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
53920
53921 2006-04-19  Derek Price  <derek@ximbiot.com>
53922             Eric Blake  <ebb9@byu.net>
53923
53924         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
53925         rather than "/full/path.h".  Update comment to match.  Shorten &
53926         generalize m4_translit call via AS_TR_CPP.
53927
53928 2006-04-19  Derek Price  <derek@ximbiot.com>
53929             Eric Blake  <ebb9@byu.net>
53930
53931         * lib/inttypes.h: Correct grammar in comment.
53932
53933 2006-04-18  Derek Price  <derek@ximbiot.com>
53934             Paul Eggert  <eggert@cs.ucla.edu>
53935
53936         * modules/inttypes: New file.
53937         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
53938
53939 2006-04-18  Derek Price  <derek@ximbiot.com>
53940             Paul Eggert  <eggert@cs.ucla.edu>
53941
53942         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
53943         New files.
53944
53945 2006-04-18  Derek Price  <derek@ximbiot.com>
53946             Paul Eggert  <eggert@cs.ucla.edu>
53947
53948         * lib/inttypes.h: New file.
53949         * lib/strtoimax.c: Assume <inttypes.h>.
53950
53951 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
53952
53953         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
53954         isn't mounted.  Problem reported by Kir Kolyshkin.
53955
53956 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53957
53958         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
53959         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
53960         Derek R. Price.
53961         * lib/regex.h (RE_DUP_MAX): Update comment to match current
53962         implementation.
53963
53964 2006-04-12  Eric Blake  <ebb9@byu.net>
53965
53966         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
53967         is now done automatically by the corresponding Autoconf macro.
53968
53969 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
53970
53971         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
53972         time_r.h.
53973
53974 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53975
53976         Merge regex changes from libc, removing some of our
53977         POSIX-conformance changes that were rejected and redoing them in a
53978         less-intrusive way.
53979
53980         * lib/regcomp.c (re_compile_internal, init_dfa):
53981         Length arg is now size_t, not Idx.  All uses changed.
53982         (peek_token): Forward decl now says internal_function.
53983         (__re_error_msgid, __re_error_msgid_idx):
53984         Now static rather than extern with attribute_hidden.
53985         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
53986         For some reason libc prefers K&R style defns for external functions.
53987         (regerror) [!defined _LIBC]: Likewise.
53988         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
53989         (seek_collating_symbol_entry, lookup_collation_sequence_value):
53990         (build_range_exp, build_collating_symbol):
53991         Use K&R-style defn.
53992         (re_compile_fastmap): Use '\0' to memset, not 0.
53993         (utf8_sb_map): Make the calculations more obvious.
53994         (init_dfa, parse_bracket_exp, build_charclass_op):
53995         Call calloc and cast result, as glibc does.
53996         (init_word_char, fetch_token, peek_token, peek_token_bracket):
53997         (build_range_exp, build_collating_symbol):
53998         Now internal functions.
53999
54000         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
54001
54002         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
54003         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
54004         Don't depend on VMS; depend on __VMS instead, for POSIX
54005         namespace cleanness.
54006         (regoff_t): Define to ssize_t, not long int.
54007
54008         Remove the REG_ macros named below.  Instead, make the old names
54009         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
54010         __USE_GNU_REGEX.
54011         (REG_BACKSLASH_ESCAPE_IN_LISTS):
54012         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
54013         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
54014         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
54015         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
54016         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
54017         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
54018         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
54019         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
54020         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
54021         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
54022         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
54023         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
54024         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
54025         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
54026         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
54027         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
54028         (REG_NREGS):
54029         Remove.  All uses replaced by the old RE_* names.
54030         (RE_BACKSLASH_ESCAPE_IN_LISTS):
54031         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
54032         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
54033         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
54034         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
54035         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
54036         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
54037         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
54038         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
54039         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
54040         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
54041         Don't bother having these macros be independent of each others'
54042         values, since they no longer exist in the POSIX name space.
54043
54044         Rename the following member names back to their old names,
54045         unless !__USE_GNU_REGEX.  All uses changed back.
54046         (buffer): Renamed from re_buffer.
54047         (allocated): Renamed from re_allocated.
54048         (used): Renamed from re_used.
54049         (syntax): Renamed from re_syntax.
54050         (fastmap): Renamed from re_fastmap.
54051         (translate): Renamed from re_translate.
54052         (can_be_null): Renamed from re_can_be_null.
54053         (regs_allocated): Renamed from re_regs_allocated.
54054         (fastmap_accurate): Renamed from re_fastmap_accurate.
54055         (no_sub): Renamed from re_no_sub.
54056         (not_bol): Renamed from re_not_bol.
54057         (not_eol): Renamed from re_not_eol.
54058         (newline_anchor): Renamed from re_newline_anchor.
54059         (num_regs): Renamed from rm_num_regs.
54060         (start): Renamed from rm_start.
54061         (end): Renamed from rm_end.
54062
54063         (free_state): Move up a bit.
54064
54065         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
54066         #define to be empty.
54067         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
54068         when that is what is intended.
54069         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
54070         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
54071         (MAX): New macro.
54072         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
54073         All uses changed back to re_malloc, etc.  It's now the caller's
54074         responsibility to check for overflow; all callers changed.
54075         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
54076         (re_x2nrealloc): Remove.
54077         (free_state): Remove decl.
54078
54079         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
54080         (re_set_registers, re_exec):
54081         Use K&R-style defn.
54082
54083         2006-01-31  Roland McGrath  <roland@redhat.com>
54084
54085         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
54086         Reported by Mike Frysinger <vapier@gentoo.org>.
54087
54088         2006-01-15  Andreas Jaeger  <aj@suse.de>
54089
54090         [BZ #1950]
54091         * lib/regex_internal.c (re_string_reconstruct): Adjust for
54092         build_wcs_upper_buffer change.
54093         (build_wcs_upper_buffer): Change return type.
54094
54095         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
54096
54097         * lib/regex_internal.h: Include <stdint.h> if available.
54098
54099         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
54100
54101         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
54102
54103         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54104
54105         * lib/regcomp.c: Adjust for changed secondary hash function.
54106
54107         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
54108
54109         * lib/regex.h: Pretty printing.
54110         Clean up namespace a bit.
54111
54112         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
54113
54114         * lib/regexec.c (update_cur_sifted_state, check_arrival,
54115         check_arrival_add_next_nodes): Avoid using uninitialized variable.
54116
54117         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54118                     Ulrich Drepper  <drepper@redhat.com>
54119
54120         [BZ #1302]
54121         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
54122         changed.
54123         (bitset_word_t): Renamed from bitset_word.  All uses changed.
54124
54125         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
54126
54127         [BZ #281]
54128         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
54129         * lib/regcomp.c: Remove unnecessary uses of
54130         unsigned RE_TRANSLATE_TYPE.
54131         * lib/regex_internal.h: Likewise.
54132         * lib/regex_internal.c: Likewise.
54133         * lib/regexec.c: Likewise.
54134         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
54135
54136         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
54137
54138         * lib/regexec.c (find_recover_state): Remove unnecessary
54139         initialization.
54140         (transit_state_bkref): Make DFA a const pointer.
54141         (get_subexp): Likewise.
54142         (check_arrival): Likewise.
54143         (update_cur_sifted_state): Likewise.
54144         (re_search_internal): Likewise.
54145         (prune_impossible_nodes): Likewise.
54146         (acquire_init_state_context): Likewise.
54147         (proceed_next_node): Likewise.
54148         (set_regs): Likewise.
54149         (free_fail_stack_return): Likewise.
54150         (check_arrival_expand_ecl): Mark DFA parameter as const.
54151         (check_arrival_expand_ecl_sub): Likewise.
54152         (check_subexp_limits): Likewise.
54153         (sub_epsilon_src_nodes):  Likewise.
54154         (add_epsilon_src_nodes):  Likewise.
54155         (merge_state_array): Likewise.
54156         (update_regs): Likewise.
54157         (build_trtable): Likewise.
54158         (sift_states_backward): Mark MCTX parameter as const.
54159         (build_sifted_states): Likewise.
54160         (update_cur_sifted_state): Likewise.
54161         (sift_states_mkref): Likewise.
54162         (check_arrival_expand_ecl): Mark eclosure as const.
54163         (check_dst_limits_calc_pos_1): Likewise.
54164         * lib/regex_internal.h (re_match_context_t): Make dfa a const
54165         pointer.
54166
54167         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
54168
54169         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
54170         (transit_state_sb): Likewise.
54171         (transit_state_mb): Likewise.
54172         (sift_states_iter_mb): Likewise.
54173         (check_arrival_add_next_nodes): Likewise.
54174         (check_node_accept_bytes): Change first parameter to pointer-to-const.
54175         [_LIBC] (re_search_2_stub): Use mempcpy.
54176
54177         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
54178         mbrtowc for very simple UTF-8 case.
54179
54180         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
54181         a pointer-to-const.
54182         (re_acquire_state_context): Likewise.
54183         * lib/regex_internal.h: Adjust prototypes.
54184
54185         * lib/regex.c: Prevent using C++ compilers.
54186
54187         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
54188         (re_acquire_state_context): Likewise.
54189
54190 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54191
54192         * modules/regex (Depends-on): Add ssize_t.
54193
54194 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54195
54196         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
54197         translation table.
54198
54199 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54200
54201         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
54202
54203 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
54204             Bruno Haible  <bruno@clisp.org>
54205
54206         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
54207         <sys/types.h> and <inttypes.h>.
54208
54209 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54210
54211         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
54212         `__error_t_defined', so argp.h will not typedef the former.
54213
54214 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
54215
54216         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
54217         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
54218         glibc names.  Even if glibc is changed to conform to POSIX, the
54219         traditional names will be available anyway, since regex depends on
54220         the extensions module.  Also, fix a longstanding typo in the
54221         implementation of Spencer ERE test #75 from grep 2.3.  Problems
54222         reported by Emanuele Giaquinta.  Also, change sense of cached
54223         variable, so that the message makes sense.
54224
54225 2006-03-24  Simon Josefsson  <jas@extundo.com>
54226
54227         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
54228         including some doc fixes.
54229         (base64_encode_alloc): Fix +1 bug on allocation failures.
54230
54231 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54232
54233         * lib/base64.c (base64_encode): Do not read past end of array with
54234         unsanitized input on systems with CHAR_BIT > 8.
54235
54236 2006-03-24  Eric Blake  <ebb9@byu.net>
54237
54238         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
54239
54240 2006-03-22  Karl Berry  <karl@gnu.org>
54241
54242         * config/srclist.txt (*setenv.[ch]): get from coreutils.
54243         * config/srclistvars.sh (COREUTILS): new var.
54244
54245 2006-03-17  Jim Meyering  <jim@meyering.net>
54246
54247         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
54248         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
54249
54250 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
54251
54252         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
54253         no longer needs it.  Instead, check that regoff_t is as least
54254         as wide as ptrdiff_t.
54255
54256         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
54257         so that our regex.h stays compatible with the installed regex.
54258         This is helpful for installers who configure --without-included-regex.
54259         Problem reported by Emanuele Giaquinta.
54260
54261 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
54262
54263         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
54264         Typedef to long int, not to off_, as POSIX will likely change
54265         in that direction.
54266
54267 2006-03-15  Eric Blake  <ebb9@byu.net>
54268
54269         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
54270
54271 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54272
54273         * lib/argp-help.c (validate_uparams): Fix typo
54274         * lib/argp-parse.c (argp_default_options): Consistently begin help
54275         messages with a lowercase letter.
54276
54277 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
54278
54279         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
54280         overrun buffers and shouldn't be used (much as gets shouldn't be
54281         used).
54282         * lib/time_r.c (asctime_r, ctime_r): Likewise.
54283
54284 2006-03-08  Simon Josefsson  <jas@extundo.com>
54285
54286         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
54287         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54288
54289 2006-03-08  Simon Josefsson  <jas@extundo.com>
54290
54291         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
54292         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54293
54294 2006-03-08  Simon Josefsson  <jas@extundo.com>
54295
54296         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
54297         signal that configure disabled the device.
54298
54299 2006-03-08  Simon Josefsson  <jas@extundo.com>
54300
54301         * build-aux/maint.mk: Fix refresh-po, to handle no translated
54302         languages.
54303
54304 2006-03-07  Simon Josefsson  <jas@extundo.com>
54305
54306         * modules/getopt (Depends-on): Add unistd.
54307
54308         * modules/unistd: New file.
54309
54310 2006-03-07  Simon Josefsson  <jas@extundo.com>
54311
54312         * modules/gc-random: New file.
54313
54314 2006-03-07  Simon Josefsson  <jas@extundo.com>
54315
54316         * m4/unistd_h.m4: New file.
54317
54318 2006-03-07  Simon Josefsson  <jas@extundo.com>
54319
54320         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
54321         test to be side-effect free by storing the result in the cache
54322         variable gl_cv_lib_readline, and moving the assignment of
54323         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
54324         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54325
54326 2006-03-07  Simon Josefsson  <jas@extundo.com>
54327
54328         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
54329         error on missing devices (the functions will return an error).
54330
54331         * m4/gc.m4: Move random stuff to gc-random.m4
54332
54333 2006-03-07  Simon Josefsson  <jas@extundo.com>
54334
54335         * lib/unistd_.h: New file.
54336
54337 2006-03-07  Simon Josefsson  <jas@extundo.com>
54338
54339         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
54340
54341 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54342
54343         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
54344         Problem reported by Juan Manuel Guerrero.
54345
54346 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54347
54348         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
54349         the unistd module.
54350         * lib/getlogin_r.c: Likewise.
54351         * lib/getlogin_r.h: Likewise.
54352         * lib/glob.c: Likewise.
54353         * lib/pagealign_alloc.c: Likewise.
54354         * lib/unistd_.h: Remove; no longer needed.
54355
54356 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54357
54358         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54359         Add unistd.
54360         * modules/c-stack (Depends-on): Add unistd.
54361         * modules/getlogin_r: Likewise.
54362         * modules/glob: Likewise.
54363         * modules/pagealign_alloc: Likewise.
54364         * modules/unistd (Files): Remove lib/unistd_.h.
54365         (EXTRA_DIST): Remove.
54366         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
54367         need unistd_.h.
54368         (MOSTLYCLEANFILES): Remove unistd.h-t.
54369
54370 2006-03-03  Simon Josefsson  <jas@extundo.com>
54371
54372         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
54373
54374 2006-03-03  Simon Josefsson  <jas@extundo.com>
54375
54376         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
54377         libidn and bison.
54378
54379 2006-03-03  Simon Josefsson  <jas@extundo.com>
54380
54381         * build-aux/maint.mk: Add indent target.
54382
54383 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
54384
54385         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
54386         our replacement poll.h in any case, to avoid a differing
54387         declaration from a system header.  Seen on AIX.
54388
54389 2006-03-01  Simon Josefsson  <jas@extundo.com>
54390
54391         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
54392         <kasal@ucw.cz>.
54393
54394 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54395
54396         * modules/gettime (Depends-on): Add extensions module.
54397         * modules/nanosleep (Depends-on): Likewise.
54398         * modules/settime (Depends-on): Likewise.
54399
54400 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54401
54402         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
54403         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
54404         pedantically.
54405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54406         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
54407
54408         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
54409         not "==".  Reported by Ralf Wildenhues.
54410
54411 2006-03-01  Karl Berry  <karl@gnu.org>
54412
54413         * doc/Copyright/request-*: new files, synced from gnuorg.
54414
54415 2006-03-01  Karl Berry  <karl@gnu.org>
54416
54417         * config/srclist.txt (Copyright/*): new entries.
54418
54419 2006-02-28  Simon Josefsson  <jas@extundo.com>
54420
54421         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
54422
54423 2006-02-27  Simon Josefsson  <jas@extundo.com>
54424
54425         * lib/base64.h: Indent #define's.  From Jim Meyering
54426         <jim@meyering.net>.
54427
54428 2006-02-27  Jim Meyering  <jim@meyering.net>
54429
54430         Revert the change of 2006-02-24, so these files can continue
54431         to be sync'd from gettext.
54432         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
54433         of `config.h'.
54434
54435 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
54436
54437         * modules/intprops: New file.
54438         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54439         Add intprops.
54440         * modules/getloadavg (Files): Remove lib/intprops.h.
54441         (Depends-on): Add intprops.
54442         * modules/human: Likewise.
54443         * modules/inttostr: Likewise.
54444         * modules/openat: Likewise.
54445         * modules/sig2str: Likewise.
54446         * modules/userspec: Likewise.
54447         * modules/utimecmp: Likewise.
54448         * modules/xnanosleep: Likewise.
54449         * modules/xstrtol: Likewise.
54450
54451 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
54452
54453         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
54454         * modules/lock-tests (TESTS): Use $(EXEEXT).
54455         * modules/tls-tests: Likewise.
54456         * modules/argp-tests: Likewise.
54457         (check_PROGRAMS): New var, replacing...
54458         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
54459
54460 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54461
54462         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
54463         `config.h'.
54464
54465 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54466
54467         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
54468
54469 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54470
54471         Sync from coreutils.
54472         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
54473         gl_CHDIR_SAFER.
54474
54475 2006-02-22  Jim Meyering  <jim@meyering.net>
54476
54477         Sync from coreutils.
54478         * m4/chdir-safer.m4: New file.
54479
54480 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54481
54482         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
54483         AT_FDCWD exceeds INT_MAX.
54484         * lib/openat.h (AT_FDCWD): Likewise.
54485
54486 2006-02-17  Eric Blake  <address@hidden>
54487
54488         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
54489
54490 2006-02-16  Simon Josefsson  <jas@extundo.com>
54491
54492         * modules/getaddrinfo (Depends-on): Add sys_socket.
54493
54494 2006-02-15  Simon Josefsson  <jas@extundo.com>
54495
54496         * build-aux/maint.mk: Add dsyntax-check rule.
54497
54498 2006-02-15  Eric Blake  <ebb9@byu.net>
54499
54500         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
54501         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
54502         'present but cannot compile' warnings on cygwin.
54503         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
54504         use ws2tcpip.h if sys/socket.h works.
54505         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
54506         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
54507
54508 2006-02-14  Simon Josefsson  <jas@extundo.com>
54509
54510         * modules/maintainer-makefile (Files): Rename.
54511
54512         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
54513         and (the local) Makefile.cfg to maint-cfg.mk.
54514
54515         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
54516         to the latter.
54517
54518         * modules/maintainer-makefile: New module.
54519
54520         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
54521         severaly stripped to make it possible to build it up from scratch
54522         with reliable tests.
54523
54524         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
54525         fixes to permit overriding the default actions when configure and
54526         makefile are not available.
54527
54528 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54529
54530         Sync from coreutils.
54531         * modules/lstat (Depends-on): Don't depend on xalloc.
54532         (License): Change from GPL to LGPL, since this is now simply a
54533         replacement for a libc function.
54534
54535 2006-02-14  Jim Meyering  <jim@meyering.net>
54536
54537         Sync from coreutils.
54538
54539         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
54540         failure on deficient systems, and simplify gnulib lgpl dependencies.
54541         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
54542         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
54543
54544         * lib/xalloc-die.c: Remove unused definition of N_.
54545
54546 2006-02-14  Jim Meyering  <jim@meyering.net>
54547
54548         Sync from coreutils.
54549         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
54550         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
54551         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
54552         double-quote uses of that variable, to accommodate the rare case in
54553         which getmntent is available in none of the libraries checked.  This
54554         happens at least on FreeBSD 5.0.
54555
54556 2006-02-13  Simon Josefsson  <jas@extundo.com>
54557
54558         * gnulib-tool (Usage): Fix --import, from
54559         karl@freefriends.org (Karl Berry).
54560
54561 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54562
54563         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
54564
54565 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
54566
54567         * lib/argp-namefrob.h: Restore changes accidentally lost during the
54568         "autoupdate" on 2005-12-12.
54569
54570 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54571
54572         * modules/closeout (Depends-on): Remove atexit.
54573
54574 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54575
54576         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
54577         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
54578
54579 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54580
54581         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
54582         __EXTENSIONS__ if this causes compilation to fail.  Problem
54583         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
54584         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
54585
54586 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
54587
54588         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
54589         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
54590         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
54591         All uses changed.
54592
54593 2006-01-26  Simon Josefsson  <jas@extundo.com>
54594
54595         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
54596         prototype is visible on mingw32.
54597
54598         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
54599         for mingw32.
54600
54601         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
54602         mingw32).
54603
54604 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54605
54606         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
54607         attempt to open for write; this always fails, at least on POSIX
54608         hosts.  This reinstates the 2006-01-09 change, which was
54609         inadvertently removed.
54610
54611 2006-01-26  Bruno Haible  <bruno@clisp.org>
54612
54613         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
54614         Reported by Paul Eggert.
54615
54616 2006-01-26  Bruno Haible  <bruno@clisp.org>
54617             Paul Eggert  <eggert@cs.ucla.edu>
54618
54619         * lib/stdbool_.h (_Bool)
54620         [(! (defined __cplusplus || defined __BEOS__)
54621           && !defined __GNUC__
54622           && !(defined __HP_cc || defined __xlc__
54623                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
54624                || defined __sgi))]:
54625         #define to signed char in these cases too; this simplifies
54626         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
54627         etc., separately) and makes it more conservative.
54628
54629 2006-01-25  Simon Josefsson  <jas@extundo.com>
54630
54631         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
54632         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
54633         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
54634
54635 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54636
54637         * lib/argp-namefrob.h: Bugfix. Remove stray #
54638
54639 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54640
54641         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
54642         so that we test the test.
54643         Check for yet another HP-UX cc bug involving *bool |= bool.
54644
54645 2006-01-25  Karl Berry  <karl@gnu.org>
54646
54647         * config/srclist.txt (vasnprintf.c): sync lost.
54648
54649 2006-01-25  Jim Meyering  <jim@meyering.net>
54650
54651         Sync from the stable (b5) branch of coreutils:
54652
54653         * lib/fts.c (fts_children): Don't let close() clobber errno from
54654         failed fchdir().
54655
54656         * lib/fts.c (fts_stat): When following a symlink-to-directory,
54657         don't necessarily interpret stat-fails+lstat-succeeds as indicating
54658         a dangling symlink.  That can also happen at least for ELOOP.
54659         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
54660         FYI, this bug predates the inclusion of fts.c in coreutils.
54661
54662         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
54663         in their own block, so pre-c99 compilers don't object.
54664
54665         Avoid the double-free (first in fts_read, second in fts_close) that
54666         would occur when an `active' directory is made inaccessible (e.g.,
54667         via chmod a-x) during a traversal.
54668         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54669         before returning.  Reproduce this failure by
54670         mkdir -p a/b; cd a; chmod a-x . b
54671         Reported by Stavros Passas.
54672
54673 2006-01-25  Jim Meyering  <jim@meyering.net>
54674
54675         * lib/fileblocks.c: Remove more useless parentheses.
54676         * lib/readutmp.h: Likewise.
54677
54678 2006-01-25  Bruno Haible  <bruno@clisp.org>
54679
54680         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
54681         warnings.
54682         Reported by Paul Eggert.
54683
54684 2006-01-25  Bruno Haible  <bruno@clisp.org>
54685
54686         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
54687         rid of a trap command. For Solaris sh.
54688         Reported by Mark D. Baushke <mdb@gnu.org>.
54689
54690 2006-01-24  Simon Josefsson  <jas@extundo.com>
54691
54692         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
54693         Bruno.
54694
54695 2006-01-24  Karl Berry  <karl@gnu.org>
54696
54697         * config/srclist.txt (argp-namefrob.h): sync lost.
54698
54699 2006-01-24  Jim Meyering  <jim@meyering.net>
54700
54701         * modules/openat (Files): Add lib/intprops.h.
54702         From Mark D. Baushke.
54703
54704 2006-01-24  Jim Meyering  <jim@meyering.net>
54705
54706         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
54707         Reported by Mark D. Baushke.
54708
54709 2006-01-24  Jim Meyering  <jim@meyering.net>
54710
54711         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
54712
54713 2006-01-24  Bruno Haible  <bruno@clisp.org>
54714
54715         * modules/strnlen (Maintainer): Change from glibc to all.
54716
54717 2006-01-24  Bruno Haible  <bruno@clisp.org>
54718
54719         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
54720         Patch by Paul Eggert.
54721
54722 2006-01-24  Bruno Haible  <bruno@clisp.org>
54723
54724         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
54725         already has it.
54726         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
54727         2005-11-26.
54728
54729         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
54730         'signed char' to avoid problems with the built-in _Bool type.
54731         Reported by Paul Eggert on 2005-11-26.
54732
54733 2006-01-24  Bruno Haible  <bruno@clisp.org>
54734
54735         * gnulib-tool (func_import): Avoid constructing complicated sed
54736         expressions inside backquote.
54737         Report and solution by Mark D. Baushke <mdb@gnu.org>.
54738
54739 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
54740
54741         These changes imported from libc.
54742         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
54743         test and two separate function calls.
54744         * lib/strndup.c (__strndup): Add libc_hidden_def.
54745
54746 2006-01-23  Simon Josefsson  <jas@extundo.com>
54747
54748         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
54749         Remove the test_*_SOURCES variable: automake infers it by default.
54750         * modules/tls-tests: Likewise.
54751
54752 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54753
54754         Work around porting bugs reported by Dieter in
54755         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
54756         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
54757         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
54758         Include "getopt.h" first, to check interface.
54759         (getenv): Declare only if defined HAVE_DECL_GETENV &&
54760         !HAVE_DECL_GETENV.
54761         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
54762         (__strndup): Revert to K&R-style function dfns, the glibc style.
54763         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
54764         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
54765         Include strnlen.h first, to get prototype properly.
54766         (strnlen): Renamed from __strnlen.
54767         Remove weak alias.
54768
54769 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54770
54771         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
54772
54773 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54774
54775         * config/srclist.txt: Adjust to reflect glibc reorganization.
54776         This affects only comments.
54777
54778 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54779
54780          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
54781          Reported by Bruce Korb <bkorb@gnu.org>.
54782
54783 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54784
54785         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
54786         to pacify gcc -Wswitch-default.
54787
54788 2006-01-22  Bruno Haible  <bruno@clisp.org>
54789
54790         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
54791         temporary buffer for sprintf, take into account the precision also
54792         for 'd', 'i', 'u', 'o', 'x', 'X'.
54793
54794 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54795
54796         * modules/argp-tests: New module
54797         * tests/test-argp.c: New file
54798         * tests/test-argp-2.sh: New file
54799
54800 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54801
54802         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
54803         (__argp_base_name): Removed
54804         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
54805         typo.
54806         (__argp_base_name): Provide macro definition or extern declaration
54807         depending on the configuration
54808
54809 2006-01-20  Simon Josefsson  <jas@extundo.com>
54810
54811         * modules/inet_ntop (Depends-on): Depend on sys_socket.
54812
54813 2006-01-20  Simon Josefsson  <jas@extundo.com>
54814
54815         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
54816
54817 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54818
54819         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
54820         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
54821         Suggested by Bruno Haible.
54822
54823 2006-01-20  Karl Berry  <karl@gnu.org>
54824
54825         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
54826         until changes propagate, I guess.
54827
54828 2006-01-19  Simon Josefsson  <jas@extundo.com>
54829
54830         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
54831
54832 2006-01-19  Simon Josefsson  <jas@extundo.com>
54833
54834         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
54835
54836 2006-01-19  Simon Josefsson  <jas@extundo.com>
54837
54838         * gnulib-tool: Set check_PROGRAMS.
54839
54840         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54841         modules/des-tests, modules/gc-arcfour-tests,
54842         modules/gc-arctwo-tests, modules/gc-des-tests,
54843         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54844         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54845         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54846         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54847         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54848         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
54849         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
54850         test_*_SOURCES.
54851
54852 2006-01-18  Simon Josefsson  <jas@extundo.com>
54853
54854         * modules/socklen (Depends-on): Depend on sys_socket.
54855
54856 2006-01-18  Simon Josefsson  <jas@extundo.com>
54857
54858         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54859         modules/des-tests, modules/gc-arcfour-tests,
54860         modules/gc-arctwo-tests, modules/gc-des-tests,
54861         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54862         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54863         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54864         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54865         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54866         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
54867         $(EXEEXT) to automake TESTS variable, for mingw32.
54868
54869 2006-01-17  Simon Josefsson  <jas@extundo.com>
54870
54871         * modules/socklen (Include): Need sys/socket.h.
54872
54873 2006-01-17  Bruno Haible  <bruno@clisp.org>
54874
54875         * modules/ssize_t (Include): Add <sys/types.h>.
54876
54877 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
54878
54879         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
54880         it's not portable and it doesn't work with cross-compiles.
54881         Problem reported by Bruno Haible.  Fix missing-$ typo in
54882         'test "gl_cv_ignore_unused_libraries" ...' that prevented
54883         -zignore from being used with Sun's C compiler.
54884
54885 2006-01-12  Simon Josefsson  <jas@extundo.com>
54886
54887         * lib/base64.c: Fix warning, reported by Bruno Haible
54888         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
54889
54890 2006-01-12  Bruno Haible  <bruno@clisp.org>
54891
54892         * modules/ldd: New file.
54893         * build-aux/ldd.sh.in: New file.
54894         * MODULES.html.sh (Support for building libraries and executables): Add
54895         ldd.
54896
54897 2006-01-12  Bruno Haible  <bruno@clisp.org>
54898
54899         * m4/ldd.m4: New file.
54900
54901 2006-01-12  Bruno Haible  <bruno@clisp.org>
54902
54903         * gnulib-tool (func_import, func_create_testdir): Don't go into an
54904         endless loop while replacing $auxdir with build-aux.
54905
54906 2006-01-11  Simon Josefsson  <jas@extundo.com>
54907
54908         * lib/stdint_.h (SIZE_MAX): Add missing (.
54909
54910 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
54911
54912         Sync from coreutils.
54913         * lib/md5.c: Fix commentary typos.
54914         (alignof, UNALIGNED_P): No need for a GCC-specific version.
54915         * lib/md5.h (__attribute__): Remove; unused.
54916         * lib/sha1.c: Fix commentary to match md5 better.
54917         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
54918         so that we don't need to worry about alignment.  All uses changed.
54919         This merges the 2005-10-28 md5 change into sha1.
54920
54921 2006-01-11  Jim Meyering  <jim@meyering.net>
54922
54923         Sync from coreutils.
54924         * lib/md5.c (OP): Fix spacing.
54925
54926 2006-01-11  Bruno Haible  <bruno@clisp.org>
54927
54928         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54929         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
54930         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
54931
54932 2006-01-11  Bruno Haible  <bruno@clisp.org>
54933
54934         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54935         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
54936         the "early" section as well.
54937
54938 2006-01-11  Bruno Haible  <bruno@clisp.org>
54939
54940         Avoid "ar: no archive members specified" error on MacOS X.
54941         * gnulib-tool (func_modules_add_dummy): New function.
54942         (func_import, func_create_testdir): Invoke it.
54943
54944 2006-01-11  Bruno Haible  <bruno@clisp.org>
54945
54946         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
54947         with $auxdir in AC_CONFIG_FILES statements.
54948
54949 2006-01-11  Bruno Haible  <bruno@clisp.org>
54950
54951         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54952         Initialize also noinst_HEADERS to empty.
54953
54954 2006-01-11  Bruno Haible  <bruno@clisp.org>
54955
54956         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
54957         variables.
54958         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
54959         autoreconf.
54960
54961 2006-01-11  Bruno Haible  <bruno@clisp.org>
54962
54963         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
54964         overridable by the user.
54965         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54966
54967 2006-01-10  Simon Josefsson  <jas@extundo.com>
54968
54969         * modules/sys_socket: New file.
54970
54971 2006-01-10  Simon Josefsson  <jas@extundo.com>
54972
54973         * m4/sys_socket_h.m4: New file.
54974
54975 2006-01-10  Simon Josefsson  <jas@extundo.com>
54976
54977         * lib/socket_.h: New file.
54978
54979 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54980
54981         * modules/readutmp (Maintainer): Add myself.
54982
54983 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54984
54985         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
54986         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
54987         People who are still concerned with buggy memcmp implementations
54988         can invoke gl_FUNC_MEMCMP themselves.
54989
54990 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54991
54992         * lib/regex_internal.h (BITSET_WORD_BITS):
54993         Work around a bug in 64-bit PGC (before version 6.1-2), where the
54994         preprocessor mishandles large unsigned values as if they were signed.
54995         Problem reported by Claudio Fontana in
54996         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
54997
54998 2006-01-10  Jim Meyering  <jim@meyering.net>
54999
55000         Avoid the double-free (first in fts_read, second in fts_close) that
55001         would occur when an `active' directory is made inaccessible (e.g.,
55002         via chmod a-x) during a traversal.
55003         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55004         before returning.  Reproduce this failure by
55005         mkdir -p a/b; cd a; chmod a-x . b
55006         Reported by Stavros Passas.
55007
55008         Sync from coreutils.
55009         * lib/sha1.c: Tweak grammar in a comment.
55010
55011 2006-01-10  Jim Meyering  <jim@meyering.net>
55012
55013         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
55014         Patch by Joerg Sonnenberger.
55015
55016 2006-01-10  Bruno Haible  <bruno@clisp.org>
55017
55018         * modules/readutmp: Depend on module free.
55019         * modules/strtok_r: Depend on module restrict.
55020
55021 2006-01-10  Bruno Haible  <bruno@clisp.org>
55022
55023         * modules/gettext (configure.ac): Add an invocation of
55024         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
55025
55026 2006-01-10  Bruno Haible  <bruno@clisp.org>
55027
55028         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
55029         Reported by Werner Lemberg <wl@gnu.org>.
55030
55031 2006-01-10  Bruno Haible  <bruno@clisp.org>
55032
55033         * lib/localcharset.c: Update from GNU gettext.
55034
55035 2006-01-10  Bruno Haible  <bruno@clisp.org>
55036
55037         * lib/argp.h (__const): Remove macro. Use const instead.
55038         * lib/argp-fmtstream.h (__const): Likewise.
55039         * lib/glob_.h (__const): Remove macro.
55040         * lib/glob-libc.h: Use const instead of __const.
55041
55042 2006-01-10  Bruno Haible  <bruno@clisp.org>
55043
55044         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
55045         variable.
55046         Needed to avoid an automake error regarding the 'gettext' module.
55047
55048 2006-01-09  Simon Josefsson  <jas@extundo.com>
55049
55050         * modules/inet_ntop (Depends-on): Add restrict.
55051
55052 2006-01-09  Simon Josefsson  <jas@extundo.com>
55053
55054         * modules/gc-rijndael-tests (License): Put under LGPL.
55055
55056         * modules/gc-des-tests (License): Likewise.
55057
55058         * modules/gc-arcfour-tests (License): Likewise.
55059
55060         * modules/gc-arctwo-tests (License): Likewise.
55061
55062         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
55063
55064         * modules/gc-hmac-sha1-tests (Files): Likewise.
55065
55066         * modules/gc-hmac-md5-tests (License): Likewise.
55067
55068         * modules/gc-sha1-tests (License): Likewise.
55069
55070         * modules/gc-md5-tests (License): Likewise.
55071
55072         * modules/gc-md4-tests (License): Likewise.
55073
55074         * modules/gc-md2-tests (License): Likewise.
55075
55076         * modules/gc-tests (License): Likewise.
55077
55078         * modules/des-tests (License): Likewise.
55079
55080         * modules/md4-tests (License): Likewise.
55081
55082         * modules/md2-tests (License): Likewise.
55083
55084 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55085
55086         Sync from coreutils:
55087
55088         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
55089         * modules/lib-ignore: New file.
55090         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
55091         chdir-safer.m4, lchmod.m4.
55092         * modules/openat: Add mkdirat.c, openat-priv.h.
55093
55094 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55095
55096         Sync from coreutils.
55097         * m4/lib-ignore.m4: New file.
55098         * m4/lchmod.m4: New file.
55099
55100 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55101
55102         Sync from coreutils.
55103         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
55104         for write access: POSIX says that must fail.
55105         * lib/fts.c (diropen): Likewise.
55106         * lib/save-cwd.c (save_cwd): Likewise.
55107         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
55108         well, for minor improvements on hosts that lack O_DIRECTORY.
55109         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
55110         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
55111         Fall back on chown if open failed with EACCES.
55112
55113         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
55114         Report an error at compile-time if only a 1-second nominal clock
55115         resolution is found.
55116
55117         * lib/lchmod.h: New file.
55118         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
55119         (make_dir_parents): Use lchown rather than chown, and
55120         lchmod rather than chmod.
55121
55122         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
55123         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
55124         "proc" reported by n0dalus.
55125
55126         * lib/mountlist.c: Include <limits.h>.
55127         (dev_from_mount_options)
55128         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
55129         New function.  It no longer assumes "dev=" has the System V meaning
55130         on Linux (since it doesn't).  It also parses "dev=" more carefully.
55131         (read_file_system_list)
55132         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
55133         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
55134         dev= in that case.
55135
55136         * lib/posixtm.h (PDS_PRE_2000): New macro.
55137         * lib/posixtm.c (year): Arg is now syntax_bits rather than
55138         allow_century.  All usages changed.  Reject dates outside the range
55139         1969-1999 if PDS_PRE_2000 is used.
55140
55141 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55142
55143         Sync from coreutils.
55144         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
55145         (Time of day items): Mention the possibility of leap seconds.
55146         Problem reported by Dr. David Alan Gilbert.
55147
55148 2006-01-09  Jim Meyering  <jim@meyering.net>
55149
55150         Sync from coreutils.
55151
55152         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
55153
55154         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
55155
55156         * lib/modechange.c (mode_compile): Reject an invalid mode string
55157         that starts with an octal digit.  From Andreas Gruenbacher.
55158
55159         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
55160         and dup to open_safer and dup_safer, respectively.
55161         (openat_permissive): Fix typo in comment.
55162
55163         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
55164         "gettext.h"; either no longer needed or are guaranteed by openat.h.
55165         (_): Remove; no longer needed.
55166         (openat): Renamed from rpl_openat; no need for rpl_openat
55167         since openat.h renames openat for us.
55168         Replace most of the body with a call to openat_permissive,
55169         to avoid duplicate code.
55170         Port to (probably hypothetical) environments were mode_t is
55171         wider than int.
55172         (openat_permissive): Require mode arg, so that we can check
55173         types better.  Put it just after flags.  Change cwd failure
55174         indicator from pointer-to-bool to pointer-to-errno-value.
55175         All callers changed.
55176         Invoke openat_save_fail and/or openat_restore_fail if
55177         cwd_errno is null, so that openat can call us.
55178         (openat_permissive, fdopendir, fstatat, unlinkat):
55179         Simplify errno handling to avoid some duplicate code,
55180         as it's OK to set errno on success.
55181         * lib/openat.h: Revamp code so that function macros depend on
55182         __OPENAT_PREFIX only, not also on AT_FDCWD.
55183         (openat_ro): Remove.  Caller changed to use openat_permissive.
55184         (openat_permissive): Now a macro, if not a function.
55185         (openat_restore_fail, openat_save_fail): Now always functions,
55186         since mkdirat needs them even if __OPENAT_PREFIX is defined.
55187
55188         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
55189         and openat.c.
55190         * lib/mkdirat.c: Include openat-priv.h.
55191         Remove definitions of macros defined therein.
55192         * lib/openat.c: Likewise.
55193
55194         * lib/mkdirat.c (mkdirat): New file and function.
55195         * lib/openat.h (mkdirat): Declare.
55196
55197         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
55198
55199         * lib/openat.h (openat_permissive): Declare.
55200         (openat_ro): Define.
55201
55202         * lib/openat.c (EXPECTED_ERRNO): New macro.
55203         (openat_permissive): New function -- used in remove.c rewrite.
55204         (all functions): Set errno just before returning, only if there
55205         was an actual failure.
55206         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
55207
55208         Emulate openat-family functions using Linux's procfs, if possible.
55209         Idea and some code based on Ulrich Drepper's glibc changes.
55210
55211         * lib/openat.c: (BUILD_PROC_NAME): New macro.
55212         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
55213         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
55214         before falling back on save_cwd and restore_cwd.
55215         (fdopendir, fstatat, unlinkat): Likewise.
55216
55217         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
55218         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
55219
55220         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
55221         as second argument to va_arg.  Otherwise, some versions of gcc
55222         warn that `if this code is reached, the program will abort'.
55223
55224 2006-01-09  Jim Meyering  <jim@meyering.net>
55225
55226         Sync from coreutils.
55227         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
55228         Require openat-priv.h.
55229
55230 2006-01-09  Bruno Haible  <bruno@clisp.org>
55231
55232         * modules/strnlen (Include): Use strnlen.h.
55233
55234 2006-01-09  Bruno Haible  <bruno@clisp.org>
55235
55236         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
55237
55238 2006-01-09  Bruno Haible  <bruno@clisp.org>
55239
55240         * lib/sysexit_.h (EX_OK): New macro.
55241         Suggested by Martin Lambers <marlam@marlam.de>.
55242
55243 2006-01-09  Bruno Haible  <bruno@clisp.org>
55244
55245         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
55246         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
55247
55248 2006-01-09  Bruno Haible  <bruno@clisp.org>
55249
55250         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
55251         numbers.
55252
55253 2006-01-09  Bruno Haible  <bruno@clisp.org>
55254
55255         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
55256         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
55257         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
55258         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
55259
55260 2006-01-09  Bruno Haible  <bruno@clisp.org>
55261
55262         * build-aux/javacomp.sh.in: New file, moved from lib/.
55263         * modules/javacomp-script (Files): Update.
55264         (configure.ac): Add AC_CONFIG_FILES invocation.
55265         (EXTRA_DIST): Remove variable.
55266
55267         * build-aux/javaexec.sh.in: New file, moved from lib/.
55268         * modules/javaexec (Files): Update.
55269         (configure.ac): Add AC_CONFIG_FILES invocation.
55270         (EXTRA_DIST): Remove javaexec.sh.in.
55271
55272         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
55273         * modules/csharpcomp-script (Files): Update.
55274         (configure.ac): Add AC_CONFIG_FILES invocation.
55275         (EXTRA_DIST): Remove variable.
55276
55277         * build-aux/csharpexec.sh.in: New file, moved from lib/.
55278         * modules/csharpexec (Files): Update.
55279         (configure.ac): Add AC_CONFIG_FILES invocation.
55280         (EXTRA_DIST): Remove csharpexec.sh.in.
55281
55282 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
55283
55284         Sync from coreutils.
55285
55286         Add POSIX ACL support
55287         * lib/acl.h (copy_acl, set_acl): Add declarations.
55288         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
55289         systems other than Linux.
55290         (chmod_or_fchmod): New function: use fchmod when possible,
55291         and chmod otherwise.
55292         (file_has_acl): Add a POSIX ACL implementation, with a
55293         Linux-specific subcase.
55294         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
55295         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
55296         acls are unsupported.
55297         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
55298         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
55299         are unsupported.
55300
55301 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
55302
55303         Sync from coreutils.
55304         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
55305
55306 2006-01-07  Bruno Haible  <bruno@clisp.org>
55307
55308         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
55309         gl_EARLY.
55310
55311 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55312
55313         * lib/strftime.c (tzname): Don't declare if it is already #defined.
55314         Problem reported for Mingw by Mark Junker.
55315
55316 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55317
55318         * README: Gnulib normally doesn't generate a tarball.
55319
55320 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
55321
55322         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
55323         long int, not int, for nanosecond counts, so that people who are
55324         used to POSIX struct timespec won't be surprised.  Reported by Jim
55325         Meyering.
55326
55327 2005-12-28  Bruno Haible  <bruno@clisp.org>
55328
55329         * build-aux/config.rpath: Update from GNU gettext.
55330
55331 2005-12-16  Jim Meyering  <jim@meyering.net>
55332
55333         * modules/fprintftime: New module.
55334         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
55335
55336 2005-12-16  Jim Meyering  <jim@meyering.net>
55337
55338         * m4/fprintftime.m4: New file.
55339
55340 2005-12-16  Jim Meyering  <jim@meyering.net>
55341
55342         * lib/fprintftime.c, lib/fprintftime.h: New files.
55343
55344 2005-12-15  Simon Josefsson  <jas@extundo.com>
55345
55346         * modules/socklen (configure.ac): Fix M4 macro name, to align with
55347         new m4/socklen.m4.
55348
55349 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55350
55351         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
55352         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
55353
55354 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55355
55356         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
55357         * lib/argp-help.c (fill_in_uparams): Check if the constructed
55358         struct uparams is valid. Fall back to the default values if it is
55359         not.
55360
55361 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55362
55363         * modules/argp (Files): Add argp-pin.c
55364         (Depends-on): dirname
55365         (lib_SOURCES): Add argp-pin.c
55366
55367 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55368
55369         * m4/argp.m4:  Check if program_invocation_name and
55370         program_invocation_short_name are declared and define appropriate
55371         macros if they are not.
55372
55373 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55374
55375         * lib/argp-help.c (__argp_base_name): New function
55376         (__argp_short_program_name): Rewrite using __argp_base_name
55377         * lib/argp-namefrob.h: Define program_invocation_name and
55378         program_invocation_short_name if requested
55379         (__argp_base_name): Add prototype
55380         * lib/argp-parse.c (argp_def): Use gettext wrappers
55381         (argp_default_parser): Use __argp_base_name
55382         * lib/argp-pin.c: New file. Defines program_invocation_name and
55383         program_invocation_short_name on systems that lack them.
55384
55385 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55386
55387         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
55388         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55389         porting problem reported by Georg Schwarz in
55390         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55391
55392 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55393
55394         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
55395         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55396         porting problem reported by Georg Schwarz in
55397         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55398
55399 2005-12-05  Bruno Haible  <bruno@clisp.org>
55400
55401         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
55402         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
55403         Reported by Mark Junker <mjscod@gmx.de>.
55404
55405 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
55406
55407         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
55408         Use implementation from Albert Chin, with some
55409         comments/corrections by Stepan Kasal and myself.
55410
55411 2005-12-02  Bruno Haible  <bruno@clisp.org>
55412
55413         * gnulib-tool (func_import): Accept GPLed build tool modules when
55414         --lgpl is given.
55415         * modules/csharpcomp-script: New file.
55416         * modules/csharpcomp: Depend on it.
55417         * modules/javacomp-script: New file.
55418         * modules/javacomp: Depend on it.
55419         Suggested by Simon Josefsson.
55420
55421 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
55422
55423         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
55424         statement, to work around an HP-UX 10.20 compiler bug reported by
55425         Peter O'Gorman.
55426
55427 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55428
55429         * modules/savedir (Depends-on): Add openat.
55430
55431 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55432
55433         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
55434         (uintmax_t) [defined uintmax_t]: Do not declare.
55435         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
55436         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
55437         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
55438         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
55439         sake of portability to weird hosts that C allows (though we don't
55440         know of any practical examples).
55441
55442         * lib/savedir.h (fdsavedir): New decl.
55443         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
55444         contains most of the former guts of savedir.
55445         (savedir): Use savedirstream.
55446         Include "openat.h".
55447
55448 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
55449
55450         * modules/obstack (Files): Add m4/ulonglong.m4.
55451         Problem reported by Davide Angelocola.
55452
55453 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55454
55455         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
55456         coreutils no longer futzes with rounding modes.
55457
55458 2005-11-14  Jim Meyering  <jim@meyering.net>
55459
55460         * lib/mkstemp-safer.c: Include <config.h>, required for possible
55461         replacement of mkstemp.
55462
55463 2005-11-10  Simon Josefsson  <jas@extundo.com>
55464
55465         * lib/readline.c: Remove EOL.
55466
55467 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55468
55469         * modules/gethrxtime (Depends-on): Add gettime.
55470
55471 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55472
55473         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
55474         or gettimeofday; no longer needed.
55475
55476 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55477
55478         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
55479         time business.
55480         (gethrxtime) [! (HAVE_NANOUPTIME
55481         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
55482         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
55483         our own approximation.
55484
55485 2005-11-08  Eric Blake  <ebb9@byu.net>
55486
55487         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55488
55489 2005-11-08  Eric Blake  <ebb9@byu.net>
55490
55491         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55492
55493 2005-11-04  Bruno Haible  <bruno@clisp.org>
55494
55495         * gnulib-tool: Implement --update mode.
55496
55497 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55498
55499         Fix porting problem reported by Theodoros V. Kalamatianos.
55500         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
55501         Don't assume that futimes failing means we must fail.
55502
55503 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55504
55505         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
55506         variables to suggest the intended function of the PATH_MAX check.
55507
55508 2005-10-30  Kean Johnston  <jkj@sco.com>
55509
55510         Trivial changes to support SCO systems.
55511         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
55512         as PATH_MAX.
55513         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
55514         where __ptr is null when no I/O is pending.
55515
55516 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55517
55518         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
55519         leave errno alone.  Problem reported by Dmitry V. Levin.
55520
55521 2005-10-28  Simon Josefsson  <jas@extundo.com>
55522
55523         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
55524         Test more.
55525
55526         * tests/test-gc-md2.c, tests/test-md2.c: New files.
55527
55528         * modules/md2, modules/md2-tests: New files.
55529
55530 2005-10-28  Simon Josefsson  <jas@extundo.com>
55531
55532         * m4/inet_ntop.m4: More tests.
55533
55534         * m4/gc-md2.m4, md2.m4: New file.
55535
55536 2005-10-28  Simon Josefsson  <jas@extundo.com>
55537
55538         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
55539         "restrict" keywords, as per POSIX.  Protect the function
55540         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
55541         Don't use K&R prototypes.  Check the sprintf return values.
55542         Re-define EAFNOSUPPORT if not present.  Indent.
55543
55544         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
55545         suggested by Bruno Haible <bruno@clisp.org>.
55546
55547         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
55548
55549         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
55550
55551         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
55552         libgcrypt).
55553
55554         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
55555
55556         * lib/md2.h, lib/md2.c: New files.
55557
55558 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
55559
55560         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
55561         errno alone.  Problem reported by Frederic Jolliton.
55562
55563 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55564
55565         * modules/verify (License): Change from GPL to LGPL.  This is a
55566         tiny module and there are apparently near-equivalents that are
55567         under the BSD license.
55568
55569 2005-10-24  Simon Josefsson  <jas@extundo.com>
55570
55571         * modules/sha1: Relicense to LGPL.
55572
55573 2005-10-24  Simon Josefsson  <jas@extundo.com>
55574
55575         * lib/md4.h: Shrink buffer size, now that we changed the type.
55576
55577 2005-10-23  Simon Josefsson  <jas@extundo.com>
55578
55579         * gnulib-tool (func_import): Fix --tests-base.
55580
55581 2005-10-22  Simon Josefsson  <jas@extundo.com>
55582
55583         * modules/arcfour (Depends-on): Need stdint.
55584
55585 2005-10-22  Simon Josefsson  <jas@extundo.com>
55586
55587         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
55588         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
55589
55590 2005-10-22  Simon Josefsson  <jas@extundo.com>
55591
55592         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
55593         suggested by Bruno Haible <bruno@clisp.org>.
55594
55595 2005-10-22  Simon Josefsson  <jas@extundo.com>
55596
55597         * lib/crc.h: Include stddef.h, for size_t.
55598
55599 2005-10-22  Simon Josefsson  <jas@extundo.com>
55600
55601         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
55602         arcfour_context struct (simplify test vector testing in GNU
55603         Shishi).
55604
55605 2005-10-21  Simon Josefsson  <jas@extundo.com>
55606
55607         * modules/des, modules/des-tests: New files.
55608
55609         * modules/gc-des, modules/gc-des-tests: New files.
55610
55611         * tests/test-des.c, tests/test-gc-des.c: New file.
55612
55613 2005-10-21  Simon Josefsson  <jas@extundo.com>
55614
55615         * modules/arctwo, modules/arctwo-tests: New files.
55616
55617         * tests/test-arctwo.c: New file.
55618
55619         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
55620
55621         * tests/test-gc-arctwo.c: New file.
55622
55623 2005-10-21  Simon Josefsson  <jas@extundo.com>
55624
55625         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
55626         Bruno Haible <bruno@clisp.org>.
55627
55628         * m4/gc-des.m4: New file.
55629
55630 2005-10-21  Simon Josefsson  <jas@extundo.com>
55631
55632         * m4/arctwo.m4: New file.
55633
55634         * m4/gc-arctwo.m4: New file.
55635
55636 2005-10-21  Simon Josefsson  <jas@extundo.com>
55637
55638         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
55639         block.
55640
55641 2005-10-21  Simon Josefsson  <jas@extundo.com>
55642
55643         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
55644         <bruno@clisp.org>.
55645
55646         * lib/hmac-sha1.c (hmac_sha1): Likewise.
55647
55648         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
55649         Bruno Haible <bruno@clisp.org>.
55650
55651         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
55652         <bruno@clisp.org>.
55653
55654 2005-10-21  Simon Josefsson  <jas@extundo.com>
55655
55656         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
55657
55658 2005-10-21  Simon Josefsson  <jas@extundo.com>
55659
55660         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
55661
55662 2005-10-21  Simon Josefsson  <jas@extundo.com>
55663
55664         * lib/des.h, lib/des.c: New files.
55665
55666         * lib/gc-gnulib.c: Support DES.c
55667
55668 2005-10-21  Simon Josefsson  <jas@extundo.com>
55669
55670         * lib/arctwo.h, lib/arctwo.c: New files.
55671
55672         * lib/gc-gnulib.c: Support ARCTWO.
55673
55674 2005-10-21  Simon Josefsson  <jas@extundo.com>
55675
55676         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
55677         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55678
55679 2005-10-21  Simon Josefsson  <jas@extundo.com>
55680
55681         * gnulib-tool (func_import, func_create_testdir): Define automake
55682         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
55683         Makefile.am snippet),
55684         suggested by Bruno Haible <bruno@clisp.org>.
55685
55686         * modules/gc (Makefile.am): Use it.
55687
55688 2005-10-21  Bruno Haible  <bruno@clisp.org>
55689
55690         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
55691         patch.
55692
55693 2005-10-19  Simon Josefsson  <jas@extundo.com>
55694
55695         * tests/test-gc-rijndael.c: New file.
55696
55697         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
55698
55699 2005-10-19  Simon Josefsson  <jas@extundo.com>
55700
55701         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
55702         interface too.
55703
55704 2005-10-19  Simon Josefsson  <jas@extundo.com>
55705
55706         * tests/test-gc-arcfour.c: New file.
55707
55708         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
55709
55710 2005-10-19  Simon Josefsson  <jas@extundo.com>
55711
55712         * modules/gc-md4, modules/gc-md4-tests: New file.
55713
55714         * tests/test-gc-md4.c: New file.
55715
55716 2005-10-19  Simon Josefsson  <jas@extundo.com>
55717
55718         * m4/gc-md4.m4: New file.
55719
55720 2005-10-19  Simon Josefsson  <jas@extundo.com>
55721
55722         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
55723         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
55724         <kasal@ucw.cz>.
55725
55726 2005-10-19  Simon Josefsson  <jas@extundo.com>
55727
55728         * m4/gc-arcfour.m4: New file.
55729
55730         * m4/gc-rijndael.m4: New file.
55731
55732 2005-10-19  Simon Josefsson  <jas@extundo.com>
55733
55734         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
55735
55736 2005-10-19  Simon Josefsson  <jas@extundo.com>
55737
55738         * lib/gc-gnulib.c: Support ARCFOUR.
55739
55740 2005-10-19  Simon Josefsson  <jas@extundo.com>
55741
55742         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
55743         support.
55744
55745         * lib/gc.h: Add ECB enum type.
55746
55747         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
55748
55749 2005-10-18  Simon Josefsson  <jas@extundo.com>
55750
55751         * tests/test-md5.c: New file.
55752
55753         * modules/md5-tests: New file.
55754
55755 2005-10-18  Simon Josefsson  <jas@extundo.com>
55756
55757         * tests/test-md4.c: New file.
55758
55759         * modules/md4, modules/md4-tests: New files.
55760
55761 2005-10-18  Simon Josefsson  <jas@extundo.com>
55762
55763         * m4/md4.m4: New file.
55764
55765 2005-10-18  Simon Josefsson  <jas@extundo.com>
55766
55767         * lib/md4.h, lib/md4.c: New files, based on md5.?.
55768
55769 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
55770
55771         * gnulib-tool (func_create_testdir): Omit the second check whether
55772         BUILT_SOURCES in nonempty.
55773
55774 2005-10-17  Simon Josefsson  <jas@extundo.com>
55775
55776         * tests/test-rijndael.c: New file.
55777
55778 2005-10-17  Simon Josefsson  <jas@extundo.com>
55779
55780         * modules/sha1: Depend on stdint instead of md5.
55781
55782         * modules/md5: Depend on stdint, remove uint32_t.
55783
55784 2005-10-17  Simon Josefsson  <jas@extundo.com>
55785
55786         * modules/gc-sha1-tests: New file.
55787
55788         * tests/test-gc-sha1.c: New file.
55789
55790 2005-10-17  Simon Josefsson  <jas@extundo.com>
55791
55792         * m4/md5.m4: Remove call to uint32_t.m4.
55793
55794 2005-10-17  Simon Josefsson  <jas@extundo.com>
55795
55796         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
55797
55798         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
55799         md5.h.
55800
55801         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
55802
55803         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
55804
55805 2005-10-17  Simon Josefsson  <jas@extundo.com>
55806
55807         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
55808
55809 2005-10-17  Simon Josefsson  <jas@extundo.com>
55810
55811         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
55812
55813 2005-10-17  Simon Josefsson  <jas@extundo.com>
55814
55815         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
55816
55817         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
55818
55819 2005-10-17  Bruno Haible  <bruno@clisp.org>
55820
55821         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
55822         that it can also be used in a test.
55823
55824 2005-10-16  Bruno Haible  <bruno@clisp.org>
55825
55826         * gnulib-tool (func_emit_tests_Makefile_am): Also define
55827         TESTS_ENVIRONMENT, so that individual tests can augment it.
55828
55829         * gnulib-tool (func_create_testdir): Use an intermediate target for
55830         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
55831         macros, like $(ALLOCA_H), which cannot be passed through the command
55832         line.
55833
55834 2005-10-15  Simon Josefsson  <jas@extundo.com>
55835
55836         * modules/rijndael-tests: New file.
55837
55838         * modules/rijndael: New file.
55839
55840 2005-10-15  Simon Josefsson  <jas@extundo.com>
55841
55842         * m4/rijndael.m4: New file.
55843
55844 2005-10-15  Simon Josefsson  <jas@extundo.com>
55845
55846         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
55847
55848         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
55849
55850 2005-10-14  Simon Josefsson  <jas@extundo.com>
55851
55852         * tests/test-arcfour.c: New file.
55853
55854         * modules/arcfour, modules/arcfour-tests: New files.
55855
55856 2005-10-14  Simon Josefsson  <jas@extundo.com>
55857
55858         * m4/arcfour.m4: New file.
55859
55860 2005-10-14  Simon Josefsson  <jas@extundo.com>
55861
55862         * lib/arcfour.h, lib/arcfour.c: New files.
55863
55864 2005-10-14  Roland McGrath  <roland@redhat.com>
55865
55866         Import from libc.  [BZ #1331]
55867         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
55868         macro argument.
55869         Reported by Matej Vela <vela@debian.org>.
55870
55871 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55872
55873         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
55874         include <wchar.h>; no longer needed.
55875
55876 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55877
55878         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
55879
55880 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
55881         and  Ulrich Drepper  <drepper@redhat.com>
55882
55883         Import from libc.
55884         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
55885         instead of inline stream orientation test and two separate
55886         function calls.  Pay no attention to USE_IN_LIBIO.
55887
55888 2005-10-13  Simon Josefsson  <jas@extundo.com>
55889
55890         * modules/gc-hmac-md5-tests: New file.
55891
55892         * tests/test-gc-hmac-sha1.c: New file.
55893
55894         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
55895
55896         * modules/gc-hmac-md5-tests: New file.
55897
55898         * tests/test-gc-md5.c: New file.
55899
55900         * modules/gc-md5-tests: New file.
55901
55902 2005-10-13  Simon Josefsson  <jas@extundo.com>
55903
55904         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
55905         Move memory allocation outside of loop.
55906
55907 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
55908
55909         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
55910         intermediate directory is in a read-only file system.  Problem
55911         reported by Eric Blake.
55912
55913 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
55914
55915         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
55916
55917 2005-10-12  Simon Josefsson  <jas@extundo.com>
55918
55919         * tests/test-hmac-sha1.c: New file.
55920
55921         * modules/hmac-sha1-tests: New file.
55922
55923         * modules/hmac-sha1: New file.
55924
55925 2005-10-12  Simon Josefsson  <jas@extundo.com>
55926
55927         * modules/gc-sha1: New file.
55928
55929 2005-10-12  Simon Josefsson  <jas@extundo.com>
55930
55931         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
55932
55933         * tests/test-gc-pbkdf2-sha1.c: New file.
55934
55935 2005-10-12  Simon Josefsson  <jas@extundo.com>
55936
55937         * modules/gc-md5, modules/gc-hmac-md5: New files.
55938
55939         * modules/gc (Files): Remove md5, memxor and hmac files.
55940
55941 2005-10-12  Simon Josefsson  <jas@extundo.com>
55942
55943         * m4/gc-pbkdf2-sha1.m4: New file.
55944
55945         * m4/gc-hmac-sha1.m4: New file.
55946
55947         * m4/gc-sha1: New file.
55948
55949         * m4/hmac-sha1.m4: New file.
55950
55951 2005-10-12  Simon Josefsson  <jas@extundo.com>
55952
55953         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
55954
55955         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
55956
55957 2005-10-12  Simon Josefsson  <jas@extundo.com>
55958
55959         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
55960         suggested by Bruno Haible <bruno@clisp.org>.
55961
55962 2005-10-12  Simon Josefsson  <jas@extundo.com>
55963
55964         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
55965
55966 2005-10-12  Simon Josefsson  <jas@extundo.com>
55967
55968         * lib/gc-pbkdf2-sha1.c: New file.
55969
55970         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
55971
55972 2005-10-12  Simon Josefsson  <jas@extundo.com>
55973
55974         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
55975
55976         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
55977
55978 2005-10-12  Simon Josefsson  <jas@extundo.com>
55979
55980         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
55981         GC_USE_HMAC_MD5, respectively.
55982
55983         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
55984         (gc_md5): Fix typo.
55985
55986         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
55987
55988         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
55989
55990         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
55991
55992 2005-10-12  Bruno Haible  <bruno@clisp.org>
55993
55994         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
55995         Reported by Stepan Kasal <kasal@ucw.cz>.
55996
55997 2005-10-11  Simon Josefsson  <jas@extundo.com>
55998
55999         * tests/test-crc.c: New file.
56000
56001         * modules/crc, modules/crc-tests: New files.
56002
56003 2005-10-11  Simon Josefsson  <jas@extundo.com>
56004
56005         * m4/crc.m4: New file.
56006
56007 2005-10-11  Simon Josefsson  <jas@extundo.com>
56008
56009         * lib/gc.h: Add gc_hash and gc_hash_buffer.
56010
56011         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
56012
56013         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
56014
56015 2005-10-11  Simon Josefsson  <jas@extundo.com>
56016
56017         * lib/crc.h, lib/crc.c: New files.
56018
56019         * lib/gc.h (gc_hash_buffer): Add doc.
56020
56021 2005-10-11  Bruno Haible  <bruno@clisp.org>
56022
56023         * modules/c-strcasestr: New file.
56024         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
56025
56026 2005-10-11  Bruno Haible  <bruno@clisp.org>
56027
56028         * modules/c-strcase: New file.
56029         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
56030
56031 2005-10-11  Bruno Haible  <bruno@clisp.org>
56032
56033         * lib/strcasecmp.c: Include limits.h.
56034         (strcasecmp): Avoid integer overflow on exotic platforms.
56035         * lib/strncasecmp.c: Include limits.h.
56036         (strncasecmp): Avoid integer overflow on exotic platforms.
56037         Reported by Paul Eggert.
56038
56039 2005-10-11  Bruno Haible  <bruno@clisp.org>
56040
56041         * lib/c-strcasestr.h: New file, from GNU gettext.
56042         * lib/c-strcasestr.c: New file, from GNU gettext.
56043
56044 2005-10-11  Bruno Haible  <bruno@clisp.org>
56045
56046         * lib/c-strcase.h: New file, from GNU gettext.
56047         * lib/c-strcasecmp.c: New file, from GNU gettext.
56048         * lib/c-strncasecmp.c: New file, from GNU gettext.
56049
56050 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
56051
56052         * modules/mempcpy (License): GPL -> LGPL.
56053         * modules/strchrnul (License): Likewise.
56054         * modules/sysexits (License): Likewise.
56055
56056 2005-10-08  Simon Josefsson  <jas@extundo.com>
56057
56058         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
56059
56060 2005-10-07  Simon Josefsson  <jas@extundo.com>
56061
56062         * m4/memxor.m4: Remove gl_C_RESTRICT call.
56063
56064 2005-10-06  Simon Josefsson  <jas@extundo.com>
56065
56066         * tests/test-hmac-md5.c: New file.
56067
56068         * modules/hmac-md5-tests: New file.
56069
56070         * modules/hmac-md5: New file.
56071
56072 2005-10-06  Simon Josefsson  <jas@extundo.com>
56073
56074         * m4/hmac-md5.m4: New file.
56075
56076         * m4/memxor.m4: Require gl_C_RESTRICT.
56077
56078 2005-10-06  Simon Josefsson  <jas@extundo.com>
56079
56080         * lib/memxor.c (memxor): Avoid casts and warnings.
56081
56082 2005-10-06  Simon Josefsson  <jas@extundo.com>
56083
56084         * lib/hmac-md5.c: New file.
56085
56086         * lib/hmac.h: New file.
56087
56088 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56089
56090         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
56091         promotes to int, not unsigned int, to catch the AIX 5.3
56092         compiler bug.
56093
56094 2005-10-05  Simon Josefsson  <jas@extundo.com>
56095
56096         * modules/memxor: New file.
56097
56098         * modules/iconv (Files): Move config.rpath to havelib, it is used
56099         there.
56100
56101         * modules/havelib (Files): Add config.rpath.
56102
56103 2005-10-05  Simon Josefsson  <jas@extundo.com>
56104
56105         * m4/memxor.m4: New file.
56106
56107 2005-10-05  Simon Josefsson  <jas@extundo.com>
56108
56109         * lib/memxor.c (memxor): Fix compiler error.
56110
56111         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
56112         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
56113
56114         * lib/memxor.h, lib/memxor.c: New files.
56115
56116         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
56117         we assume all systems have it, suggested by Jim Meyering
56118         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
56119         any systems lack sys/socket.h; mingw32 is known to lack it, but we
56120         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
56121         same reasons.
56122
56123 2005-10-05  Simon Josefsson  <jas@extundo.com>
56124
56125         * config/srclist.txt: Add glibc bug 1423 for md5.h.
56126
56127 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56128
56129         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
56130         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
56131         needed, since the source code now assumes these .h files.
56132
56133 2005-10-05  Derek Price  <derek@ximbiot.com>
56134
56135         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
56136
56137 2005-10-05  Bruno Haible  <bruno@clisp.org>
56138
56139         * modules/stdint (License): Change to LGPL.
56140
56141 2005-10-04  Simon Josefsson  <jas@extundo.com>
56142
56143         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
56144         D. Baushke" <mdb@gnu.org>.
56145
56146 2005-10-04  Bruno Haible  <bruno@clisp.org>
56147
56148         * lib/verify.h (verify_true): Provide alternative definition for C++.
56149
56150 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
56151
56152         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
56153         (SSIZE_MAX): New macro, if not already defined.
56154         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
56155         than 2 GiB.
56156
56157 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56158
56159         Sync from coreutils.
56160         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
56161         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
56162         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
56163         ULLONG_MAX doesn't work with 2.7.2.1.
56164
56165 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56166
56167         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
56168         From Ben Pfaff.
56169
56170         * modules/exclude (Depends-on): Depend on verify.
56171         * modules/strtoimax (Depends-on): Likewise.
56172         * modules/utimecmp (Depends-on): Likewise.
56173
56174 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56175
56176         * lib/exclude.c: Include verify.h.
56177         (verify): Remove.  All callers changed to use verify.h's version.
56178         * lib/strtoimax.c: Likewise.
56179         * lib/utimecmp.c: Likewis.e
56180
56181         Sync from coreutils.
56182         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
56183         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
56184         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
56185         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
56186         bother returning ENOSYS if settimeofday or stime fails; just let
56187         them return whatever errno they want to return.
56188         * lib/utimens.c: Include unistd.h, for dup2.
56189         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
56190         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
56191
56192 2005-10-02  Jim Meyering  <jim@meyering.net>
56193
56194         Sync from coreutils.
56195         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
56196         from glibc-2.2.5 that fails for read-only files.
56197
56198 2005-10-02  Jim Meyering  <jim@meyering.net>
56199
56200         Sync from coreutils.
56201         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
56202         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
56203         `#if HAVE_CONFIG_H'.
56204         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
56205         Remove AT_FDCWD test.
56206         Do not consume the fd unless successful.
56207         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
56208         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
56209         block, so that we don't even try to compile it if settimeofday is
56210         available.  This works around a compilation failure on OSF1 V5.1,
56211         due to stime requiring a `long int*' while tv_sec is `int'.
56212
56213 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
56214
56215         Sync from coreutils.
56216         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
56217         against `yes', rather than just testing for nonempty.
56218
56219 2005-10-01  Simon Josefsson  <jas@extundo.com>
56220
56221         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
56222         and Darwin.
56223
56224         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
56225         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
56226         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
56227         freeaddrinfo and gai_strerror are declared by the POSIX headers.
56228         Check if struct addrinfo is declared.
56229
56230 2005-10-01  Simon Josefsson  <jas@extundo.com>
56231
56232         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
56233         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
56234         AI_* and EAI_* definitions.  Protect function declarations.
56235
56236 2005-10-01  Jim Meyering  <jim@meyering.net>
56237
56238         Sync from coreutils.
56239
56240         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
56241         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
56242         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
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  Jim Meyering  <jim@meyering.net>
56247
56248         Sync from coreutils.
56249         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
56250         in the inet and nsl libraries.  Required on Solaris 5.7.
56251
56252 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
56253
56254         * lib/getdelim.c (getdelim): Remove unused variables.
56255
56256 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56257
56258         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
56259         so that the code works even with ancient cpp.  Portability problem
56260         with GCC 2.7.2.1 reported by Thomas M.Ott.
56261
56262 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56263
56264         * modules/regex (Depends-on): Add strcase.
56265
56266         * modules/gethostname (Licence): Change from GPL to LGPL, since
56267         gethostname.c is a trivial implementation of a standard library
56268         function.
56269         * modules/poll (License): Change from GPL to LGPL, since it's
56270         derived from LGPL code.
56271
56272 2005-09-27  Jim Meyering  <jim@meyering.net>
56273
56274         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
56275         HAVE_CONFIG_H.
56276
56277         * lib/intprops.h (signed_type_or_expr__): Define.
56278         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
56279         for unsigned types.
56280
56281 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56282
56283         * lib/verify.h (verify_expr): Remove, replacing with:
56284         (verify_true): New macro that returns true instead of void.
56285         (verify_type__): Remove.
56286         (verify): Use verify_true rather than verify_type__.
56287
56288 2005-09-26  Bruno Haible  <bruno@clisp.org>
56289
56290         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
56291         is necessary.
56292         (lib_SOURCES): Remove mbchar.c.
56293         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
56294         (Files): Add m4/mbrtowc.m4.
56295         * modules/mbiter: Likewise.
56296         * modules/mbuiter: Likewise.
56297
56298 2005-09-26  Bruno Haible  <bruno@clisp.org>
56299
56300         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
56301         compile mbchar.c if they are not both present.
56302         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
56303         * m4/mbiter.m4 (gl_MBITER): Likewise.
56304         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
56305         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
56306         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
56307
56308 2005-09-25  Jim Meyering  <jim@meyering.net>
56309
56310         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
56311         also uses socklen_t.
56312
56313 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
56314
56315         * lib/utimens.c (ENOSYS): Define if not already defined.
56316         (futimens): Support having a null PATH if the file descriptor
56317         is nonnegative.
56318
56319         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
56320         Remove.
56321         (__attribute): Define to empty unless GCC 3.1 or later.
56322         This works around a core dump on OpenBSD 3.4, which has GCC
56323         2.95.3, which dumps core when given __attribute__(()).  It also
56324         simplifies other tests, since we really don't want to bother with
56325         worrying about which ancient version of GCC supported what.
56326         Original problem reported by Yoann Vandoorselaere, with part of
56327         the fix suggested by Derek Price.
56328
56329 2005-09-24  Jim Meyering  <jim@meyering.net>
56330
56331         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
56332         so we can once again use a positive bitfield width of 1 -- now we
56333         don't have to explain why we were using a bitfield width of 2.
56334
56335 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
56336
56337         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
56338         and similarly for the other external symbols.  Problem reported
56339         by James Gallager.
56340
56341         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
56342         bug reported by Jim Meyering.
56343
56344         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
56345         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
56346         not needed, since socklen is a prerequisite module.
56347
56348 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
56349
56350         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
56351         Problem reported by Eric Blake.
56352         (getaddrinfo): Initialize se so that it's not garbage.
56353         Redo internal storage allocation so that it doesn't make unportable
56354         assumptions about alignment.
56355         Fix a memory leak.
56356
56357         * lib/utimens.c (futimens): Use futimesat if available.
56358         Prefer it to futimes since it doesn't have the futimes bug.
56359
56360         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
56361         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
56362         Instead, declare a function that returns a pointer to an array,
56363         and use verify_type__ to declare the size of the array.
56364         Problem and germ of a solution reported by Bruno Haible.
56365         (verify_type__): Use 2, not 1, for bitfield size, to avoid
56366         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
56367
56368 2005-09-23  Jim Meyering  <jim@meyering.net>
56369
56370         Sync from coreutils.
56371         Correct build failure (socklen_t not defined) on at least
56372         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
56373         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
56374
56375 2005-09-23  Jim Meyering  <jim@meyering.net>
56376
56377         * modules/getaddrinfo (Depends-on): Add socklen.
56378
56379 2005-09-23  Bruno Haible  <bruno@clisp.org>
56380
56381         * tests/test-verify.c: New file.
56382
56383 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56384
56385         Sync from coreutils.
56386
56387         * modules/argmatch (Depends-on): Add verify.
56388         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
56389         unistd-safer.
56390         * modules/save-cwd (Depends-on): Likewise.
56391
56392         * modules/openat (Files): Add lib/openat-die.c.
56393         (Depends-on): Remove error, exitfail.
56394         Add dirname.
56395
56396         * modules/verify: New file.
56397         * MODULES.html.sh (Diagnostics <assert.h>): New section,
56398         with "verify" module.
56399
56400 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56401
56402         Sync from coreutils.
56403
56404         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
56405         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
56406         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
56407         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
56408         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
56409         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
56410         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
56411         Don't bother checking for string.h, stdlib.h, unistd.h.
56412         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
56413         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
56414         module's job.
56415         * m4/jm-macros.m4 (gl_MACROS): Likewise.
56416         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
56417
56418         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
56419         (gl_GETDATE): Use it.
56420
56421         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
56422
56423 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56424
56425         Sync from coreutils.
56426
56427         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
56428         stat-time.h.
56429         * lib/argmatch.h: Include verify.h
56430         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
56431         (ARGMATCH_ASSERT): Remove; unused.
56432         * lib/canonicalize.c: Assume STDC_HEADERS.
56433         * lib/exclude.c: Include "strcase.h".
56434         * lib/regex_internal.h [!defined _LIBC]: Likewise.
56435         * lib/getusershell.c: Include stdio--.h rather than stdio.h
56436         and stdio-safer.h.
56437         (getusershell): Call fopen, not fopen_safer.
56438         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
56439         Do not include unistd-safer.h.
56440         (save_cwd): Don't call fd_safer; no longer needed
56441         now that we include fcntl--.h.
56442
56443         * lib/getdate.y (relative_time): New type.
56444         (RELATIVE_TIME_0): New constant.
56445         (parser_control): Use relative_time instead of doing it ourselves.
56446         (%union): Add new relative_time rel member.
56447         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
56448         Now typeless.
56449         (relunit, relunit_snumber): Now of type rel.
56450         (zone, rel, relunit, get_date): Adjust to above changes.
56451
56452         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
56453         Do not include unistd-safer.h.
56454         (getloadavg): Don't call fd_safer; no longer needed
56455         now that we include fcntl--.h.
56456
56457         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
56458         (make_dir_parents): Treat ENOSYS like EEXIST.
56459
56460         Improve quality of diagnostics on restore_cwd failure.
56461         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
56462         (make_dir_parents): Last arg is now int * (for errno), not bool *.
56463         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
56464         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
56465         each time through the loop.  Do not diagnose restore_cwd failure;
56466         that is the caller's job (and perhaps the caller does not care).
56467
56468         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
56469         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
56470         If the file already exists but is not a directory, don't bother
56471         to try to make its parents.
56472         Close potential file descriptor leak if we can't chdir("/") (!).
56473         Don't always return true if chdir($PWD) fails; return true only
56474         if the requested action was done successfully (except for the
56475         chdir($PWD)).
56476         Don't log final directory unless we actually made it.
56477         Refactor to avoid duplicate code to fix up permissions.
56478         Don't attempt to fix up parent permissions if chdir($PWD) fails.
56479
56480         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
56481         to make it a bit faster and (I hope) clearer.
56482         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
56483         Fix bug in formats like %2N.
56484
56485         * lib/verify.h: New file.
56486
56487 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56488
56489         Sync from coreutils.
56490         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
56491
56492 2005-09-22  Jim Meyering  <jim@meyering.net>
56493
56494         Sync from coreutils.
56495
56496         * m4/lstat.m4 (gl_FUNC_LSTAT):
56497         Use AC_LIBSOURCES to require lstat.c and lstat.h.
56498         Remove obsolete comment.
56499         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
56500         * m4/xstrtod.m4: Likewise.
56501
56502         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
56503
56504 2005-09-22  Jim Meyering  <jim@meyering.net>
56505
56506         Sync from coreutils.
56507
56508         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
56509
56510         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
56511         the .tm_year member, since otherwise gcc-4.0 would now warn about
56512         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
56513
56514         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
56515         order to avoid an unsuppressible warning from gcc on 64-bit systems.
56516
56517         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
56518         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
56519         when run in a time zone for which daylight savings time is in effect
56520         for the starting date.
56521
56522         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
56523         stop us from restricting permissions of just-created absolute-named
56524         directories.
56525         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
56526         to restore initial working directory.
56527         * lib/mkdir-p.c (make_dir_parents): New parameter:
56528         different_working_dir, to tell caller if/when we change the working
56529         directory and are unable to return to the initial one.
56530         * lib/mkdir-p.h (make_dir_parents): Update prototype.
56531         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
56532         `return false'.  This fixes a bug introduced on 2004-07-30.
56533
56534         * lib/openat.c (fdopendir): Be sure to close the supplied
56535         file descriptor before returning.  This makes our replacement
56536         implementation a little closer to Solaris's, where fdopendir
56537         ties the file descriptor to the returned DIR* pointer.
56538         * lib/openat.c (unlinkat): New function.
56539         * lib/openat.h (unlinkat): Add prototype.
56540         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
56541         (openat_restore_fail): Rename from openat_restore_die.
56542         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
56543
56544         Provide an alternative to exiting immediately upon save_cwd or
56545         restore_cwd failure.  Now, an application can arrange e.g.,
56546         to perform a longjump in that case.
56547         * lib/openat.c: Include dirname.h.
56548         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
56549         (rpl_openat, fdopendir, fstatat): Call openat_save_die
56550         and openat_restore_die rather than calling error directly.
56551         Don't include "error.h" or "exitfail.h"; they're no longer needed.
56552
56553         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
56554         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
56555         define.
56556
56557         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
56558         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
56559                             int utc, int nanoseconds);
56560         Background:
56561         date should not have to allocate a megabyte of virtual memory to
56562         handle a format argument like +%1048575T.  When implemented with
56563         strftime, it must allocate such a buffer, use strftime to fill it
56564         in, print it, then free it.
56565         With fprintftime, it simply prints everything and exits.
56566         With no need for memory allocation, that's one fewer way to fail.
56567         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
56568         optional field width, not before, so we accept %9:z, not %:9z.
56569         (my_strftime): Be sure to use L_('x') for literals.
56570
56571         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
56572         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
56573         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
56574         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
56575         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
56576         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
56577         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
56578         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
56579         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
56580         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
56581         * lib/xgethostname.c, lib/xreadlink.c:
56582         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
56583
56584         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
56585         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
56586         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
56587         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56588         and don't include <sys/file.h>).
56589
56590 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
56591
56592         Sync from coreutils.
56593
56594         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
56595         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
56596         [!LDAV_DONE]: Avoid unused variable warning.
56597
56598 2005-09-21  Bruno Haible  <bruno@clisp.org>
56599
56600         * lib/unicodeio.h (unicode_to_mb): New declaration.
56601
56602 2005-09-20  Derek Price  <derek@ximbiot.com>
56603
56604         * lib/getaddrinfo.c: Don't include <netdb.h> included from
56605         getaddrinfo.h.
56606
56607 2005-09-20  Bruno Haible  <bruno@clisp.org>
56608
56609         * gnulib-tool: Remove trailing slashes from the values specified for
56610         --source-base, --m4-base, --tests-base, --aux-dir.
56611         Suggested by Simon Josefsson <jas@extundo.com>.
56612
56613 2005-09-20  Bruno Haible  <bruno@clisp.org>
56614
56615         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
56616         func_modules_to_filelist, func_import, func_create_testdir): Make all
56617         sorting results locale-independent, so that gnulib-cache.m4 doesn't
56618         change when gnulib-tool is invoked in a different locale.
56619
56620 2005-09-19  Simon Josefsson  <jas@extundo.com>
56621
56622         * m4/socklen.m4: Fix typo.
56623
56624 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56625
56626         Use a consistent style for including <config.h>.
56627         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
56628         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
56629         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
56630         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
56631         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
56632         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
56633         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
56634         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
56635         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
56636         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
56637         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
56638         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
56639         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
56640         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
56641         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
56642         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
56643         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
56644         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
56645         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
56646         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
56647         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
56648         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
56649         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
56650         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
56651         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
56652         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
56653         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
56654         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
56655         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
56656         lib/xstrtoumax.c, lib/yesno.c:
56657         Standardize inclusion of config.h.
56658         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
56659         lib/inttostr.h:  Removed inclusion of config.h from header files.
56660         * lib/inttostr.c:  Adjusted in-tree users.
56661         * lib/timespec.h: Remove superfluous warning to include config.h.
56662         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
56663         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
56664         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
56665         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
56666         config.h with HAVE_CONFIG_H.
56667
56668 2005-09-19  Jim Meyering  <jim@meyering.net>
56669
56670         * modules/pathmax (License): Change to LGPL.
56671
56672 2005-09-19  Derek Price  <derek@ximbiot.com>
56673
56674         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
56675
56676 2005-09-19  Bruno Haible  <bruno@clisp.org>
56677
56678         * gnulib-tool (import): Provide default for --tests-base.
56679
56680 2005-09-19  Bruno Haible  <bruno@clisp.org>
56681
56682         * doc/quote.texi: New file, extracted from gnulib.texi.
56683         * doc/ctime.texi: New file, extracted from gnulib.texi.
56684         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
56685         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
56686         * doc/gnulib.texi: Include them.
56687
56688 2005-09-18  Bruno Haible  <bruno@clisp.org>
56689
56690         Portability fix.
56691         * gnulib-tool (func_readlink): New function.
56692         (func_ln_if_changed): Use it.
56693
56694 2005-09-18  Bruno Haible  <bruno@clisp.org>
56695
56696         * gnulib-tool: Support --with-tests also with --import.
56697         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
56698         (func_import): Use variables $testsbase and $inctests. Emit a
56699         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
56700         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
56701         SUBDIRS += $testsdir.
56702         (func_create_testdir): Update.
56703
56704 2005-09-18  Bruno Haible  <bruno@clisp.org>
56705
56706         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
56707         instead of $dry_run.
56708         (func_cp_if_changed, func_mv_if_changed): Remove functions.
56709         (func_ln_if_changed): Don't handle dry-run here.
56710         (func_import): In dry-run mode, detect more precisely which actions
56711         would be performed, and don't use "...ing" verbs.
56712
56713 2005-09-18  Bruno Haible  <bruno@clisp.org>
56714
56715         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
56716         (func_import): Use join on two temporary files instead of three nested
56717         loops, in order to determine which files are new or old.
56718
56719 2005-09-18  Bruno Haible  <bruno@clisp.org>
56720
56721         * gnulib-tool (func_import): Comment out code that spits out the
56722         new files with --dry-run.
56723
56724 2005-09-18  Bruno Haible  <bruno@clisp.org>
56725
56726         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
56727
56728 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56729
56730         * lib/stat-time.h: New file.
56731         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
56732         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
56733         in a different way.
56734         (timespec_cmp): New function.
56735         * lib/utimecmp.c: Include stat-time.h.
56736         (SYSCALL_RESOLUTION): Depend on whether various struct stat
56737         members exist, not on the obsolescent ST_MTIM_NSEC.
56738         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
56739
56740 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56741
56742         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
56743
56744 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56745
56746         * MODULES.html.sh (File system functions): Add stat-time.
56747         * modules/stat-time: New file.
56748         * modules/timespec (Files): Remove m4/st_mtim.m4; this
56749         is now done in a different way, by the stat-time module.
56750         * modules/utimecmp (Depends-on): Add stat-time.
56751
56752 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56753
56754         * m4/st_mtim.m4: Remove.  Superseded by...
56755         * m4/stat-time.m4: New file.
56756         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
56757         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
56758
56759 2005-09-15  Derek Price  <derek@ximbiot.com>
56760
56761         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
56762
56763 2005-09-15  Derek Price  <derek@ximbiot.com>
56764
56765         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
56766         * lib/regex_internal.c: Ditto, using this...
56767         (__GNUC_PREREQ): ...new macro.
56768         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
56769         using...
56770         (__GNUC_PREREQ): ...this new macro.
56771
56772         * lib/strstr.h: Include string.h. Define strstr as a macro here.
56773
56774 2005-09-15  Derek Price  <derek@ximbiot.com>
56775             Paul Eggert  <eggert@cs.ucla.edu>
56776
56777         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
56778         changes, consolidating in...
56779         * lib/regex_internal.h: ...this file.
56780
56781 2005-09-13  Jim Meyering  <jim@meyering.net>
56782
56783         * lib/canon-host.c: Filter through gnu indent and reword comments
56784         slightly.
56785         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
56786
56787 2005-09-13  Derek Price  <derek@ximbiot.com>
56788
56789         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
56790         failure.
56791         Reported by Jim Meyering  <jim@meyering.net>.
56792
56793 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56794
56795         * lib/base64.c: Typo.
56796         (base64_encode): Put b64str in initialized data section.
56797
56798 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
56799
56800         Merge glibc and coreutils changes into gnulib, plus a few
56801         extra fixes.
56802         * lib/md5.c: Use #error rather than a string.
56803         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
56804         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
56805         (__attribute__): Define to empty for non recent-GCC.
56806         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
56807         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
56808         Renamed from their non-__ counterparts, with new macros replacing
56809         them if not _LIBC.  Add __THROW attribute.
56810         (rol): Remove.
56811         (struct md5_ctx): Align buffer if using GCC.
56812         * lib/sha1.h (struct sha1_ctx): Likewise.
56813         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
56814         The old name was backwards.
56815         (NOTSWAP): Remove; not used.
56816         (rol): New macro, moved here from md5.h.
56817         (sha1_process_block): Remove a FIXME that doesn't make sense.
56818
56819 2005-09-12  Derek Price  <derek@ximbiot.com>
56820
56821         Return usable errors from canon-host.
56822         * lib/canon-host.h: New file.
56823         * lib/canon-host.c (canon_host): Wrap...
56824         (canon_host_r): ...this new function, which now relies exclusively on
56825         getaddrinfo.
56826         (ch_strerror): New function.
56827         (last_cherror): New global.
56828         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
56829         interface.
56830         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
56831         void *.
56832         (freeaddrinfo): Free ai->ai_canonname when set.
56833
56834 2005-09-12  Derek Price  <derek@ximbiot.com>
56835
56836         Make canon-host require getaddrinfo.
56837         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
56838         AC_LIBSOURCE canon-host.h.  Call...
56839         (gl_PREREQ_CANON_HOST): ...this new function, which requires
56840         gl_GETADDRINFO.
56841         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
56842
56843 2005-09-12  Derek Price  <derek@ximbiot.com>
56844
56845         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
56846         LGPL.
56847         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
56848
56849 2005-09-12  Derek Price  <derek@ximbiot.com>
56850
56851         * lib/gai_strerror.c: Include config.h when available.  Include
56852         getaddrinfo.h before other headers to test interface.
56853         Reported by Larry Jones <lawrence.jones@ugs.com>.
56854
56855 2005-09-12  Derek Price  <derek@ximbiot.com>
56856             Paul Eggert  <eggert@cs.ucla.edu>
56857
56858         * modules/glob (Files): Add glob-libc.h.
56859
56860 2005-09-12  Derek Price  <derek@ximbiot.com>
56861             Paul Eggert  <eggert@cs.ucla.edu>
56862
56863         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
56864         glob_.h, glob-libc.h.
56865         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
56866
56867 2005-09-12  Derek Price  <derek@ximbiot.com>
56868             Paul Eggert  <eggert@cs.ucla.edu>
56869
56870         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
56871         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
56872         protecting things that should be done only in gnulib contexts.
56873         * lib/glob_.h: New file, containing only the glob things needed for
56874         gnulib.
56875         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
56876         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
56877         (glob, globfree, glob_pattern_p): Now defined simply in terms of
56878         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
56879         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
56880         and to respect the namespace rules better.
56881
56882 2005-09-08  Simon Josefsson  <jas@extundo.com>
56883
56884         * modules/socklen: New file.
56885
56886 2005-09-08  Simon Josefsson  <jas@extundo.com>
56887
56888         * m4/socklen.m4: New file.
56889
56890 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56891
56892         * modules/utimens (Files): Add m4/utimbuf.m4, since
56893         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
56894         Reported by Sergey Poznyakoff.
56895
56896 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56897
56898         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
56899         definitions, since that's the preferred style in glibc.
56900         Fix a minor spacing issue, and update copyright notice to match
56901         glibc's.
56902
56903 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56904
56905         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
56906
56907 2005-09-06  Simon Josefsson  <jas@extundo.com>
56908
56909         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
56910         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
56911
56912 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56913
56914         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
56915         warning.
56916
56917 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56918
56919         * config/srclist.txt: Add glibc bug 1302.
56920
56921 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
56922
56923         Change bitset word type from unsigned int to unsigned long int,
56924         as this has better performance on typical 64-bit hosts.
56925         Port bitset code to hosts with unusual word sizes.
56926         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
56927         (build_collating_symbol):
56928         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
56929         argument is a bitset.  This is merely a style issue, but it makes
56930         it clearer that an entire array is expected.
56931         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
56932         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
56933         Port to the case where bitset_word is not the same as unsigned int.
56934         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56935         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
56936         Likewise.
56937         * lib/regexec.c (check_dst_limits_calc_pos_1,
56938         check_subexp_matching_top):
56939         (build_trtable, group_nodes_into_DFAstates):
56940         Likewise.
56941         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
56942         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
56943         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
56944         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
56945         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
56946         * lib/regcomp.c (optimize_subexps, lower_subexp):
56947         Work even if bitset_word has holes in its bitwise representation.
56948         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
56949         * lib/regexec.c (check_dst_limits_calc_pos_1,
56950         check_subexp_matching_top):
56951         Likewise.
56952         * lib/regex_internal.c (re_string_reconstruct):
56953         Don't assume UCHAR_MAX == 255.
56954         * lib/regex_internal.h (bitset_set_all): Likewise.
56955         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
56956         All uses changed.
56957         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
56958         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
56959         All uses changed.
56960         (BITSET_WORD_MAX): New macro.
56961         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
56962         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
56963         (bitset_empty, bitset_copy):
56964         Prefer sizeof (bitset) to multiplying it out ourselves.
56965         (bitset_not_merge): Remove; unused.
56966         (bitset_contain): Return bool, not unsigned int with one bit on.
56967         All callers changed.
56968         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
56969         alignment than re_node_set; do this by defining a new internal
56970         type struct dests_alloc and using it to allocate memory.
56971
56972 2005-09-05  Bruno Haible  <bruno@clisp.org>
56973
56974         * gnulib-tool (func_import): Fix comparison in handling of symbolic
56975         links.
56976
56977 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
56978
56979         * modules/size_max (Makefile.am): Add size_max.h
56980
56981 2005-09-04  Derek Price  <derek@ximbiot.com>
56982
56983         * gnulib-tool (func_import): Fix reversed $symbolic logic.
56984
56985 2005-09-03  Simon Josefsson  <jas@extundo.com>
56986
56987         * gnulib-tool: Fix typo.
56988
56989 2005-09-03  Simon Josefsson  <jas@extundo.com>
56990
56991         * config/srclist.txt: Add glibc bug 1293.
56992
56993 2005-09-03  Derek Price  <derek@ximbiot.com>
56994
56995         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
56996         From Larry Jones <lawrence.jones@ugs.com>.
56997
56998 2005-09-02  Simon Josefsson  <jas@extundo.com>
56999
57000         * modules/socklen: New file.
57001
57002 2005-09-02  Simon Josefsson  <jas@extundo.com>
57003
57004         * modules/havelib: New module.
57005
57006         * modules/gettext, modules/iconv, modules/lock, modules/readline:
57007         Use havelib.
57008
57009 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57010
57011         Check for arithmetic overflow when calculating sizes, to prevent
57012         some buffer-overflow issues.  These patches are conservative, in the
57013         sense that when I couldn't determine whether an overflow was possible,
57014         I inserted a run-time check.
57015         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
57016         macros.
57017         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
57018         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
57019         (re_xnrealloc, re_x2nrealloc): New inline functions.
57020         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
57021         parse_bracket_exp):
57022         (build_equiv_class, build_charclass): Check for arithmetic overflow
57023         in size expression calculations.
57024         * lib/regex_internal.c (re_string_realloc_buffers):
57025         (build_wcs_upper_buffer, re_node_set_add_intersect):
57026         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
57027         (re_dfa_add_node, register_state): Likewise.
57028         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
57029         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
57030         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
57031         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
57032
57033 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57034
57035         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
57036         m4/ulonglong.m4.  Problem reported by Martin Lambers.
57037
57038 2005-09-02  Bruno Haible  <bruno@clisp.org>
57039
57040         Support for lib vs. lib64 distinction on biarch platforms.
57041         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
57042         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
57043         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
57044
57045 2005-09-02  Bruno Haible  <bruno@clisp.org>
57046
57047         * gnulib-tool (import): In the other first-use case, provide defaults
57048         as well.
57049
57050 2005-09-02  Bruno Haible  <bruno@clisp.org>
57051
57052         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
57053         patches not yet found in the latest gettext release.
57054
57055 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57056
57057         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
57058         to avoid a collision with bits/local_lim.h in glibc.
57059         All uses changed.  Problem reported by Dmitry V. Levin in
57060         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
57061
57062         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
57063         bugs in int versus size_t comparisons.
57064         (re_string_context_at): Fix bug where the code assumed that
57065         Idx is signed.
57066
57067         Use bool where appropriate.
57068         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
57069         All callers changed.
57070         (calc_eclosure_iter): Likewise, for ROOT arg.
57071         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
57072         (build_charclass_op): Likewise, for NON_MATCH arg.
57073         * lib/regex_internal.c (re_string_allocate, re_string_construct):
57074         (re_string_construct_common): Likewise, for ICASE arg.
57075         * lib/regexec.c (re_search_2_stub, re_search_stub):
57076         Likewise, for RET_LEN arg.
57077         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
57078         (set_regs): Likewise, for FL_BACKTRACK arg.
57079         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
57080         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
57081         (calc_eclosure_iter, parse_bracket_exp):
57082         Use bool for internal variables that are booleans.
57083         * lib/regexec.c (re_search_internal, check_matching,
57084         proceed_next_node):
57085         (set_regs, build_sifted_states, sift_states_bkref):
57086         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
57087         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57088         (find_collation_sequence_value):
57089         Likewise.
57090         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
57091         (re_node_set_compare):
57092         Return bool, not int. All callers changed.
57093         * lib/regexec.c (check_halt_node_context, check_dst_limits):
57094         (build_trtable, check_node_accept): Likewise.
57095         * lib/regex_internal.h: Include stdbool.h.
57096
57097         Fix bugs uncovered when converting to bool.
57098         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
57099         failure instead of charging ahead blindly.
57100         * lib/regex_internal.c (register_state): Likewise.
57101         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
57102         for freeing internal storage.
57103         (group_nodes_into_DFA_states): Use unsigned int, not int, for
57104         bitset pieces used as boolean, to avoid undefined behavior
57105         on hosts that do int overflow checking.
57106
57107 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57108
57109         * config/srclist.txt: Add glibc bugs 1285-1287.
57110
57111 2005-09-01  Jim Meyering  <jim@meyering.net>
57112
57113         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
57114         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
57115         Require gl_STAT_MACROS, too.
57116
57117 2005-09-01  Bruno Haible  <bruno@clisp.org>
57118
57119         * gnulib-tool (import): In the first-use case, provide defaults.
57120
57121 2005-09-01  Bruno Haible  <bruno@clisp.org>
57122
57123         * gnulib-tool (func_import): Remove the .tmp files.
57124
57125 2005-09-01  Bruno Haible  <bruno@clisp.org>
57126
57127         * gnulib-tool (func_import): Fix handling of symbolic links.
57128
57129 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57130
57131         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
57132         old glibc regex code mishandles strings longer than 2**31 bytes.
57133         This patch fixes this when the regex code is used in gnulib
57134         (i.e., outside glibc).
57135
57136         This patch should not affect the use of the regex code inside
57137         glibc.  No doubt this problem also needs to be handled for glibc
57138         as well, but the result will be an incompatible change to the
57139         glibc ABI, and the old ABI will have to be supported too.  That
57140         can be the the subject for another patch.
57141
57142         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
57143         governing whether the rest of this patch is active.  By default,
57144         the macro is disabled and the patch has no effect.
57145         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
57146         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
57147         (struct re_pattern_buffer, re_search, re_search_2, re_match):
57148         (re_match_2, re_set_registers): Use the new types.
57149         * lib/regex_internal.h (Idx, re_hashval_t): New types.
57150         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
57151         New macros.
57152         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
57153         (re_string_context_at, bin_tree_t, re_dfastate_t):
57154         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
57155         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
57156         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
57157         (re_string_char_size_at, re_string_wchar_at):
57158         (re_string_elem_size_at):
57159         Use the new types and macros to port to 64-bit hosts.
57160         Use unsigned types for internal values, so that the code
57161         mostly works even for arrays larger than SSIZE_MAX.
57162         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
57163         (search_duplicated_node, calc_eclosure_iter, fetch_number):
57164         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
57165         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
57166         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
57167         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
57168         (calc_inveclosure, parse_dup_op, build_range_exp):
57169         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
57170         (fetch_number, create_token_tree, mark_opt_subexp):
57171         Likewise.
57172         * lib/regex_internal.c (re_string_construct_common,
57173         create_ci_newstate):
57174         (create_cd_newstate, re_string_allocate, re_string_construct):
57175         (re_string_realloc_buffers, build_wcs_upper_buffer):
57176         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
57177         (re_string_reconstruct, re_string_peek_byte_case):
57178         (re_string_fetch_byte_case, re_string_context_at):
57179         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
57180         (re_node_set_init_copy, re_node_set_add_intersect):
57181         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57182         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57183         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
57184         (re_acquire_state, re_acquire_state_context, register_state):
57185         Likewise.
57186         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
57187         search_cur_bkref_entry):
57188         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
57189         (re_search_internal, re_search_2_stub, re_search_stub)
57190         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
57191         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
57192         (update_cur_sifted_state, check_dst_limits):
57193         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
57194         (check_subexp_limits, sift_states_bkref, merge_state_array):
57195         (check_subexp_matching_top, get_subexp, get_subexp_sub):
57196         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
57197         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57198         (expand_bkref_cache, check_node_accept_bytes):
57199         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
57200         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
57201         (acquire_init_state_context, check_halt_node_context):
57202         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
57203         (sift_states_backward, clean_state_log_if_needed):
57204         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
57205         (find_recover_state, transit_state_sb, transit_state_mb):
57206         (transit_state_bkref, build_trtable, match_ctx_clean):
57207         Likewise.
57208         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
57209         to work around an assumption that REG_MISSING is negative.
57210
57211         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
57212         (seek_collating_symbol_entry) [defined _LIBC]:
57213         (lookup_collation_sequence_value) [defined _LIBC]:
57214         (build_range_exp, build_collating_symbol) [defined _LIBC]:
57215         Use prototypes rather than old-style function definitions.
57216         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
57217         (transit_state_sb) [0]:
57218         (find_collation_sequence_value) [defined _LIBC]: Likewise.
57219
57220         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
57221         rm_eo.
57222
57223         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
57224         (optimize_subexps, lower_subexp):
57225         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
57226         since the signed shift might overflow.  Use 1u<<31 instead.
57227         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
57228         Likewise.
57229         * lib/regexec.c (check_dst_limits_calc_pos_1,
57230         check_subexp_matching_top): Likewise.
57231
57232         * lib/regcomp.c (optimize_subexps, lower_subexp):
57233         Use CHAR_BIT rather than 8, for clarity.
57234         * lib/regexec.c (check_dst_limits_calc_pos_1):
57235         (check_subexp_matching_top): Likewise.
57236         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
57237         have to worry about portability issues when shifting it left.
57238         Remove no-longer-needed test for table_size > 0.
57239         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
57240         in a word, as the resulting behavior is undefined.
57241         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
57242         in one case, a <= should have been an <, and in another case the
57243         whole test was missing.
57244         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
57245         the standard name CHAR_BIT.
57246         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
57247         this is not true on one's complement and signed-magnitude hosts.
57248
57249         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
57250         next_last_offset.
57251         (struct re_dfa_t): Remove unused member states_alloc.
57252         * lib/regcomp.c (init_dfa): Don't initialize unused members.
57253
57254 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57255
57256         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
57257         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
57258         and large-file glibc and in 32-bit large-file Solaris.
57259
57260 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57261
57262         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
57263         lengths fit in regoff_t; this isn't true if regoff_t is the same
57264         width as size_t.
57265         * lib/regex.c (re_search_internal): 5th arg is LAST_START
57266         (= START + RANGE) instead of RANGE.  This avoids overflow
57267         problems when regoff_t is the same width as size_t.
57268         All callers changed.
57269         (re_search_2_stub): Check for overflow when adding the
57270         sizes of the two strings.
57271         (re_search_stub): Check for overflow when adding START
57272         to RANGE; if it occurs, substitute the extreme value.
57273
57274 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57275
57276         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
57277
57278 2005-08-31  Jim Meyering  <jim@meyering.net>
57279
57280         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
57281         a pointer-to-const.
57282         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
57283         (register_state): Likewise.
57284         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
57285         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
57286         (group_nodes_into_DFAstates): Likewise.
57287
57288 2005-08-31  Jim Meyering  <jim@meyering.net>
57289
57290         * check-module: Add a FIXME comment.
57291
57292 2005-08-31  Eric Blake  <ebb9@byu.net>
57293
57294         * modules/unistd-safer (Files): Add unistd--.h.
57295         * modules/stdio-safer (Files): Add stdio--.h.
57296
57297 2005-08-31  Derek Price  <derek@ximbiot.com>
57298
57299         * lib/getdelim.c (getdelim): Return EOF on EOF.
57300         Reported by Larry Jones <lawrence.jones@ugs.com>.
57301
57302 2005-08-31  Bruno Haible  <bruno@clisp.org>
57303
57304         Avoid unnecessary diffs in the generated lib/Makefile.am.
57305         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
57306         the generated files.
57307         (func_import): Don't set cmd.
57308
57309 2005-08-31  Bruno Haible  <bruno@clisp.org>
57310
57311         * lib/strstr.c: Include <stddef.h>, for NULL.
57312         * lib/strcasestr.c: Likewise.
57313         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57314
57315 2005-08-31  Bruno Haible  <bruno@clisp.org>
57316
57317         * gnulib-tool: New option --macro-prefix.
57318         (func_import): Use macro_prefix.
57319         (import): Handle option --macro-prefix.
57320
57321 2005-08-31  Bruno Haible  <bruno@clisp.org>
57322
57323         * gnulib-tool (import): Rename most ac_* variables to cached_*.
57324         Also use new variables cached_lgpl, cached_libtool.
57325
57326 2005-08-31  Bruno Haible  <bruno@clisp.org>
57327
57328         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
57329         always instantiating them.
57330
57331 2005-08-31  Bruno Haible  <bruno@clisp.org>
57332
57333         * gnulib-tool (func_import): Read the previous cached settings
57334         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
57335         earlier added by gnulib but are now dropped. Warn when a gnulib file
57336         overwrites a non-gnulib file.
57337
57338 2005-08-31  Bruno Haible  <bruno@clisp.org>
57339
57340         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
57341         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
57342         projects that don't keep autogenerated files in CVS. Put into
57343         actioncmd only the specified modules, not the transitive closure.
57344
57345 2005-08-31  Bruno Haible  <bruno@clisp.org>
57346
57347         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
57348         Create directories that shall be filled.
57349         (import): Don't look for gl_* macros in configure.ac. Recurse across
57350         all directories containing a gnulib-cache.m4 files, if meaningful.
57351
57352 2005-08-31  Bruno Haible  <bruno@clisp.org>
57353
57354         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
57355         (import): Set seen_libtool when we see gl_LIBTOOL.
57356
57357 2005-08-31  Bruno Haible  <bruno@clisp.org>
57358
57359         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
57360         declaration macro definitions from generated gnulib.m4.
57361
57362 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
57363
57364         * lib/iconvme.h: Add prototype for iconv_alloc.
57365
57366 2005-08-29  Simon Josefsson  <jas@extundo.com>
57367
57368         * lib/iconvme.c: Fix errno.
57369
57370 2005-08-29  Bruno Haible  <bruno@clisp.org>
57371
57372         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
57373         that it works when the directory contains spaces.
57374
57375 2005-08-29  Bruno Haible  <bruno@clisp.org>
57376
57377         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
57378
57379 2005-08-29  Bruno Haible  <bruno@clisp.org>
57380
57381         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
57382         Emit more advice.
57383
57384 2005-08-29  Bruno Haible  <bruno@clisp.org>
57385         and Stepan Kasal  <kasal@ucw.cz>
57386
57387         * check-module: If more parameters are given, check each of them
57388         separately; add more exceptions, as noted by Jim Meyering.
57389         (check_module): New procedure.
57390         (%exempt_header): Now contains all exceptions.
57391
57392 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
57393
57394         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
57395
57396 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
57397
57398         * lib/iconvme.c: Split iconv_string into iconv_alloc.
57399
57400 2005-08-28  Bruno Haible  <bruno@clisp.org>
57401
57402         * m4/gnulib-tool.m4: New file.
57403
57404 2005-08-27  Jim Meyering  <jim@meyering.net>
57405
57406         * modules/unistd-safer (Files): Add pipe-safer.c.
57407         * modules/fcntl-safer (Files): Add creat-safer.c.
57408
57409 2005-08-27  Jim Meyering  <jim@meyering.net>
57410
57411         * m4/stdlib-safer.m4: New file.  From coreutils.
57412         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
57413         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
57414         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
57415         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
57416         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
57417
57418 2005-08-27  Jim Meyering  <jim@meyering.net>
57419
57420         * lib/fopen-safer.c: Merge minor changes from coreutils.
57421         * lib/dup-safer.c: Likewise.
57422         * lib/fd-safer.c: Likewise.
57423
57424         Merge from coreutils.
57425         * lib/stdio--.h: New file.
57426         * lib/stdlib--.h: New file.
57427         * lib/mkstemp-safer.c: New file.
57428
57429         GNU tar needs these.
57430         * lib/pipe-safer.c: New file.
57431         * lib/creat-safer.c: New file.
57432         * lib/fcntl--.h (creat): Define to creat_safer.
57433         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
57434         * lib/unistd--.h (pipe): Define to pipe_safer.
57435         * lib/unistd-safer.h: Declare pipe_safer.
57436
57437 2005-08-26  Simon Josefsson  <jas@extundo.com>
57438
57439         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
57440         Haible <bruno@clisp.org>.
57441
57442 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
57443
57444         * lib/regex_internal.h: Remove all references to
57445         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
57446         or better.
57447         (bitset_not, bitset_merge, bitset_not_merge):
57448         (bitset_mask, re_string_allocate, re_string_construct):
57449         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
57450         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
57451         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
57452         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
57453         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57454         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57455         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
57456         (re_acquire_state_context):
57457         Remove unnecessary forward decls.
57458         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
57459         Put __attribute at function definition,
57460         now that the function decl has been removed.
57461         * lib/regex_internal.c (re_string_peek_byte_case):
57462         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
57463         Likewise.
57464
57465 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
57466
57467         * m4/regex.m4: Add AC_PREREQ(2.50).
57468         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
57469
57470 2005-08-25  Simon Josefsson  <jas@extundo.com>
57471
57472         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
57473         __fsetlocking.
57474
57475 2005-08-25  Simon Josefsson  <jas@extundo.com>
57476
57477         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
57478         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
57479         GLIBC specific code.
57480
57481 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57482
57483         Make regex safe for g++.  This fixes one real bug (an "err"
57484         that should have been "*err").  g++ problem reported by
57485         Sam Steingold.
57486         * lib/regex_internal.h (re_calloc): New macro, consistent with
57487         re_malloc etc.  All callers of calloc changed to use re_calloc.
57488         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
57489         not int.  All callers changed.
57490         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
57491         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
57492         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
57493         (find_recover_state): Change "err" to "*err"; this fixes what
57494         appears to be a real bug.
57495         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
57496         versus int.
57497
57498 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57499
57500         * modules/regex (Depends-on): Add malloc, since the code
57501         assumes that !malloc(0) means failure.
57502
57503 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57504
57505         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
57506
57507         alloca modernization/simplification for regex.
57508         * lib/regex.c: Remove portability cruft for alloca.  This no longer
57509         needs to be at the start of the file, and can be moved into
57510         regex_internal.h and simplified.
57511         * lib/regex_internal.h: Include <alloca.h>.
57512         (__libc_use_alloca) [!defined _LIBC]: New macro.
57513         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
57514         now works outside glibc.
57515
57516 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57517
57518         * config/srclist.txt: Add glibc bugs 1241, 1245.
57519
57520 2005-08-25  Jim Meyering  <jim@meyering.net>
57521
57522         * lib/open-safer.c: Include <config.h>.
57523         Otherwise, we'd lose LARGEFILE support in any file using
57524         e.g. "fcntl--.h"
57525
57526 2005-08-25  Bruno Haible  <bruno@clisp.org>
57527
57528         * m4/minmax.m4: Require autoconf 2.52.
57529         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
57530         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
57531         alternatives of translit over the alphabet.
57532         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
57533
57534 2005-08-24  Simon Josefsson  <jas@extundo.com>
57535
57536         * tests/test-getpass.c: New file.
57537
57538 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57539
57540         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
57541         for GNU regex features.
57542
57543 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57544
57545         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
57546         * lib/regex.h (regerror): Likewise.
57547
57548         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
57549         requires this.  (The code never needed it.)
57550
57551         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
57552         All uses of recently-renamed identifiers changed to use the new,
57553         POSIX-compliant names.  The code will build and run just fine
57554         without these changes, but it's better to eat our own dog food
57555         and use the standard-conforming names.
57556
57557         * lib/regex.h: Fix a multitude of POSIX name space violations.
57558         These changes have an effect only for programs that define
57559         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
57560         do not change anything for programs compiled in the normal way.
57561         Also, there is no effect on the ABI.
57562
57563         (_REGEX_SOURCE): New macro.
57564         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
57565         defined and _GNU_SOURCE is not; this fixes a name space violation.
57566
57567         Rename the following macros to obey POSIX requirements.
57568         The old names are still visible as macros if _REGEX_SOURCE is defined.
57569         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
57570         RE_BACKSLASH_ESCAPE_IN_LISTS.
57571         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
57572         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
57573         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
57574         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
57575         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
57576         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
57577         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
57578         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
57579         (REG_INTERVALS): renamed from RE_INTERVALS.
57580         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
57581         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
57582         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
57583         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
57584         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
57585         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
57586         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
57587         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
57588         RE_UNMATCHED_RIGHT_PAREN_ORD.
57589         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
57590         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
57591         (REG_DEBUG): renamed from RE_DEBUG.
57592         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
57593         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
57594         unusual, since we can't clash with the POSIX REG_ICASE.
57595         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
57596         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
57597         (REG_NO_SUB): renamed from RE_NO_SUB.
57598         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
57599         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
57600         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
57601         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
57602         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
57603         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
57604         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
57605         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
57606         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
57607         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
57608         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
57609         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
57610         RE_SYNTAX_POSIX_MINIMAL_BASIC.
57611         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
57612         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
57613         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
57614         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
57615         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
57616         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
57617         (REG_FIXED): Renamed from REGS_FIXED.
57618         (REG_NREGS): Renamed from RE_NREGS.
57619
57620         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
57621         of other REG_* macros, since POSIX says the user is allowed to
57622         #undef these macros selectively.
57623
57624         (reg_errcode_t): Update comment stating what other tables need
57625         to be consistent.
57626
57627         Rename the following enum values to obey POSIX requirements.
57628         The old names are still visible as macros.
57629         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
57630         is not defined, since GNU is supposed to be a superset of POSIX as
57631         much as possible, and since we want reg_errcode_t to be a signed
57632         type for implementation consistency.
57633         (_REG_NOERROR): Renamed from REG_NOERROR.
57634         (_REG_NOMATCH): Renamed from REG_NOMATCH.
57635         (_REG_BADPAT): Renamed from REG_BADPAT.
57636         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
57637         (_REG_ECTYPE): Renamed from REG_ECTYPE.
57638         (_REG_EESCAPE): Renamed from REG_EESCAPE.
57639         (_REG_ESUBREG): Renamed from REG_ESUBREG.
57640         (_REG_EBRACK): Renamed from REG_EBRACK.
57641         (_REG_EPAREN): Renamed from REG_EPAREN.
57642         (_REG_EBRACE): Renamed from REG_EBRACE.
57643         (_REG_BADBR): Renamed from REG_BADBR.
57644         (_REG_ERANGE): Renamed from REG_ERANGE.
57645         (_REG_ESPACE): Renamed from REG_ESPACE.
57646         (_REG_BADRPT): Renamed from REG_BADRPT.
57647         (_REG_EEND): Renamed from REG_EEND.
57648         (_REG_ESIZE): Renamed from REG_ESIZE.
57649         (_REG_ERPAREN): Renamed from REG_ERPAREN.
57650         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
57651         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
57652         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
57653         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
57654
57655         (_REG_RE_NAME, _REG_RM_NAME): New macros.
57656         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
57657         changed.  But support the old name if the new one is not defined
57658         and if _REGEX_SOURCE.
57659
57660         Change the following member names in struct re_pattern_buffer.
57661         The old names are still supported if !_REGEX_SOURCE.
57662         The new names are always supported, regardless of _REGEX_SOURCE.
57663         (re_buffer): Renamed from buffer.
57664         (re_allocated): Renamed from allocated.
57665         (re_used): Renamed from used.
57666         (re_syntax): Renamed from syntax.
57667         (re_fastmap): Renamed from fastmap.
57668         (re_translate): Renamed from translate.
57669         (re_can_be_null): Renamed from can_be_null.
57670         (re_regs_allocated): Renamed from regs_allocated.
57671         (re_fastmap_accurate): Renamed from fastmap_accurate.
57672         (re_no_sub): Renamed from no_sub.
57673         (re_not_bol): Renamed from not_bol.
57674         (re_not_eol): Renamed from not_eol.
57675         (re_newline_anchor): Renamed from newline_anchor.
57676
57677         Change the following member names in struct re_registers.
57678         The old names are still supported if !_REGEX_SOURCE.
57679         The new names are always supported, regardless of _REGEX_SOURCE.
57680         (rm_num_regs): Renamed from num_regs.
57681         (rm_start): Renamed from start.
57682         (rm_end): Renamed from end.
57683
57684         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
57685         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
57686         Prepend __ to parameter names.
57687
57688         Undo yesterday's changes.
57689
57690 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57691
57692         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
57693         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
57694         lib/regex.c.
57695
57696 2005-08-24  Jim Meyering  <jim@meyering.net>
57697
57698         Sync from coreutils.
57699         * m4/fcntl-safer.m4: New file.
57700
57701         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
57702         and object files for this module.
57703
57704 2005-08-24  Jim Meyering  <jim@meyering.net>
57705
57706         Sync from coreutils.
57707         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
57708
57709 2005-08-24  Jim Meyering  <jim@meyering.net>
57710
57711         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
57712         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
57713
57714 2005-08-24  Jim Meyering  <jim@meyering.net>
57715
57716         * modules/fcntl-safer: New module.
57717         * modules/fts (Depends-on): Add fcntl-safer.
57718         * MODULES.html.sh (File descriptor based Input/Output):
57719         Add fcntl-safer.
57720
57721 2005-08-24  Bruno Haible  <bruno@clisp.org>
57722
57723         Support for unit test modules.
57724         * modules/README: Mention tests modules.
57725         * modules/TEMPLATE-TESTS: New file.
57726         * gnulib-tool: New options --extract-tests-module, --with-tests and
57727         --tests-base (unused for the moment).
57728         (testsbase, inctests): New variables.
57729         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
57730         (func_verify_module): Exclude TEMPLATE-TESTS.
57731         (func_verify_nontests_module, func_verify_tests_module): New functions.
57732         (func_get_dependencies): Add implicit dependency for tests modules.
57733         (func_get_tests_module): New function.
57734         (func_modules_transitive_closure): When --with-tests was specified,
57735         include the unit tests as well, unless explicitly avoided.
57736         (func_emit_lib_Makefile_am): Ignore the tests modules here.
57737         (func_emit_tests_Makefile_am): New function.
57738         (func_create_testdir): When --with-tests was specified, emit a
57739         tests/ directory.
57740         * MODULES.html.sh (Future developments): Update.
57741
57742 2005-08-24  Bruno Haible  <bruno@clisp.org>
57743
57744         * modules/tls-tests: New file.
57745         * tests/test-tls.c: New file, from GNU gettext.
57746
57747 2005-08-24  Bruno Haible  <bruno@clisp.org>
57748
57749         * modules/lock-tests: New file.
57750         * tests/test-lock.c: New file, from GNU gettext.
57751
57752 2005-08-24  Bruno Haible  <bruno@clisp.org>
57753
57754         * lib/lock.h: Add multiple inclusion guard.
57755         * lib/tls.h: Add multiple inclusion guard.
57756
57757 2005-08-24  Bruno Haible  <bruno@clisp.org>
57758
57759         * gnulib-tool: Add support for the --aux-dir option to
57760         --create-testdir, --create-megatestdir, --test, --megatest.
57761         (func_create_testdir, func_create_megatestdir): Optionally emit a
57762         AC_CONFIG_AUX_DIR directive.
57763         (create-testdir, create-megatestdir, test, megatest): Provide a
57764         default value for $auxdir.
57765
57766 2005-08-24  Bruno Haible  <bruno@clisp.org>
57767
57768         * gnulib-tool (import): Use compound statement instead of subshell
57769         where possible.
57770
57771 2005-08-24  Bruno Haible  <bruno@clisp.org>
57772
57773         * gnulib-tool (import): Change --aux-dir default to "build-aux".
57774
57775 2005-08-24  Bruno Haible  <bruno@clisp.org>
57776
57777         * gnulib-tool (func_version): Update.
57778
57779 2005-08-24  Bruno Haible  <bruno@clisp.org>
57780
57781         * gnulib-tool (func_import, func_create_testdir,
57782         func_create_megatestdir): Quote all autoconf macro arguments.
57783
57784 2005-08-24  Bruno Haible  <bruno@clisp.org>
57785
57786         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
57787         option --force, because --force causes the aclocal.m4 of each
57788         subdirectory to be newer than the corresponding config.h.in.
57789
57790 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57791
57792         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
57793         All contents moved to gl_REGEX.
57794         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
57795         assume that it does.
57796
57797 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57798
57799         * lib/regex.h (REG_NOSYS)
57800         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
57801         Define, since POSIX requires it as of 2001.
57802         (_REG_ENOSYS)
57803         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
57804         New private symbol, used to keep the enum signed in all cases.
57805         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
57806         Youngman in
57807         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
57808
57809         * lib/regex_internal.c (re_string_skip_chars, register_state):
57810         (calc_state_hash):
57811         Remove forward decls; no longer needed now that we use prototypes.
57812         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
57813         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
57814         (clean_state_log_if_needed): Likewise.
57815
57816 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57817
57818         * config/srclist.txt: Add glibc bugs 1231-1233.
57819
57820 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57821
57822         Fix problems reported by Sam Steingold in
57823         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
57824         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
57825         assumed that reg_errcode_t is a signed type, which is not
57826         necessarily true if _XOPEN_SOURCE is not defined.
57827         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
57828         since some compilers warn about it otherwise.
57829
57830 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57831
57832         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
57833         (init_word_char, create_initial_state, duplicate_node_closure):
57834         (fetch_token, peek_token_bracket, build_range_exp):
57835         (build_collating_symbol): Remove forward decls; no longer needed
57836         now that we use prototypes.
57837
57838         * lib/regcomp.c:
57839         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
57840         (re_compile_fastmap_iter, regcomp, regerror, regfree):
57841         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
57842         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
57843         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
57844         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
57845         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
57846         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
57847         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
57848         (build_range_exp, build_collating_symbol, parse_bracket_exp):
57849         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
57850         (build_charclass, build_charclass_op, fetch_number, create_tree):
57851         (create_token_tree, mark_opt_subexp, duplicate_tree):
57852         Use prototypes rather than old-style definitions.
57853
57854         * lib/regex_internal.c:
57855         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
57856         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
57857         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
57858         (re_string_reconstruct, re_string_peek_byte_case):
57859         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
57860         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
57861         (re_node_set_init_copy, re_node_set_add_intersect):
57862         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57863         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57864         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
57865         (re_acquire_state, re_acquire_state_context, register_state):
57866         (create_ci_newstate, create_cd_newstate, free_state):
57867         Likewise.
57868         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
57869         re_search_2):
57870         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
57871         (re_search_internal, prune_impossible_nodes):
57872         (acquire_init_state_context, check_matching, static):
57873         (check_halt_node_context, check_halt_state_context, proceed_next_node):
57874         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
57875         (update_regs, sift_states_backward, build_sifted_states):
57876         (clean_state_log_if_needed, merge_state_array):
57877         (update_cur_sifted_state, add_epsilon_src_nodes):
57878         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
57879         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
57880         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
57881         (find_recover_state, check_subexp_matching_top, transit_state_mb):
57882         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
57883         (check_arrival, check_arrival_add_next_nodes):
57884         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57885         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57886         (check_node_accept_bytes, check_node_accept, extend_buffers):
57887         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
57888         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
57889         (sift_ctx_init):
57890         Likewise.
57891
57892         * lib/regex_internal.h:
57893         (re_string_allocate, re_string_construct, re_string_reconstruct):
57894         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
57895         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
57896         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
57897         (re_string_context_at, re_string_peek_byte_case):
57898         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
57899         is defined, since we now use prototypes always.
57900
57901         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
57902         C89 or better.  All uses removed.
57903
57904 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57905
57906         * config/srclist.txt: Add glibc bugs 1220-1227.
57907
57908 2005-08-20  Jim Meyering  <jim@meyering.net>
57909
57910         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
57911         of unused local, dfa.
57912
57913 2005-08-20  Bruno Haible  <bruno@clisp.org>
57914
57915         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
57916
57917 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57918
57919         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
57920         (re_node_set_insert_last, re_dfa_add_node):
57921         Rename local variables to avoid GCC shadowing warnings.
57922
57923 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57924
57925         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
57926         [defined lint]: Suppress bogus uninitialized-variable warnings.
57927
57928         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
57929         and let the caller return REG_ESPACE if out of space.  This
57930         removes an uninitialied-variable warning with GCC 4.0.1, and also
57931         avoids taking the address of a local variable.  All callers
57932         changed.
57933
57934 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57935
57936         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
57937         $LIBCSRC/posix/regexec.c.
57938         Add glibc bug 1217 for regcomp.c.
57939
57940 2005-08-19  Jim Meyering  <jim@meyering.net>
57941
57942         * lib/regexec.c (proceed_next_node): Redo local variables to
57943         avoid GCC shadowing warnings.
57944
57945 2005-08-18  Bruno Haible  <bruno@clisp.org>
57946
57947         * lib/strstr.c (strstr): Fix return value in multibyte case.
57948         * lib/strcasestr.c (strcasestr): Likewise.
57949
57950 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57951
57952         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
57953
57954 2005-08-17  Jim Meyering  <jim@meyering.net>
57955
57956         Make the %s format (seconds since the epoch) work for a negative
57957         number and when used with a zero-padded field width, e.g. %015s.
57958
57959         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
57960         label so that it precedes the code to set `digits'.  Otherwise,
57961         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
57962         print `00-22'.  Now, it prints `-0022', as it should.
57963
57964 2005-08-17  Bruno Haible  <bruno@clisp.org>
57965
57966         * modules/strstr (Files): Add m4/mbrtowc.m4.
57967         (Depends-on): Add mbuiter.
57968
57969 2005-08-17  Bruno Haible  <bruno@clisp.org>
57970
57971         * modules/strcasestr: New file.
57972         * MODULES.html.sh (String handling, based on ANSI C 89): Add
57973         strcasestr.
57974
57975 2005-08-17  Bruno Haible  <bruno@clisp.org>
57976
57977         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
57978
57979 2005-08-17  Bruno Haible  <bruno@clisp.org>
57980
57981         * modules/mbuiter: New file.
57982         * MODULES.html.sh (Extended multibyte and wide character utilities):
57983         Add mbuiter.
57984
57985 2005-08-17  Bruno Haible  <bruno@clisp.org>
57986
57987         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
57988         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
57989
57990 2005-08-17  Bruno Haible  <bruno@clisp.org>
57991
57992         * m4/strcasestr.m4: New file.
57993
57994 2005-08-17  Bruno Haible  <bruno@clisp.org>
57995
57996         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
57997         * lib/strstr.c: Completely rewritten, with multibyte locale support.
57998
57999 2005-08-17  Bruno Haible  <bruno@clisp.org>
58000
58001         * lib/strcasestr.h: New file.
58002         * lib/strcasestr.c: New file.
58003
58004 2005-08-17  Bruno Haible  <bruno@clisp.org>
58005
58006         * lib/strcasecmp.c: Use mbuiter.h.
58007
58008 2005-08-17  Bruno Haible  <bruno@clisp.org>
58009
58010         * lib/mbuiter.h: New file.
58011
58012 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58013
58014         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
58015         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
58016         and gl_GETOPT are both invoked via different paths (as happens
58017         with GNU tar CVS because it uses both argp and getopt), the former
58018         wins.
58019
58020 2005-08-16  Bruno Haible  <bruno@clisp.org>
58021
58022         * modules/tls: New file.
58023         * MODULES.html.sh (Multithreading): Add tls.
58024
58025 2005-08-16  Bruno Haible  <bruno@clisp.org>
58026
58027         * modules/strnlen1: New file.
58028         * MODULES.html.sh (String handling): Add strnlen1.
58029
58030 2005-08-16  Bruno Haible  <bruno@clisp.org>
58031
58032         * modules/strcase (Files): Add m4/mbrtowc.m4.
58033         (Depends-on): Add strnlen1, mbchar.
58034
58035 2005-08-16  Bruno Haible  <bruno@clisp.org>
58036
58037         * modules/mbiter: New file.
58038         * MODULES.html.sh (Extended multibyte and wide character utilities):
58039         Add mbiter.
58040
58041 2005-08-16  Bruno Haible  <bruno@clisp.org>
58042
58043         * modules/mbfile: New file.
58044         * MODULES.html.sh (Extended multibyte and wide character utilities):
58045         Add mbfile.
58046
58047 2005-08-16  Bruno Haible  <bruno@clisp.org>
58048
58049         * modules/mbchar: New file.
58050         * MODULES.html.sh (Extended multibyte and wide character utilities):
58051         New section.
58052
58053 2005-08-16  Bruno Haible  <bruno@clisp.org>
58054
58055         * m4/tls.m4: New file, from GNU gettext.
58056
58057 2005-08-16  Bruno Haible  <bruno@clisp.org>
58058
58059         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
58060         always.
58061         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
58062
58063 2005-08-16  Bruno Haible  <bruno@clisp.org>
58064
58065         * m4/mbiter.m4: New file.
58066
58067 2005-08-16  Bruno Haible  <bruno@clisp.org>
58068
58069         * m4/mbfile.m4: New file.
58070
58071 2005-08-16  Bruno Haible  <bruno@clisp.org>
58072
58073         * m4/mbchar.m4: New file.
58074
58075 2005-08-16  Bruno Haible  <bruno@clisp.org>
58076
58077         * lib/tls.h: New file, from GNU gettext.
58078         * lib/tls.c: New file, from GNU gettext.
58079
58080 2005-08-16  Bruno Haible  <bruno@clisp.org>
58081
58082         * lib/strnlen1.h: New file.
58083         * lib/strnlen1.c: New file.
58084
58085 2005-08-16  Bruno Haible  <bruno@clisp.org>
58086
58087         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
58088         (mbi_init): Update.
58089         (mbi_avail, mbi_advance): Let the iteration end before the terminating
58090         NUL byte, not after it.
58091
58092 2005-08-16  Bruno Haible  <bruno@clisp.org>
58093
58094         * lib/strcase.h (strcasecmp): Add note in comments.
58095         * lib/strncasecmp.c: Use code from strcasecmp.c.
58096         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
58097         (strcasecmp): Work correctly in multibyte locales.
58098
58099 2005-08-16  Bruno Haible  <bruno@clisp.org>
58100
58101         * lib/mbiter.h: New file.
58102
58103 2005-08-16  Bruno Haible  <bruno@clisp.org>
58104
58105         * lib/mbfile.h: New file.
58106
58107 2005-08-16  Bruno Haible  <bruno@clisp.org>
58108
58109         * lib/mbchar.h: New file.
58110         * lib/mbchar.c: New file.
58111
58112 2005-08-16  Bruno Haible  <bruno@clisp.org>
58113
58114         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
58115         the valid ones. Makes the comparison operations transitive:
58116         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
58117         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
58118
58119 2005-08-15  Simon Josefsson  <jas@extundo.com>
58120
58121         * modules/ssize_t (License): Change to 'unlimited'.
58122
58123         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
58124
58125 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58126
58127         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
58128         Add comments for each pending glibc patch.
58129
58130 2005-08-15  Bruno Haible  <bruno@clisp.org>
58131
58132         * lib/regex.h (__restrict_arr): Don't define to __restrict if
58133         __cplusplus is defined.
58134
58135 2005-08-14  Jim Meyering  <jim@meyering.net>
58136
58137         Sync from coreutils.
58138
58139         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
58140         Use the hash-table-based cycle-detection code not just when
58141         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
58142         Reported by James Youngman in
58143         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
58144         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
58145         FTS_TIGHT_CYCLE_CHECK.
58146         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
58147         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
58148         once again.
58149         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
58150         * lib/fts.c (fd_safer): Remove decl.
58151         Include fcntl--.h rather than unistd-safer.h
58152         (fts_safe_changedir): Don't call fd_safer; no longer needed
58153         now that we include fcntl--.h.
58154
58155 2005-08-12  Simon Josefsson  <jas@extundo.com>
58156
58157         * modules/getndelim2: Use ssize_t module.
58158         * modules/getnline: Likewise.
58159         * modules/safe-read: Likewise.
58160         * modules/xreadlink: Likewise.
58161
58162         * modules/ssize_t: New file.
58163
58164 2005-08-12  Simon Josefsson  <jas@extundo.com>
58165
58166         * m4/readline.m4: Look for termcap, curses or ncurses if required.
58167
58168 2005-08-12  Simon Josefsson  <jas@extundo.com>
58169
58170         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58171         ssize_t.
58172
58173 2005-08-12  Simon Josefsson  <jas@extundo.com>
58174
58175         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
58176         readline, getdelim and check_version.
58177         (Support for systems lacking ISO C 99: Sizes of integer types):
58178         Add size_max.
58179
58180 2005-08-12  Bruno Haible  <bruno@clisp.org>
58181
58182         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
58183
58184 2005-08-11  Simon Josefsson  <jas@extundo.com>
58185
58186         * modules/readline: New file.
58187
58188         * modules/strnlen (Files): Add strnlen.h.
58189
58190 2005-08-11  Simon Josefsson  <jas@extundo.com>
58191
58192         * m4/readline.m4: New file.
58193
58194 2005-08-11  Simon Josefsson  <jas@extundo.com>
58195
58196         * lib/readline.h, readline.c: New file.
58197
58198 2005-08-11  Simon Josefsson  <jas@extundo.com>
58199
58200         * doc/gnulib.texi (Initial import, Finishing touches): Mention
58201         gl_AVOID.
58202
58203 2005-08-11  Bruno Haible  <bruno@clisp.org>
58204
58205         * lib/strnlen.h (strnlen): Change parameter name to match comment.
58206
58207 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
58208
58209         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
58210
58211 2005-08-10  Simon Josefsson  <jas@extundo.com>
58212
58213         * tests/test-iconvme.c: New file.
58214
58215 2005-08-10  Simon Josefsson  <jas@extundo.com>
58216
58217         * m4/strnlen.m4: New file.
58218
58219         * m4/strndup.m4: Don't check for strnlen declaration, done in
58220         strnlen.m4.
58221
58222 2005-08-10  Simon Josefsson  <jas@extundo.com>
58223
58224         * lib/strndup.c: Use strnlen.h.
58225
58226         * lib/strnlen.h: New file.
58227
58228 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58229
58230         * README: Typos.
58231
58232 2005-08-02  Simon Josefsson  <jas@extundo.com>
58233
58234         * modules/readline: New file.
58235
58236 2005-08-02  Simon Josefsson  <jas@extundo.com>
58237
58238         * modules/getdelim: New file.
58239
58240         * modules/getline: Rewrite, don't use getndelim2.
58241
58242 2005-08-02  Simon Josefsson  <jas@extundo.com>
58243
58244         * m4/getline.m4: Separate out getdelim stuff into separate module.
58245
58246         * m4/getdelim.m4: New file.
58247
58248 2005-08-02  Simon Josefsson  <jas@extundo.com>
58249
58250         * lib/getline.h, getline.c: Rewrite.
58251
58252         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
58253
58254 2005-07-31  Bruno Haible  <bruno@clisp.org>
58255
58256         * lib/lock.h (gl_lock_initializer): New macro.
58257         (gl_lock_define_initialized): Use it.
58258         (gl_rwlock_initializer): New macro.
58259         (gl_rwlock_define_initialized): Use it.
58260         (gl_recursive_lock_initializer): New macro.
58261         (gl_recursive_lock_define_initialized): Use it.
58262
58263 2005-07-30  Karl Berry  <karl@gnu.org>
58264
58265         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
58266         Report from Ben Pfaff, regarding getopt.
58267
58268 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
58269
58270         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
58271         normal way.
58272         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
58273         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
58274         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
58275         (gl_GETOPT): Use the new macros.  Most of the implementation
58276         is moved to the new macros.  This is for programs like Emacs
58277         that don't want all the functionality of gl_GETOPT.
58278
58279 2005-07-26  Bruno Haible  <bruno@clisp.org>
58280
58281         * m4/lock.m4: Update from GNU gettext.
58282
58283 2005-07-26  Bruno Haible  <bruno@clisp.org>
58284
58285         * lib/lock.h: Update from GNU gettext.
58286         * lib/lock.c: Update from GNU gettext.
58287
58288 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
58289
58290         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
58291         obsolescent AC_TRY_RUN.  Include the default includes files, for
58292         'exit'.
58293
58294 2005-07-24  Bruno Haible  <bruno@clisp.org>
58295
58296         * modules/visibility: New file.
58297         * MODULES.html.sh (Misc): Add visibility.
58298
58299 2005-07-24  Bruno Haible  <bruno@clisp.org>
58300
58301         * m4/visibility.m4: New file.
58302
58303 2005-07-24  Bruno Haible  <bruno@clisp.org>
58304
58305         * doc/visibility.texi: New file.
58306
58307 2005-07-22  Bruno Haible  <bruno@clisp.org>
58308
58309         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
58310         $(ALLOCA_H), redundant through BUILT_SOURCES.
58311         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
58312         redundant through BUILT_SOURCES.
58313         * modules/byteswap (Makefile.am): Remove explicit dependency on
58314         $(BYTESWAP_H), redundant through BUILT_SOURCES.
58315         * modules/fnmatch (Makefile.am): Remove explicit dependency on
58316         $(FNMATCH_H), redundant through BUILT_SOURCES.
58317         * modules/getopt (Makefile.am): Remove explicit dependency on
58318         $(GETOPT_H), redundant through BUILT_SOURCES.
58319         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
58320         redundant through BUILT_SOURCES.
58321         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
58322         redundant through BUILT_SOURCES.
58323         * modules/stdbool (Makefile.am): Remove explicit dependency on
58324         $(STDBOOL_H), redundant through BUILT_SOURCES.
58325         * modules/stdint (Makefile.am): Remove explicit dependency on
58326         $(STDINT_H), redundant through BUILT_SOURCES.
58327         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
58328         Remove explicit dependency on $(SYSEXITS_H).
58329         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
58330
58331 2005-07-18  Simon Josefsson  <jas@extundo.com>
58332
58333         * lib/check-version.c (check_version): Accept identical versions too.
58334
58335 2005-07-18  Bruno Haible  <bruno@clisp.org>
58336
58337         * modules/lock: New file.
58338         * MODULES.html.sh (Multithreading): New section.
58339
58340 2005-07-18  Bruno Haible  <bruno@clisp.org>
58341
58342         * m4/lock.m4: New file, from GNU gettext.
58343
58344 2005-07-18  Bruno Haible  <bruno@clisp.org>
58345
58346         * lib/lock.h: New file, from GNU gettext.
58347         * lib/lock.c: New file, from GNU gettext.
58348
58349 2005-07-18  Bruno Haible  <bruno@clisp.org>
58350
58351         * lib/lock.h (gl_once_t): New type.
58352         (gl_once_define, gl_once): New macros.
58353         * lib/lock.c (fresh_once): New variable.
58354         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
58355         functions.
58356
58357 2005-07-16  Simon Josefsson  <jas@extundo.com>
58358
58359         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
58360         workaround, suggested by Bruno.
58361
58362 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58363
58364         * modules/xalloc (Depends-on): Add xalloc-die.
58365         * modules/xvasprintf (Depends-on): Add xalloc-die.
58366
58367 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58368
58369         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
58370         with a minor change.
58371
58372 2005-07-15  Bruno Haible  <bruno@clisp.org>
58373
58374         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
58375         When using lib/poll.c, define poll as rpl_poll.
58376
58377 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
58378
58379         * modules/argp (Depends-on): Remove unlocked-io.
58380
58381 2005-07-14  Derek Price  <derek@ximbiot.com>
58382
58383         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
58384         for glob symlink bug.
58385
58386 2005-07-14  Bruno Haible  <bruno@clisp.org>
58387
58388         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
58389         Instead, test for *_unlocked function declarations directly.
58390
58391 2005-07-11  Simon Josefsson  <jas@extundo.com>
58392
58393         * modules/size_max: New file.
58394
58395         * modules/xsize: Depend on size_max module for size_max.m4.
58396
58397 2005-07-11  Simon Josefsson  <jas@extundo.com>
58398
58399         * lib/size_max.h: New file.
58400
58401 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
58402
58403         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
58404         copyright symbol and the year.
58405         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
58406         (version_etc_va): Use parameterized copyright notice.
58407         Reword to conform to the current GNU coding standards.
58408
58409 2005-07-11  Karl Berry  <karl@gnu.org>
58410
58411         * doc/gnulib.texi (Quoting): new node.
58412         (Initial import): more info, from Patrice.
58413
58414 2005-07-11  Bruno Haible  <bruno@clisp.org>
58415
58416         * gnulib-tool (func_usage): Document option --avoid.
58417         (Command line options): Handle --avoid.
58418         (func_acceptable): New function.
58419         (func_modules_transitive_closure): Use it.
58420
58421 2005-07-11  Bruno Haible  <bruno@clisp.org>
58422
58423         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
58424         Reported by Jim Meyering.
58425
58426 2005-07-10  Bruno Haible  <bruno@clisp.org>
58427
58428         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
58429         Needed when size_t is smaller than 'unsigned int'.
58430         Reported by Paul Eggert.
58431
58432 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58433
58434         * modules/argp (Depends-on): Add unlocked-io
58435
58436 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58437
58438         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
58439         block of defines.
58440
58441 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58442
58443         * config/srclist.txt: Comment out regcomp.c, since we have a porting
58444         fix now.
58445
58446 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
58447         and Paul Eggert  <eggert@cs.ucla.edu>
58448
58449         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
58450         in wint_t, not wchar_t.  Remove now-unnecessary cast.
58451
58452 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58453
58454         * modules/regex (Files): Add lib/regex_internal.c,
58455         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
58456         (Depends-on): Add extensions.
58457         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
58458
58459 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58460
58461         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
58462         pathconf.
58463         * m4/same.m4 (gl_SAME): Likewise.
58464         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
58465
58466         * m4/regex.m4: Adjust to new libc regex implementation.
58467         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
58468         all the .c and .h parts of (the new) regex.
58469         Quote the m4 stuff better.
58470         Check for RE_ICASE bug of old gnulib.
58471         Check for REG_STARTEND of recent libc.
58472         Rename local variables from jm_* to gl_*.
58473         Quote operand of "test -f".
58474         Say "recent enough" version of libc, not "version 2".
58475         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
58476         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
58477         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
58478         Remove check for btowc, isascii.
58479         Require AM_LANGINFO_CODESET.
58480
58481 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58482
58483         * lib/regex.c, regex.h: Sync from libc.
58484         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
58485         * lib/regexec.c:
58486         New files, synced from libc, except that regex_internal.h
58487         currently has a small porting fix.
58488
58489 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58490
58491         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
58492         regex_internal.c, regexec.c.
58493         Add regex_internal.h too, but as a comment, since the libc version
58494         is currently broken in gnulib mode.
58495
58496 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58497
58498         Support programs like Emacs that use gnulib but not gettext.
58499         * MODULES.html.sh (Internationalization functions): Add gettext-h.
58500         * modules/gettext-h: New file.
58501         * modules/gettext (Files): Remove lib/gettext.h.
58502         (Depends-on): Add gettext-h.
58503         (Makefile.am): Remove lib_SOURCES.
58504         * modules/argmatch, modules/c-stack, modules/closeout:
58505         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
58506         * modules/execute, modules/file-type, modules/getaddrinfo:
58507         * modules/getopt, modules/human, modules/javacomp:
58508         * modules/javaexec, modules/mkdir-p, modules/obstack:
58509         * modules/openat, modules/pagealign_alloc, modules/pipe:
58510         * modules/quotearg, modules/regex, modules/rpmatch:
58511         * modules/unicodeio, modules/userspec, modules/version-etc:
58512         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
58513         * modules/xsetenv:
58514         Depend on gettext-h, not gettext.
58515
58516 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58517
58518         * gnulib-tool (func_import): Add support for 'public domain' license.
58519         * modules/alloca, modules/atexit, modules/memmove:
58520         Now public domain, not GPL.
58521         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
58522         * modules/realloc, modules/strerror, modules/strtod:
58523         Now LGPL, not GPL.
58524
58525 2005-07-05  Bruno Haible  <bruno@clisp.org>
58526
58527         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
58528         autoconf CVS. Needed for mingw.
58529
58530 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58531
58532         Remove the dependency of the strftime module on the tzset module.
58533         * modules/strftime (Depends-on): Remove dependency on tzset.
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         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
58539         gl_FUNC_TZSET_CLOBBER.
58540
58541 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58542
58543         Remove the dependency of the strftime module on the tzset module.
58544         * lib/strftime.c (my_strftime)
58545         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
58546         Copy the input structure, to work around some of the bug with
58547         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
58548         Solaris releases, you should also use the tzset module, but we won't
58549         require it as a dependency any more since we don't want LGPLed code
58550         to depend on GPLed code.
58551
58552 2005-07-02  Jim Meyering  <jim@meyering.net>
58553
58554         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
58555         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
58556         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
58557         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
58558
58559 2005-07-02  Jim Meyering  <jim@meyering.net>
58560
58561         * lib/backupfile.c (backup_args): Change a `0' to NULL.
58562
58563 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58564
58565         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
58566         declares only 'struct timespec;' (!).
58567
58568 2005-07-01  Jim Meyering  <jim@meyering.net>
58569
58570         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
58571         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
58572         * lib/save-cwd.c, tempname.c:
58573         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
58574         and don't include <sys/file.h>).
58575
58576 2005-06-29  Jim Meyering  <jim@meyering.net>
58577
58578         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
58579         type name.  Use the variable name instead.
58580         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
58581         Likewise.
58582
58583 2005-06-28  Simon Josefsson  <jas@extundo.com>
58584
58585         * modules/check-version (Files): Add check-version.m4.
58586
58587 2005-06-28  Simon Josefsson  <jas@extundo.com>
58588
58589         * m4/check-version.m4: New file, suggested by Jim Meyering
58590         <jim@meyering.net>.
58591
58592 2005-06-28  Simon Josefsson  <jas@extundo.com>
58593
58594         * lib/check-version.h, lib/check-version.c: New files.
58595
58596 2005-06-28  Simon Josefsson  <jas@extundo.com>
58597
58598         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
58599         collision with global variable.  Better indentation.  Don't
58600         increment buffer pointer beyond buffer end.  Based on comments
58601         from Paul Eggert <eggert@cs.ucla.edu>.
58602
58603         * lib/base64.h: Indent.
58604
58605 2005-06-28  Simon Josefsson  <jas@extundo.com>
58606
58607         * doc/gnulib.texi (Library version handling): New section.
58608
58609 2005-06-28  Jim Meyering  <jim@meyering.net>
58610
58611         * check-module (find_included_lib_files): Hard-code another
58612         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
58613         but modules/fts-lgpl (correctly) does not list those files.
58614
58615         * modules/canonicalize (Files): Add lib/pathmax.h.
58616
58617 2005-06-25  Simon Josefsson  <jas@extundo.com>
58618
58619         * modules/check-version: New file.
58620
58621 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
58622
58623         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
58624         initializer of struct addrinfo, as an indication that we don't
58625         care how many members the structure has.
58626
58627 2005-06-24  Derek Price  <derek@ximbiot.com>
58628         and Bruno Haible  <bruno@clisp.org>
58629
58630         Remove stat module & update lstat.
58631         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
58632         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58633         * m4/stat.m4: Remove this file.
58634
58635 2005-06-24  Derek Price  <derek@ximbiot.com>
58636         and Bruno Haible  <bruno@clisp.org>
58637
58638         Remove stat module & update lstat.
58639         * lib/stat.c: Remove this file...
58640         (slash_aware_lstat): ...moving this content and its support...
58641         * lib/lstat.c (rpl_lstat): ...into here.
58642         * lib/lstat.h: New file.
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         * config/srclist.txt (libc sources): Remove stat.
58649
58650 2005-06-24  Derek Price  <derek@ximbiot.com>
58651         and Bruno Haible  <bruno@clisp.org>
58652
58653         Remove stat module & update lstat.
58654         * MODULES.html.sh (stat): Remove.
58655         * MODULES.html: Regenerated.
58656         * modules/lstat (Description): Correct function name.
58657         (Files): Add "lstat.h".
58658         (Depends-on): Remove stat, add xalloc, stat-macros.
58659         * modules/stat: Remove this file.
58660         (Include): Add "lstat.h", remove <sys/stat.h>.
58661
58662 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58663
58664         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
58665         (ranged_convert): Don't save conversion in a temporary struct.
58666         This causes a warning with GCC 4.0.0, and anyway in the typical
58667         case it's not worth the extra 100 bytes or so of code.
58668         (ranged_convert, __mktime_internal): When calling a function via a
58669         pointer P, use P () rather than (*P) (), as we now assume C89 or
58670         better.
58671
58672 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58673
58674         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
58675         "who -r" failed to give output.  Problem reported by Tim Waugh.
58676
58677         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
58678         (xcalloc): Use it to avoid needless tests.
58679         Problem reported by Jim Meyering.
58680
58681 2005-06-20  Derek Price  <derek@ximbiot.com>
58682
58683         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
58684         unnecessary for Autoconfs > 2.59c.
58685
58686 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58687
58688         * lib/argp.h (__option_is_short): Check upper limit of
58689         __key. Isprint() requires its argument to have the value
58690         of an unsigned char or EOF.
58691
58692 2005-06-16  Jim Meyering  <jim@meyering.net>
58693
58694         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
58695         when either N or S is zero.
58696
58697 2005-06-16  Derek Price  <derek@ximbiot.com>
58698
58699         * m4/bison.m4: Declare YACC & YFLAGS precious.
58700
58701 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
58702
58703         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
58704         multibyte string or pattern, fall back on unibyte matching.
58705         Problem reported by James Youngman.
58706
58707 2005-06-08  Bruno Haible  <bruno@clisp.org>
58708
58709         * modules/csharpcomp: New file.
58710         * MODULES.html.sh (C#): Add csharpcomp.
58711
58712 2005-06-08  Bruno Haible  <bruno@clisp.org>
58713
58714         * m4/csharpcomp.m4: New file, from GNU gettext.
58715
58716 2005-06-08  Bruno Haible  <bruno@clisp.org>
58717
58718         * lib/csharpcomp.h: New file, from GNU gettext.
58719         * lib/csharpcomp.c: New file, from GNU gettext.
58720         * lib/csharpcomp.sh.in: New file, from GNU gettext.
58721
58722 2005-06-08  Bruno Haible  <bruno@clisp.org>
58723
58724         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
58725         warning on mingw.
58726
58727 2005-06-07  Derek Price  <derek@ximbiot.com>
58728
58729         Sync from CVS.
58730         * lib/glob_.h: Indent nested #ifdef.
58731
58732 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58733
58734         Sync from coreutils.
58735         Use "file name" when talking about file names, instead of "filename"
58736         or "path", as per the GNU coding standards.
58737         * lib/mkdir-p.c: Renamed from makepath.c.
58738         (make_dir_parents): Renamed from make_path.  All callers changed.
58739         * lib/mkdir-p.h: Likewise.  All includers changed.
58740         * lib/filenamecat.c: Renamed from path-concat.c.
58741         (file_name_concat): Renamed from path_concat.  All callers changed.
58742         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
58743         * lib/filenamecat.h: Likewise.  All includers changed.
58744         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
58745         in comments or local variable names.
58746         * lib/basename.c: Likewise.
58747         * lib/canonicalize.c, canonicalize.h: Likewise.
58748         * lib/dirname.c, dirname.h: Likewise.
58749         * lib/euidaccess.c: Likewise.
58750         * lib/exclude.c: Likewise
58751         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
58752         * lib/fsusage.c, fsuage.h: Likewise.
58753         * lib/fts.c, fts_.h: Likewise.
58754         * lib/getcwd.c: Likewise.
58755         * lib/getloadavg.c: Likewise.
58756         * lib/mkstemp.c: Likewise.
58757         * lib/mountlist.c, mountlist.h: Likewise.
58758         * lib/openat.c, openat.h: Likewise.
58759         * lib/readlink-stub.c: Likewise.
58760         * lib/readutmp.c, readutmp.h: Likewise.
58761         * lib/rename.c: Likewise.
58762         * lib/rmdir.c: Likewise.
58763         * lib/same.c: Likewise.
58764         * lib/savedir.c: Likewise.
58765         * lib/stripslash.c: Likewise.
58766         * lib/tempname.c: Likewise.
58767         * lib/xreadlink.c: Likewise.
58768         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
58769         All uses changed.
58770         * lib/exclude.h: Likewise.
58771
58772         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
58773         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58774         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
58775         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58776         * lib/pathmax.h: Include <limits.h> unconditionally, since other
58777         files have been getting away with it for years (MORE/BSD 4.3
58778         is extinct now).
58779         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
58780         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58781
58782         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
58783         Define to 256, not 255, as per modern POSIX.
58784
58785 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58786
58787         Sync from coreutils.
58788         Use "file name" when talking about file names, instead of "filename"
58789         or "path", as per the GNU coding standards.
58790         * MODULES.html.sh: mkdir-p renamed from makepath.
58791         filenamecat renamed from path-concat.
58792         * modules/filenamecat: Renamed from modules/path-concat.
58793         (Files): filenamecat.h and filenamecat.c renamed from
58794         path-concat.h and path-concat.c.
58795         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
58796         (Include): filenamecat.h, not path-concat.h.
58797         * modules/mkdir-p: Renamed from modules/makepath.
58798         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
58799         makepath.c.
58800         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
58801         (Include): mkdir-p.h, not makepath.h.
58802
58803 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58804
58805         Sync from coreutils.
58806         * m4/mkdir-p.m4: Renamed from makepath.m4.
58807         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
58808         Rename files from makepath.c to mkdir-p.c, and from
58809         makepath.h to mkdir-p.h.
58810         * m4/filenamecat.m4: Renamed from path-concat.m4.
58811         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
58812         Rename files from path-concat.c to filenamecat.c,
58813         and from path-concat.h to filenamecat.h.
58814         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
58815         "file name" in local variables or comments.
58816         * m4/rename.m4: Likewise.
58817
58818 2005-06-01  Bruno Haible  <bruno@clisp.org>
58819
58820         * modules/csharpexec: New file.
58821         * MODULES.html.sh (C#): New section.
58822
58823 2005-06-01  Bruno Haible  <bruno@clisp.org>
58824
58825         * m4/csharp.m4: New file, from GNU gettext.
58826         * m4/csharpexec.m4: New file, from GNU gettext.
58827
58828 2005-06-01  Bruno Haible  <bruno@clisp.org>
58829
58830         * lib/csharpexec.h: New file, from GNU gettext.
58831         * lib/csharpexec.c: New file, from GNU gettext.
58832         * lib/csharpexec.sh.in: New file, from GNU gettext.
58833
58834 2005-05-31  Derek Price  <derek@ximbiot.com>
58835             Paul Eggert  <eggert@cs.ucla.edu>
58836
58837         Sync from cvs.
58838         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58839
58840 2005-05-31  Derek Price  <derek@ximbiot.com>
58841             Paul Eggert  <eggert@cs.ucla.edu>
58842
58843         Sync from cvs.
58844         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58845
58846 2005-05-29  Derek Price  <derek@ximbiot.com>
58847
58848         * config/srclist.txt (glob_.h, glob.c): Add these files.
58849
58850 2005-05-29  Derek Price  <derek@ximbiot.com>
58851
58852         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
58853         * modules/glob: New file.
58854         * modules/getlogin_r: Add link to POSIX spec in description.
58855
58856 2005-05-29  Derek Price  <derek@ximbiot.com>
58857             Paul Eggert  <eggert@cs.ucla.edu>
58858
58859         * m4/glob.m4: New file.
58860
58861 2005-05-29  Derek Price  <derek@ximbiot.com>
58862             Paul Eggert  <eggert@cs.ucla.edu>
58863
58864         * lib/glob_.h, lib/glob.c: New files.
58865
58866 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58867
58868         * modules/fts (Files): Remove m4/inttypes-pri.m4.
58869         * modules/fts-lgpl (Depends-on): Remove gettext.
58870
58871 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58872
58873         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
58874         and don't require gt_INTTYPES_PRI.
58875
58876 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58877
58878         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
58879
58880         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
58881         the configuration hassle isn't worth it.
58882         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
58883         (LONGEST_MODIFIER, PRIuMAX): Remove.
58884
58885 2005-05-27  Bruno Haible  <bruno@clisp.org>
58886
58887         * lib/getlogin_r.h: Remove second include of <stddef.h>.
58888
58889 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
58890
58891         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
58892         _POSIX_PTHREAD_SEMANTICS for Solaris.
58893
58894 2005-05-25  Derek Price  <derek@ximbiot.com>
58895
58896         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
58897
58898 2005-05-25  Derek Price  <derek@ximbiot.com>
58899             Paul Eggert  <eggert@cs.ucla.edu>
58900
58901         * modules/getlogin_r, m4/getlogin_r.m4: New files.
58902         * lib/getlogin_r.c, getlogin_r.h: New files.
58903
58904 2005-05-25  Bruno Haible  <bruno@clisp.org>
58905             Derek Price  <derek@ximbiot.com>
58906
58907         * lib/getlogin_r.h: Simplify API documentation.
58908
58909 2005-05-23  Derek Price  <derek@ximbiot.com>
58910
58911         * modules/minmax (Files): Add m4/minmax.m4.
58912         (configure.ac): Add gl_MINMAX.
58913
58914 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58915
58916         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
58917         so that unistd-safer.h (GPL'ed code) need not be included.
58918
58919 2005-05-22  Bruno Haible  <bruno@clisp.org>
58920
58921         * m4/minmax.m4: New file.
58922         Based on a patch by Derek Price <derek@ximbiot.com>.
58923
58924 2005-05-22  Bruno Haible  <bruno@clisp.org>
58925
58926         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
58927         (INT64_MIN): Fix definition.
58928         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
58929
58930         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
58931         NEED_SIGNED_INT_TYPES.
58932
58933         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
58934         HAVE_SYSTEM_INTTYPES.
58935
58936 2005-05-22  Bruno Haible  <bruno@clisp.org>
58937
58938         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
58939         Also include <sys/param.h> if it defines MIN, MAX.
58940         Based on a patch by Derek Price <derek@ximbiot.com>.
58941
58942 2005-05-21  Jim Meyering  <jim@meyering.net>
58943
58944         * modules/fts (Files): Add m4/inttypes-pri.m4.
58945         (Depends-on): Add lstat and remove gettext.  Alphabetize.
58946
58947 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58948
58949         New fts module.
58950         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
58951         (setup_dir, free_dir): New functions.
58952         (enter_dir, leave_dir): Define trivial
58953         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
58954         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
58955         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
58956         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
58957         Move to fts-cycle.c.
58958         (fts_open): Use setup_dir.
58959         (fts_close): Use free_dir.
58960         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
58961         This adds a label and some gotos, but the alternatives were messier.
58962         Check for memory allocation failure when entering a dir.
58963         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
58964         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
58965         (FTS): New member fts_cycle, that is a union that contains the
58966         old active_dir_ht and cycle_state.  All uses changed to mention
58967         fts_cycle.ht and fts_cycle.state.
58968         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
58969         fts.c, with the following changes:
58970         (setup_dir, free_dir): New functions.
58971         (enter_dir): Now returns bool.  Return true if successful, false
58972         if memory exhausted.  All callers changed.
58973         Do not bother partly cleaning up on
58974         memory allocation failure; that is free_dir's job.
58975         However, free ad if hash_insert fails, to avoid memory leak.
58976         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
58977         fts->fts_options to see which union member to use.
58978
58979 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58980
58981         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
58982         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
58983
58984 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58985
58986         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
58987
58988 2005-05-20  Jim Meyering  <jim@meyering.net>
58989
58990         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
58991         Now a macro, to pacify GCC.
58992
58993 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58994
58995         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
58996         of -1.
58997
58998 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58999
59000         * lib/chown.c (rpl_chown): Return -1 on failure.
59001
59002 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
59003
59004         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
59005         Don't check for stddef.h.
59006         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
59007         don't use its results.
59008         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
59009         since we include them unconditionally.  Don't require
59010         AM_STDBOOL_H, since stdbool is a prerequisite.
59011         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
59012         since we assume C89 or better.
59013         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
59014         as we don't use their results.
59015         Don't check for fchdir, memmove, memset, strrchr, as we use
59016         them unconditionally.
59017         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
59018         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
59019
59020 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
59021
59022         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
59023         Include <stddef.h> unconditionally, since we assume C89 now.
59024         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
59025         * lib/fts.c: Include fts_.h first, to check interface.
59026         Do not include intprops.h; no longer needed.
59027         Include cycle-check.h and hash.h, since fts_.h no longer does.
59028         Remove unnecessary casts of closedir to void.
59029         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
59030         decide whether to decrement nlinks.
59031         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
59032         (FTS): Use struct hash_table * instead of Hash_table, so that
59033         we no longer need to include hash.h here.
59034
59035 2005-05-18  Jim Meyering  <jim@meyering.net>
59036
59037         * modules/dirfd (License): Change to LGPL.  Most of the code
59038         is already in the public domain.
59039
59040 2005-05-18  Jim Meyering  <jim@meyering.net>
59041
59042         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
59043         Reported by Yoann Vandoorselaere.
59044
59045 2005-05-17  Jim Meyering  <jim@meyering.net>
59046
59047         * m4/fts.m4: New file, from coreutils.
59048
59049 2005-05-17  Jim Meyering  <jim@meyering.net>
59050
59051         * lib/fts.c, lib/fts_.h: New files, from coreutils.
59052
59053 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59054
59055         Sync from coreutils.
59056         * m4/unlinkdir.m4: New file.
59057
59058 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59059
59060         Sync from coreutils.
59061         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
59062         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
59063         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
59064         White space changes only.
59065         * lib/makepath.c (make_path): Port to hosts where leading "//" is
59066         special.
59067         * lib/yesno.c: Include getline.h, not ctype.h.
59068         (yesno): Don't remove leading white space; POSIX doesn't allow it.
59069         Use getline to remove arbitrary restriction on response length.
59070
59071 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59072
59073         * config/srclist-update: Spell out "Street" in FSF postal
59074         mail address; this is the style the FSF seems to prefer.
59075
59076         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
59077         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
59078         this updates FSF postal mail address.
59079
59080         Sync from coreutils.
59081         * modules/unlinkdir: New file.
59082         * modules/yesno (Depends-on): Add getline.
59083         * MODULES.html.sh (File system functions): Add unlinkdir.
59084
59085 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59086
59087         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
59088         lib/strsep.h:
59089         Change the initial comment to refer to GPL, not LGPL.
59090         gnulib-tool will change it to LGPL as needed.
59091
59092         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
59093         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
59094         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
59095         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
59096         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
59097         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
59098         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
59099         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
59100         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
59101         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
59102         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
59103         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
59104         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
59105         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
59106         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
59107         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
59108         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
59109         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
59110         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
59111         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
59112         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
59113         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
59114         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
59115         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
59116         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
59117         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
59118         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
59119         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
59120         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
59121         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
59122         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
59123         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
59124         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
59125         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
59126         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
59127         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
59128         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
59129         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
59130         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
59131         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
59132         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
59133         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
59134         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
59135         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
59136         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
59137         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
59138         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
59139         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
59140         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
59141         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
59142         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
59143         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
59144         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
59145         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
59146         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
59147         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
59148         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
59149         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
59150         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
59151         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
59152         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
59153         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
59154         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
59155         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
59156         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
59157         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
59158         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
59159         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
59160         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
59161         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
59162         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
59163         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
59164         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
59165         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
59166         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
59167         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
59168         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
59169         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
59170         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
59171         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
59172         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
59173         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
59174         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
59175         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
59176         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
59177         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
59178         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
59179         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
59180         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
59181         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
59182         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
59183         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
59184         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
59185         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
59186         lib/yesno.c, lib/yesno.h:
59187         Update FSF postal mail address.
59188
59189 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59190
59191         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
59192         tests/test-memmem.c, tests/test-stpncpy.c:
59193         Update FSF postal mail address.
59194
59195 2005-05-13  Bruno Haible  <bruno@clisp.org>
59196
59197         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
59198         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
59199         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
59200         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
59201         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
59202         Add support for 64-bit integers in the MSVC compiler.
59203
59204 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59205
59206         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
59207
59208 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
59209
59210         * gnulib-tool (func_import): Sort and uniquify recommended includes.
59211
59212 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
59213
59214         * doc/getdate.texi (General date syntax): Don't say that date
59215         date --iso-8601=ns generates acceptable dates; it doesn't yet.
59216         Problem reported by Nic Ferrier.
59217
59218 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59219
59220         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
59221         specified in ai_socktype. Fix invalid ai_protocol
59222         check. ai_protocol is usually set to 0 or depending on
59223         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
59224         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
59225         ai_socktype / ai_protocol in the returned addrinfo structure.
59226
59227 2005-05-10  Simon Josefsson  <jas@extundo.com>
59228
59229         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
59230         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59231
59232 2005-05-10  Karl Berry  <karl@gnu.org>
59233
59234         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
59235         (from http://www.gnu.org/licenses).
59236         * doc/COPYING.LIB: also rename to COPYING.LESSER.
59237         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
59238         fdl.texi suffices.
59239
59240 2005-05-10  Karl Berry  <karl@gnu.org>
59241
59242         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
59243         (COPYING.DOC): remove.
59244
59245         * config/srclist-update: new FSF address.
59246
59247 2005-05-10  Derek Price  <derek@ximbiot.com>
59248
59249         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
59250         possible.
59251
59252 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59253             Bruno Haible  <bruno@clisp.org>
59254
59255         * modules/inet_ntop: New file.
59256         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59257         inet_ntop.
59258
59259 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59260             Bruno Haible  <bruno@clisp.org>
59261
59262         * m4/inet_ntop.m4: New file.
59263
59264 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59265             Bruno Haible  <bruno@clisp.org>
59266
59267         * lib/inet_ntop.h: New file.
59268         * lib/inet_ntop.c: New file, from glibc with modifications.
59269
59270 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
59271
59272         * modules/time_r (License): Change to LGPL.
59273         * modules/extensions (License): Change to LGPL.  Actually,
59274         the license is more permissive than that, but currently gnulib-tool
59275         doesn't know how to handle more-permissive licenses.
59276
59277         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
59278         Problem reported by Dave Love.
59279
59280 2005-05-08  Jim Meyering  <jim@meyering.net>
59281
59282         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
59283         blank.
59284
59285 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
59286
59287         * modules/argmatch (Depends-on): Add stdbool.
59288         * modules/backupfile (Depends-on): Likewise.
59289         * modules/chdir-long (Depends-on): Likewise.
59290         * modules/closeout (Depends-on): Likewise.
59291         * modules/cycle-check (Depends-on): Likewise.
59292         * modules/dirname (Depends-on): Likewise.
59293         * modules/fnmatch (Depends-on): Likewise.
59294         * modules/fsusage (Depends-on): Likewise.
59295         * modules/fwriteerror (Depends-on): Likewise.
59296         * modules/getcwd (Depends-on): Likewise.
59297         * modules/getloadavg (Depends-on): Likewise.
59298         * modules/hard-locale (Depends-on): Likewise.
59299         * modules/makepath (Depends-on): Likewise.
59300         * modules/mountlist (Depends-on): Likewise.
59301         * modules/nanosleep (Depends-on): Likewise.
59302         * modules/posixtm (Depends-on): Likewise.
59303         * modules/quotearg (Depends-on): Likewise.
59304         * modules/readtokens (Depends-on): Likewise.
59305         * modules/readtokens0 (Depends-on): Likewise.
59306         * modules/readutmp (Depends-on): Likewise.
59307         * modules/save-cwd (Depends-on): Likewise.
59308         * modules/strftime (Depends-on): Likewise.
59309         * modules/userspec (Depends-on): Likewise.
59310         * modules/utimecmp (Depends-on): Likewise.
59311         * modules/xgetcwd (Depends-on): Likewise.
59312         * modules/xnanosleep (Depends-on): Likewise.
59313         * modules/xstrtod (Depends-on): Likewise.
59314         * modules/yesno (Depends-on): Likewise.
59315
59316 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
59317
59318         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
59319         needless checks.
59320
59321 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59322
59323         Merge from coreutils.  Among other things,
59324         add bulletproofing for cases where stdin, stdout, or stderr are closed.
59325         * lib/fd-safer.c: New file.
59326         * lib/fcntl-safer.h, open-safer.c: Remove.
59327         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
59328         * lib/dup-safer.c: Include unistd-safer.h first.
59329         Don't include errno.h.
59330         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
59331         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
59332         * lib/file-type.c: Rely on file-type.h change.
59333         * lib/getloadavg.c: Include unistd-safer.h.
59334         (getloadavg): Use safer open.
59335         * lib/getusershell.c: Include "stdio-safer.h".
59336         (getusershell): Use safer fopen.
59337         * lib/long-options.c (long_options): Use NULL rather than 0.
59338         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
59339         'free'.
59340         * lib/modechange.c: Likewise.
59341         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
59342         (MODE_DONE): New constant.
59343         (struct mode_change): Remove 'next' member.
59344         (make_node_op_equals): New function; like the old one of the
59345         same name, except it allocates an array.
59346         (mode_compile, mode_create_from_ref): Use it.
59347         (mode_compile): Allocate result as an array, not a linked list.
59348         Parse octal string ourself, so that we catch mistakes like "+0".
59349         (mode_adjust): Arg is an array, not a linked list.
59350         * lib/modechange.c: Include stat-macros.h, xalloc.h.
59351         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
59352         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
59353         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
59354         Remove.  This is now stat-macros.h's job.
59355         (talloc): Remove.  All callers replaced by xalloc, so that
59356         our invokers don't have to worry about reporting memory failures.
59357         (make_node_op_equals): Remove.
59358         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59359         New constants.
59360         (struct mode_change): Moved here from modechange.h.
59361         (mode_append_entry): Remove.
59362         (mode_compile): Remove MASKED_OPS arg, since it encouraged
59363         apps to have incorrect behavior.  Use simpler algorithm for head
59364         and tail.  Don't futz with umask; that's now the job of mode_adjust.
59365         Detect more invalid usages rather than having somewhat-random behavior.
59366         Don't insert an "a=" action, as that leads to incorrect behavior.
59367         (mode_compile, mode_create_from_ref): Return NULL on error instead
59368         of an enum, since now there's only one way to have an error.  All
59369         callers changed.
59370         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
59371         at the correct time.  Simplify calculation of "+u" and its ilk.
59372         Don't mishandle "+X".
59373         (mode_free): Remove "register" and localize decls.
59374         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59375         (struct mode_change): Move to modechange.c; callers don't
59376         need to see this stuff.
59377         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
59378         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
59379         (mode_change, mode_adjust): Reflect the new signatures noted above.
59380         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
59381         that might redefine system include files.
59382         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
59383         (my_usleep): Use NULL rather than (void *) 0.
59384         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
59385         Use siginterrupt to specify that system calls should be interrupted.
59386         (rpl_nanosleep): Move initialization of suspended closer to call of
59387         my_usleep.
59388         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
59389         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
59390         (desirable_utmp_entry): New function.
59391         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
59392         using x2nrealloc, to simplify logic.
59393         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
59394         size calculation.  Do not assume utmp file is a regular file.
59395         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
59396         (READ_UTMP_CHECK_PIDS): New constant.
59397         * lib/save-cwd.c: Include unistd-safer.h.
59398         (save_cwd): Use fd_safer.
59399         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
59400         [!_LIBC] Include "stat-macros.h" instead.
59401         * lib/unistd-safer.h (fd_safer): New decl.
59402
59403 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59404
59405         * modules/getloadavg (Depends-on): Add unistd-safer.
59406         * modules/getusershell (Depends-on): Add stdio-safer.
59407         * modules/lstat (Depends-on): Remove xalloc.
59408         * modules/mkstemp (Depends-on): Add stat-macros.
59409         * modules/modechange (Depends-on): Remove xstrtol.
59410         Add stat-macros, xalloc.
59411         * modules/save-cwd (Depends-on): Add unistd-safer.
59412         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
59413         * modules/unistd-safer (Files): Add lib/fd-safer.c
59414         (Makefile.am): Remove lib_SOURCES.
59415
59416         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
59417         Remove fcntl-safer; unistd-safer supersedes it.
59418
59419 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59420
59421         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
59422         AC_HEADER_STAT.
59423         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
59424         (gl_PREREQ_CHOWN): Remove.
59425         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
59426         it.  Don't require AC_HEADER_STAT.
59427         (gl_PREREQ_LSTAT): Remove.
59428         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
59429         Don't require AC_HEADER_STAT.
59430         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
59431         (gl_PREREQ_RMDIR): Remove.
59432         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
59433         mention stat-macros.h or AC_HEADER_STAT, since we'll make
59434         the stat-macros module a prerequisite.
59435         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
59436         * m4/filemode.m4 (gl_FILEMODE): Likewise.
59437         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
59438         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
59439         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
59440         variable names.
59441         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
59442         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
59443         variable prefixes.
59444         * m4/fcntl-safer.m4: Remove.
59445         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
59446         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
59447         Invoke gl_PREREQ_FD_SAFER.
59448         (gl_PREREQ_FD_SAFER): New macro.
59449         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
59450         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
59451         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
59452         Remove duplicate call to AC_LIBOBJ(readutmp).
59453         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
59454
59455         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
59456         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
59457
59458 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59459
59460         * MODULES.html.sh (Misc): Add byteswap.
59461
59462 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59463
59464         * modules/getcwd (Depends-on): Add extensions.
59465         * modules/openat (Depends-on): Likewise.
59466
59467 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59468
59469         * modules/byteswap: New file.
59470
59471 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59472
59473         * m4/byteswap.m4: New file.
59474
59475 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59476
59477         * lib/byteswap_.h: New file.
59478
59479 2005-04-25  Karl Berry  <karl@gnu.org>
59480
59481         * m4/gettext.m4: Update from GNU gettext 0.14.4.
59482
59483 2005-04-25  Albert Chin  <china@thewrittenword.com>
59484
59485         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
59486         Toolkit C bug.
59487
59488 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
59489
59490         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
59491         (func_ln_if_changed) Remove forcibly for no error message
59492         in case file does not exist.
59493
59494 2005-04-19  Simon Josefsson  <jas@extundo.com>
59495
59496         * gnulib-tool (Options): Make --symlink mean --symbolic.
59497
59498 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
59499
59500         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
59501
59502 2005-04-16  Simon Josefsson  <jas@extundo.com>
59503
59504         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
59505
59506 2005-04-15  Simon Josefsson  <jas@extundo.com>
59507
59508         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
59509
59510 2005-04-15  Simon Josefsson  <jas@extundo.com>
59511
59512         * gnulib-tool: Rename --symlink to --symbolic.
59513
59514 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
59515
59516         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
59517         symbolic links to files instead of copying/moving.  Add --aux-dir,
59518         specifying directory relative --dir where auxiliary build tools
59519         are placed.
59520
59521 2005-04-14  Bruno Haible  <bruno@clisp.org>
59522
59523         * modules/allocsa (License): Change to LGPL.
59524         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59525
59526 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59527
59528         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
59529         that "UTC +1 second" continues to work.  Problem reported
59530         by Dmitry V. Levin.
59531         (relunit_snumber): New rule.
59532         (relunit): Use it.
59533
59534 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59535
59536         * lib/getdate.y (universal_time_zone_table): New constant.
59537         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
59538         universal_time_zone_table.
59539         (lookup_zone): Prefer universal_time_zone_table to
59540         local_time_zone_table, so that "GMT" time stamps are allowed in
59541         London during the summer.  Problem reported by Ian Abbott.
59542
59543 2005-04-12  Jim Meyering  <jim@meyering.net>
59544
59545         * lib/human.c (humblock): Set *options even when returning due to
59546         xstrtoumax conversion failure.  Thanks to a used-uninitialized
59547         warning from gcc-4.
59548
59549 2005-04-09  Jim Meyering  <jim@meyering.net>
59550
59551         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
59552         -Wuninitialized: initialize tm0.tm_year.
59553
59554 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59555
59556         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
59557         count, since there's no maximum.  All uses changed.
59558         Add member dsts_seen.
59559         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
59560         not being INT_MAX.
59561         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
59562         Use pc_rels_seen to decide whther a date is absolute.
59563
59564         * lib/getdate.y (number): Don't overwrite year.
59565         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
59566         check.
59567
59568 2005-04-02  Simon Josefsson  <jas@extundo.com>
59569
59570         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
59571         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
59572
59573 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
59574
59575         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
59576         where no absolute path name can be longer than PATH_MAX.
59577
59578 2005-03-27  Jim Meyering  <jim@meyering.net>
59579
59580         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
59581
59582 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
59583
59584         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
59585         "one's complement" -> "ones' complement" in comment, as per Knuth.
59586         "value of type" -> "type or expression" in comment.
59587         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
59588
59589 2005-03-26  Jim Meyering  <jim@meyering.net>
59590
59591         Comment nits.
59592         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
59593         Correct typos: s/or/of/.
59594
59595 2005-03-26  Jim Meyering  <jim@meyering.net>
59596
59597         * modules/check-include-files: Move to ../ and rename to...
59598         * check-module: ...this.
59599
59600 2005-03-25  Jim Meyering  <jim@meyering.net>
59601
59602         * modules/xvasprintf (Files): Add xalloc.h.
59603
59604 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59605
59606         * modules/gettext (Files): config/config.rpath ->
59607         build-aux/config.rpath
59608         * modules/iconv (Files): Likewise.
59609         Problem reported by Oskar Liljeblad.
59610
59611 2005-03-23  Jim Meyering  <jim@meyering.net>
59612
59613         * modules/check-include-files: New script to check for
59614         missing dependencies, multiple includes, etc.
59615
59616         * modules/c-strtold (Depends-on): Add xalloc.
59617         * modules/c-strtod (Depends-on): Add xalloc.
59618         * modules/hash (Depends-on): Add xalloc.
59619         (Files): Remove lib/xalloc.h.
59620
59621         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
59622         * modules/userspec (Files): Add lib/inttostr.h.
59623
59624 2005-03-23  Jim Meyering  <jim@meyering.net>
59625
59626         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
59627
59628 2005-03-22  Jim Meyering  <jim@meyering.net>
59629
59630         * modules/stat-macros: New module.
59631         * modules/canonicalize, modules/euidaccess, modules/file-type,
59632         * modules/filemode, modules/lchown, modules/makepath,
59633         * modules/rmdir, modules/stat: Depend on new stat-macros module
59634         rather than listing lib/stat-macros.h manually.
59635         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
59636
59637 2005-03-22  Jim Meyering  <jim@meyering.net>
59638
59639         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
59640
59641 2005-03-22  Bruno Haible  <bruno@clisp.org>
59642
59643         * config/srclist.txt: Replace target directory 'config' with
59644         'build-aux'.
59645         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
59646         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
59647         ../build-aux/.
59648
59649 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
59650
59651         * modules/chdir-long (Depends-on): Add mempcpy.
59652
59653         * modules/acl, modules/backupfile, modules/c-strtod,
59654         modules/c-strtold, modules/canon-host, modules/canonicalize,
59655         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
59656         modules/exclude, modules/exitfail, modules/file-type,
59657         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
59658         modules/getdate, modules/getline, modules/getpagesize,
59659         modules/getpass, modules/getugroups, modules/group-member,
59660         modules/hard-locale, modules/hash, modules/human, modules/idcache,
59661         modules/inttostr, modules/long-options, modules/makepath,
59662         modules/md5, modules/memcasecmp, modules/memcoll,
59663         modules/modechange, modules/mountlist, modules/path-concat,
59664         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
59665         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
59666         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
59667         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
59668         modules/strftime, modules/strndup, modules/strverscmp,
59669         modules/timespec, modules/unlocked-io, modules/userspec,
59670         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
59671         modules/yesno:
59672         Remove lib_SOURCES line from Makefile.am section, as this is now
59673         done automatically by the corresponding Autoconf macro.
59674
59675 2005-03-21  Jim Meyering  <jim@meyering.net>
59676
59677         Changes imported from coreutils.
59678
59679         * lib/cycle-check.c: Don't include xalloc.h.
59680
59681         * lib/path-concat.c: Don't include assert.h.
59682         (path_concat): Remove assertion that would have triggered
59683         for ABASE starting with more than one slash.
59684         Reported by Andreas Schwab.
59685
59686         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
59687         properly when ABASE is an absolute file name.
59688         Correct the description of this function.
59689         Include <assert.h>.
59690         Add an assertion and a test driver.
59691         This fixes a bug introduced on 2004-07-02.
59692         Andreas Schwab reported the resulting failure of cp --parents:
59693         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
59694
59695 2005-03-21  Jim Meyering  <jim@meyering.net>
59696
59697         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
59698         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
59699
59700 2005-03-21  Jim Meyering  <jim@meyering.net>
59701         and  Paul Eggert  <eggert@cs.ucla.edu>
59702
59703         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
59704         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
59705         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
59706         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
59707         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
59708         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
59709         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
59710         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
59711         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
59712         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
59713         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
59714         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
59715         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
59716         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
59717         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
59718         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
59719         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
59720         for these modules.
59721
59722 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
59723
59724         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
59725         (which shouldn't happen), generate nothing instead of returning 0
59726         immediately, so that nstrftime (NULL, ...) doesn't return 0.
59727
59728 2005-03-16  Bruno Haible  <bruno@clisp.org>
59729
59730         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
59731         HAVE_LONGLONG_64BIT.
59732
59733 2005-03-16  Bruno Haible  <bruno@clisp.org>
59734
59735         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
59736         HAVE_LONGLONG_64BIT.
59737
59738 2005-03-16  Bruno Haible  <bruno@clisp.org>
59739
59740         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
59741         HAVE_LONGLONG_64BIT.
59742
59743 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59744
59745         * lib/strftime.c (my_strftime): Prepend space to format so that we can
59746         reliably distinguish strftime failure from empty output on POSIX
59747         hosts.
59748
59749 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59750
59751         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
59752         (iconv_string): Don't guess a size-zero buffer, as that might cause
59753         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
59754         result would be 'too large', where 'too large' is (heuristically)
59755         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
59756         overflow concerns.  This will prevent some unwanted malloc failures
59757         when the inputs are very large.
59758
59759 2005-03-15  Karl Berry  <karl@gnu.org>
59760
59761         * config/srclist.txt (config.rpath): from gettext.
59762         * config/config.rpath: update.
59763
59764 2005-03-15  Bruno Haible  <bruno@clisp.org>
59765
59766         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
59767         to 'negate'.
59768
59769         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
59770         variable.
59771
59772         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
59773         results.
59774
59775 2005-03-14  Simon Josefsson  <jas@extundo.com>
59776
59777         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
59778         <fx@gnu.org>.
59779
59780 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
59781
59782         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
59783         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
59784         intprops.h.
59785         * lib/strtol.c: Likewise.
59786
59787 2005-03-14  Jim Meyering  <jim@meyering.net>
59788
59789         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
59790         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
59791         to be nonzero so that we (and caller) can detect the difference
59792         between a valid zero-length expansion and an error return, even
59793         when the underlying strftime fails before writing anything into
59794         that location.
59795
59796 2005-03-14  Bruno Haible  <bruno@clisp.org>
59797
59798         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
59799         Update from GNU gettext 0.14.3.
59800
59801 2005-03-10  Jim Meyering  <jim@meyering.net>
59802
59803         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
59804
59805 2005-03-10  Jim Meyering  <jim@meyering.net>
59806
59807         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
59808         so that this module works on systems without fchdir.
59809
59810 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
59811
59812         Factor int-properties macros into a single file, except for
59813         glibc-related files.
59814         * lib/intprops.h: New file.
59815         * lib/getloadavg.c: Include it instead of limits.h.
59816         (INT_STRLEN_BOUND): Remove.
59817         * lib/human.c: Include intprops.h.
59818         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
59819         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
59820         302/1000.
59821         * lib/inttostr.h: Include intprops.h instead of limits.h.
59822         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
59823         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
59824         for consistency with intprops.h.
59825         (time_t_is_integer, twos_complement_arithmetic): Use them.
59826         * lib/sig2str.h: Include <signal.h>, intprops.h.
59827         (INT_STRLEN_BOUND): Remove.
59828         * lib/strftime.c (TYPE_SIGNED): Remove.
59829         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
59830         * lib/strtol.c: Adjust comments to match intprops.h.
59831         * lib/userspec.c: Include intprops.h.
59832         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
59833         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
59834         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
59835         instead of rolling our own expressions.
59836         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
59837
59838         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
59839         instead of int.
59840         (my_strftime): Do not mishandle years close to INT_MAX, by doing
59841         the right thing even if adding 1900 would overflow.  Similarly
59842         for tm_mon + 1 and tm_yday + 1.
59843         Make %Y always equivalent to %C%y, and similarly for %G and %g.
59844         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
59845         (DO_SIGNED_NUMBER): New macro.
59846         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
59847
59848 2005-03-07  Bruno Haible  <bruno@clisp.org>
59849
59850         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
59851
59852 2005-03-07  Bruno Haible  <bruno@clisp.org>
59853
59854         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
59855
59856 2005-03-04  Derek R. Price  <derek@ximbiot.com>
59857
59858         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
59859         (func_import): Only replace files via --import when they have actually
59860         changed.
59861
59862 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59863
59864         * m4/mmap-anon.m4: New file.
59865         * m4/pagealign_alloc.m4: New file.
59866
59867 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59868             Bruno Haible  <bruno@clisp.org>
59869
59870         * modules/pagealign_alloc: New file.
59871         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
59872
59873 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59874             Bruno Haible  <bruno@clisp.org>
59875
59876         * lib/pagealign_alloc.h: New file.
59877         * lib/pagealign_alloc.c: New file.
59878
59879 2005-03-03  Bruno Haible  <bruno@clisp.org>
59880
59881         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
59882         Use an all-permissive copyright notice, recommended by RMS.
59883
59884 2005-03-02  Bruno Haible  <bruno@clisp.org>
59885
59886         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
59887         of AIX, the replacement has to be done only after <string.h> is
59888         included, therefore not in config.h. stpncpy.h does the replacement,
59889         and stpncpy.c uses it.
59890
59891 2005-03-02  Bruno Haible  <bruno@clisp.org>
59892
59893         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
59894         stpncpy.c uses it.
59895
59896 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59897
59898         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
59899         The workaround isn't strictly needed for POSIX conformance, and
59900         it's too much of a pain to configure and maintain.  We'll ask
59901         people to fix their kernels instead.
59902         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
59903         (NANOSLEEP_BUG_WORKAROUND): Remove.
59904         (xnanosleep): Remove the workaround.
59905
59906 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59907
59908         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
59909         Reported by Derek Price.
59910         (Include): Add "timespec.h".
59911
59912         * modules/xnanosleep (Depends-on): Remove gethrxtime.
59913
59914 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59915
59916         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
59917         to detect nanosleep bug.
59918
59919 2005-03-01  Bruno Haible  <bruno@clisp.org>
59920
59921         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
59922
59923 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
59924
59925         * modules/gethrxtime: New file.
59926         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
59927         (Depends-on): Add gethrxtime.
59928         (configure.ac): Add gl_XNANOSLEEP.
59929         (Makefile.am): Remove lib_SOURCES line.
59930
59931 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59932
59933         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
59934         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
59935
59936 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59937
59938         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
59939         * lib/timespec.h (gettime): Return void, since it always
59940         succeeds now.  All uses changed.
59941         * lib/gettime.c (gettime) Likewise.
59942         [HAVE_NANOTIME]: Prefer nanotime.
59943         Assume gettimeofday succeeds, as POSIX requires.
59944         Assime time () succeeds, since other code already does.
59945         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
59946         (timespec_subtract): Remove.
59947         (NANOSLEEP_BUG_WORKAROUND): New constant.
59948         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
59949         things considerably.  Use it only on GNU/Linux hosts, since the
59950         workaround shouldn't be needed elsewhere.
59951
59952 2005-02-24  Bruno Haible  <bruno@clisp.org>
59953
59954         * modules/gettext (Files): Add m4/glibc2.m4.
59955
59956 2005-02-24  Bruno Haible  <bruno@clisp.org>
59957
59958         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
59959         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
59960         * m4/progtest.m4:
59961         Update from GNU gettext 0.14.2.
59962         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
59963
59964 2005-02-24  Bruno Haible  <bruno@clisp.org>
59965
59966         * lib/localcharset.c: Update from GNU gettext 0.14.2.
59967         * lib/config.charset: Update from GNU gettext 0.14.2.
59968
59969 2005-02-24  Bruno Haible  <bruno@clisp.org>
59970
59971         * lib/gettext.h: Update from GNU gettext 0.14.2.
59972
59973 2005-02-23  Simon Josefsson  <jas@extundo.com>
59974
59975         * m4/iconvme.m4: New file.
59976
59977 2005-02-23  Jim Meyering  <jim@meyering.net>
59978
59979         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
59980         change.
59981         Thanks to Bruno Haible for catching it.
59982
59983 2005-02-22  Simon Josefsson  <jas@extundo.com>
59984
59985         * modules/iconvme: New file.
59986
59987         * MODULES.html.sh: Add iconvme.
59988
59989 2005-02-22  Simon Josefsson  <jas@extundo.com>
59990
59991         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
59992
59993 2005-02-22  Simon Josefsson  <jas@extundo.com>
59994
59995         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
59996
59997 2005-02-22  Jim Meyering  <jim@meyering.net>
59998
59999         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
60000         s/ifndef/ifdef/.
60001
60002 2005-02-20  Neil Conway  <neilc@samurai.com>
60003
60004         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
60005         returned by OSX/Darwin if the specified buffer is not large
60006         enough for the hostname.
60007
60008 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60009
60010         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
60011         pass it to _help, otherwise the latter coredumps trying to
60012         dereference state.root_argp.
60013
60014 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60015
60016         * modules/chdir-long (Depends-on): Add memrchr.
60017         * modules/memrchr (Files): Add lib/memrchr.h.
60018         (Include): "memrchr.h".
60019
60020 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60021
60022         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
60023
60024 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60025
60026         * lib/memrchr.h: New file.
60027         * lib/chdir-long.c: Include it.
60028         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
60029         Don't bother including stddef.h.
60030
60031 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60032
60033         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
60034         inclusion.
60035         Include <sys/types.h>, for dev_t.
60036         (ME_DUMMY, ME_REMOTE): Move from here....
60037         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
60038         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
60039         Dmitry V. Levin.
60040         Include mountlist.h first, to test the interface.
60041
60042 2005-01-29  Bruno Haible  <bruno@clisp.org>
60043
60044         * lib/progname.c (program_name): Initialize.
60045         Needed when linking statically on MacOS X.
60046
60047 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60048
60049         Sync from coreutils.
60050         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
60051         (Depends-on): Add c-strtod.
60052         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
60053
60054 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60055
60056         Sync from coreutils.
60057         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
60058
60059         Remove files that are specific to coreutils.
60060         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
60061
60062 2005-01-28  Bruno Haible  <bruno@clisp.org>
60063
60064         * modules/javacomp: New file.
60065         * MODULES.html.sh (Java): Add javacomp.
60066
60067 2005-01-28  Bruno Haible  <bruno@clisp.org>
60068
60069         * m4/javacomp.m4: New file, from GNU gettext.
60070
60071 2005-01-28  Bruno Haible  <bruno@clisp.org>
60072
60073         * lib/javacomp.sh.in: New file, from GNU gettext.
60074         * lib/javacomp.h: New file, from GNU gettext.
60075         * lib/javacomp.c: New file, from GNU gettext.
60076
60077 2005-01-26  Simon Josefsson  <jas@extundo.com>
60078
60079         * lib/gai_strerror.c: Use GPL in header.
60080
60081 2005-01-26  Bruno Haible  <bruno@clisp.org>
60082
60083         * modules/javaexec: New file.
60084         * MODULES.html.sh (Java): Add javaexec.
60085
60086 2005-01-26  Bruno Haible  <bruno@clisp.org>
60087
60088         * m4/javaexec.m4: New file, from GNU gettext.
60089
60090 2005-01-26  Bruno Haible  <bruno@clisp.org>
60091
60092         * lib/javaexec.sh.in: New file, from GNU gettext.
60093         * lib/javaexec.h: New file, from GNU gettext.
60094         * lib/javaexec.c: New file, from GNU gettext.
60095
60096 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60097
60098         * modules/lchown (Depends-on): Remove lchown.h
60099
60100 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60101
60102         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
60103         must be defined if the header file was not found, in order
60104         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
60105
60106 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60107
60108         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
60109         initializers for struct pentry_state.
60110         (__argp_error): Check return value of __asprintf
60111         (__argp_failure): Translate error message
60112
60113         * lib/argp-parse.c: Removed braces around the expansion of N_()
60114
60115 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60116
60117         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
60118         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
60119         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
60120         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
60121         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
60122         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
60123         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
60124         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
60125         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
60126         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
60127         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
60128         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
60129         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
60130         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
60131         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
60132         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
60133         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
60134         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
60135         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
60136         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
60137         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
60138         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
60139         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
60140         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
60141         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
60142         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
60143         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
60144         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
60145         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
60146         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
60147         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
60148         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
60149         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
60150         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
60151         xstrtol.m4, xstrtoumax.m4, yesno.m4:
60152         Use an all-permissive copyright notice, recommended by RMS.
60153
60154 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
60155
60156         * modules/chdir-long (Depends-on): Remove mempcpy.
60157
60158 2005-01-21  Jim Meyering  <jim@meyering.net>
60159
60160         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
60161         same value as for Solaris 9.
60162
60163         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
60164         component length.  This included changing the parameter to be
60165         of type `char *' rather than `char const *'.
60166         * lib/chdir-long.h (chdir_long): Update prototype.
60167
60168         * lib/openat.c (fdopendir, fstatat): New functions.
60169         * lib/openat.h: Include headers required for use of DIR and struct
60170         stat.
60171         [AT_SYMLINK_NOFOLLOW]: Define.
60172         (fdopendir, fstatat): Add prototypes.
60173
60174 2005-01-21  Bruno Haible  <bruno@clisp.org>
60175
60176         * modules/classpath: New file.
60177         * MODULES.html.sh (Java): Add classpath.
60178
60179 2005-01-21  Bruno Haible  <bruno@clisp.org>
60180
60181         * lib/classpath.h: New file, from GNU gettext.
60182         * lib/classpath.c: New file, from GNU gettext.
60183
60184 2005-01-20  Simon Josefsson  <jas@extundo.com>
60185
60186         * modules/version-etc-fsf: New file.
60187
60188 2005-01-20  Simon Josefsson  <jas@extundo.com>
60189
60190         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
60191         * lib/version-etc.c: Remove version_etc_copyright.
60192         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
60193         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
60194
60195 2005-01-20  Simon Josefsson  <jas@extundo.com>
60196
60197         * lib/base64.h (isbase64): Add.
60198
60199         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
60200         using a unsigned prototype, don't inline.
60201         (base64_decode): Use it.
60202
60203 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60204
60205         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
60206         it.
60207
60208 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60209
60210         * lib/save-cwd.c (save_cwd): Remove code to support the case
60211         where fchdir is missing or flaky.
60212
60213 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60214
60215         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
60216
60217 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60218
60219         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
60220         AC_LIBSOURCES now does this.
60221         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
60222         with new ullong_max module.
60223
60224 2005-01-19  Bruno Haible  <bruno@clisp.org>
60225
60226         * modules/sh-quote: New file.
60227         * MODULES.html.sh (Executing programs): Add sh-quote.
60228
60229 2005-01-19  Bruno Haible  <bruno@clisp.org>
60230
60231         * lib/sh-quote.h: New file, from GNU gettext.
60232         * lib/sh-quote.c: New file, from GNU gettext.
60233
60234 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60235
60236         Merge from coreutils.
60237         * m4/ullong_max.m4: New file.
60238         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
60239         (gl_MACROS): Assume localeconv exists.
60240
60241 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60242
60243         Merge changes from coreutils, as described below in several
60244         changelogs dated today.
60245
60246         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
60247         (O_DIRECTORY): Remove; not needed here, since "." must be
60248         a directory.  All uses removed.
60249         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
60250         universal on Suns, and we also need to test for IRIX.
60251         Revamp code to use 'if' rather than '#if'.
60252         Avoid unnecessary comparison of cwd->desc to 0.
60253
60254         * lib/utimens.c (futimens): Robustify the previous patch, by checking
60255         for known valid error numbers rather than observed invalid ones.
60256
60257 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60258
60259         * modules/ullong_max: New file.
60260
60261         * modules/chdir-long, modules/openat: New files.
60262         * modules/save-cwd (Depends-on): Depend on chdir-long.
60263         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
60264
60265 2005-01-18  Jim Meyering  <jim@meyering.net>
60266
60267         Merge from coreutils.
60268         * m4/chdir-long.m4, m4/openat.m4: New files.
60269         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
60270         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
60271         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
60272         is sane and DOES follow symlinks.  Besides, testing 20 different
60273         systems found no broken chown implementations.
60274         Prompted by a change in rsync's copy of this macro.
60275         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
60276
60277         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
60278
60279         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
60280         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
60281         NULL-means-set-to-current-time semantics.
60282         Remove temporary file immediately, rather than waiting
60283         for configure's at-exit trap code to do it.
60284
60285 2005-01-18  Jim Meyering  <jim@meyering.net>
60286
60287         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60288
60289         * lib/utimens.c (futimens): Account for the fact that futimes
60290         can also fail with errno == ENOSYS or errno == ENOENT.
60291         Patch from Dmitry V. Levin.
60292
60293         Change the name of the robust chdir function from chdir to chdir_long.
60294         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
60295         (restore_cwd): Use chdir_long, not chdir.
60296         * lib/chdir-long.c: Renamed from chdir.c.
60297         * lib/chdir-long.h: Renamed from chdir.h.
60298         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
60299         Hurd.
60300
60301 2005-01-18  Bruno Haible  <bruno@clisp.org>
60302
60303         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
60304         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
60305         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
60306         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
60307         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
60308         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
60309         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
60310         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
60311         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
60312         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
60313         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
60314         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
60315         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
60316         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
60317         Use an all-permissive copyright notice, recommended by RMS.
60318
60319 2005-01-18  Bob Proulx  <bob@proulx.com>
60320
60321         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
60322         simplify offsetof() macro construct to avoid compile failure with
60323         native HP-UX 11.0 ANSI C compiler.
60324
60325 2005-01-17  Bruno Haible  <bruno@clisp.org>
60326
60327         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
60328         redundant because stpncpy.m4 takes care of it.
60329
60330 2005-01-17  Bruno Haible  <bruno@clisp.org>
60331
60332         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
60333
60334 2005-01-17  Bruno Haible  <bruno@clisp.org>
60335
60336         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
60337         used.
60338
60339 2005-01-17  Bruno Haible  <bruno@clisp.org>
60340
60341         * lib/fwriteerror.h (fwriteerror): Change specification to include
60342         fclose.
60343         * lib/fwriteerror.c: Include <stdbool.h>.
60344         (fwriteerror): At the end, close the file stream. Record whether
60345         stdout was already closed.
60346
60347 2005-01-17  Bruno Haible  <bruno@clisp.org>
60348
60349         * lib/execute.c (environ): Declare if needed.
60350         * lib/pipe.c (environ): Likewise.
60351         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
60352
60353 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60354
60355         * modules/argp: Depend on vsnprintf
60356
60357 2005-01-10  Jim Meyering  <jim@meyering.net>
60358
60359         * modules/closeout (Depends-on): Add atexit.
60360
60361 2005-01-06  Bruno Haible  <bruno@clisp.org>
60362
60363         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
60364
60365 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60366
60367         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
60368         definitions to be after all include files, to avoid collisions.
60369         Problem reported by Bob Proulx.
60370
60371 2005-01-04  Jim Meyering  <jim@meyering.net>
60372
60373         Changes imported from coreutils.
60374         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
60375         as the mkstemp template, use a temporary directory and an
60376         8.3-friendly template to avoid trouble on systems like DJGPP.
60377         Reported by Juan M. Guerrero via Stepan Kasal.
60378         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
60379         close. Remove the temporary directory right away, rather than waiting
60380         for configure's at-exit trap code to do it.
60381         Suggestion from Stepan Kasal.
60382
60383 2005-01-01  Simon Josefsson  <jas@extundo.com>
60384
60385         * gnulib-tool: Print #include directives when --import'ing.
60386
60387 2004-12-28  Simon Josefsson  <jas@extundo.com>
60388
60389         * tests/test-base64.c: Include required header files.  Remove
60390         unused variables.
60391
60392 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60393
60394         * modules/error (Depends-on): Remove gettext.
60395
60396 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60397
60398         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
60399         not needed.  This removes a dependency on the gettext module.
60400         [defined _LIBC]: Do not include <libintl.h>; not needed.
60401
60402 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60403
60404         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
60405         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
60406
60407 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60408
60409         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
60410         HAVE_DECL_STRTOLD.
60411
60412 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60413
60414         * modules/getdate (Depends-on): Remove alloca-opt.
60415
60416 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60417
60418         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
60419
60420 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60421
60422         * lib/argp-parse.c: Include <stddef.h>.
60423         (alignof, alignto): New macros.
60424         (parser_init): Don't assume that void * is aligned sufficiently
60425         for struct option.
60426
60427         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
60428         need to extend the stack.
60429         (YYINITDEPTH): New macro, so that the initial stack isn't overly
60430         large.
60431
60432 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60433
60434         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
60435
60436 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60437
60438         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
60439         (2004-10-24) change.  Apparently this was a false alarm.
60440
60441         * modules/getdate: Depend on alloca-opt, not alloca.
60442
60443 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60444
60445         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
60446         Remove now-obsolete comment about AIX.
60447         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
60448         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
60449         (YYMAXDEPTH): New macro.
60450
60451 2004-12-18  Simon Josefsson  <jas@extundo.com>
60452
60453         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
60454
60455 2004-12-18  Bruno Haible  <bruno@clisp.org>
60456
60457         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
60458
60459 2004-12-18  Bruno Haible  <bruno@clisp.org>
60460
60461         * lib/fatal-signal.c (fatal_signals): Make non-const.
60462         (init_fatal_signals): New function.
60463         (uninstall_handlers, install_handlers): Ignore signals that were set to
60464         SIG_IGN.
60465         (at_fatal_signal): Call init_fatal_signals.
60466         (init_fatal_signal_set): Likewise. Ignore signals that were set to
60467         SIG_IGN.
60468         Reported by Paul Eggert.
60469
60470 2004-12-18  Bruno Haible  <bruno@clisp.org>
60471
60472         * doc/alloca.texi: New file.
60473         * doc/alloca-opt.texi: New file.
60474
60475 2004-12-17  Jim Meyering  <jim@meyering.net>
60476
60477         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
60478         Otherwise, install-sh could exit with improper exit status when
60479         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
60480
60481 2004-12-16  Simon Josefsson  <jas@extundo.com>
60482
60483         * tests/test-base64.c: Add license.
60484
60485 2004-12-15  Stepan Kasal  <address@hidden>
60486
60487         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
60488
60489 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
60490
60491         * modules/getcwd (Files): Add m4/d-ino.m4.
60492         Suggested by Mark D. Baushke.
60493
60494 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60495
60496         * lib/getdate.y (textint): New member "negative".
60497         (time_zone_hhmm): New function.
60498         Expect 14 shift-reduce conflicts, not 13.
60499         (o_colon_minutes): New rule.
60500         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
60501         (yylex): Set the "negative" member of signed numbers.
60502
60503 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60504
60505         * doc/getdate.texi (Time of day items, Time zone items):
60506         Describe new formats +00:00, UTC+00:00.
60507
60508 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60509
60510         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
60511         spurious "-l"s.  Problem reported by Stepan Kasal.
60512
60513 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
60514
60515         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
60516         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
60517
60518 2004-12-04  Simon Josefsson  <jas@extundo.com>
60519
60520         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
60521         Vandoorselaere <yoann@prelude-ids.org>.
60522
60523 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         Changes imported from coreutils.
60526         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
60527         exist.
60528         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
60529
60530 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60531
60532         Changes imported from coreutils.
60533         * lib/hard-locale.c: Assume <locale.h> exists.
60534         Include "strdup.h".
60535         (GLIBC_VERSION): New macro.
60536         (hard_locale): Assume setlocale exists.
60537         Rewrite to avoid #ifdef.
60538         Use strdup rather than malloc + strcpy.
60539         * lib/human.c: Assume <locale.h> exists.
60540         (human_readable): Assume localeconv exists.
60541
60542 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60543
60544         * modules/hard-locale (Depends-on): Add strdup.
60545
60546 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60547
60548         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
60549         convert T2, not T.  (Imported from libc.)
60550
60551 2004-11-30  Simon Josefsson  <jas@extundo.com>
60552
60553         * modules/restrict (License): Change to LGPL.
60554
60555 2004-11-30  Simon Josefsson  <jas@extundo.com>
60556
60557         * m4/restrict.m4: Add copyright and copying conditions.
60558
60559 2004-11-30  Simon Josefsson  <jas@extundo.com>
60560
60561         * m4/base64.m4: New file.
60562
60563 2004-11-30  Simon Josefsson  <jas@extundo.com>
60564
60565         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
60566         base64.
60567
60568         * tests/test-base64.c: New file.
60569
60570         * modules/base64: New file.
60571
60572 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60573
60574         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
60575         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
60576
60577         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
60578
60579 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60580
60581         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
60582         (__getcwd.c): Don't restore errno; glibc doesn't.
60583         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
60584         first, falling back to our code only if its results look suspicious.
60585         Ensure that the resulting buffer is only as large as necessary.
60586
60587         * lib/readutmp.c: Include readutmp.h first.
60588         Include <errno.h>, since readutmp.h no longer does that.
60589         * lib/readutmp.h: Don't include <errno.h>,
60590         <sys/param.h>, <time.h>; not needed to establish interface.
60591         (errno): Remove decl.
60592         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
60593         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
60594         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
60595
60596 2004-11-28  Simon Josefsson  <jas@extundo.com>
60597
60598         * lib/base64.h, base64.c: New file.
60599
60600 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60601
60602         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
60603
60604 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60605
60606         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
60607         (Depends-on): Remove pathmax, same.  Add mempcpy.
60608         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
60609         (Makefile.am): Append getcwd.h to lib_SOURCES.
60610         (Include): Add getcwd.h.
60611         (Maintainer): Change from Jim Meyering to "all, glibc",
60612         since getdate now uses intended-for-glibc code.
60613         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
60614         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
60615
60616 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60617
60618         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
60619         HP's ANSI C compiler.
60620         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
60621         Declaring int functions causes warnings on some modern systems and
60622         shouldn't be needed to compile on ancient ones.
60623         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
60624         defined.
60625
60626         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
60627         with the following changes.
60628         (__set_errno): Parenthesize properly.
60629         Include <stdbool.h>.
60630         (MIN, MAX, MATCHING_INO): New macros.
60631         (__getcwd): Define with prototype, not K&R form.
60632         Use heuristics to allocate default buffer on stack if possible.
60633         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
60634         behavior, and to avoid the PATH_MAX limit when computing
60635         ../../../../...
60636         Use MATCHING_INO to compare inode number to file.
60637         Check for arithmetic overflow in size calculations.
60638         Fix bug in reallocation of dot array that caused getcwd to fail
60639         on directories nested deeper than 75.
60640         Be more careful about saving errno on error.
60641         Do not use realloc; use only free+malloc, as this is a bit
60642         more flexible and avoids a needless copy operation.
60643         Do not inspect st_dev and st_ino for symbolic links; POSIX
60644         doesn't specify the latter.
60645         Check for closedir errors.
60646         Avoid needless casts.
60647         Use "#ifdef weak_alias" around weak_alias, to be like other
60648         glibc code.
60649         The following changes to getcwd.c have effect only when used in
60650         gnulib; they have no effect inside glibc proper.
60651         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
60652         as alloca isn't used.
60653         (alloca, __alloca): Likewise.
60654         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
60655         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60656         unconditionally, as gnulib assumes C89 or better.
60657         Do not include <sys/param.h>.
60658         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
60659         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
60660         better.
60661         (NULL) [!defined NULL]: Remove; we assume C89 or better.
60662         Include <dirent.h> in a way that is compatible with modern Autoconf.
60663         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
60664         New macros, if not already defined.
60665         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
60666         Use "_LIBC", not "defined _LIBC", for consistency.
60667         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
60668         a mempcpy module.
60669         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
60670         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
60671         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
60672         credit only to Jim Meyering and adjust the copyright dates.
60673         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
60674         <stdlib.h>, <unistd.h>, "pathmax.h".
60675         Instead, include "xgetcwd.h" (first) and "getcwd.h".
60676         (INITIAL_BUFFER_SIZE): Remove.
60677         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
60678
60679 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60680
60681         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
60682         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
60683         Use the _ONCE methods, for efficiency.
60684         Check for fcntl.h.  In test program, include <errno.h>
60685         and <fcntl.h> if available.  Remove old K&R cruft from
60686         test program.  Check for common errors in GNU/Linux,
60687         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
60688         don't do AC_LIBOBJ, as that's getcwd.m4's job.
60689         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
60690         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
60691         name accordingly.
60692         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
60693         accommodate new getcwd.c.
60694         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
60695         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
60696         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
60697         that's all we need now.
60698
60699 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60700
60701         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
60702         argp-parse.c depends on getopt internals, that means we should
60703         always use our getopt, to be on the safe side.
60704         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
60705         order not to spoil the result of an eventual previous invocation
60706         of gl_GETOPT_SUBSTITUTE.
60707
60708 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60709
60710         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
60711         redefinition warnings. To avoid them, include the defines
60712         in `#if !defined __need_getopt ... #endif'. The only place
60713         where __getopt_argv_const is used is in definitions
60714         of getopt_long and getopt_long_only below, which are as well
60715         protected by `#ifndef __need_getopt'.
60716         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
60717         __need_getopt after including <stdio.h> and <unistd.h> These
60718         headers might have defined it.
60719
60720 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60721
60722         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
60723
60724 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60725
60726         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
60727         (futimens): New function, which uses futimes if available.
60728         (futimens, utimens): Support timespec==NULL, with same semantics
60729         as utime and utimens.
60730         * lib/utimens.h (futimens): New decl.
60731
60732 2004-11-23  Jim Meyering  <jim@meyering.net>
60733
60734         * lib/getopt_.h: Remove trailing blanks.
60735
60736 2004-11-23  Jim Meyering  <jim@meyering.net>
60737
60738         * lib/__fpending.c: Add comment.
60739
60740 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
60741
60742         * modules/canonicalize (Depends-on): Add xreadlink.
60743         Problem reported by James Youngman.
60744
60745 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60746
60747         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
60748         New macros.
60749         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
60750         optopt): Use them instead of invoking ## directly; otherwise, the
60751         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
60752
60753 2004-11-19  Bruno Haible  <bruno@clisp.org>
60754
60755         * lib/strtok_r.c: Move comments from here...
60756         * lib/strtok_r.h: ... to here.
60757
60758 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60759
60760         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
60761         implementations that mishandle size_t overflow.
60762
60763 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60764
60765         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
60766         might fail.  Problem reported by Yoann Vandoorselaere.
60767         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
60768         implementations that mishandle size_t overflow.
60769
60770 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60771
60772         * modules/canon-host (Depends-on): Add strdup.
60773
60774 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60775
60776         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
60777
60778 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60779
60780         * lib/canon-host.c: Include "strdup.h".
60781         (canon_host): Use getaddrinfo if available, so that IPv6 works.
60782         Use strdup instead of malloc/strcpy to duplicate strings.
60783
60784         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
60785         (human_space_before_unit): New constant.
60786         * lib/human.c (human_readable): Support it.
60787
60788         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
60789         (xgetcwd): Set errno correctly when failing.
60790         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
60791         the failure is actually due to a PATH_MAX problem.
60792
60793         Further getopt changes to make it more likely that glibc will
60794         buy the changes back.
60795         * lib/getopt.c (POSIXLY_CORRECT): New constant.
60796         (getopt): Use it, so to preserve glibc semantic
60797         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
60798         when compiling for libc.
60799         * lib/getopt_.h (__getopt_argv_const): Bring it back.
60800         (getopt_long, getopt_long_only): Use it.
60801
60802         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60803         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
60804         (getopt): Argv is now char * const *, as per standard.
60805         (_getopt_internal_r, _getopt_internal): Argv is now char **,
60806         not char *__getopt_argv_const *.
60807         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60808         _getopt_long_only_r): Likewise.
60809         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
60810         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60811         _getopt_long_r, _getopt_long_only_r): Likewise.
60812         * lib/getopt_.h (__getopt_argv_const): Remove.
60813         (getopt): Argv is now char * const *, as per standard.
60814
60815         * lib/getdate.y (tORDINAL): New token.
60816         (day, relunit): Allow it for relative times.
60817         (relative_time_table): Use tORDINAL for ordinals.
60818
60819 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60820
60821         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
60822         Document that "second" isn't allowed as an ordinal number.
60823
60824 2004-11-16  Jim Meyering  <jim@meyering.net>
60825
60826         * modules/closeout (Depends-on): Add fpending.
60827
60828 2004-11-15  Jim Meyering  <jim@meyering.net>
60829
60830         * lib/closeout.c: Include "__fpending.h" once again.
60831         Include <stdbool.h>.
60832         (close_stdout): Don't fail just because stdout was closed initially,
60833         since some programs don't write to stdout in the normal course of
60834         operation (other than --version and --help), and we don't want this
60835         function to make e.g. `touch file >&-' fail.
60836         But do fail if it was closed and someone has tried to write to it.
60837         E.g., `printf foo >&-' must fail.
60838
60839 2004-11-13  Jim Meyering  <jim@meyering.net>
60840
60841         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
60842
60843 2004-11-12  Simon Josefsson  <jas@extundo.com>
60844
60845         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
60846         small doc fix is still pending.
60847
60848 2004-11-11  Simon Josefsson  <jas@extundo.com>
60849
60850         * modules/strtok_r: New file.
60851
60852         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60853         strtok_r.
60854
60855 2004-11-11  Simon Josefsson  <jas@extundo.com>
60856
60857         * m4/strtok_r.m4: New file.
60858
60859         * m4/getopt.m4: Replace opterr.
60860
60861 2004-11-11  Simon Josefsson  <jas@extundo.com>
60862
60863         * lib/strtok_r.h, strtok_r.c: New file.
60864
60865 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60866
60867         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
60868         of replacing opterr, getopt, etc.  This should handle the
60869         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
60870
60871 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60872
60873         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
60874         we can stop lying to compilers about the constness of argv when we
60875         are compiled outside glibc.
60876         (getopt, getopt_long, getopt_long_only): Use it.
60877         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60878         _getopt_internal, getopt): Likewise.
60879         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60880         _getopt_long_only_r): Likewise.
60881         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60882         _getopt_long_r, _getopt_long_only_r): Likewise.
60883
60884         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
60885         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
60886         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
60887         the other external symbols.
60888         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
60889         declaration, since the above renaming now works around collisions.
60890
60891 2004-11-11  Jim Meyering  <jim@meyering.net>
60892
60893         * lib/linebreak.c: Remove trailing blanks.
60894         * lib/alloca_.h: Likewise.
60895         * lib/acosl.c: Likewise.
60896         * lib/euidaccess.c: Likewise.
60897         * lib/allocsa.h: Likewise.
60898
60899 2004-11-10  Simon Josefsson  <jas@extundo.com>
60900
60901         * m4/getaddrinfo.m4: New file.
60902
60903 2004-11-10  Simon Josefsson  <jas@extundo.com>
60904
60905         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
60906
60907 2004-11-10  Simon Josefsson  <jas@extundo.com>
60908
60909         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60910         getaddrinfo.
60911
60912         * modules/getaddrinfo: New file.
60913
60914 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60915
60916         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
60917
60918 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60919
60920         * lib/mktime.c (SHR): New macro, which is a portable
60921         substitute for >> that should work even on Crays.
60922         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
60923         Problem reported by Mark D. Baushke in
60924         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
60925         * lib/getdate.y (SHR): Likewise.
60926         (tm_diff): Use it.
60927         * lib/strftime.c (SHR): Likewise.
60928         (tm_diff): Use it.
60929         * lib/quotearg.c (struct quoting_options): Use unsigned int for
60930         quote_these_too, so that right shifts are well defined.  All uses
60931         changed.
60932
60933 2004-11-10  Jim Meyering  <jim@meyering.net>
60934
60935         Ensure that no close failure goes unreported.
60936         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
60937         return early when it seems there's nothing to flush.
60938         Don't include __fpending.h.
60939
60940 2004-11-10  Jim Meyering  <jim@meyering.net>
60941
60942         * modules/closeout (Depends-on): Remove fpending.
60943
60944 2004-11-10  Jim Meyering  <jim@meyering.net>
60945
60946         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
60947
60948 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60949
60950         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
60951         gl_FUNC_STRFTIME.
60952         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
60953         and AC_REQUIRE when possible, to avoid duplicate checks.
60954         Check for <wchar.h>.
60955
60956 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60957
60958         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
60959
60960 2004-11-09  Bruno Haible  <bruno@clisp.org>
60961
60962         * m4/sockpfaf.m4: New file.
60963
60964 2004-11-05  Bruno Haible  <bruno@clisp.org>
60965
60966         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
60967         Reported by Mark D. Baushke <mdb@cvshome.org>.
60968
60969 2004-11-04  Bruno Haible  <bruno@clisp.org>
60970
60971         2004-09-11  Bruno Haible  <bruno@clisp.org>
60972                 * allocsa.valgrind: New file.
60973         2004-02-06  Bruno Haible  <bruno@clisp.org>
60974                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
60975                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
60976                 Reported by Christopher Seip <chris.seip@hp.com>.
60977
60978 2004-11-04  Bruno Haible  <bruno@clisp.org>
60979
60980         * modules/allocsa (Files): Add lib/allocsa.valgrind.
60981         (Makefile.am): Distribute it.
60982
60983 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60984
60985         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
60986         with errno == ERANGE if the buffer is too small.
60987         Problem reported by Mark D. Baushke.
60988
60989 2004-11-03  Albert Chin  <china@thewrittenword.com>
60990             Paul Eggert  <eggert@cs.ucla.edu>
60991
60992         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
60993         equivalent, substitute $ac_type for equivalent type rather than
60994         blindly using uint32_t *always* which won't work if uint32_t is not
60995         available.  Define _UINT32_T to work around typedef of uint32_t if
60996         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
60997         2.5.1.
60998
60999 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61000
61001         * m4/jm-macros.m4: Sync from coreutils.
61002         (gl_MACROS): Check for mbrlen, for pathchk.
61003         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
61004
61005 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61006
61007         * lib/xreadlink.c (MAXSIZE): New macro.
61008         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
61009         size does not exceed MAXSIZE.  Avoid cast.
61010         As suggested by Mark D. Baushke in
61011         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
61012         if readlink fails with buffer size just under MAXSIZE, try again
61013         with MAXSIZE.
61014
61015 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61016
61017         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
61018
61019 2004-11-02  Derek R. Price  <derek@ximbiot.com>
61020         and  Paul Eggert  <eggert@cs.ucla.edu>
61021
61022         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
61023         (get_date): Overparenthesize to avoid GCC warning.
61024
61025 2004-11-02  Bruno Haible  <bruno@clisp.org>
61026
61027         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
61028         returns void.
61029
61030 2004-11-02  Bruno Haible  <bruno@clisp.org>
61031
61032         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
61033         function returns void.
61034
61035 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61036
61037         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
61038         fflush_unlocked, flockfile, funlockfile, funlockfile,
61039         fputs_unlocked, putc_unlocked.
61040
61041 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61042
61043         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
61044         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
61045         already declared.
61046
61047 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61048
61049         * modules/getdate (Files): Add doc/getdate.texi.
61050         (Depends-on): Add setenv, xalloc.
61051
61052 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61053
61054         * lib/getdate.y: Add support for TZ="foo" within a date string.
61055         Fix some bugs near time_t boundaries.  Reject dates with
61056         out-of-range components, e.g., "Sept 31".
61057         Include <stdlib.h>, "setenv.h", "xalloc.h".
61058         (ISDIGIT_LOCALE): Remove; unused.
61059         Note that the TZ and time functions used here are not reentrant.
61060         (mktime_ok, get_tz): New functions.
61061         (TZBUFSIZE): New constant.
61062         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
61063         This requires that we sometimes generate our own TZ="XXX..." setting.
61064
61065 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61066
61067         * doc/getdate.texi: New file, from coreutils with modifications for
61068         the new TZ parsing.
61069
61070 2004-10-27  Derek R. Price  <derek@ximbiot.com>
61071
61072         * lib/mktime.c (not_equal_tm): Remove redundant check.
61073
61074 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61075
61076         * modules/regex (lib_SOURCES): Add regex.c.
61077         Reported by James Youngman in
61078         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
61079
61080 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61081
61082         * lib/getdate.y: Use Bison 1.875 features, and some minor
61083         code cleanups.  This change does not affect semantics.
61084         Don't include <stdlib.h>; no longer needed.
61085         Don't include unlocked-io.h; only the "#if TEST" code uses
61086         stdio, and performance isn't crucial there.
61087         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
61088         Bison 1.875 features as described below.
61089         All uses of "PC." replaced by "pc->".
61090         (YYSTYPE): Add a forward declaration.
61091         (yylex, yyerror): Use full prototypes in forward decls.
61092         Use "%pure-parser" rather than obsolescent "%pure_parser".
61093         Use %parse-param and %lex-param instead of obsolescent
61094         YYPARSE_PARAM and YYLEX_PARAM.
61095         (meridian_table, month_and_day_table, time_units_table,
61096         relative_time_table, time_zone_table, military_table,
61097         lookup_zone, lookup_word, get_date):
61098         Use NULL instead of 0 where appropriate.
61099         (to_hour): Avoid abort (), to avoid a dependency on
61100         stdlib.h.
61101         (yyerror, yylex): Now accepts parser_control * arg.
61102         (main) [TEST]: Use '\0' rather than 0 for char.
61103
61104 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61105
61106         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
61107
61108 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61109
61110         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
61111         It's now the caller's responsibility to handle the case where
61112         !HAVE_GETPAGESIZE && !defined getpagesize.
61113
61114         * lib/mktime.c (leapyear): Arg is long int, not int.
61115
61116 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
61117
61118         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
61119
61120 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61121
61122         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
61123         missing.  Problem reported by James Youngman.
61124
61125 2004-10-16  Simon Josefsson  <jas@extundo.com>
61126
61127         * gnulib-tool: Fix comments.  Fix parse problem.
61128         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
61129
61130 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
61131
61132         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
61133         implementation of getopt_long.  Problem reported by Alexander Taler in:
61134         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
61135
61136 2004-10-15  Bruno Haible  <bruno@clisp.org>
61137
61138         * gnulib-tool: Untabify. Initialize supplied_libname.
61139         (func_usage): More homogenous output.
61140         (func_modules_transitive_closure, func_modules_to_filelist,
61141         func_emit_lib_Makefile_am): New functions.
61142         (func_import): New function, extracted from big case statement. Use
61143         func_get_license, func_modules_transitive_closure,
61144         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
61145         opt_lgpl. Don't use test -a, as it's not portable.
61146         (func_create_testdir): Use func_modules_transitive_closure,
61147         func_modules_to_filelist, func_emit_lib_Makefile_am.
61148
61149 2004-10-15  Bruno Haible  <bruno@clisp.org>
61150
61151         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
61152
61153 2004-10-15  Bruno Haible  <bruno@clisp.org>
61154
61155         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
61156         the portions belonging to each module.
61157         Suggested by Derek Robert Price <derek@ximbiot.com>.
61158
61159 2004-10-12  Simon Josefsson  <jas@extundo.com>
61160
61161         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
61162         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
61163         to real functions.
61164
61165 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61166
61167         * modules/vsnprintf: New file.
61168
61169 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61170
61171         * m4/vsnprintf.m4: New file.
61172
61173 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61174
61175         * lib/vsnprintf.h: New file.
61176         * lib/vsnprintf.c: New file.
61177
61178 2004-10-11  Bruno Haible  <bruno@clisp.org>
61179
61180         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
61181         vsnprintf.
61182
61183 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61184
61185         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
61186
61187 2004-10-07  Bruno Haible  <bruno@clisp.org>
61188
61189         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
61190         fits into the provided buffer.
61191
61192 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61193
61194         * lib/diacrit.c, diacrit.h: Add GPL notice.
61195
61196         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
61197         notice.
61198         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
61199         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
61200         This avoids a potential constant-folding bug.
61201
61202 2004-10-05  Bruno Haible  <bruno@clisp.org>
61203
61204         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
61205         for the declaration of strsep.
61206
61207 2004-10-05  Bruno Haible  <bruno@clisp.org>
61208
61209         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
61210
61211 2004-10-04  Simon Josefsson  <jas@extundo.com>
61212
61213         * modules/memmem: New file.
61214         * tests/test-memmem.c: New file.
61215         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
61216
61217 2004-10-04  Simon Josefsson  <jas@extundo.com>
61218
61219         * m4/memmem.m4: New file.
61220
61221 2004-10-04  Simon Josefsson  <jas@extundo.com>
61222
61223         * lib/memmem.h: New file.
61224         * lib/memmem.c: New file, taken from glibc.
61225
61226 2004-10-04  Simon Josefsson  <jas@extundo.com>
61227
61228         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
61229         '#ifdef USE_UNLOCKED_IO'.
61230
61231 2004-10-04  Simon Josefsson  <jas@extundo.com>
61232
61233         * config/srclist.txt: Add memmem from glibc.
61234
61235 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61236
61237         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
61238
61239         * modules/argmatch, modules/argp, modules/closeout, modules/error,
61240         modules/exclude, modules/getdate, modules/getline,
61241         modules/getndelim2, modules/getpass, modules/getpass-gnu,
61242         modules/getusershell, modules/linebuffer, modules/md5,
61243         modules/mountlist, modules/posixtm, modules/readtokens,
61244         modules/readutmp, modules/regex, modules/sha1,
61245         modules/version-etc, modules/yesno:
61246         Remove dependency on unlocked-io.
61247
61248 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61249
61250         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
61251
61252         * m4/unlocked-io.m4: Add copyright notice.
61253         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
61254
61255 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61256
61257         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
61258         * lib/xmalloc.c (xmemdup): Likewise.
61259         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
61260         XFREE): Remove these long-obsolescent macros.
61261         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
61262         * lib/xstrdup.c: Remove.
61263
61264         * lib/regex.c (re_comp): Cast gettext return value to char *,
61265         Problem reported by Martin Neitzel via Mark D. Baushke.
61266
61267 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61268
61269         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
61270         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
61271         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
61272         regex.c, sha1.c, version-etc.c, yesno.c:
61273         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
61274         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
61275         the includer's responsibility.
61276
61277         Sync from coreutils.
61278
61279         * lib/modechange.c (mode_compile): Don't decrement a pointer that
61280         points to the start of a string, as the C Standard says the
61281         resulting behavior is undefined.
61282
61283         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
61284         simple -> simple_backups, numbered_existing ->
61285         numbered_existing_backups, numbered -> numbered_backups
61286         to avoid shadowing problems.  All uses changed.
61287         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
61288         * lib/backupfile.c (check_extension, numbered_backup):
61289         Rename locals to avoid shadowing 'basename'.
61290         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
61291         once.
61292
61293         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
61294         * lib/.cvsignore: Add getopt.h.
61295
61296 2004-10-04  Bruno Haible  <bruno@clisp.org>
61297
61298         * modules/README: New file.
61299         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
61300         not a module.
61301
61302 2004-10-02  Jim Meyering  <jim@meyering.net>
61303
61304         * lib/dirfd.h, getpagesize.h: Add copyright notice.
61305
61306 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61307
61308         * modules/strsep: New file.
61309
61310 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61311
61312         * m4/strsep.m4: New file.
61313
61314 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61315
61316         * lib/strsep.h: New file.
61317         * lib/strsep.c: New file.
61318
61319 2004-10-01  Simon Josefsson  <jas@extundo.com>
61320
61321         * lib/snprintf.c (snprintf): Handle size==0.
61322
61323 2004-10-01  Simon Josefsson  <jas@extundo.com>
61324             Bruno Haible  <bruno@clisp.org>
61325
61326         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
61327         (snprintf): Declare 'args'.
61328
61329 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
61330
61331         * lib/snprintf.c: Remove comments as to why each header is needed.
61332
61333 2004-10-01  Bruno Haible  <bruno@clisp.org>
61334
61335         * MODULES.html.sh: Add strsep.
61336
61337 2004-09-30  Simon Josefsson  <jas@extundo.com>
61338
61339         * modules/snprintf: New file.
61340
61341 2004-09-30  Simon Josefsson  <jas@extundo.com>
61342
61343         * m4/snprintf.m4: New file.
61344
61345 2004-09-30  Simon Josefsson  <jas@extundo.com>
61346
61347         * lib/snprintf.h, lib/snprintf.c: New files.
61348
61349 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61350
61351         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
61352         (hol_entry_help): Never translate an empty string.
61353         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
61354         * lib/argp.h (OPTION_NO_TRANS): New option.
61355
61356 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61357
61358         * modules/argp (Maintainer): Replace Simon Josefsson
61359         by Sergey Poznyakoff.
61360
61361 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61362
61363         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
61364         changes merged back into glibc.
61365
61366 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61367
61368         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
61369
61370 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
61371
61372         * lib/xvasprintf.c: Include xalloc.h.
61373         (xvasprintf): Use xalloc_die, not xmalloc_die.
61374
61375 2004-09-29  Bruno Haible  <bruno@clisp.org>
61376
61377         * modules/alloca-opt: New file, derived from modules/alloca.
61378         * modules/allocsa: Depend on alloca-opt instead of alloca.
61379         * modules/setenv: Likewise.
61380         * modules/vasnprintf: Likewise.
61381         * MODULES.html.sh: Add alloca-opt.
61382
61383 2004-09-28  Simon Josefsson  <jas@extundo.com>
61384
61385         * gnulib-tool: New parameter --lgpl, to asseert that modules are
61386         LGPL, and to replace license template from GPL to LGPL.
61387
61388 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61389
61390         * modules/dummy: Change license to LGPL.
61391
61392 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61393
61394         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
61395
61396 2004-09-24  Simon Josefsson  <jas@extundo.com>
61397
61398         * modules/minmax (License): Change from GPL to LGPL.
61399
61400 2004-09-23  Simon Josefsson  <jas@extundo.com>
61401
61402         * gnulib-tool (--import): Typo.
61403
61404 2004-09-23  Simon Josefsson  <jas@extundo.com>
61405
61406         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
61407
61408 2004-09-22  Bruno Haible  <bruno@clisp.org>
61409
61410         * modules/*: Add 'License' field.
61411         * gnulib-tool: Accept --extract-license option.
61412         (func_get_license): New function.
61413
61414 2004-09-21  Bruno Haible  <bruno@clisp.org>
61415
61416         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
61417         Reported by Simon Josefsson.
61418
61419 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61420
61421         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
61422         gl_AC_TYPE_LONG_LONG.
61423
61424 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61425
61426         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
61427
61428 2004-09-18  Simon Josefsson  <jas@extundo.com>
61429         and  Paul Eggert  <eggert@cs.ucla.edu>
61430
61431         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
61432         calls with autoreconf.  Define GL_LIB.
61433
61434 2004-09-14  Karl Berry  <karl@gnu.org>
61435
61436         * config/srclist.txt: unsync setenv.c, sigh.
61437
61438 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61439
61440         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
61441         Problem reported by Bruno Haible in:
61442         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
61443
61444 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61445
61446         * config/srclist.txt: Comment out argp-pvh.c.
61447
61448 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
61449
61450         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
61451         in case some system header has #define'd it.  Problem reported by
61452         Soeren D. Schulze in
61453         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
61454
61455 2004-09-09  Karl Berry  <karl@gnu.org>
61456
61457         * regex.[ch]: delete from the root.  These were supposed to be
61458                 synced with emacs cvs, but this has not happened for about
61459                 a year, and anyway nothing else uses emacs regex.[ch].
61460                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
61461                 lib/regex[.ch] is untouched.
61462
61463 2004-09-09  Bruno Haible  <bruno@clisp.org>
61464
61465         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
61466
61467 2004-09-09  Bruno Haible  <bruno@clisp.org>
61468
61469         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
61470         modifications.
61471         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
61472
61473 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61474
61475         * modules/xvasprintf: New file.
61476         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
61477
61478 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61479
61480         * lib/xvasprintf.h: New file.
61481         * lib/xvasprintf.c: New file.
61482         * lib/xasprintf.c: New file.
61483
61484 2004-09-08  Bruno Haible  <bruno@clisp.org>
61485
61486         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
61487
61488 2004-09-08  Bruno Haible  <bruno@clisp.org>
61489
61490         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
61491         length is > INT_MAX.
61492         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
61493         more.
61494
61495 2004-09-08  Bruno Haible  <bruno@clisp.org>
61496
61497         * lib/stdint_.h: New file, taken from GNU clisp.
61498
61499 2004-09-08  Bruno Haible  <bruno@clisp.org>
61500             Oskar Liljeblad  <oskar@osk.mine.nu>
61501
61502         * modules/stdint: New file.
61503         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
61504
61505 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61506
61507         Import from coreutils.
61508         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
61509         strings on unbounded length.  alloca's performance benefits aren't
61510         that important here.
61511         (V_STRDUP): Remove.
61512         (parse_with_separator): New function, with most of the internals
61513         of the old parse_user_spec.  Allow user to omit both user and group,
61514         for compatibility with FreeBSD.
61515         Clone only the user name, not the entire spec.
61516         Do not set *uid, *gid unless entirely successful.
61517         Avoid memory leak in some failing cases.
61518         Fix regression for USER.GROUP reported by Dmitry V. Levin in
61519         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
61520         (parse_user_spec): Rewrite to use parse_with_separator.
61521
61522 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61523
61524         * modules/userspec: Don't depend on alloca.
61525
61526 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61527
61528         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
61529
61530 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61531
61532         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
61533         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
61534         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
61535
61536 2004-08-16  Simon Josefsson  <jas@extundo.com>
61537
61538         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
61539         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
61540         Add --dry-run for --import.
61541         Let user provided command line parameters override configure.ac
61542         settings.
61543
61544 2004-08-12  Simon Josefsson  <jas@extundo.com>
61545
61546         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
61547         as discussed with Paul Eggert in threads rooted at
61548         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
61549         and
61550         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
61551         Before, the test was empty, and relied on ELIDE_CODE in source
61552         code.)
61553         (gl_PREREQ_GETOPT): New macro.
61554         (gl_GETOPT): Use them.
61555
61556 2004-08-12  Simon Josefsson  <jas@extundo.com>
61557
61558         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
61559         * lib/getopt_.h: Renamed from getopt.h.
61560
61561 2004-08-12  Simon Josefsson  <jas@extundo.com>
61562
61563         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
61564         Change default library name from libfoo to libgnu.
61565         Now, if you have a configure.ac that says:
61566                 gl_SOURCE_BASE(gl)
61567                 gl_M4_BASE(gl/m4)
61568                 gl_MODULES(error getopt etcetera)
61569                 gl_INIT
61570         you can import all you need by running:
61571                 ../gnulib/gnulib-tool --import
61572
61573         * modules/getopt (Files): Rename getopt.h to getopt_.h.
61574         (Makefile.am): Rewrite, use logic from argz.
61575         (Include): Use <getopt.h> instead of "getopt.h".
61576
61577 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61578
61579         * modules/argp (Files): Add m4/unlocked-io.m4.
61580         (Depends-on): Add extensions.
61581
61582 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61583
61584         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
61585         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
61586         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
61587         Check for program_invocation_name, program_invocation_short_name,
61588         flockfile, funlockfile, features.h, _getopt_long_only_r.
61589
61590 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61591
61592         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
61593         its complicated substitute.
61594         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
61595         and program_invocation_name.
61596         (__argp_basename) [!_LIBC]: Remove; the only use was
61597         replaced by its body.
61598         (__argp_short_program_name): Change condition from
61599         !defined __argp_short_program_name to
61600         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
61601         to match argp-namefrob.h.
61602         (__argp_failure): Don't assume strerror_r returns char *.
61603         * lib/argp-parse.c (N_): Define unconditionally.
61604         (argp_default_options): Fill out initializers with 0 to avoid
61605         gcc warnings.
61606
61607 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61608
61609         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
61610         getopt1.c.
61611
61612 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61613
61614         Merge from coreutils.
61615
61616         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
61617
61618         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
61619         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
61620
61621 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61622
61623         Merge from coreutils.
61624
61625         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
61626         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
61627         for Reliant Unix 5.43.
61628
61629         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
61630         (union fooround): Use uintmax_t, not long int.
61631         The rest is a merge from libc:
61632         [defined _LIBC]: Include <shlib-compat.h>.
61633         (_obstack) [defined _LIBC]: Remove after 2.3.4.
61634
61635         * lib/settime.c (settime): Recode to avoid warning with
61636         Sun Forte C 6U2.
61637
61638         * lib/strverscmp.c: Convert to UTF-8.
61639
61640 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61641
61642         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
61643         m4/uintmax_t.m4.
61644
61645 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61646
61647         * modules/xalloc-die: New file.
61648         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
61649
61650         * modules/md5 (Files): Add m4/uint32_t.m4.
61651         * modules/sha1: Renamed from modules/sha.
61652         (Files):
61653         Rename lib/sha.h to lib/sha1.h.
61654         Rename lib/sha.c to lib/sha1.c.
61655         Rename m4/sha.m4 to m4/sha1.m4.
61656         (lib_SOURCES): Likewise.
61657         (configure.ac): Rename gl_SHA to gl_SHA1.
61658         (Include): sha.h -> sha1.h.
61659
61660 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61661
61662         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
61663         * m4/sha1.m4: Renamed from sha.m4.
61664         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
61665
61666 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61667
61668         * lib/obstack.h (obstack_empty_p):
61669         Don't assume that chunk->contents is suitably aligned.
61670         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
61671         Likewise. Problem reported by Benno in
61672         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
61673
61674         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
61675         readable.  This could be improved further but it'd take some work.
61676
61677 2004-08-08  Simon Josefsson  <jas@extundo.com>
61678
61679         * modules/xgethostname (Depends-on): Remove exit and error (not
61680         used).
61681
61682         * modules/getpass-gnu: Add getpass.h.
61683         (Depends-on): Add stdbool.
61684         * modules/getpass: Add getpass.h.
61685
61686 2004-08-08  Simon Josefsson  <jas@extundo.com>
61687
61688         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
61689         Check getpass declaration.
61690
61691 2004-08-08  Simon Josefsson  <jas@extundo.com>
61692
61693         * lib/xgethostname.c: Don't include error.h (not used).
61694
61695         * lib/getpass.h: Add.
61696         * lib/getpass.c: Include getpass.h first.
61697
61698 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
61699
61700         * lib/xalloc-die.c: New file.
61701         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
61702         All uses removed.
61703         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
61704         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
61705         xalloc-die.c.
61706         (_, N_, xalloc_die): Move to xalloc-die.c.
61707         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
61708         so that we needn't mess with xalloc_msg_memory_exhausted.
61709
61710         * lib/sha1.h: Renamed from sha.h.
61711         (SHA1_H): Renamed from _SHA_H.
61712         (sha1_ctx): Renamed from sha_ctx.
61713         (sha1_init_ctx): Renamed from sha_init_ctx.
61714         (sha1_process_block): Renamed from sha_process_block.
61715         (sha1_process_bytes): Renamed from sha_process_bytes.
61716         (sha1_finish_ctx): Renamed from sha_finish_ctx.
61717         (sha1_read_ctx): Renamed from sha_read_ctx.
61718         (sha1_stream): Renamed from sha_stream.
61719         (sha1_buffer): Renamed from sha_buffer.
61720         * lib/sha1.c: Likewise; renamed from sha.c.
61721         Do not include <sys/types.h>.
61722         Include <stddef.h> rather than <stdlib.h>.
61723
61724 2004-08-08  Bruno Haible  <bruno@clisp.org>
61725
61726         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
61727         FILESYSTEM_PREFIX_LEN.
61728         * lib/progreloc.c: Likewise.
61729         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
61730
61731 2004-08-06  Simon Josefsson  <jas@extundo.com>
61732
61733         * modules/progname (Depends-on): Don't depend on stdbool.
61734
61735 2004-08-06  Simon Josefsson  <jas@extundo.com>
61736
61737         * modules/getsubopt: New file.
61738         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61739         getsubopt.
61740
61741 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61742
61743         More merge from coreutils.
61744
61745         * m4/utimens.m4, m4/utimecmp.m4: New files.
61746         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
61747         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
61748         prereq.m4, sha.m4: Import changes from coreutils.
61749
61750 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61751
61752         More merge from coreutils.
61753         * modules/raise, modules/readtokens0, modules/utimens:
61754         * modules/utimecmp, module/xnanosleep: New files.
61755         * modules/strftime: Add lib/strftime.h.
61756         Change include from <time.h> to "strftime.h".
61757         * modules/yesno: Add lib/yesno.h.
61758         * modules/backupfile: Remove lib/addext.c.
61759         * modules/euidaccess: Add stat-macros.h.
61760         * modules/canonicalize, modules/euidaccess,
61761         modules/filemode, modules/lchown, modules/makepath,
61762         modules/rmdir, modules/stat: Likewise.
61763
61764 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61765
61766         Merge from tar.
61767         * lib/argp-help.c (make_hol, hol_append): Don't assume that
61768         SIZE_MAX is a valid preprocessor constant.
61769         (__argp_basename): Change from "#ifndef _LIBC"
61770         to "#ifndef __argp_short_program_name", so that
61771         we don't compile these functions for tar.
61772
61773         More merges from coreutils.
61774         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
61775         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
61776         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
61777         * lib/addext.c: Remove; no longer needed.
61778         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
61779         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
61780         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
61781         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
61782         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
61783         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
61784         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
61785         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
61786         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
61787         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61788         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
61789         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
61790         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
61791         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
61792         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
61793         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
61794         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
61795         Import changes from coreutils.
61796
61797 2004-08-05  Simon Josefsson  <jas@extundo.com>
61798
61799         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
61800
61801 2004-08-05  Simon Josefsson  <jas@extundo.com>
61802
61803         * m4/getsubopt.m4: New file.
61804
61805 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61806
61807         Merge from coreutils.
61808
61809         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
61810         * m4/getcwd-path-max.m4: New files.
61811
61812         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
61813         FILESYSTEM_PREFIX_LEN ->
61814         FILE_SYSTEM_PREFIX_LEN.
61815         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
61816         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
61817         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
61818         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
61819
61820         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
61821         prerequisite modules now handle the DOS stuff.
61822         Don't check for unistd.h.
61823
61824 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61825
61826         Merge from coreutils.
61827
61828         * lib/.gdb-history: Remove; this doesn't belong here.
61829
61830         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
61831         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
61832         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
61833         * lib/getcwd.c: New files.
61834
61835         * lib/dirname.h: Include <stdbool.h>.
61836         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
61837         for consistency with POSIX terminology.  All uses changed.
61838         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
61839         (strip_trailing_slashes): Use bool for booleans.
61840         * lib/stripslash.c (strip_trailing_slashes): Likewise.
61841
61842         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
61843         sometimes returns a positive errno value even when it succeeds.
61844         (print_errno_message) [!LIBC]: Fall back on strerror if
61845         __strerror_r fails.
61846
61847         * lib/path-concat.c (mempcpy): Don't define if a system header defines
61848         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
61849         (longest_relative_suffix): New function.
61850         (path_concat): Use it.  Assume first argument is not NULL.
61851         Port to DOS.  Omit redundant separators.
61852         Report an error instead of returning NULL.
61853         Use mempcpy instead of memcpy.
61854         (xpath_concat): Remove: not declared or used.
61855
61856         * lib/same.h: Include <stdbool.h>
61857         (same_name): Return bool, not int.
61858         * lib/same.c (same_name): Likewise.
61859         (errno): Don't declare; we assume C89 or better now.
61860
61861         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
61862         if not already defined.
61863
61864         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
61865         * lib/dup-safer.c (errno): Likewise.
61866
61867 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61868
61869         Merge from coreutils.
61870         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
61871         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
61872         * modules/path-concat: Don't depend on strdup.
61873
61874 2004-08-03  Simon Josefsson  <jas@extundo.com>
61875
61876         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
61877         * lib/progname.h: Don't include stdbool.h.
61878
61879 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61880
61881         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
61882         * MODULES.html.sh (func_all_modules): Remove fatal.
61883
61884 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61885
61886         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
61887
61888 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61889
61890         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
61891         working.
61892
61893 2004-08-02  Simon Josefsson  <jas@extundo.com>
61894
61895         * lib/getsubopt.h: New file, with comments from Bruno Haible.
61896         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
61897         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
61898
61899 2004-08-01  Simon Josefsson  <jas@extundo.com>
61900
61901         * lib/xgetdomainname.c: Include stdlib.h, for free().
61902
61903 2004-07-19  Bruno Haible  <bruno@clisp.org>
61904
61905         * MODULES.html.sh (func_all_modules): Add dummy.
61906
61907 2004-07-16  Simon Josefsson  <jas@extundo.com>
61908
61909         * modules/dummy: New file.
61910
61911 2004-07-16  Simon Josefsson  <jas@extundo.com>
61912
61913         * lib/dummy.c: New file.
61914
61915 2004-07-16  Bruno Haible  <bruno@clisp.org>
61916
61917         * lib/backupfile.h: Add extern "C" for C++.
61918         * lib/closeout.h: Likewise.
61919         * lib/copy-file.h: Likewise.
61920         * lib/findprog.h: Likewise.
61921         * lib/full-write.h: Likewise.
61922         * lib/pathname.h: Likewise.
61923         * lib/progname.h: Likewise.
61924         * lib/stpcpy.h: Likewise.
61925         * lib/stpncpy.h: Likewise.
61926         * lib/strcase.h: Likewise.
61927         * lib/strstr.h: Likewise.
61928         * lib/xalloc.h: Likewise.
61929
61930         * lib/mbswidth.h: Add extern "C" for C++.
61931         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
61932
61933 2004-07-13  Robert Millan  <robertmh@gnu.org>
61934
61935         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
61936
61937 2004-07-09  Simon Josefsson  <jas@extundo.com>
61938
61939         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
61940         failed without this.)
61941
61942 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61943
61944         * modules/chown (Files): Add lib/fchown-stub.c, since
61945         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
61946
61947 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61948
61949         * lib/fchown-stub.c: New file.
61950
61951 2004-06-24  Jim Meyering  <jim@meyering.net>
61952
61953         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
61954
61955 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61956
61957         * modules/argz: Omit "#include".
61958
61959         * MODULES.html.sh (func_all_modules): Add calloc, to match
61960         2004-06-01 addition of calloc module.
61961
61962 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61963
61964         * m4/argz.m4: New file, which is autoupdated from libtool.
61965
61966 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61967
61968         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
61969         libtool.
61970
61971 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61972
61973         * config/srclist-update: Don't insist on "USA." before the
61974         close-comment, as libtool omits the period and puts the */ on a
61975         separate line.
61976         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
61977         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
61978
61979 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
61980
61981         * modules/argz: New file.
61982         * MODULES.html.sh (func_all_modules): Add argz.
61983
61984 2004-06-12  Jim Meyering  <jim@meyering.net>
61985         and  Paul Eggert  <eggert@cs.ucla.edu>
61986
61987         * modules/hash (Files): Add lib/xalloc.h.
61988         * modules/pipe (Depends-on): Add wait-process.
61989         * modules/stat (Depends-on): Add xalloc.
61990         * modules/userspec (Files): Add lib/userspec.h.
61991         * modules/xstrto
61992
61993         Upgrade from gettext-0.13.
61994         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
61995         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
61996         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
61997
61998 2004-06-10  Jim Meyering  <jim@meyering.net>
61999
62000         * lib/calloc.c: New file.
62001
62002 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
62003
62004         * lib/getdate.y (yylex): Allow space between sign and number.
62005         Problem reported by Dan Jacobson.
62006
62007 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
62008
62009         Merge from coreutils CVS.
62010
62011         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
62012         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
62013         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
62014         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
62015         xstrtol.m4: Fix copyright date and/or serial number.
62016
62017         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
62018         See if we need an fchown replacement.
62019         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
62020         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
62021         and use the replacement function if we detect either defect.
62022
62023         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
62024         gl_UTIMECMP.
62025
62026 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
62027         and  Jim Meyering  <jim@meyering.net>
62028
62029         Merge from coreutils CVS.
62030
62031         * lib/stat-macros.h: New file, with contents from file-type.h
62032         and coreutils' system.h.
62033         * lib/file-type.c: Include "stat-macros.h".
62034         * lib/file-type.h (file_type): Move all macro definitions to new file,
62035         stat-macros.h.
62036
62037         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
62038         Wrap old code with this conditional.
62039         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
62040         function that does not dereference symlinks.
62041         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
62042
62043         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
62044         dependency problems.
62045         (xreadlink): Accept new arg SIZE, for efficiency.
62046         All decls and uses changed.
62047         * lib/xreadlink.h: Include <stddef.h>, for size_t.
62048
62049         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
62050         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
62051
62052         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
62053         sysexits.h.
62054
62055 2004-06-01  Jim Meyering  <jim@meyering.net>
62056
62057         * m4/calloc.m4: New file.
62058
62059 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
62060
62061         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
62062         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
62063         Also, fix a typo in a diagnostic.
62064
62065 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
62066
62067         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
62068         or AC_FUNC_REALLOC.
62069
62070 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
62073         macros to be defined.
62074         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
62075         the allocator returns NULL because the requested size is zero.
62076
62077 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62078
62079         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
62080         var.  Add comment explaining why libc still defines it.  This
62081         merges the following patch from glibc:
62082         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
62083
62084 2004-05-20  Andreas Schwab  <schwab@suse.de>
62085
62086         * m4/free.m4: Replace free if it not known to work, not the other
62087         way round.
62088
62089 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62090
62091         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
62092         present in glibc since revision 1.1 of this file.
62093         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
62094         obstack_alignment_mask, obstack_alloc, obstack_base,
62095         obstack_blank, obstack_blank_fast, obstack_chunk_size,
62096         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
62097         obstack_grow0, obstack_init, obstack_int_grow,
62098         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
62099         obstack_next_free, obstack_object_size, obstack_ptr_grow,
62100         obstack_ptr_grow_fast, obstack_room): Remove declarations of
62101         nonexistent functions.
62102
62103 2004-05-18  Karl Berry  <karl@gnu.org>
62104
62105         * config/srclist.txt: break link for vasnprintf.c.
62106
62107 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62108
62109         Port obstack to the AS/400, where pointers are 16 bytes wide and
62110         you cannot cast an integer to a valid pointer.  This patch is
62111         currently waiting to be integrated into glibc; see
62112         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
62113
62114         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
62115         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
62116         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
62117         (struct obstack): temp member is now a union of a pointer and
62118         an integer, instead of an integer.  All integer uses changed.
62119         This does not affect the physical layout of struct obstack,
62120         except on hosts (like the AS/400) where the size or alignment of
62121         void * is greater than that of ptrdiff_t.
62122         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
62123         __STDC__)]: Store temporary in pointer member of union, not
62124         integer member.
62125         * lib/obstack.c: Include <stddef.h>, for offsetof.
62126         (struct fooalign): Remove; it doesn't need a name.
62127         (union fooround): Change double to long double, and add void *.
62128         (DEFAULT_ALIGNMENT): Use offsetof to compute.
62129         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
62130         not a macro.  Hence the values are always int; so remove all
62131         casts-to-int in uses.
62132
62133 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62134
62135         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
62136         we can get this patch merged into glibc.
62137
62138 2004-05-17  Derek R. Price  <derek@ximbiot.com>
62139             Paul Eggert  <eggert@cs.ucla.edu>
62140
62141         * m4/argp: Depend on alloca.
62142
62143 2004-05-17  Derek R. Price  <derek@ximbiot.com>
62144             Paul Eggert  <eggert@cs.ucla.edu>
62145
62146         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
62147         freecoding.
62148
62149 2004-05-17  Bruno Haible  <bruno@clisp.org>
62150
62151         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
62152         precision that consists of a '.' followed by an empty digit string.
62153         Patch by Tor Lillqvist <tml@iki.fi>.
62154
62155 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62156
62157         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
62158         for backward compatibility with older code.  We need our own
62159         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
62160         it under some other name, and our alloca.h will define it.
62161
62162 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62163             Derek Price  <derek@ximbiot.com>
62164
62165         * lib/alloca.c: Include <alloca.h>, to get our interface.
62166         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
62167         include <alloca.h> first.  Use C89 prototype for alloca; this
62168         requires including <stddef.h> for size_t.  Use extern "C" if C++.
62169         Use #elif for simplicity, since we can assume C89 now.
62170         Don't try to source the system alloca.h since it will not be found
62171         and to prevent recursively including its replacement.
62172         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
62173         * lib/regex.c: Likewise.
62174
62175 2004-05-16  Derek Price  <derek@ximbiot.com>
62176             Paul Eggert  <eggert@cs.ucla.edu>
62177
62178         getline cleanup.  This changes the getndelim2 API: both order of
62179         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
62180         no delimiter).
62181
62182         * lib/getline.c: Don't include stddef.h or stdio.h, since our
62183         interface does that.
62184         (getline): Always use getdelim, so that we don't have two
62185         copies of this code.
62186         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
62187         if available.
62188         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
62189         (GETNDELIM2_MAXIMUM): New macro.
62190         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
62191         instead of the old practice of delim2==0.  All callers changed.
62192         Return -1 on overflow, instead of returning junk.
62193         Do not set *linesize unless allocation succeeds.
62194         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
62195         that we include sys/types.h.
62196         * lib/getnline.h: Likewise.
62197         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
62198         (getndelim2): Reorder arguments.
62199         * lib/getnline.c (getnline, getndelim):
62200         Don't discard the NMAX argument.
62201         (getnline): Invoke getndelim, to avoid code duplication.
62202         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
62203         of (size_t) -1 by callers of the getnline family.
62204
62205 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62206
62207         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
62208         Check for gettimeofday.
62209         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
62210         Check for settimeofday, stime.
62211
62212 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62213
62214         * lib/nanosleep.c (suspended): Change its type from int to
62215         sig_atomic_t volatile.
62216         (first_call): Make it private to rpl_nanosleep, and have it
62217         be zero initially as that's a bit faster.
62218         (my_usleep): Round up fractional times instead of truncating them,
62219         as this is the usual meaning for 'sleep'.
62220
62221         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
62222         doesn't work.
62223         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
62224         (ENOSYS): Define if not defined.
62225         (settime): Fall back on stime if it exists and settimeofday fails.
62226         But don't bother with fallbacks if a method fails with errno == EPERM.
62227
62228 2004-05-11  Jim Meyering  <jim@meyering.net>
62229
62230         Prior to this change, the save_cwd caller required read access to the
62231         current directory on most systems (ones with the fchdir function).
62232
62233         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
62234         fails, try write-only, and finally, resort to using xgetcwd.
62235
62236 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
62237
62238         * lib/obstack.c, obstack.h: Import changes from libc.
62239
62240 2004-04-28  Bruno Haible  <bruno@clisp.org>
62241
62242         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
62243         also implicitly appends .exe to executables.
62244         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
62245         accepts Windows pathnames.
62246         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
62247         Treat Cygwin like Windows, since it now accepts Windows pathnames.
62248         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
62249         Treat Cygwin like Windows, since it now accepts Windows pathnames.
62250         Reported by Derek Robert Price <derek@ximbiot.com>.
62251
62252 2004-04-21  Karl Berry  <karl@gnu.org>
62253
62254         * config/srclist.txt (localcharset.c): break sync.
62255
62256 2004-04-20  Paul Eggert  <eggert@twinsun.com>
62257
62258         * m4/host-os.m4: Add a copyright notice.
62259
62260 2004-04-20  Jim Meyering  <jim@meyering.net>
62261
62262         Change UTILS_ to gl_ in AC_DEFINE'd names.
62263         Change utils_- and jm_-prefixed variables, too.
62264         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
62265         UTILS_FUNC_MKDIR_TRAILING_SLASH.
62266         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
62267
62268         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
62269         Don't emit trailing blanks.
62270         Also rename jm_-prefixed variables to have gl_ prefix.
62271
62272         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
62273         Also rename jm_-prefixed variables to have gl_ prefix.
62274
62275         * m4/jm-macros.m4: Reflect the renamings.
62276         * m4/prereq.m4: Likewise.
62277
62278 2004-04-20  Jim Meyering  <jim@meyering.net>
62279
62280         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
62281         memory.
62282
62283 2004-04-20  Jim Meyering  <jim@meyering.net>
62284             Bruno Haible  <bruno@clisp.org>
62285
62286         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
62287         memory when realloc fails.
62288
62289 2004-04-19  Jim Meyering  <jim@meyering.net>
62290
62291         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
62292         now that readutmp.c may call `free (0)'.
62293
62294 2004-04-19  Bruno Haible  <bruno@clisp.org>
62295
62296         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
62297         * m4/inttypes_h.m4: Likewise.
62298         * m4/stdint_h.m4: Likewise.
62299         * m4/intmax_t.m4: Likewise.
62300         * m4/uintmax_t.m4: Likewise.
62301
62302 2004-04-18  Jim Meyering  <jim@meyering.net>
62303
62304         * m4/prereq.m4: Don't forbid jm_ prefix.
62305
62306         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
62307         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
62308         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
62309         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
62310         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
62311         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
62312         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
62313         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
62314         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
62315         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
62316         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
62317         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
62318         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
62319         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
62320         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
62321         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
62322         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
62323         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
62324         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
62325
62326 2004-04-18  Jim Meyering  <jim@meyering.net>
62327
62328         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
62329         failure, don't leak memory and do call END_UTMP_ENT.
62330
62331 2004-04-16  Jim Meyering  <jim@meyering.net>
62332
62333         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
62334         coreutils' stat program.
62335         (gl_PREREQ): Don't require jm_PREREQ_STAT.
62336
62337 2004-04-11  Paul Eggert  <eggert@twinsun.com>
62338
62339         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
62340         C89.
62341         (CHAR_BIT): Remove, since we assume C89.
62342         Include <stdint.h> if available, as per current Autoconf CVS advice.
62343
62344 2004-03-31  Jim Meyering  <jim@meyering.net>
62345
62346         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
62347         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
62348         * m4/xalloc.m4: Likewise.
62349
62350 2004-03-30  Paul Eggert  <eggert@twinsun.com>
62351
62352         Merge from coreutils.
62353
62354         * m4/inttostr.m4: New file.
62355         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
62356         Require AM_STDBOOL_H and gl_TIMESPEC instead.
62357         Require gl_CLOCK_TIME.
62358         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
62359
62360 2004-03-30  Paul Eggert  <eggert@twinsun.com>
62361
62362         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
62363         not bool, to be more consistent with Unix conventions.
62364         Suggested by Bruno Haible.
62365
62366         Merge from coreutils.
62367
62368         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
62369         * lib/umaxtostr.c: New files.
62370
62371         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
62372         the usual <time.h> dance.
62373         (get_date): Change signature to support fractional time stamps.
62374         All callers changed.
62375         * lib/getdate.y: Include "getdate.h" first, as we can now
62376         assume C89 and don't need to worry about 'const'.
62377         Similarly, include "unlocked-io.h" near start, not in middle.
62378         Include <limits.h>.
62379         (textint.value): Use long int rather than int.
62380         (textint.digits): Use size_t rather than int.
62381         (BILLION, LOG10_BILLION): New constants.
62382         (parser_control): New member rel_ns.  Members day_ordinal,
62383         time_zone, month, day, hour, minutes, rel_year, rel_month,
62384         rel_day, rel_hour, rel_minutes, rel_seconds
62385         are now long int, not int.  Member seconds is now struct timespec,
62386         not int.  New member timespec_seen.  Members dates_seen, days_seen,
62387         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
62388         not int.
62389         (%union.intval): Now long int, not int.
62390         New member timespec.
62391         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
62392         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
62393         (spec): Now is a timespec or an item list.
62394         (timespec, items): New nonterminals.
62395         (time, rel, relunit, number, get_date):
62396         Add support for fractional seconds.
62397         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
62398         (gmtime, localtime, mktime): Remove decls; not needed with C89.
62399         (to_hour): First arg is now long int, not int.
62400         (to_year): Returns long int, not int.
62401         Don't treat year -70 like 70.
62402         (tm_diff): Returns long int, not int.
62403         (lookup_word): Use bool instead of int when appropriate.
62404         (yylex): Use size_t for count, not int.
62405         Detect overflow when parsing large integer constants.
62406         Add support for fractions.
62407         (get_date): Make pointers 'const' if possible.
62408         Use more-portable code to detect integer overflow.
62409         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
62410         Don't use ctime; it's not reliable if the year has >4 digits.
62411
62412         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
62413         This is for compatibility with BSD.
62414
62415         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
62416         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
62417         From coreutils' system.h.
62418
62419         * lib/userspec.c: Don't include "posixver.h".
62420         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
62421         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
62422         compatible extension.  Simplify code by removing a boolean int
62423         that was always nonzero if a string was nonnull.
62424
62425 2004-03-30  Jim Meyering  <jim@meyering.net>
62426
62427         Merge from coreutils.
62428
62429         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
62430         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
62431         on some systems one must include <grp.h> before it.
62432         Reported by Christian Krackowizer.
62433
62434 2004-03-30  Jim Meyering  <jim@meyering.net>
62435
62436         Merge from coreutils.
62437
62438         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
62439
62440         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
62441         an empty input stream.
62442
62443         * lib/readtokens.c: Include <stdbool.h>.
62444         (readtoken): Use `size_t' rather than int/long.
62445         All callers adjusted.
62446         Use `bool' rather than `int' where appropriate.
62447         Use memset rather than an explicit loop.
62448         Use x2nrealloc rather than xrealloc.
62449         Allow the use of `\0' as a delimiter.
62450         (readtokens): Likewise.
62451         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
62452
62453 2004-03-30  Jim Meyering  <jim@meyering.net>
62454
62455         * m4/realloc.m4: Remove file, since now it does no more than
62456         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
62457         the `configure.ac' section of module/realloc.
62458         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
62459
62460 2004-03-30  Bruno Haible  <bruno@clisp.org>
62461
62462         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
62463         nonnull.
62464
62465 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62466
62467         Merge changes to getloadavg.c from coreutils and Emacs.
62468
62469         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
62470         Define to an expression, not to the empty string.
62471         Include cloexec.h and xalloc.h.
62472         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
62473         Use set_cloexec_flag rather than rolling our own.
62474         * lib/cloexec.c, lib/cloexec.h: New files.
62475
62476 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62477
62478         * m4/cloexec.m4: New file.
62479
62480 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62481
62482         * lib/getopt.h: Sync with libc CVS.
62483
62484 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62485             Bruno Haible  <bruno@clisp.org>
62486
62487         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
62488         mbswidth.
62489
62490 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62491             Bruno Haible  <bruno@clisp.org>
62492
62493         * lib/mbswidth.h: Include <wchar.h> only if
62494         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
62495         <wchar.h>.
62496         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
62497
62498 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62499
62500         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
62501         Sync with libc CVS.
62502         * lib/getopt_int.h: New file, also synced from libc.
62503
62504 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62505
62506         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
62507         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
62508         Bring back getopt.c, getopt.h, getopt1.c.
62509
62510 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62511
62512         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
62513         All uses changed.  Check for sa_sigaction member; this fixes
62514         a bug first reported by Jason Andrade in
62515         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62516
62517 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62518
62519         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
62520         '#if' expressions.  Unlike the code it replaces, it does not
62521         depend on (defined _SC_PAGESIZE).  However, it does depend on
62522         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
62523         first reported by Jason Andrade in
62524         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62525
62526 2004-02-25  Simon Josefsson  <jas@extundo.com>
62527
62528         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
62529
62530 2004-02-25  Simon Josefsson  <jas@extundo.com>
62531
62532         * lib/strdup.h: New file.
62533         * lib/strdup.c: Include it.
62534         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
62535         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
62536
62537 2004-02-23  Karl Berry  <karl@gnu.org>
62538
62539         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
62540         (from fencepost.gnu.org:/gd/gnuorg).
62541
62542 2004-02-23  Karl Berry  <karl@gnu.org>
62543
62544         * config/srclistvars.sh (GNUORG) [karl]: redefine.
62545         * config/srclist.txt: add maintain/standards documents.
62546
62547 2004-02-18  Bruno Haible  <bruno@clisp.org>
62548
62549         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
62550         Reported by Derek Robert Price <derek@ximbiot.com>.
62551
62552 2004-02-16  Karl Berry  <karl@gnu.org>
62553
62554         * config/mkinstalldirs, install-sh: update from automake.
62555
62556 2004-02-06  Karl Berry  <karl@gnu.org>
62557
62558         * m4/po.m4: update from gettext 0.14.1.
62559
62560 2004-02-06  Karl Berry  <karl@gnu.org>
62561
62562         * lib/config.charset: update from gettext 0.14.1.
62563
62564 2004-02-05  Paul Eggert  <eggert@twinsun.com>
62565
62566         Add comments and code, prompted by suggestions from Bruno Haible
62567         for sh-quote.
62568         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
62569         describing the enum quoting_style values.
62570         * lib/quotearg.c (quotearg_alloc): New function.
62571         (quotearg_buffer_restyled): Treat lone { and } as special.
62572         Treat = as special.  Work around bug with older shells
62573         that "see" a '\' that is really the 2nd byte of a multibyte char.
62574         Quote empty string with shell_quoting_style.
62575
62576 2004-02-03  Bruno Haible  <bruno@clisp.org>
62577
62578         * m4/pipe.m4: New file, from GNU gettext.
62579
62580 2004-02-03  Bruno Haible  <bruno@clisp.org>
62581
62582         * lib/pipe.h: New file, from GNU gettext.
62583         * lib/pipe.c: New file, from GNU gettext.
62584
62585 2004-01-27  Bruno Haible  <bruno@clisp.org>
62586
62587         * m4/execute.m4: New file, from GNU gettext.
62588
62589 2004-01-27  Bruno Haible  <bruno@clisp.org>
62590
62591         * lib/execute.h: New file, from GNU gettext.
62592         * lib/execute.c: New file, from GNU gettext.
62593         * lib/w32spawn.h: New file, from GNU gettext.
62594
62595 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62596
62597         Merge from diffutils.
62598
62599         * lib/file-type.c (file_type): Add typed memory objects.
62600         * lib/file-type.h (S_TYPEISTMO): New macro.
62601
62602         * lib/c-stack.h (c_stack_action): Remove argv argument.
62603         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
62604         (die): Don't calculate message unless segv_action returns.
62605         (get_stack_location, min_address_from_argv, max_address_from_argv,
62606         volatile stack_base, volatile_stack_size): Remove.
62607         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
62608         that every segmentation violation is a stack overflow.  (Ouch!)
62609         See Debian bug 136249 (still outstanding) for more info about why
62610         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
62611
62612 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62613
62614         Exit-status fix from coreutils.
62615
62616         Use exit_failure consistently in place of EXIT_FAILURE,
62617         so that program exit statuses are consistent on failure.
62618
62619         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
62620         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
62621         * lib/argmatch.h: Comment fix to match the above.
62622         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
62623         Now a macro referring to exit_failure, instead of a separate
62624         variable.  Include "exitfail.h" to get it.
62625         * lib/xstrtol.h: Include "exitfail.h".
62626         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
62627
62628         * lib/long-options.c (parse_long_options): Use prototype
62629         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
62630         for clarity.
62631
62632 2004-01-21  Jim Meyering  <jim@meyering.net>
62633
62634         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
62635         so as not to conflict with a different-sized __mktime_internal
62636         function in GNU libc.
62637         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
62638         Problem building statically-linked `ls' reported by Michael Brunnbauer.
62639
62640 2004-01-20  Karl Berry  <karl@gnu.org>
62641
62642         * config/config.guess: update from config.
62643
62644         * config/srclistvars.sh: GNUWWWLICENSES for karl.
62645
62646 2004-01-20  Bruno Haible  <bruno@clisp.org>
62647
62648         Safer stack allocation.
62649         * lib/setenv.c: Include allocsa.h.
62650         (alloca): Remove fallback definition.
62651         (freea): Remove macro.
62652         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
62653         instead of freea.
62654
62655 2004-01-20  Bruno Haible  <bruno@clisp.org>
62656
62657         * m4/eealloc.m4: New file, from GNU gettext.
62658
62659 2004-01-20  Bruno Haible  <bruno@clisp.org>
62660
62661         * m4/allocsa.m4: New file, from GNU gettext.
62662
62663 2004-01-20  Bruno Haible  <bruno@clisp.org>
62664
62665         * lib/xallocsa.h: New file, from GNU gettext.
62666         * lib/xallocsa.c: New file, from GNU gettext.
62667
62668 2004-01-20  Bruno Haible  <bruno@clisp.org>
62669
62670         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
62671
62672 2004-01-20  Bruno Haible  <bruno@clisp.org>
62673
62674         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
62675         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
62676         specially.
62677
62678 2004-01-20  Bruno Haible  <bruno@clisp.org>
62679
62680         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
62681         patch.
62682
62683 2004-01-20  Bruno Haible  <bruno@clisp.org>
62684
62685         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
62686
62687 2004-01-20  Bruno Haible  <bruno@clisp.org>
62688
62689         * lib/eealloc.h: New file.
62690
62691 2004-01-20  Bruno Haible  <bruno@clisp.org>
62692
62693         * lib/binary-io.h: Avoid warnings on Cygwin.
62694
62695 2004-01-20  Bruno Haible  <bruno@clisp.org>
62696
62697         * lib/allocsa.h: New file, from GNU gettext.
62698         * lib/allocsa.c: New file, from GNU gettext.
62699
62700 2004-01-18  Karl Berry  <karl@gnu.org>
62701
62702         * doc/gpl.texi, doc/lgpl.texi: new files.
62703
62704 2004-01-18  Karl Berry  <karl@gnu.org>
62705
62706         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
62707         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
62708
62709 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62710
62711         Merge from coreutils.
62712
62713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
62714         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
62715         (gl_DEFAULT_POSIX2_VERSION): Move
62716         the documentation from 'configure' into 'config.hin',
62717         so that 'configure --help' isn't burdened by it and
62718         we don't have to worry about its formatting there.
62719         Reword the documentation so that it's more succinct
62720         and can be run together into a single paragraph.
62721         * m4/same.m4 (gl_SAME): Check for pathconf.
62722
62723 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62724
62725         Merge from coreutils.
62726
62727         * lib/posixver.c: Include posixver.h.
62728
62729         * lib/same.c: Include <stdbool.h>, <limits.h>.
62730         (_POSIX_NAME_MAX): Define if not defined.
62731         (MIN): New macro.
62732         (same_name): If file names are silently truncated, report
62733         that the file names are the same if they are the same after
62734         the silent truncation.
62735
62736         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
62737         conversion function.
62738         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
62739         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
62740         longer needed.
62741
62742 2004-01-15  Jim Meyering  <jim@meyering.net>
62743
62744         Merge from coreutils.
62745
62746         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
62747         if no library is required.
62748         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
62749         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
62750         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
62751         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
62752         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
62753         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
62754         value, $ac_cv_search_crypt, if it's "none required".
62755         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
62756         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
62757         not gl_FUNC_GETLOADAVG.
62758         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
62759         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
62760
62761 2004-01-15  Jim Meyering  <jim@meyering.net>
62762
62763         Merge from coreutils.
62764
62765         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
62766         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
62767         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
62768
62769         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
62770         optional configure-time default.
62771
62772         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62773
62774         * lib/xreadlink.c (xreadlink): Correct outdated comment.
62775
62776 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
62777
62778         Merge from coreutils.
62779
62780         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
62781         value, $ac_cv_search_nanosleep, if it's "none required".
62782
62783 2004-01-14  Paul Eggert  <eggert@twinsun.com>
62784
62785         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
62786         with like-named macro in fnmatch.c.
62787         (EXT): Use an internal constant instead.
62788
62789         Merge fnmatch patches from glibc.
62790         * lib/fnmatch.c (mbsinit): Remove define.
62791         Add libc_hidden_ver (__fnmatch, fnmatch).
62792         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
62793         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
62794
62795 2004-01-14  Karl Berry  <karl@gnu.org>
62796
62797         * config/install-sh: update from automake.
62798
62799 2004-01-13  Karl Berry  <karl@gnu.org>
62800
62801         * config/install-sh: update from automake.
62802
62803 2004-01-09  Karl Berry  <karl@gnu.org>
62804
62805         * config/install-sh: update from automake.
62806
62807 2004-01-05  Karl Berry  <karl@gnu.org>
62808
62809         * config/config.{sub,guess}: update from config.
62810
62811 2003-12-31  Karl Berry  <karl@gnu.org>
62812
62813         * config/depcomp: update from automake.
62814
62815 2003-12-14  Karl Berry  <karl@gnu.org>
62816
62817         * lib/config.charset: update from gettext-runtime.
62818
62819 2003-12-03  Paul Eggert  <eggert@twinsun.com>
62820
62821         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
62822         Bug reported by Alfred M. Szmidt.
62823
62824 2003-12-03  Bruno Haible  <bruno@clisp.org>
62825
62826         * m4/gettext.m4: Upgrade from gettext-0.13.
62827         * m4/po.m4: Upgrade from gettext-0.13.
62828         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
62829         * m4/intmax.m4: New file, from gettext-0.13.
62830         * m4/printf-posix.m4: New file, from gettext-0.13.
62831
62832 2003-11-29  Karl Berry  <karl@gnu.org>
62833
62834         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
62835
62836 2003-11-25  Paul Eggert  <eggert@twinsun.com>
62837             Bruno Haible  <bruno@clisp.org>
62838
62839         * lib/printf-parse.h: Don't include sys/types.h.
62840         (ARG_NONE): New macro.
62841         (char_directive): Change type of *arg_index fields to size_t.
62842         * lib/printf-parse.c: Don't include sys/types.h.
62843         (SSIZE_MAX): Remove macro.
62844         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
62845         Remove unnecessary overflow check.
62846         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
62847         fields.
62848
62849 2003-11-25  Bruno Haible  <bruno@clisp.org>
62850
62851         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
62852
62853 2003-11-25  Bruno Haible  <bruno@clisp.org>
62854
62855         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
62856         gt_TYPE_SSIZE_T.
62857
62858 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62859
62860         * modules/alloca: Remove dependency on xalloc.
62861
62862 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62863
62864         * lib/alloca.c: Remove dependency on xalloc module.
62865         (xalloc_die): Remove.
62866         (memory_full) [!defined emacs]: New macro.
62867         [!defined emacs]: Don't include xalloc.h.
62868         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
62869         address arithmetic overflows.  Change datatypes a bit to avoid
62870         unnecessary casts.
62871
62872 2003-11-22  Jim Meyering  <jim@meyering.net>
62873
62874         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
62875         s/size/size_t/.
62876
62877 2003-11-21  Karl Berry  <karl@gnu.org>
62878
62879         * config/config.{sub,guess}: update from config.
62880
62881 2003-11-18  Karl Berry  <karl@gnu.org>
62882
62883         * config/config.{sub,guess}: update from config.
62884
62885         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
62886
62887 2003-11-17  Paul Eggert  <eggert@twinsun.com>
62888
62889         * README: Mention that S+T cannot overflow if S is the size of
62890         an existing object and T is sufficiently small.
62891
62892 2003-11-17  Jim Meyering  <jim@meyering.net>
62893
62894         On systems without utime and without a utimes function capable of
62895         dealing with a NULL struct utimbuf* argument, this utime replacement
62896         could -- in unusual circumstances -- leak a file descriptor.
62897         * lib/utime.c: Include <unistd.h> and <errno.h>.
62898         (utime_null): Be sure to close `fd' and to preserve errno.
62899         Reported by Geoff Collyer via Arnold Robbins.
62900
62901 2003-11-17  Bruno Haible  <bruno@clisp.org>
62902
62903         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
62904         (Depends-on): Add xsize.
62905
62906 2003-11-17  Bruno Haible  <bruno@clisp.org>
62907
62908         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
62909
62910 2003-11-17  Bruno Haible  <bruno@clisp.org>
62911
62912         * lib/vasnprintf.c (alloca): Remove fallback definition.
62913         (freea): Remove definition.
62914         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
62915         Reported by Paul Eggert.
62916
62917 2003-11-16  Paul Eggert  <eggert@twinsun.com>
62918             Bruno Haible  <bruno@clisp.org>
62919
62920         Protect against address arithmetic overflow.
62921         * lib/printf-args.h: Include stddef.h.
62922         (arguments): Change type of field 'count' to size_t.
62923         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
62924         'unsigned int' where appropriate.
62925         * lib/printf-parse.h: Include sys/types.h.
62926         (char_directive): Change type of *arg_index fields to ssize_t.
62927         (char_directives): Change type of fields 'count', max_*_length to
62928         size_t.
62929         * lib/printf-parse.c: Include sys/types.h and xsize.h.
62930         (SSIZE_MAX): Define fallback value.
62931         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
62932         instead of 'int' where appropriate. Check a_allocated, d_allocated
62933         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
62934         * lib/vasnprintf.c: Include xsize.h.
62935         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
62936         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
62937         overflow. Avoid wraparound when converting a width or precision from
62938         decimal to binary.
62939
62940 2003-11-16  Bruno Haible  <bruno@clisp.org>
62941
62942         Update from GNU gettext.
62943         * lib/printf-parse.c: Generalize to it can be compiled for wide
62944         strings.
62945         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
62946         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
62947         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
62948         SNPRINTF): New macros.
62949         Don't include <alloca.h> if the file is used inside libintl.
62950         (local_wcslen): New function, for Solaris 2.5.1.
62951         (VASNPRINTF): Use it instead of wcslen.
62952
62953 2003-11-16  Bruno Haible  <bruno@clisp.org>
62954
62955         * lib/xsize.h (xmax): New function.
62956         (xsum, xsum3, xsum4): Declare as "pure" functions.
62957
62958 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62959
62960         * modules/xalloc (Files): Undo latest change, since xalloc.h
62961         no longer needs SIZE_MAX or PTRDIFF_MAX.
62962
62963 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62964
62965         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
62966         gl_PTRDIFF_MAX.
62967
62968 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62969
62970         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
62971         "return", to pacify some unknown compiler.  Problem reported
62972         by Joerg Schilling.
62973
62974 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62975
62976         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
62977         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
62978         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
62979         heuristic is just as accurate as far as we know, and it removes a
62980         dependency on size_max.m4 and ptrdiff_max.m4.
62981
62982 2003-11-11  Bruno Haible  <bruno@clisp.org>
62983
62984         * modules/xsize (Files): Add m4/size_max.m4.
62985         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
62986
62987 2003-11-11  Bruno Haible  <bruno@clisp.org>
62988
62989         * m4/size_max.m4: New file.
62990         * m4/ptrdiff_max.m4: New file.
62991         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
62992         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
62993         (gl_XALLOC): Invoke it.
62994
62995 2003-11-11  Bruno Haible  <bruno@clisp.org>
62996
62997         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
62998         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
62999         defined.
63000
63001 2003-11-10  Paul Eggert  <eggert@twinsun.com>
63002
63003         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
63004         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
63005         rejected some allocations of exactly SIZE_MAX - 2 bytes.
63006         From Bruno Haible.
63007         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
63008         not (size_t) -1, since it's defined here.
63009
63010 2003-11-09  Karl Berry  <karl@gnu.org>
63011
63012         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
63013
63014 2003-11-06  Paul Eggert  <eggert@twinsun.com>
63015
63016         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
63017         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
63018         Reject sizes of exactly SIZE_MAX bytes.
63019         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
63020         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
63021
63022 2003-11-05  Bruno Haible  <bruno@clisp.org>
63023
63024         * lib/xsize.h: Include limits.h, to avoid a possible collision with
63025         SIZE_MAX defined in <limits.h> on Solaris.
63026
63027 2003-11-04  Jim Meyering  <jim@meyering.net>
63028
63029         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
63030         variable names, rather than @VAR@.
63031         * modules/poll: Likewise.
63032
63033 2003-11-04  Bruno Haible  <bruno@clisp.org>
63034
63035         * modules/xsize: New file.
63036         * modules/linebreak: Depend on xsize.
63037         * MODULES.html.sh (func_all_modules): Add xsize.
63038
63039 2003-11-04  Bruno Haible  <bruno@clisp.org>
63040
63041         * m4/xsize.m4: New file.
63042
63043 2003-11-04  Bruno Haible  <bruno@clisp.org>
63044
63045         * lib/xsize.h: New file.
63046         * lib/linebreak.c: Include xsize.h.
63047         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
63048         argument for overflow.
63049         Suggested by Paul Eggert.
63050
63051 2003-11-03  Karl Berry  <karl@gnu.org>
63052
63053         * config/config.{guess,sub}: update from config.
63054
63055 2003-11-03  Jim Meyering  <jim@meyering.net>
63056
63057         * modules/userspec (lib_SOURCES): Add userspec.h.
63058         (Include): Add "userspec.h".
63059         Improve description.
63060
63061 2003-11-03  Jim Meyering  <jim@meyering.net>
63062
63063         * lib/userspec.c: Include "userspec.h".
63064         * lib/userspec.h: New file.
63065
63066 2003-11-03  Bruno Haible  <bruno@clisp.org>
63067
63068         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
63069
63070 2003-11-03  Bruno Haible  <bruno@clisp.org>
63071
63072         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
63073         available, to avoid (extremely rare) race condition.
63074         Suggested by Paul Eggert.
63075
63076 2003-11-02  Karl Berry  <karl@gnu.org>
63077
63078         * config/srclist.txt (vasprintf.c): sync broken, sigh.
63079
63080 2003-10-31  Paul Eggert  <eggert@twinsun.com>
63081
63082         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
63083         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
63084         (read_filesystem_list): Set and use me_type_malloced.
63085         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
63086         whatever the type happens to be), for brevity and consistency.
63087         Check for size calculation overflow on Alphas running OSF/1.
63088
63089 2003-10-31  Jim Meyering  <jim@meyering.net>
63090
63091         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
63092
63093         * lib/linebuffer.c: Include <string.h> for declaration of memset.
63094
63095 2003-10-30  Paul Eggert  <eggert@twinsun.com>
63096             Bruno Haible  <bruno@clisp.org>
63097
63098         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
63099         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
63100
63101 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63102
63103         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
63104         netbsd*-gnu*.  Suggested by Robert Millan.
63105
63106 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63107
63108         * modules/group-member: Depend on stdbool.
63109
63110 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63111
63112         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
63113
63114 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63115
63116         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
63117         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
63118         after the 'gnu' in these cases.  This fixes some bugs in the
63119         previous change, and is based on suggestions by Robert Millan.
63120
63121 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63122
63123         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
63124         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
63125         no longer needed.
63126         * lib/quotearg.c (quotearg_n_options): Use it.
63127         * lib/group-member.c: Include <stdbool.h>.
63128         (free_group_info): Arg is now const *; don't free arg.
63129         (get_group_info): Now returns bool and accepts struct group_info *,
63130         rather than returning a malloc'ed struct group_info *.
63131         All uses changed.  Check for overflow in internal size calculation.
63132
63133         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
63134         rather than xmalloc/xrealloc.
63135         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
63136         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
63137         conformance bug: the old code used a pointer after freeing the
63138         storage that it addressed.
63139         * lib/hash.c (hash_initialize): Simplify the code by using
63140         xalloc_oversized rather than doing it by hand.
63141         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
63142         the buffer preserved.  Use free and xmalloc instead.
63143         * lib/quotearg.c (quotearg_n_options): Likewise.
63144         Use a simpler test for size overflow.  Don't use xalloc_oversized
63145         because unsigned int might be wider than size_t (!); this suggests
63146         that we should switch from unsigned int to size_t for slot numbers.
63147
63148 2003-10-28  Paul Eggert  <eggert@twinsun.com>
63149
63150         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
63151         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
63152         NetBSD kernels.  Requested by Richard Stallman.
63153
63154 2003-10-27  Paul Eggert  <eggert@twinsun.com>
63155
63156         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
63157         to allocate the returned structure.  Do not allocate a subarray,
63158         as x2nrealloc will do that.
63159         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
63160         instead of xnrealloc.
63161         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
63162
63163 2003-10-27  Bruno Haible  <bruno@clisp.org>
63164
63165         * lib/stdbool_.h: Better support for BeOS.
63166
63167 2003-10-26  Paul Eggert  <eggert@twinsun.com>
63168
63169         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
63170         now uses inline.
63171
63172 2003-10-26  Paul Eggert  <eggert@twinsun.com>
63173
63174         * lib/xalloc.h (xalloc_oversized): New static inline function, for
63175         callers that want to do their own size-overflow checking.  Include
63176         <stdbool.h>, since xalloc_oversized returns bool.
63177         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
63178         to use xalloc_oversized.
63179
63180         Add two functions x2realloc, x2nrealloc, for programs that grow
63181         arrays dynamically by doubling their sizes.
63182         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
63183         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
63184         New functions.
63185
63186         Port to C99 semantics for 'inline' of external functions.
63187         Bug reported by Bruno Haible.
63188         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
63189         with the old contents of xnmalloc.
63190         (xnmalloc, xmalloc): Use it.
63191         (xnrealloc_inline): New static inline function,
63192         with the old contents of xnrealloc.
63193         (xnrealloc, xrealloc): Use it.
63194
63195         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
63196         that.
63197
63198 2003-10-26  Karl Berry  <karl@gnu.org>
63199
63200         * config/srclist.txt (COPYING.DOC): no longer available from
63201         /gd/gnuorg; don't know where the ultimate source is.
63202
63203 2003-10-25  Paul Eggert  <eggert@twinsun.com>
63204
63205         Fix several address-calculation bugs in the hash modules,
63206         plus some minor code cleanup.
63207
63208         * lib/hash.h: Include <stdbool.h>, for bool.
63209         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
63210         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
63211         hash_get_n_entries, hash_get_max_bucket_length,
63212         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
63213         hash_rehash): Use size_t rather than unsigned.
63214         * lib/hash.c (struct hash_table, hash_get_n_buckets,
63215         hash_get_n_buckets_used, hash_get_n_entries,
63216         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
63217         hash_get_entries, hash_do_for_each, hash_string, is_prime,
63218         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
63219         Likewise.
63220         (SIZE_MAX): Define if not defined.
63221         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
63222         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
63223         hash_print):
63224         Use const * when possible.
63225         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
63226         (check_tuning): Fix bug: if tuning parameters were very close to
63227         0 or 1, rounding errors could have caused subscript violations.
63228         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
63229         (hash_initialize): Add 'fail:' label
63230         to free table and return NULL, and use it to simplify code.
63231         Use calloc rather than clearing the storage ourself.
63232         (hash_initialize, hash_rehash): Check for arithmetic overflow in
63233         buffer size calculations.
63234         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
63235         Include <stddef.h>, for size_t.
63236         * lib/hash-pjw.c (hash_pjw): Likewise.
63237         Switch to method described by Bruno Haible.
63238         Include <limits.h>, for CHAR_BIT.
63239         (SIZE_BITS): New macro.
63240
63241 2003-10-23  Paul Eggert  <eggert@twinsun.com>
63242
63243         * m4/getline.m4 (AM_FUNC_GETLINE):
63244         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
63245         hosts.  Problem reported by Derek Robert Price in
63246         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
63247         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
63248         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
63249
63250 2003-10-21  Paul Eggert  <eggert@twinsun.com>
63251
63252         * lib/getndelim2.c (getndelim2): When size calculation overflows,
63253         ceiling the allocation at NMAX bytes rather than silently
63254         discarding input bytes before NMAX is reached.  This makes
63255         a difference only if NMAX exceeds SIZE_MAX / 2.
63256
63257         * lib/obstack.c: Merge from glibc.
63258         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
63259         Add libc_hidden_def (_obstack_newchunk).
63260         (_obstack_free) [! defined _LIBC]: Remove.
63261         [defined _LIBC]: Make a strong alias from obstack_free, rather than
63262         a clone of the function body.
63263         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
63264         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
63265
63266         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
63267         glibc.
63268         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
63269         arg to memcpy.
63270
63271         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
63272         (obstack_ptr_grow_fast, obstack_int_grow_fast):
63273         Don't use lvalue casts, as GCC plans to remove support for them
63274         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
63275         was also present in the non-GCC version, indicating that this
63276         code had always been buggy and had never been widely used.
63277         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
63278         Use the fast variant of each macro, rather than copying the
63279         definiens of the fast variant; that way, we'll be more likely to
63280         catch future bugs in the fast variants.
63281
63282 2003-10-20  Bruno Haible  <bruno@clisp.org>
63283
63284         * modules/wait-process: New file.
63285         * MODULES.html.sh (func_all_modules): Add wait-process.
63286
63287 2003-10-20  Bruno Haible  <bruno@clisp.org>
63288
63289         * m4/wait-process.m4: New file.
63290
63291 2003-10-20  Bruno Haible  <bruno@clisp.org>
63292
63293         * lib/wait-process.h: New file, from GNU gettext.
63294         * lib/wait-process.c: New file, from GNU gettext.
63295
63296 2003-10-19  Jim Meyering  <jim@meyering.net>
63297
63298         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
63299         HPUX 10.20.
63300
63301 2003-10-18  Karl Berry  <karl@gnu.org>
63302
63303         * config/config.guess: update from config.
63304
63305 2003-10-16  Paul Eggert  <eggert@twinsun.com>
63306
63307         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
63308         (getgroups): First arg is int, not size_t.
63309         Don't let 'free' mangle errno.
63310
63311 2003-10-16  Paul Eggert  <eggert@twinsun.com>
63312
63313         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
63314
63315 2003-10-16  Karl Berry  <karl@gnu.org>
63316
63317         * config/config.{guess,sub}: update from config.
63318
63319 2003-10-16  Jim Meyering  <jim@meyering.net>
63320
63321         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
63322         memcpy.
63323
63324 2003-10-15  Paul Eggert  <eggert@twinsun.com>
63325
63326         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
63327         (SIZE_MAX): Remove.
63328         (new_exclude, add_exclude_file): Initial size no longer needs to
63329         be a power of 2.
63330         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
63331         our own address arithmetic overflow checking.
63332
63333         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
63334         (fnmatch): Do not alloca more than 2000 wide characters;
63335         instead, use malloc for large buffers.
63336         Check for address arithmetic overflow, and return -1
63337         with errno set to ENOMEM in that case.
63338         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
63339         (NEW_PATTERN): Do not alloca more than 8000 bytes;
63340         instead, return -1.  Check for address arithmetic overflow.
63341
63342 2003-10-14  Paul Eggert  <eggert@twinsun.com>
63343
63344         Handle invalid suffixes and overflow independently, so that
63345         callers can treat them independently as needed.  Fix some bugs in
63346         suffix handling, e.g., "100k@" was not diagnosed as an invalid
63347         suffix for a human-readable blocksize.  The major caller-visible
63348         change is the addition of a new
63349         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
63350         that both overflow and suffix chars were found.
63351
63352         * lib/human.c (humblock): Don't check separately for invalid suffix
63353         char; that is xstrtoumax's job (now that its bug is fixed).
63354         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
63355         INTMAX_MAX]: New macros.
63356         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
63357         TYPE_MAXIMUM): New macros.
63358         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
63359         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
63360         if overflow occurs, as it's what __strtol does and it's more useful
63361         in practice.
63362         (__xstrtol): If __strtol reports some error other than ERANGE,
63363         reflect it to the caller as LONGINT_INVALID.  If it reports
63364         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
63365         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
63366         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
63367         value.
63368         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
63369         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
63370         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
63371         [defined UINTMAX_MAX]: New macros.
63372
63373 2003-10-14  Bruno Haible  <bruno@clisp.org>
63374
63375         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
63376
63377 2003-10-14  Bruno Haible  <bruno@clisp.org>
63378
63379         * m4/sig_atomic_t: New file, from GNU gettext.
63380         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
63381
63382 2003-10-14  Bruno Haible  <bruno@clisp.org>
63383
63384         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
63385         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
63386         Also use volatile where needed.
63387
63388 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63389
63390         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
63391         Change maintainer from Bruno Haible to 'all'.
63392
63393 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63394
63395         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
63396
63397 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63398
63399         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
63400         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
63401         and define in terms of the other primitives.
63402         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
63403         (SIZE_MAX): Define if not already defined.
63404         (array_size_overflow): New function.
63405         (xalloc_die): Abort instead of exiting if 'error' returns.
63406         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
63407         (xmalloc, xrealloc): Use them.
63408         (xcalloc): Check for address arithmetic overflow.
63409         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
63410         a bit faster than strcpy.
63411
63412 2003-10-10  Simon Josefsson  <jas@extundo.com>
63413
63414         * modules/argp (Depends-on): Add restrict and strcase.
63415
63416 2003-10-10  Simon Josefsson  <jas@extundo.com>
63417
63418         * m4/argp.m4: Add AC_C_INLINE.
63419
63420 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63421
63422         Merge getpass from libc, plus a few fixes.
63423
63424         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
63425         Include <stdbool.h>.
63426         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
63427         __fsetlocking to empty.
63428         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
63429         do include <bits/libc-lock.h>.
63430         Do not include <fcntl.h>; not needed.
63431         [_LIBC]: Include <wchar.h>.
63432         (NOTCANCEL_MODE): New macro.
63433         (flockfile, funlockfile) [_LIBC]: New macros.
63434         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
63435         [!_LIBC]: New macros.
63436         (call_fclose): New function.
63437         (getpass): Use it.  Save tty stream separately; this simplifies the
63438         code and makes it more reliable if stdin happens to equal stdout.
63439         Invoke __fsetlocking on tty.
63440         Handle thread cancellation if needed.
63441         Namespace cleanup (use __tcgetattr, __getline).
63442         Use bool for Booleans.
63443         [USE_IN_LIBIO]: Handle wide streams.
63444         [!_LIBC]: Unconditionally do the fseek, since we don't know what
63445         stream might go where.
63446
63447         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
63448         doesn't have to include <stdio.h> before us.
63449         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
63450         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
63451         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
63452         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
63453         if not declared, so that we can use getpass.c code from libc without
63454         rewriting it.
63455         (flockfile, ftrylockfile, funlockfile): New macros.
63456
63457 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63458
63459         * modules/getpass: Depend on stdbool.
63460
63461 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63462
63463         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
63464
63465 2003-10-07  Karl Berry  <karl@gnu.org>
63466
63467         * config/config.{guess,sub}: update from config.
63468
63469 2003-10-06  Jim Meyering  <jim@meyering.net>
63470             Bruno Haible  <bruno@clisp.org>
63471
63472         This lets translators provide better translations for the
63473         "Written by ..." part of --version output.
63474         * lib/version-etc.h: Include stdarg.h.
63475         (version_etc_copyright): Declare as readonly.
63476         (version_etc): Make this function variadic with a NULL-terminated list
63477         of author name strings.
63478         (version_etc_va): New declaration.
63479         * lib/version-etc.c: Include stdarg.h, stdlib.h.
63480         (version_etc_copyright): Declare as readonly.
63481         (version_etc_va): New function. Provide a different translatable string
63482         for each possible number of authors < 10. Abbreviate when there are 10
63483         authors or more.
63484         (version_etc): Make this function variadic. Call version_etc_va.
63485         Suggestion from Gary V. Vaughan.
63486
63487         * lib/long-options.h (parse_long_options): Change prototype: the
63488         authors string is moved to the end and becomes variadic.
63489         * lib/long-options.c: Include stdarg.h.
63490         (parse_long_options): Make this function variadic, too.
63491         Call version_etc_va, not version_etc.
63492
63493 2003-10-06  Bruno Haible  <bruno@clisp.org>
63494
63495         * modules/version-etc-2: Remove file.
63496         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
63497
63498 2003-10-06  Bruno Haible  <bruno@clisp.org>
63499
63500         * modules/fatal-signal: New file.
63501         * MODULES.html.sh (func_all_modules): Add fatal-signal.
63502
63503 2003-10-06  Bruno Haible  <bruno@clisp.org>
63504
63505         * m4/fatal-signal.m4: New file.
63506         * m4/signalblocking.m4: New file, from GNU gettext.
63507
63508 2003-10-06  Bruno Haible  <bruno@clisp.org>
63509
63510         * lib/version-etc-2.h: Remove file.
63511         * lib/version-etc-2.c: Remove file.
63512
63513 2003-10-06  Bruno Haible  <bruno@clisp.org>
63514
63515         * lib/fatal-signal.h: New file, from GNU gettext.
63516         * lib/fatal-signal.c: New file, from GNU gettext.
63517
63518 2003-10-05  Paul Eggert  <eggert@twinsun.com>
63519
63520         * README: Rework advice for preventing empty .o files.
63521         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
63522         not <sys/types.h>.
63523
63524 2003-10-04  Karl Berry  <karl@gnu.org>
63525
63526         * lib/argp*: update from libc.
63527
63528 2003-10-04  Karl Berry  <karl@gnu.org>
63529
63530         * config/config.{guess,sub}: update from config.
63531
63532 2003-10-02  Bruno Haible  <bruno@clisp.org>
63533
63534         * modules/lchown (Include): Add lchown.h.
63535         * modules/time_r (Include): Use "..." syntax.
63536         * modules/xgetdomainname (Include): Add xgetdomainname.h.
63537
63538 2003-10-01  Simon Josefsson  <jas@extundo.com>
63539
63540         * MODULES.html.sh (func_all_modules): Move gethostname from section
63541         'based on' to section 'lacking' POSIX:2001.
63542
63543 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
63544
63545         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
63546         to output mode on the same stream.
63547
63548 2003-09-29  Paul Eggert  <eggert@twinsun.com>
63549
63550         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
63551         Fix arg typo in previous patch.
63552
63553 2003-09-28  Jim Meyering  <jim@meyering.net>
63554
63555         * lib/error.c: Correct cpp indentation.
63556
63557 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63558
63559         * modules/free: New file.
63560
63561 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63562
63563         * m4/free.m4: New file.
63564
63565 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63566
63567         * lib/minmax.h (MIN, MAX)
63568         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
63569         Omit the special code that used __typeof__, since we worry that
63570         it could be more trouble than it's worth.  See:
63571         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
63572         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
63573
63574         * lib/free.c: New file.
63575
63576 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
63577
63578         Trivial fixes to Makefile.am parts of module listings.
63579         * modules/strstr: Append strstr.h to lib_SOURCES.
63580         * modules/strcase: Likewise, for strcase.h.
63581
63582 2003-09-27  Karl Berry  <karl@gnu.org>
63583
63584         * config/mkinstalldirs: update from automake.
63585
63586 2003-09-26  Paul Eggert  <eggert@twinsun.com>
63587
63588         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
63589         (error_tail): Do not loop, reallocating temporary buffer, since
63590         the output cannot contain more wide characters than the input
63591         contains bytes, the size must be big enough already.  This avoids
63592         one potential size overflow calculation.  Check for size overflow
63593         when calculating temporary buffer size.  Free temporary buffer
63594         when done, if it was allocated with malloc; this plugs a memory
63595         leak.  Remove casts from void * to pointers, that are no longer
63596         needed now that we're assuming C89 or better.
63597
63598         Merge error changes from glibc.
63599
63600         * lib/error.c, error.h: Update copyright notice header to match glibc.
63601         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
63602         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
63603         Disable cancellation while printing error.
63604         * lib/error.h: Prepend __ to parameter names.
63605
63606 2003-09-26  Jim Meyering  <jim@meyering.net>
63607
63608         * lib/error.c (error_tail): Move some declarations
63609         into inner scope where the local variables are used.
63610
63611 2003-09-26  Bruno Haible  <bruno@clisp.org>
63612
63613         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
63614         stpncpy().
63615         Don't define stpncpy through config.h; it's now done through stpncpy.h.
63616
63617 2003-09-26  Bruno Haible  <bruno@clisp.org>
63618
63619         * lib/stpncpy.h (gnu_stpncpy): New declaration.
63620         (stpncpy): Define as alias for gnu_stpncpy.
63621         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
63622
63623 2003-09-25  Simon Josefsson  <jas@extundo.com>
63624
63625         * lib/xgetdomainname.h: New file.
63626         * lib/xgetdomainname.c: New file.
63627
63628 2003-09-25  Simon Josefsson  <jas@extundo.com>
63629             Bruno Haible  <bruno@clisp.org>
63630
63631         * modules/getdomainname: New file.
63632         * modules/xgetdomainname: New file.
63633         * MODULES.html.sh (func_all_modules): Add getdomainname,
63634         xgetdomainname.
63635
63636 2003-09-25  Simon Josefsson  <jas@extundo.com>
63637             Bruno Haible  <bruno@clisp.org>
63638
63639         * m4/getdomainname.m4: New file.
63640
63641 2003-09-25  Simon Josefsson  <jas@extundo.com>
63642             Bruno Haible  <bruno@clisp.org>
63643
63644         * lib/getdomainname.h: New file.
63645         * lib/getdomainname.c: New file.
63646
63647 2003-09-25  Karl Berry  <karl@gnu.org>
63648
63649         * lib/argp-fmtstream.c, argp-help.c: update from libc.
63650
63651 2003-09-25  Karl Berry  <karl@gnu.org>
63652
63653         * config/install-sh: update from automake.
63654
63655 2003-09-25  Bruno Haible  <bruno@clisp.org>
63656
63657         * modules/version-etc-2: New file, from modules/version-etc with
63658         modifications.
63659         * MODULES.html.sh (func_all_modules): Add version-etc-2.
63660
63661 2003-09-25  Bruno Haible  <bruno@clisp.org>
63662
63663         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
63664         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
63665
63666 2003-09-24  Simon Josefsson  <jas@extundo.com>
63667
63668         * modules/xgethostname: Add xgethostname.h.
63669
63670 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63671
63672         * lib/linebuffer.c (freebuffer): Don't free the argument, just
63673         the buffer associated with the argument.  Bug reported by
63674         Simon Josefsson.
63675
63676 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63677
63678         * README: Document assumptions that 'int' is at least 32 bits
63679         wide, that integer arithmetic is 2's complement without overflow,
63680         that there are no holes in integer values, that adding sizes of
63681         two nonoverlapping objects can't overflow, and that all-bits-zero
63682         yields scalar zero.  Fix spelling and capitalization typos.
63683
63684 2003-09-19  Karl Berry  <karl@gnu.org>
63685
63686         * lib/argp.h: update from libc.
63687
63688 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63689
63690         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
63691         to avoid spurious warnings like "AC_RUN_IFELSE was called before
63692         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
63693
63694 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63695
63696         * gnulib-tool: Use "test -h", not "test -L", for portability
63697         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
63698         (tags_regexp): Remove, since \| doesn't conform to POSIX.
63699         (sed_extract_prog): Issue s commands one-by-one, rather than
63700         using \| in one s command.
63701
63702 2003-09-16  Paul Eggert  <eggert@twinsun.com>
63703
63704         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
63705         input error, instead of returning NULL the next time we are called
63706         (and therefore losing track of errno).
63707
63708 2003-09-16  Bruno Haible  <bruno@clisp.org>
63709
63710         * gnulib-tool (func_create_testdir): Warn about duplicated
63711         dependencies.
63712
63713 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63714
63715         * modules/argmatch, modules/fatal, modules/obstack,
63716         modules/xalloc, modules/xgethostname: Sort dependencies by
63717         importance, not alphabetically.
63718
63719 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63720
63721         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
63722         fails, so that the caller gets the proper errno.
63723
63724         * lib/readutmp.c (read_utmp): Likewise.
63725         Check for fstat error.  Close stream and free storage
63726         when failing.
63727
63728 2003-09-14  Karl Berry  <karl@gnu.org>
63729
63730         * config/srclist.txt (strdup.c): disable for c89 changes.
63731
63732 2003-09-14  Jim Meyering  <jim@meyering.net>
63733
63734         * lib/getloadavg.c: Correct cpp indentation.
63735         * lib/strdup.c: Likewise.
63736         * lib/vasnprintf.c: Likewise.
63737
63738 2003-09-14  Bruno Haible  <bruno@clisp.org>
63739
63740         * modules/fwriteerror: New file.
63741         * MODULES.html.sh (func_all_modules): Add fwriteerror.
63742
63743 2003-09-14  Bruno Haible  <bruno@clisp.org>
63744
63745         * lib/fwriteerror.h: New file.
63746         * lib/fwriteerror.c: New file.
63747
63748 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63749
63750         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
63751         modules/xgethostname, modules/xalloc: Depend on exit.
63752
63753 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63754
63755         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
63756
63757         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
63758         and AC_MINIX, too, so that their extensions are available.
63759
63760         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
63761         This macro has been superseded by gl_BACKUPFILE.
63762
63763         More patches to assume C89 or better.
63764
63765         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
63766
63767         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
63768         unconditionally.
63769         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
63770         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
63771         Include <string.h>, <stdlib.h> unconditionally.
63772         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
63773         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
63774         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
63775         headers or for string.h.
63776         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
63777         or strtoul.
63778
63779         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
63780         headers.
63781         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
63782         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63783         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
63784         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
63785         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63786         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
63787         memcpy, memset.
63788         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
63789         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
63790         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
63791         strtol.
63792         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
63793         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
63794         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
63795         strtoul.
63796
63797 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63798
63799         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
63800         * lib/obstack.c [!defined _LIBC]: Likewise.
63801         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
63802         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
63803         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
63804
63805         More changes to assume C89 or better.
63806
63807         * lib/error.c (error_tail): Assume vprintf.
63808
63809         * lib/argmatch.c (getenv): Remove decl.
63810         * lib/progreloc.c (get_full_program_name): Define via prototype.
63811         * lib/setenv.c (clearenv): Likewise.
63812         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
63813         needed.
63814         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
63815         (malloc, memcpy): Remove decls.
63816         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
63817         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
63818         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63819         (memcpy): Remove macro.
63820         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
63821         (__P): Remove.  All uses removed.
63822         (PTR): Remove.  All uses changed to void *.
63823         (CHAR_BIT, NULL): Remove.
63824         (spaces, zeros, memset_space, memset_zero)
63825         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
63826         Remove.
63827         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
63828         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
63829         Define with prototype.
63830         Remove now-unnecessary prototype decl.
63831         (extra_args_spec): Assume ANSI C.  All uses changed.
63832         (extra_args_spec_iso): Remove.
63833         (my_strftime, emacs_strftimeu): Define via prototype.
63834         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
63835         unconditionally.
63836         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
63837         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
63838         (strtoul, strtol): Remove decls.
63839         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
63840         LONG_MAX): Remove.
63841         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63842         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
63843         (LOCALE_PARAM_PROTO): New macro.
63844         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
63845         (INTERNAL (strtol), strtol): Define with a prototype.
63846         (PARAMS): Remove.  All uses removed.
63847         * lib/tempname.c: Include <string.h> unconditionally.
63848         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
63849         * lib/xgethostname.c (main): Define with a prototype.
63850         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
63851         Include <stdlib.h> unconditionally.
63852         (calloc, malloc, realloc, free): Remove decls.
63853         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
63854         Include <stdlib.h> unconditionally.  Sort include file names.
63855         (strtod): Remove.
63856         (xstrtod): Define with a prototype.
63857         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
63858         (strtol, strtoul): Remove decls.
63859
63860 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63861
63862         More patches to assume C89 or better.
63863         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
63864         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
63865         string.h, memchr, STDC_HEADERS.
63866
63867 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63868
63869         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
63870         Include <stdlib.h>, <string.h> unconditionally.
63871         Remove now-unnecessary cast to char *.
63872         * lib/strnlen.c: Include <string.h> unconditionally.
63873         * lib/yesno.c (yesno): Define with a prototype.
63874
63875 2003-09-11  Bruno Haible  <bruno@clisp.org>
63876
63877         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
63878
63879 2003-09-10  Jim Meyering  <jim@meyering.net>
63880
63881         * lib/error.c: Correct indentation of cpp directives.
63882
63883 2003-09-10  Bruno Haible  <bruno@clisp.org>
63884
63885         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
63886         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
63887         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
63888         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
63889         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
63890         <stdlib.h> and <string.h> checks.
63891         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
63892         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
63893
63894 2003-09-10  Bruno Haible  <bruno@clisp.org>
63895
63896         * lib/strcspn.c: Include <string.h> unconditionally.
63897         * lib/strpbrk.c: Include <string.h> unconditionally.
63898         * lib/strstr.c: Include <string.h> unconditionally.
63899         * lib/unicodeio.c: Include <string.h> unconditionally.
63900         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
63901         * lib/unsetenv.c: Likewise.
63902         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
63903         * lib/yesno.c: Include <stdlib.h> unconditionally.
63904         (rpmatch): Add prototype.
63905
63906 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63907
63908         More patches to assume C89 or better.
63909         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
63910         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
63911         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
63912         or for string.h.
63913         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
63914         stdlib.h.
63915         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
63916         C headers.
63917         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
63918         string.h.
63919         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
63920         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
63921         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
63922         or for string.h.
63923         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
63924         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
63925         C headers.
63926         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
63927         memcpy.
63928         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
63929         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
63930         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
63931         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
63932         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
63933         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
63934         string.h, free.
63935         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
63936         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
63937         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
63938         C headers, or for string.h.
63939         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
63940         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
63941         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
63942         headers, memory.h, stdlib.h, string.h, strings.h.
63943         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
63944         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
63945         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
63946         strchr.
63947         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
63948         headers, memory.h, string.h.
63949         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
63950         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
63951         free.
63952         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
63953         headers.
63954         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
63955         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
63956         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
63957         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
63958         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
63959
63960 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63961
63962         More K&R removal.
63963
63964         * lib/acosl.c (main): Use a prototype.
63965         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
63966         tanl.c: Likewise.
63967
63968         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
63969
63970         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
63971         (getopt, etopt_long, getopt_long_only, _getopt_internal)
63972         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
63973         with a prototype.
63974         * lib/getopt.c (const): Remove macro.
63975         Include <string.h> unconditionally.
63976         (my_index): Remove; all uses changed to strchr.
63977         (strlen): Remove decl.
63978         (exchange): Remove forward decl; no longer needed.
63979         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
63980         Define with prototype.
63981         * lib/getopt1.c (const): Remove macro.
63982         (getopt_long, getopt_long_only, main): Define with prototype.
63983
63984         * lib/getugroups.c: Include <string.h> unconditionally.
63985
63986         * lib/getusershell.c: Include <stdlib.h> unconditionally.
63987         (getusershell, setusershell, endusershell, readname, main):
63988         Define with prototypes.
63989
63990         * lib/group-member.c: Include group-member.h first.
63991         Include <stdlib.h> unconditionally.
63992
63993         * lib/hard-locale.c: Include hard-locale.h first.
63994         Include <stdlib.h>, <string.h> unconditionally.
63995
63996         * lib/hash.c (free, malloc): Remove decls.
63997         Include <stdlib.h> unconditionally.
63998
63999         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
64000         (getenv): Do not declare.
64001
64002         * lib/idcache.c: Include <string.h> unconditionally.
64003
64004         * lib/long-options.c: Include long-options.h first, to test interface.
64005         Include <stdlib.h> unconditionally.
64006
64007         * lib/makepath.c: Include makepath.h first, to test interface.
64008         Include <stdlib.h> and <string.h> unconditionally.
64009
64010         * lib/linebuffer.c: Include <stdlib.h>.
64011         (free): Remove decl.
64012
64013         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
64014         stddef.h. rpl_malloc returns void *, not char *.
64015         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
64016         prototype.
64017
64018         * lib/md5.h: Include <limits.h> unconditionally.
64019         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
64020         (__P): Remove; all uses removed.
64021         * lib/md5.c: Include "md5.h" first.
64022         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
64023         md5_buffer, md5_process_bytes, md5_process_block):
64024         Define with prototypes.
64025         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
64026         * lib/sha.c: Include "sha.h" first.
64027         Include <stdlib.h>, <string.h> unconditionally.
64028
64029         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
64030         * lib/memcmp.c (__ptr_t): Likewise.
64031         * lib/memrchr.c (__ptr_t): Likewise.
64032         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
64033         Include <string.h> unconditionally.
64034         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
64035         * lib/memchr.c: Include <stdlib.h> unconditionally.
64036         * lib/memchr.c (LONG_MAX): Remove.
64037         * lib/memrchr.c (LONG_MAX): Likewise.
64038         * lib/memchr.c (__memchr): Define via a prototype.
64039         * lib/memrchr.c (__memrchr): Likewise.
64040         * lib/memcmp.c (__P): Remove, and remove all uses.
64041         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
64042         Remove forward decls; no longer needed.
64043         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
64044         Use types required by C89 in prototype.
64045
64046         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
64047         * lib/savedir.c: Likewise.
64048         * lib/mkdir.c (free): Remove decl.
64049         * lib/rmdir.c (rmdir): Define with a prototype.
64050         * lib/savedir.c: Include savedir.h first, to test interface.
64051
64052         * lib/mktime.c (STDC_HEADERS): Remove.
64053         Include <stdlib.h>, <string.h> unconditionally.
64054
64055         * lib/modechange.c: Include <stdlib.h> unconditionally.
64056         (malloc): Remove decl.
64057
64058         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
64059         (free): Remove decl.
64060
64061         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
64062         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
64063         (This type really should be intptr_t, but that's a C99ism.)
64064         (_obstack_memcpy): Remove: all uses changed to memcpy.
64065         Include <string.h> unconditionally.
64066         (struct obstack): Assume __STDC__ for types of members
64067         chunkfun, freefun, extra_arg.
64068         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
64069         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
64070         obstack_begin, obstack_specify_allocation,
64071         obstack_specify_allocation_with_arg, obstack_chunkfun,
64072         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
64073         Remove unprototyped decls and the macros that use them.
64074         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
64075         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
64076         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
64077         (defined __STDC__ && __STDC__)]:
64078         Remove nonprototyped code.
64079         Include <stdlib.h> unconditionally.
64080         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
64081         _obstack_allocated_p, _obstack_free, obstack_free,
64082         _obstack_memory_used, print_and_abort):
64083         Define using prototypes.
64084         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
64085         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
64086         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
64087         obstack_next_free, obstack_object_size, obstack_room) [0]:
64088         Remove unused, unprototyped code.
64089
64090         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
64091
64092         * lib/physmem.c (physmem_total, physmem_available, main): Define
64093         with prototypes.
64094
64095         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
64096         (main): Define with a prototype.
64097
64098         * lib/posixver.c (getenv): Remove decl.
64099
64100         * lib/putenv.c (malloc): Returns void *, not char *.
64101         Include <string.h> unconditionally.
64102         (strchr, memcpy, NULL): Do not define.
64103
64104         * lib/readtokens.c: Include readtokens.h first, to test interface.
64105         Include <stdlib.h>, <string.h> unconditionally.
64106         (init_tokenbuffer): Define with a prototype.
64107
64108         * lib/regex.c (PARAMS): Remove.  All uses removed.
64109         All uses of _RE_ARGS removed, too.
64110         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
64111         unconditionally.
64112         (bzero): Assume memset exists.
64113         (memcmp, memcpy, NULL): Remove.
64114         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
64115         char, or assignments to local vars of type signed char.
64116         (init_syntax_once, PREFIX(extract_number_and_incr),
64117         PREFIX(print_partial_compiled_pattern),
64118         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
64119         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
64120         PREFIX(regex_grow_registers), PREFIX(regex_compile),
64121         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
64122         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
64123         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
64124         wcs_compile_range, byte_compile_range, truncate_wchar,
64125         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
64126         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
64127         count_mbs_length, wcs_re_match_2_internal,
64128         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
64129         PREFIX(alt_match_null_string_p),
64130         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
64131         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
64132         regfree, PREFIX(extract_number)): Define with prototype.  Remove
64133         now-unnecessary declaration, if any.
64134         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
64135         regcomp, regexec):
64136         Remove now-unnecessary casts among pointer types.
64137         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
64138
64139         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
64140         (free): Remove decl.
64141
64142         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
64143
64144         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
64145         (free): Remove decl.
64146
64147         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
64148         * lib/xgetcwd.c: Likewise.
64149
64150         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
64151         (free): Remove decl.
64152
64153         * lib/strchrnul.c (strchrnul): Define with a prototype.
64154         Fix bug: c_in was not converted to char before searching.
64155
64156         The following changes are not K&R related:
64157
64158         * lib/group-member.h: Include <sys/types.h>, so that this file is
64159         self-contained.
64160         * lib/makepath.h: Likewise.
64161
64162         * lib/getusershell.c (readname, default_index, line_size, readname):
64163         Use size_t, not int, for sizes.
64164         (readname): If the size overflows, report an error instead of
64165         looping forever.
64166
64167 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64168
64169         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
64170         libc.
64171
64172 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64173
64174         * README: New section: portability guidelines.
64175
64176 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
64177
64178         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
64179         C89 spec.
64180
64181 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
64182
64183         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
64184
64185 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64186
64187         Assume C89 or better; remove K&R cruft.
64188         A few of these changes were first proposed by Derek Robert Price
64189         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
64190
64191         * lib/addext.c: Include <string.h> unconditionally.
64192         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
64193         Don't declare getenv or malloc.
64194
64195         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
64196         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
64197         (NULL): Remove.
64198         (find_stack_direction, alloca): Use prototypes.
64199
64200         * lib/atexit.c (atexit): Define using a prototype.
64201
64202         * lib/basename.c, dirname.c, stripslash.c:
64203         Include <string.h> unconditionally.
64204
64205         * lib/bcopy.c: Include <stddef.h>.
64206         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
64207
64208         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
64209
64210         * lib/error.h (error, error_at_line, error_print_progname)
64211         [! (defined (__STDC__) && __STDC__)]: Remove decls.
64212         * lib/error.c: Include error.h first, to check interface.
64213         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
64214         (VA_START): Remove; all uses changeed to va_start.
64215         (exit, strerror): Remove decls.
64216         (error_print_progname): Prototype uncondionally.
64217         Don't include <errno.h>; no longer needed.
64218         (private_strerror): Remove.
64219         (error_tail): Always define.
64220         (error, error_at_line): Assume C89 or better; always use prototypes.
64221         * lib/fatal.c: Include "fatal.h" first, to test interface.
64222         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
64223         (VA_START): Remove; all uses changed to va_start.
64224         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
64225         this case.
64226         (exit): Remove decl.
64227         (fatal): Prototype unconditionally.  Assume va_start works.
64228         Abort at end, to pacify gcc.
64229
64230         * lib/euidaccess.c (main): Define with a prototype.
64231
64232         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
64233
64234         * lib/exitfail.c: Include <stdlib.h> unconditionally.
64235
64236         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
64237         prototypes.
64238         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
64239         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
64240         (getenv): Remove decl.
64241         (fnmatch): Define using a prototype.
64242         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
64243         (FCT): Define using a prototype.
64244
64245         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
64246
64247         * lib/gethostname.c: Include <stddef.h>.
64248         (gethostname): Define with prototype.  Length is size_t, not int.
64249
64250 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64251
64252         Assume C89 or better; remove K&R cruft.
64253         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
64254         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
64255         string.h, getenv, malloc.
64256         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
64257         headers.
64258         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
64259         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
64260         do not check for strerror.
64261         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
64262         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
64263         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
64264         do not check for doprnt or vprintf.
64265         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
64266         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
64267
64268 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64269
64270         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
64271         getversion.c should have been removed then, but was accidentally
64272         preserved.
64273
64274         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
64275         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
64276
64277 2003-09-08  Karl Berry  <karl@gnu.org>
64278
64279         * config/config.sub, config.guess, srclistvars.sh: update from savannah
64280                 config, forget about prep.
64281
64282         * config/depcomp, missing: update from automake.
64283
64284 2003-09-07  Paul Eggert  <eggert@twinsun.com>
64285
64286         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
64287         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
64288
64289 2003-09-07  Paul Eggert  <eggert@twinsun.com>
64290
64291         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
64292         copy_tm_result.  Bug reported by Simon Josefsson in
64293         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
64294
64295 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64296
64297         * m4/time_r.m4: New file.
64298         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
64299         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
64300         is. Check for timegm declaration.
64301         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
64302         Do not check for gmtime_r.
64303         Replace mktime if __mktime_internal does not exist and if mktime
64304         hasn't been replaced already.
64305
64306 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64307
64308         * lib/time_r.c, lib/time_r.h: New files.
64309
64310         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
64311         __localtime_r.
64312         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
64313         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
64314
64315         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
64316         __gmtime_r.
64317         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
64318         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
64319         Include <time_r.h>.
64320
64321         * lib/timegm.c: Switch to glibc implementation, with the following
64322         changes:
64323         [defined HAVE_CONFIG_H]: Include <config.h>.
64324         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
64325         (__mktime_internal) [!defined _LIBC]: New decl.
64326         (__gmtime_r) [!defined _LIBC]: New macro and function.
64327         (timegm): Use a prototype, since gnulib assumes C89.
64328         Do not bother declaring tmp to be const, as it's not really usefu.
64329         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
64330         (timegm): Declare only if HAVE_DECL_TIMEGM.
64331
64332 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64333
64334         * MODULES.html.sh (func_all_modules): Add time_r.
64335         * modules/time_r: New file.
64336         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
64337         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
64338
64339 2003-09-03  Paul Eggert  <eggert@twinsun.com>
64340
64341         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
64342         Bug reported by Lute Kamstra in
64343         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
64344
64345         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
64346         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
64347         course with correspondingly smaller numbers for tomorrow and
64348         yesterday.  From Tadayoshi Funaba.  Originally installed into
64349         sh-utils on 1999-08-07, but the patch got lost (I guess during the
64350         coreutils merge?).
64351
64352 2003-08-31  Simon Josefsson  <jas@extundo.com>
64353
64354         * modules/timegm: New file.
64355         * MODULES.html.sh (func_all_modules): Add timegm.
64356
64357 2003-08-31  Simon Josefsson  <jas@extundo.com>
64358
64359         * m4/timegm.m4: New file.
64360
64361 2003-08-31  Simon Josefsson  <jas@extundo.com>
64362
64363         * lib/timegm.h: New file.
64364         * lib/timegm.c: New file.  Based on
64365         wget-1.8.2/src/http.c:mktime_from_utc.
64366
64367 2003-08-31  Karl Berry  <karl@gnu.org>
64368
64369         * lib/argp.h: update from libc.
64370
64371 2003-08-28  Bruno Haible  <bruno@clisp.org>
64372
64373         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
64374         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
64375         followed by '#define fnmatch fnmatch_posix' gives an error.
64376
64377 2003-08-28  Bruno Haible  <bruno@clisp.org>
64378
64379         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
64380         warning on QNX, which defines O_BINARY to 000000.
64381
64382 2003-08-27  Jim Meyering  <jim@meyering.net>
64383
64384         * m4/mkstemp.m4: Require that the system mkstemp be able to create
64385         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
64386         would fail after 32.  Reported by Danny Levinson.  Details here:
64387         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
64388
64389 2003-08-24  Bruno Haible  <bruno@clisp.org>
64390
64391         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
64392         MSVC7 <stdio.h> is included later.
64393
64394 2003-08-22  Simon Josefsson  <jas@extundo.com>
64395
64396         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
64397
64398 2003-08-20  Karl Berry  <karl@gnu.org>
64399
64400         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
64401
64402 2003-08-20  Bruno Haible  <bruno@clisp.org>
64403
64404         * modules/progname: New file.
64405         * MODULES.html.sh (func_all_modules): Add progname.
64406
64407 2003-08-20  Bruno Haible  <bruno@clisp.org>
64408
64409         * lib/progname.h: New file, from GNU gettext.
64410         * lib/progname.c: New file, from GNU gettext.
64411         * lib/progreloc.c: New file, from GNU gettext.
64412
64413 2003-08-19  Jim Meyering  <jim@meyering.net>
64414
64415         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
64416         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
64417
64418 2003-08-19  Bruno Haible  <bruno@clisp.org>
64419
64420         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
64421         more.
64422
64423 2003-08-19  Bruno Haible  <bruno@clisp.org>
64424
64425         * lib/xstrdup.c: Assume <string.h> exists.
64426
64427 2003-08-18  Paul Eggert  <eggert@twinsun.com>
64428
64429         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
64430         in makefile rules.
64431
64432 2003-08-18  Jim Meyering  <jim@meyering.net>
64433
64434         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
64435         * m4/lib-ld.m4: Likewise.
64436
64437 2003-08-18  Jim Meyering  <jim@meyering.net>
64438
64439         * lib/setenv.h: Indent nested cpp directive.
64440         * lib/vasnprintf.c: Remove trailing blanks.
64441
64442 2003-08-17  Simon Josefsson  <jas@extundo.com>
64443
64444         * modules/xstrndup: New file.
64445         * MODULES.html.sh (func_all_modules): Add xstrndup.
64446
64447 2003-08-17  Simon Josefsson  <jas@extundo.com>
64448
64449         * modules/argp: Fix autoconf macro name. Add more dependencies.
64450
64451 2003-08-17  Simon Josefsson  <jas@extundo.com>
64452
64453         * m4/xstrndup.m4: New file.
64454
64455 2003-08-17  Simon Josefsson  <jas@extundo.com>
64456
64457         * m4/argp.m4: New file.
64458
64459 2003-08-17  Simon Josefsson  <jas@extundo.com>
64460             Bruno Haible  <bruno@clisp.org>
64461
64462         * lib/xstrndup.h: New file.
64463         * lib/xstrndup.c: New file.
64464
64465 2003-08-17  Bruno Haible  <bruno@clisp.org>
64466
64467         * modules/strndup (Files, Include): Add lib/strndup.h.
64468
64469 2003-08-17  Bruno Haible  <bruno@clisp.org>
64470
64471         * modules/euidaccess (Files): Add lib/euidaccess.h.
64472
64473 2003-08-17  Bruno Haible  <bruno@clisp.org>
64474
64475         * lib/strndup.h: New file.
64476
64477 2003-08-17  Bruno Haible  <bruno@clisp.org>
64478
64479         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
64480         like AC_GNU_SOURCE.
64481         * modules/extensions (configure.ac): Comment out the invocation of
64482         gl_USE_SYSTEM_EXTENSIONS.
64483
64484 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64485
64486         Merges from coreutils, etc.
64487         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
64488         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
64489         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
64490         fixing a typo.
64491         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
64492         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
64493
64494 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64495
64496         Document merge from coreutils.
64497         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
64498         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
64499         * modules/utime: Add m4/utimes-null.m4.
64500
64501 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64502
64503         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
64504         space, undoing this 2003-08-12 change:
64505         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64506
64507 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64508
64509         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
64510         strtoul.c from libc, undoing this 2003-08-12 change:
64511         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64512
64513 2003-08-16  Jim Meyering  <jim@meyering.net>
64514
64515         Merges from coreutils.
64516         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
64517         prefix.  Adjust cache variables similarly.  Create 500 rather than
64518         just 300 files, to exercise bug on Darwin6.5, too.
64519         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
64520         $missing_dir.
64521         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
64522         AM_SYS_POSIX_TERMIOS.
64523         Reported by mkc@mathdogs.com.
64524         Also change use of $am_cv_sys_posix_termios
64525         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
64526         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
64527         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
64528         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
64529         in /proc/mounts until it finds one with matching device number.  This
64530         is unnecessary when the FILE argument *is* a mount point.  No stat call
64531         is necessary in that case.  So, disable the statvfs-testing code on
64532         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
64533         as RedHat bug# 84846.
64534         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64535         to 1MB, so as not to render systems with no stack size limit (e.g.,
64536         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64537         Include <unistd.h>.  On some systems,
64538         it is required for the definition of _SC_PAGESIZE.
64539
64540 2003-08-16  Jim Meyering  <jim@meyering.net>
64541
64542         Merge from coreutils.
64543         * lib/xstrtoimax.c: #else #if -> #elif.
64544         * lib/xstrtoumax.c: Likewise.
64545
64546 2003-08-16  Jim Meyering  <jim@meyering.net>
64547
64548         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
64549         * m4/utimes.m4: Removed.
64550         * m4/utimes-null.m4: Renamed from utimes.m4.
64551
64552         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64553         to 1MB, so as not to render systems with no stack size limit (e.g.,
64554         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64555         Include <unistd.h>.  On some systems,
64556         it is required for the definition of _SC_PAGESIZE.
64557
64558 2003-08-16  Jim Meyering  <jim@meyering.net>
64559         and Paul Eggert  <eggert@cs.ucla.edu>
64560
64561         Merges from coreutils, etc.
64562
64563         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
64564         using the latest version from cvs.  This avoids problems with #line
64565         directives using a vendor (Sun) compiler.
64566         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
64567         Don't set GETGROUPS_LIB here; now it's
64568         done via getgroups.m4's wrapper function.
64569         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
64570         rather than just in sh-util/configure.in, so that the
64571         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
64572         same.
64573         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
64574         AC_FUNC_GETLOADAVG where to find getloadavg.c.
64575         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
64576         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
64577         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
64578         Remove code that is now done by the newly-required macros.
64579         Append $(EXEEXT) to DF_PROG.
64580         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
64581         Do not invoke or require the following here,
64582         since prereq.m4 or some gnulib .m4 now does this for us:
64583         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
64584         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
64585         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
64586         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
64587         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
64588         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
64589         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
64590         AC_FUNC_OBSTACK.
64591         Do not replace the following functions, as this is now the job
64592         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
64593         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
64594         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
64595         atexit getpass, strdup, getpagesize.
64596         Replace 'raise'.
64597         Do not check for the following functions, as this is now the job
64598         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
64599         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
64600         setregid.
64601         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
64602         Check for sys/sysctl.h.
64603         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
64604         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
64605         of checking for ssize_t ourselves.
64606
64607         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
64608         Require every macro that gnulib/modules/* suggests for us.
64609         (jm_PREREQ_ADDEXT): New macro.
64610         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
64611         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
64612
64613         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
64614         (gl_PHYSMEM): Use it.
64615         Also check for `table' function.
64616         Check for new headers and functions.
64617         Add check for sys/sysmp.h.
64618         With suggestions from Kaveh Ghazi.
64619         Ignore headers that are present but cannot be compiled.  This
64620         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
64621         C 5.4.
64622
64623 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64624
64625         Document merge from coreutils.
64626         * modules/userspec: Depend on posixver.
64627         * modules/strftime: Depend on tzset.
64628
64629 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64630
64631         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
64632         rather than tab, after '#' in shell-script copyright notices.
64633         Suggested by Bruno Haible.
64634
64635 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64636
64637         * config/srclist-update: Use three spaces, rather than tab, after '#'
64638         in shell-script copyright notices.  Suggested by Bruno Haible.
64639         Remove unnecessary parenthesization in regular expression.
64640
64641 2003-08-15  Jim Meyering  <jim@meyering.net>
64642
64643         Merge from coreutils.
64644         * lib/xgethostname.c: Include <stdlib.h>.
64645         (xghostname): Don't exit for anything other than memory-related
64646         failure; just return NULL.
64647         * lib/userspec.c: Include "posixver.h".
64648         (parse_user_spec): Accept `.' as a separator only
64649         in pre-POSIX-200112 mode.
64650         * lib/strtoimax.c: Use #elif rather than #else #if.
64651         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
64652         Remove function, now that we can rely on a working tzset function.
64653         [!_LIBC]: Ensure that the required autoconf test has been run.
64654         [!defined _NL_CURRENT && HAVE_STRFTIME]:
64655         Use underlying_strftime for %r.
64656         * lib/sha.c: Merge in some clean-up and optimization changes from
64657         glibc.
64658         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
64659         Ensure that it is a multiple of 64.
64660         Rearrange loop exit tests so as to avoid performing an
64661         additional fread after encountering an error or EOF.
64662         * lib/realloc.c: Update copyright date.
64663
64664 2003-08-15  Jim Meyering  <jim@meyering.net>
64665         and Paul Eggert  <eggert@twinsun.com>
64666
64667         Merge from coreutils.
64668         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
64669         member but strut utmpx does not.  Needed for AIX 4.3.3.
64670         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
64671
64672 2003-08-15  Jim Meyering  <jim@meyering.net>
64673         and Paul Eggert  <eggert@cs.ucla.edu>
64674
64675         Merges from coreutils, etc.
64676         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
64677         Require gl_FUNC_TZSET_CLOBBER.
64678         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
64679         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
64680         members.
64681
64682 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64683
64684         Help the merge from coreutils.
64685         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
64686         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
64687         * m4/tzset.m4: Use it too.
64688
64689 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64690
64691         * modules/tzset: New file.
64692
64693 2003-08-14  Jim Meyering  <jim@meyering.net>
64694
64695         Merges from coreutils.
64696         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
64697         variable names, rather than @FNMATCH_H@.
64698         * modules/alloca: Likewise for $(ALLOCA_H).
64699
64700         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
64701         the three copies of the literal target, `fnmatch.h'.
64702         * modules/alloca (alloca.h): Likewise.
64703
64704 2003-08-14  Jim Meyering  <jim@meyering.net>
64705
64706         Merge from coreutils.
64707         * m4/tzset.m4: New file.
64708         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
64709         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
64710         otherwise, AIX 5.1 systems would end up using the latter.
64711         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
64712         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
64713         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
64714         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
64715
64716 2003-08-14  Jim Meyering  <jim@meyering.net>
64717
64718         Merge from coreutils.
64719         * lib/obstack.h: Whitespace changes.
64720         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
64721         and xcalloc return values.
64722         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
64723         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
64724         hang on OSF/1 5.1 for DIR on both local and remote file systems.
64725         Reported by (and fix confirmed by) Nelson H. F. Beebe.
64726         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64727         error from mntctl.
64728         Use mntctl's return value to drive the entry-processing loop, since
64729         we can't rely on the value of the vmt_length member in the last
64730         entry.  On some systems doing so could result in exhausting
64731         virtual memory.  Based in part on a patch from Mike Jetzer.
64732
64733 2003-08-14  Jim Meyering  <jim@meyering.net>
64734         and Paul Eggert  <eggert@twinsun.com>
64735
64736         Merges from coreutils, plus other fixes.
64737         * lib/physmem.c: Merge in portability changes from gcc/libiberty
64738         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
64739         for credits and details.  Thanks to Kaveh Ghazi for helping
64740         to keep these files in sync.
64741         (ARRAY_SIZE): Define it.
64742         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
64743         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
64744         (memcasecmp): Don't assume size_t fits in unsigned int.
64745         Remove casts and duplicate code.
64746         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
64747         (memcpy): Remove definition.
64748         Merge in some clean-up and optimization changes from glibc.
64749         [BLOCKSIZE]: Move definition to top of file.
64750         Ensure that it is a multiple of 64.
64751         Rearrange loop exit tests so as to avoid performing an
64752         additional fread after encountering an error or EOF.
64753         * lib/md5.h (md5_uintptr): Define.
64754         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
64755         return to the initial working directory.  Preserve errno
64756         for caller.
64757         * lib/idcache.c: Include "xalloc.h".
64758         (xmalloc, xrealloc): Remove decls.
64759         (getuser): Remove casts no longer required in C89.
64760         * lib/human.c: Include stdio.h, for sprintf.
64761         * lib/group-member.c: Include "xalloc.h".
64762         (xmalloc, xrealloc): Remove decls.
64763         (get_group_info): Remove casts no longer required in C89.
64764         * lib/getusershell.c (readname): Remove casts no longer required in
64765         C89.
64766         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
64767         * lib/getline.c: Whitespace fix, from coreutils.
64768
64769 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64770
64771         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
64772         Check for isascii.
64773
64774         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64775         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64776         Undo previous (whitespace-only) change.
64777
64778 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64779
64780         * lib/exclude.c: Include <ctype.h>
64781         (IN_CTYPE_DOMAIN): New macro.
64782         (is_space): New fn.
64783         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
64784         and empty lines.
64785
64786         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64787         Undo previous (whitespace-only) change.
64788
64789 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64790
64791         * config/srclist-update: Change update back to the old behavior,
64792         leaving whitespace alone.  Use one 'sed' command rather than a
64793         pipeline.
64794         (fixlicense): Now a variable, not a function.
64795         (remove_trailing_blanks): Remove.
64796         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
64797         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64798         Undo previous (whitespace-only) change.
64799
64800 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64801
64802         Merge from coreutils.
64803         * modules/euidaccess: Add lib_SOURCES, include for new
64804         file euidaccess.h
64805
64806 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64807
64808         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64809         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64810         Normalize leading white space and remove trailing white space.
64811
64812         Merge from coreutils
64813         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
64814
64815         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
64816         0.12.1.  These files are now being upgraded automatically by
64817         ../config/srclist-update.
64818
64819 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64820
64821         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64822         Normalize leading white space and remove trailing white space.
64823         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
64824         notice, as per ../config/srclist-update.
64825
64826         Merge from coreutils.
64827         * lib/euidaccess.h: New file.
64828         * lib/euidaccess.c: Include it.
64829         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
64830         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
64831         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
64832
64833 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64834
64835         * config/srclist-update: Add copyright notice.
64836         (remove_id_lines, remove_trailing_blanks): New constants.
64837         (fixfile): Use them to normalize spacing a bit in copied files.
64838         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64839         Normalize leading white space and remove trailing white space.
64840
64841         * config/texinfo.tex: Sync with texinfo.
64842
64843         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
64844         strtoul.c from libc, to merge coreutils whitespace changes.
64845
64846         * config/srclist.txt: Get the following m4 files from gettext:
64847         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
64848         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
64849         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
64850         wint_t.m4.
64851
64852 2003-08-12  Karl Berry  <karl@gnu.org>
64853
64854         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
64855         been made.
64856
64857 2003-08-11  Paul Eggert  <eggert@twinsun.com>
64858
64859         * modules/gnu-source, m4/gnu-source.m4:
64860         Remove; we're assuming Autoconf 2.54 or later now.
64861         Suggested by Bruno Haible.
64862         * MODULES.html.sh (func_all_modules): Remove gnu-source.
64863
64864 2003-08-11  Bruno Haible  <bruno@clisp.org>
64865
64866         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
64867
64868 2003-08-11  Bruno Haible  <bruno@clisp.org>
64869
64870         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
64871         (vasnprintf): Use it instead of wcslen.
64872
64873 2003-08-11  Bruno Haible  <bruno@clisp.org>
64874
64875         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
64876         value to ensure that _Bool promotes to int. Use #define for _Bool when
64877         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
64878
64879 2003-08-10  Karl Berry  <karl@gnu.org>
64880
64881         * lib/regex.h: update from libc (whitespace fix).
64882
64883 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64884
64885         Merge some files from coreutils.  These changes were
64886         originally made by Jim Meyering.
64887         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
64888         many older Unixes require this.
64889         * lib/alloca.c (alloca): Remove cast to argument of free;
64890         no longer needed in C89.
64891         * lib/alloca_.h, regex.h: Fix white space to match
64892         what GNU indent does.
64893
64894 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64895
64896         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
64897         apparently Emacs's Unicode mode got confused before my 2003-08-05
64898         checkin.
64899
64900 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64901
64902         * m4/extensions.m4: New file.
64903         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
64904         Require gl_USE_SYSTEM_EXTENSIONS.
64905         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
64906         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
64907
64908 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64909
64910         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
64911         * modules/extensions, modules/gnu-source: New files.
64912         * modules/timespec, modules/unlocked-io: Depend on extensions.
64913
64914 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64915
64916         * modules/restrict: New file.
64917         * MODULES.html.sh (func_all_modules): Add restrict.
64918         * modules/regex: Depend on restrict.
64919
64920 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64921
64922         * m4/restrict.m4: New file.
64923         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
64924
64925 2003-08-07  Bruno Haible  <bruno@clisp.org>
64926
64927         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
64928         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
64929
64930 2003-08-07  Bruno Haible  <bruno@clisp.org>
64931
64932         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
64933         makes the module 'getndelim2' compatible with the module 'getline'.
64934
64935 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64936
64937         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
64938         byte with "\201" to avoid glitches when editing that source file
64939         with multi-gnome-terminal.
64940
64941 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64942
64943         * lib/bumpalloc.h: Remove.
64944
64945 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64946
64947         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
64948         * modules/bumpalloc: Remove.
64949
64950 2003-08-04  Paul Eggert  <eggert@twinsun.com>
64951
64952         * lib/getloadavg.c: Change copyright notice and spacing to conform to
64953         GNU coding style.
64954
64955         Merge from coreutils.
64956         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
64957         1. From glibc.
64958         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
64959         from Karl Berry, implemented by Jim Meyering.
64960         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
64961         from Dmitry V. Levin.
64962         Remove anachronistic cast of xrealloc.
64963         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
64964         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
64965         type. Otherwise, it wouldn't compile with at least /bin/cc on
64966         ymp-cray-unicos9.0.2.X.
64967         Combine two mostly-identical uses of alloca into one.
64968         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
64969
64970 2003-08-04  Dave Love  <d.love@dl.ac.uk>
64971
64972         [From Emacs.]
64973
64974         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
64975         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
64976         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
64977         obsolete NLIST_NAME_UNION.
64978         [__GNU__]: Undef BSD and FSCALE.
64979         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
64980
64981 2003-08-03  Paul Eggert  <eggert@twinsun.com>
64982
64983         * lib/stdbool_.h (_Bool): Make it signed char, instead of
64984         an enum type, so that it's guaranteed to promote to int.  See:
64985         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
64986
64987 2003-08-03  Karl Berry  <karl@gnu.org>
64988
64989         * config/depcomp: update from automake.
64990
64991 2003-07-31  Paul Eggert  <eggert@twinsun.com>
64992
64993         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
64994         (strerror): Don't assume that a printable int fits in 14 bytes.
64995
64996 2003-07-31  Bruno Haible  <bruno@clisp.org>
64997
64998         * modules/getpass-gnu: New file.
64999         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
65000
65001 2003-07-31  Bruno Haible  <bruno@clisp.org>
65002
65003         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
65004
65005 2003-07-24  Karl Berry  <karl@gnu.org>
65006
65007         * config/missing: update from automake.
65008
65009 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
65010             Bruno Haible  <bruno@clisp.org>
65011
65012         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
65013         * lib/getline.c (getline, getdelim): Likewise.
65014         Remove _GNU_SOURCE define; now it's defined in config.h through
65015         m4/getline.m4.
65016
65017 2003-07-23  Karl Berry  <karl@gnu.org>
65018
65019         * config/config.sub: update from prep.
65020
65021 2003-07-22  Paul Eggert  <eggert@twinsun.com>
65022
65023         * modules/xalloc (Depends-on): Add exitfail.
65024         * modules/xmemcoll: Likewise.
65025
65026 2003-07-22  Paul Eggert  <eggert@twinsun.com>
65027
65028         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
65029         over-parenthesization in macros.
65030
65031         Sync with coreutils.
65032
65033         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
65034         required by C99.
65035
65036         Use `exit_failure' for xalloc and xmemcoll instead of their own
65037         private exit-failure variables.
65038         * lib/xalloc.h (xalloc_exit_failure): Remove.
65039         * lib/xmalloc.c: Likewise.  Include exitfail.h.
65040         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
65041         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
65042         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
65043         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
65044
65045 2003-07-20  Jim Meyering  <jim@meyering.net>
65046
65047         * modules/closeout (Depends-on): Add exitfail.
65048         Suggestion from Bruno Haible.
65049
65050 2003-07-19  Karl Berry  <karl@gnu.org>
65051
65052         * config/config.sub: update from prep.
65053
65054 2003-07-18  Paul Eggert  <eggert@twinsun.com>
65055
65056         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
65057         Remove.
65058         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
65059         to test that it can stand by itself.  Include "exitfail.h".
65060         Clients should set exit_failure instead.
65061         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
65062
65063 2003-07-18  Bruno Haible  <bruno@clisp.org>
65064
65065         * modules/getndelim2: New file.
65066         * modules/getline: Share files with module getndelim2.
65067         * modules/getnline: Depend on getndelim2 instead of sharing files with
65068         it. Add getnline.c to lib_SOURCES.
65069         * MODULES.html.sh (func_all_modules): Add getndelim2.
65070
65071 2003-07-18  Bruno Haible  <bruno@clisp.org>
65072
65073         * m4/getndelim2.m4: New file.
65074         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
65075         invoke gl_PREREQ_GETNDELIM2.
65076         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
65077         gl_PREREQ_GETNDELIM2.
65078         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
65079         gl_GETNDELIM2.
65080
65081 2003-07-18  Bruno Haible  <bruno@clisp.org>
65082
65083         * lib/getndelim2.h: New file.
65084         * lib/getndelim2.c: Make into a module of its own. Include config.h,
65085         getndelim2.h.
65086         (getndelim2): Make non-static. Change return type to ssize_t.
65087         * lib/getline.h: Change argument names.
65088         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
65089         * lib/getnline.c: Include getndelim2.h.
65090
65091 2003-07-18  Andreas Schwab  <schwab@suse.de>
65092
65093         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
65094
65095 2003-07-17  Karl Berry  <karl@gnu.org>
65096
65097         * config/config.sub: update from prep.
65098
65099 2003-07-17  Bruno Haible  <bruno@clisp.org>
65100
65101         * modules/getnline: New file.
65102         * modules/getline: Add lib/getndelim2.c to source file list.
65103         * MODULES.html.sh (func_all_modules): Add getnline.
65104
65105 2003-07-17  Bruno Haible  <bruno@clisp.org>
65106
65107         * m4/getnline.m4: New file.
65108
65109 2003-07-17  Bruno Haible  <bruno@clisp.org>
65110
65111         * m4/Makefile.am.in: Remove file.
65112         * m4/Makefile.am: Remove file.
65113         * m4/Makefile.in: Remove file.
65114
65115 2003-07-17  Bruno Haible  <bruno@clisp.org>
65116
65117         * lib/getnline.h: New file.
65118         * lib/getnline.c: New file.
65119         * lib/getndelim2.c: New file, extracted from getline.c.
65120         (getndelim2): Renamed from getdelim2, with added nmax argument.
65121         * lib/getline.c: Include getndelim2.c.
65122         (getdelim2): Moved out to getndelim2.c.
65123         (getline, getdelim): Update.
65124
65125 2003-07-17  Bruno Haible  <bruno@clisp.org>
65126
65127         * lib/Makefile.am: Remove file.
65128         * lib/Makefile.in: Remove file.
65129
65130 2003-07-17  Bruno Haible  <bruno@clisp.org>
65131
65132         * configure.in: Remove file.
65133         * Makefile.in: Remove file.
65134
65135 2003-07-17  Bruno Haible  <bruno@clisp.org>
65136
65137         * MODULES.html.sh: Put the </BODY> right before </HTML>.
65138
65139 2003-07-16  Karl Berry  <karl@gnu.org>
65140
65141         * config/srclist-update: was running fixlicense twice, which caused
65142                 texinfo.tex to be nullified for some reason.  Simplify,
65143                 $gplsrc is no longer needed as far as I can see?
65144
65145 2003-07-16  Jim Meyering  <jim@meyering.net>
65146
65147         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
65148
65149 2003-07-15  Paul Eggert  <eggert@twinsun.com>
65150
65151         * config/srclist.txt: Get the following files from gettext-runtime/intl
65152         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
65153         ref-del.sin.  From Bruno Haible.
65154         * config/srclist-update (fixfile): Change grep pattern again, since the
65155         previous fix didn't work (there was another trailing $).  Use
65156         '[$]' to escape the $s.
65157
65158 2003-07-15  Karl Berry  <karl@gnu.org>
65159
65160         * lib/vasnprintf.c: update from gettext.
65161
65162 2003-07-15  Karl Berry  <karl@gnu.org>
65163
65164         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
65165         gets expanded when surrounded by '$'.
65166
65167 2003-07-15  Jim Meyering  <jim@meyering.net>
65168
65169         * modules/save-cwd: Don't depend on error.  From Derek Price.
65170
65171 2003-07-15  Jim Meyering  <jim@meyering.net>
65172
65173         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
65174
65175 2003-07-14  Simon Josefsson  <jas@extundo.com>
65176
65177         * modules/mempcpy: New file.
65178         * MODULES.html.sh (func_all_modules): Add mempcpy.
65179
65180 2003-07-14  Simon Josefsson  <jas@extundo.com>
65181
65182         * m4/mempcpy.m4: New file.
65183
65184 2003-07-14  Simon Josefsson  <jas@extundo.com>
65185
65186         * lib/mempcpy.h: New file.
65187         * lib/mempcpy.c: New file.
65188
65189 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65190
65191         * modules/getdate, modules/posixtm: Depend on mktime.
65192
65193 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65194
65195         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
65196         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
65197         unicodeio.c, unicodeio.h, unlocked-io.h:
65198         Switch from LGPL to GPL.
65199
65200 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65201
65202         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
65203         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
65204         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
65205         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
65206         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
65207         updated automatically by ../config/srclist-update.  This changes
65208         their license from LPGL to GPL.
65209
65210 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65211
65212         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
65213         assumed to refer to the root of the most recent stable gettext version.
65214         * config/srclistvars.sh: Add defaults for eggert.
65215         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
65216         Match "This program" as well as "The program".  This is needed
65217         for gettext.
65218
65219 2003-07-14  Jim Meyering  <jim@meyering.net>
65220
65221         Don't emit diagnostics.  Let callers do that.
65222         * lib/save-cwd.c: Don't include "error.h".
65223         (save_cwd): Don't call error.  Ensure that errno is valid
65224         when returning nonzero.
65225
65226         * lib/save-cwd.h (restore_cwd): Update prototype.
65227         * lib/save-cwd.c (restore_cwd): Remove two parameters.
65228         Simplify.  Don't call error upon failure.  Let callers do that.
65229         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
65230         when auditing is enabled.  But don't bother updating the #if.
65231
65232 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
65233
65234         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
65235         it breaks C++ compilation.
65236         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
65237
65238 2003-07-10  Simon Josefsson  <jas@extundo.com>
65239
65240         * modules/strchrnul (Makefile.am): Add strchrnul.h.
65241
65242 2003-07-10  Jim Meyering  <jim@meyering.net>
65243
65244         * m4/clock_time.m4: Remove trailing blank.
65245         * m4/intmax_t.m4: Likewise.
65246
65247 2003-07-10  Jim Meyering  <jim@meyering.net>
65248
65249         * lib/vasnprintf.c: Remove trailing blanks.
65250         Make cpp indentation consistent.
65251
65252 2003-07-09  Paul Eggert  <eggert@twinsun.com>
65253
65254         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
65255         posixver.c, strftime.c, strnlen.c, strverscmp.c:
65256         Switch from LGPL to GPL.
65257
65258 2003-07-09  Paul Eggert  <eggert@twinsun.com>
65259
65260         * config/srclist.txt: Sort sublists.  Add
65261         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
65262         that differ from gnulib for one reason or another; we'd like this list
65263         to be smaller but for now let's document what we have.
65264
65265 2003-07-08  Paul Eggert  <eggert@twinsun.com>
65266
65267         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
65268         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
65269         and sweeter "eval x=$x".
65270         * config/srclist.txt: Get lib/argp* from glibc.
65271
65272 2003-07-07  Paul Eggert  <eggert@twinsun.com>
65273
65274         * lib/mktime.c: Fix some boundary cases and remove need for floating
65275         point.
65276
65277         Issue a compile-time diagnostic if time_t is floating point, or if
65278         two's complement arithmetic is not in effect, or if arithmetic
65279         right shift does not propagate the sign.  These assumptions were
65280         all in the original code but they weren't checked.
65281
65282         (TIME_T_MIDPOINT, verify): New macros.
65283         (__isleap): Remove; it has integer overflow problems.
65284         (leapyear): New function, without those problems.
65285         (ydhms_tm_diff): Remove; splitting into two parts.
65286         (ydhms_diff): New function, containing the arithmetic part of
65287         the old ydhms_tm_diff function.  Issue a compile-time
65288         diagnostic if we are not using C99 integer division.
65289         Avoid casts when possible.
65290         (guess_time_tm): New function, containing the checking part of
65291         the old ydhms_tm_diff function.  Return the new value, rather than
65292         the difference between it and the old.  Accept a new argument T
65293         so that *T specifies the old value.  Check for overflow in the result.
65294
65295         (__mktime_internal): Use a time_t offset, not a long int offset.
65296         This undoes the 2003-06-04 change, which is no longer needed now
65297         that we have better overflow checking.
65298         (localtime_offset): Likewise.
65299
65300         (__mktime_internal): Avoid harmful overflow on hosts where time_t
65301         and long are 64-bit but int is only 32-bit.
65302         (ydhms_diff): Use long int to store year1 and yday1.
65303         Issue a compile-time diagnostic if long int is not wide enough.
65304
65305         (__mktime_internal): Use long int to store adjusted year and yday.
65306         Use plain C rather than preprocessor commands, if that doesn't
65307         affect efficiency.
65308         Check for overflow (and try to repair) after each probe
65309         rather than checking only at the very end.  This avoids some bugs
65310         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
65311         does not equal GMT offset at maximum time).
65312         Use integer to check for overflow rather than floating point; this
65313         is more portable to non-IEEE hosts, and is a tad faster.
65314         When we detect that we are oscillating between two values,
65315         don't check whether tm_isdst has the requested value, since
65316         we already know the answer.  When tm_isdst has the wrong value,
65317         use a different heuristic to find the right one, based on the
65318         extreme values actually observed in practice in tz2003a,
65319         rather than the (overly optimistic) "previous 3 calendar quarters".
65320
65321         (not_equal_tm, print_tm, check_result): Use "const T" rather than
65322         "T const" to accommodate glibc style.
65323         (check_result): Use less-confusing report format.  "long" -> "long int.
65324         (main): Likewise.
65325         Don't loop if the iteration overflows time_t.
65326         Allow a negative step in the iteration.
65327
65328 2003-07-06  Karl Berry  <karl@gnu.org>
65329
65330         * config/depcomp: update from automake.
65331         * config/config.sub: update from prep.
65332
65333 2003-07-03  Karl Berry  <karl@gnu.org>
65334
65335         * config/config.guess: update from prep.
65336
65337 2003-07-01  Paul Eggert  <eggert@twinsun.com>
65338
65339         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
65340         xreadlink.c now includes it unconditionally.
65341
65342 2003-07-01  Paul Eggert  <eggert@twinsun.com>
65343
65344         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
65345         having it depend on HAVE_SYS_TYPES_H.
65346
65347 2003-07-01  Bruno Haible  <bruno@clisp.org>
65348
65349         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
65350         <sys/types.h> should be sufficient.
65351         Reported by Paul Eggert.
65352
65353 2003-06-26  Karl Berry  <karl@gnu.org>
65354
65355         * config/depcomp: update from automake.
65356
65357 2003-06-26  Bruno Haible  <bruno@clisp.org>
65358
65359         * modules/human: Depend on module stdbool.
65360
65361 2003-06-25  Bruno Haible  <bruno@clisp.org>
65362
65363         * modules/readlink: New file.
65364         * modules/xreadlink: Depend on it.
65365         * MODULES.html.sh (func_all_modules): Add readlink.
65366
65367 2003-06-25  Bruno Haible  <bruno@clisp.org>
65368
65369         * m4/readlink.m4: New file.
65370
65371 2003-06-25  Bruno Haible  <bruno@clisp.org>
65372
65373         * lib/readlink.c: New file.
65374
65375 2003-06-22  Karl Berry  <karl@gnu.org>
65376
65377         * config/srclist.txt: update mkinstalldirs from automake.
65378         * config/mkinstalldirs: update.
65379
65380 2003-06-22  Bruno Haible  <bruno@clisp.org>
65381
65382         Portability to mingw32.
65383         * m4/ssize_t.m4: New file, from GNU gettext.
65384         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
65385         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
65386
65387 2003-06-22  Bruno Haible  <bruno@clisp.org>
65388
65389         * modules/safe-read: Add m4/ssize_t.m4.
65390         * modules/xreadlink: Add m4/ssize_t.m4.
65391
65392 2003-06-20  Bruno Haible  <bruno@clisp.org>
65393
65394         Assume C89, so PARAMS isn't needed.
65395         * lib/unicodeio.h (PARAMS): Remove.
65396         * lib/unicodeio.c: Don't use PARAMS.
65397
65398 2003-06-18  Karl Berry  <karl@gnu.org>
65399
65400         * config/config.{guess,sub}: update from prep.
65401
65402 2003-06-18  Jim Meyering  <jim@meyering.net>
65403
65404         Merge changes from coreutils.
65405         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
65406         Remove explicit declarations of xmalloc and realloc.
65407         Include xalloc.h.
65408         (read_utmp): Remove anachronistic cast of xmalloc.
65409
65410 2003-06-17  Paul Eggert  <eggert@twinsun.com>
65411
65412         Assume C89, so PARAMS isn't needed.
65413         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
65414         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
65415         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
65416         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
65417         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
65418         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
65419         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
65420         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
65421         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
65422         lib/xstrtod.h, lib/xstrtol.h: Likewise.
65423         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
65424         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
65425         no longer needed. Anyway, config.h should always be included before any
65426         other file.
65427
65428 2003-06-11  Simon Josefsson  <jas@extundo.com>
65429
65430         * modules/sysexits: New file.
65431         * MODULES.html.sh (func_all_modules): Add sysexits.
65432
65433 2003-06-11  Simon Josefsson  <jas@extundo.com>
65434
65435         * lib/sysexit_.h: New file.
65436
65437 2003-06-11  Derek Price  <derek@ximbiot.com>
65438
65439         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
65440         necessary.
65441
65442 2003-06-11  Bruno Haible  <bruno@clisp.org>
65443
65444         * m4/sysexits.m4: New file.
65445
65446 2003-06-10  Simon Josefsson  <jas@extundo.com>
65447
65448         * lib/argp.h: New file, from glibc.
65449         * lib/argp-ba.c: New file, from glibc.
65450         * lib/argp-eexst.c: New file, from glibc.
65451         * lib/argp-fmtstream.c: New file, from glibc.
65452         * lib/argp-fmtstream.h: New file, from glibc.
65453         * lib/argp-fs-xinl.c: New file, from glibc.
65454         * lib/argp-help.c: New file, from glibc.
65455         * lib/argp-namefrob.h: New file, from glibc.
65456         * lib/argp-parse.c: New file, from glibc.
65457         * lib/argp-pv.c: New file, from glibc.
65458         * lib/argp-pvh.c: New file, from glibc.
65459         * lib/argp-xinl.c: New file, from glibc.
65460
65461 2003-06-10  Simon Josefsson  <jas@extundo.com>
65462
65463         * modules/strchrnul: New file.
65464
65465 2003-06-10  Simon Josefsson  <jas@extundo.com>
65466
65467         * modules/argp: New file.
65468
65469 2003-06-10  Simon Josefsson  <jas@extundo.com>
65470
65471         * m4/strchrnul.m4: New file.
65472
65473 2003-06-10  Simon Josefsson  <jas@extundo.com>
65474
65475         * lib/strchrnul.h: New file.
65476         * lib/strchrnul.c: New file.
65477
65478 2003-06-10  Bruno Haible  <bruno@clisp.org>
65479
65480         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
65481
65482 2003-06-07  Karl Berry  <karl@gnu.org>
65483
65484         * config/config.{guess,sub}: update from prep.
65485
65486 2003-06-07  Jim Meyering  <jim@meyering.net>
65487
65488         * modules/strtod: Use $(...) notation, not @...@ for
65489         AC_REPLACE'd variables.
65490         * modules/localcharset: Likewise.
65491
65492 2003-06-07  Jim Meyering  <jim@meyering.net>
65493
65494         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
65495         in place of my name in the copyright comment.
65496         Remove definition and uses of __P.
65497
65498         From coreutils.
65499         * lib/stat.c: Don't declare xmalloc explicitly.
65500         Instead, include "xalloc.h".
65501         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
65502         xrealloc, and xcalloc return values.
65503         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
65504         Improve comment.
65505         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
65506
65507 2003-06-07  Bruno Haible  <bruno@clisp.org>
65508
65509         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
65510         avoid AC_CONFIG_LINKS.
65511         * modules/fnmatch (Makefile.am): Use explicit creation rule for
65512         fnmatch.h, to avoid AC_CONFIG_LINKS.
65513         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
65514
65515 2003-06-07  Bruno Haible  <bruno@clisp.org>
65516
65517         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
65518         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
65519         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65520         directory.
65521         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
65522         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65523         directory.
65524
65525 2003-06-06  Jim Meyering  <jim@meyering.net>
65526
65527         Merge from coreutils.
65528         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
65529         Consolidate declarations and initializations of *_base* locals.
65530
65531         Merge from coreutils.
65532         This avoids a core dump on systems without GNU putenv,
65533         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
65534         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
65535         (unsetenv): New static function, from GNU libc.
65536         (rpl_putenv): Use it.
65537
65538         * lib/modechange.c: Remove trailing blanks.
65539
65540         Merge from coreutils.
65541         * lib/fsusage.c: Remove declaration of statfs.
65542         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
65543
65544         * lib/posixtm.c: Include <stdbool.h> unconditionally.
65545
65546 2003-06-06  Jim Meyering  <jim@meyering.net>
65547
65548         * lib/stdbool_.h: Renamed from stdbool.h.in.
65549
65550 2003-06-06  Jim Meyering  <jim@meyering.net>
65551             Bruno Haible  <bruno@clisp.org>
65552
65553         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
65554         Adjust Makefile.am snippet not to redirect directly to target.
65555         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
65556
65557 2003-06-05  Paul Eggert  <eggert@twinsun.com>
65558
65559         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
65560         mismatch, look in future quarters as well as past.  This fixes a
65561         bug when processing fall-backwards gaps immediately after a long
65562         period of daylight-saving time.
65563
65564         * lib/mktime.c: Assume freestanding C89 or better.
65565         (HAVE_LIMITS_H): Remove.  Assume it's 1.
65566         (__P): Remove; not used.
65567         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
65568         (mktime, not_equal_tm, print_tm, check_result,
65569         main): Use prototypes.  Use const * where appropriate.
65570         (main): Fix typo in testing code that uncovered by above changes.
65571         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
65572
65573 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65574
65575         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
65576         locale.h, localeconv.  This merges changes from coreutils.
65577
65578         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
65579         It can be removed after the next Autoconf is released.
65580         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
65581         needed.
65582
65583 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65584
65585         * lib/mktime.c: Fix Debian bug 177940
65586         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
65587         (localtime_offset): Now long int, not time_t, because we want it
65588         to be guaranteed to be signed.  All uses changed.
65589         (__mktime_internal): If overflow would occur when adding offset,
65590         don't add it.
65591
65592         Merge 'human' changes from coreutils.  Rewrite to support
65593         locale-specific notations like thousands separators.
65594         * lib/human.c: Simplify authorship notice.
65595         Include human.h immediately after config.h.
65596         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
65597         <limits.h>: Do not include, since human.h does.
65598         (SIZE_MAX, UINTMAX_MAX): New macros.
65599         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
65600         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
65601         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
65602         (power_letter): Renamed from suffixes.
65603         (generate_suffix_backwards): Remove.
65604         (adjust_value): Now takes int style (because of human.h changes)
65605         and long double value (for greater precision on some platforms).
65606         (group_number): New function.
65607         (human_readable): Use it.  Use integer options, not enum.
65608         Put the options before the sizes in the arg list.
65609         Support all the new options.
65610         The old human_readable function has been removed;
65611         use inttostr.h instead.
65612         (human_readable, default_block_size, humblock):
65613         Use uintmax_t, not int, for block sizes.
65614         (human_readable_inexact, block_size_types): Remove.
65615         (block_size_opts): New constant.
65616         (human_options): Renamed from human_block_size, with new signature
65617         that allows block sizes up to UINTMAX_MAX.  All callers changed.
65618         * lib/human.h: Add copyright and authorship notice.
65619         Include <limits.h> and <stdbool.h> unconditionally.
65620         (PARAMS): Remove.  All uses removed.
65621         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
65622         (enum human_inexact_style): Remove tag; now a nameless enum.
65623         (human_floor, human_ceiling, human_round_to_even): Now have
65624         values 2, 0, 1 rather than -1, 1, 0.
65625         (human_group_digits, human_suppress_point_zero, human_autoscale,
65626         human_base_1024, human_SI, human_B): New constants.
65627         (human_readable_inexact, human_block_size): Remove.
65628         (human_readable): Size args are now uintmax_t, not int.
65629         (human_options): New decl.
65630
65631         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
65632         unnecessary now that we assume C89 or better.  This change
65633         imported from coreutils.
65634
65635         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65636         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
65637         in the 2003-05-30 sync from glibc.
65638
65639         .h files should stand alone, but we shouldn't include <sys/types.h>
65640         if we can get away with just <stddef.h>.
65641
65642         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
65643         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
65644         rather than <sys/types.h>, as we merely need size_t.
65645         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
65646         to get size_t.
65647         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
65648         Include <stdio.h>, to get FILE.
65649         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
65650         memcasecmp.h has included <stddef.h> and all we need is size_t.
65651         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
65652         our interface, instead of including <sys/types.h>
65653
65654 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65655
65656         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
65657         now, as glibc mktime is buggy on non-glibc systems.
65658
65659 2003-06-03  Karl Berry  <karl@gnu.org>
65660
65661         * config/config.sub: update from prep.
65662
65663 2003-06-02  Paul Eggert  <eggert@twinsun.com>
65664
65665         [from coreutils]
65666         Fix some minor time-related bugs with POSIX time arguments.
65667         Some valid time stamps were being rejected (notably -1, and
65668         time stamps before 1900 on 64-bit hosts).  And some invalid
65669         time stamps were being accepted, e.g. September 31.
65670
65671         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
65672         that we can return (time_t) -1 successfully.
65673         * lib/posixtm.c: Likewise.
65674         [HAVE_STDBOOL_H]: Include <stdbool.h>.
65675         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
65676         (t): Remove static var.
65677         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
65678         of static var.  All uses changed.
65679         (year): Do not reject years before 1900; they can occur with
65680         64-bit time_t.
65681         (posix_time_parse): Do not check for out-of-range components;
65682         that is now the caller's responsibility, since our checks were
65683         only approximations.
65684         (posixtime): Use mktime to check for out-of-range components,
65685         since it knows them exactly.
65686         If mktime returns (time_t) -1, check whether an error actually occurred
65687         by invoking localtime on -1.
65688         (main) [TEST_POSIXTIME]: Check for input data errors, and report
65689         posixtime failures better.
65690         Improve the test data (in comments only).
65691
65692 2003-06-02  Karl Berry  <karl@gnu.org>
65693
65694         * config/mkinstalldirs (version): new variable.
65695         (--version): new option.
65696         (usage): improve message.
65697
65698 2003-05-30  Karl Berry  <karl@gnu.org>
65699
65700         * lib/mktime.c: update from libc.
65701
65702 2003-05-30  Bruno Haible  <bruno@clisp.org>
65703
65704         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
65705         * config/config.rpath: Upgrade to gettext-0.12.1.
65706
65707 2003-05-30  Bruno Haible  <bruno@clisp.org>
65708
65709         * m4/gettext.m4: Upgrade to gettext-0.12.1.
65710         * m4/nls.m4: New file, from gettext-0.12.1.
65711         * m4/po.m4: New file, from gettext-0.12.1.
65712         * m4/progtest.m4: Upgrade to gettext-0.12.1.
65713
65714 2003-05-30  Bruno Haible  <bruno@clisp.org>
65715
65716         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
65717         * lib/localcharset.h: Likewise.
65718         * lib/localcharset.c: Likewise.
65719
65720 2003-05-29  Karl Berry  <karl@gnu.org>
65721
65722         * config/config.rpath: update from gettext.
65723
65724 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65725
65726         Assume the headers required for C89 freestanding compilers.
65727         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
65728         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
65729         * m4/human.m4 (gl_HUMAN): Likewise.
65730         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
65731         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
65732         * m4/userspec.m4 (gl_USERSPEC): Likewise.
65733         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
65734         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65735         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
65736
65737 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65738
65739         Assume the headers required for C89 freestanding compilers.
65740         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
65741         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
65742         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
65743         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
65744         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
65745         define, since <limits.h> is guaranteed to do that.
65746         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
65747         * lib/exclude.c: Include <stdbool.h> unconditionally.
65748         * lib/tempname.c: Include <stddef.h> unconditionally.
65749         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
65750         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
65751         <stddef.h> does that.
65752         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
65753         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
65754         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
65755         needed.
65756         * lib/xstrtol.c: Likewise.
65757         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
65758         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
65759
65760         * lib/addext.c (addext): Use assignment rather than cast, to avoid
65761         warnings on some platforms.
65762
65763         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65764         arbitrarily.
65765
65766 2003-05-26  Jim Meyering  <jim@meyering.net>
65767
65768         Merge in a change from coreutils:
65769         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
65770         that is guaranteed to be `no'.  Use `no_such_member' to indicate
65771         that condition, rather than `-1' which is slightly misleading.
65772         Change the name of the cache variable to have the gl_ prefix.
65773         Prompted by a patch from Richard Dawe for DJGPP.
65774
65775 2003-05-24  Karl Berry  <karl@gnu.org>
65776
65777         * config/config.guess: update from prep.
65778
65779 2003-05-22  Karl Berry  <karl@gnu.org>
65780
65781         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
65782
65783 2003-05-20  Karl Berry  <karl@gnu.org>
65784
65785         * config/config.guess: update from prep.
65786
65787 2003-05-18  Karl Berry  <karl@gnu.org>
65788
65789         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
65790         might actually be set by the user.
65791
65792         * config/depcomp, install-sh, mdate-sh: update from automake.
65793
65794 2003-05-17  Bruno Haible  <bruno@clisp.org>
65795
65796         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
65797         invalid expansion for AC_EGREP_CPP.
65798         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
65799         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
65800         Suggested by Akim Demaille <akim@epita.fr> in
65801         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
65802
65803 2003-05-12  Jim Meyering  <jim@meyering.net>
65804
65805         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
65806         the space-padded-by-default conversion specifiers, %e, %k, %l.
65807
65808 2003-05-12  Bruno Haible  <bruno@clisp.org>
65809
65810         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
65811         the string is longer than 4 KB.
65812
65813 2003-05-11  Karl Berry  <karl@gnu.org>
65814
65815         * config/config.{guess,sub}: update from prep.
65816
65817 2003-05-09  Bruno Haible  <bruno@clisp.org>
65818
65819         * modules/error: Add m4/strerror_r.m4 to file list.
65820
65821 2003-05-03  Bruno Haible  <bruno@clisp.org>
65822
65823         Upgrade to Unicode-4.0.
65824         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
65825         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
65826         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
65827         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
65828         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
65829         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
65830         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
65831         Change width of U+E0100..U+E01EF from 1 to 0.
65832
65833 2003-04-25  Jim Meyering  <jim@meyering.net>
65834
65835         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
65836         of type size_t, not int.
65837
65838 2003-04-25  Bruno Haible  <bruno@clisp.org>
65839
65840         * lib/copy-file.c: Include <stddef.h>, for size_t.
65841
65842 2003-04-21  Paul Eggert  <eggert@twinsun.com>
65843
65844         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
65845         code which expansion is under static control.  Patch imported from
65846         Akim Demaille's patch to Bison; see
65847         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
65848
65849 2003-04-14  Bruno Haible  <bruno@clisp.org>
65850
65851         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
65852
65853 2003-04-11  Jim Meyering  <jim@meyering.net>
65854
65855         Merge changes from Coreutils.
65856
65857         2003-03-22  Jim Meyering  <jim@meyering.net>
65858
65859         * lib/strftime.c (widen): Cast alloca return value to proper type.
65860
65861         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
65862
65863         From GNU libc.
65864         * lib/strftime.c (my_strftime): Handle very large width
65865         specifications for numeric values correctly.  Improve checks for
65866         overflow.
65867
65868         2003-01-19  Jim Meyering  <jim@meyering.net>
65869
65870         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
65871         definitions.
65872         (nl_get_alt_digit) [! defined my_strftime]: Define.
65873         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
65874         _nl_get_alt_digit and _nl_get_walt_digit.
65875
65876         * lib/strftime.c (my_strftime): Merge in locale-related changes from
65877         libc. These changes have no effect outside of _LIBC.
65878
65879 2003-04-10  Bruno Haible  <bruno@clisp.org>
65880
65881         * modules/findprog: New file.
65882         * MODULES.html.sh (func_all_modules): Add it.
65883
65884 2003-04-10  Bruno Haible  <bruno@clisp.org>
65885
65886         * m4/findprog.m4: New file.
65887         * m4/eaccess.m4: New file.
65888
65889 2003-04-10  Bruno Haible  <bruno@clisp.org>
65890
65891         * lib/findprog.h: New file, from GNU gettext.
65892         * lib/findprog.c: New file, from GNU gettext.
65893
65894 2003-04-05  Jim Meyering  <jim@meyering.net>
65895
65896         Merge changes from Coreutils.
65897
65898         * lib/exclude.h (PARAMS): Remove definition and uses.
65899         * lib/exclude.c: Remove uses of `PARAMS'.
65900
65901         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
65902         Add test-cases for DOS filenames. Declare program_name.
65903         (main): Set up program_name.  Patch by Rich Dawe.
65904
65905         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65906         error from mntctl.
65907         Use mntctl's return value to drive the entry-processing loop, since
65908         we can't rely on the value of the vmt_length member in the last
65909         entry.  On some systems doing so could result in exhausting
65910         virtual memory.  Based in part on a patch from Mike Jetzer.
65911
65912 2003-04-04  Bruno Haible  <bruno@clisp.org>
65913
65914         * modules/linebreak: New file.
65915         * MODULES.html.sh (func_all_modules): Add it.
65916
65917 2003-04-04  Bruno Haible  <bruno@clisp.org>
65918
65919         * m4/linebreak.m4: New file.
65920
65921 2003-04-04  Bruno Haible  <bruno@clisp.org>
65922
65923         * lib/linebreak.h: New file, from GNU gettext.
65924         * lib/linebreak.c: New file, from GNU gettext with slight
65925         modifications.
65926         * lib/lbrkprop.h: New file, from GNU gettext.
65927
65928 2003-04-03  Bruno Haible  <bruno@clisp.org>
65929
65930         * modules/utf8-ucs4: New file.
65931         * modules/utf16-ucs4: New file.
65932         * modules/ucs4-utf8: New file.
65933         * modules/ucs4-utf16: New file.
65934         * MODULES.html.sh (func_all_modules): Add them.
65935
65936 2003-04-03  Bruno Haible  <bruno@clisp.org>
65937
65938         * m4/utf-ucs4.m4: New file.
65939         * m4/ucs4-utf.m4: New file.
65940
65941 2003-04-03  Bruno Haible  <bruno@clisp.org>
65942
65943         * lib/utf8-ucs4.h: New file, from GNU gettext.
65944         * lib/utf16-ucs4.h: New file, from GNU gettext.
65945         * lib/ucs4-utf8.h: New file, from GNU gettext.
65946         * lib/ucs4-utf16.h: New file, from GNU gettext.
65947
65948 2003-04-02  Bruno Haible  <bruno@clisp.org>
65949
65950         * modules/binary-io: New file.
65951         * MODULES.html.sh (func_all_modules): Add it.
65952
65953 2003-04-02  Bruno Haible  <bruno@clisp.org>
65954
65955         * lib/binary-io.h: New file, from GNU gettext.
65956
65957 2003-04-01  Bruno Haible  <bruno@clisp.org>
65958
65959         * modules/pathname: New file.
65960         * MODULES.html.sh (func_all_modules): Add it.
65961
65962 2003-04-01  Bruno Haible  <bruno@clisp.org>
65963
65964         * lib/pathname.h: New file, from GNU gettext.
65965         * lib/concatpath.c: New file, from GNU gettext.
65966
65967 2003-03-30  Bruno Haible  <bruno@clisp.org>
65968
65969         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
65970
65971 2003-03-30  Bruno Haible  <bruno@clisp.org>
65972
65973         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
65974         function chown() doesn't exist.
65975
65976 2003-03-28  Bruno Haible  <bruno@clisp.org>
65977
65978         * modules/copy-file: New file.
65979         * MODULES.html.sh (func_all_modules): Add it.
65980
65981 2003-03-28  Bruno Haible  <bruno@clisp.org>
65982
65983         * m4/copy-file.m4: New file.
65984
65985 2003-03-28  Bruno Haible  <bruno@clisp.org>
65986
65987         * lib/copy-file.h: New file, from GNU gettext.
65988         * lib/copy-file.c: New file, from GNU gettext.
65989
65990 2003-03-18  Jim Meyering  <jim@meyering.net>
65991
65992         * lib/quote.c (quote_n): Fix typo in comment.
65993
65994 2003-03-18  Bruno Haible  <bruno@clisp.org>
65995
65996         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
65997         checking.
65998         * m4/onceonly_2_57.m4: Likewise.
65999
66000 2003-03-17  Bruno Haible  <bruno@clisp.org>
66001
66002         * m4/onceonly.m4: Require autoconf 2.54 or newer.
66003         (m4_quote): Remove macro.
66004         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
66005
66006 2003-03-14  Jim Meyering  <jim@meyering.net>
66007
66008         Merge changes from Coreutils.
66009         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
66010         to be const, in order to avoid warnings.
66011         (obstack_room): Likewise.
66012         (obstack_empty_p): Likewise.
66013
66014 2003-03-14  Bruno Haible  <bruno@clisp.org>
66015
66016         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
66017         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
66018
66019 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66020
66021         Merge changes from Bison.
66022         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
66023         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
66024         when compiling Bison 1.875's `bitset bset = obstack_alloc
66025         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
66026         * lib/hash.c: Include <stdbool.h> unconditionally.
66027
66028 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66029
66030         * m4/onceonly.m4 (m4_quote): New macro.
66031         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
66032         Quote AC_FOREACH variable-expansions properly.
66033
66034 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66035
66036         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
66037
66038 2003-03-09  Paul Eggert  <eggert@twinsun.com>
66039
66040         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
66041         Reported by Bruce Becker; see:
66042         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
66043
66044 2003-03-03  Paul Eggert  <eggert@twinsun.com>
66045             Bruno Haible  <bruno@clisp.org>
66046
66047         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
66048         Reported by John Hughes, see
66049         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
66050
66051 2003-02-20  Bruno Haible  <bruno@clisp.org>
66052
66053         * MODULES.html.sh (func_all_modules): Add poll.
66054
66055 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66056
66057         * modules/poll: New file.
66058
66059 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66060
66061         * lib/poll_.h: New file.
66062         * lib/poll.c: New file.
66063
66064 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66065
66066         * m4/poll.m4: New file.
66067
66068 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66069
66070         * modules/mathl: New file.
66071
66072 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66073
66074         * lib/mathl.h: New file.
66075         * lib/acosl.c: New file.
66076         * lib/asinl.c: New file.
66077         * lib/atanl.c: New file.
66078         * lib/ceill.c: New file.
66079         * lib/cosl.c: New file.
66080         * lib/expl.c: New file.
66081         * lib/floorl.c: New file.
66082         * lib/frexpl.c: New file.
66083         * lib/ldexpl.c: New file.
66084         * lib/logl.c: New file.
66085         * lib/sincosl.c: New file.
66086         * lib/sinl.c: New file.
66087         * lib/sqrtl.c: New file.
66088         * lib/tanl.c: New file.
66089         * lib/trigl.c: New file.
66090         * lib/trigl.h: New file.
66091
66092 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66093
66094         * m4/mathl.m4: New file.
66095
66096 2003-02-18  Bruno Haible  <bruno@clisp.org>
66097
66098         * MODULES.html.sh (func_all_modules): Add mathl.
66099
66100 2003-02-17  Bruno Haible  <bruno@clisp.org>
66101
66102         * modules/mkdtemp: New module.
66103         * MODULES.html.sh (func_all_modules): Add it.
66104
66105 2003-02-17  Bruno Haible  <bruno@clisp.org>
66106
66107         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
66108
66109 2003-02-17  Bruno Haible  <bruno@clisp.org>
66110
66111         * lib/mkdtemp.h: New file, from GNU gettext.
66112         * lib/mkdtemp.c: New file, from GNU gettext.
66113
66114 2003-02-02  Jim Meyering  <jim@meyering.net>
66115
66116         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
66117         e.g. glibc-2.2.93.
66118
66119 2003-01-31  Bruno Haible  <bruno@clisp.org>
66120
66121         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
66122         'rpl_rename'.
66123         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
66124         'rpl_strnlen'.
66125         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
66126         'rpl_strtod'.
66127         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
66128         'rpl_utime'.
66129
66130 2003-01-31  Bruno Haible  <bruno@clisp.org>
66131
66132         * lib/rename.c: #undef rename before defining rpl_rename.
66133         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
66134
66135 2003-01-30  Bruno Haible  <bruno@clisp.org>
66136
66137         * modules/vasnprintf, modules/vasprintf: New modules.
66138         * MODULES.html.sh (func_all_modules): Add them.
66139
66140 2003-01-30  Bruno Haible  <bruno@clisp.org>
66141
66142         * m4/signed.m4: New file, from GNU gettext.
66143         * m4/longdouble.m4: New file, from GNU gettext.
66144         * m4/wchar_t.m4: New file, from GNU gettext.
66145         * m4/wint_t.m4: New file, from GNU gettext.
66146         * m4/vasnprintf.m4: New file.
66147         * m4/vasprintf.m4: New file.
66148
66149 2003-01-30  Bruno Haible  <bruno@clisp.org>
66150
66151         * lib/printf-args.h: New file, from GNU gettext.
66152         * lib/printf-args.c: New file, from GNU gettext.
66153         * lib/printf-parse.h: New file, from GNU gettext.
66154         * lib/printf-parse.c: New file, from GNU gettext.
66155         * lib/vasnprintf.h: New file, from GNU gettext.
66156         * lib/vasnprintf.c: New file, from GNU gettext.
66157         * lib/asnprintf.c: New file, from GNU gettext.
66158         * lib/vasprintf.h: New file, from GNU gettext with modifications.
66159         * lib/vasprintf.c: New file, from GNU gettext.
66160         * lib/asprintf.c: New file, from GNU gettext.
66161
66162 2003-01-29  Bruno Haible  <bruno@clisp.org>
66163
66164         * modules/stpncpy: New module.
66165         * MODULES.html.sh (func_all_modules): Add it.
66166
66167 2003-01-29  Bruno Haible  <bruno@clisp.org>
66168
66169         * m4/stpncpy.m4: New file.
66170
66171 2003-01-29  Bruno Haible  <bruno@clisp.org>
66172
66173         * lib/stpncpy.h: New file, from GNU gettext with modifications.
66174         * lib/stpncpy.c: New file, from GNU gettext with modifications.
66175
66176 2003-01-28  Bruno Haible  <bruno@clisp.org>
66177
66178         * modules/c-ctype: New module.
66179         * MODULES.html.sh (func_all_modules): Add it.
66180
66181 2003-01-28  Bruno Haible  <bruno@clisp.org>
66182
66183         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
66184         Paul Eggert.
66185         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
66186         Paul Eggert.
66187
66188 2003-01-27  Bruno Haible  <bruno@clisp.org>
66189
66190         * modules/xsetenv: New module.
66191         * MODULES.html.sh (func_all_modules): Add it.
66192
66193 2003-01-27  Bruno Haible  <bruno@clisp.org>
66194
66195         * lib/xsetenv.h: New file, from GNU gettext.
66196         * lib/xsetenv.c: New file, from GNU gettext.
66197
66198 2003-01-23  Jim Meyering  <jim@meyering.net>
66199
66200         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
66201         from working on systems without dirfd (at least Irix and OSF1/Tru64).
66202
66203 2003-01-23  Bruno Haible  <bruno@clisp.org>
66204
66205         * modules/minmax: New module.
66206         * MODULES.html.sh (func_all_modules): Add it.
66207
66208 2003-01-23  Bruno Haible  <bruno@clisp.org>
66209
66210         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
66211         Eggert.
66212
66213 2003-01-22  Bruno Haible  <bruno@clisp.org>
66214
66215         * modules/exit: New module.
66216         * MODULES.html.sh (func_all_modules): Add it.
66217
66218 2003-01-22  Bruno Haible  <bruno@clisp.org>
66219
66220         * lib/exit.h: New file, from GNU gettext.
66221
66222 2003-01-19  Bruno Haible  <bruno@clisp.org>
66223
66224         * gnulib-tool: Recognize option --extract-maintainer.
66225         (func_get_maintainer): New function.
66226         * modules/*: Add Maintainer entry.
66227
66228 2003-01-16  Jim Meyering  <jim@meyering.net>
66229
66230         * m4/regex.m4: The `regex' struct is both input and output.
66231         Initialize it before each use.  Patch by Tim Waugh.
66232
66233 2003-01-16  Bruno Haible  <bruno@clisp.org>
66234
66235         * MODULES.html.sh: Add a table of contents. Add the module name as
66236         leftmost column. Add hyperlinks.
66237
66238 2003-01-15  Bruno Haible  <bruno@clisp.org>
66239
66240         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
66241
66242 2003-01-15  Bruno Haible  <bruno@clisp.org>
66243
66244         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
66245         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
66246         suffix.
66247
66248 2003-01-15  Bruno Haible  <bruno@clisp.org>
66249
66250         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
66251
66252 2003-01-15  Bruno Haible  <bruno@clisp.org>
66253
66254         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
66255         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
66256
66257 2003-01-14  Jim Meyering  <jim@meyering.net>
66258
66259         * lib/same.c (same_name): Tweak a comment.
66260
66261 2003-01-14  Bruno Haible  <bruno@clisp.org>
66262
66263         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
66264         when a string comparison is sufficient.
66265
66266 2003-01-14  Bruno Haible  <bruno@clisp.org>
66267
66268         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
66269         'unsigned int'.
66270
66271 2003-01-14  Bruno Haible  <bruno@clisp.org>
66272
66273         * lib/hash-pjw.c: Add comment about low quality of this function.
66274
66275 2003-01-13  Bruno Haible  <bruno@clisp.org>
66276
66277         * modules/stpcpy: Distribute lib/stpcpy.h.
66278         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
66279
66280 2003-01-13  Bruno Haible  <bruno@clisp.org>
66281
66282         * modules/*: Add a description.
66283         * modules/strpbrk: Fix Makefile.am snippet.
66284         * modules/strtoimax: Fix dependencies.
66285         * modules/strtoumax: Likewise.
66286
66287 2003-01-13  Bruno Haible  <bruno@clisp.org>
66288
66289         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
66290         * modules/alloca (Makefile.am): All object files depend on alloca.h.
66291         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
66292
66293 2003-01-13  Bruno Haible  <bruno@clisp.org>
66294
66295         * gnulib-tool (func_create_testdir): Store config/* files in the main
66296         directory.
66297         * config.rpath: Move to ...
66298         * config/config.rpath: ... here.
66299         * modules/gettext: Contains config/config.rpath, not config.rpath.
66300         * modules/iconv: Likewise.
66301
66302 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66303
66304         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66305         to avoid collisions with libcurses and libreadline.
66306
66307         * m4/getstr.m4: Remove.
66308         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
66309
66310 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66311
66312         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66313         to avoid collisions with libcurses and libreadline.
66314
66315         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
66316         * lib/getstr.h, getstr.c: Remove.
66317         * lib/getline.c: Include "getline.h", to check interface.
66318         Move body of old getstr.c here: this defines MIN_CHUNK and
66319         declares getdelim2, which is renamed from getstr.
66320         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
66321
66322         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
66323         All uses changed.
66324         * lib/linebuffer.h: Likewise.
66325         (readline): Remove backward-compatibility macro.
66326
66327 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66328
66329         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66330         to avoid collisions with libcurses and libreadline.
66331         * getstr: Remove.
66332         * MODULES.html.sh: Remove getstr.
66333         * modules/getline: Depend on unlocked-io, not getstr.
66334
66335 2003-01-12  Jim Meyering  <jim@meyering.net>
66336
66337         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
66338
66339 2003-01-10  Bruno Haible  <bruno@clisp.org>
66340
66341         * modules/alloca: Change Makefile.am requirements. Simplify Include
66342         requirements. Add lib/alloca_.h to file list.
66343
66344 2003-01-10  Bruno Haible  <bruno@clisp.org>
66345
66346         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
66347
66348 2003-01-10  Bruno Haible  <bruno@clisp.org>
66349
66350         * lib/alloca_.h: New file.
66351         * lib/getdate.y: Unconditionally include alloca.h.
66352         * lib/makepath.c: Likewise.
66353         * lib/setenv.c: Likewise.
66354         * lib/userspec.c: Likewise.
66355
66356 2003-01-09  Karl Berry  <karl@gnu.org>
66357
66358         * MODULES.html.sh: include `dirname $0` in PATH, to find
66359         gnulib-tool.
66360
66361 2003-01-09  Bruno Haible  <bruno@clisp.org>
66362
66363         * modules/stdbool: Change configure.ac, Makefile.am requirements.
66364         Simplify Include requirements. Add lib/stdbool.h.in to file list.
66365
66366 2003-01-09  Bruno Haible  <bruno@clisp.org>
66367
66368         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
66369
66370 2003-01-09  Bruno Haible  <bruno@clisp.org>
66371
66372         * lib/stdbool.h.in: New file.
66373
66374 2003-01-09  Bruno Haible  <bruno@clisp.org>
66375
66376         * gnulib-tool (func_all_modules): Ignore files ending in ~.
66377         * MODULES.html.sh: Likewise.
66378
66379 2003-01-08  Jim Meyering  <jim@meyering.net>
66380
66381         * lib/full-write.c: Undefine and define-away `const' after inclusion
66382         of errno.h, not before.  Suggestion from Bruno Haible.
66383
66384 2003-01-08  Bruno Haible  <bruno@clisp.org>
66385
66386         * modules/full-read: Depend on full-write.
66387
66388 2003-01-08  Bruno Haible  <bruno@clisp.org>
66389
66390         * lib/safe-read.c: Include specification header first, to ensure its
66391         selfcontainedness.
66392         * lib/full-write.c: Likewise.
66393
66394 2003-01-07  Jim Meyering  <jim@meyering.net>
66395
66396         * lib/full-write.c: Rework so that it may serve to define full_read,
66397         too.
66398         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
66399
66400 2003-01-07  Bruno Haible  <bruno@clisp.org>
66401
66402         * lib/strtoimax.c: Include <stdint.h> as an alternative to
66403         <inttypes.h>.
66404         * lib/xstrtol.h: Likewise.
66405         * lib/xstrtoimax.c: Likewise.
66406         * lib/xstrtoumax.c: Likewise.
66407         * lib/human.h: Likewise.
66408
66409         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
66410         on systems that have <inttypes.h> but not <stdint.h>.
66411
66412 2003-01-07  Bruno Haible  <bruno@clisp.org>
66413
66414         * MODULES.html.sh: Add copyright notice.
66415         (missed_files): Omit CVS directory entries.
66416         (func_module): Make it work with sed-3.02.
66417         * MODULES.txt: Remove file.
66418
66419 2003-01-06  Jim Meyering  <jim@meyering.net>
66420
66421         * lib/version-etc.c: Update year in translatable copyright string.
66422
66423 2003-01-03  Karl Berry  <karl@gnu.org>
66424
66425         * config/config.{guess,sub}: update from prep.
66426
66427 2003-01-02  Karl Berry  <karl@gnu.org>
66428
66429         * doc/COPYING.DOC: belatedly updated to 1.2.
66430
66431 2003-01-01  Karl Berry  <karl@gnu.org>
66432
66433         * gnulib-tool (func_verify_module): report module name $module in
66434         error message, not $1.
66435         * gnulib-tool (create-testdir): don't complain if destdir couldn't
66436         be created, only if it doesn't exist.
66437         * gnulib-tool (last_checkin_date): don't expand the $Date here.
66438
66439 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66440
66441         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
66442
66443 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66444
66445         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
66446         memcmp if strcoll doesn't work.
66447
66448 2002-12-31  Bruno Haible  <bruno@clisp.org>
66449
66450         * lib/utime.c (utime_null): No need to call ftruncate if the file was
66451         nonempty.
66452
66453 2002-12-31  Bruno Haible  <bruno@clisp.org>
66454
66455         * lib/memcoll.c (STRCOLL): New macro.
66456         (memcoll): Use it.
66457
66458 2002-12-31  Bruno Haible  <bruno@clisp.org>
66459
66460         * lib/localcharset.h: New file.
66461         * lib/localcharset.c: Include it.
66462         * lib/unicodeio.c: Likewise.
66463
66464 2002-12-31  Bruno Haible  <bruno@clisp.org>
66465
66466         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
66467         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
66468
66469 2002-12-31  Bruno Haible  <bruno@clisp.org>
66470
66471         * lib/getline.h: Include <stddef.h>, for size_t.
66472
66473         * lib/unicodeio.h: Include <stddef.h>, for size_t.
66474         * lib/unicodeio.c: Don't include <stddef.h>.
66475
66476 2002-12-31  Bruno Haible  <bruno@clisp.org>
66477
66478         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
66479         HAVE_TM_ZONE.
66480
66481 2002-12-24  Karl Berry  <karl@gnu.org>
66482
66483         * config/config.guess: update from prep.
66484
66485 2002-12-24  Bruno Haible  <bruno@clisp.org>
66486
66487         General infrasructure.
66488         * m4/README: Rewritten.
66489         * m4/onceonly.m4: New file.
66490         * m4/onceonly_2_57.m4: New file.
66491
66492         Module atexit.
66493         * m4/atexit.m4: New file.
66494
66495         Module strtod.
66496         * m4/strtod.m4: New file.
66497
66498         Module strtol.
66499         * m4/strtol.m4: New file.
66500
66501         Module strtoul.
66502         * m4/strtoul.m4: New file.
66503
66504         Module memchr.
66505         * m4/memchr.m4: New file.
66506
66507         Module memcmp.
66508         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
66509         (jm_FUNC_MEMCMP): Invoke it.
66510
66511         Module memcpy.
66512         * m4/memcpy.m4: New file.
66513
66514         Module memmove.
66515         * m4/memmove.m4: New file.
66516
66517         Module memset.
66518         * m4/memset.m4: New file.
66519
66520         Module strcspn.
66521         * m4/strcspn.m4: New file.
66522
66523         Module strpbrk.
66524         * m4/strpbrk.m4: New file.
66525
66526         Module strstr.
66527         * m4/strstr.m4: New file.
66528
66529         Module strerror.
66530         * m4/strerror.m4: New file.
66531
66532         Module mktime.
66533         * m4/mktime.m4: Renamed from jm-mktime.m4.
66534         (gl_PREREQ_MKTIME): New macro.
66535         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
66536
66537         Module malloc.
66538         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
66539         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
66540         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
66541
66542         Module realloc.
66543         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
66544         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
66545         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
66546
66547         Module strftime.
66548         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
66549         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
66550         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
66551         gl_TM_GMTOFF.
66552         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
66553
66554         Module xalloc.
66555         * m4/xalloc.m4: New file.
66556
66557         Module alloca.
66558         * m4/alloca.m4: New file.
66559
66560         Module putenv.
66561         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
66562         (jm_FUNC_PUTENV): Invoke it.
66563
66564         Module setenv.
66565         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
66566         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
66567         when invoked twice.
66568         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
66569         gt_FUNC_SETENV.
66570
66571         Module memrchr.
66572         * m4/memrchr.m4: New file.
66573
66574         Module stpcpy.
66575         * m4/stpcpy.m4: New file.
66576
66577         Module strcase.
66578         * m4/strcase.m4: New file.
66579
66580         Module strdup.
66581         * m4/strdup.m4: New file.
66582
66583         Module strnlen.
66584         * m4/strnlen.m4: New file.
66585
66586         Module strndup.
66587         * m4/strndup.m4: New file.
66588
66589         Module xstrtod.
66590         * m4/xstrtod.m4: New file.
66591
66592         Module xstrtol.
66593         * m4/xstrtol.m4: New file.
66594
66595         Module getdate.
66596         * m4/getdate.m4: New file.
66597
66598         Module unlocked-io.
66599         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
66600         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
66601         * m4/jm-glibc-io.m4n: Remove file.
66602
66603         Module long-options.
66604         * m4/long-options.m4: New file.
66605
66606         Module md5.
66607         * m4/md5.m4: New file.
66608
66609         Module sha.
66610         * m4/sha.m4: New file.
66611
66612         Module getstr.
66613         * m4/getstr.m4: New file.
66614
66615         Module getline.
66616         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
66617         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
66618         <sys/types.h>, for size_t. Use the function name gnu_getline, not
66619         simply getline. Infoke gl_PREREQ_GETLINE.
66620
66621         Module obstack.
66622         * m4/obstack.m4: New file.
66623
66624         Module hash.
66625         * m4/hash.m4: New file.
66626
66627         Module readtokens.
66628         * m4/readtokens.m4: New file.
66629
66630         Module strverscmp.
66631         * m4/strverscmp.m4: New file.
66632
66633         Module stdbool.
66634         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
66635         OSF/1.
66636
66637         Module strtoll.
66638         * m4/strtoll.m4: New file.
66639
66640         Module strtoull.
66641         * m4/strtoull.m4: New file.
66642
66643         Module strtoimax.
66644         * m4/strtoimax.m4: New file.
66645
66646         Module strtoumax.
66647         * m4/strtoumax.m4: New file.
66648
66649         Module xstrtoimax.
66650         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
66651         jm_AC_PREREQ_XSTRTOIMAX.
66652         Moved the strtol prerequisites to strtol.m4.
66653         Moved the strtoll prerequisites to strtoll.m4.
66654         Moved the strtoimax prerequisites to strtoimax.m4.
66655
66656         Module xstrtoumax.
66657         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
66658         jm_AC_PREREQ_XSTRTOUMAX.
66659         Moved the strtoul prerequisites to strtoul.m4.
66660         Moved the strtoull prerequisites to strtoull.m4.
66661         Moved the strtoumax prerequisites to strtoumax.m4.
66662
66663         Module chown.
66664         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
66665         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
66666
66667         Module dup2.
66668         * m4/dup2.m4: New file.
66669
66670         Module ftruncate.
66671         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
66672         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
66673
66674         Module getgroups.
66675         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
66676         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
66677
66678         Module gettimeofday.
66679         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
66680         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
66681         gl_PREREQ_GETTIMEOFDAY.
66682
66683         Module mkdir.
66684         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
66685         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
66686
66687         Module mkstemp.
66688         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
66689         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
66690         jm_AC_TYPE_UINTMAX_T.
66691         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
66692
66693         Module stat.
66694         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
66695         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
66696
66697         Module lstat.
66698         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
66699         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
66700
66701         Module timespec.
66702         * m4/timespec.m4 (gl_TIMESPEC): New macro.
66703         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
66704         * m4/st_mtim.m4: Indentation.
66705
66706         Module nanosleep.
66707         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
66708         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
66709         gl_PREREQ_NANOSLEEP.
66710
66711         Module regex.
66712         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
66713         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
66714         (gl_REGEX): New macro.
66715
66716         Module rename.
66717         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
66718         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
66719
66720         Module rmdir.
66721         * m4/rmdir.m4: New file.
66722
66723         Module utime.
66724         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
66725         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
66726         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
66727
66728         Module dirname.
66729         * m4/dirname.m4: New file.
66730
66731         Module getopt.
66732         * m4/getopt.m4: New file.
66733
66734         Module unistd-safer.
66735         * m4/unistd-safer.m4: New file.
66736
66737         Module fnmatch.
66738         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
66739         declaration.
66740         (gl_PREREQ_FNMATCH_EXTRA): New macro.
66741         (gl_FUNC_FNMATCH_POSIX): New macro.
66742         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
66743         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
66744         simply fnmatch.
66745
66746         Module exclude.
66747         * m4/exclude.m4: New file.
66748
66749         Module human.
66750         * m4/human.m4: New file.
66751
66752         Module acl.
66753         * m4/acl.m4: Nop.
66754
66755         Module backupfile.
66756         * m4/backupfile.m4: New file.
66757         * m4/d-ino.m4: Indentation.
66758
66759         Module fsusage.
66760         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
66761         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
66762         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
66763
66764         Module dirfd.
66765         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
66766         requirements.
66767
66768         Module euidaccess.
66769         * m4/euidaccess.m4: New file.
66770
66771         Module file-type.
66772         * m4/file-type.m4: New file.
66773
66774         Module fileblocks.
66775         * m4/fileblocks.m4: New file.
66776
66777         Module filemode.
66778         * m4/filemode.m4: New file.
66779
66780         Module isdir.
66781         * m4/isdir.m4: New file.
66782
66783         Module lchown.
66784         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
66785         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
66786
66787         Module makepath.
66788         * m4/makepath.m4: New file.
66789
66790         Module modechange.
66791         * m4/modechange.m4: New file.
66792
66793         Module mountlist.
66794         * m4/mountlist.m4: New file.
66795         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
66796         Indentation.
66797
66798         Module path-concat.
66799         * m4/path-concat.m4: New file.
66800
66801         Module pathmax.
66802         * m4/pathmax.m4: New file.
66803
66804         Module same.
66805         * m4/same.m4: New file.
66806
66807         Module save-cwd.
66808         * m4/save-cwd.m4: New file.
66809
66810         Module savedir.
66811         * m4/savedir.m4: New file.
66812
66813         Module xgetcwd.
66814         * m4/xgetcwd.m4: New file.
66815         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
66816
66817         Module xreadlink.
66818         * m4/xreadlink.m4: New file.
66819
66820         Module safe-read.
66821         * m4/safe-read.m4: New file.
66822
66823         Module safe-write.
66824         * m4/safe-write.m4: New file.
66825
66826         Module closeout.
66827         * m4/closeout.m4: New file.
66828
66829         Module stdio-safer.
66830         * m4/stdio-safer.m4: New file.
66831
66832         Module getpass.
66833         * m4/getpass.m4: New file.
66834
66835         Module getugroups.
66836         * m4/getugroups.m4: New file.
66837
66838         Module group-member.
66839         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
66840         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
66841
66842         Module idcache.
66843         * m4/idcache.m4: New file.
66844
66845         Module userspec.
66846         * m4/userspec.m4: New file.
66847
66848         Module gettime.
66849         * m4/clock_time.m4: New file.
66850         * m4/gettime.m4: New file.
66851
66852         Module settime.
66853         * m4/settime.m4: New file.
66854
66855         Module posixtm.
66856         * m4/posixtm.m4: New file.
66857
66858         Module gethostname.
66859         * m4/gethostname.m4: New file.
66860
66861         Module canon-host.
66862         * m4/canon-host.m4: New file.
66863
66864         Module gettext.
66865         * m4/codeset.m4: New file, from gettext-0.11.5.
66866         * m4/gettext.m4: New file, from gettext-0.11.5.
66867         * m4/glibc21.m4: New file, from gettext-0.11.5.
66868         * m4/iconv.m4: New file, from gettext-0.11.5.
66869         * m4/intdiv0.m4: New file, from gettext-0.11.5.
66870         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
66871         * m4/inttypes.m4: New file, from gettext-0.11.5.
66872         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
66873         * m4/isc-posix.m4: New file, from gettext-0.11.5.
66874         * m4/lcmessage.m4: New file, from gettext-0.11.5.
66875         * m4/lib-ld.m4: New file, from gettext-0.11.5.
66876         * m4/lib-link.m4: New file, from gettext-0.11.5.
66877         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
66878         * m4/progtest.m4: New file, from gettext-0.11.5.
66879         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
66880         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
66881         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
66882
66883         Module localcharset.
66884         * m4/localcharset.m4: New file.
66885
66886         Module hard-locale.
66887         * m4/hard-locale.m4: New file.
66888
66889         Module mbswidth.
66890         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
66891         onceonly macros.
66892         * m4/mbrtowc.m4: Add comment.
66893
66894         Module memcasecmp.
66895         * m4/memcasecmp.m4: New file.
66896
66897         Module memcoll.
66898         * m4/memcoll.m4: New file.
66899
66900         Module unicodeio.
66901         * m4/unicodeio.m4: New file.
66902
66903         Module rpmatch.
66904         * m4/rpmatch.m4: New file.
66905
66906         Module yesno.
66907         * m4/yesno.m4: New file.
66908
66909         Module exitfail.
66910         * m4/exitfail.m4: New file.
66911
66912         Module c-stack.
66913         * m4/c-stack.m4 (gl_C_STACK): New macro.
66914         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
66915
66916         Module error.
66917         * m4/error.m4 (gl_ERROR): New macro.
66918         (jm_PREREQ_ERROR): Use onceonly macros.
66919
66920         Module fatal.
66921         * m4/fatal.m4: New file.
66922
66923         Module getloadavg.
66924         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
66925         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
66926
66927         Module getpagesize.
66928         * m4/getpagesize.m4: New file.
66929
66930         Module getusershell.
66931         * m4/getusershell.m4: New file.
66932
66933         Module physmem.
66934         * m4/physmem.m4: New file.
66935
66936         Module posixver.
66937         * m4/posixver.m4: New file.
66938
66939         Module quotearg.
66940         * m4/quotearg.m4: New file.
66941
66942         Module quote.
66943         * m4/quote.m4: New file.
66944
66945         Module readutmp.
66946         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
66947
66948         Module sig2str.
66949         * m4/sig2str.m4: New file.
66950
66951         Other.
66952         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
66953         ulonglong.m4.
66954         * m4/intmax_t.m4: New file.
66955         * m4/d-type.m4: Indentation.
66956         * m4/jm-macros.m4: Update.
66957         * m4/prereq.m4 (jm_PREREQ): Update.
66958         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
66959         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
66960         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
66961         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
66962         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
66963         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
66964         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
66965         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
66966         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
66967         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
66968         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
66969         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
66970         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
66971         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
66972         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
66973         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
66974         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
66975         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
66976         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
66977
66978 2002-12-24  Bruno Haible  <bruno@clisp.org>
66979
66980         * MODULES.txt: Update according to m4/ changes.
66981
66982         Module gettext.
66983         * config.rpath: New file, from gettext-0.11.5.
66984
66985         * modules/*: New module descriptions.
66986         * gnulib-tool: New file.
66987         * MODULES.html.sh: New file.
66988
66989 2002-12-21  Karl Berry  <karl@gnu.org>
66990
66991         * doc/fdl.texi: update to version 1.2.
66992
66993 2002-12-19  Karl Berry  <karl@gnu.org>
66994
66995         * config/config.guess: update from prep.
66996
66997 2002-12-18  Bruno Haible  <bruno@clisp.org>
66998
66999         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
67000         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
67001
67002 2002-12-17  Bruno Haible  <bruno@clisp.org>
67003
67004         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
67005         stdlib.h, string.h.
67006
67007 2002-12-17  Bruno Haible  <bruno@clisp.org>
67008
67009         * lib/canon-host.c (strdup): Remove unused declaration.
67010
67011         * lib/fsusage.c: Include full_read.h.
67012         (get_fs_usage): Use full_read instead of safe_read.
67013
67014         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
67015
67016 2002-12-12  Karl Berry  <karl@gnu.org>
67017
67018         * config/config.guess: update from prep.
67019
67020 2002-12-11  Bruno Haible  <bruno@clisp.org>
67021
67022         * m4/setenv.m4: New file, from gettext-0.11.5.
67023
67024 2002-12-11  Bruno Haible  <bruno@clisp.org>
67025
67026         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
67027         not unsetenv().
67028         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
67029         modifications:
67030
67031         2002-12-11  Bruno Haible  <bruno@clisp.org>
67032
67033                 * setenv.c (alloca): Fall back to malloc.
67034                 (freea): New macro.
67035                 (setenv): Use freea() to free memory allocated with alloca().
67036
67037         2002-11-13  Bruno Haible  <bruno@clisp.org>
67038
67039                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
67040                 function declarations.
67041                 * unsetenv.c (unsetenv): Likewise.
67042
67043         2002-03-04  Bruno Haible  <bruno@clisp.org>
67044
67045                 Portability to AIX 4.3.3.
67046                 * unsetenv.c: New file, extracted from setenv.c.
67047                 * setenv.c: Move the unsetenv() function to unsetenv.c.
67048
67049         2001-12-20  Bruno Haible  <bruno@clisp.org>
67050
67051                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
67052                 use malloc instead. For SunOS 4.
67053
67054         2001-12-11  Bruno Haible  <bruno@clisp.org>
67055
67056                 * setenv.c: Declare alloca.
67057                 (compar_fn_t): New typedef.
67058                 (KNOWN_VALUE, STORE_VALUE): Use it.
67059
67060         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
67061         setenv.h.
67062
67063 2002-12-10  Paul Eggert  <eggert@twinsun.com>
67064
67065         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
67066         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
67067         Choose values that are less likely to collide with system fnmatch
67068         options.
67069         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
67070         defined (e.g., a pure POSIX system).
67071         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
67072         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
67073
67074 2002-12-06  Paul Eggert  <eggert@twinsun.com>
67075
67076         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
67077         a pain in practice to deal with generated m4 files.  This change
67078         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
67079
67080         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
67081         and jm-glibc-io.m4, as they are no longer a special case.
67082         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
67083         kludge and the auto-generation stuff.  Check only whether the
67084         functions are declared, not whether they exist, since older hosts
67085         that don't declare the functions can't use the optimization anyway.
67086
67087 2002-12-06  Jim Meyering  <jim@meyering.net>
67088
67089         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
67090
67091         Merge in changes from libc's misc/error.c, in preparation
67092         for the merge of gnulib's changes back into libc.
67093
67094         * lib/error.c (_): Define only if not already defined.
67095         Move definition to follow all #include directives.
67096         Include unlocked-io.h only if !_LIBC.
67097         [_LIBC]: Include <libio/libioP.h>.
67098         [USE_IN_LIBIO]: Include <libio/iolibio.h>
67099         (fflush): Tweak definition to use INTUSE.
67100         (putc): Define.
67101
67102 2002-12-05  Paul Eggert  <eggert@twinsun.com>
67103
67104         * lib/alloca.c [defined emacs]: Include "lisp.h".
67105         (xalloc_die) [defined emacs]: New macro.
67106         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
67107         [! defined emacs]: Include <xalloc.h>.
67108         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
67109         (pointer): Typedef to POINTER_TYPE *.
67110         (malloc): Remove decl; we now always use xmalloc.
67111         (alloca): Use old-style definition, since Emacs needs this.
67112         Check for arithmetic overflow when computing combined size.
67113
67114 2002-12-04  Paul Eggert  <eggert@twinsun.com>
67115
67116         Do not generate unlocked-io.h automatically, since it's easier to
67117         maintain it by hand.
67118
67119         * lib/unlocked-io.h: New file, from GNU diffutils,
67120         but with proper copyright notice and attribution.
67121         * lib/gen-uio: Remove.
67122         * lib/Makefile.am: Add copyright notice.
67123         (libfetish_a_SOURCES): Add unlocked-io.h.
67124         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
67125         (DISTCLEANFILES, io_functions): Remove macros.
67126         (EXTRA_DIST): Remove gen_uio.
67127         (unlocked-io.h): Remove rule.
67128
67129 2002-12-04  Jim Meyering  <jim@meyering.net>
67130
67131         Reflect the fact that stat.c and lstat.c are no longer generated.
67132         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
67133         (DISTCLEANFILES): Likewise.
67134         (EXTRA_DIST): Likewise.
67135         (all_local): Don't depend on stat.c or lstat.c.
67136         (stat.c, lstat.c): Remove rules.
67137         (EXTRA_DIST): Remove xstat.in.
67138
67139         * lib/xstat.in: Remove file.  Contents moved into stat.c.
67140         * lib/stat.c: New file.  Contents mostly from xstat.in.
67141         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
67142         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
67143
67144         * lib/safe-read.c: Rework so that it may serve to define safe_write,
67145         too.
67146         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
67147
67148 2002-12-03  Jim Meyering  <jim@meyering.net>
67149
67150         * lib/safe-read.c, safe-write.c: Change variable names and comments,
67151         but not semantics, to minimize the differences between these two files.
67152         (safe_read): Change comment to mention SAFE_READ_ERROR.
67153
67154         * lib/safe-read.c (IS_EINTR): Define.
67155         (safe_read): Use IS_EINTR in place of in-function cpp directives.
67156
67157 2002-12-02  Jim Meyering  <jim@meyering.net>
67158
67159         * lib/safe-read.c (EINTR): Define.
67160         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
67161         (INT_MAX): Provide fallback.
67162         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
67163
67164         * lib/safe-read.h (SAFE_READ_ERROR): Define.
67165
67166 2002-12-02  Bruno Haible  <bruno@clisp.org>
67167
67168         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
67169         Define, taken from safe-read.c.
67170         (INT_MAX): Provide fallback.
67171         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
67172         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
67173
67174         * lib/safe-read.c (EINTR): Remove definition.
67175         (safe_read): Don't use EINTR if it is absent.
67176
67177 2002-12-01  Jim Meyering  <jim@meyering.net>
67178
67179         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
67180         zero.
67181         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
67182
67183 2002-11-27  Paul Eggert  <eggert@twinsun.com>
67184
67185         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
67186         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
67187         with `if (! (value < limit)) abort ();', for readability.
67188
67189 2002-11-26  Karl Berry  <karl@gnu.org>
67190
67191         * lib/strdup.c: copy from libc again, with jim's ok.
67192         * lib/.cppi-disable: re-add strdup.c
67193
67194 2002-11-25  Karl Berry  <karl@gnu.org>
67195
67196         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
67197         instead of "strtol.c".
67198
67199 2002-11-25  Karl Berry  <karl@gnu.org>
67200
67201         * config/install-sh: update from automake for variable quoting, $0 in
67202         error msgs, etc.
67203
67204         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
67205         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
67206         entry.
67207
67208 2002-11-25  Jim Meyering  <jim@meyering.net>
67209
67210         * lib/mktime.c: Sync from libc, now that it has the latest fix.
67211
67212 2002-11-24  Karl Berry  <karl@gnu.org>
67213
67214         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
67215         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
67216
67217 2002-11-24  Jim Meyering  <jim@meyering.net>
67218
67219         Update from coreutils:
67220
67221         * lib/mktime.c: Merge in changes from libc.
67222
67223         Avoid a link-time failure on some Linux systems.
67224         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
67225         (otherwise).
67226         (__mon_yday): Declare with the STATIC attribute.
67227         (__mktime_internal): Likewise.
67228         Based on a report from Greg Schafer.
67229
67230 2002-11-23  Jim Meyering  <jim@meyering.net>
67231
67232         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
67233         Use `unsigned', not `int', as type of index.
67234
67235         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
67236
67237         * lib/fsusage.c: Remove unneeded parentheses around operands of
67238         `defined'.
67239
67240 2002-11-22  Paul Eggert  <eggert@twinsun.com>
67241
67242         * lib/quotearg.h: Allow multiple inclusion by surrounding with
67243         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
67244         so that we can be included first.
67245         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
67246         * lib/quotearg.c: Include quotearg.h immediately after config.h.
67247         No need to include stddef.h or sys/types.h any more.
67248         Surround local include files with "", not "<>".
67249         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
67250         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
67251         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
67252         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
67253         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
67254         (ISPRINT): Remove; no longer needed now that we assume C89.
67255
67256         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
67257         Preserve errno.
67258
67259         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
67260         quotearg_char): Use SIZE_MAX rather than
67261         (size_t) -1 when we are talking about "infinity".
67262
67263         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
67264
67265 2002-11-22  Paul Eggert  <eggert@twinsun.com>
67266
67267         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
67268         hint that one should use `if (! x) abort ();' rather than `assert
67269         (x);', and anyway it's one less thing to worry about configuring.
67270         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
67271         hash_rehash, hash_insert): Use abort rather than assert.
67272
67273 2002-11-22  Bruno Haible  <bruno@clisp.org>
67274
67275         * lib/safe-read.h: Assume C89. Add comments.
67276         (safe_read): Change return type to size_t.
67277         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
67278         byte counts > SSIZE_MAX correctly.
67279         * lib/safe-write.h: New file.
67280         * lib/safe-write.c: New file.
67281         * lib/full-read.h: New file.
67282         * lib/full-read.c: New file.
67283         * lib/full-write.h: Assume C89. Add comments.
67284         * lib/full-write.c: Include safe-write.h.
67285         (full_write): Rewritten to use safe_write.
67286         Suggested by Jim Meyering and Paul Eggert.
67287
67288 2002-11-21  Jim Meyering  <jim@meyering.net>
67289
67290         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
67291
67292         Merge in changes from the coreutils.
67293
67294         2002-09-25  Paul Eggert  <eggert@twinsun.com>
67295         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
67296         <stdint.h>.
67297         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
67298         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
67299         int.  Work more efficiently if X is the same width as uintmax_t.
67300         Do not compare X to -1, to avoid bogus compiler warning.
67301         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
67302         Don't assume that f_frsize and f_bsize are the same type.
67303
67304         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
67305         warning on FreeBSD.
67306
67307         * lib/makepath.c (make_path): Restore umask *before* creating the final
67308         component.
67309         (make_path): Minor reformatting.
67310
67311         * lib/xmalloc.c: Adjust to work with new autoconf macros,
67312         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
67313         HAVE_MALLOC/HAVE_REALLOC.
67314
67315         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
67316         dummy ones.  At least on GNU/Linux systems, `auto' means something
67317         else.
67318         From Michael Stone.
67319
67320 2002-11-21  Bruno Haible  <bruno@clisp.org>
67321
67322         Remove case insensitive option matching.
67323         * lib/argmatch.h (argcasematch): Remove declaration.
67324         (ARGCASEMATCH): Remove macro.
67325         (__xargmatch_internal): Remove case_sensitive argument.
67326         (XARGMATCH): Update.
67327         (XARGCASEMATCH): Remove macro.
67328         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
67329         case_sensitive argument.
67330         (argcasematch): Remove function.
67331         (__xargmatch_internal): Remove case_sensitive argument.
67332         (main): Use XARGMATCH instead of XARGCASEMATCH.
67333
67334         * lib/xmalloc.c: Change compile-time error message. Add comment about
67335         required autoconf version.
67336
67337 2002-11-20  Paul Eggert  <eggert@twinsun.com>
67338
67339         Merge argmatch cleanups from Bison.  Assume C89.
67340
67341         * lib/argmatch.c: Include config.h here, not in argmatch.h.
67342         Include stdlib.h, for EXIT_FAILURE.
67343         Always include <string.h>, since we assume C89.
67344         (EXIT_FAILURE): Remove pre-C89 bug workaround.
67345         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
67346         Include <stddef.h> instead, since it's all we need for size_t.
67347         (PARAMS): Remove.  All uses removed.
67348         (ARRAY_CARDINALITY): Do not bother to #undef.
67349         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
67350         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
67351         Remove unnecessary parentheses.
67352         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
67353         Insert necessary parentheses.
67354         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
67355         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
67356
67357 2002-11-19  Bruno Haible  <bruno@clisp.org>
67358
67359         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
67360         * lib/mbswidth.h: Include <stddef.h>, for size_t.
67361
67362         * lib/mbswidth.h (PARAMS): Remove macro.
67363         (mbswidth, mbsnwidth): Use ANSI C function declarations.
67364         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
67365
67366         * lib/gcd.h (PARAMS): Remove macro.
67367         (gcd): Use ANSI C function declarations.
67368         * lib/gcd.c (gcd): Likewise.
67369
67370 2002-11-15  Bruno Haible  <bruno@clisp.org>
67371
67372         * lib/strcspn.c: Include <stddef.h>.
67373         (strcspn): Use ANSI C function declaration. Change return type to
67374         size_t. Use NULL.
67375         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
67376         (strpbrk): Use NULL.
67377         * lib/strpbrk.h (PARAMS): Remove macro.
67378         (strpbrk): Use ANSI C function declaration.
67379         * lib/strstr.c: Don't include <sys/types.h>.
67380         * lib/strstr.h (PARAMS): Remove macro.
67381         (strstr): Use ANSI C function declarations.
67382
67383 2002-11-14  Karl Berry  <karl@gnu.org>
67384
67385         * config/mkinstalldirs: `do' on separate line, instead of
67386         `for var; do'.
67387
67388 2002-11-06  Bruno Haible  <bruno@clisp.org>
67389
67390         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
67391         * lib/gcd.c (gcd): Likewise.
67392
67393 2002-11-05  Bruno Haible  <bruno@clisp.org>
67394
67395         * lib/gcd.h: New file, from gettext-0.11.5.
67396         * lib/gcd.c: New file, from gettext-0.11.5.
67397
67398 2002-11-05  Bruno Haible  <bruno@clisp.org>
67399
67400         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67401         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67402         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67403         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67404
67405         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
67406         <libintl.h>.
67407         * lib/makepath.c: Include gettext.h instead of <locale.h> and
67408         <libintl.h>.
67409
67410         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
67411         * lib/human.c: Include gettext.h instead of <libintl.h>.
67412         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
67413         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
67414         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
67415         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
67416         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
67417         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
67418         (textdomain): Remove definition.
67419         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
67420
67421         * lib/long-options.c: Remove include of <libintl.h> and definition of
67422         _.
67423         * lib/same.c: Remove include of <libintl.h> and definition of _.
67424
67425 2002-11-04  Owen Taylor  <otaylor@redhat.com>
67426
67427         * lib/config.charset: A few additions for Solaris.
67428
67429 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67430
67431         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
67432         * lib/localcharset.c (locale_charset): Declare as extern "C".
67433
67434 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67435
67436         * lib/config.charset: msdos in uk_UA uses CP1125.
67437
67438 2002-11-04  Bruno Haible  <bruno@clisp.org>
67439
67440         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
67441         * lib/strcase.h: New file, from GNU gettext-0.11.5.
67442         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
67443         * lib/strstr.h: New file, from GNU gettext-0.11.5.
67444         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
67445
67446 2002-11-04  Bruno Haible  <bruno@clisp.org>
67447
67448         * lib/localcharset.c (locale_charset): Don't return an empty string.
67449
67450 2002-11-04  Bruno Haible  <bruno@clisp.org>
67451
67452         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
67453         aliases.
67454
67455 2002-11-04  Bruno Haible  <bruno@clisp.org>
67456
67457         * lib/config.charset: Update for newest glibc. Add canonical names
67458         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
67459
67460 2002-11-04  Bruno Haible  <bruno@clisp.org>
67461
67462         * lib/config.charset: Add support for NetBSD.
67463
67464 2002-11-04  Bruno Haible  <bruno@clisp.org>
67465
67466         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
67467
67468 2002-11-01  Bruno Haible  <bruno@clisp.org>
67469
67470         * configure.in: Add AC_CONFIG_AUX_DIR call.
67471         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
67472         test/Makefile.
67473         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
67474
67475 2002-09-28  Karl Berry  <karl@gnu.org>
67476
67477         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
67478         installed automake until the next release, since changes have been
67479         made.
67480
67481 2002-09-25  Karl Berry  <karl@gnu.org>
67482
67483         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
67484         * lib/getopt*: copy from libc/posix.
67485         * lib/gettext.h: copy from gettext.
67486         * lib/.cppi-disable: add strdup.c, gettext.h.
67487
67488 2002-09-25  Karl Berry  <karl@gnu.org>
67489
67490         * config/srclist.txt: enable gettext.h check.
67491         * config/config.{guess,sub}: update from prep.
67492         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
67493                 from automake 1.6.3.
67494         See srclist*.
67495
67496 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
67497
67498         * regex.c (PATFETCH): Remove the translating fetch.
67499         (PATFETCH_RAW): Rename to PATFETCH.
67500         (set_image_of_range): New fun.
67501         (SET_RANGE_TABLE_WORK_AREA): Use it.
67502         (regex_compile): Don't translate the pattern chars so eagerly.
67503         Only do it when inserting an `exactn' bytecode or when handling
67504         a char-range.
67505         (mutually_exclusive_p): Avoid empty statement.
67506
67507 2002-07-06  Jim Meyering  <meyering@lucent.com>
67508
67509         * m4/README: Don't mention Makefile.am.in.
67510         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
67511
67512 2002-07-01  Jim Meyering  <meyering@lucent.com>
67513
67514         * lib/c-stack.c: Include sys/time.h.
67515         From Volker Borchert.
67516
67517 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67518
67519         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
67520
67521 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67522
67523         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
67524         New macro.  Use it uniformly instead of
67525         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
67526         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
67527         reported by Vin Shelton.
67528
67529 2002-06-22  Paul Eggert  <eggert@twinsun.com>
67530
67531         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
67532         Do not assume SA_SIGINFO behavior.
67533         Bug reported by Jim Meyering on NetBSD 1.5.2.
67534
67535 2002-06-22  Jim Meyering  <meyering@lucent.com>
67536
67537         * m4/c-stack.m4: New file, from diffutils-2.8.2.
67538         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
67539
67540         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
67541         now that configure.ac uses AC_GNU_SOURCE.
67542         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
67543         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
67544
67545         Update to latest tools.  Suggestions from Paul Eggert.
67546         * m4/stdbool.m4: New file, from diffutils-2.8.2.
67547         * m4/gnu-source.m4: Update from diffutils-2.8.2.
67548         * m4/fnmatch.m4: Likewise.
67549         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
67550         to AC_HEADER_STDBOOL
67551
67552 2002-06-22  Jim Meyering  <meyering@lucent.com>
67553
67554         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
67555         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
67556
67557 2002-06-22  Jim Meyering  <meyering@lucent.com>
67558
67559         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
67560
67561         * lib/exitfail.c, exitfail.h: Likewise.
67562         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
67563
67564         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
67565         of fnmatch.h.
67566         (EXTRA_DIST): Add fnmatch_loop.c.
67567         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
67568
67569         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
67570         * lib/fnmatch.c: Update from diffutils-2.8.2.
67571         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
67572         * lib/fnmatch.h: Remove file.
67573
67574 2002-06-21  Jim Meyering  <meyering@lucent.com>
67575
67576         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
67577         * m4/mbrtowc.m4: Likewise.
67578
67579         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
67580         * m4/mbswidth.m4: Reflect name change:
67581         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
67582         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67583
67584         * m4/lib-link.m4: Update from gettext-0.11.2.
67585         * m4/gettext.m4: Likewise.
67586
67587         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
67588         From Alfred M. Szmidt.
67589
67590 2002-06-18  Paul Eggert  <eggert@twinsun.com>
67591
67592         * lib/file-type.h: Report an error if neither S_ISREG nor
67593         S_IFREG is defined, instead of using a test specific to glibc
67594         2.2.  This should be safe, since POSIX requires S_ISREG and
67595         Unix Version 7 had S_IFREG.  We don't need to check for
67596         <sys/types.h> since we don't use any symbols that it defines.
67597
67598 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
67599
67600         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
67601         $@-t, so that each temporary file name is unique and valid in the first
67602         8 characters, for operation under DOS.
67603
67604 2002-06-15  Paul Eggert  <eggert@twinsun.com>
67605
67606         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
67607
67608 2002-06-15  Jim Meyering  <meyering@lucent.com>
67609
67610         Work even with DJGPP 2.03, which lacks support for symlinks.
67611         From Richard Dawe.
67612         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
67613         is defined.
67614         * lib/lchown.c (S_ISLNK): Likewise.
67615
67616 2002-06-15  Jim Meyering  <meyering@lucent.com>
67617
67618         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
67619         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
67620         have been included before this file.
67621
67622 2002-06-14  Jim Meyering  <meyering@lucent.com>
67623
67624         * lib/file-type.h: Use the version from diffutils-2.8.2.
67625         * lib/file-type.c: Likewise.
67626
67627 2002-06-07  Jim Meyering  <meyering@lucent.com>
67628
67629         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
67630         They're needed at least for NetBSD 1.5.2.
67631         ($statxfs_includes): Include those same headers.
67632         ($statxfs_includes): Include sys/vfs.h if available.
67633         ($statxfs_includes): Likewise for sys/statvfs.h.
67634         Check for the following members in both structs statfs and statvfs:
67635         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
67636
67637 2002-06-01  Jim Meyering  <meyering@lucent.com>
67638
67639         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
67640         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
67641
67642 2002-05-28  Jim Meyering  <meyering@lucent.com>
67643
67644         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
67645         Reported by Volker Borchert.
67646
67647 2002-05-27  Jim Meyering  <meyering@lucent.com>
67648
67649         Fix a problem seen only on nonconforming systems whereby ls.c's
67650         use of localtime, and then of gettimeofday would cause trouble:
67651         the localtime call used to initialize rpl_gettimeofday's save
67652         mechanism would clobber ls's current local time information so
67653         that in any long listing the first file would always be listed
67654         with date 1970-01-01.  Analysis by Volker Borchert.
67655
67656         * lib/gettimeofday.c (localtime): Undefine.
67657         (rpl_localtime): New function.
67658
67659 2002-05-27  Jim Meyering  <meyering@lucent.com>
67660
67661         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
67662         localtime.
67663
67664         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
67665         use the replacement function; it wouldn't resolve at link time.
67666         Reported by Volker Borchert.
67667
67668 2002-05-22  Jim Meyering  <meyering@lucent.com>
67669
67670         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
67671         file-type.h.
67672         * lib/file-type.h: New file.
67673         * lib/file-type.c (file_type): New file/function.  Extracted from
67674         diffutils.
67675
67676 2002-04-30  Jim Meyering  <meyering@lucent.com>
67677
67678         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
67679
67680 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67681
67682         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
67683
67684 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67685
67686         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
67687         Do not check for alloca.h (no longer used) or stdbool.h (was never
67688         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
67689
67690 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67691
67692         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
67693
67694 2002-04-29  Jim Meyering  <meyering@lucent.com>
67695
67696         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
67697         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
67698         Use AC_FUNC_STRNLEN here instead.
67699
67700         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
67701         With autoconf-2.53a, it's part of AC_PROG_CC.
67702
67703 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67704
67705         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
67706         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
67707
67708 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67709
67710         * lib/sig2str.h, lib/sig2str.c: New files.
67711         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
67712
67713 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67714
67715         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
67716         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
67717         of 127, since 64 is the largest conceivable number for ancient
67718         nonstandard hosts.
67719         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
67720
67721 2002-04-28  Jim Meyering  <meyering@lucent.com>
67722
67723         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
67724
67725 2002-04-24  Jim Meyering  <meyering@lucent.com>
67726
67727         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
67728         (jm_PREREQ): Use it.
67729
67730         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
67731         mach/mach.h fcntl.h.
67732         Check for this function: setlocale.
67733
67734 2002-04-24  Jim Meyering  <meyering@lucent.com>
67735
67736         * lib/gettext.h: New file, from Gettext.
67737         * lib/Makefile.am (INCLUDES): Remove -I../intl.
67738         (libfetish_a_SOURCES): Add gettext.h.
67739
67740 2002-04-16  Jim Meyering  <meyering@lucent.com>
67741
67742         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
67743         ut_pid, ut_id, ut_exit.
67744
67745 2002-04-16  Jim Meyering  <meyering@lucent.com>
67746
67747         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
67748         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
67749         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
67750
67751 2002-04-12  Jim Meyering  <meyering@lucent.com>
67752
67753         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
67754         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
67755         existence of the getmntinfo function.  Needed for Darwin 5.3.
67756
67757         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
67758         This is necessary at least on Darwin 5.3.
67759
67760         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
67761         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
67762         strnlen.o in the library, and that makes some versions of ranlib
67763         object.
67764
67765 2002-04-12  Jim Meyering  <meyering@lucent.com>
67766
67767         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
67768
67769 2002-04-09  Jim Meyering  <meyering@lucent.com>
67770
67771         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
67772         to be more precise.  Rather than saying we're checking whether the
67773         function `works', say what we're testing.
67774         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
67775         Reported by Bruno Haible.
67776
67777 2002-03-10  Jim Meyering  <meyering@lucent.com>
67778
67779         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
67780         Suggestion from Santiago Vila.
67781
67782 2002-03-08  Jim Meyering  <meyering@lucent.com>
67783
67784         * lib/rename.c: Mention that this wrapper is needed also on
67785         mips-dec-ultrix4.4 systems.
67786
67787 2002-03-02  Jim Meyering  <meyering@lucent.com>
67788
67789         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
67790         not HAVE_CLOCK_SETTIME.
67791
67792 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67793
67794         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
67795         Check for clock_settime.
67796
67797 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67798
67799         * lib/nanosleep.h: Rename to....
67800         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
67801
67802         * lib/gettime.c: New file.
67803         * lib/settime.c: New file.
67804         * lib/stime.c: Remove.
67805
67806         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
67807         timespec.h.  Remove nanosleep.h.
67808
67809 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67810
67811         * m4/acl.m4: New file.
67812         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
67813         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
67814
67815 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67816
67817         * lib/acl.c, lib/acl.h: New files.
67818         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
67819
67820 2002-02-24  Jim Meyering  <meyering@lucent.com>
67821
67822         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
67823         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
67824         cause trouble.  Reported by Nelson Beebe.
67825
67826 2002-02-23  Paul Eggert  <eggert@twinsun.com>
67827
67828         * lib/path-concat.c (xpath_concat): Reorder code to pacify
67829         compilers that don't know that xalloc_die never returns.
67830
67831 2002-02-20  Jim Meyering  <meyering@lucent.com>
67832
67833         * lib/getdate.c: Regenerate using bison-1.33.
67834
67835 2002-02-17  Jim Meyering  <meyering@lucent.com>
67836
67837         * config/config.guess (main): Don't use `head -1'; it's no longer
67838         portable. Use `sed 1q' instead.
67839
67840 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
67841
67842         * m4/codeset.m4: Upgrade to gettext-0.11.
67843         * m4/gettext.m4: Upgrade to gettext-0.11.
67844         * m4/glibc21.m4: Upgrade to gettext-0.11.
67845         * m4/iconv.m4: Upgrade to gettext-0.11.
67846         * m4/isc-posix.m4: Upgrade to gettext-0.11.
67847         * m4/lcmessage.m4: Upgrade to gettext-0.11.
67848         * m4/lib-ld.m4: New file, from gettext-0.11.
67849         * m4/lib-link.m4: New file, from gettext-0.11.
67850         * m4/lib-prefix.m4: New file, from gettext-0.11.
67851         * m4/progtest.m4: Upgrade to gettext-0.11.
67852
67853 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67854
67855         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
67856         (jm_PREREQ): Use it.
67857
67858 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67859
67860         * lib/posixver.c, lib/posixver.h: New files.
67861         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67862
67863 2002-02-02  Paul Eggert  <eggert@twinsun.com>
67864             Bruno Haible  <bruno@clisp.org>
67865
67866         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
67867         (fwrite_success_callback): New declaration.
67868         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
67869         print_unicode_char. Call failure callback instead of error.
67870         (fwrite_success_callback): New function.
67871         (exit_failure_callback): New function.
67872         (fallback_failure_callback): New function.
67873         (print_unicode_char): Call unicode_to_mb.
67874
67875 2002-01-26  Jim Meyering  <meyering@lucent.com>
67876
67877         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
67878         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
67879
67880 2002-01-26  Jim Meyering  <meyering@lucent.com>
67881
67882         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
67883
67884 2002-01-22  Paul Eggert  <eggert@twinsun.com>
67885
67886         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
67887
67888 2002-01-22  Jim Meyering  <meyering@lucent.com>
67889
67890         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
67891         Otherwise, some versions of automake would omit the rule that makes
67892         Makefile from Makefile.in.
67893
67894 2002-01-21  Paul Eggert  <eggert@twinsun.com>
67895
67896         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
67897         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67898         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
67899         (memcoll): Set errno to zero if there is no error.
67900
67901         * lib/quotearg.c (quotearg_buffer_restyled):
67902         Fix bug with quoting buffers containing NUL when backslashing escapes.
67903         This bug was exposed by the other changes in this patch.
67904         (quotearg_n_options): New arg ARGSIZE.
67905         All callers changed.
67906         (quoting_options_from_style): New function.
67907         (quotearg_n_style): Use it.
67908         (quotearg_n_style_mem): New function.
67909
67910         * lib/quotearg.h (quotearg_n_style_mem): New function.
67911
67912 2002-01-19  Jim Meyering  <meyering@lucent.com>
67913
67914         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
67915         Remove useless quotes: DF_PROG="df".
67916         * m4/strnlen.m4: New file.
67917
67918 2002-01-16  Paul Eggert  <eggert@twinsun.com>
67919
67920         * lib/backupfile.c (ISDIGIT): Comment fix.
67921         * lib/getdate.y (ISDIGIT): Likewise.
67922         * lib/posixtm.c (ISDIGIT, year): Likewise.
67923         * lib/strverscmp.c (ISDIGIT): Likewise.
67924         * lib/userspec.c (ISDIGIT): Likewise.
67925
67926 2002-01-16  Jim Meyering  <meyering@lucent.com>
67927
67928         * lib/getdate.y: Add three semicolons, each just before a closing
67929         brace. Bison (as of version 1.31) no longer papers over that mistake.
67930
67931 2002-01-05  Jim Meyering  <meyering@lucent.com>
67932
67933         * lib/version-etc.c (version_etc_copyright): Update copyright year.
67934
67935 2001-12-19  Paul Eggert  <eggert@twinsun.com>
67936
67937         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
67938         not silently exit merely because the output buffer happens to
67939         have nothing pending.
67940
67941 2001-12-18  Paul Eggert  <eggert@twinsun.com>
67942
67943         See the big note in ../ChangeLog.
67944         * lib/human.c (suffixes): Prefer K to k for 1024.
67945         (generate_suffix_backwards): New function.
67946         (human_readable_inexact): Use it.
67947         * lib/xstrtol.c (__xstrtol): If there is no number but there
67948         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
67949         Accept 'K' as well as 'k'.
67950
67951 2001-12-15  Jim Meyering  <meyering@lucent.com>
67952
67953         * lib/regex.h (__restrict_arr): Update from libc.
67954
67955         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
67956         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
67957         (STREQ): Define.
67958
67959 2001-12-14  Jim Meyering  <meyering@lucent.com>
67960
67961         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
67962         Suggestion from Bruno Haible.
67963
67964 2001-12-10  Jim Meyering  <meyering@lucent.com>
67965
67966         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
67967         xrealloc, Instead, include "xalloc.h".
67968         (initbuffer): Don't cast xmalloc return value to char*.
67969         (readline): Reword comment.
67970         Don't cast xrealloc return value to char*
67971         Return NULL, not 0.
67972
67973 2001-12-09  Jim Meyering  <meyering@lucent.com>
67974
67975         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
67976         about `signed and unsigned type in conditional expression'.
67977         * lib/posixtm.c (posix_time_parse): Likewise.
67978
67979         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
67980
67981         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
67982         to avoid a pedantic warning.
67983
67984         * lib/getstr.c: Don't include assert.h.
67985         (getstr): Remove warning-evoking assertions.
67986         Return -1 if offset parameter is out of bounds.
67987         Change the type of a local from int to size_t.
67988
67989         * lib/strftime.c (my_strftime_localtime_r): Include this function
67990         definition in the `#if ! HAVE_TM_GMTOFF' block.
67991
67992         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
67993         Include xalloc.h instead.
67994
67995 2001-12-02  Jim Meyering  <meyering@lucent.com>
67996
67997         * lib/tempname.c: Don't declare getenv, thus reverting the change of
67998         2001-11-18.  It's no longer necessary, now that stdlib.h is always
67999         included.
68000
68001         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
68002         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
68003
68004 2001-11-30  Akim Demaille  <akim@epita.fr>
68005
68006         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
68007         before being defined.
68008
68009 2001-11-27  Paul Eggert  <eggert@twinsun.com>
68010
68011         * lib/quotearg.h (quotearg_n, quotearg_n_style):
68012         First arg is int, not unsigned.
68013         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
68014         (SIZE_MAX, UINT_MAX): New macros.
68015         (quotearg_n_options): Abort if N is negative.
68016         Avoid overflow check on hosts where size_t is 64 bits and int
68017         is 32 bits, as overflow is impossible there.
68018         Fix off-by-one typo that caused unnecessary reallocation.
68019
68020 2001-11-27  Jim Meyering  <meyering@lucent.com>
68021
68022         * lib/tempname.c: Merge with version from libc.
68023         * lib/regex.c: Likewise.
68024
68025         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
68026         systems for which STDC_HEADERS is 0, it was not included, resulting in
68027         a warning about an integer-to-pointer conversion problem with getenv.
68028         Reported by Volker Borchert.
68029
68030 2001-11-26  Jim Meyering  <meyering@lucent.com>
68031
68032         * lib/gtod.h: Remove file.
68033         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
68034         * lib/gettimeofday.c: Don't include gtod.h.
68035         (GTOD_init): Remove function.
68036         (rpl_gettimeofday): Do its job here instead, rather than aborting.
68037         Suggestion from Volker Borchert.
68038
68039 2001-11-23  Jim Meyering  <meyering@lucent.com>
68040
68041         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
68042         it.
68043         * lib/hash.c (struct hash_table): Define it here instead.
68044
68045 2001-11-22  Jim Meyering  <meyering@lucent.com>
68046
68047         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
68048
68049 2001-11-20  Jim Meyering  <meyering@lucent.com>
68050
68051         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
68052         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
68053
68054 2001-11-19  Jim Meyering  <meyering@lucent.com>
68055
68056         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
68057         directory.  Use "conftestXXXXXX" as the template.
68058         Suggestion from Paul Eggert.
68059
68060         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
68061         immediately, so the test doesn't mistakenly hit the max-open-files
68062         limit.
68063
68064 2001-11-18  Paul Eggert  <eggert@twinsun.com>
68065
68066         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
68067         (TEMPORARIES): New macro.
68068         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
68069         removes an artificial limitation (e.g. HP-UX 10.20, where
68070         TMP_MAX is 17576).
68071
68072 2001-11-18  Jim Meyering  <meyering@lucent.com>
68073
68074         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
68075
68076 2001-11-18  Jim Meyering  <meyering@lucent.com>
68077
68078         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
68079         on SunOS 4.
68080
68081         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
68082         files will be created before anything else.
68083
68084 2001-11-17  Paul Eggert  <eggert@twinsun.com>
68085
68086         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
68087         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
68088
68089 2001-11-17  Jim Meyering  <meyering@lucent.com>
68090
68091         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
68092         Prompted by a report from Bob Proulx.
68093
68094         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
68095         Instead, require UTILS_FUNC_MKSTEMP.
68096
68097 2001-11-17  Jim Meyering  <meyering@lucent.com>
68098
68099         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
68100         Now, that's done as part of AC_FUNC_STRTOD.
68101
68102 2001-11-17  Jim Meyering  <meyering@lucent.com>
68103
68104         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
68105         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
68106         rather than group writable.  Patch by Juan F. Codagnone.
68107
68108         * lib/readtokens.c: Remove explicit declarations of xmalloc and
68109         xrealloc, Instead, include "xalloc.h".
68110
68111         * lib/mountlist.c: Include unlocked-io.h after all system headers.
68112         Remove explicit declarations of xmalloc, xrealloc,
68113         and xstrdup.  Instead, include "xalloc.h".
68114
68115         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
68116         unlocked-io.h.
68117         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
68118         Likewise.
68119         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
68120
68121         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
68122         Reported by Padraig Brady.
68123
68124         * lib/mkstemp.c: #undef mkstemp.
68125         Include config.h.
68126         (rpl_mkstemp): Rename from mkstemp.
68127         Protoize.
68128
68129 2001-11-16  Jim Meyering  <meyering@lucent.com>
68130
68131         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
68132         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
68133         determine the amount of total physical memory, use pstat_getstatic.
68134         HPUX-11 doesn't define _SC_PHYS_PAGES.
68135         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
68136         If sysconf couldn't be used to determine the amount of available
68137         physical memory, use both pstat_getstatic and pstat_getdynamic.
68138         Based on a patch from Bob Proulx.
68139
68140 2001-11-10  Jim Meyering  <meyering@lucent.com>
68141
68142         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
68143         (jm_PREREQ): Use it.
68144
68145 2001-11-09  Jim Meyering  <meyering@lucent.com>
68146
68147         * m4/jm-macros.m4: Require autoconf-2.52f.
68148         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
68149         Use these AC_-prefixed names, not the AM_-prefixed ones.
68150
68151         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
68152
68153 2001-11-05  Jim Meyering  <meyering@lucent.com>
68154
68155         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
68156
68157 2001-11-04  Jim Meyering  <meyering@lucent.com>
68158
68159         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
68160         $DEFS.
68161
68162 2001-11-03  Jim Meyering  <meyering@lucent.com>
68163
68164         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
68165         of AC_DEFUN.
68166
68167         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
68168         know the name of the variable in the macro definition.
68169
68170 2001-11-03  Jim Meyering  <meyering@lucent.com>
68171
68172         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
68173         in argmatch_to_argument call.
68174
68175         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
68176         argument.
68177
68178         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
68179         e.g., a fault due to an attempt to free a NULL pointer.
68180
68181 2001-11-01  Jim Meyering  <meyering@lucent.com>
68182
68183         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
68184         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
68185
68186 2001-11-01  Jim Meyering  <meyering@lucent.com>
68187
68188         * lib/dirfd.c, lib/dirfd.h: New files.
68189         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
68190
68191         * lib/hash.c (hash_print) [TESTING]: Clean up.
68192
68193 2001-10-22  Paul Eggert  <eggert@twinsun.com>
68194
68195         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
68196         to avoid a warning if -Wall.
68197
68198 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
68199
68200         * README: New file
68201         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
68202         (per RMS's instructions, this is now the canonical source)
68203         * lgpl/, gpl/: New directories.
68204
68205 2001-10-21  Paul Eggert  <eggert@twinsun.com>
68206
68207         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
68208
68209 2001-10-21  Jim Meyering  <meyering@lucent.com>
68210
68211         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
68212         this code would end up calling gettext even in packages built
68213         with --disable-nls.
68214         * lib/getopt.c (_): Likewise.
68215         * lib/regex.c (_): Likewise.
68216
68217 2001-10-20  Paul Eggert  <eggert@twinsun.com>
68218
68219         * m4/error.m4 (jm_PREREQ_ERROR):
68220         Do not invoke AC_CHECK_FUNCS with strerror_r, as
68221         AC_FUNC_STRERROR_R does that.
68222         Check for strerror declaration.
68223
68224         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
68225         are supposed to have them these days.
68226         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
68227         Merge changes from latest Autoconf CVS.
68228         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
68229         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
68230         POSIX decided to standardize on the int flavor of strerror_r.
68231
68232 2001-10-20  Paul Eggert  <eggert@twinsun.com>
68233
68234         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
68235         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
68236         Use strerror_r that is only a macro, even if it is not a function.
68237         (strerror): Check for HAVE_DECL_STRERROR before declaring.
68238         (private_strerror): Use prototypes, not old-style function definition.
68239         (print_errno_message): New function.
68240         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
68241         char*-flavored one.
68242         (error_tail, error, error_at_line): Use it.
68243
68244 2001-10-11  Jim Meyering  <meyering@lucent.com>
68245
68246         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
68247         and quote_n (1, ... to avoid clobbering a buffer.
68248
68249 2001-10-05  Jim Meyering  <meyering@lucent.com>
68250
68251         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
68252         hash-pjw.h.
68253         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
68254         * lib/hash-pjw.h: New file.
68255
68256 2001-09-30  Jim Meyering  <meyering@lucent.com>
68257
68258         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
68259         `struct fsstat' has the `f_fstypename' member.
68260         Use that to define FS_TYPE, which is now used to make
68261         the getfsstat link test tighter.
68262
68263 2001-09-30  Jim Meyering  <meyering@lucent.com>
68264
68265         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
68266         Include <sys/ucred.h>, for Apple Darwin.
68267         Include sys/mount.h and sys/fs_types.h only if available.
68268         (FS_TYPE): Define.
68269         (read_filesystem_list): Use FS_TYPE.
68270
68271 2001-09-29  Paul Eggert  <eggert@twinsun.com>
68272
68273         * lib/exclude.c (excluded_filename): 0 -> false, since it's
68274         a boolean context.
68275
68276 2001-09-29  Jim Meyering  <meyering@lucent.com>
68277
68278         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
68279         [one-argument getmntent function]): Include stdio.h before mntent.h.
68280         SunOS 4.1.x needs it for the declaration of `FILE'.
68281         Patch by Volker Borchert.
68282
68283         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
68284         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
68285         sys/fs_types.h, and make the link-test for getfsstat guard #include
68286         directives with appropriate #if HAVE_*_H tests so that we can
68287         detect getfsstat on Apple Darwin1.3.7 systems.
68288         Reported by Nelson Beebe.
68289         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
68290
68291 2001-09-28  Paul Eggert  <eggert@twinsun.com>
68292
68293         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
68294         #defines strtoimax.  Also treat the other strto* functions
68295         like strtoimax.
68296
68297         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68298         Check for strtoul and strtoumax,
68299         as those declarations are made even in the signed case.
68300         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
68301         Likewise, for strtol and strtoimax.
68302
68303 2001-09-28  Paul Eggert  <eggert@twinsun.com>
68304
68305         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
68306         #defines strtoimax.  Also treat the other strto* functions
68307         like strtoimax.
68308
68309         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
68310         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
68311         (strtoimax, strtoumax): Do not declare if already defined as a macro.
68312
68313 2001-09-26  Jim Meyering  <meyering@lucent.com>
68314
68315         Most macros in unlocked-io.h had the wrong number of arguments.
68316         * lib/gen-uio: New script.
68317         (USE_UNLOCKED_IO): Define to 1 if not already defined.
68318         * lib/unlocked-io.hin: Remove file.
68319         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
68320         rather than trying to embed it here.
68321         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
68322         Reported by Padraig Brady.
68323
68324 2001-09-25  Volker Borchert  <bt@teknon.de>
68325
68326         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
68327         `result'.
68328
68329 2001-09-24  Jim Meyering  <meyering@lucent.com>
68330
68331         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
68332
68333 2001-09-23  Jim Meyering  <meyering@lucent.com>
68334
68335         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
68336         instead of the mere test for existence of mntent.h.  The latter
68337         would get a false-positive on AIX 3.4 systems.
68338         In the outer getmntent if-block, don't die if neither of the getmntent
68339         tests succeeds.  Instead, just fall through and continue with the
68340         remaining tests.
68341
68342 2001-09-23  Jim Meyering  <meyering@lucent.com>
68343
68344         * lib/mountlist.c: Remove useless parentheses in #if directives.
68345         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
68346         the deprecated MOUNTED symbol is no longer defined in mntent.h.
68347
68348 2001-09-22  Jim Meyering  <meyering@lucent.com>
68349
68350         * m4/gettext.m4: New file.  From gettext.
68351         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
68352         * m4/progtest.m4: Likewise
68353         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
68354         * m4/glibc21.m4: Likewise.
68355
68356         * m4/libintl.m4: Remove.  No longer used.
68357
68358 2001-09-22  Jim Meyering  <meyering@lucent.com>
68359
68360         * lib/localcharset.c: Update from latest gettext.
68361         * lib/config.charset: Likewise.
68362
68363 2001-09-20  Jim Meyering  <meyering@lucent.com>
68364
68365         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
68366         strtoimax.
68367         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
68368         strtoumax.
68369
68370 2001-09-20  Jim Meyering  <meyering@lucent.com>
68371
68372         * lib/xstrtol.c (strtoimax): Guard declaration with
68373         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
68374         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
68375         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
68376         (strtoumax): Likewise, for completeness (it wasn't necessary).
68377
68378 2001-09-17  Paul Eggert  <eggert@twinsun.com>
68379
68380         * lib/strtoimax.c (HAVE_LONG_LONG):
68381         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
68382         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
68383         to work around bug in IBM C compiler.
68384
68385 2001-09-17  Jim Meyering  <meyering@lucent.com>
68386
68387         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
68388         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
68389         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
68390         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
68391         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
68392         whenever the right hand side need not be expanded by the shell.
68393
68394 2001-09-16  Paul Eggert  <eggert@twinsun.com>
68395
68396         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
68397         library.  It's not correct, as some older glibcs are buggy.
68398         fnmatch wasn't fixed until glibc 2.2.
68399
68400         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
68401         special shell magic here.
68402
68403 2001-09-16  Jim Meyering  <meyering@lucent.com>
68404
68405         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
68406         * m4/jm-macros.m4: Require it.
68407
68408 2001-09-16  Jim Meyering  <meyering@lucent.com>
68409
68410         * lib/mkdir.c: New file.
68411
68412 2001-09-15  Jim Meyering  <meyering@lucent.com>
68413
68414         * m4/jm-macros.m4: Check for help2man.
68415
68416 2001-09-11  Jim Meyering  <meyering@lucent.com>
68417
68418         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
68419         The body, by Paul Eggert, was moved here from configure.in.
68420         * m4/jm-macros.m4: Require UTILS_HOST_OS.
68421
68422 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68423
68424         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
68425         (jm_PREREQ): Use it.
68426
68427 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68428
68429         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
68430         Use ssize_t, not int, to store result of readlink.
68431         Check for ssize_t overflow as well as size_t overflow,
68432         as POSIX says the result of readlink is implementation-defined
68433         when ssize_t overflows.
68434         Remove unnecessary cast to char*.
68435         Use free+malloc instead of realloc, as the storage doesn't need
68436         to be preserved and it's clearer and can be more efficient that way.
68437         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
68438         * lib/xreadlink.h (xreadlink): Update prototype.
68439
68440 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68441
68442         * lib/xgetcwd.c: Revert some of the previous change; intead,
68443         fix the HAVE_GETCWD_NULL code to behave more like the
68444         !HAVE_GETCWD_NULL code used to.
68445
68446         Include "xalloc.h".
68447         (xgetcwd): Do not return NULL when memory is exhausted; instead,
68448         invoke xalloc_die.
68449
68450 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68451
68452         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
68453         sys/param.h, as pathmax.h includes them.
68454
68455 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68456
68457         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
68458         (jm_PREREQ_XGETCWD): New macro.
68459
68460         * m4/getcwd.m4: New file.
68461
68462 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68463
68464         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
68465         like the HAVE_GETCWD_NULL code.
68466         Include pathmax.h if not HAVE_GETCWD.
68467         Do not include xalloc.h.
68468         (INITIAL_BUFFER_SIZE): New symbol.
68469         Do not use xmalloc / xrealloc, since the caller is responsible for
68470         handling errors.  Preserve errno around `free' during failure.
68471         Do not overrun buffer when using getwd.
68472
68473 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68474
68475         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
68476         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
68477         getcwd (NULL, 0).
68478
68479 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68480
68481         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
68482         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
68483         spotted by Jim Meyering.
68484
68485 2001-09-03  Jim Meyering  <meyering@lucent.com>
68486
68487         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
68488         failure.
68489
68490 2001-09-02  Jim Meyering  <meyering@lucent.com>
68491
68492         * lib/error.c: Update from GNU libc.
68493
68494 2001-09-01  Jim Meyering  <meyering@lucent.com>
68495
68496         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
68497         Used by df.
68498
68499 2001-09-01  Jim Meyering  <meyering@lucent.com>
68500
68501         * lib/xreadlink.c: New file.
68502         * lib/xreadlink.h: New file.
68503         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
68504         xreadlink.h.
68505
68506         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
68507         doesn't conflict with sparc Solaris 7's definition in
68508         /usr/include/sys/int_types.h.
68509
68510         * lib/exclude.c: Use `""', not `<>' to #include non-system header
68511         files.
68512         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
68513         and strncasecmp as r-values.  Unixware didn't have declarations.
68514
68515 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68516
68517         * lib/xstrtol.h: Add copyright notice.
68518         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
68519         LONGINT_INVALID_SUFFIX_CHAR.
68520
68521 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68522
68523         * lib/xstrtol.c (strtoimax): New decl.
68524
68525 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68526
68527         * lib/xgetcwd.c: Don't include pathmax.h.
68528         Include stdlib.h and unistd.h if available.
68529         Include xalloc.h.
68530         (xmalloc, xstrdup, free): Remove decls.
68531         (xgetcwd): Don't assume sizes fit in unsigned.
68532         Check for overflow when computing sizes.
68533         Simplify reallocation code.
68534
68535 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68536
68537         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
68538         a directory's st_size can have an arbitrary value, so the old
68539         usage could waste an arbitrary amount of memory.  All uses
68540         changed.
68541         * lib/savedir.h: Update prototype.
68542
68543 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68544
68545         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
68546
68547         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
68548         old strtoimax.c.
68549
68550         Also, make the following further changes to make this file's
68551         configuration more similar to that of strtol.c:
68552         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
68553         (strtoumax, uintmax_t, strtoull, strtol): Remove.
68554         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
68555         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
68556         changed to signed values.
68557
68558         And make the following changes as well:
68559         Fix copyright notice, as 1999 was missing.
68560         (verify): New macro.
68561         (strtoimax): Check sizes at compile-time, not run-time.
68562         Prefer strtol to strtoll if both work.
68563         (main): Remove; it was not that useful and was a pain to maintain.
68564
68565         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
68566
68567 2001-08-31  Jim Meyering  <meyering@lucent.com>
68568
68569         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
68570         Use an initial, malloc'd, buffer of length 128 rather than
68571         a statically allocated one of length 1024.
68572
68573 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68574
68575         Simplify code, partly by assuming autoconf 2.52 semantics.
68576
68577         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
68578
68579         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
68580         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
68581         All uses removed.
68582         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
68583         Move AC_REQUIRE to next-to-top level, to avoid confusion.
68584         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
68585         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
68586         jm_AC_HEADER_INTTYPES_H.
68587         * m4/jm-macros.m4 (jm_MACROS): Likewise.
68588
68589         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
68590
68591         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68592         Quote first arg of AC_DEFUN.
68593         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
68594         since they are needed to parse the include file even if we need
68595         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
68596         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
68597         but with opposite signedness.
68598
68599 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68600
68601         Merge 'exclude' changes from tar 1.13.22.
68602         This fixes one or two unlikely storage allocation overflow bugs,
68603         but doesn't change user-visible behavior otherwise.
68604
68605 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68606
68607         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
68608         (jm_PREREQ_EXCLUDE): New macro.
68609
68610 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68611
68612         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
68613         tm to be declared.
68614
68615 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68616
68617         * lib/hash.c: Remove '2001' from copyright notice.
68618
68619 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68620
68621         * lib/full-write.h: New file.
68622         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
68623         * lib/full-write.c: Correct credits, as cccp.c no longer
68624         exists and anyway it was so heavily changed from the old cccp
68625         code as to be unrecognizable.  Include full-write.h.
68626         (full_write) Return size_t, with short writes meaning failure.
68627         All callers changed.  This fixes a bug with large buffers
68628         on 64-bit hosts.
68629         * lib/utime.c: Include full-write.h.
68630
68631 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68632
68633         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
68634         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
68635         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
68636         Include if available.
68637         (<xalloc.h>): Include
68638         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
68639         (verify): New macro.  Use it to verify that EXCLUDE macros do not
68640         collide with FNM macros.
68641         (struct patopts): New struct.
68642         (struct exclude): Use it, as exclude patterns now come with options.
68643         (new_exclude): Support above changes.
68644         (new_exclude, add_exclude_file):
68645         Initial size must now be a power of two to simplify overflow checking.
68646         (free_exclude, fnmatch_no_wildcards): New function.
68647         (excluded_filename): No longer requires options arg, as the options
68648         are determined by add_exclude.  Now returns bool, not int.
68649         (excluded_filename, add_exclude):
68650         Add support for the fancy new exclusion options.
68651         (add_exclude, add_exclude_file): Now takes int options arg.
68652         Check for arithmetic overflow when computing sizes.
68653         (add_exclude_file): xrealloc might modify errno, so don't
68654         realloc until after errno might be used.
68655
68656         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
68657         New macros.
68658         (free_exclude): New decl.
68659         (add_exclude, add_exclude_file): Now takes int options arg.
68660         (excluded_filename): No longer requires options arg, as the options
68661         are determined by add_exclude.  Now returns bool, not int.
68662
68663 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68664
68665         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
68666
68667 2001-08-27  Jim Meyering  <meyering@lucent.com>
68668
68669         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
68670
68671         * lib/version-etc.c (N_): Remove definition.
68672         Revert most of last change.
68673         Instead, simply don't mark the `Copyright...' string for translation.
68674         Based on advice from Paul Eggert.
68675
68676         * lib/strtoxmax.c: Tweak comment.
68677
68678 2001-08-26  Jim Meyering  <meyering@lucent.com>
68679
68680         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
68681
68682         * m4/xstrtoimax.m4: New file.
68683         * m4/xstrtoumax.m4: Add comments explaining why we
68684         AC_REPLACE_FUNCS(strtol).
68685
68686 2001-08-26  Jim Meyering  <meyering@lucent.com>
68687
68688         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
68689         of copyright with `%s' so translators don't get an untranslated
68690         message in 2002.
68691         (COPYRIGHT_YEAR): Define.
68692         (version_etc): Use fprintf rather than fputs.
68693         Suggestion from Ulrich Drepper.
68694
68695         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
68696
68697         * lib/strtoll.c: New file, from GNU libc.
68698         * lib/xstrtoimax.c: New file.
68699
68700         * lib/xstrtol.h: Add xstrtoimax.
68701         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
68702         * lib/strtoimax.c: New file.  Likewise, but first define
68703         STRTOUXMAX_SIGNED.
68704
68705         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
68706         ...
68707         * lib/strtoxmax.c: ... then renamed to this.
68708
68709 2001-08-18  Paul Eggert  <eggert@twinsun.com>
68710
68711         * m4/inttypes.m4: Add AC_PREREQ(2.13).
68712         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
68713         (jm_AC_TYPE_INTMAX_T): New macro.
68714         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
68715
68716         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
68717
68718         * m4/longlong.m4: Renamed from ulonglong.m4.
68719         * m4/inttypes.m4: Renamed from inttypes_h.m4.
68720         * m4/uintmax_t.m4: Removed.
68721
68722 2001-08-13  Paul Eggert  <eggert@twinsun.com>
68723
68724         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
68725         Port to Solaris 8, where 'sed' requires a space after the 'r'
68726         command, and where sh dislikes "$/".  Clean up the spacing a bit.
68727         Redirect output to $tmp just once.
68728
68729 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
68730
68731         * lib/addext.c (<errno.h>): Include.
68732         (errno): Declare if not defined.
68733         (addext): Work correctly when pathconf returns -1 and leaves
68734         errno alone because there is no limit.  Also, work even if
68735         pathconf returns a value greater than SIZE_MAX.
68736
68737 2001-08-12  Jim Meyering  <meyering@lucent.com>
68738
68739         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
68740         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
68741         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
68742         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
68743         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
68744         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
68745         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
68746         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
68747         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
68748         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
68749         utime.m4, utimes.m4, xstrtoumax.m4:
68750         Quote the first argument in each use of AC_DEFUN.
68751
68752 2001-08-12  Jim Meyering  <meyering@lucent.com>
68753
68754         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
68755         Simply `return getcwd (NULL, 0);'.
68756         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
68757         Use 1300 as initial value for length, not PATH_MAX.
68758
68759         * lib/pathmax.h: Clean up cpp syntax.
68760
68761 2001-08-12  Jim Meyering  <meyering@lucent.com>
68762
68763         * lib/gettimeofday.c: New file.
68764         * lib/gtod.h: New file.
68765         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
68766
68767 2001-08-05  Jim Meyering  <meyering@lucent.com>
68768
68769         * m4/jm-macros.m4: Require autoconf-2.52.
68770
68771 2001-08-04  Jim Meyering  <meyering@lucent.com>
68772
68773         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
68774         stmt, to get in sync with glibc.
68775
68776 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68777
68778         The following changes are from gettext 0.10.39 as maintained by
68779         Bruno Haible.
68780
68781         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
68782         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
68783         with inverted sense.  All uses changed.
68784
68785         * lib/mbswidth.c: Don't include <limits.h>.
68786         Include <stdlib.h> and <string.h> unconditionally.
68787         (iswcntrl, mbsinit, ISCNTRL): New macros.
68788         (mbsnwidth): Use K&R style function declarations.
68789         Don't bother checking for MB_LEN_MAX == 1, since the compiler
68790         can optimize it when MB_CUR_MAX == 1.
68791         The width of control characters is zero, not 1.
68792
68793 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68794
68795         The following changes are from gettext 0.10.39 as maintained by
68796         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
68797
68798         * m4/codeset.m4: Upgrade to serial AM1.
68799         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
68800         all uses changed.  Quote first arg of AC_DEFUN.
68801         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
68802
68803         * m4/iconv.m4: Upgrade to serial AM2.
68804         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
68805         Add --with-libconv-prefix.
68806         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
68807         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
68808         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
68809         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
68810         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
68811
68812         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
68813         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
68814         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
68815         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
68816         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
68817         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
68818         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
68819         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
68820         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68821
68822         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
68823         string.h any more.
68824
68825         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
68826         not the default value.
68827
68828         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
68829         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
68830         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
68831         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
68832         Also check for iswcntrl, used for wcwidth fallback.
68833         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
68834         to Autoconf 2.13.
68835
68836 2001-08-03  Jim Meyering  <meyering@lucent.com>
68837
68838         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
68839         as it was in the original.  Reported by Paul Eggert.
68840
68841 2001-07-16  Jim Meyering  <meyering@lucent.com>
68842
68843         * m4/gettimeofday.m4: New file.
68844         Prompted by a report from Bernhard Baehr.
68845
68846 2001-07-15  Jim Meyering  <meyering@lucent.com>
68847
68848         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
68849         stuff. Now it's in ../Makefile.cfg.
68850
68851 2001-07-15  Jim Meyering  <meyering@lucent.com>
68852
68853         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
68854         (BUILT_SOURCES): Add unlocked-io.h.
68855         (io_functions): Define.
68856         (unlocked-io.h): New rule.
68857         (DISTCLEANFILES): Add unlocked-io.h.
68858         (all-local): Depend on unlocked-io.h, to ensure it is created.
68859
68860         * lib/unlocked-io.hin: New file
68861
68862         * lib/regex.c: Update from glibc.
68863
68864 2001-07-05  Jim Meyering  <meyering@lucent.com>
68865
68866         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
68867         recommendation.
68868         (libfetish_a_SOURCES): Put all .h files here instead.
68869         Remove a thus-exposed (better checks in automake) duplicate and
68870         two unnecessary .h files.
68871
68872 2001-07-04  Jim Meyering  <meyering@lucent.com>
68873
68874         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
68875         that generates jm-glibc-io.m4 so that it doesn't trigger any make
68876         distcheck failure.
68877
68878 2001-07-02  Jim Meyering  <meyering@lucent.com>
68879
68880         The following changes were prompted by suggestions from Bruno Haible.
68881
68882         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
68883         is now generated.
68884         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
68885         definition of EXTRA_DIST.
68886         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
68887         ensure that the generated file is created/updated whenever the list
68888         of $(unlocked_functions) is changed.
68889         (jm-glibc-io.m4): New rule.
68890         (unlocked-io.h): New rule -- currently unused.
68891
68892 2001-06-24  Jim Meyering  <meyering@lucent.com>
68893
68894         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
68895         unmatched right bracket, rather than kludging it with an extra,
68896         falsely-matching quote in a comment.  Patch by Akim Demaille.
68897
68898 2001-06-11  Jim Meyering  <meyering@lucent.com>
68899
68900         * lib/regex.c: Update from GNU libc.
68901
68902 2001-05-27  Jim Meyering  <meyering@lucent.com>
68903
68904         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
68905         Check for ut_type in struct utmp.
68906
68907 2001-05-27  Jim Meyering  <meyering@lucent.com>
68908
68909         * lib/readutmp.h (UT_TYPE): Define.
68910
68911 2001-05-24  Jim Meyering  <meyering@lucent.com>
68912
68913         * lib/argmatch.c: Include "quote.h".
68914         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
68915         quote function.  Reported by Göran Uddeborg.
68916
68917 2001-05-22  Jim Meyering  <meyering@lucent.com>
68918
68919         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
68920         now that we use the package-supplied version unconditionally.
68921         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
68922
68923 2001-05-21  Jim Meyering  <meyering@lucent.com>
68924
68925         * m4/regex.m4: Change a couple backticks to single quotes to avoid
68926         shell syntax errors.
68927
68928 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68929
68930         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
68931
68932 2001-05-20  Paul Eggert  <eggert@twinsun.com>
68933
68934         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
68935         Don't bother to check library strftime, since
68936         we'll be using our own my_strftime function anyway.
68937         Define my_strftime instead of strftime.
68938
68939 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
68940
68941         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
68942         which is not yet declared.
68943
68944 2001-05-15  Jim Meyering  <meyering@lucent.com>
68945
68946         * m4/regex.m4: Use proper quoting so brackets appear in the test
68947         program.
68948         Reported by, and with help from, Bruno Haible.
68949
68950 2001-05-13  Jim Meyering  <meyering@lucent.com>
68951
68952         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
68953         undefined.
68954
68955 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68956
68957         dirname code cleanup.  base_name now behaves more compatibly
68958         with POSIX basename when given file names that have trailing
68959         slashes, and similarly for dir_name.  Add new primitives
68960         base_len and dir_len.  Put the directory-name-related decls
68961         into dirname.h.
68962
68963         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
68964         * lib/backupfile.c (base_name): Likewise.
68965         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
68966         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
68967         * lib/makepath.c (strip_trailing_slashes): Likewise.
68968         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
68969         ISSLASH): Likewise.
68970         * lib/rename.c (strip_trailing_slashes): Likewise.
68971         * lib/same.c (base_name): Likewise.
68972         * lib/stripslash.c (ISSLASH): Likewise.
68973
68974         * lib/addext.c: Include <dirname.h> after size_t is defined.
68975         * lib/backupfile.c: Likewise.
68976
68977         * lib/addext.c (addext): Use base_len to trim redundant
68978         trailing slashes instead of doing it ourselves.
68979         But do not trim the last slash if it is not redundant.
68980
68981         * lib/backupfile.c (find_backup_file_name,
68982         max_backup_version): Use base_len instead of rolling it ourselves.
68983         Handle the case of "" and (on DOS) "C:" correctly.
68984
68985         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
68986         needed. Include <string.h>, <dirname.h>.
68987         (base_name): Allow file names ending in slashes, other than names
68988         that are all slashes.  In this case, return the basename followed
68989         by the slashes.  This is more general, and can be used in places
68990         where the original base_name purposely had an assertion failure.
68991         (base_len): New function.
68992
68993         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
68994         Do not include <assert.h>; no longer needed.
68995         Include xalloc.h.
68996         (memrchr): Remove decl.
68997         (dir_name_r): Remove.
68998         (dir_len): Renamed from dirlen.  All callers changed.
68999         Rewrite in terms of base_name, for simplicity and consistency.
69000         (dir_name): Never return NULL.  All callers changed.
69001         Do not include <stdlib.h> in test program; no longer needed.
69002         return 0; is fine for test program.
69003
69004         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
69005         New macros.
69006         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
69007
69008         * lib/path-concat.c (path_concat): Use base_len to compute
69009         base length, not strlen; this means we cannot rely on memcpy
69010         to null-terminate.
69011
69012         * lib/same.c (STREQ): Remove.
69013         (same_name): Handle the case where the basename ends in trailing '/'.
69014
69015         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
69016         a slash was stripped.  Do not strip the last slash after a
69017         file system prefix.
69018
69019 2001-05-11  Paul Eggert  <eggert@twinsun.com>
69020
69021         * lib/Makefile.am (libfetish_a_SOURCES):
69022         Add strftime.c, since we now compile it on all hosts.
69023
69024         * lib/strftime.c (my_strftime):
69025         Define to nstrftime if emacs, but only if my_strftime is not defined.
69026         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
69027         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
69028         Add one more extra argument: a nanoseconds value.
69029         All uses changed.
69030         (ns): New macro.
69031         (my_strftime function): Add %N format.
69032         (emacs_strftimeu): Renamed from emacs_strftime,
69033         with extra ut argument.
69034
69035 2001-05-09  Paul Eggert  <eggert@twinsun.com>
69036
69037         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
69038
69039 2001-04-21  Jim Meyering  <meyering@lucent.com>
69040
69041         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
69042         doesn't interfere.
69043
69044 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
69045
69046         * m4/ftruncate.m4: Check for chsize.
69047         Link with ftruncate.o unconditionally if ftruncate is missing.
69048         This was required when cross-compiling to i586-mingw32msvc.
69049
69050 2001-04-08  Jim Meyering  <meyering@lucent.com>
69051
69052         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
69053         recomputed; that's necessary when the offset spans a DST transition.
69054         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
69055
69056 2001-04-02  Jim Meyering  <meyering@lucent.com>
69057
69058         * lib/regex.h, regex.c: Update from GNU libc.
69059
69060 2001-03-24  Jim Meyering  <meyering@lucent.com>
69061
69062         * m4/jm-macros.m4: Require autoconf-2.49d.
69063
69064 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
69065
69066         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
69067
69068 2001-03-19  Paul Eggert  <eggert@twinsun.com>
69069
69070         * lib/version-etc.c (version_etc_copyright): Update to 2001.
69071
69072 2001-03-17  Jim Meyering  <meyering@lucent.com>
69073
69074         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
69075         now that the version in autoconf is equivalent.
69076         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
69077
69078         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
69079         Suggestion from Akim Demaille.
69080
69081         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
69082         (jm_PREREQ_TEMPNAME): New function.
69083
69084 2001-03-16  Paul Eggert  <eggert@twinsun.com>
69085
69086         * lib/tempname.c (uint64_t): Define to uintmax_t if
69087         not defined, and if UINT64_MAX is not defined.
69088         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
69089         Reported by John David Anglin.
69090
69091 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
69092
69093         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
69094         resolve alias if codeset is empty.
69095         * lib/config.charset (BeOS): Use wildcard syntax.
69096
69097 2001-03-13  Jim Meyering  <meyering@lucent.com>
69098
69099         * lib/path-concat.c (path_concat)
69100         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
69101         concatenating e.g., `C:' and `foo'.
69102         From Bruno Haible.
69103
69104 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
69105
69106         * lib/localcharset.c (locale_charset): Don't use
69107         setlocale(LC_CTYPE,NULL). Don't return NULL.
69108         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
69109
69110 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
69111
69112         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
69113         support for DOS/DJGPP.
69114
69115 2001-03-01  Paul Eggert  <eggert@twinsun.com>
69116
69117         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
69118         lacks mkstemp.  Compile our own tempname.c if we compile our own
69119         mkstemp.c, as mkstemp relies on tempname.
69120
69121 2001-03-01  Jim Meyering  <meyering@lucent.com>
69122
69123         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
69124         AH_VERBATIM really does output its argument verbatim.
69125
69126 2001-02-28  Paul Eggert  <eggert@twinsun.com>
69127
69128         * lib/Makefile.am (libfetish_a_SOURCES):
69129         Add dup-safer.c, fopen-safer.c.
69130         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
69131
69132         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
69133         * lib/unistd-safer.h: New files.
69134
69135 2001-02-25  Paul Eggert  <eggert@twinsun.com>
69136
69137         The mkstemp replacement is taken from glibc 2.2.2, with some
69138         portability fixes for use outside glibc, as follows:
69139
69140         * lib/tempname.c (struct_stat64): New macro.
69141         (direxists, __gen_tempname): Use it.
69142         This avoids a portability problem with Solaris 8.
69143
69144         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
69145         (<stddef.h>, <stdint.h>, <string.h>):
69146         Include only if STDC_HEADERS || _LIBC.
69147         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
69148         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
69149         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
69150         (__set_errno): Define this macro if <errno.h> doesn't.
69151         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
69152         Define these macros if <stdio.h> doesn't.
69153         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
69154         Define these macros if <sys/stat.h>
69155         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
69156         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
69157         __xstat64): Define if not _LIBC.
69158         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
69159         (__gen_tempname): Invoke gettimeofday only if
69160         HAVE_GETTIMEOFDAY || _LIBC;
69161         otherwise, fall back on plain "time".
69162         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
69163
69164         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
69165
69166         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
69167
69168 2001-02-18  Paul Eggert  <eggert@twinsun.com>
69169
69170         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
69171
69172 2001-02-17  Paul Eggert  <eggert@twinsun.com>
69173
69174         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
69175         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
69176         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
69177         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
69178
69179 2001-02-17  Paul Eggert  <eggert@twinsun.com>
69180
69181         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
69182         Remove workaround macros for hosts that have mbrtowc but not
69183         mbstate_t, as we now insist on proper declarations for both
69184         before using mbrtowc.
69185
69186 2001-02-17  Jim Meyering  <meyering@lucent.com>
69187
69188         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
69189         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
69190         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
69191         UnixWare 7.1.1.
69192
69193         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
69194         rather than AC_CACHE_VAL.
69195
69196 2001-02-17  Jim Meyering  <meyering@lucent.com>
69197
69198         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
69199         around included file name.
69200
69201         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
69202
69203         * lib/strftime.c: Update from GNU libc (the only changes were to
69204         comments).
69205
69206 2001-02-17  Jim Meyering  <meyering@lucent.com>
69207
69208         * lib/regex.c: Update from libc.
69209
69210 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
69211
69212         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
69213         clash.
69214
69215 2001-02-16  Paul Eggert  <eggert@twinsun.com>
69216
69217         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
69218         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
69219         Reported by Mark Hounschell via Paul Eggert.
69220
69221 2001-02-07  Jim Meyering  <meyering@lucent.com>
69222
69223         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
69224
69225 2001-02-05  Jim Meyering  <meyering@lucent.com>
69226
69227         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
69228         it includes the patch required for `large file' support with at least
69229         HP-UX's 10.20 /bin/cc.
69230
69231 2001-02-03  Jim Meyering  <meyering@lucent.com>
69232
69233         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
69234         AS_IF, now that it works once again (mysteriously).
69235         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
69236
69237 2001-01-30  Jim Meyering  <meyering@lucent.com>
69238
69239         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
69240         * m4/chown.m4: Rename conftestchown to conftest.chown.
69241         * m4/rename.m4: s/conftestdir/conftest.d1/ and
69242         s/conftestdir2/conftest.d2/.
69243         * m4/utimes.m4: s/conftestdata/conftest.data/
69244         Inspired by Pavel Roskin's change in autoconf.
69245
69246 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
69247
69248         * lib/config.charset: Update for FreeBSD 4.2.
69249
69250 2001-01-27  Jim Meyering  <meyering@lucent.com>
69251
69252         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
69253         a use of AS_IF.
69254         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
69255
69256 2001-01-26  Jim Meyering  <meyering@lucent.com>
69257
69258         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
69259         quotearg.c includes it.
69260
69261 2001-01-26  Jim Meyering  <meyering@lucent.com>
69262
69263         * lib/quotearg.c: Include stddef.h.
69264         * lib/quote.c: Include stddef.h.
69265         Reported by Axel Kittenberger.
69266
69267         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
69268         line in double quotes so that it evokes a better diagnostic.
69269         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
69270         Reported by Axel Kittenberger.
69271
69272 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
69273
69274         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
69275         as if it was a `charset'.
69276
69277 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
69278
69279         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
69280         has const.
69281
69282 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
69283
69284         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
69285         to avoid a warning.  Add back 'const' to inptr.
69286
69287 2001-01-20  Jim Meyering  <meyering@lucent.com>
69288
69289         Be sure that headers are checked before used in code compiled
69290         for the type checks.
69291         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
69292         In place of that, invoke jm_CHECK_ALL_TYPES.
69293         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
69294         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
69295         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
69296         The check for ssize_t was mistakenly run before the test for unistd.h.
69297
69298         The configure-time check for stdbool.h was missing.
69299         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
69300         (jm_PREREQ_HASH): New function.
69301
69302 2001-01-17  Jim Meyering  <meyering@lucent.com>
69303
69304         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
69305         for autoconf-2.49c.
69306         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
69307
69308 2001-01-16  Jim Meyering  <meyering@lucent.com>
69309
69310         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
69311         From Bruno Haible.
69312
69313 2001-01-14  Jim Meyering  <meyering@lucent.com>
69314
69315         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
69316         foo and bar.  Create conftestdir/ in the script, not in the C code.
69317         Remove directories in the script, not in the C code.
69318         Remove conftestdir{,2} before trying to create the directory.
69319         Make the entire configure script fail if the mkdir fails.
69320
69321 2001-01-14  Jim Meyering  <meyering@lucent.com>
69322
69323         * lib/rename.c: New file.  From Volker Borchert.
69324         Include stdlib.h, string.h or strings.h, and xalloc.h.
69325         Use strip_trailing_slashes rather than open-coding it.
69326
69327 2001-01-03  Paul Eggert  <eggert@twinsun.com>
69328
69329         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
69330
69331 2001-01-03  Jim Meyering  <meyering@lucent.com>
69332
69333         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
69334         of local `inptr' to avoid warning with some system declarations of
69335         iconv.
69336
69337 2001-01-02  Volker Borchert  <bt@teknon.de>
69338
69339         * m4/rename.m4: New file.
69340         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
69341
69342 2001-01-01  Jim Meyering  <meyering@lucent.com>
69343
69344         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
69345         even on systems with utmpx.h.  It's necessary for the declaration of
69346         utmp's ut_user member.  Reported by Andreas Jaeger.
69347
69348         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
69349         available. They are required for the declarations of getgrgid and
69350         getpwuid resp.
69351         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
69352         Reported by Andreas Jaeger.
69353
69354 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
69355
69356         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
69357         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
69358         so `make install' also works in VPATH builds.
69359
69360 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
69361
69362         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
69363         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
69364         can be used in subdirectories.
69365
69366 2000-12-29  Paul Eggert  <eggert@twinsun.com>
69367
69368         * lib/modechange.c: Do not assume that mode_t uses the
69369         traditional octal encoding.  E.g. "chmod 1 FOO" should set
69370         the other-execute bit of FOO even if S_IXOTH != 1.
69371
69372         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
69373         WOTH, XOTH, ALLM): New macros.
69374         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
69375          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
69376         Use them.
69377         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
69378         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
69379         (mode_compile):
69380         No need to use uintmax_t; unsigned long is long enough.
69381         Don't bother to get suffix since we don't use it.
69382
69383 2000-12-26  Jim Meyering  <meyering@lucent.com>
69384
69385         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
69386         better with autoheader.
69387
69388 2000-12-24  Jim Meyering  <meyering@lucent.com>
69389
69390         * lib/hash.c (is_prime): Return explicit boolean values.
69391         (hash_get_first): Return NULL to appease Irix5.6's 89.
69392         Reported by Nelson Beebe.
69393
69394 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
69395
69396         * lib/localcharset.c (locale_charset): Add support for Win32.
69397
69398 2000-12-18  Paul Eggert  <eggert@twinsun.com>
69399
69400         * lib/physmem.h, lib/physmem.c: New files.
69401
69402         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
69403         (noinst_HEADERS): Add physmem.h.
69404
69405         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
69406         't' for compatibility with Solaris 8 sort.
69407
69408 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
69409
69410         * lib/config.charset: Add support for BeOS.
69411
69412 2000-12-17  Jim Meyering  <meyering@lucent.com>
69413
69414         * m4/dos.m4 (jm_AC_DOS): New file and macro.
69415         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
69416
69417 2000-12-16  Jim Meyering  <meyering@lucent.com>
69418
69419         This bug had a serious impact on chown: `chown N:M FILE' (for integer
69420         N and M) would have treated it like `chown N:N FILE'.
69421
69422         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
69423
69424 2000-12-16  Jim Meyering  <meyering@lucent.com>
69425
69426         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
69427         SHELLS_FILE to a file name that's useful on djgpp systems.
69428         Include stdlib.h.
69429         (ADDITIONAL_DEFAULT_SHELLS): Define.
69430         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
69431         Based mostly on a patch from Prashant TR.
69432
69433 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
69434
69435         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
69436         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
69437         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
69438
69439 2000-12-08  Andreas Schwab  <schwab@suse.de>
69440
69441         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
69442         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
69443
69444 2000-12-07  Jim Meyering  <meyering@lucent.com>
69445
69446         * lib/stripslash.c (ISSLASH): Define.
69447         (strip_trailing_slashes): Use ISSLASH rather than comparing against
69448         `/'.
69449         From Prashant TR.
69450
69451         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
69452         (dir_name_r): Declare this function as static.
69453         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
69454         manifest itself on a name containing a mix of slashes and
69455         backslashes.
69456         Make this function work with names starting with a DOS-style
69457         drive letter and colon prefix.
69458         (dir_name): Append `.' if necessary.
69459         Based mostly on patches from Prashant TR and Eli Zaretskii.
69460
69461         * lib/dirname.h (dir_name_r): Remove prototype.
69462
69463 2000-12-06  Paul Eggert  <eggert@twinsun.com>
69464
69465         * m4/off_t-format.m4: Remove this file.
69466         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
69467
69468 2000-12-06  Jim Meyering  <meyering@lucent.com>
69469
69470         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
69471         replacement strtoull, we may well need the replacement strtoul, too.
69472         Check for declarations of strtoul and strtoull.
69473         Check for strtol.  Mainly as a cue to cause automake to include
69474         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
69475         Check for limits.h -- strtol.c needs it.
69476
69477 2000-12-05  Jim Meyering  <meyering@lucent.com>
69478
69479         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
69480
69481 2000-12-04  Jim Meyering  <meyering@lucent.com>
69482
69483         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
69484         Also include memory.h, stdlib.h, unistd.h if appropriate.
69485         Reported by Andreas Jaeger (conflicting declaration of malloc).
69486
69487 2000-12-02  Jim Meyering  <meyering@lucent.com>
69488
69489         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
69490         * m4/jm-macros.m4 (jm_MACROS): require it.
69491
69492 2000-12-02  Jim Meyering  <meyering@lucent.com>
69493
69494         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
69495
69496 2000-12-01  Paul Eggert  <eggert@twinsun.com>
69497
69498         * lib/memrchr.c: Include <config.h> before any system include file.
69499
69500 2000-11-30  Jim Meyering  <meyering@lucent.com>
69501
69502         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
69503
69504 2000-11-30  Jim Meyering  <meyering@lucent.com>
69505
69506         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
69507
69508 2000-11-29  Paul Eggert  <eggert@twinsun.com>
69509
69510         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
69511
69512 2000-11-26  Jim Meyering  <meyering@lucent.com>
69513
69514         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
69515
69516 2000-11-22  Paul Eggert  <eggert@twinsun.com>
69517
69518         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
69519         size of (size_t) -1; it's not portable.
69520
69521 2000-11-17  Jim Meyering  <meyering@lucent.com>
69522
69523         * lib/strstr.c: Update from GNU libc.
69524
69525 2000-11-17  Akim Demaille  <akim@epita.fr>
69526
69527         * lib/obstack.h: Formatting changes.
69528         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
69529         prevent type checking.
69530         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
69531         cast the value to (void *): assigning a `foo *' to a `void *'
69532         variable is valid.
69533         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
69534
69535 2000-11-16  Jim Meyering  <meyering@lucent.com>
69536
69537         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
69538
69539 2000-11-11  Jim Meyering  <meyering@lucent.com>
69540
69541         * lib/error.c: Add a couple #includes, merging from GNU libc version.
69542
69543 2000-11-10  Jim Meyering  <meyering@lucent.com>
69544
69545         * lib/obstack.h: Update from GNU libc.
69546         * lib/obstack.c: Likewise.
69547
69548 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
69549
69550         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
69551
69552 2000-11-06  Paul Eggert  <eggert@twinsun.com>
69553
69554         * lib/getusershell.c (setusershell): Use rewind rather than
69555         fseek/fseeko, to avoid configuration hassles with fseeko.
69556         Don't bother opening SHELLS_FILE if shellstream is NULL;
69557         it's not necessary.
69558
69559 2000-11-05  Jim Meyering  <meyering@lucent.com>
69560
69561         * lib/makepath.h (make_dir): Declare.
69562         * lib/makepath.c (make_dir): Remove `static' attribute.
69563         Tweak a comment.
69564
69565 2000-11-04  Jim Meyering  <meyering@lucent.com>
69566
69567         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
69568
69569 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
69570
69571         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
69572         last one in a bucket, advance to the next bucket.
69573
69574 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
69575
69576         * lib/fnmatch.c: Do not comment out all the code if we are using
69577         the GNU C library, because in some cases we are replacing buggy
69578         code in the GNU C library itself.
69579
69580 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
69581
69582         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
69583         (regex_compile): Catch bogus \(\1\).
69584
69585 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69586
69587         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
69588         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
69589         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
69590
69591 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69592
69593         * lib/error.h, getline.h, modechange.h:
69594         Remove "2000" from Copyright line, as the file hasn't been
69595         changed this year other than in the copyright notice.
69596
69597         * lib/xalloc.h: Add "2000" to Copyright line, as this file
69598         was changed this year.
69599
69600 2000-10-29  Jim Meyering  <meyering@lucent.com>
69601
69602         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
69603         renaming.
69604         * m4/ls-mntd-fs.m4: Likewise
69605
69606 2000-10-29  Jim Meyering  <meyering@lucent.com>
69607
69608         * lib/xstat.in: Fix grammar in comment.
69609
69610 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
69611
69612         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
69613         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
69614         doesn't define __restrict_arr.
69615
69616 2000-10-28  Jim Meyering  <meyering@lucent.com>
69617
69618         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
69619         (jm_PREREQ_MEMCHR): New function.
69620
69621 2000-10-28  Jim Meyering  <meyering@lucent.com>
69622
69623         * lib/memchr.c: Update from libc.
69624         Adjust for portability:
69625         [HAVE_STDLIB_H]: Include stdlib.h.
69626         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
69627         Undef __memchr, too.
69628         [!weak_alias]: Define __memchr to memchr.
69629
69630         * lib/regex.c: Update from libc.
69631         * lib/regex.h: Likewise.
69632         * lib/getopt1.c: Likewise.
69633         * lib/memcmp.c: Likewise.
69634
69635         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
69636         Avoid using fseek, when possible -- it's broken by design.
69637         Patch by Ulrich Drepper.
69638
69639 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
69640
69641         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
69642         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
69643         Giving in to popular pressure to shut up the compiler with casts.
69644
69645 2000-10-26  Jim Meyering  <meyering@lucent.com>
69646
69647         * lib/strftime.c: Update from libc.
69648
69649 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
69650
69651         * regex.c: More `unsigned char' -> `re_char' changes.
69652         Also change several `int' into `re_wchar_t'.
69653         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
69654         (PUSH_FAILURE_POINTER): Don't cast any more.
69655         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
69656         We want GCC to complain, since this piece of code makes
69657         re_match non-reentrant, which *should* be fixed.
69658         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
69659         (EXTEND_BUFFER): Use RETALLOC.
69660         (SET_LIST_BIT): Don't cast.
69661         (re_wchar_t): New type.
69662         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
69663         that those two functions will always properly return.
69664         (IMMEDIATE_QUIT_CHECK): Cast to void.
69665         (analyse_first): Use recursion rather than an explicit stack.
69666         (re_compile_fastmap): Can't fail anymore.
69667         (re_search_2): Don't check re_compile_fastmap for failure.
69668         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
69669         Now also sets the new value (passed in a new argument).
69670         (re_match_2_internal): Use it.
69671         Also, use a new var `reg' of type size_t when looping through regs
69672         rather than reuse the inappropriate `mcnt'.
69673
69674 2000-10-25  Jim Meyering  <meyering@lucent.com>
69675
69676         * lib/obstack.c: Update from libc.
69677
69678 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
69679
69680         * regex.c (regex_compile): Change the way of handling a range from
69681         a char less than 256 to a char not less than 256.
69682
69683 2000-10-24  Andrew Innes  <andrewi@gnu.org>
69684
69685         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
69686         NT-Emacs only.
69687         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
69688         so that re_search functions only quit when callers expect them to.
69689
69690 2000-10-23  Jim Meyering  <meyering@lucent.com>
69691
69692         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
69693         wrong.  That set_locale call must not have any side effects.
69694         From Paul Eggert.
69695
69696 2000-10-22  Jim Meyering  <meyering@lucent.com>
69697
69698         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
69699         [CYCLIC]: Remove now-unused definition.
69700
69701         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
69702         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
69703         Suggestion from Ulrich Drepper.
69704
69705 2000-10-21  Jim Meyering  <meyering@lucent.com>
69706
69707         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
69708         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
69709         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
69710
69711 2000-10-21  Jim Meyering  <meyering@lucent.com>
69712
69713         * lib/dirname.c (memrchr): Declare if necessary.
69714         (dir_name): Remove the restriction that there be no
69715         trailing slashes.  Now, this code skips past them, effectively
69716         ignoring them.
69717         [TEST_DIRNAME] (main): New unit tests.
69718
69719         * lib/memrchr.c: New file from GNU libc.
69720         Undef __memrchr, too.
69721         [!weak_alias]: Define __memrchr to memrchr.
69722         Guard weak_alias use with `#ifdef weak_alias'.
69723
69724 2000-10-21  Jim Meyering  <meyering@lucent.com>
69725
69726         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
69727         (dir_name): Use dir_name_r.
69728         * lib/dirname.h (dir_name_r): Declare it.
69729
69730 2000-10-17  Jim Meyering  <meyering@lucent.com>
69731
69732         * lib/quote.h (PARAMS): Define and use.
69733         Reported by Akim Demaille.
69734
69735         * lib/getopt.c: Update from libc.
69736
69737 2000-10-16  Jim Meyering  <meyering@lucent.com>
69738
69739         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
69740         setlocale.
69741         From Jan Fedak.
69742
69743 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
69744
69745         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
69746
69747 2000-09-25  Jim Meyering  <meyering@lucent.com>
69748
69749         * lib/md5.h (rol): Define (from GnuPG).
69750
69751         * lib/sha.c: Give credit (GnuPG) where due.
69752         (M): Use rol rather than open-coding it.
69753         Add a FIXME comment.
69754
69755 2000-09-21  Jim Meyering  <meyering@lucent.com>
69756
69757         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
69758         Reported by Michael Stone.
69759
69760 2000-09-20  Jim Meyering  <meyering@lucent.com>
69761
69762         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
69763         (noinst_HEADERS): Add sha.h.
69764         Based on code from Scott G. Miller and from GnuPG.
69765
69766 2000-09-18  Jim Meyering  <meyering@lucent.com>
69767
69768         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
69769         LIBS. Otherwise, everyone ends up linking with -lelf for some
69770         configurations.
69771         Reported by Mike Stone.
69772
69773 2000-09-15  Jim Meyering  <meyering@lucent.com>
69774
69775         * lib/regex.c: Update from libc.
69776
69777 2000-09-10  Jim Meyering  <meyering@lucent.com>
69778
69779         * lib/getopt.c (_getopt_internal): Update from glibc.
69780
69781 2000-09-09  Jim Meyering  <meyering@lucent.com>
69782
69783         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
69784         think it should be used as a general replacement for isascii.
69785         * lib/fnmatch.c: Likewise.
69786         * lib/mbswidth.c: Likewise
69787         * lib/regex.c: Likewise.
69788
69789         Don't use atoi.
69790         * lib/userspec.c: Include sys/param.h and limits.h.
69791         Include xstrtol.h.
69792         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69793         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
69794         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
69795         UID, GID.  Check range.
69796
69797 2000-09-06  Jim Meyering  <meyering@lucent.com>
69798
69799         * lib/getopt.c (_getopt_internal): Update from glibc.
69800
69801 2000-08-30  Jim Meyering  <meyering@lucent.com>
69802
69803         * lib/strftime.c: Merge in changes from GNU libc.
69804
69805 2000-08-26  Jim Meyering  <meyering@lucent.com>
69806
69807         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
69808         * m4/fpending.m4: New file.
69809
69810 2000-08-26  Jim Meyering  <meyering@lucent.com>
69811
69812         * lib/closeout.c: Include "__fpending.h".
69813         (close_stdout_status): Return right away if there's nothing to flush.
69814
69815         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
69816         * lib/__fpending.c: New file.
69817         * lib/__fpending.h: New file.
69818
69819 2000-08-20  Jim Meyering  <meyering@lucent.com>
69820
69821         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
69822         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
69823         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
69824
69825 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
69826
69827         Improve fileutils installation on systems where running
69828         programs (like install) can't be unlinked.
69829         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
69830         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
69831
69832 2000-08-07  Paul Eggert  <eggert@twinsun.com>
69833
69834         Standardize on "memory exhausted" instead of "Memory exhausted"
69835         or "virtual memory exhausted".
69836         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
69837         "virtual memory exhausted".
69838         * lib/same.c (same_name): Invoke xalloc_die instead of printing
69839         our own message.
69840         * lib/userspec.c (parse_user_spec): Likewise.
69841         * lib/bumpalloc.h: comment fix
69842         * lib/same.c, userspec.c: Include xalloc.h.
69843
69844         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
69845         not char *const and pointing to a constant array.
69846         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
69847         (xrealloc): Comment fix.
69848
69849         * lib/userspec.c (parse_user_spec):
69850         Don't translate a message until just before returning,
69851         to avoid unnecessary translation.
69852
69853 2000-08-07  Jim Meyering  <meyering@lucent.com>
69854
69855         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
69856         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
69857         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
69858         getgroups.c, gethostname.c, getopt.h, group-member.c,
69859         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
69860         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
69861         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
69862         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
69863         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
69864         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
69865         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
69866         yesno.c: Back out Copyright date changes for each file with no change
69867         this year.  This eases coordination with other programs using the same
69868         source code modules.  From Paul Eggert.
69869
69870 2000-08-06  Paul Eggert  <eggert@twinsun.com>
69871
69872         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
69873         not char, for compatibility with glibc 2.1.3 strftime.c.
69874
69875 2000-08-03  Greg McGary  <greg@mcgary.org>
69876
69877         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
69878         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
69879         (EXTEND_BUFFER): Use them.
69880
69881 2000-08-01  Jim Meyering  <meyering@lucent.com>
69882
69883         * lib/dirname.c (ISSLASH): Define.
69884         (BACKSLASH_IS_PATH_SEPARATOR): Define.
69885         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
69886         both `\' and `/' may be use as path separators.
69887         Based on a patch from Prashant TR.
69888
69889 2000-07-31  Paul Eggert  <eggert@twinsun.com>
69890
69891         * lib/quotearg.c (quotearg_n_options): Don't make the initial
69892         slot vector a constant, since it might get modified.
69893
69894 2000-07-31  Jim Meyering  <meyering@lucent.com>
69895
69896         * lib/xmalloc.c: Use `virtual memory exhausted', not
69897         `Memory exhausted'.
69898         * lib/obstack.c (print_and_abort): Likewise.
69899
69900 2000-07-30  Paul Eggert  <eggert@twinsun.com>
69901
69902         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
69903         buffer, so that the caller can always quote one small
69904         component of a "memory exhausted" message in slot 0.
69905         From a suggestion by Jim Meyering.
69906
69907 2000-07-30  Jim Meyering  <meyering@lucent.com>
69908
69909         * lib/makepath.c (make_path): Quote the other instance, too.
69910
69911         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
69912         (STATIC_BUF_SIZE): Define.
69913         (quotearg_n_options): Use only statically allocated storage when
69914         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
69915         than STATIC_BUF_SIZE.
69916
69917 2000-07-29  Jim Meyering  <meyering@lucent.com>
69918
69919         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
69920         * lib/dirname.c (dir_name): Likewise.
69921
69922         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
69923         `/'.
69924
69925         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
69926         (dir_name): Assert that there are no trailing slashes.
69927
69928 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
69929
69930         * lib/mbswidth.h (mbswidth): Add a flags argument.
69931         (mbswidth): New declaration.
69932         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
69933         * lib/mbswidth.c (mbswidth): Add a flags argument.
69934         (mbsnwidth): New function.
69935
69936 2000-07-24  Jim Meyering  <meyering@lucent.com>
69937
69938         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
69939
69940 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69941
69942         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
69943
69944 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69945
69946         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
69947         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
69948         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
69949         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
69950         invoke multibyte primitives.
69951
69952 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69953
69954         * lib/quotearg.c:
69955         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
69956         so that mbstate_t is always defined.
69957
69958         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
69959         be 1 in at least one GCC installation, and this configuration
69960         error is likely to be common.  Ignoring MB_LEN_MAX hurts
69961         performance on hosts that have mbrtowc but have only unibyte
69962         locales, but I assume these hosts are rare.
69963
69964 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69965
69966         * lib/mbswidth.c (_XOPEN_SOURCE):
69967         Don't define; this causes problems on Solaris 7.
69968         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
69969
69970 2000-07-23  Jim Meyering  <meyering@lucent.com>
69971
69972         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
69973         too: getgrgid, getpwuid, getuid.
69974
69975 2000-07-23  Jim Meyering  <meyering@lucent.com>
69976
69977         * lib/basename.c (base_name): Add an assertion.
69978
69979 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
69980
69981         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
69982         shadow its mbsinit function.
69983
69984 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69985
69986         * lib/mbswidth.h: New file.
69987         * lib/mbswidth.c: New file.
69988         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
69989         (noinst_HEADERS): Add mbswidth.h.
69990
69991 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69992
69993         * lib/config.charset: Add support for FreeBSD. Improve support for
69994         HP-UX and IRIX 6.
69995
69996 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
69997
69998         * m4/mbswidth.m4: New file.
69999         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
70000
70001 2000-07-15  Jim Meyering  <meyering@lucent.com>
70002
70003         * lib/makepath.c: Include quote.h.
70004         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
70005         corresponding argument in a `quote (...)' call.
70006         Give better diagnostics.
70007
70008         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
70009         (noinst_HEADERS): Add quote.h.
70010
70011         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
70012         from tar's src/misc.c.
70013         * lib/quote.h: New file.  Prototypes for same.
70014
70015 2000-07-14  Paul Eggert  <eggert@twinsun.com>
70016
70017         From a suggestion by Bruno Haible.
70018         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
70019         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
70020         to decide whether to define the BeOS workaround macro;
70021         this adjusts to the change to AC_MBSTATE_T.
70022
70023 2000-07-14  Jim Meyering  <meyering@lucent.com>
70024
70025         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
70026         jm_AC_TYPE_UINTMAX_T.
70027
70028 2000-07-13  Paul Eggert  <eggert@twinsun.com>
70029
70030         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
70031
70032         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
70033         quotearg_buffer_restyled): Add support for
70034         clocale_quoting_style.  Undo previous change to
70035         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
70036         and "{RIGHT QUOTATION MARK}" msgids.
70037
70038 2000-07-10  Paul Eggert  <eggert@twinsun.com>
70039
70040         From a suggestion by Bruno Haible.
70041         * m4/mbstate_t.m4 (AC_MBSTATE_T):
70042         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
70043         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
70044         and mbstate_t, to a single-part test that simply defines mbstate_t.
70045         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
70046         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
70047
70048 2000-07-10  Jim Meyering  <meyering@lucent.com>
70049
70050         * m4/strerror_r.m4: Mirror the correction made in autoconf.
70051
70052         * m4/gnu-source.m4: Output to confdefs.h directly.
70053         Suggestion from Akim Demaille.
70054
70055 2000-07-09  Paul Eggert  <eggert@twinsun.com>
70056
70057         The old behavior of quoting `like this' doesn't look good with
70058         newer, ISO-style fonts.  See:
70059         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
70060
70061         Instead, quote "like this" by default.  Let the translator
70062         tailor the locale-specific quoting behavior by providing
70063         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
70064
70065         * lib/quotearg.c (N_): New macro.
70066         (gettext_default): New function.
70067         (quotearg_buffer_restyled): Use
70068         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
70069         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
70070
70071 2000-07-09  Jim Meyering  <meyering@lucent.com>
70072
70073         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
70074         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
70075
70076         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
70077         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
70078
70079 2000-07-09  Jim Meyering  <meyering@lucent.com>
70080
70081         * lib/Most files: Update copyright dates to include 2000.
70082
70083 2000-07-08  Jim Meyering  <meyering@lucent.com>
70084
70085         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
70086         if not defined.
70087         (xgethostname): Remove now-unnecessary #ifdef.
70088         Move declaration of `err' into loop where it's used.
70089
70090 2000-07-05  Paul Eggert  <eggert@twinsun.com>
70091         and Bruno Haible  <haible@clisp.cons.org>
70092
70093         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
70094         only if the test for an object-type mbstate_t fails.  This
70095         prevents us from mistakenly reporting that mbstate_t is a
70096         system object type after we "#define mbstate_t int" to work
70097         around its lack.
70098
70099 2000-07-05  Paul Eggert  <eggert@twinsun.com>
70100         and Bruno Haible  <haible@clisp.cons.org>
70101
70102         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
70103
70104 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70105
70106         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
70107         to strerror_r.
70108         Include <ctype.h> for use of isalpha.
70109
70110 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70111
70112         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
70113         by allocating a larger buffer. Test the gethostname return value for
70114         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
70115         returns an error and ENAMETOOLONG isn't defined.
70116
70117 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70118
70119         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
70120         dimension.
70121
70122 2000-07-04  Jim Meyering  <meyering@lucent.com>
70123
70124         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
70125         of the deprecated AC_CHECKING.
70126
70127 2000-07-04  Jim Meyering  <meyering@lucent.com>
70128
70129         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
70130         Reported by Bruno Haible.
70131
70132 2000-07-04  Jim Meyering  <meyering@lucent.com>
70133
70134         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
70135         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
70136         lacks mbrtowc.
70137
70138 2000-07-03  Paul Eggert  <eggert@twinsun.com>
70139
70140         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
70141         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
70142
70143 2000-07-03  Paul Eggert  <eggert@twinsun.com>
70144         and Bruno Haible  <haible@clisp.cons.org>
70145
70146         * lib/quotearg.c (mbrtowc):
70147         Assign to *pwc, and return 1 only if result is nonzero.
70148         (iswprint): Use ISPRINT when substituting our own mbrtowc.
70149
70150 2000-07-03  Jim Meyering  <meyering@lucent.com>
70151
70152         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
70153
70154 2000-07-03  Jim Meyering  <meyering@lucent.com>
70155
70156         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
70157         This is necessary to get a definition of e.g., UTMP_FILE on
70158         HP-UX 10.20.
70159         From Bob Proulx.
70160
70161 2000-07-02  Jim Meyering  <meyering@lucent.com>
70162
70163         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
70164
70165         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
70166         AC_LIBOBJ(function_name).
70167         * m4/chown.m4: Likewise.
70168         * m4/fnmatch.m4: Likewise.
70169         * m4/ftruncate.m4: Likewise.
70170         * m4/getgroups.m4: Likewise.
70171         * m4/getline.m4: Likewise.
70172         * m4/group-member.m4: Likewise.
70173         * m4/jm-macros.m4: Likewise.
70174         * m4/lstat.m4: Likewise.
70175         * m4/malloc.m4: Likewise.
70176         * m4/memcmp.m4: Likewise.
70177         * m4/nanosleep.m4: Likewise.
70178         * m4/putenv.m4: Likewise.
70179         * m4/realloc.m4: Likewise.
70180         * m4/regex.m4: Likewise.
70181         * m4/stat.m4: Likewise.
70182         * m4/strftime.m4: Likewise.
70183
70184 2000-07-02  Jim Meyering  <meyering@lucent.com>
70185
70186         * lib/quotearg.c (mbstate_t): Don't define here.
70187
70188 2000-07-02  Jim Meyering  <meyering@lucent.com>
70189
70190         * lib/nanosleep.c (SIGCONT): Define if not already defined.
70191
70192 2000-07-01  Jim Meyering  <meyering@lucent.com>
70193
70194         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
70195
70196 2000-07-01  Jim Meyering  <meyering@lucent.com>
70197
70198         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
70199         problem.
70200
70201 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
70202
70203         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
70204         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
70205
70206 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
70207
70208         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
70209         per change in ../m4/ls-mntd-fs.m4.
70210         (read_filesystem_list): Ignore symbolic links.
70211
70212 2000-06-29  Jim Meyering  <meyering@lucent.com>
70213
70214         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
70215         for declaration of strcmp.
70216
70217         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
70218
70219         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
70220         Avoid warning by casting result to `char *' to remove `const'.
70221
70222 2000-06-28  Jim Meyering  <meyering@lucent.com>
70223
70224         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
70225         included by quotearg.c, for which we perform this test.  From
70226         Bruno Haible.
70227
70228 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
70229
70230         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
70231         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
70232         <utmpx.h> exists, put readutmp.o into LIBOBJS.
70233
70234 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
70235
70236         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
70237
70238 2000-06-26  Paul Eggert  <eggert@twinsun.com>
70239
70240         savedir now sets errno on failure and invokes xmalloc to get memory.
70241         Fix a couple of other minor bugs while we're at it.
70242
70243         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
70244         (NAMLEN): Remove macro.
70245         (malloc, realloc): Remove decls.
70246         (stpcpy): Likewise.
70247         ("xalloc.h"): Include.
70248         (NAME_SIZE_DEFAULT): New macro.
70249         (savedir): Use xmalloc / xrealloc to allocate memory.
70250         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
70251         Skip "" directory entries.
70252         Use strlen to calculate directory entry length, since the old method
70253         is rarely used these days and isn't worth supporting.
70254         Don't use a pointer after freeing it.
70255         Check for integer overflow when calculating allocation size.
70256         Use memcpy to copy entries, instead of stpcpy.
70257         Set errno properly when returning NULL.
70258         Check for readdir error.
70259
70260 2000-06-26  Jim Meyering  <meyering@lucent.com>
70261
70262         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
70263
70264 2000-06-25  Jim Meyering  <meyering@lucent.com>
70265
70266         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
70267         Linux header bug when _XOPEN_SOURCE is defined to 500.
70268
70269 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
70270
70271         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
70272         deficiency.
70273
70274 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
70275
70276         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
70277         Include xalloc.h.
70278         Don't include <stdlib.h>.  Don't declare malloc, realloc.
70279
70280 2000-06-24  Jim Meyering  <meyering@lucent.com>
70281
70282         * m4/strerror_r.m4: Revive this file -- to try out an experimental
70283         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
70284         for which strerror does return char*, but which lacks a conveniently
70285         accessible declaration of the function.  If the compile-test says
70286         strerror_r doesn't work, then resort to a `run'-test that works on
70287         BeOS and segfaults on DEC Unix.
70288
70289 2000-06-24  Jim Meyering  <meyering@lucent.com>
70290
70291         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
70292
70293 2000-06-23  Paul Eggert  <eggert@twinsun.com>
70294
70295         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
70296         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
70297
70298 2000-06-23  Paul Eggert  <eggert@twinsun.com>
70299
70300         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
70301         (mbrtowc, mbstate_t): Define substitutes if
70302         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
70303         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
70304         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
70305
70306 2000-06-23  Jim Meyering  <meyering@lucent.com>
70307
70308         * m4/afs.m4: Add missing AC_MSG_RESULT.
70309         Reported by Bruno Haible.
70310
70311         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
70312         Suggestion from Bruno Haible.
70313
70314 2000-06-23  Jim Meyering  <meyering@lucent.com>
70315
70316         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
70317
70318 2000-06-21  Jim Meyering  <meyering@lucent.com>
70319
70320         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
70321
70322 2000-06-21  Jim Meyering  <meyering@lucent.com>
70323
70324         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
70325         (noinst_HEADERS): Add getstr.h.
70326
70327         * lib/getline.c (getstr): Move into a separate file.
70328         * lib/getstr.c (getstr): New file, extracted from getline.c, with
70329         the following changes: new parameter, delim2; both delim[12]
70330         parameters have type `int', not `char'.  The latter would lose
70331         with 8-bit delimiters.
70332         * lib/getstr.h: New file.
70333
70334 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70335
70336         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
70337         than 1024, return a memory chunk of least possible size, instead
70338         of size PATH_MAX + 2. In the loop, increment the size proportionally.
70339         Use free/xmalloc instead of xrealloc to avoid copying for very long
70340         paths.
70341
70342 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70343
70344         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
70345         the empty string.
70346
70347 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70348
70349         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
70350         address, not strdup.  Include <stdlib.h> and don't declare free().
70351
70352 2000-06-19  Jim Meyering  <meyering@lucent.com>
70353
70354         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
70355
70356 2000-06-18  Jim Meyering  <meyering@lucent.com>
70357
70358         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
70359
70360         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
70361         `checking whether...' message to be consistent with that of the
70362         lstat test.
70363
70364 2000-06-18  Jim Meyering  <meyering@lucent.com>
70365
70366         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
70367         Besides, these days every porting target provides a mkdir function.
70368
70369         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
70370         needed. (this snippet comes from src/system.h).
70371
70372 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
70373
70374         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
70375
70376 2000-06-15  Paul Eggert  <eggert@twinsun.com>
70377
70378         * lib/human.c (adjust_value): New function.
70379         (human_readable_inexact): Apply rounding style even when
70380         printing approximate values.
70381
70382 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70383
70384         * lib/human.c (human_readable_inexact): Allow an input block
70385         size that is not a multiple of the output block size, and vice versa.
70386         Reported by Piergiorgio Sartor.
70387
70388 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70389
70390         * lib/getdate.y (get_date): Apply relative times after time
70391         zone indicator, not before.  Reported by Todd A. Jacobs.
70392
70393 2000-06-13  Jim Meyering  <meyering@lucent.com>
70394
70395         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
70396
70397         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
70398
70399 2000-06-12  Paul Eggert  <eggert@twinsun.com>
70400
70401         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
70402
70403 2000-06-12  Jim Meyering  <meyering@lucent.com>
70404
70405         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
70406         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
70407         optional argument.
70408         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
70409         the optional argument, `lib'.
70410
70411 2000-06-08  Jim Meyering  <meyering@lucent.com>
70412
70413         * m4/largefile.m4: Remove file (now that it's part of autoconf).
70414
70415 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70416
70417         Rewrite largefile configuration so that we don't need to run
70418         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
70419         AC_CANONICAL_HOST in configure.in -- jmm]
70420
70421         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
70422         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
70423         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
70424         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
70425         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
70426         All uses changed.
70427         Instead of inspecting the output of getconf, try to compile the
70428         test program without and with the macro definition.
70429         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
70430         for getconf.  Instead, check for the needed flags by compiling
70431         test programs.
70432
70433 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70434
70435         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
70436
70437 2000-06-04  Jim Meyering  <meyering@lucent.com>
70438
70439         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
70440         SunOS 4.1.4 for which gid_t is an unsigned type.
70441
70442 2000-06-03  Jim Meyering  <meyering@lucent.com>
70443
70444         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
70445         now that autoconf requires that.
70446
70447         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
70448         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
70449         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
70450
70451 2000-06-03  Jim Meyering  <meyering@lucent.com>
70452
70453         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
70454
70455 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70456
70457         * m4/glibc21.m4: New file.
70458         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
70459
70460 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70461
70462         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
70463         newer, don't install charset.alias.
70464         * lib/config.charset: Change the Linux/glibc rules so they become empty
70465         on glibc-2.1 or newer.
70466
70467 2000-06-02  Jim Meyering  <meyering@lucent.com>
70468
70469         * lib/mountlist.c: Back out last change.  Instead, do this...
70470         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
70471         me_dummy member using the same `ignore'-testing code.
70472         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
70473         fs_type strings.
70474         From Mark D. Roth.
70475
70476 2000-05-29  Jim Meyering  <meyering@lucent.com>
70477
70478         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
70479         mounts with the `ignore' attribute.  Based on a patch from
70480         Mark D. Roth.
70481
70482 2000-05-28  Jim Meyering  <meyering@lucent.com>
70483
70484         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
70485         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70486         * m4/stat.m4: Likewise.
70487         * m4/lstat.m4: Likewise.
70488         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
70489
70490         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
70491         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
70492
70493 2000-05-26  Jim Meyering  <meyering@lucent.com>
70494
70495         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
70496
70497 2000-05-24  Jim Meyering  <meyering@lucent.com>
70498
70499         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
70500         autoconf requires that.
70501         * m4/lib-check.m4: Likewise.
70502         * m4/jm-macros.m4: Likewise.
70503         * m4/strftime.m4: Likewise.
70504
70505         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
70506         AC_CHECK_DECLS, now that autoconf requires that.
70507
70508 2000-05-22  Jim Meyering  <meyering@lucent.com>
70509
70510         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70511         * m4/lstat.m4: Likewise.
70512
70513 2000-05-22  Jim Meyering  <meyering@lucent.com>
70514
70515         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
70516
70517 2000-05-20  Jim Meyering  <meyering@lucent.com>
70518
70519         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
70520         (jm_PREREQ): Use it.
70521
70522 2000-05-18  Jim Meyering  <meyering@lucent.com>
70523
70524         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
70525         back, too, since it may have been modified by allocate_entry.
70526         (hash_delete): Rewrite to use neither the assignment operator
70527         nor the comma operator in an if-expression.
70528
70529 2000-05-15  Paul Eggert  <eggert@twinsun.com>
70530
70531         * lib/closeout.c:
70532         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
70533         Remove; no longer needed.
70534         "quotearg.h": Add include.
70535         (file_name): Do not bother to explicitly initialize to NULL; it's less
70536         efficient on some hosts.
70537         (close_stdout_status): Remove test as to whether stdout was already
70538         closed; it breaks for the case "echo x | sort >&-".
70539         Quote file name colons.
70540         Do not assume that _("write error") lacks format strings.
70541
70542 2000-05-15  Jim Meyering  <meyering@lucent.com>
70543
70544         * lib/version-etc.c (version_etc_copyright): Update the copyright
70545         string used in all --version output.
70546
70547 2000-05-14  Jim Meyering  <meyering@lucent.com>
70548
70549         * lib/closeout.c (close_stdout_set_file_name): New function.
70550         (close_stdout_status): Use new file-scoped global.
70551         Return right away if fstat says the stdout file descriptor is invalid.
70552         * lib/closeout.h (close_stdout_set_file_name): Declare.
70553
70554 2000-05-10  Jim Meyering  <meyering@lucent.com>
70555
70556         * lib/closeout.c [default_exit_status]: New file-scoped variable.
70557         (close_stdout_set_status): New function.
70558         * lib/closeout.h (close_stdout_set_status): Declare.
70559
70560 2000-05-09  Jim Meyering  <meyering@lucent.com>
70561
70562         * m4/gettext.m4: Rename this...
70563         * m4/libintl.m4: ...to this.
70564
70565 2000-05-08  Jim Meyering  <meyering@lucent.com>
70566
70567         * lib/long-options.c: Don't include closeout.h.
70568         (parse_long_options): Don't call close_stdout for --version.
70569
70570 2000-05-06  Paul Eggert  <eggert@twinsun.com>
70571
70572         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
70573         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
70574         2.1.3 bug.  This avoids a clash when files like regex.c define
70575         _GNU_SOURCE.
70576
70577 2000-05-06  Jim Meyering  <meyering@lucent.com>
70578
70579         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
70580         (AC_REPLACE_FUNCS): Add strnlen.
70581
70582         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
70583         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
70584
70585         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
70586         AC_SEARCH_LIBS call for nanosleep.
70587         (LIB_NANOSLEEP): Set and AC_SUBST.
70588
70589 2000-05-06  Jim Meyering  <meyering@lucent.com>
70590
70591         * lib/strnlen.c: Undefine __strnlen and strnlen.
70592         [!weak_alias]: Define __strnlen to strnlen.
70593
70594         * lib/atexit.c: New file, from libiberty.
70595
70596 2000-05-06  Jim Meyering  <meyering@lucent.com>
70597
70598         * lib/closeout.c (close_stdout_status): Also check for errors on the
70599         stderr stream.
70600
70601 2000-05-05  Jim Meyering  <meyering@lucent.com>
70602
70603         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
70604         AC_SEARCH_LIBS call for clock_gettime.
70605         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
70606
70607         * m4/search-libs.m4: Update from autoconf.
70608
70609         su doesn't work on Solaris 2.6.
70610         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
70611         <shadow.h>.  Reported by Dragos Harabor.
70612
70613 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
70614
70615         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
70616         memcpy instead of xmalloc, xrealloc, path_concat.
70617         (locale_charset): Treat empty environment variables as absent.
70618         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
70619
70620 2000-05-04  Jim Meyering  <meyering@lucent.com>
70621
70622         * lib/getopt.c: Update from glibc.
70623         * lib/obstack.c: Likewise.
70624         * lib/obstack.h: Likewise.
70625         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
70626         file
70627
70628         * lib/regex.h: Likewise.
70629         * lib/strndup.c: Likewise.
70630         * lib/strnlen.c: New file, from glibc.
70631
70632 2000-05-03  Jim Meyering  <meyering@lucent.com>
70633
70634         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
70635
70636 2000-05-02  Paul Eggert  <eggert@twinsun.com>
70637
70638         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
70639         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
70640         compile-time test, rather than inspecting host and OS, to
70641         decide whether to define _LARGEFILE_SOURCE.
70642
70643 2000-05-01  Jim Meyering  <meyering@lucent.com>
70644
70645         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
70646
70647         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
70648         Based on a patch from Bruno Haible.
70649
70650 2000-05-01  Jim Meyering  <meyering@lucent.com>
70651
70652         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
70653
70654 2000-04-29  Jim Meyering  <meyering@lucent.com>
70655
70656         * lib/path-concat.c: Declare strdup only if it's not defined.
70657         * lib/canon-host.c: Likewise.
70658
70659 2000-04-28  Jim Meyering  <meyering@lucent.com>
70660
70661         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
70662         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
70663         is included first, then limits.h is included by locale.h by libintl.h.
70664         From John David Anglin.
70665
70666 2000-04-25  Jim Meyering  <meyering@lucent.com>
70667
70668         * lib/makepath.c (S_IRWXUGO): Define.
70669         (make_path): Always perform explicit chmod if MODE specifies any
70670         of the `special' permission bits.  Prompted by a bug report against
70671         install from Mate Wierdl and Joost van Baal.
70672
70673 2000-04-18  Jim Meyering  <meyering@lucent.com>
70674
70675         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
70676         (jm_PREREQ): Use it.
70677
70678 2000-04-18  Jim Meyering  <meyering@lucent.com>
70679
70680         * lib/README: New file.
70681
70682         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
70683         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
70684
70685 2000-04-17  Jim Meyering  <meyering@lucent.com>
70686
70687         Get it right :-)
70688         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
70689         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
70690         Suggestion from Akim Demaille.
70691
70692 2000-04-17  Jim Meyering  <meyering@lucent.com>
70693
70694         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
70695         the definition of it to rpl_strftime also defined-away the system's
70696         declaration.
70697
70698 2000-04-15  Jim Meyering  <meyering@lucent.com>
70699
70700         Use `C' to denote so-called `contiguous' files, the same way
70701         that tar does.
70702         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
70703         (ftypelet): Use S_ISCTG.
70704         From Michael Deutschmann.
70705
70706 2000-04-14  Jim Meyering  <meyering@lucent.com>
70707
70708         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
70709         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
70710         clobbered.
70711
70712 2000-04-14  Jim Meyering  <meyering@lucent.com>
70713
70714         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
70715
70716 2000-04-13  Jim Meyering  <meyering@lucent.com>
70717
70718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
70719         AH_VERBATIM to insert required #ifndef into config.h.in.
70720         Suggestion from Akim Demaille.
70721
70722 2000-04-12  Jim Meyering  <meyering@lucent.com>
70723
70724         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
70725         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
70726         Christian Krackowizer.
70727
70728         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
70729         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
70730         (AC_SYS_LARGEFILE): Require.
70731         (AM_C_PROTOTYPES): Require.
70732
70733 2000-04-08  Jim Meyering  <meyering@lucent.com>
70734
70735         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
70736         names don't conflict.  Reported by Eli Zaretskii.
70737
70738 2000-04-07  Jim Meyering  <meyering@lucent.com>
70739
70740         * lib/putenv.c: Move inclusion of errno.h so it follows that of
70741         sys/types.h, to work around system header problems on AIX 3.2.5.
70742         From Bruno Haible.
70743
70744 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
70745
70746         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
70747         bug.  Deal with the different error behavior of Irix iconv.
70748
70749 2000-04-05  Paul Eggert  <eggert@twinsun.com>
70750
70751         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
70752         IRIX if the installer said otherwise.
70753
70754 2000-04-05  Jim Meyering  <meyering@lucent.com>
70755
70756         Portability tweaks required for ultrix4.3.
70757         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
70758         (jm_CHECK_DECLS): Add getutent to the list of functions.
70759         (_jm_DECL_HEADERS): Add utmpx.h.
70760         From John David Anglin.
70761
70762         * m4/strftime.m4: Back out the 2000-04-02 change.
70763         Instead of that change, simply undefine putenv in the test program.
70764
70765 2000-04-05  Jim Meyering  <meyering@lucent.com>
70766
70767         Portability tweaks required for ultrix4.3.
70768         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
70769         getutent.
70770         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
70771         * lib/canon-host.c: Declare strdup.
70772         * lib/path-concat.c: Likewise.
70773         From John David Anglin.
70774
70775 2000-04-04  Jim Meyering  <meyering@lucent.com>
70776
70777         Be more DOS 8.3-friendly.
70778         * lib/ref-add.sin: Renamed from ref-add.sed.in.
70779         * lib/ref-del.sin: Renamed from ref-del.sed.in.
70780         * lib/Makefile.am: Reflect renaming.
70781         Reported by Eli Zaretskii.
70782
70783         Use a temporary file name that won't clash with `charset.alias'
70784         in the DOS 8.3 name space.
70785         * lib/Makefile.am (charset_tmp): Define.
70786         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
70787         (uninstall-local): Likewise.
70788         Reported by Eli Zaretskii.
70789
70790 2000-04-03  Jim Meyering  <meyering@lucent.com>
70791
70792         * m4/gettext.m4: Fix typo in comment.
70793
70794         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
70795         textutils/configure.in).  Suggestion from Paul Eggert.
70796         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
70797
70798 2000-04-02  Paul Eggert  <eggert@twinsun.com>
70799
70800         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
70801         variable in the shell rather than using putenv, which isn't
70802         portable.  This avoids the configure-time inter-test dependency
70803         on the potentially-renamed putenv function.
70804
70805 2000-03-30  Paul Eggert  <eggert@twinsun.com>
70806
70807         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
70808         before checking struct stat.st_blksize, so that
70809         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
70810
70811 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70812
70813         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
70814         since strftime.c uses HAVE_STRFTIME to decide whether to use
70815         the underlying strftime.
70816
70817 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70818
70819         * lib/time/strftime.c (my_strftime): Make sure we call the system
70820         strftime, not ourselves, when invoking the underlying strftime.
70821
70822 2000-03-24  Jim Meyering  <meyering@lucent.com>
70823
70824         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
70825         (charset_alias): Define.
70826         (install-exec-local): Factor out common code.
70827         (uninstall-local): Split lines longer than 80.
70828         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
70829         (SUFFIXES): Define.
70830         (.sed.in.sed): New rule.  Don't redirect directly to $@.
70831         (CLEANFILES): Add ref-add.sed and ref-del.sed.
70832
70833 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
70834
70835         * lib/config.charset: Output a line containing "Packages using this
70836         file".
70837         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
70838         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
70839         ref-del.sed): New rules.
70840
70841 2000-03-17  Jim Meyering  <meyering@lucent.com>
70842
70843         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
70844         Otherwise, include <strings.h>
70845
70846 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
70847
70848         * lib/unicodeio.c (utf8_wctomb): New function.
70849         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
70850         format instead of in UCS-4 with platform dependent endianness.
70851
70852 2000-03-10  Jim Meyering  <meyering@lucent.com>
70853
70854         * m4/lib-check.m4: Look for getspnam in -lgen, too.
70855         From Marco Franzen.
70856
70857 2000-03-07  Paul Eggert  <eggert@twinsun.com>
70858
70859         * lib/savedir.c (savedir): Work even if directory size is
70860         negative; this can happen with some screwy NFS configurations.
70861
70862 2000-03-06  Jim Meyering  <meyering@lucent.com>
70863
70864         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
70865         if it's NULL (because we ran out of memory).  From Bruno Haible.
70866
70867 2000-03-05  Jim Meyering  <meyering@lucent.com>
70868
70869         * lib/localcharset.c ("path-concat.h"): Include.
70870         (get_charset_aliases): Use path_concat instead of ANSI string
70871         concatenation.
70872
70873         * lib/unicodeio.h (PARAMS): Define.
70874         Use it to guard prototype.
70875
70876 2000-03-04  Jim Meyering  <meyering@lucent.com>
70877
70878         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
70879         for lib/localcharset.c.
70880
70881 2000-03-04  Jim Meyering  <meyering@lucent.com>
70882
70883         * lib/Makefile.am (install-exec-local): Create $(libdir) before
70884         installing into it.
70885         (uninstall-local): Uncomment this rule so `make distcheck' works
70886         once again.
70887
70888         * lib/unicodeio.c (<errno.h>): Include it.
70889         (errno): Declare if not defined.
70890
70891         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
70892
70893         * lib/config.charset: New version, incorporating remarks from a linux
70894         i18n mailing list.  From Bruno Haible.
70895
70896 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
70897
70898         * m4/codeset.m4: New file.
70899         * m4/iconv.m4: New file.
70900         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
70901
70902 2000-03-03  Jim Meyering  <meyering@lucent.com>
70903
70904         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
70905
70906 2000-03-02  Jim Meyering  <meyering@lucent.com>
70907
70908         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
70909         the messages come out on separate lines.
70910
70911         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
70912         rather than jm_CHECK_DECLARATIONS.
70913         * m4/decl.m4: Remove now-unused file.
70914
70915         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
70916         geteuid.
70917
70918 2000-03-02  Jim Meyering  <meyering@lucent.com>
70919
70920         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
70921
70922 2000-03-01  Jim Meyering  <meyering@lucent.com>
70923
70924         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
70925         * lib/unicodeio.c: Likewise.
70926
70927 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
70928
70929         * lib/config.charset: New file.
70930         * lib/localcharset.c: New file.
70931         * lib/unicodeio.h, lib/unicodeio.c: New files.
70932         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
70933         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
70934         (noinst_HEADERS): Add unicodeio.h.
70935         (all-local, install-exec-local, charset.alias): New targets.
70936
70937 2000-02-28  Paul Eggert  <eggert@twinsun.com>
70938
70939         * lib/quotearg.c (ALERT_CHAR): New macro.
70940         (quotearg_buffer_restyled): Use it.
70941
70942 2000-02-27  Jim Meyering  <meyering@lucent.com>
70943
70944         * m4/check-decl.m4: Add getenv to the list.
70945
70946 2000-02-27  Jim Meyering  <meyering@lucent.com>
70947
70948         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
70949         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
70950
70951         * lib/backupfile.c: Guard inclusion of stdlib.h with
70952         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
70953         Declare malloc if needed.
70954
70955         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
70956         `#ifndef HAVE_DECL..'
70957         now that autoconf always defines the HAVE_DECL_ symbols.
70958         * lib/human.c: Likewise.
70959         * lib/same.c: Likewise.
70960         * lib/strtoumax.c: Likewise.
70961
70962         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
70963         declaration check was not run.
70964         * lib/hash.c: Likewise.
70965         * lib/human.c: Likewise.
70966         * lib/same.c: Likewise.
70967         * lib/strtoumax.c: Likewise.
70968
70969         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
70970         `.', then first look up the entire `.'-containing string as a login
70971         name.
70972
70973 2000-02-23  Jim Meyering  <meyering@lucent.com>
70974
70975         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
70976         in place of my hack.
70977
70978 2000-02-18  Paul Eggert  <eggert@twinsun.com>
70979
70980         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
70981         (textint): New typedef.
70982         (parser_control): Member year changed from int to textint.
70983         All uses changed.
70984         (YYSTYPE): Removed; replaced by %union with int and textint members.
70985         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
70986         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
70987         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
70988         (tSNUMBER, tUNUMBER): Now of type <textintval>.
70989         (date, number, to_year): Use width of number in digits, not its value,
70990         to determine whether it's a 2-digit year, or a 2-digit time.
70991         (yylex): Store number of digits of numeric tokens.
70992         Reported by John Kendall.
70993
70994         (parser_control): Changed from struct parser_control to typedef (for
70995         consistency).  All uses changed.
70996
70997         (tID): Removed; not used.
70998         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
70999
71000 2000-02-14  Paul Eggert  <eggert@twinsun.com>
71001
71002         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
71003         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
71004
71005 2000-02-12  Jim Meyering  <meyering@lucent.com>
71006
71007         * lib/userspec.c (ISDIGIT): Define it.
71008         (isdigit): Remove definition.
71009         (is_number): Use ISDIGIT, not isdigit.
71010         <libintl.h>: Include.
71011         (_ and N_): Define.
71012         (parse_user_spec): Mark translatable strings.
71013
71014 2000-02-10  Jim Meyering  <meyering@lucent.com>
71015
71016         With these changes, nanosleep.[ch] are finally enough like the other
71017         lib/* replacement files to compile on a few more losing systems.
71018
71019         * lib/nanosleep.h: Don't include config.h.
71020         Remove prototype from declaration of nanosleep.
71021         (PARAMS): Remove now-unneeded definition.
71022         * lib/nanosleep.c: #undef nanosleep.
71023         (rpl_nanosleep): Rename from nanosleep.
71024
71025 2000-02-10  Jim Meyering  <meyering@lucent.com>
71026
71027         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
71028         gnu_nanosleep to rpl_nanosleep.
71029
71030 2000-02-09  Jim Meyering  <meyering@lucent.com>
71031
71032         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
71033         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
71034
71035 2000-02-08  Akim Demaille  <akim@epita.fr>
71036
71037         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
71038         `[' and `]' and remove uses of `changequote'.
71039         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
71040         (AC_SYS_LARGEFILE): Likewise.
71041         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
71042         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
71043         of changequote.
71044         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
71045         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
71046         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
71047         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
71048
71049 2000-02-05  Jim Meyering  <meyering@lucent.com>
71050
71051         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
71052         Remove explicit use of AC_HEADER_TIME.  It is required by
71053         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
71054         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
71055         in autoconf whereby the expansion of the latter ended up preceding
71056         the expansion of its prerequisite, AC_HEADER_TIME.
71057         Reported by Volker Borchert.
71058
71059 2000-02-03  Jim Meyering  <meyering@lucent.com>
71060
71061         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
71062
71063 2000-02-03  Jim Meyering  <meyering@lucent.com>
71064
71065         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
71066         rather than with `#if HAVE_UTMPNAME'.
71067
71068 2000-02-02  Jim Meyering  <meyering@lucent.com>
71069
71070         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
71071         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
71072         Reported by Eli Zaretskii.
71073
71074 2000-02-01  Jim Meyering  <meyering@lucent.com>
71075
71076         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
71077
71078 2000-01-31  Jim Meyering  <meyering@lucent.com>
71079
71080         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
71081         functions.  Add the time.h and sys/time.h headers along with the
71082         AC_REQUIRE'ment of AC_HEADER_TIME.
71083
71084 2000-01-31  Jim Meyering  <meyering@lucent.com>
71085
71086         * lib/nanosleep.h (nanosleep): Guard declaration with
71087         `#if ! HAVE_DECL_NANOSLEEP'.
71088         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
71089         the declaration in that vendor's sys/timers.h.
71090         Reported by Christian Krackowizer.
71091
71092         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
71093         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
71094         (ISPRINT): Likewise.
71095         Reported by Tom Tromey.
71096
71097 2000-01-30  Jim Meyering  <meyering@lucent.com>
71098
71099         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
71100
71101         * m4/prereq.m4 (utmp_includes): Define.
71102         Check for ut_user and ut_name members in both struct utmpx
71103         and struct utmp.
71104
71105 2000-01-30  Jim Meyering  <meyering@lucent.com>
71106
71107         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
71108         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
71109         header files where only utmpx.ut_user is declared.
71110
71111         * lib/readutmp.h (UT_USER): Define.
71112
71113 2000-01-29  Jim Meyering  <meyering@lucent.com>
71114
71115         * m4/lib-check.m4: New file containing library-related checks from
71116         fileutils and sh-utils (textutils had none).
71117
71118 2000-01-28  Jim Meyering  <meyering@lucent.com>
71119
71120         * m4/perl.m4: Change format of warning message to look more like that
71121         from the missing script.  Suggestion from François Pinard.
71122
71123 2000-01-25  Jim Meyering  <meyering@lucent.com>
71124
71125         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
71126         well as time.h in the compile check.
71127         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
71128         Fix typo in cross-compiling case: s/yes/no/.
71129
71130 2000-01-23  Jim Meyering  <meyering@lucent.com>
71131
71132         * m4/jm-macros.m4: Move df-related tests here from
71133         fileutils/configure.in
71134
71135         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
71136         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
71137
71138         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
71139         s/space/ac_fsusage_space/.
71140         (jm_FILE_SYSTEM_USAGE): Take two parameters.
71141
71142         * m4/ftruncate.m4: New file (derived from part of
71143         fileutils/configure.in).
71144         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
71145         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
71146
71147         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
71148         AC_SUBST these here, rather than just in sh-util/configure.in, so
71149         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
71150         all the same.
71151         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
71152         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
71153         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
71154         (AC_SUBST(POW_LIBM)): Likewise.
71155         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
71156
71157 2000-01-23  Jim Meyering  <meyering@lucent.com>
71158
71159         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
71160         obstack.c.
71161
71162 2000-01-22  Jim Meyering  <meyering@lucent.com>
71163
71164         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
71165
71166         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
71167
71168         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
71169         configure.in
71170         (AC_CHECK_HEADERS): Likewise for sh-utils.
71171         (AC_CHECK_HEADERS): Likewise for textutils.
71172         Merge the three lists of headers.
71173
71174         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
71175         from fileutils' configure.in.
71176
71177         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
71178         code. Moved tests into their own function (_jm_DECL_HEADERS) in
71179         check-decl.m4.
71180
71181         * m4/check-decl.m4: Use #if rather than #ifdef.
71182         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
71183         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
71184         (_jm_DECL_HEADERS): Define new function.
71185         (jm_CHECK_DECLARATIONS): Require it.
71186
71187 2000-01-22  Jim Meyering  <meyering@lucent.com>
71188
71189         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
71190         [! HAVE_DECL_STRTOULL]: Declare strtoull.
71191         Required for some AIX systems.  Reported by Christian Krackowizer.
71192         [TESTING] (main): New function.
71193
71194         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
71195         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
71196         letters.
71197
71198         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
71199         iswprint.
71200
71201         * lib/strverscmp.c (ISDIGIT): Define.
71202         (strverscmp): Use ISDIGIT, not isdigit.
71203
71204 2000-01-19  Jim Meyering  <meyering@lucent.com>
71205
71206         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
71207         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
71208         defines `struct timespec' in <sys/time.h>
71209
71210         * m4/c-bs-a.m4: Remove uses of changequote altogether.
71211         Thanks to Akim for explaining.
71212
71213 2000-01-17  Paul Eggert  <eggert@twinsun.com>
71214
71215         * lib/nanosleep.c (nanosleep):
71216         Don't use SA_INTERRUPT to decide whether to call sigaction, as
71217         POSIX.1 doesn't require SA_INTERRUPT and some systems
71218         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
71219         it's been part of POSIX.1 since day 1 (in 1988).
71220
71221 2000-01-17  Jim Meyering  <meyering@lucent.com>
71222
71223         * lib/interlock: Remove unused file.  Reported by François Pinard.
71224
71225 2000-01-16  Paul Eggert  <eggert@twinsun.com>
71226
71227         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
71228         alert, backslash, formfeed, and vertical tab unnecessarily in
71229         shell quoting style.
71230
71231 2000-01-16  Jim Meyering  <meyering@lucent.com>
71232
71233         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
71234         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
71235         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
71236         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
71237
71238 2000-01-16  Jim Meyering  <meyering@lucent.com>
71239
71240         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
71241         because the latter didn't work.
71242
71243 2000-01-15  Jim Meyering  <meyering@lucent.com>
71244
71245         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
71246         (AC_REPLACE_FUNCS): Add memcpy and memset.
71247         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
71248         Add strpbrk.
71249         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
71250
71251 2000-01-12  Jim Meyering  <meyering@lucent.com>
71252
71253         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
71254         (jm_PREREQ): Use it.
71255         (jm_PREREQ_READUTMP): New macro.
71256         (jm_PREREQ): Use it.
71257
71258 2000-01-11  Paul Eggert  <eggert@twinsun.com>
71259
71260         Quote multibyte characters correctly.
71261         * m4/c-bs-a.m4: New file.
71262         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
71263         (jm_PREREQ): Use it.
71264
71265 2000-01-11  Paul Eggert  <eggert@twinsun.com>
71266
71267         * m4/uintmax_t.m4: Port to autoconf 2.13.
71268
71269 2000-01-08  Jim Meyering  <meyering@ascend.com>
71270
71271         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
71272         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
71273
71274 2000-01-04  Jim Meyering  <meyering@ascend.com>
71275
71276         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
71277         jm_STRUCT_DIRENT_D_TYPE.
71278         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
71279         jm_STRUCT_DIRENT_D_INO.
71280         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
71281         jm_STRUCT_UTIMBUF.
71282         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
71283         renamings.
71284         * m4/utime.m4: Likewise.
71285
71286         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
71287         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
71288
71289 2000-01-03  Paul Eggert  <eggert@twinsun.com>
71290
71291         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
71292         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
71293
71294 2000-01-02  Jim Meyering  <meyering@ascend.com>
71295
71296         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
71297         remember if this is necessary.
71298
71299 1999-12-26  Jim Meyering  <meyering@ascend.com>
71300
71301         * m4/jm-macros.m4: Use it here.
71302         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
71303
71304 1999-12-23  Jim Meyering  <meyering@ascend.com>
71305
71306         * m4/jm-macros.m4: Check for clock_gettime (moved from
71307         fileutils/configure.in)
71308         Check for gettimeofday.
71309
71310 1999-12-20  Jim Meyering  <meyering@ascend.com>
71311
71312         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
71313         autoconf-2.14a-1999-12-20.
71314
71315 1999-12-19  Jim Meyering  <meyering@ascend.com>
71316
71317         * m4/lstat-slash.m4: New file.
71318         * m4/jm-macros.m4: Use the new macro:
71319         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71320
71321 1999-12-07  Jim Meyering  <meyering@ascend.com>
71322
71323         * m4/perl.m4: Require that File::Compare be available, too.
71324         Too many systems seem to lack it.
71325
71326         * m4/strftime.m4: Add checks for most of the cpp macros tested in
71327         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
71328
71329 1999-11-18  Paul Eggert  <eggert@twinsun.com>
71330
71331         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
71332         problem with the QNX 4.25 shell, which doesn't propagate exit
71333         status of failed commands inside shell assignments.
71334
71335 1999-11-17  Jim Meyering  <meyering@ascend.com>
71336
71337         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
71338
71339 1999-11-07  Jim Meyering  <meyering@ascend.com>
71340
71341         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
71342
71343 1999-11-06  Jim Meyering  <meyering@ascend.com>
71344
71345         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
71346         * m4/jm-macros.m4 (jm_MACROS): Use it here.
71347
71348 1999-11-05  Jim Meyering  <meyering@ascend.com>
71349
71350         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
71351         configure.in of textutils, fileutils, and sh-utils into this one
71352         (shared between those packages) file.
71353         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
71354         AC_STRUCT_ST_BLKSIZE.
71355
71356 1999-11-03  Jim Meyering  <meyering@ascend.com>
71357
71358         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
71359         of AC_CHECK_TYPE checks includes unistd.h.
71360         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
71361         Suggestion from Akim Demaille.
71362
71363 1999-10-30  Jim Meyering  <meyering@ascend.com>
71364
71365         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
71366         m4-quoted string.
71367         * m4/ls-mntd-fs.m4: Likewise.
71368         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
71369         * m4/jm-winsz1.m4: Likewise.
71370
71371         * m4/const.m4: Remove file, since the fix made it into the experimental
71372         version of autoconf.
71373         * m4/mktime.m4: Likewise.
71374
71375         * m4/check-type.m4: Remove file, now that the latest version of
71376         AC_CHECK_TYPE takes a third arg to specify additional #includes.
71377
71378         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
71379         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
71380         AC_CHECK_TYPE.
71381
71382 1999-10-04  Jim Meyering  <meyering@ascend.com>
71383
71384         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
71385
71386 1999-09-22  Paul Eggert  <eggert@twinsun.com>
71387
71388         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
71389         2.95.1 bug with HP-UX 10.20.
71390
71391 1999-09-17  Jim Meyering  <meyering@ascend.com>
71392
71393         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
71394         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
71395         due to missing strdup (against sh-utils-2.0).
71396
71397 1999-08-29  Jim Meyering  <meyering@ascend.com>
71398
71399         * m4/jm-macros.m4: Require jm_BISON.
71400         * m4/bison.m4: New file.
71401
71402 1999-08-17  Paul Eggert  <eggert@twinsun.com>
71403
71404         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
71405         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
71406
71407 1999-08-05  Jim Meyering  <meyering@ascend.com>
71408
71409         * m4/getline.m4: Rename test file from conftestdata to conftest.data
71410         to avoid conflicts with `conftest' on 8+3 filesystems.
71411         Suggestion from Eli Zaretskii.
71412
71413 1999-08-04  Jim Meyering  <meyering@ascend.com>
71414
71415         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
71416         fileutils and sh-utils (textutils's getline test was inadequate).
71417         (AM_FUNC_GETLINE): Run this test.
71418         (AC_CHECK_FUNCS): Check for getdelim.
71419         Reported by Bob Proulx.
71420
71421 1999-08-02  Jim Meyering  <meyering@ascend.com>
71422
71423         * m4/jm-macros.m4: Add a comment.
71424
71425 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71426
71427         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
71428         <inttypes.h> defines strtoumax as a macro (and not as a
71429         function).
71430
71431 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71432
71433         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
71434         that we can shift, multiply and divide unsigned long long
71435         values; Ultrix cc can't do it.
71436
71437 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71438
71439         * m4/mktime.m4: New file, which is a preview of what should appear
71440         in the next public autoconf release.
71441
71442 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71443
71444         * m4/lfs.m4: Remove this file.
71445         * m4/largefile.m4: New file.  It contains the old contents of
71446         lfs.m4, except that all names with prefix AC_LFS have been
71447         changed to use the prefix AC_SYS_LARGEFILE instead, to be
71448         compatible with future autoconf versions.  Also, some minor m4
71449         quoting problems have been fixed.
71450
71451 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71452
71453         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
71454         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
71455         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
71456         and simplify the shell code.
71457
71458 1999-08-01  Jim Meyering  <meyering@ascend.com>
71459
71460         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
71461         m4.
71462
71463 1999-07-20  Jim Meyering  <meyering@ascend.com>
71464
71465         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
71466
71467 1999-07-15  Jim Meyering  <meyering@ascend.com>
71468
71469         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
71470
71471 1999-05-22  Jim Meyering  <meyering@ascend.com>
71472
71473         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
71474
71475 1999-05-20  Jim Meyering  <meyering@ascend.com>
71476
71477         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
71478         Add a colon after each `then' in case $4 is empty.
71479
71480 1999-05-16  Jim Meyering  <meyering@ascend.com>
71481
71482         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
71483
71484 1999-05-10  Jim Meyering  <meyering@ascend.com>
71485
71486         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
71487
71488         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
71489         AC_FUNC_MKTIME.
71490
71491 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
71492
71493         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
71494
71495 1999-05-04  Paul Eggert  <eggert@twinsun.com>
71496
71497         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
71498         not CPPFLAGS, so that linking works correctly in IRIX.
71499
71500 1999-04-30  Paul Eggert  <eggert@twinsun.com>
71501
71502         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
71503
71504 1999-04-20  Paul Eggert  <eggert@twinsun.com>
71505
71506         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
71507         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
71508         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
71509         jm_AC_TYPE_UNSIGNED_LONG_LONG.
71510         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
71511
71512         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
71513
71514 1999-04-20  Jim Meyering  <meyering@ascend.com>
71515
71516         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
71517         AC_REPLACE xstroull if necessary.  From Paul Eggert.
71518         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
71519
71520 1999-04-18  Jim Meyering  <meyering@ascend.com>
71521
71522         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
71523         * m4/jm-macros.m4: Use it.
71524
71525 1999-04-06  Jim Meyering  <meyering@ascend.com>
71526
71527         * m4/strftime.m4: Remove test for %f.
71528
71529 1999-03-29  Jim Meyering  <meyering@ascend.com>
71530
71531         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
71532         superset of the AC_TYPE_* checks in the textutils, fileutils,
71533         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
71534         AC_TYPE_PID_T.
71535
71536 1999-03-28  Jim Meyering  <meyering@ascend.com>
71537
71538         * m4/jm-macros.m4: Define GNU_PACKAGE here.
71539         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
71540         replaced e.g., in the *.sh files of the sh-utils.
71541
71542 1999-03-20  Jim Meyering  <meyering@ascend.com>
71543
71544         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
71545         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
71546         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
71547
71548 1999-03-19  Jim Meyering  <meyering@ascend.com>
71549
71550         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
71551
71552 1999-03-12  Jim Meyering  <meyering@ascend.com>
71553
71554         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
71555
71556 1999-03-07  Jim Meyering  <meyering@ascend.com>
71557
71558         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
71559         declared.
71560
71561 1999-02-17  Jim Meyering  <meyering@ascend.com>
71562
71563         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
71564         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
71565
71566 1999-02-07  Jim Meyering  <meyering@ascend.com>
71567
71568         * m4/group-member.m4: New file -- extracted from sh-utils'
71569         configure.in.
71570
71571         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
71572         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
71573
71574 1999-02-06  Jim Meyering  <meyering@ascend.com>
71575
71576         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
71577         * m4/fnmatch.m4: Likewise.
71578         * m4/getgroups.m4: Likewise.
71579         * m4/lstat.m4: Likewise.
71580         * m4/malloc.m4: Likewise.
71581         * m4/putenv.m4: Likewise.
71582         * m4/realloc.m4: Likewise.
71583         * m4/regex.m4: Likewise.
71584         * m4/stat.m4: Likewise.
71585         * m4/strftime.m4: Likewise.
71586         Suggestion from Alain Magloire.
71587
71588         * m4/chown.m4: Use `.$ac_objext', not `.o'.
71589         * m4/fnmatch.m4: Likewise.
71590         * m4/getgroups.m4: Likewise.
71591         * m4/getline.m4: Likewise.
71592         * m4/lstat.m4: Likewise.
71593         * m4/malloc.m4: Likewise.
71594         * m4/memcmp.m4: Likewise.
71595         * m4/putenv.m4: Likewise.
71596         * m4/realloc.m4: Likewise.
71597         * m4/regex.m4: Likewise.
71598         * m4/stat.m4: Likewise.
71599         * m4/strftime.m4: Likewise.
71600         Suggestion from Alain Magloire.
71601
71602         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
71603         an argument.
71604
71605         * m4/regex.m4: Add a run-time Test for proper operation of
71606         re_compile_pattern.
71607
71608 1999-01-31  Jim Meyering  <meyering@ascend.com>
71609
71610         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
71611
71612 1999-01-30  Jim Meyering  <meyering@ascend.com>
71613
71614         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
71615
71616         * m4/jm-mktime.m4: Make this a wrapper around the official
71617         AM_FUNC_MKTIME rather than my private copy, now that the official one
71618         is up to date.
71619         * m4/mktime.m4: Remove file.
71620
71621         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
71622         * m4/uptime.m4: Likewise.
71623         * m4/uintmax_t.m4: Likewise.
71624
71625 1999-01-28  Jim Meyering  <meyering@ascend.com>
71626
71627         * m4/jm-macros.m4: Use jm_AFS.
71628         * m4/afs.m4: New file (from fileutils' configure.in).
71629
71630         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
71631         * m4/chown.m4: Likewise.
71632         * m4/d-ino.m4: Likewise.
71633         * m4/d-type.m4: Likewise.
71634         * m4/fnmatch.m4: Likewise.
71635         * m4/getgroups.m4: Likewise.
71636         * m4/gettext.m4: Likewise.
71637         * m4/jm-mktime.m4: Likewise.
71638         * m4/jm-winsz2.m4: Likewise.
71639         * m4/lcmessage.m4: Likewise.
71640         * m4/ls-mntd-fs.m4: Likewise.
71641         * m4/malloc.m4: Likewise.
71642         * m4/memcmp.m4: Likewise.
71643         * m4/putenv.m4: Likewise.
71644         * m4/realloc.m4: Likewise.
71645         * m4/st_mtim.m4: Likewise.
71646         * m4/strftime.m4: Likewise.
71647
71648 1999-01-16  Jim Meyering  <meyering@ascend.com>
71649
71650         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
71651         (ARGMATCH_DIE_DECL): Define.
71652
71653 1999-01-12  Jim Meyering  <meyering@ascend.com>
71654
71655         * m4/Makefile.am.in: Rewrite to avoid using fmt.
71656         Reported by Lars Hecking.
71657
71658 1999-01-10  Jim Meyering  <meyering@ascend.com>
71659
71660         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
71661         gross kludge.
71662         * m4/inttypes_h.m4: Likewise.
71663         * m4/lstat.m4: Likewise.
71664         * m4/malloc.m4: Likewise.
71665         * m4/readdir.m4: Likewise.
71666         * m4/realloc.m4: Likewise.
71667         * m4/st_dm_mode.m4: Likewise.
71668         * m4/stat.m4: Likewise.
71669         * m4/utimbuf.m4: Likewise.
71670         * m4/utimes.m4: Likewise.
71671
71672         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
71673         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
71674         comments in config.h.in are meaningful.
71675
71676         * m4/jm-macros.m4: Require autoconf-2.13 here.
71677
71678         * m4/regex.m4: By default, don't use the included regex.c on systems
71679         with glibc 2.  Suggestion from Uli Drepper.
71680
71681 1999-01-02  Jim Meyering  <meyering@ascend.com>
71682
71683         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
71684
71685 1998-12-18  Jim Meyering  <meyering@ascend.com>
71686
71687         * m4/Makefile.am.in (Makefile.am): Simplify rule.
71688         Based on a suggestion from Lars Hecking.
71689
71690 1998-11-16  Paul Eggert  <eggert@twinsun.com>
71691
71692         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
71693
71694 1998-11-16  Jim Meyering  <meyering@ascend.com>
71695
71696         * m4/lfs.m4: Double-quote the `uname...` expression.
71697
71698 1998-11-14  Jim Meyering  <meyering@ascend.com>
71699
71700         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
71701         * m4/stat.m4: Likewise.
71702
71703 1998-11-03  Jim Meyering  <meyering@ascend.com>
71704
71705         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
71706         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
71707
71708 1998-10-18  Jim Meyering  <meyering@ascend.com>
71709
71710         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
71711
71712 1998-10-17  Jim Meyering  <meyering@ascend.com>
71713
71714         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
71715         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
71716         calls for those previously hard-coded headers.  Instead, take a new
71717         parameter.
71718         (jm_CHECK_DECLARATIONS): Reflect interface change.
71719         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
71720         (jm_CHECK_DECL_LOCALTIME_R): New macro.
71721
71722         * m4/mktime.m4: Test for spring-forward gap before long-running test.
71723
71724 1998-10-14  Jim Meyering  <meyering@ascend.com>
71725
71726         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
71727         instead of "TZ=America/Vancouver".  From Paul Eggert.
71728
71729 1998-10-11  Jim Meyering  <meyering@ascend.com>
71730
71731         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
71732         This adds a test for a recently added compatibility fix for mktime.c.
71733         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
71734
71735 1998-09-27  Jim Meyering  <meyering@ascend.com>
71736
71737         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
71738
71739         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
71740         ../configure.in, including a change from Gordon Matzigkeit to allow
71741         cross-compiling for the Hurd.
71742
71743         * m4/glibc.m4: New file/macro to test for the GNU C Library
71744         versions 1 and 2.  From Gordon Matzigkeit.
71745         Indent.
71746
71747 1998-09-21  Jim Meyering  <meyering@ascend.com>
71748
71749         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
71750
71751 1998-08-18  Paul Eggert  <eggert@twinsun.com>
71752
71753         Port nanosecond-resolution times to UnixWare 2.1.2 and
71754         pedantic Solaris 2.6.
71755
71756         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
71757         AC_STRUCT_ST_MTIM.
71758         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
71759         Generate name of ns member, instead of just 1 or undef.
71760         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
71761
71762 1998-08-15  Jim Meyering  <meyering@ascend.com>
71763
71764         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
71765         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
71766         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
71767         instead of jm_TYPE_SSIZE_T.
71768
71769 1998-08-12  Jim Meyering  <meyering@ascend.com>
71770
71771         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
71772
71773 1998-08-02  Jim Meyering  <meyering@ascend.com>
71774
71775         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
71776         in acconfig.h manually.
71777
71778 1998-07-31  Paul Eggert  <eggert@twinsun.com>
71779
71780         * m4/st_mtim.m4: New file.
71781
71782 1998-07-28  Jim Meyering  <meyering@ascend.com>
71783
71784         * m4/utimes.m4: Undef stat.
71785
71786 1998-07-25  Jim Meyering  <meyering@ascend.com>
71787
71788         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
71789         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
71790
71791 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
71792
71793         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
71794         uid and gid actually remain unchanged.
71795
71796 1998-07-07  Jim Meyering  <meyering@ascend.com>
71797
71798         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
71799
71800 1998-07-04  Jim Meyering  <meyering@ascend.com>
71801
71802         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
71803         to prove that this macro can be used in packages without regex.c.
71804
71805 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
71806
71807         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
71808         is to be used.
71809
71810 1998-07-03  Jim Meyering  <meyering@ascend.com>
71811
71812         * m4/gettext.m4: Add -lintl if it's found to be necessary.
71813
71814         * m4/gettext.m4: New file -- from gettext-0.10.35.
71815         * m4/lcmessage.m4: Likewise.
71816         * m4/progtest.m4: Likewise.
71817
71818         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
71819         * m4/jm-macros.m4: Require the new macro.
71820
71821 1998-06-29  Jim Meyering  <meyering@ascend.com>
71822
71823         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
71824         for the definition of NGROUPS (used in a system header included
71825         by sys/mount.h).
71826
71827 1998-06-28  Jim Meyering  <meyering@ascend.com>
71828
71829         * m4/ls-mntd-fs.m4: New file.
71830         * m4/fstypename.m4: New file.
71831
71832         * m4/jm-macros.m4: Require the new macro.
71833         * m4/jm-glibc-io.m4: New file.
71834
71835 1998-05-19  Jim Meyering  <meyering@ascend.com>
71836
71837         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
71838         * m4/lchown.m4: New file.
71839
71840         * m4/Makefile.am.in: New file.
71841         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
71842
71843 1998-05-14  Jim Meyering  <meyering@ascend.com>
71844
71845         * m4/Makefile.am (EXTRA_DIST): Add them.
71846         * m4/jm-macros.m4: New file.
71847         * m4/utimbuf.m4: New file.
71848
71849 1998-05-12  Jim Meyering  <meyering@ascend.com>
71850
71851         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
71852
71853 1998-05-11  Jim Meyering  <meyering@ascend.com>
71854
71855         * m4/isc-posix.m4: New file.
71856
71857 1998-05-10  Jim Meyering  <meyering@ascend.com>
71858
71859         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
71860
71861 1998-05-09  Jim Meyering  <meyering@ascend.com>
71862
71863         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
71864         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
71865         with automake.
71866
71867         * m4/ssize_t.m4: New file.
71868         * m4/mktime.m4: Remove file -- the new automake has this now.
71869
71870 1998-04-26  Jim Meyering  <meyering@ascend.com>
71871
71872         * m4/assert.m4: New file.
71873         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
71874
71875 1998-04-05  Jim Meyering  <meyering@ascend.com>
71876
71877         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
71878         (jm_PREREQ): Use it here.
71879
71880 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
71881
71882         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
71883         in acconfig.h.
71884
71885 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
71886
71887         * m4/prereq.m4: New file.
71888         * m4/error.m4: New file.
71889         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
71890
71891 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
71892
71893         * m4/getline.m4: Don't set am_cv_func_working_getline before the
71894         cache-check for the same variable -- that defeated the purpose of
71895         the test; the test program was never run.  This was a problem only
71896         on systems with losing getline functions -- HP-UX 10.20 is one.
71897         Reported by Bjorn Helgaas.
71898
71899 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
71900
71901         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
71902
71903 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
71904
71905         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
71906
71907         * m4/const.m4: New file.  Use an initializer in this declaration
71908         typedef int charset[2]; const charset x;
71909         Reported by Bob Glickstein.
71910
71911 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
71912
71913         * m4/chown.m4: Fix reversed types on -1 args to chown.
71914         From Kaveh Ghazi.
71915
71916 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
71917
71918         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
71919         Add lseek and memchr.
71920
71921         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
71922         T.E.Dickey <dickey@clark.net> said that some older preprocessors
71923         have a 20-character limit on names.
71924
71925 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
71926
71927         * m4/inttypes_h.m4: New file.
71928         * m4/uintmax_t.m4: New file.
71929         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
71930
71931
71932         -----
71933
71934         Local Variables:
71935         coding: utf-8
71936         End:
71937
71938         Copyright (C) 1997-2010 Free Software Foundation, Inc.
71939
71940         Copying and distribution of this file, with or without
71941         modification, are permitted provided the copyright notice
71942         and this notice are preserved.